/*
Theme Name: Tiny Grove
Theme URI: https://tinygrove.co.uk
Author: Tiny Grove
Description: An editorial, content-managed WordPress theme for Tiny Grove digital studio.
Version: 3.0.0
License: GNU General Public License v2 or later
Text Domain: tiny-grove
*/

:root {
    --forest: #004638;
    --forest-deep: #00372d;
    --ink: #163a31;
    --paper: #f3f0e6;
    --paper-light: #fbfaf5;
    --lime: #a9cf18;
    --olive: #719b36;
    --coral: #ed7659;
    --muted: #62716c;
    --line: rgba(22,58,49,.18);
    --line-light: rgba(255,255,255,.18);
    --sans: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
    --serif: "Newsreader", Georgia, serif;
    --ease: cubic-bezier(.22,.7,.18,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 78px; }
body { margin: 0; overflow-x: hidden; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.55; }
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, figure { margin-top: 0; }
h1, h2, h3 { margin-bottom: 0; font-weight: 600; letter-spacing: -.055em; line-height: .98; }
::selection { background: var(--lime); color: var(--forest-deep); }

.site-shell { width: min(1320px, calc(100% - 72px)); margin-inline: auto; }
.section-space { padding: 132px 0; }
.skip-link { position: fixed; top: -80px; left: 18px; z-index: 9999; padding: 12px 18px; background: var(--lime); color: var(--forest); font-weight: 700; }
.skip-link:focus { top: 0; }
.scroll-meter { position: fixed; inset: 0 0 auto; z-index: 2000; height: 3px; }
.scroll-meter i { display: block; width: 0; height: 100%; background: var(--lime); }
.kicker { margin: 0; font-size: 11px; font-weight: 700; letter-spacing: .15em; line-height: 1.3; text-transform: uppercase; }
.action { display: inline-flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 58px; padding: 0 24px; border: 0; font-weight: 700; cursor: pointer; transition: transform .25s var(--ease), background .25s, color .25s; }
.action:hover { transform: translateY(-3px); }
.action-lime { background: var(--lime); color: var(--forest-deep); }
.action-dark { background: var(--forest); color: white; }
.underlink { padding-bottom: 4px; border-bottom: 1px solid currentColor; font-weight: 650; }

/* Header */
.site-header { position: fixed; inset: 0 0 auto; z-index: 1200; color: white; background: var(--forest); transition: box-shadow .3s; }
.site-header.scrolled { box-shadow: 0 12px 40px rgba(0,32,25,.18); }
.nav-layout { display: grid; grid-template-columns: 210px 1fr auto auto; align-items: center; gap: 34px; min-height: 78px; }
.brand { width: 142px; }
.brand-image { width: 142px; height: 64px; object-fit: contain; }
.primary-nav { display: flex; justify-content: center; gap: 34px; }
.primary-nav a { position: relative; font-size: 13px; font-weight: 620; }
.primary-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -7px; height: 1px; background: var(--lime); transition: right .25s; }
.primary-nav a:hover::after { right: 0; }
.nav-enquire { display: flex; gap: 16px; align-items: center; padding: 10px 0 10px 18px; border-left: 1px solid var(--line-light); font-size: 13px; font-weight: 700; }
.nav-enquire span { color: var(--lime); font-size: 18px; }
.menu-toggle { display: none; width: 43px; height: 43px; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; background: transparent; }
.menu-toggle span { display: block; width: 18px; height: 1px; margin: 5px auto; background: currentColor; transition: transform .25s; }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }
.mobile-nav { position: fixed; inset: 78px 0 0; z-index: 1190; flex-direction: column; gap: 0; padding: 36px; background: var(--forest); color: white; }
.mobile-nav:not([hidden]) { display: flex; }
.mobile-nav a { padding: 17px 0; border-bottom: 1px solid var(--line-light); font-size: clamp(1.7rem, 8vw, 2.6rem); font-weight: 570; letter-spacing: -.04em; }
.mobile-nav .mobile-enquire { margin-top: auto; padding: 17px 20px; border: 0; background: var(--lime); color: var(--forest); text-align: center; font-size: 1rem; }

