/* ============================================================================
   MAIN SITE STYLES  —  Mind & Body Collective
   ----------------------------------------------------------------------------
   The core website styling: design tokens, layout, all page sections and the
   responsive rules. Integration-specific styling lives in its own files and
   loads AFTER this one (they depend on the tokens defined here):
       css/payg.css   — Pay-As-You-Go modal (copy + CTA buttons)
       css/legal.css  — Privacy Policy modal + rendered-markdown typography
       css/whatsapp.css — floating WhatsApp chat widget
   ============================================================================ */

/* ============================================================
   DESIGN TOKENS  — tweak the palette here in one place
   (these tokens also feed the payg / legal / whatsapp files)
   ============================================================ */
:root {
  /* Brand palette — taken from the logo's Pantone colours:
     Teal (Pantone 3265 C), Dark Grey (424 C), Silver (877 C).
     Dark theme built on grey tints of 424 C, with teal as the accent. */
  --brand-grey: #595a5c;  /* navbar grey — lightened from #3f3f3f toward Pantone 424 C (#63666a)
                             so the logo reads clearly; still a mid-dark grey (only the nav uses it) */
  --bg:        #182a2c;   /* dark teal-charcoal background — complements the grey + teal (not black) */
  --bg-alt:    #1f3335;   /* slightly lighter teal panel bg */
  --card:      #26393b;   /* card surface (teal-tinted) */
  --text:      #f3f4f4;   /* primary text (bright silver-white) */
  --muted:     #9ea3a6;   /* secondary text — Silver, Pantone 877 C (~#8A8D8F) */
  --accent:    #00c7b0;   /* Teal, Pantone 3265 C */
  --accent-2:  #b8bcbe;   /* Silver (877 C) light — secondary accent */
  --dk-grey:   #63666a;   /* Dark Grey, Pantone 424 C (nominal) */
  --border:    rgba(255,255,255,.09);
  --radius:    16px;
  --maxw:      1180px;
  --shadow:    0 20px 60px rgba(0,0,0,.45);
}

/* ---------- Reset / base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; overflow-x: clip; }   /* clip (not hidden) → no mobile h-scroll; scroll-padding clears the fixed nav on anchor jumps */
body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-top: 76px;   /* clears the fixed navbar (76px tall) so content isn't hidden under it */
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

section { padding: 96px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.eyebrow {
  display: inline-block;
  font-size: .8rem; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 14px;
}
h1, h2, h3 { line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px;
  font-weight: 700; font-size: .95rem; cursor: pointer;
  border: 2px solid transparent; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #0b0d0f; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,199,176,.4); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* ============================================================
   NAVBAR  (fixed — always visible; body padding-top offsets it)
   ============================================================ */
.nav {
  /* fixed (not sticky) so it's ALWAYS visible — sticky silently breaks when an
     ancestor has overflow set (body overflow-x:hidden / html overflow-x:clip).
     body padding-top:76px offsets content to match the nav height. */
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--brand-grey);   /* grey menu bar (Pantone 424 C family), kept distinct from the sections */
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 1.05rem; letter-spacing: -0.01em; }
/* Brand logo — local file in /img. Replace img/logo.png with your own if needed. */
.brand img { height: 40px; width: auto; }

.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a { font-size: .95rem; color: var(--muted); font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--text); }

.nav-cta { display: flex; align-items: center; gap: 16px; }

/* Hamburger (hidden on desktop) */
.hamburger {
  display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px;
}
.hamburger span { width: 26px; height: 2px; background: var(--text); transition: transform .3s, opacity .3s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: calc(100vh - 76px);
  display: flex; position: relative; overflow: hidden;
  /* Top section uses the page background; the transparent logo sits directly on it. */
  background: var(--bg);
}
/* Subtle studio photo down the RIGHT, darkened + faded to the left so it sits behind
   the logo without hurting legibility. Tune the rgba stops below to dial darkness. */
.hero::before {
  content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: min(680px, 58%);
  z-index: 0; pointer-events: none;
  background:
    linear-gradient(to left, rgba(16,28,30,.55), rgba(24,42,44,.85) 55%, var(--bg) 100%),
    url('../img/studio.jpg') center / cover no-repeat;
}
.hero-inner {
  width: 100%; max-width: var(--maxw); margin: 0 auto;
  padding: 40px 24px 56px; position: relative; z-index: 1;   /* logo/buttons above the photo */
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 40px;
}
/* Logo + buttons are grouped and vertically centred in the hero (via justify-content
   + gap), so the CTAs are always in view without scrolling. */
