/* Your Path — responsive rebuild
   Mobile-first. Breakpoints: 640px (large phone / small tablet), 900px (tablet landscape / desktop). */

/* ---------- Fonts (self-hosted, Latin subsets) ---------- */
@font-face { font-family: "YP Script"; src: url("../assets/fonts/script.woff2") format("woff2"), url("../assets/fonts/script.woff") format("woff"); font-display: swap; }
@font-face { font-family: "Montserrat"; font-weight: 400; src: url("../assets/fonts/montserrat-400.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; font-display: swap; }
@font-face { font-family: "Montserrat"; font-weight: 400; src: url("../assets/fonts/montserrat-400-ext.woff2") format("woff2"); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; font-display: swap; }
@font-face { font-family: "Montserrat"; font-weight: 700; src: url("../assets/fonts/montserrat-700.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Montserrat"; font-weight: 400; font-style: italic; src: url("../assets/fonts/montserrat-400-italic.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Montserrat"; font-weight: 700; font-style: italic; src: url("../assets/fonts/montserrat-700-italic.woff2") format("woff2"); font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --green: #407c51;        /* buttons */
  --green-deep: #33663f;   /* button hover */
  --sage: #a9c7ae;         /* accents on dark */
  --forest: #15291b;       /* dark bands */
  --moss: #262c25;         /* testimonial bands */
  --bark: #333329;         /* footer */
  --ink: #1d1d1b;
  --muted: #4a4a45;
  --paper: #ffffff;
  --mist: rgba(255, 255, 255, 0.8);
  --radius: 10px;
  --shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
  --font-body: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-script: "YP Script", "Brush Script MT", cursive;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(56px, 9vw, 110px);
  --header-h: 56px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; } }
body { margin: 0; font-family: var(--font-body); font-size: clamp(15px, 0.4vw + 13.5px, 16px); line-height: 1.75; color: var(--ink); background: var(--paper); }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--green); text-underline-offset: 0.18em; }
a:hover { color: var(--green-deep); }
:focus-visible { outline: 3px solid var(--sage); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; font-weight: 400; }
p { margin: 0 0 1em; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--paper); color: var(--ink); padding: 8px 14px; border-radius: var(--radius); }
.skip-link:focus { top: 12px; }