/* Hero */
.home-hero { position: relative; min-height: 900px; padding: 142px 0 48px; background: var(--paper); isolation: isolate; }
.hero-rule { position: absolute; top: 78px; bottom: 0; left: calc(50% + 96px); z-index: -1; width: 1px; background: var(--line); }
.hero-layout { display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 76px; min-height: 670px; }
.hero-message { position: relative; z-index: 2; padding-top: 12px; }
.hero-kicker { display: flex; align-items: center; gap: 12px; margin-bottom: 34px; color: var(--olive); }
.hero-kicker span { width: 34px; height: 1px; background: var(--olive); }
.home-hero h1 { max-width: 780px; margin-bottom: 32px; font-size: clamp(3.7rem, 6.35vw, 7.6rem); }
.home-hero h1 > span, .home-hero h1 > i { display: block; }
.home-hero h1 i { color: var(--olive); font-family: var(--serif); font-weight: 450; }
.home-hero h1 b { color: var(--forest); font-family: var(--serif); font-weight: 480; }
.hero-summary { max-width: 620px; margin-bottom: 34px; color: var(--muted); font-size: clamp(1rem, 1.35vw, 1.16rem); }
.hero-actions { display: flex; align-items: center; gap: 28px; }
.hero-figure { position: relative; align-self: stretch; min-height: 680px; margin-bottom: 0; }
.hero-figure::before { content: ""; position: absolute; width: 44%; height: 52%; right: -24px; top: -20px; z-index: -1; background: var(--lime); }
.hero-image-wrap { height: 630px; overflow: hidden; clip-path: polygon(0 4%, 93% 0, 100% 93%, 7% 100%); }
.hero-image-wrap img { width: 100%; height: 112%; object-fit: cover; object-position: center 54%; transform: translateY(var(--parallax-y, 0)); will-change: transform; }
.hero-figure figcaption { display: flex; gap: 12px; align-items: center; margin: 14px 0 0 7%; color: var(--muted); font-size: 12px; }
.hero-figure figcaption span { color: var(--olive); font-weight: 700; }
.capability-line { display: grid; grid-template-columns: 150px 1fr; align-items: center; margin-top: 26px; padding-top: 25px; border-top: 1px solid var(--line); }
.capability-line > span { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; }
.capability-line ul { display: flex; justify-content: space-between; gap: 20px; }
.capability-line li { font-size: clamp(1.05rem, 2vw, 1.55rem); font-weight: 570; letter-spacing: -.035em; }
.capability-line li::before { content: "+"; margin-right: 10px; color: var(--olive); font-family: var(--serif); }

/* Editorial sections */
.studio-intro { background: var(--paper-light); }
.editorial-grid, .section-head { display: grid; grid-template-columns: 250px 1fr; gap: 64px; }
.section-index { display: flex; align-items: flex-start; gap: 18px; padding-top: 10px; }
.section-index > span { color: var(--olive); font: 600 12px var(--sans); }
.section-index .kicker { color: var(--forest); }
.editorial-lead h2, .section-head h2, .faq h2 { max-width: 970px; font-size: clamp(3rem, 5vw, 6rem); }
.large-copy { max-width: 800px; margin: 44px 0 0 auto; color: var(--muted); font: 400 clamp(1.25rem, 2vw, 1.75rem)/1.45 var(--serif); }
.values-list { margin-top: 92px; border-top: 1px solid var(--line); }
.value-row { display: grid; grid-template-columns: 66px .75fr 1fr 40px; align-items: center; gap: 32px; min-height: 148px; padding: 26px 12px; border-bottom: 1px solid var(--line); transition: padding .3s var(--ease), background .3s; }
.value-row:hover { padding-left: 24px; padding-right: 24px; background: var(--paper); }
.value-mark { display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid var(--line); border-radius: 50%; color: var(--forest); }
.value-mark svg { width: 23px; height: 23px; }
.value-row h3 { font-size: clamp(1.35rem, 2.25vw, 2.2rem); }
.value-row p { margin: 0; color: var(--muted); }
.row-number { justify-self: end; color: var(--olive); font-size: 11px; }

