/* ==========================================================================
   Appanoose Country Club — Centerville, Iowa
   Theme: "Clubhouse at Dusk" — deep pine, leather, and warm brass
   ========================================================================== */

:root {
  --pine-950: #0a1210;
  --pine-900: #0d1815;
  --pine-800: #122420;
  --pine-700: #17322b;
  --leather-900: #1c1712;
  --leather-800: #241d16;
  --gold-100: #f6e6bd;
  --gold-300: #e8c877;
  --gold-500: #c9a24b;
  --gold-700: #9c7a2e;
  --rust-600: #8a3b2a;
  --rust-700: #6f2e21;
  --ivory: #f3ecdd;
  --ivory-dim: #cdbfa8;
  --line: rgba(232, 200, 119, 0.22);

  --font-display: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --font-body: "Jost", "Helvetica Neue", Arial, sans-serif;

  --vh: 1svh;
  --section-pad: clamp(1.5rem, 5vw, 3rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--pine-950);
  color: var(--ivory);
  font-family: var(--font-body);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0;
  letter-spacing: 0.01em;
}

h2.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--gold-100);
  line-height: 1.1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.68rem;
  color: var(--gold-500);
  margin-bottom: 0.9rem;
}
.eyebrow::before,
.eyebrow::after {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--gold-500);
  opacity: 0.7;
}

p { line-height: 1.65; color: var(--ivory-dim); font-weight: 300; }
.lede { font-size: clamp(1rem, 1.6vw, 1.15rem); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.8rem;
  border-radius: 2px;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  text-decoration: none;
  border: 1px solid var(--gold-500);
  transition: all 0.3s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(160deg, var(--gold-300), var(--gold-700));
  color: var(--pine-950);
  font-weight: 500;
}
.btn-primary:hover { filter: brightness(1.12); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--gold-100);
}
.btn-ghost:hover { background: rgba(232,200,119,0.1); }
.btn-row { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem clamp(1.2rem, 4vw, 3rem);
  background: linear-gradient(to bottom, rgba(10,18,16,0.92), rgba(10,18,16,0));
  backdrop-filter: blur(2px);
  transition: background 0.4s ease, padding 0.3s ease;
}
.site-header.scrolled {
  background: rgba(10,18,16,0.92);
  border-bottom: 1px solid var(--line);
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}
.brand img { height: 40px; width: auto; transition: height 0.3s ease; }
.site-header.scrolled .brand img { height: 34px; }
.brand-text {
  font-family: var(--font-display);
  color: var(--gold-100);
  line-height: 1.05;
}
.brand-text .b1 { display: block; font-size: 1.05rem; letter-spacing: 0.06em; }
.brand-text .b2 { display: block; font-size: 0.62rem; letter-spacing: 0.32em; color: var(--gold-500); text-transform: uppercase; }

.main-nav { display: flex; align-items: center; gap: 2.2rem; }
.main-nav a {
  text-decoration: none;
  color: var(--ivory);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  position: relative;
  padding-bottom: 4px;
}
.main-nav a::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--gold-500);
  transition: width 0.3s ease;
}
.main-nav a:hover::after,
.main-nav a.active::after { width: 100%; }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  border-radius: 50%;
  position: relative;
  cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  position: absolute;
  left: 11px; right: 11px;
  height: 1px;
  background: var(--gold-100);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle span { top: 50%; transform: translateY(-50%); }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-toggle.open span { background: transparent; }
.nav-toggle.open span::before { transform: rotate(45deg); top: 0; }
.nav-toggle.open span::after { transform: rotate(-45deg); top: 0; }

/* ---------- Scroll-snap frame (desktop optional, mobile primary) ---------- */
.snap-frame {
  height: 100svh;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
}
.snap-frame::-webkit-scrollbar { display: none; }

.panel {
  min-height: 100svh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--section-pad) + 3.2rem) 0 var(--section-pad);
}

