/* Winding Hill Stables — navy / tan / white */

:root {
  --navy-900: #0C1729;
  --navy-800: #14243D;
  --navy-700: #1D3252;
  --navy-400: #4A6383;
  --tan-500:  #B08D5B;
  --tan-400:  #C7A878;
  --tan-200:  #E7D9C1;
  --cream:    #FAF7F1;
  --white:    #FFFFFF;
  --ink:      #1B2434;
  --ink-soft: #4C566B;
  --rule:     #E2DBCF;

  --font-display: 'Boska', Georgia, serif;
  --font-body: 'Work Sans', system-ui, sans-serif;

  --text-hero: clamp(2.6rem, 6.2vw, 4.75rem);
  --text-2xl: clamp(2rem, 4vw, 3rem);
  --text-xl: clamp(1.5rem, 2.4vw, 2.125rem);
  --text-lg: 1.1875rem;
  --text-base: 1.0625rem;
  --text-sm: 0.9375rem;
  --text-xs: 0.8125rem;

  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  --section-y: clamp(4rem, 8vw, 8rem);
  --max: 1240px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 350;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.08; letter-spacing: -0.015em; margin: 0; color: var(--navy-800); }
h1 { font-size: var(--text-hero); }
h2 { font-size: var(--text-2xl); }
h3 { font-family: var(--font-body); font-size: var(--text-lg); font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
p { margin: 0 0 1rem; }

a { color: inherit; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--navy-800); color: var(--white);
  padding: 0.75rem 1.25rem; font-size: var(--text-sm);
}
.skip:focus { left: 0; }

:focus-visible { outline: 2px solid var(--tan-500); outline-offset: 3px; }

.eyebrow {
  font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--tan-500); margin: 0 0 1rem;
}
.eyebrow--light { color: var(--tan-200); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--navy-800); color: var(--white);
  font-family: var(--font-body); font-size: var(--text-sm); font-weight: 550;
  letter-spacing: 0.01em; text-decoration: none;
  padding: 0.9rem 1.6rem; border: 1px solid var(--navy-800); border-radius: 2px;
  cursor: pointer; transition: background 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn:hover { background: var(--navy-700); border-color: var(--navy-700); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.55); }
