/* ============================================================
   SYCAMORE STABLES — Shared site stylesheet
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream: #F5F0E8;
  --parchment: #EDE5D4;
  --warm-white: #FAF7F2;
  --gold: #C9A96E;
  --gold-light: #DEC28E;
  --gold-dark: #8B6D3F;
  --sage: #7A8C6E;
  --charcoal: #2A2620;
  --brown: #4A3C2A;
  --ink: #1A1510;
  --text-muted: #7A6E5F;
  --nav-height: 132px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  background: var(--warm-white);
  color: var(--charcoal);
  overflow-x: hidden;
}

img { display: block; }

/* ── NAVIGATION ───────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 60px;
  height: var(--nav-height);
  transition: background 0.5s, backdrop-filter 0.5s, box-shadow 0.5s;
  background: rgba(250,247,242,0.0);
}

nav.scrolled {
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201, 169, 110, 0.2);
}

.nav-left, .nav-right { display: flex; gap: 40px; align-items: center; }
.nav-left { justify-content: flex-end; }
.nav-right { justify-content: flex-start; }

nav a {
  text-decoration: none;
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--charcoal);
  transition: color 0.3s, opacity 0.3s;
  opacity: 0.65;
  white-space: nowrap;
}

nav a.active { opacity: 1; color: var(--gold-dark); }
nav.scrolled a { color: var(--charcoal); opacity: 0.8; }
nav a:hover { opacity: 1; color: var(--gold-dark); }
nav.scrolled a:hover { color: var(--gold-dark); }
nav.scrolled a.active { color: var(--gold-dark); opacity: 1; }

/* Center-out hairline gold underline (hover + active) */
.nav-left a, .nav-right a:not(.enquire-btn) { position: relative; }
.nav-left a::after,
.nav-right a:not(.enquire-btn)::after {
  content: ''; position: absolute; left: 50%; right: 50%; bottom: -9px; height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  transition: left 0.38s cubic-bezier(0.4,0,0.2,1), right 0.38s cubic-bezier(0.4,0,0.2,1);
}
.nav-left a:hover::after, .nav-right a:not(.enquire-btn):hover::after,
.nav-left a.active::after, .nav-right a.active:not(.enquire-btn)::after {
  left: 0; right: 0;
}