/* Side dot navigation */
.dot-nav {
  position: fixed;
  right: clamp(0.9rem, 2.4vw, 2.4rem);
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.dot-nav a {
  width: 9px; height: 9px;
  border-radius: 50%;
  border: 1px solid var(--gold-500);
  background: transparent;
  transition: all 0.3s ease;
  position: relative;
}
.dot-nav a.active { background: var(--gold-300); box-shadow: 0 0 10px rgba(232,200,119,0.7); }
.dot-nav a .tip {
  position: absolute;
  right: 18px; top: 50%; transform: translateY(-50%);
  font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold-100);
  white-space: nowrap;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease;
}
.dot-nav a:hover .tip { opacity: 0.9; }

.scroll-cue {
  position: absolute;
  bottom: 1.6rem; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  color: var(--gold-300);
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  opacity: 0.85;
}
.scroll-cue .line {
  width: 1px; height: 34px;
  background: linear-gradient(to bottom, var(--gold-300), transparent);
  animation: pulseLine 2.2s ease-in-out infinite;
}
@keyframes pulseLine { 0%,100% { opacity: 0.3; } 50% { opacity: 1; } }

.container {
  width: min(1180px, 92vw);
  margin: 0 auto;
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(ellipse 90% 60% at 50% 0%, rgba(201,162,75,0.16), transparent 60%),
    linear-gradient(180deg, var(--pine-900) 0%, var(--pine-950) 55%, #060b09 100%);
  align-items: center;
  text-align: center;
  overflow: hidden;
}
.hero-scene {
  position: absolute; inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-scene .sun {
  position: absolute;
  left: 50%; top: 30%;
  width: min(46vw, 420px); height: min(46vw, 420px);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232,200,119,0.55), rgba(232,200,119,0.08) 55%, transparent 72%);
  filter: blur(2px);
}
.hero-scene svg { position: absolute; bottom: 0; left: 0; width: 100%; height: auto; }

.hero-content { position: relative; z-index: 2; }
.hero-mark { width: clamp(70px, 12vw, 108px); margin: 0 auto 1.4rem; opacity: 0.95; }
.hero h1 {
  font-size: clamp(2.6rem, 8vw, 5.4rem);
  color: var(--gold-100);
  line-height: 1.02;
  text-shadow: 0 2px 30px rgba(0,0,0,0.5);
}
.hero h1 em {
  font-style: normal;
  display: block;
  color: var(--gold-300);
  font-size: 0.42em;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  margin-top: 0.9rem;
}
.hero .tag {
  max-width: 42ch;
  margin: 1.4rem auto 2.2rem;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: var(--ivory-dim);
}
.hero .btn-row { justify-content: center; }

/* ---------- Stat grid ---------- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 2.4rem;
}
.stat {
  background: var(--pine-900);
  padding: 1.6rem 1rem;
  text-align: center;
}
.stat .n {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  color: var(--gold-300);
  display: block;
}
.stat .l {
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ivory-dim);
}

/* ---------- Two column layout ---------- */
.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.split.reverse { grid-template-columns: 0.9fr 1.1fr; }
.split.reverse .split-art { order: 2; }

.split-art {
  position: relative;
  aspect-ratio: 4/5;
  border: 1px solid var(--line);
  overflow: hidden;
  background: linear-gradient(160deg, var(--pine-800), var(--leather-900));
}
.split-art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.frame-corner {
  position: absolute; width: 26px; height: 26px;
  border: 1px solid var(--gold-500);
}
.fc-tl { top: 10px; left: 10px; border-right: 0; border-bottom: 0; }
.fc-br { bottom: 10px; right: 10px; border-left: 0; border-top: 0; }

/* ---------- History timeline ---------- */
.timeline-wrap { margin-top: 2.4rem; }
.timeline {
  display: flex;
  gap: 1.1rem;
  overflow-x: auto;
  padding: 0.4rem 0.2rem 1.4rem;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-700) transparent;
}
.timeline::-webkit-scrollbar { height: 5px; }
.timeline::-webkit-scrollbar-thumb { background: var(--gold-700); border-radius: 3px; }