.container { width: min(1120px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.container.narrow { width: min(760px, 100% - 2 * var(--gutter)); }

/* Script headings: the hand-lettered brand face. Needs generous size + line-height for its long descenders. */
.script { font-family: var(--font-script); font-weight: 400; letter-spacing: 0; line-height: 1.25; }
h1.script { font-size: clamp(2.6rem, 7vw, 4rem); }
h2.script { font-size: clamp(2.3rem, 5.5vw, 3.4rem); }

/* ---------- Components ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 44px; padding: 0.6em 1.5em; border-radius: var(--radius);
  background: var(--green); color: #fff; text-decoration: none; font-size: 0.9rem; letter-spacing: 0.02em;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.btn:hover { background: var(--green-deep); color: #fff; transform: translateY(-1px); }
.text-link { font-size: 0.875rem; }

.card { background: var(--mist); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-radius: var(--radius); box-shadow: var(--shadow); }
.logo-mark { width: 110px; height: auto; margin: 0 auto 0.5rem; border-radius: 50%; }
.logo-mark.small { width: 76px; }
.icon { width: 100%; height: auto; }

.band { padding-block: var(--section-y); position: relative; }
.band-forest { background: var(--forest); color: #fff; }
.band-moss { background: var(--moss); color: #fff; }
.band .script { color: #fff; }

/* Photo / video backgrounds behind a section */
.section-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }

.split { display: grid; gap: 1rem 3rem; align-items: center; text-align: center; }
.split h2 { margin: 0; }
.split p { margin-bottom: 1.2rem; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }

.prose > :last-child { margin-bottom: 0; }
.prose h3 { font-size: 1.15rem; font-weight: 700; margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: 0.35em; }
.prose li::marker { color: var(--green); }
.prose ul ul { list-style: none; padding-left: 0.4em; margin: 0.3em 0 0; }
.prose .list-lead { margin-bottom: 0.4em; font-weight: 700; }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; justify-content: center; pointer-events: none; }
.header-bar {
  pointer-events: auto; position: relative;
  width: 100%; min-height: var(--header-h);
  display: flex; align-items: center; gap: 0.5rem; padding: 0 0.75rem 0 1.1rem;
  background: rgba(0, 0, 0, 0.78); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5); color: #fff;
}
.brand { font-family: var(--font-script); font-size: 1.9rem; color: #fff; text-decoration: none; line-height: 1; margin-right: auto; padding-top: 4px; }
.brand:hover { color: var(--sage); }
.menu-toggle { order: 3; display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: var(--radius); background: transparent; color: #fff; cursor: pointer; }
.menu-toggle svg { width: 26px; height: 26px; }
.site-nav { order: 4; position: absolute; top: 100%; left: 0; right: 0; background: rgba(0, 0, 0, 0.9); display: none; border-radius: 0 0 var(--radius) var(--radius); }
.site-nav.is-open { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 0.5rem 0 0.9rem; }
.site-nav a { display: block; padding: 0.7rem 1.4rem; color: #fff; text-decoration: none; font-size: 1rem; }
.site-nav a[aria-current="page"] { color: var(--sage); }
.site-nav a:hover { color: var(--sage); }
.social { display: flex; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.social a { display: inline-grid; place-items: center; width: 40px; height: 40px; color: inherit; border-radius: 50%; }
.social a:hover { color: var(--sage); }
.social svg { width: 22px; height: 22px; }
.header-social { order: 2; }

@media (min-width: 900px) {
  .header-bar { width: min(960px, 100% - 2 * var(--gutter)); border-radius: 0 0 var(--radius) var(--radius); padding: 0 1rem; }
  .brand { display: none; }
  .menu-toggle { display: none; }
  .site-nav { order: 1; position: static; display: block; background: none; margin-inline: auto; }
  .site-nav ul { display: flex; gap: 0.5rem; padding: 0; }
  .site-nav a { padding: 0.9rem 0.9rem; font-size: 0.95rem; position: relative; }
  .site-nav a[aria-current="page"]::before { content: ""; position: absolute; left: 0.6rem; right: 0.6rem; top: 0; height: 4px; background: var(--sage); border-radius: 0 0 3px 3px; }
  .header-social { position: absolute; right: 0.75rem; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--bark); color: #f2f2ee; padding: clamp(40px, 6vw, 64px) 0 24px; font-size: 0.9rem; }
.site-footer a { color: #f2f2ee; text-decoration: none; }
.site-footer a:hover { color: var(--sage); text-decoration: underline; }
.site-footer h2 { display: flex; align-items: center; gap: 0.6rem; font-size: 0.95rem; font-weight: 700; letter-spacing: 0.04em; margin-bottom: 0.9rem; }
.footer-icon { width: 26px; height: 26px; flex: none; color: var(--sage); }
/* Footer icons are recoloured to one light tone so they read on the dark background. */
.footer-icon :is(path, circle, rect, ellipse, polygon):not([fill="none"]) { fill: currentColor; }
.footer-icon [stroke]:not([stroke="none"]) { stroke: currentColor; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.35rem; }
.site-footer p { margin: 0 0 0.5rem; }
.footer-grid { display: grid; gap: 2rem; }
.footer-social .social a { width: 44px; height: 44px; }
.site-footer .copyright { margin: 2.5rem auto 0; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, 0.15); font-size: 0.8rem; opacity: 0.8; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1fr 1.2fr 1fr auto; } }

/* ---------- Home ---------- */
.hero { position: relative; isolation: isolate; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; padding: calc(var(--header-h) + 24px) 0 clamp(24px, 5vw, 64px); overflow: hidden; }
.hero-media, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-media img { object-fit: cover; object-position: 68% 25%; }
.hero-inner { display: flex; }
.hero-card { width: min(480px, 100%); padding: clamp(24px, 4vw, 40px); text-align: center; }
.hero-card h1 { font-size: clamp(2.4rem, 6vw, 3.4rem); margin-bottom: 0.4em; }
.hero-tagline { font-size: clamp(1.15rem, 2vw, 1.35rem); margin-bottom: 0.4em; }
@media (max-width: 639px) {
  .hero-inner { justify-content: center; }
  .hero-card .logo-mark { width: 80px; }
}
@media (min-width: 900px) { .hero { align-items: center; } }

/* ---------- Title card (About / Services) ---------- */
.title-card { text-align: center; padding: 1.25rem 1.5rem 0.75rem; width: min(560px, 100%); margin: 0 auto clamp(28px, 5vw, 56px); }
.title-card h1 { margin: 0; }

/* ---------- Services ---------- */
.services-intro, .about-intro { position: relative; isolation: isolate; padding: calc(var(--header-h) + clamp(28px, 5vw, 56px)) 0 var(--section-y); overflow: hidden; }
.services-intro .section-bg, .about-intro .section-bg { filter: saturate(0.9); }
.service-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(16px, 2.5vw, 28px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); counter-reset: none; }
.service-card { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 2.6rem 1.4rem 1.6rem; margin-top: 22px; }
.service-card .badge { position: absolute; top: -22px; left: 50%; translate: -50% 0; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--paper); box-shadow: var(--shadow); font-size: 1.5rem; }
.service-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.4rem; }
.service-card p { font-size: 0.92rem; line-height: 1.55; color: var(--muted); margin-bottom: 1rem; }
.card-icon { width: auto; max-width: 160px; height: 110px; margin: auto 0 1.2rem; }
.card-icon.small { height: 56px; margin: 0 0 1rem; }
.service-card .btn { margin-top: auto; }
.service-card-extra { justify-content: center; }

.service { padding-block: var(--section-y); }
.service + .service { border-top: 1px solid #e8e8e2; }
.service-grid { display: grid; gap: 1.5rem 3rem; grid-template-areas: "head" "media" "body"; }
.service-head { grid-area: head; display: grid; grid-template-columns: 1fr auto; align-items: start; column-gap: 1rem; }
.service-head h2 { margin: 0; }
.service-icon { grid-column: 2; grid-row: 1; width: 64px; height: auto; max-height: 72px; }
.service-subtitle { grid-column: 1 / -1; margin: 0.4rem 0 0; font-size: clamp(1.1rem, 2vw, 1.3rem); line-height: 1.45; }
.service-media { grid-area: media; }
.service-photo { width: 100%; max-width: 460px; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); margin-inline: auto; }
.service-body { grid-area: body; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; margin-top: 1.8rem; }
@media (min-width: 900px) {
  .service-grid { grid-template-columns: minmax(280px, 0.8fr) 1.2fr; grid-template-areas: "head head" "media body"; align-items: start; }
  .service-head { grid-template-columns: minmax(280px, 0.8fr) 1fr auto; column-gap: 3rem; align-items: center; }
  .service-head h2 { grid-column: 1; }
  .service-subtitle { grid-column: 2; grid-row: 1; margin: 0; }
  .service-icon { grid-column: 3; }
  .service-media { position: sticky; top: calc(var(--header-h) + 32px); }
}

/* Discovery call band with video */
.discovery { background: var(--forest); }
.discovery-grid { display: grid; gap: 2rem 4rem; align-items: center; text-align: center; }
.discovery-video video { width: min(380px, 100%); aspect-ratio: 9 / 16; object-fit: cover; margin-inline: auto; border-radius: 180px 180px var(--radius) var(--radius); background: #000; box-shadow: var(--shadow); }
@media (min-width: 900px) { .discovery-grid { grid-template-columns: 1fr 1fr; } }

/* Video background band */
.video-band { isolation: isolate; overflow: hidden; color: #fff; }
.video-band::before { content: ""; position: absolute; inset: 0; background: rgba(10, 25, 14, 0.62); z-index: -1; }
.video-band p { text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5); }
.video-band .script { text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35); }

/* ---------- Testimonials carousel ---------- */
.testimonials { padding-block: clamp(48px, 7vw, 80px); }
.carousel { display: grid; grid-template-columns: 44px 1fr 44px; grid-template-areas: "prev slides next" ". dots ."; gap: 1.25rem 0.5rem; align-items: center; }
.slides { grid-area: slides; display: grid; }
/* All slides share one grid cell, so the carousel is as tall as its longest quote: no jumping. */
.slide { grid-area: 1 / 1; margin: 0; text-align: center; opacity: 0; visibility: hidden; transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 1s; }
.slide.is-active { opacity: 1; visibility: visible; transition: opacity 1s cubic-bezier(0.64, 0, 0.78, 0), visibility 0s; }
.slide blockquote { margin: 0 auto 1.2rem; max-width: 62ch; font-size: clamp(0.95rem, 1.4vw, 1.05rem); line-height: 1.7; }
.slide blockquote p { margin-bottom: 0.8em; }
.slide blockquote p:first-child::before { content: "“"; }
.slide blockquote p:last-child::after { content: "”"; }
.slide figcaption { display: flex; flex-direction: column; align-items: center; }
.t-name { font-family: var(--font-script); font-size: clamp(2rem, 4vw, 2.6rem); line-height: 1.2; }
.t-service { margin: 0; font-size: 0.85rem; letter-spacing: 0.04em; color: var(--sage); }
.carousel-arrow { width: 44px; height: 44px; padding: 8px; border: 0; background: transparent; color: #fff; border-radius: 50%; cursor: pointer; opacity: 0.8; }
.carousel-arrow:hover { opacity: 1; background: rgba(255, 255, 255, 0.08); }
.carousel-arrow.prev { grid-area: prev; }
.carousel-arrow.next { grid-area: next; }
.dots { grid-area: dots; display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; }
.dot { width: 28px; height: 28px; padding: 0; border: 0; background: transparent; cursor: pointer; position: relative; }
.dot::after { content: ""; position: absolute; inset: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.45); transition: background-color 0.3s; }
.dot[aria-current="true"]::after { background: #fff; inset: 9px; }
@media (max-width: 639px) {
  /* Arrows move under the quote on phones so the text gets the full width. */
  .carousel { grid-template-columns: 44px 1fr 44px; grid-template-areas: "slides slides slides" "prev dots next"; }
}
/* The quote text is long; keep the slide block centred within the band. */
.slides { min-width: 0; }

/* ---------- About ---------- */
.story { display: grid; gap: clamp(24px, 4vw, 48px); padding: clamp(20px, 4vw, 48px); }
.portrait { width: 100%; max-width: 420px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); margin-inline: auto; }
.signoff { font-size: clamp(2.4rem, 5vw, 3.2rem); margin: 0.6em 0 0.4em; }
@media (min-width: 900px) {
  .story { grid-template-columns: minmax(280px, 0.75fr) 1.25fr; align-items: start; }
  .portrait { position: sticky; top: calc(var(--header-h) + 32px); }
}
.podcast { padding-block: var(--section-y); }
.podcast-grid { display: grid; gap: 2rem 4rem; align-items: center; }
.podcast-text { text-align: center; }
.podcast-text p { font-size: 1.05rem; }
.podcast-cover { width: min(420px, 100%); border-radius: var(--radius); box-shadow: var(--shadow); margin-inline: auto; }
.badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 1.4rem; }
.badges img { height: 40px; width: auto; }
@media (min-width: 900px) { .podcast-grid { grid-template-columns: 1fr 1fr; } }
.accreditations { padding-block: clamp(32px, 5vw, 56px); }
.logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1.5rem 3rem; }
.logos img { height: 64px; width: auto; }