.hero-logo { width: min(620px, 88%); height: auto; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

/* ============================================================
   ABOUT
   ============================================================ */
.about { position: relative; background: var(--bg-alt); overflow: hidden; }   /* alternating band */
.team  { background: var(--bg); }       /* alternating band */
/* Subtle philosophy photo down the LEFT, darkened + faded to the right so the copy
   can overlap it yet stay readable. Tune the rgba stops below to dial darkness. */
.about::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: min(680px, 58%);
  z-index: 0; pointer-events: none;
  background:
    linear-gradient(to right, rgba(16,28,30,.55), rgba(31,51,53,.85) 55%, var(--bg-alt) 100%),
    url('../img/philosophy.jpg') center / cover no-repeat;
}
.about > .container { position: relative; z-index: 1; }   /* copy sits above the photo */
/* Philosophy copy (rendered from content/our-studio.md) */
.about-copy { max-width: 760px; margin: 0 auto; text-align: center; }
.about-copy p { text-align: left; }
.about-copy p + p { margin-top: 16px; }
.feature-list {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 28px;
  margin: 32px auto 0; max-width: 640px; text-align: left;
}
.feature-list li { display: flex; align-items: flex-start; gap: 10px; font-weight: 600; }
.feature-list li::before { content: "✔"; color: var(--accent); font-weight: 700; }
/* One column per coach (Chris & Sian) — rendered from content/our-story.md */
/* Team intro prose — centred 760px column with LEFT-aligned text (like .about-copy). */
.team-intro { max-width: 760px; margin: 0 auto 48px; }
.team-intro p { text-align: left; }
.team-intro p + p { margin-top: 14px; }
.about-people { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.person { text-align: center; }
.person .about-photo { max-width: 320px; margin: 0 auto 24px; }
.about-photo { position: relative; }
/* Coach portrait — REPLACE with a real photo */
.about-photo img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; object-fit: cover; aspect-ratio: 4/5; }
.about-photo::after {
  content: ""; position: absolute; inset: -14px -14px auto auto; width: 120px; height: 120px;
  border: 3px solid var(--accent); border-radius: 20px; z-index: -1;
}
.person-name { font-size: 1.4rem; margin-bottom: 4px; }
.person-role { color: var(--accent); font-weight: 700; font-size: .9rem; margin-bottom: 16px; }
.person p { text-align: left; }   /* bio prose left-aligned (photo/name/role stay centred), like .about-copy */
.person p + p { margin-top: 14px; }

/* ============================================================
   GALLERY (dynamic — populated by js/gallery.js)
   ============================================================ */
.gallery { background: var(--bg-alt); }
.gallery-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.gallery-item {
  margin: 0; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); background: var(--card); cursor: pointer;
}
.gallery-item img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block;
  transition: transform .35s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-empty { grid-column: 1 / -1; text-align: center; }

/* Lightbox (created by gallery.js) */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 2500; padding: 24px;
  background: rgba(0,0,0,.85); backdrop-filter: blur(4px);
  align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 10px; box-shadow: var(--shadow); }
.lightbox-close {
  position: absolute; top: 18px; right: 26px; z-index: 1;
  font-size: 2.4rem; line-height: 1; background: none; border: 0; color: #fff; cursor: pointer;
}
.lightbox-close:hover { color: var(--accent); }

/* ============================================================
   SERVICES
   ============================================================ */
.services { position: relative; background: var(--bg); overflow: hidden; }   /* alternating band */
/* Subtle studio photo down the RIGHT, faded into the section bg. */
.services::before {
  content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: min(680px, 58%);
  z-index: 0; pointer-events: none;
  background:
    linear-gradient(to left, rgba(16,28,30,.55), rgba(24,42,44,.85) 55%, var(--bg) 100%),
    url('../img/studio2.jpg') center / cover no-repeat;
}
.services > .container { position: relative; z-index: 1; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px 26px; transition: transform .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-6px); border-color: var(--accent); }
.card .icon {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(0,199,176,.14); color: var(--accent); margin-bottom: 18px; font-size: 1.6rem;
}
.card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .95rem; }
.card p + p { margin-top: 12px; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
#our-community { position: relative; background: var(--bg); overflow: hidden; }   /* Testimonials/Community — alternating band (--bg: sits between Timetable --bg-alt + Partners --bg-alt; swapped ahead of Partners 2026-07-14) */
/* Subtle studio photo down the RIGHT, faded into the section bg. */
#our-community::before {
  content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: min(680px, 58%);
  z-index: 0; pointer-events: none;
  background:
    linear-gradient(to left, rgba(16,28,30,.55), rgba(24,42,44,.85) 55%, var(--bg-alt) 100%),
    url('../img/studio4.jpg') center / cover no-repeat;
}
#our-community > .container { position: relative; z-index: 1; }
/* Testimonials use the shared carousel (.carousel / .carousel-track, below);
   3 cards across on desktop. Flex column so the attribution bottom-aligns and
   every card matches the tallest one's height. */