.tl-card {
  flex: 0 0 auto;
  width: min(78vw, 300px);
  scroll-snap-align: start;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(232,200,119,0.05), transparent 60%), var(--pine-900);
  padding: 1.5rem 1.4rem;
}
.tl-card .yr {
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: var(--gold-300);
  display: block;
  margin-bottom: 0.5rem;
}
.tl-card h4 { color: var(--gold-100); font-size: 1.05rem; margin-bottom: 0.5rem; }
.tl-card p { font-size: 0.9rem; margin: 0; }

/* ---------- Cards / Feature grid ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.2rem;
}
.feature {
  border: 1px solid var(--line);
  padding: 1.8rem 1.6rem;
  background: rgba(255,255,255,0.015);
}
.feature .icon {
  width: 40px; height: 40px;
  color: var(--gold-500);
  margin-bottom: 1rem;
}
.feature h3 { color: var(--gold-100); font-size: 1.2rem; margin-bottom: 0.6rem; }
.feature p { font-size: 0.92rem; margin: 0; }

/* ---------- Menu teaser ---------- */
.menu-teaser-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 2.2rem;
}
.mt-item {
  background: var(--leather-900);
  padding: 1.4rem 1.5rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
}
.mt-item .nm { font-family: var(--font-display); font-size: 1.1rem; color: var(--gold-100); }
.mt-item .ds { font-size: 0.78rem; color: var(--ivory-dim); display: block; margin-top: 0.2rem; }
.mt-item .pr { font-family: var(--font-display); color: var(--gold-300); font-size: 1rem; white-space: nowrap; }

/* ---------- Inquiry form ---------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.8rem;
}
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-500);
}
.field input,
.field select,
.field textarea {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.75rem 0.9rem;
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 300;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold-500);
  background: rgba(232,200,119,0.06);
}
.field input::placeholder,
.field textarea::placeholder { color: rgba(205,191,168,0.45); }
.field select { appearance: none; cursor: pointer; }
.field select option { background: var(--pine-900); color: var(--ivory); }
.hp-field { position: absolute; left: -9999px; opacity: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: #060b09;
  border-top: 1px solid var(--line);
  padding: 3rem clamp(1.2rem, 4vw, 3rem) 1.6rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2rem;
  width: min(1180px, 92vw);
  margin: 0 auto;
}
.footer-grid h5 {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  color: var(--gold-500);
  margin-bottom: 1rem;
}
.footer-grid p, .footer-grid a { font-size: 0.88rem; color: var(--ivory-dim); text-decoration: none; }
.footer-grid a:hover { color: var(--gold-300); }
.footer-brand { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1rem; }
.footer-brand img { height: 36px; }
.social-row { display: flex; gap: 0.9rem; margin-top: 1rem; }
.social-row a {
  width: 34px; height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.social-row svg { width: 16px; height: 16px; fill: var(--gold-300); }
.foot-bottom {
  width: min(1180px, 92vw);
  margin: 2.4rem auto 0;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.6rem;
  font-size: 0.74rem;
  color: rgba(205,191,168,0.6);
}

.map-embed {
  border: 1px solid var(--line);
  filter: grayscale(1) invert(0.92) contrast(0.9);
  width: 100%; height: 260px;
}

/* ---------- Menu page ---------- */
.menu-hero {
  padding: calc(var(--section-pad) + 5rem) 0 2rem;
  text-align: center;
  background: linear-gradient(180deg, var(--pine-900), var(--pine-950));
}
.menu-tabs {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  overflow-x: auto;
  gap: 0.4rem;
  padding: 0.9rem clamp(1rem, 4vw, 3rem);
  background: rgba(10,18,16,0.96);
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}
.menu-tabs::-webkit-scrollbar { display: none; }
.menu-tab {
  flex: 0 0 auto;
  padding: 0.55rem 1.1rem;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ivory-dim);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s ease;
}
.menu-tab.active, .menu-tab:hover {
  border-color: var(--gold-500);
  color: var(--pine-950);
  background: var(--gold-300);
}