/* ---------- Contact ---------- */
.contact-page { padding: calc(var(--header-h) + var(--section-y)) 0 var(--section-y); background: linear-gradient(180deg, #f4f5f1, #fff); }
.contact-card { padding: clamp(28px, 5vw, 56px); background: var(--paper); }
.contact-card h1 { text-align: center; }
.contact-list { list-style: none; margin: 1.5rem auto 0; padding: 0; width: fit-content; max-width: 100%; }
.contact-list li { display: grid; grid-template-columns: 28px 1fr; gap: 1.1rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid #ecece6; }
.contact-list li:last-child { border-bottom: 0; }
.contact-icon { width: 26px; height: 26px; }
.contact-list a { color: var(--ink); text-decoration-color: var(--green); }
.contact-social { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; }
.contact-social .social a { color: var(--ink); }

/* ---------- Legal ---------- */
.legal { padding: calc(var(--header-h) + var(--section-y)) 0 var(--section-y); background: #f4f5f1; }
.legal-card { padding: clamp(24px, 5vw, 56px); background: var(--paper); }
.legal-card h1 { text-align: center; }
.legal-card h2.script { font-size: clamp(2rem, 4.5vw, 2.8rem); margin-top: 1.2em; }
.legal-card h3 { font-size: 1.05rem; }
.legal-card p, .legal-card li { overflow-wrap: anywhere; }