.quote {
  flex: 0 0 calc((100% - 48px) / 3);   /* 3 cards + 2×24px gaps across */
  min-width: 0;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px 28px; position: relative;
  display: flex; flex-direction: column;
}
.quote .stars { color: var(--accent); letter-spacing: 3px; margin-bottom: 14px; }
.quote p { font-size: 1.02rem; margin-bottom: 22px; }
.quote .who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.quote .who img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.quote .who .name { font-weight: 700; font-size: .95rem; }
.quote .who .role { color: var(--muted); font-size: .82rem; }

/* ============================================================
   SHARED CAROUSEL — used by BOTH the Testimonials (#quotesCarousel)
   and Friends-of-the-Studio partners (#partnersCarousel) sections.
   Wired by setupCarousel() in content.js: prev/next arrows, gentle
   auto-advance, and a SEAMLESS infinite loop (cloned items + a
   scroll reset at the loop point, so no visible rewind).
   ------------------------------------------------------------
   Cards are horizontally-scrolling + snap-aligned. Per-card width
   (how many show at once) is set on `.quote` / `.partner`.
   ============================================================ */
.carousel { position: relative; }
/* the scrolling track (native scroll-snap; scrollbar hidden, arrows/auto-advance drive it) */
.carousel-track {
  display: flex; gap: 24px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 6px 4px 20px;               /* room for hover lift + focus ring */
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;               /* Firefox: hide scrollbar */
}
/* NOTE: no `scroll-behavior: smooth` here on purpose — the JS uses instant
   `scrollLeft` writes for the invisible loop reset (a CSS smooth would animate
   those into a visible rewind). Animated moves use scrollBy({behavior:'smooth'}). */
.carousel-track::-webkit-scrollbar { display: none; }   /* WebKit: hide scrollbar */
.carousel-track > * { scroll-snap-align: start; }

/* ============================================================
   OUR NEIGHBOURHOOD — local business partner cards
   Content from content/partners.md (js/content.js → renderPartners).
   Each `.partner` links out to a local business. 4 across → 2 → ~1 (peek).
   ============================================================ */
.partners { background: var(--bg-alt); }   /* alternating band (--bg-alt: sits between Community --bg + Contact --bg; swapped after Community 2026-07-14) */
.partners .section-sub { margin-top: 14px; }
.partner {
  flex: 0 0 calc((100% - 72px) / 4);   /* 4 cards + 3×24px gaps across */
  min-width: 0;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 24px; text-align: center; text-decoration: none; color: var(--text);
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.partner:hover, .partner:focus-visible {
  transform: translateY(-4px); border-color: var(--accent);
  box-shadow: 0 10px 30px rgba(0,199,176,.14); outline: none;
}
/* Optional logo image — only rendered when the partner has a `logo:` line. */
.partner-logo { height: 72px; display: flex; align-items: center; justify-content: center; }
.partner-logo img { max-height: 72px; max-width: 100%; object-fit: contain; }
/* Business name — ALWAYS shown as the card title (sits under the logo if there is one;
   is the main visual on name-only cards). */
.partner-name { font-weight: 800; font-size: 1.05rem; color: var(--accent); line-height: 1.2; }
.partner p { color: var(--muted); font-size: .92rem; line-height: 1.5; margin: 0; }
/* prev/next arrows, floated just outside the track edges */
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--border); background: var(--card); color: var(--text);
  font-size: 1.5rem; line-height: 1; display: flex; align-items: center; justify-content: center;
  transition: background .2s, color .2s, border-color .2s;
}
.carousel-btn:hover { background: var(--accent); color: #06211d; border-color: var(--accent); }
.carousel-btn.prev { left: -10px; }
.carousel-btn.next { right: -10px; }

/* ============================================================
   OUR TIMETABLE  section band
   Rendered by js/timetable.js from the Google Sheet CSV. The grid's
   horizontal axis is TIME (one column per 15 min); rows are the days.
   ============================================================ */
.timetable { background: var(--bg-alt); }   /* alternating band (now before Partners: sits between Programmes --bg + Partners --bg; swapped with Community 2026-07-14) */

/* Legend */
.tt-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; margin: -24px auto 32px; }
.tt-key { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--muted); }
.tt-swatch { width: 16px; height: 16px; border-radius: 5px; flex-shrink: 0; }