/* Nav over a dark image (inner-page banners) */
nav.on-image:not(.scrolled) a { color: #fff; opacity: 0.78; }
nav.on-image:not(.scrolled) a:hover,
nav.on-image:not(.scrolled) a.active { color: #fff; opacity: 1; }
nav.on-image:not(.scrolled) .enquire-btn { border-color: rgba(255,255,255,0.5) !important; }

/* Logo */
.nav-logo {
  display: flex; flex-direction: column; align-items: center;
  gap: 4px; cursor: pointer; text-decoration: none;
  margin: 0 56px;
}
.logo-mark { width: 104px; height: 99px; object-fit: contain; }
.logo-img { transition: opacity 0.4s; }
.logo-light { display: none; }
nav.on-image:not(.scrolled) .logo-dark { display: none; }
nav.on-image:not(.scrolled) .logo-light { display: block; }

.logo-text {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300; font-size: 10px; letter-spacing: 0.35em;
  text-transform: uppercase; color: var(--charcoal);
  text-align: center; line-height: 1.5; transition: color 0.3s;
}
nav.on-image:not(.scrolled) .logo-text { color: #fff; }

.enquire-btn {
  border: 1px solid rgba(139,109,63,0.5);
  padding: 8px 22px; border-radius: 30px; opacity: 1 !important;
  margin-left: auto; margin-right: 24px;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.enquire-btn:hover {
  background: var(--gold-light); border-color: var(--gold-light);
  color: var(--charcoal) !important; opacity: 1 !important;
}
nav.on-image:not(.scrolled) .enquire-btn:hover { color: var(--charcoal) !important; }

/* Hamburger (mobile) */
.nav-toggle {
  display: none; grid-column: 3; justify-self: end;
  width: 30px; height: 22px; position: relative;
  background: none; border: none; cursor: pointer; padding: 0;
}
.nav-toggle span {
  position: absolute; left: 0; height: 1.5px; width: 100%;
  background: var(--charcoal); transition: transform 0.35s, opacity 0.3s, background 0.3s;
}
.nav-toggle span:nth-child(1) { top: 2px; }
.nav-toggle span:nth-child(2) { top: 10px; }
.nav-toggle span:nth-child(3) { top: 18px; }
nav.on-image:not(.scrolled) .nav-toggle span { background: #fff; }
body.menu-open .nav-toggle span { background: var(--charcoal); }
body.menu-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
body.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Mobile menu overlay */
.mobile-menu {
  position: fixed; inset: 0; z-index: 95;
  background: rgba(250,247,242,0.98);
  backdrop-filter: blur(8px);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 30px;
  opacity: 0; pointer-events: none; transition: opacity 0.4s;
}
body.menu-open .mobile-menu { opacity: 1; pointer-events: auto; }
.mobile-menu a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 30px; font-weight: 300; letter-spacing: 0.04em;
  color: var(--charcoal); text-decoration: none;
  opacity: 0; transform: translateY(12px);
  transition: opacity 0.5s, transform 0.5s, color 0.3s;
}
body.menu-open .mobile-menu a { opacity: 1; transform: translateY(0); }
.mobile-menu a:hover { color: var(--gold-dark); }
.mobile-menu a.active { color: var(--gold-dark); }
.mobile-menu .mm-rule {
  width: 40px; height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}

/* ── SHARED TYPE / COMPONENTS ─────────────────────────────── */
.eyebrow {
  font-family: 'Jost', sans-serif; font-weight: 300;
  font-size: 10px; letter-spacing: 0.35em; text-transform: uppercase;
  color: var(--gold-dark); margin-bottom: 20px;
}

.laurel-divider {
  height: 62px; padding: 0;
  background: url('laurel-gold.png') center center / contain no-repeat;
}
.laurel-divider > * { display: none; }

.btn-solid {
  display: inline-block; font-family: 'Jost', sans-serif;
  font-weight: 300; font-size: 11px; letter-spacing: 0.25em;
  text-transform: uppercase; color: var(--charcoal);
  background: var(--gold-light); padding: 15px 44px;
  text-decoration: none; border-radius: 40px; border: none; cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}
.btn-solid:hover { background: var(--gold); transform: translateY(-1px); }

.btn-outline {
  display: inline-block; font-family: 'Jost', sans-serif;
  font-weight: 300; font-size: 11px; letter-spacing: 0.25em;
  text-transform: uppercase; color: #fff;
  border: 1px solid rgba(201, 169, 110, 0.6);
  padding: 13px 36px; text-decoration: none; border-radius: 40px;
  transition: background 0.3s, border-color 0.3s;
}
.btn-outline:hover { background: var(--gold-light); border-color: var(--gold-light); color: var(--charcoal); }

.btn-outline.dark { color: var(--charcoal); border-color: rgba(139,109,63,0.45); }
.btn-outline.dark:hover { background: var(--gold-light); border-color: var(--gold-light); color: var(--charcoal); }

/* ── PAGE BANNER (inner pages) ────────────────────────────── */
.page-banner {
  position: relative; min-height: 64vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 160px 40px 90px; overflow: hidden;
}
.page-banner .banner-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transform: scale(1.04); transition: transform 9s ease-out;
}
.page-banner.loaded .banner-bg { transform: scale(1); }
.page-banner .banner-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(26,21,16,0.55) 0%, rgba(26,21,16,0.35) 55%, rgba(26,21,16,0.6) 100%);
}
.page-banner .banner-inner { position: relative; color: #fff; }
.page-banner .eyebrow { color: var(--gold-light); }
.page-banner h1 {
  font-family: 'Cormorant Garamond', serif; font-weight: 300;
  font-size: clamp(40px, 6vw, 82px); letter-spacing: 0.02em;
  line-height: 1.05; margin: 8px 0 18px;
}
.page-banner .banner-sub {
  font-family: 'Jost', sans-serif; font-weight: 300;
  font-size: 14px; letter-spacing: 0.2em; text-transform: uppercase;
  opacity: 0.7; max-width: 540px; margin: 0 auto;
}

/* Generic section helpers */
.section { padding: 120px 60px; }
.section.cream { background: var(--cream); }
.section.center { text-align: center; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 70px; }
.section-head h2 {
  font-family: 'Cormorant Garamond', serif; font-weight: 300;
  font-size: clamp(30px, 4vw, 50px); line-height: 1.2;
  color: var(--charcoal); margin-top: 12px;
}
.section-head p {
  font-size: 14px; line-height: 1.9; color: var(--text-muted);
  letter-spacing: 0.03em; margin-top: 18px;
}
.lede {
  font-size: 14px; line-height: 1.95; color: var(--text-muted);
  letter-spacing: 0.03em;
}

/* ── SPLIT (image + text) ─────────────────────────────────── */
.split { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.split.reverse .split-media { order: 2; }
.split-media { position: relative; min-height: 480px; background-size: cover; background-position: center; }
.split-media .media-tag {
  position: absolute; bottom: 22px; left: 22px;
  font-family: 'Jost', sans-serif; font-size: 9px; letter-spacing: 0.25em;
  text-transform: uppercase; color: rgba(255,255,255,0.85);
  background: rgba(26,21,16,0.4); padding: 7px 14px; backdrop-filter: blur(2px);
}
.split-body {
  padding: 90px 70px; display: flex; flex-direction: column; justify-content: center;
}
.split-body.cream { background: var(--cream); }
.split-body h2 {
  font-family: 'Cormorant Garamond', serif; font-weight: 300;
  font-size: clamp(28px, 3vw, 44px); line-height: 1.22; color: var(--charcoal); margin: 12px 0 24px;
}
.split-body p { font-size: 13.5px; line-height: 1.95; color: var(--text-muted); margin-bottom: 18px; letter-spacing: 0.03em; }
.split-num {
  font-family: 'Cormorant Garamond', serif; font-size: 56px; font-weight: 300;
  color: var(--gold-light); opacity: 0.55; line-height: 1;
}

/* Feature list with em-dash bullets */
.feature-list { list-style: none; display: flex; flex-direction: column; gap: 13px; margin: 8px 0 30px; }
.feature-list li { font-size: 13px; color: var(--text-muted); display: flex; align-items: flex-start; gap: 12px; line-height: 1.6; }
.feature-list li::before { content: '—'; color: var(--gold); flex-shrink: 0; }

/* ── STAT BAND ────────────────────────────────────────────── */
.stat-band {
  background: var(--ink); color: #fff; padding: 80px 60px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center;
}
.stat .num { font-family: 'Cormorant Garamond', serif; font-weight: 300; font-size: clamp(40px, 5vw, 64px); color: var(--gold-light); line-height: 1; }
.stat .lbl { font-size: 10px; letter-spacing: 0.25em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-top: 14px; }

/* ── CTA BAND ─────────────────────────────────────────────── */
.cta-band {
  position: relative; padding: 130px 40px; text-align: center; overflow: hidden;
}
.cta-band .cta-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.cta-band .cta-bg::after { content: ''; position: absolute; inset: 0; background: rgba(26,21,16,0.62); }
.cta-band .cta-inner { position: relative; color: #fff; max-width: 640px; margin: 0 auto; }
.cta-band .eyebrow { color: var(--gold-light); }
.cta-band h2 { font-family: 'Cormorant Garamond', serif; font-weight: 300; font-size: clamp(32px, 4.5vw, 58px); line-height: 1.15; margin: 10px 0 22px; }
.cta-band p { font-size: 13.5px; line-height: 1.9; opacity: 0.78; letter-spacing: 0.03em; margin-bottom: 40px; }

/* ── PROSE (about story) ──────────────────────────────────── */
.prose { max-width: 680px; margin: 0 auto; }
.prose p { font-size: 14px; line-height: 2; color: var(--text-muted); letter-spacing: 0.02em; margin-bottom: 22px; }
.prose .first-line::first-letter {
  font-family: 'Cormorant Garamond', serif; font-size: 64px; float: left;
  line-height: 0.8; padding: 6px 14px 0 0; color: var(--gold-dark);
}

/* ── ACCORDION / FAQ ──────────────────────────────────────── */
.faq { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid rgba(201,169,110,0.25); }
.faq-q {
  width: 100%; background: none; border: none; cursor: pointer; text-align: left;
  padding: 26px 40px 26px 0; position: relative;
  font-family: 'Cormorant Garamond', serif; font-size: 21px; font-weight: 400; color: var(--charcoal);
}
.faq-q::after {
  content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-family: 'Jost', sans-serif; font-weight: 200; font-size: 24px; color: var(--gold-dark); transition: transform 0.3s;
}
.faq-item.open .faq-q::after { content: '–'; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-a p { font-size: 13.5px; line-height: 1.9; color: var(--text-muted); padding: 0 40px 26px 0; letter-spacing: 0.03em; }

/* ── FOOTER ───────────────────────────────────────────────── */
footer {
  background: var(--ink);
  padding: 60px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-top: 1px solid rgba(201, 169, 110, 0.15);
  position: relative;
}
.scroll-top {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ink);
  border: 1px solid rgba(201, 169, 110, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: rgba(201, 169, 110, 0.55);
  transition: color 0.4s, border-color 0.4s, transform 0.4s;
}
.scroll-top:hover {
  color: var(--gold-light);
  border-color: var(--gold-light);
  transform: translate(-50%, -50%) translateY(-3px);
}
.scroll-top svg { display: block; }
.footer-links { display: flex; gap: 32px; }
footer > .footer-links { justify-content: flex-end; justify-self: end; }
.footer-links a, .footer-copy {
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.3); text-decoration: none; transition: color 0.3s;
}
.footer-links a:hover { color: var(--gold-light); }
.footer-credit {
  font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.22); margin-top: 2px;
}
.footer-credit a { color: rgba(255,255,255,0.4); text-decoration: none; transition: color 0.3s; }
.footer-credit a:hover { color: var(--gold-light); }
.footer-right { display: flex; justify-content: flex-start; justify-self: start; }
.footer-right .footer-links { gap: 24px; }
.footer-logo { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 0 64px; }
.footer-logo img { width: 78px; height: 74px; object-fit: contain; opacity: 0.85; }
.footer-logo-text {
  font-family: 'Cormorant Garamond', serif; font-weight: 300;
  font-size: 9px; letter-spacing: 0.4em; text-transform: uppercase;
  color: rgba(255,255,255,0.25); text-align: center; line-height: 1.7;
}

/* ── SCROLL REVEAL (gated behind .js so content is visible if JS fails) ── */
.reveal { opacity: 1; }
html.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s ease, transform 0.8s ease; }
html.js .reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  nav { padding: 0 32px; }
  .nav-left, .nav-right { gap: 26px; }
  .section { padding: 90px 40px; }
}

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .split-media { min-height: 300px; }
  .split-body { padding: 60px 32px; }
  .stat-band { grid-template-columns: 1fr 1fr; gap: 40px 20px; padding: 60px 32px; }
}

@media (max-width: 760px) {
  :root { --nav-height: 66px; }
  nav { padding: 0 22px; grid-template-columns: auto 1fr; }
  .nav-left, .nav-right { display: none; }
  .nav-logo { grid-column: 1; align-items: flex-start; }
  .logo-mark { width: 68px; height: 65px; }
  .logo-text { font-size: 8px; letter-spacing: 0.28em; }
  .nav-toggle { display: block; }
  .section { padding: 70px 24px; }
  .page-banner { min-height: 52vh; padding: 130px 24px 70px; }
  footer {
    grid-template-columns: 1fr; gap: 34px; text-align: center;
    justify-items: center; padding: 50px 24px;
  }
  .footer-right { justify-content: center; }
  .footer-logo { margin: 0; justify-self: stretch; width: 100%; }
  .footer-copy, .footer-credit { white-space: nowrap; }
  .footer-links { flex-wrap: wrap; justify-content: center; gap: 22px; }
}