.menu-section { padding: 2.6rem clamp(1rem, 4vw, 3rem) 1rem; display: none; max-width: 900px; margin: 0 auto; }
.menu-section.active { display: block; }
.menu-section .cat-note { text-align: center; margin-bottom: 2rem; }

.menu-list { display: flex; flex-direction: column; gap: 1.5rem; }
.menu-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-bottom: 1.3rem;
  border-bottom: 1px dashed var(--line);
}
.menu-row-text h4 {
  font-size: clamp(1.05rem, 2.6vw, 1.3rem);
  color: var(--gold-100);
  font-weight: 600;
}
.menu-row-text p {
  margin: 0.35rem 0 0;
  font-size: 0.86rem;
  max-width: 52ch;
}
.menu-row .price {
  font-family: var(--font-display);
  color: var(--gold-300);
  font-size: 1.15rem;
  white-space: nowrap;
  flex-shrink: 0;
}
.menu-tag {
  display: inline-block;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pine-950);
  background: var(--gold-500);
  padding: 0.12rem 0.4rem;
  margin-left: 0.5rem;
  border-radius: 2px;
  vertical-align: middle;
}

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .main-nav { display: none; }
  .nav-toggle { display: block; }
  .split, .split.reverse { grid-template-columns: 1fr; }
  .split.reverse .split-art { order: 0; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    gap: 1rem;
    padding-bottom: 0.6rem;
    scrollbar-width: thin;
    scrollbar-color: var(--gold-700) transparent;
  }
  .feature-grid::-webkit-scrollbar { height: 5px; }
  .feature-grid::-webkit-scrollbar-thumb { background: var(--gold-700); border-radius: 3px; }
  .feature {
    flex: 0 0 auto;
    width: min(80vw, 320px);
    scroll-snap-align: start;
  }
  .menu-teaser-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .foot-bottom { flex-direction: column; }
  .dot-nav { display: none; }
  .panel { padding-top: calc(var(--section-pad) + 4.6rem); padding-bottom: calc(var(--section-pad) + 1rem); }
}

@media (max-width: 600px) {
  /* Decorative art takes a back seat on phones so each section fits one screen */
  .split-art { display: none; }
  .split, .split.reverse { gap: 1.4rem; }
  h2.section-title { font-size: clamp(1.7rem, 7vw, 2.2rem); }
  .hero h1 { font-size: clamp(2.3rem, 13vw, 3.2rem); }
  .hero .tag { font-size: 0.95rem; margin: 1rem auto 1.6rem; }
  .lede { font-size: 0.92rem; }
  p { font-size: 0.88rem; }
  .form-grid { grid-template-columns: 1fr; gap: 0.7rem; margin-top: 1.2rem; }
  .field input, .field select, .field textarea { padding: 0.6rem 0.8rem; font-size: 0.88rem; }
  .field textarea { min-height: 62px; }
}

/* Mobile drawer nav */
.mobile-drawer {
  position: fixed; inset: 0;
  background: rgba(6,11,9,0.98);
  z-index: 95;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 1.6rem;
  opacity: 0; pointer-events: none;
  transition: opacity 0.35s ease;
}
.mobile-drawer.open { opacity: 1; pointer-events: auto; }
.mobile-drawer a {
  font-family: var(--font-display);
  font-size: 1.5rem;
  text-decoration: none;
  color: var(--gold-100);
  letter-spacing: 0.04em;
}
.mobile-drawer .mini {
  font-family: var(--font-body);
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-500);
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transition: none; opacity: 1; transform: none; }
}