/* Horizontal scroller — keeps the wide grid inside the column (never widens the page). */
.tt-scroll {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--card); box-shadow: var(--shadow);
}
.tt-scroll .tt-empty { padding: 28px; text-align: center; }

.tt-grid {
  --tt-daycol: 104px;   /* width of the left day-label column */
  --tt-colmin: 15px;    /* min width per 15-min column → grid scrolls when it can't shrink further */
  --tt-rowmin: 54px;    /* min height of a day row */
  display: grid; width: 100%; position: relative;
}

/* Sticky day column so labels stay visible while scrolling the week sideways. */
.tt-corner { grid-row: 1; grid-column: 1; position: sticky; left: 0; z-index: 3;
  background: var(--card); border-bottom: 1px solid var(--border); }
.tt-day {
  position: sticky; left: 0; z-index: 2; background: var(--card);
  display: flex; align-items: center; padding: 8px 12px;
  font-weight: 800; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em;
  color: var(--text); border-top: 1px solid var(--border); border-right: 1px solid var(--border);
}

.tt-hour {
  grid-row: 1; white-space: nowrap; padding: 10px 6px;
  font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--muted); border-bottom: 1px solid var(--border); border-left: 1px solid var(--border);
}
.tt-line { border-left: 1px solid var(--border); z-index: 0; pointer-events: none; }  /* vertical hour rules */
.tt-lane { border-top: 1px solid var(--border); z-index: 0; }

.tt-block {
  z-index: 1; margin: 3px; padding: 6px 8px; border-radius: 9px; overflow: hidden;
  min-width: 0; color: #0e1f1d; box-shadow: 0 1px 2px rgba(0,0,0,.28);
  display: flex; flex-direction: column; justify-content: center; gap: 2px;
}
.tt-block .tt-t { font-weight: 800; font-size: .74rem; line-height: 1.1; }
.tt-block .tt-l { font-size: .72rem; font-weight: 600; line-height: 1.15; overflow: hidden; }

/* Block / swatch colours — teal accent + a complementary gold & blue, all readable on the dark theme. */
.tt-group,   .tt-swatch.tt-group   { background: var(--accent); }   /* teal  — classes & PT */
.tt-private, .tt-swatch.tt-private { background: #e6c14b; }         /* gold  — private / gym-only */
.tt-event,   .tt-swatch.tt-event   { background: #6db8e0; }         /* blue  — workshops & events */

/* Error / unavailable state (shown by js/timetable.js when the sheet can't be read). */
.tt-error { padding: 44px 28px; text-align: center; }
.tt-error-icon { font-size: 2rem; line-height: 1; }
.tt-error h3 { font-size: 1.2rem; margin: 14px 0 8px; }
.tt-error p { color: var(--muted); max-width: 560px; margin: 0 auto; }
.tt-error a { color: var(--accent); text-decoration: underline; }
.tt-error-support {
  margin-top: 20px !important; padding-top: 18px; font-size: .82rem; line-height: 1.5;
  border-top: 1px solid var(--border);
}
.tt-error-support strong { color: var(--text); }
.tt-error-support code {
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: .82em;
  background: var(--bg); border: 1px solid var(--border); border-radius: 6px;
  padding: 2px 8px; color: var(--accent); white-space: nowrap;
}

@media (max-width: 720px) {
  .tt-grid { --tt-daycol: 78px; --tt-rowmin: 48px; }
  .tt-day { font-size: .68rem; padding: 6px 8px; }
  .tt-block .tt-t { font-size: .68rem; }
  .tt-block .tt-l { font-size: .66rem; }
}

/* Sub-heading under a section eyebrow/h2 (Timetable, Partners, former PAYG modal). */
.section-sub { margin-top: 14px; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { background: var(--bg); }   /* alternating band (flipped when Partners section was added before Contact) */
/* align-items: stretch → both columns take the taller column's height, so the form bottom-aligns with the map column */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: stretch; }
.contact h2 { margin-bottom: 16px; }
.contact .lead { color: var(--muted); margin-bottom: 28px; }
.contact-info li { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; color: var(--muted); }
.contact-info .ci-icon { color: var(--accent); font-size: 1.2rem; width: 24px; text-align: center; }
.socials { display: flex; gap: 14px; margin-top: 28px; }
.socials a {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--card); border: 1px solid var(--border); transition: .2s; font-weight: 700; font-size: .8rem;
}
.socials a:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-3px); }

