/* =========================================================
   The Rustic Barn Venue — Nora Springs, Iowa
   Site Forge · Shijil Kumar · digitalshijil.com
   Palette: Wheat–Cedar–Brass (Bridal-Blush adapted, rustic-heritage)
   Fonts: Cormorant Garamond + Inter Tight + JetBrains Mono
   ========================================================= */

:root {
  /* ---- PALETTE: Wheat / Cedar / Brass / Blush ---- */
  --wheat:      #F7EFE0;  /* barn straw — main page ground */
  --wheat-2:    #EDE0C8;  /* aged linen — panels */
  --wheat-soft: #FBF7EE;  /* near-white warmth */
  --cedar:      #2B1B12;  /* dark barn timber — ink */
  --cedar-2:    #1D1109;  /* deepest cedar */
  --brass:      #C2964A;  /* aged brass hardware — accent */
  --brass-2:    #D9B06A;  /* polished brass */
  --brass-soft: #ECCF9C;  /* brass tint */
  --blush:      #A86860;  /* prairie sunset — spot */
  --bark:       #6A5040;  /* warm bark — muted body */
  --bark-2:     #8E7060;  /* lighter bark */

  /* ---- STRUCTURAL ALIASES (base.css cascades off these) ---- */
  --paper:      var(--wheat);
  --paper-2:    var(--wheat-2);
  --paper-soft: var(--wheat-soft);
  --ink:        var(--cedar);
  --ink-2:      var(--cedar-2);
  --accent:     var(--brass);
  --accent-2:   var(--brass-2);
  --accent-soft:var(--brass-soft);
  --spot:       var(--blush);
  --muted:      var(--bark);
  --muted-2:    var(--bark-2);
  --line:       rgba(43,27,18,.12);
  --line-2:     rgba(43,27,18,.06);

  /* ---- TYPE ---- */
  --f-display: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  --f-body:    "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --f-mono:    "JetBrains Mono", "SF Mono", Menlo, monospace;

  /* ---- SCALE + DEPTH ---- */
  --container:        1320px;
  --container-narrow: 1040px;
  --gutter: clamp(20px, 4vw, 56px);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --shadow-soft: 0 1px 2px rgba(0,0,0,.04), 0 12px 32px -16px rgba(0,0,0,.12);
  --shadow-lift: 0 2px 4px rgba(0,0,0,.06), 0 24px 48px -20px rgba(0,0,0,.18);
}

/* ---- RESET ---- */
* { box-sizing: border-box; margin: 0; padding: 0; min-width: 0; }
*::selection { background: var(--cedar); color: var(--wheat); }
html { scroll-behavior: smooth; overflow-x: hidden; width: 100%; max-width: 100vw; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  color: var(--cedar);
  background: var(--wheat);
  overflow-x: hidden;
  width: 100%; max-width: 100vw;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
section, header, footer { max-width: 100vw; overflow-x: clip; position: relative; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: opacity .35s var(--ease); }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--wheat-2); }
::-webkit-scrollbar-thumb { background: var(--cedar); }

/* ---- FILM GRAIN ---- */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 200;
  opacity: .045; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}
@media (prefers-reduced-motion: reduce) { body::after { display: none; } }

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4, h5 {
  font-family: var(--f-display);
  font-weight: 400;
  letter-spacing: -.01em;
  line-height: 1.08;
  color: var(--cedar);
}
h1 { font-size: clamp(2.8rem, 7vw, 5.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3.6rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 2.1rem); }
p  { color: var(--bark); }
em, .italic { font-style: italic; font-family: var(--f-display); }
.serif { font-family: var(--f-display); font-weight: 400; letter-spacing: -.01em; }

/* eyebrow label — house signature */
.eyebrow {
  font-family: var(--f-body);
  text-transform: uppercase;
  letter-spacing: .42em;
  font-size: 10.5px;
  font-weight: 500;
  color: var(--cedar);
  display: inline-block;
}
.eyebrow::before {
  content: ""; display: inline-block; width: 28px; height: 1px;
  background: var(--brass); margin-right: 14px; vertical-align: middle;
}
.label-mono {
  font-family: var(--f-mono);
  font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--bark-2);
}