.btn--ghost:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }
.btn--sm { padding: 0.6rem 1.15rem; font-size: var(--text-xs); letter-spacing: 0.06em; text-transform: uppercase; }
.btn--full { width: 100%; padding: 1rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: var(--text-sm); font-weight: 550; color: var(--navy-800);
  text-decoration: none; border-bottom: 1px solid var(--tan-400);
  padding-bottom: 2px; transition: gap 0.25s var(--ease), border-color 0.25s var(--ease);
}
.link-arrow:hover { gap: 0.85rem; border-color: var(--navy-800); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(12, 23, 41, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.header--scrolled { border-bottom-color: rgba(199,168,120,0.28); box-shadow: 0 1px 18px rgba(0,0,0,0.28); }
.header__inner {
  max-width: var(--max); margin: 0 auto;
  padding: 0.85rem var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.brand { display: flex; flex-direction: column; align-items: stretch; gap: 0.32rem; text-decoration: none; color: var(--white); }
.brand__logo { display: block; width: clamp(178px, 21vw, 236px); height: auto; }
.brand__rule { display: block; height: 1px; background: rgba(255,255,255,0.9); }
.brand__sub { font-size: 0.5625rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--tan-400); text-align: center; margin-top: 0.1rem; }

.nav { display: flex; align-items: center; gap: 1.85rem; }
.nav a {
  font-size: var(--text-sm); font-weight: 450; text-decoration: none; color: rgba(255,255,255,0.88);
  position: relative; padding: 0.2rem 0; transition: color 0.2s var(--ease);
}
.nav a:not(.btn):hover { color: var(--white); }
.nav a.btn { background: var(--tan-500); border-color: var(--tan-500); }
.nav a.btn:hover { background: var(--tan-400); border-color: var(--tan-400); }
.nav a:not(.btn)::after {
  content: ''; position: absolute; left: 0; bottom: -2px; width: 0; height: 1px;
  background: var(--tan-500); transition: width 0.28s var(--ease);
}
.nav a:not(.btn):hover::after { width: 100%; }
.nav a.btn { color: var(--white); }

.menu-btn { display: none; background: none; border: 0; padding: 0.5rem; cursor: pointer; }
.menu-btn span { display: block; width: 24px; height: 1.5px; background: var(--white); margin: 5px 0; transition: transform 0.3s var(--ease), opacity 0.2s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-nav { display: none; flex-direction: column; border-top: 1px solid rgba(255,255,255,0.14); padding: 0.5rem var(--gutter) 1.25rem; }
.mobile-nav a { padding: 0.85rem 0; text-decoration: none; font-size: var(--text-base); color: rgba(255,255,255,0.9); border-bottom: 1px solid rgba(255,255,255,0.12); }
.mobile-nav a:last-child { border-bottom: 0; }
.mobile-nav.open { display: flex; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(82vh, 760px); display: flex; align-items: flex-end; overflow: hidden; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(12,23,41,0.94) 0%, rgba(12,23,41,0.74) 40%, rgba(12,23,41,0.38) 72%, rgba(12,23,41,0.45) 100%);
}
.hero__content {
  position: relative; z-index: 2;
  max-width: var(--max); width: 100%; margin: 0 auto;
  padding: clamp(4rem, 11vw, 8rem) var(--gutter) clamp(3rem, 6vw, 4.5rem);
  color: var(--white);
}
.hero h1 { color: var(--white); max-width: 20ch; }
.hero__lede { max-width: 54ch; margin-top: 1.5rem; font-size: var(--text-lg); font-weight: 300; color: rgba(255,255,255,0.9); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.25rem; }
.hero .btn:not(.btn--ghost) { background: var(--tan-500); border-color: var(--tan-500); color: var(--navy-900); font-weight: 600; }
.hero .btn:not(.btn--ghost):hover { background: var(--tan-400); border-color: var(--tan-400); }

/* ---------- Stat strip ---------- */
.strip { background: var(--navy-800); color: var(--white); }
.strip__list {
  max-width: var(--max); margin: 0 auto; padding: clamp(2rem, 4vw, 2.75rem) var(--gutter);
  list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
}
.strip__list li { display: flex; flex-direction: column; gap: 0.35rem; }
.strip__num { font-family: var(--font-display); font-size: clamp(1.75rem, 3.2vw, 2.5rem); line-height: 1; color: var(--tan-400); }
.strip__min { font-family: var(--font-body); font-size: 0.9rem; letter-spacing: 0.02em; }
.strip__label { font-size: var(--text-xs); letter-spacing: 0.13em; text-transform: uppercase; color: rgba(255,255,255,0.72); }

/* ---------- Sections ---------- */
.section { max-width: var(--max); margin: 0 auto; padding: var(--section-y) var(--gutter); }
.section__head { max-width: 58ch; margin-bottom: clamp(2.5rem, 5vw, 3.75rem); }
.section__lede { font-size: var(--text-lg); font-weight: 300; color: var(--ink-soft); margin-top: 1.25rem; }
.section__head h2 + .section__lede { margin-top: 1.25rem; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.card { background: var(--white); padding: clamp(1.75rem, 3vw, 2.5rem); transition: background 0.3s var(--ease); }
.card:hover { background: #FDFCF9; }
.card h3 { margin-bottom: 0.75rem; color: var(--navy-800); }
.card p { color: var(--ink-soft); font-size: var(--text-sm); margin: 0; }

/* ---------- Split sections ---------- */
.split {
  max-width: var(--max); margin: 0 auto; padding: var(--section-y) var(--gutter);
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center;
}
.split--rev .split__media { order: 2; }
.split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 2px; }
.split__body h2 { margin-bottom: 1.25rem; }
.split__body p { color: var(--ink-soft); }

.list { list-style: none; padding: 0; margin: 1.75rem 0; }
.list li {
  position: relative; padding-left: 1.6rem; margin-bottom: 0.8rem;
  font-size: var(--text-sm); color: var(--ink);
}
.list li::before {
  content: ''; position: absolute; left: 0; top: 0.6rem;
  width: 8px; height: 8px; border: 1.5px solid var(--tan-500); border-radius: 50%;
}

/* ---------- Full-bleed quote ---------- */
.bleed { position: relative; }
.bleed img { width: 100%; height: clamp(320px, 52vh, 560px); object-fit: cover; }
.bleed::after { content: ''; position: absolute; inset: 0; background: rgba(12,23,41,0.55); }
.bleed__quote {
  position: absolute; inset: 0; z-index: 2; margin: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(1rem, 2.5vw, 1.75rem);
  padding: 2rem var(--gutter); text-align: center;
}
.bleed__quote p {
  font-family: var(--font-display); font-size: clamp(1.5rem, 3.4vw, 2.5rem);
  line-height: 1.25; color: var(--white); max-width: 26ch; margin: 0; font-weight: 400;
}

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(0.5rem, 1.2vw, 1rem); }
.gallery__item { margin: 0; overflow: hidden; border-radius: 2px; background: var(--navy-800); }
.gallery__item img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.6s var(--ease), opacity 0.4s; }
.gallery__item:hover img { transform: scale(1.035); opacity: 0.94; }
.gallery__item--wide { grid-column: span 2; }
.gallery__item--wide img { aspect-ratio: 8 / 3; }

/* ---------- Contact ---------- */
.contact { border-top: 1px solid var(--rule); }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.contact__intro p { color: var(--ink-soft); }
.contact__intro h2 { margin-bottom: 1.25rem; }

.details { margin: 2.25rem 0 0; display: grid; gap: 1.5rem; }
.details dt { font-size: var(--text-xs); letter-spacing: 0.13em; text-transform: uppercase; color: var(--tan-500); font-weight: 600; margin-bottom: 0.4rem; }
.details dd { margin: 0; font-size: var(--text-sm); color: var(--ink); line-height: 1.6; }
.details dd a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--tan-400); padding-bottom: 1px; transition: color 0.2s ease, border-color 0.2s ease; }
.details dd a:hover { color: var(--tan-500); border-color: var(--tan-500); }
.footer__brand p a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(199, 168, 120, 0.5); transition: border-color 0.2s ease; }
.footer__brand p a:hover { border-color: var(--tan-400); }
.form__note a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