/* Embedded location map — constrained to the contact column (width:100%), never full-page. */
.contact-map { margin-top: 24px; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.contact-map iframe { display: block; width: 100%; height: 150px; border: 0; }

/* Form is a flex column so the "Your Goals" field can grow to fill the height the stretched
   grid gives it, keeping the form the same height as (and bottom-aligned with) the map column. */
form { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px;
  display: flex; flex-direction: column; }
.field-goals { flex: 1 1 auto; display: flex; flex-direction: column; }
.field-goals textarea { flex: 1 1 auto; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%; padding: 13px 16px; border-radius: 12px;
  background: var(--bg); border: 1px solid var(--border); color: var(--text);
  font-family: inherit; font-size: .95rem; transition: border-color .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 110px; }
form .btn-primary { width: 100%; justify-content: center; margin-top: 6px; }
.form-note { font-size: .82rem; color: var(--muted); text-align: center; margin-top: 14px; }
.form-success { display: none; color: var(--accent); font-weight: 600; text-align: center; margin-top: 14px; }
.form-error { display: none; color: #ff8f8f; font-weight: 600; text-align: center; margin-top: 14px; }

/* ============================================================
   FOOTER
   ============================================================ */
footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding: 40px 0; }   /* alternating band (flipped when Partners section was added) */
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-links { display: flex; flex-wrap: wrap; gap: 26px; }   /* wrap so the link row never forces h-scroll on narrow screens */
.footer-links a { color: var(--muted); font-size: .9rem; transition: color .2s; }
.footer-links a:hover { color: var(--accent); }
footer .copy { color: var(--muted); font-size: .88rem; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 940px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .partner { flex-basis: calc((100% - 24px) / 2); }   /* carousel: 2 across */
  .quote { flex-basis: calc((100% - 24px) / 2); }     /* carousel: 2 across */
  .carousel-btn.prev { left: 0; }
  .carousel-btn.next { right: 0; }
  .about-people { grid-template-columns: 1fr; gap: 48px; }
  .person { text-align: center; }
  .person .about-photo { max-width: 360px; margin: 0 auto 24px; }
  .feature-list { grid-template-columns: 1fr; max-width: 360px; }
  /* On mobile the copy is centred, so spread the photo full-width and darken it more. */
  .about::before {
    width: 100%;
    background:
      linear-gradient(to right, rgba(16,28,30,.82), rgba(31,51,53,.90)),
      url('../img/philosophy.jpg') center / cover no-repeat;
  }
  .hero::before {
    width: 100%;
    background:
      linear-gradient(to left, rgba(16,28,30,.82), rgba(24,42,44,.90)),
      url('../img/studio.jpg') center / cover no-repeat;
  }
  .services::before {
    width: 100%;
    background:
      linear-gradient(to left, rgba(16,28,30,.85), rgba(24,42,44,.92)),
      url('../img/studio2.jpg') center / cover no-repeat;
  }
  #our-community::before {
    width: 100%;
    background:
      linear-gradient(to left, rgba(16,28,30,.85), rgba(24,42,44,.92)),
      url('../img/studio4.jpg') center / cover no-repeat;
  }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 720px) {
  section { padding: 72px 0; }
  .partner { flex-basis: 82%; }   /* carousel: ~1 card with a peek of the next */
  .quote { flex-basis: 88%; }     /* carousel: ~1 card with a peek of the next */
  .hamburger { display: flex; }
  /* Desktop nav links become a slide-down mobile panel */
  .nav-links {
    position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; gap: 0; align-items: stretch;
    background: var(--bg-alt); border-bottom: 1px solid var(--border);
    max-height: 0; overflow: hidden; transition: max-height .35s ease;
  }
  .nav-links.open { max-height: 480px; }
  .nav-links a { padding: 16px 24px; border-top: 1px solid var(--border); }
  .cards { grid-template-columns: 1fr; }
  /* Footer stacks + centres so the 8 quick-links wrap tidily (no h-scroll). */
  .footer-inner { flex-direction: column; text-align: center; gap: 18px; }
  .footer-links { justify-content: center; gap: 12px 20px; }
}