/* ---- LAYOUT ---- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(64px, 10vw, 140px) 0; }
.section--dark { background: var(--cedar); color: var(--wheat); }
.section--dark h1,.section--dark h2,.section--dark h3 { color: var(--wheat); }
.section--dark p { color: rgba(247,239,224,.72); }
.section--dark .eyebrow { color: var(--wheat); }
.section--paper2 { background: var(--wheat-2); }
.grid { display: grid; gap: clamp(24px, 4vw, 64px); }
.center { text-align: center; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-body); font-size: 11px; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase;
  padding: 16px 32px; border: 1px solid var(--cedar);
  background: var(--cedar); color: var(--wheat);
  transition: all .35s var(--ease);
}
.btn:hover { background: transparent; color: var(--cedar); opacity: 1; }
.btn--ghost { background: transparent; color: var(--cedar); }
.btn--ghost:hover { background: var(--cedar); color: var(--wheat); }
.btn--brass { background: var(--brass); border-color: var(--brass); color: var(--wheat); }
.btn--brass:hover { background: transparent; color: var(--brass); border-color: var(--brass); }
.btn--white { background: var(--wheat); border-color: var(--wheat); color: var(--cedar); }
.btn--white:hover { background: transparent; color: var(--wheat); border-color: var(--wheat); }

/* ---- ANNOUNCE BAR ---- */
.announce {
  background: var(--cedar); text-align: center; padding: 12px 20px;
  font-size: 10.5px; letter-spacing: .36em; text-transform: uppercase;
  color: rgba(247,239,224,.75); font-weight: 400;
}
.announce span { color: var(--brass-2); }

/* ---- STICKY NAV ---- */
.nav {
  position: sticky; top: 0; z-index: 100;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: 24px; padding: 20px var(--gutter);
  background: color-mix(in srgb, var(--wheat) 92%, transparent);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  transition: padding .35s var(--ease);
}
.nav.scrolled { padding-top: 13px; padding-bottom: 13px; }
.nav-logo { justify-self: start; font-family: var(--f-display); font-size: 1.3rem; letter-spacing: .04em; font-weight: 500; }
.nav-links { display: flex; gap: 32px; justify-self: center; list-style: none;
  font-size: 10.5px; letter-spacing: .28em; text-transform: uppercase; font-weight: 500; }
.nav-links a:hover { color: var(--brass); opacity: 1; }
.nav-cta { justify-self: end; }
.nav-burger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-burger span { width: 24px; height: 1.5px; background: var(--cedar); transition: .3s var(--ease); }

/* ---- HERO ---- */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, #2B1B12 0%, #4A2E1A 45%, #8A5A2A 100%);
}
.hero-bg img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  opacity: .62;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(43,27,18,.38) 0%, rgba(43,27,18,.65) 100%);
}
.hero .container { position: relative; z-index: 1; padding-top: clamp(80px, 14vh, 160px); padding-bottom: clamp(60px, 10vh, 120px); }
.hero-meta-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .1em;
  color: rgba(247,239,224,.7); margin-bottom: 28px;
}
.hero-meta-row .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--brass-2); }
.hero-title { color: var(--wheat); margin-bottom: 22px; max-width: 14ch; }
.hero-title em { color: var(--brass-2); }
.hero-tag { font-size: clamp(1rem, 1.6vw, 1.2rem); max-width: 52ch; color: rgba(247,239,224,.82); }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 40px; }

/* ---- MARQUEE ---- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 15px 0; background: var(--wheat-2); }
.marquee-track {
  display: flex; gap: 28px; white-space: nowrap; width: max-content;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--bark-2); animation: marq 32s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span:nth-child(even) { color: var(--brass); }
@keyframes marq { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ---- REVEAL ---- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in, .no-js .reveal, .reveal.reveal--shown { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---- IMAGE FALLBACK ---- */
.img-fallback { display: flex; align-items: center; justify-content: center;
  background: var(--wheat-2); border: 1px solid var(--line); min-height: 260px; }