.form { background: var(--white); border: 1px solid var(--rule); padding: clamp(1.5rem, 3vw, 2.25rem); border-radius: 2px; }
.field { margin-bottom: 1.1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { display: block; font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 0.45rem; }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: var(--text-sm); color: var(--ink);
  background: var(--cream); border: 1px solid var(--rule); border-radius: 2px;
  padding: 0.75rem 0.85rem; transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { background: var(--white); border-color: var(--navy-400); outline-offset: 1px; }
.field input[aria-invalid="true"] { border-color: #A6412F; }
.form__note { font-size: var(--text-xs); color: var(--ink-soft); margin: 0.9rem 0 0; text-align: center; }
.form__note--ok { color: #2F6B48; font-weight: 550; }
.form__note--err { color: #A6412F; font-weight: 550; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-900); color: rgba(255,255,255,0.8); }
.footer__inner { max-width: var(--max); margin: 0 auto; padding: clamp(3rem, 6vw, 4.5rem) var(--gutter) 2.5rem; display: grid; gap: 2.25rem; }
.footer__brand { display: flex; align-items: flex-start; gap: 1.15rem; }
.footer__mark { display: block; width: 132px; height: auto; flex: none; margin-top: -0.35rem; opacity: 0.95; }
.footer__brand p { margin: 0; font-size: var(--text-sm); line-height: 1.7; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 1.5rem; padding-top: 1.75rem; border-top: 1px solid rgba(255,255,255,0.14); }
.footer__nav a { font-size: var(--text-sm); text-decoration: none; color: rgba(255,255,255,0.8); transition: color 0.2s; }
.footer__nav a:hover { color: var(--tan-400); }
.footer__legal { margin: 0; font-size: var(--text-xs); color: rgba(255,255,255,0.5); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav { display: none; }
  .menu-btn { display: block; }
  .split, .contact__grid { grid-template-columns: 1fr; gap: 2.25rem; }
  .split--rev .split__media { order: 0; }
  .strip__list { grid-template-columns: repeat(2, 1fr); gap: 1.75rem; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery__item--wide { grid-column: span 2; }
  .gallery__item--wide img { aspect-ratio: 16 / 9; }
}

@media (max-width: 560px) {
  .hero { min-height: 78vh; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .hero__actions .btn { width: 100%; }
  .gallery { grid-template-columns: 1fr; }
  .gallery__item--wide { grid-column: span 1; }
}

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

/* From the barn - Facebook feed */
.social { background: var(--navy-900); color: var(--white); }
.social .eyebrow { color: var(--tan-400); }
.social h2 { color: var(--white); }
.social .section__lede { color: rgba(255,255,255,0.78); }
.social__frame {
  max-width: 520px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--tan-500);
  border-radius: 2px;
  padding: 10px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.28);
}
.social__frame iframe { display: block; width: 100%; border: 0; }
.social__cta { text-align: center; margin-top: 2rem; }