.services { color: white; background: var(--forest); }
.section-head { align-items: end; margin-bottom: 76px; }
.section-head > div:last-child > p { max-width: 650px; margin: 28px 0 0 auto; color: var(--muted); font-size: 1.05rem; }
.section-head-light .section-index .kicker, .section-head-light .section-index > span { color: var(--lime); }
.section-head-light > div:last-child > p { color: rgba(255,255,255,.64); }
.service-table { border-top: 1px solid var(--line-light); }
.service-entry { display: grid; grid-template-columns: 44px 58px .9fr 1fr; align-items: center; gap: 26px; min-height: 164px; padding: 28px 10px; border-bottom: 1px solid var(--line-light); transition: background .3s, padding .3s var(--ease); }
.service-entry:hover { padding-left: 22px; padding-right: 22px; background: rgba(255,255,255,.045); }
.service-number { align-self: start; padding-top: 8px; color: var(--lime); font-size: 11px; }
.service-symbol { display: grid; place-items: center; width: 54px; height: 54px; border: 1px solid rgba(255,255,255,.24); border-radius: 50%; color: var(--lime); }
.service-symbol svg { width: 24px; height: 24px; }
.service-copy h3 { font-size: clamp(1.4rem, 2.2vw, 2.2rem); }
.service-copy p { max-width: 560px; margin: 14px 0 0; color: rgba(255,255,255,.62); }
.service-tags { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.service-tags li { padding: 6px 11px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; color: rgba(255,255,255,.74); font-size: 11px; }

/* Work */
.work { background: var(--paper); }
.work-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px 24px; }
.work-item { position: relative; }
.work-item:nth-child(even) { margin-top: 120px; }
.work-canvas { position: relative; height: 440px; margin-bottom: 22px; overflow: hidden; background: #dce6a2; }
.work-item-2 .work-canvas { background: #e99a7f; }
.work-item-3 .work-canvas { background: #d8d4c6; }
.work-item-4 .work-canvas { background: #98b2aa; }
.work-canvas::before { content: ""; position: absolute; inset: 0; opacity: .34; background-image: linear-gradient(rgba(0,70,56,.18) 1px,transparent 1px),linear-gradient(90deg,rgba(0,70,56,.18) 1px,transparent 1px); background-size: 44px 44px; }
.paper { position: absolute; z-index: 1; display: block; background: var(--paper-light); box-shadow: 0 16px 30px rgba(0,40,30,.12); transition: transform .5s var(--ease); }
.paper-a { width: 46%; height: 60%; left: 15%; top: 18%; transform: rotate(-5deg); }
.paper-a::before { content: ""; position: absolute; width: 55%; height: 18px; left: 14%; top: 18%; background: var(--forest); box-shadow: 0 38px 0 rgba(0,70,56,.13), 0 68px 0 rgba(0,70,56,.13), 0 98px 0 rgba(0,70,56,.13); }
.paper-b { width: 34%; height: 42%; right: 12%; bottom: 12%; border: 10px solid var(--forest); background: transparent; transform: rotate(7deg); }
.paper-b::after { content: ""; position: absolute; width: 60px; height: 60px; left: 50%; top: 50%; border-radius: 50%; background: var(--lime); transform: translate(-50%,-50%); }
.work-line { position: absolute; left: -5%; top: 52%; width: 112%; height: 2px; background: var(--forest); transform: rotate(-12deg); }
.work-canvas i { position: absolute; right: 20px; top: 14px; color: rgba(0,70,56,.5); font: 500 12px var(--sans); }
.work-item:hover .paper-a { transform: rotate(-2deg) translateY(-8px); }
.work-item:hover .paper-b { transform: rotate(3deg) translate(-4px,-8px); }
.work-item > p { margin: 0 0 8px; color: var(--olive); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.work-item h3 { max-width: 80%; font-size: clamp(1.6rem, 2.8vw, 2.8rem); line-height: 1.05; }
.work-item small { display: block; margin-top: 12px; color: var(--muted); }
.work-arrow { position: absolute; right: 4px; bottom: 4px; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; color: var(--forest); font-size: 20px; transition: background .25s, color .25s, transform .25s; }
.work-item:hover .work-arrow { background: var(--forest); color: white; transform: rotate(8deg); }

/* Process */
.process { background: var(--paper-light); }
.process-track { position: relative; display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid var(--line); }
.process-progress { position: absolute; left: 0; right: 0; top: -2px; height: 3px; }
.process-progress i { display: block; width: var(--process-progress,0%); height: 100%; background: var(--lime); transition: width .15s linear; }
.process-step { min-height: 370px; padding: 34px 30px; border-right: 1px solid var(--line); }
.process-step:first-of-type { border-left: 1px solid var(--line); }
.process-step > span { display: block; margin-bottom: 120px; color: var(--olive); font-size: 12px; }
.process-step h3 { font-size: 1.65rem; }
.process-step p { margin: 18px 0 0; color: var(--muted); }

.notes-band { overflow: hidden; padding: 15px 0; color: white; background: var(--forest-deep); }
.notes-track { display: flex; width: max-content; animation: noteMove 34s linear infinite; }
.notes-track span { display: flex; align-items: center; gap: 12px; padding-left: 24px; white-space: nowrap; color: rgba(255,255,255,.7); font-size: 12px; }
.notes-track b { color: var(--lime); }
.notes-track i { width: 4px; height: 4px; margin-left: 12px; border-radius: 50%; background: var(--lime); }
@keyframes noteMove { to { transform: translateX(-50%); } }

/* FAQ */
.faq { background: var(--paper); }
.faq-layout { display: grid; grid-template-columns: .82fr 1.18fr; gap: 100px; }
.faq-intro .section-index { margin-bottom: 40px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { display: grid; grid-template-columns: 44px 1fr 24px; gap: 16px; align-items: center; min-height: 98px; cursor: pointer; font-size: 1.15rem; font-weight: 600; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary > span { color: var(--olive); font-size: 11px; }
.faq-item summary i { position: relative; width: 16px; height: 16px; }
.faq-item summary i::before, .faq-item summary i::after { content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 1px; background: var(--forest); transition: transform .25s; }
.faq-item summary i::after { transform: rotate(90deg); }
.faq-item[open] summary i::after { transform: rotate(0); }
.faq-item > p { max-width: 650px; margin: -5px 40px 30px 60px; color: var(--muted); }

/* Contact */
.contact { padding: 128px 0 0; background: var(--lime); color: var(--forest-deep); }
.contact-lead { text-align: center; }
.contact-lead .kicker { margin-bottom: 28px; }
.contact-lead h2 { max-width: 1050px; margin-inline: auto; font-size: clamp(3.4rem, 6.5vw, 7.5rem); }
.contact-lead h2 i { display: block; font-family: var(--serif); font-weight: 450; }
.contact-lead > p:not(.kicker) { max-width: 630px; margin: 32px auto 0; color: rgba(0,55,45,.72); font-size: 1.05rem; }
.contact-links { display: flex; justify-content: center; align-items: center; gap: 28px; margin-top: 34px; }
.enquiry-layout { display: grid; grid-template-columns: .75fr 1.25fr; gap: 80px; margin-top: 100px; padding: 76px; background: var(--paper-light); color: var(--ink); }
.enquiry-copy h3 { margin: 28px 0 20px; font-size: clamp(2.2rem,4vw,4rem); }
.enquiry-copy > p:last-child { color: var(--muted); }
.enquiry-form form { display: grid; gap: 22px; }
.form-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.enquiry-form label { display: grid; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.enquiry-form input, .enquiry-form select, .enquiry-form textarea { width: 100%; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; outline: none; background: transparent; color: var(--ink); }
.enquiry-form input, .enquiry-form select { height: 48px; }
.enquiry-form textarea { padding: 12px 0; resize: vertical; }
.enquiry-form input:focus, .enquiry-form select:focus, .enquiry-form textarea:focus { border-color: var(--olive); }
.enquiry-form .action { justify-self: start; margin-top: 8px; }
.form-success { margin-bottom: 24px; padding: 14px 16px; border-left: 3px solid var(--olive); background: rgba(169,207,24,.18); font-weight: 650; }

/* Footer */
.site-footer { padding: 84px 0 28px; color: white; background: var(--forest); }
.footer-main { display: grid; grid-template-columns: 1.4fr .55fr .8fr; gap: 90px; padding-bottom: 72px; }
.footer-statement img { width: 170px; height: 85px; object-fit: contain; margin-bottom: 22px; }
.footer-statement p { max-width: 500px; margin: 0; color: rgba(255,255,255,.62); }
.footer-label { margin-bottom: 18px; color: var(--lime) !important; font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.footer-nav { display: flex; flex-direction: column; align-items: flex-start; }
.footer-nav a { margin-bottom: 9px; color: rgba(255,255,255,.72); }
.footer-contact > a { display: inline-block; margin-bottom: 16px; padding-bottom: 4px; border-bottom: 1px solid rgba(255,255,255,.35); font-size: 1.1rem; }
.footer-contact > p:last-child { color: rgba(255,255,255,.55); }
.footer-bottom { display: grid; grid-template-columns: 1fr 1fr auto; gap: 30px; padding-top: 25px; border-top: 1px solid var(--line-light); color: rgba(255,255,255,.45); font-size: 11px; }
.footer-bottom p { margin: 0; }

/* Inner WordPress pages */
.inner-page { min-height: 70vh; padding: 150px 0 100px; background: var(--paper-light); }
.inner-page > .shell, .inner-page > .container { width: min(1000px,calc(100% - 48px)); margin-inline: auto; }
.inner-page h1 { margin: 24px 0 40px; font-size: clamp(3rem,6vw,6rem); }
.inner-page .page-content { color: var(--muted); }
.post-card { padding: 34px 0; border-bottom: 1px solid var(--line); }
.not-found { display: grid; place-items: center; min-height: 75vh; padding: 140px 24px 80px; text-align: center; }
.not-found strong { color: var(--lime); font-size: 10rem; line-height: .8; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .75s var(--ease), transform .75s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 1100px) {
    .site-shell { width: min(100% - 48px, 980px); }
    .nav-layout { grid-template-columns: 180px 1fr auto; }
    .primary-nav { gap: 20px; }
    .nav-enquire { display: none; }
    .hero-layout { grid-template-columns: 1fr 1fr; gap: 40px; }
    .home-hero h1 { font-size: clamp(3.4rem,6.5vw,5.6rem); }
    .hero-image-wrap { height: 560px; }
    .editorial-grid, .section-head { grid-template-columns: 190px 1fr; }
    .service-entry { grid-template-columns: 40px 54px 1fr; }
    .service-tags { grid-column: 3; justify-content: flex-start; }
    .process-track { grid-template-columns: 1fr 1fr; }
    .process-step:nth-of-type(3) { border-left: 1px solid var(--line); }
    .process-step { border-bottom: 1px solid var(--line); }
    .faq-layout { gap: 60px; }
    .enquiry-layout { padding: 52px; gap: 50px; }
}

@media (max-width: 780px) {
    .site-shell { width: min(100% - 32px, 650px); }
    .section-space { padding: 88px 0; }
    .nav-layout { grid-template-columns: 1fr auto; min-height: 70px; }
    .brand { width: 124px; }
    .brand-image { width: 124px; height: 58px; }
    .primary-nav { display: none; }
    .menu-toggle { display: block; }
    .mobile-nav { top: 70px; }
    .home-hero { min-height: auto; padding: 116px 0 40px; }
    .hero-rule { display: none; }
    .hero-layout { grid-template-columns: 1fr; }
    .hero-message { padding-bottom: 18px; }
    .home-hero h1 { font-size: clamp(3.35rem,12vw,5.4rem); }
    .hero-figure { min-height: auto; }
    .hero-image-wrap { height: min(680px,115vw); }
    .capability-line { grid-template-columns: 1fr; gap: 14px; }
    .capability-line ul { align-items: flex-start; flex-direction: column; }
    .editorial-grid, .section-head { grid-template-columns: 1fr; gap: 34px; }
    .large-copy { margin-top: 30px; }
    .values-list { margin-top: 60px; }
    .value-row { grid-template-columns: 54px 1fr 32px; gap: 18px; }
    .value-row p { grid-column: 2 / span 2; }
    .section-head { margin-bottom: 50px; }
    .service-entry { grid-template-columns: 36px 50px 1fr; gap: 15px; }
    .service-tags { grid-column: 3; }
    .work-grid { grid-template-columns: 1fr; gap: 56px; }
    .work-item:nth-child(even) { margin-top: 0; }
    .work-canvas { height: 390px; }
    .faq-layout, .enquiry-layout { grid-template-columns: 1fr; }
    .enquiry-layout { width: 100%; margin-top: 72px; padding: 48px 24px; }
    .footer-main { grid-template-columns: 1fr 1fr; gap: 50px; }
    .footer-statement { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
    .site-shell { width: min(100% - 24px,480px); }
    .home-hero h1 { font-size: clamp(3rem,14vw,4.3rem); }
    .hero-actions, .contact-links { align-items: flex-start; flex-direction: column; }
    .hero-figure::before { right: -8px; }
    .hero-image-wrap { height: 124vw; }
    .value-row { padding-inline: 0; }
    .service-entry { grid-template-columns: 34px 1fr; padding-inline: 0; }
    .service-symbol { grid-column: 2; }
    .service-copy, .service-tags { grid-column: 2; }
    .service-number { grid-row: 1 / span 3; }
    .work-canvas { height: 320px; }
    .process-track { grid-template-columns: 1fr; }
    .process-step, .process-step:nth-of-type(3) { min-height: 290px; border-left: 1px solid var(--line); }
    .process-step > span { margin-bottom: 70px; }
    .faq-item summary { min-height: 88px; font-size: 1rem; }
    .faq-item > p { margin-left: 44px; margin-right: 8px; }
    .contact { padding-top: 88px; }
    .contact-lead h2 { font-size: clamp(3rem,13vw,4.8rem); }
    .form-pair { grid-template-columns: 1fr; }
    .footer-main { grid-template-columns: 1fr; }
    .footer-statement { grid-column: auto; }
    .footer-bottom { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *,*::before,*::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .reveal { opacity: 1; transform: none; }
}