.img-fallback-cap { font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--bark-2); padding: 24px; text-align: center; }

/* ---- SPACE CARDS ---- */
.space-card { background: var(--wheat-soft); border: 1px solid var(--line); overflow: hidden; }
.space-card-img { aspect-ratio: 4/3; overflow: hidden; }
.space-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.space-card:hover .space-card-img img { transform: scale(1.04); }
.space-card-body { padding: clamp(20px, 3vw, 32px); }
.space-card-body h3 { font-size: clamp(1.3rem, 2.2vw, 1.8rem); }

/* ---- STORY / SPLIT GRID ---- */
.story-img { aspect-ratio: 4/5; overflow: hidden; }
.story-img img { width: 100%; height: 100%; object-fit: cover; }

/* ---- GALLERY GRID ---- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.gallery-cell { aspect-ratio: 4/3; overflow: hidden; display: block; }
.gallery-cell img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.gallery-cell:hover img { transform: scale(1.05); }

/* ---- PROCESS STEPS ---- */
.step-num { font-family: var(--f-display); font-size: 3.2rem; font-weight: 400; color: var(--brass-soft); line-height: 1; margin-bottom: 12px; }

/* ---- TESTIMONIALS ---- */
.testimonial { border-left: 2px solid var(--brass); padding-left: 28px; }
blockquote p { color: var(--cedar); font-family: var(--f-display); font-style: italic; }

/* ---- FAQ ---- */
details { border-bottom: 1px solid var(--line); padding: 22px 0; }
details summary {
  font-family: var(--f-display); font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  cursor: pointer; list-style: none; color: var(--cedar);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; font-family: var(--f-mono); font-size: .9rem; color: var(--brass); flex-shrink: 0; }
details[open] summary::after { content: "−"; }
details p { margin-top: 14px; max-width: 72ch; }

/* ---- CONTACT FORM ---- */
.form-field { display: block; width: 100%; padding: 14px 16px;
  border: 1px solid var(--line); background: var(--wheat-soft);
  font-family: var(--f-body); font-size: 14px; color: var(--cedar);
  margin-bottom: 14px; outline: none;
  transition: border-color .3s var(--ease);
}
.form-field:focus { border-color: var(--brass); }
.form-field::placeholder { color: var(--bark-2); }
textarea.form-field { resize: vertical; }

/* ---- FOOTER ---- */
.footer { background: var(--cedar); color: var(--wheat); padding: clamp(56px, 8vw, 100px) 0 40px; }
.footer h3, .footer h4 { color: var(--wheat); }
.footer p, .footer a { color: rgba(247,239,224,.68); }
.footer a:hover { color: var(--brass-2); opacity: 1; }
.footer-credit {
  margin-top: 40px; padding-top: 24px;
  border-top: 1px solid rgba(247,239,224,.14);
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .06em;
  color: rgba(247,239,224,.42); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}

/* ---- UTILITIES ---- */
.mt-s { margin-top: 16px; }
.mt-m { margin-top: 32px; }
.mt-l { margin-top: 64px; }
.maxw-prose { max-width: 62ch; }

/* ---- RESPONSIVE ---- */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .nav { grid-template-columns: 1fr auto; }
  .nav-links.open {
    display: flex; position: fixed; inset: 64px 0 auto 0;
    flex-direction: column; background: var(--wheat);
    padding: 32px var(--gutter); gap: 22px;
    border-bottom: 1px solid var(--line); z-index: 99;
  }
  .grid { gap: 28px; }
  .hero-title { font-size: clamp(2.6rem, 11vw, 3.8rem); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid .gallery-cell:last-child { display: none; }
  .footer-credit { flex-direction: column; }
}
@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-grid .gallery-cell:last-child { display: block; }
  .gallery-grid .gallery-cell:nth-child(n+4) { display: none; }
}
