/* Blackwood Country Club & Resort — Phase 1 teaser
   Palette: forest green #1F3329, champagne gold #C6AA80, cream/sand */

:root {
  --green: #1F3329;
  --green-deep: #15241D;
  --green-mid: #2A4438;
  --green-soft: #314A3E;
  --gold: #C6AA80;
  --gold-soft: #D8C4A0;
  --gold-deep: #A88B5E;
  --cream: #F6F1E8;
  --cream-dark: #EBE3D4;
  --sand: #E7DCC8;
  --ivory: #FBF8F2;
  --ink: #1A221E;
  --muted: #5C625C;
  --line: rgba(198, 170, 128, 0.45);
  --shadow: 0 18px 50px rgba(21, 36, 29, 0.18);
  --header-h: 84px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --display: "Cinzel", "Times New Roman", serif;
  --sans: "Source Sans 3", "Source Sans Pro", "Helvetica Neue", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-open { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -40px;
  background: var(--gold);
  color: var(--green);
  padding: 0.5rem 0.9rem;
  z-index: 200;
}
.skip-link:focus { top: 0.75rem; }

.wrap {
  width: min(1160px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.eyebrow {
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1rem;
}

h1, h2, h3, .heading {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--green);
  margin: 0;
}

h1 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); font-weight: 500; }
h2 { font-size: clamp(2rem, 3.6vw, 3.15rem); }
h3 { font-size: 1.55rem; }

.lede {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.45;
  color: var(--green-mid);
  margin: 1rem 0 0;
}

.muted { color: var(--muted); }
.gold { color: var(--gold); }

.rule {
  display: block;
  width: 3.25rem;
  height: 1px;
  background: var(--gold);
  border: 0;
  margin: 1.35rem 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--gold);
  background: var(--gold);
  color: var(--green);
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn:hover { background: var(--gold-soft); }
.btn:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.btn-ghost {
  background: transparent;
  color: var(--gold);
}
.btn-ghost:hover { background: rgba(198, 170, 128, 0.12); color: var(--gold-soft); }

.btn-dark {
  background: var(--green);
  border-color: var(--green);
  color: var(--cream);
}
.btn-dark:hover { background: var(--green-mid); border-color: var(--green-mid); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: linear-gradient(to bottom, rgba(21, 36, 29, 0.72), rgba(21, 36, 29, 0));
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.site-header.is-scrolled,
body.nav-open .site-header {
  background: var(--green);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.22);
}
body.has-early-bird .site-header { top: 48px; }

.header-inner {
  width: min(1240px, calc(100% - 2rem));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--cream);
  flex-shrink: 0;
}
.brand img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 2px;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-text strong {
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: 0.18em;
}
.brand-text span {
  font-family: var(--display);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-top: 0.28rem;
  text-transform: uppercase;
}

.site-nav { display: flex; align-items: center; gap: 1.7rem; }
.site-nav a {
  text-decoration: none;
  color: var(--cream);
  font-family: var(--display);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.9;
}
.site-nav a:hover { color: var(--gold); opacity: 1; }
.site-nav .btn { margin-left: 0.4rem; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--gold);
  position: relative;
  transition: transform 0.25s var(--ease);
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* Early-bird slot — hidden by default via the hidden attribute */
.early-bird {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  background: var(--gold);
  color: var(--green);
  text-align: center;
  padding: 0.7rem 1rem;
  font-family: var(--display);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.early-bird p { margin: 0; }
.early-bird .early-bird-body {
  font-family: var(--sans);
  letter-spacing: 0;
  text-transform: none;
  font-size: 0.9rem;
  margin-top: 0.15rem;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: var(--ivory);
  background: var(--green-deep);
}
.hero-media, .hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(15, 26, 21, 0.88) 0%, rgba(15, 26, 21, 0.45) 42%, rgba(15, 26, 21, 0.22) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  width: min(1160px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: calc(var(--header-h) + 3rem) 0 4.5rem;
}
.hero h1 { color: var(--ivory); max-width: 18ch; }
.hero .lede { color: var(--gold-soft); max-width: 28ch; }
.hero-meta {
  margin-top: 1.5rem;
  color: var(--cream);
  font-size: 1rem;
}
.hero-meta p { margin: 0.2rem 0; }
.caption-chip {
  position: absolute;
  left: 1.25rem;
  bottom: 1.25rem;
  z-index: 2;
  background: rgba(21, 36, 29, 0.72);
  color: var(--gold-soft);
  font-family: var(--display);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.4rem 0.65rem;
  border: 1px solid rgba(198, 170, 128, 0.35);
}

/* Figures / rendering labels */
.figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--green-deep);
}
.figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.figure figcaption,
.rendering-label {
  position: absolute;
  left: 0.9rem;
  bottom: 0.9rem;
  background: rgba(21, 36, 29, 0.78);
  color: var(--gold-soft);
  font-family: var(--display);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.35rem 0.55rem;
  border: 1px solid rgba(198, 170, 128, 0.3);
}

/* Sections */
.section { padding: 6.5rem 0; }
.section-head { max-width: 38rem; margin-bottom: 2.75rem; }
.section-head p { margin: 1rem 0 0; color: var(--muted); }

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 4rem;
  align-items: center;
}
.split.reverse { grid-template-columns: 0.95fr 1.05fr; }
.split.reverse .split-copy { order: 2; }
.figure-tall { min-height: 520px; }
.figure-tall img { min-height: 520px; }

.on-dark {
  background: var(--green);
  color: var(--cream);
}
.on-dark h2, .on-dark h3 { color: var(--ivory); }
.on-dark .lede, .on-dark p { color: rgba(246, 241, 232, 0.86); }
.on-dark .muted { color: var(--gold-soft); }

/* Offering cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.card {
  background: var(--ivory);
  border: 1px solid var(--sand);
  padding: 2rem 1.7rem 1.8rem;
  height: 100%;
}
.on-dark .card {
  background: var(--green-deep);
  border-color: rgba(198, 170, 128, 0.22);
}
.card h3 { margin-bottom: 0.75rem; }
.card p { margin: 0; color: var(--muted); }
.on-dark .card p { color: rgba(246, 241, 232, 0.8); }
.card .card-kicker {
  font-family: var(--display);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.85rem;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.panel {
  background: var(--ivory);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border: 1px solid var(--sand);
}
.panel .figure { aspect-ratio: 4 / 3; }
.panel-body { padding: 2rem 1.75rem 2.1rem; flex: 1; display: flex; flex-direction: column; }
.panel-body p { color: var(--muted); margin: 0.85rem 0 1.4rem; }
.panel-body .btn { margin-top: auto; align-self: flex-start; }

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 180px;
  gap: 0.85rem;
}
.gallery-grid .figure:nth-child(1) { grid-column: 1 / 4; grid-row: 1 / 3; }
.gallery-grid .figure:nth-child(2) { grid-column: 4 / 7; grid-row: 1 / 3; }
.gallery-grid .figure:nth-child(3) { grid-column: 1 / 3; grid-row: 3 / 5; }
.gallery-grid .figure:nth-child(4) { grid-column: 3 / 5; grid-row: 3 / 5; }
.gallery-grid .figure:nth-child(5) { grid-column: 5 / 7; grid-row: 3 / 5; }
.gallery-grid .figure img { width: 100%; height: 100%; object-fit: cover; }

/* Inquire */
.inquire-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3.5rem;
  align-items: start;
}
.form-card {
  background: var(--ivory);
  color: var(--ink);
  padding: 2.25rem 2rem;
  box-shadow: var(--shadow);
}
.form-card h3 { margin-bottom: 0.35rem; }
.form-card .form-intro { color: var(--muted); margin: 0 0 1.5rem; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.1rem;
}
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field-full { grid-column: 1 / -1; }
.field label {
  font-family: var(--display);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
}
.req { color: var(--gold-deep); }
.field input,
.field select,
.field textarea {
  background: #fff;
  border: 1px solid var(--sand);
  border-radius: 0;
  padding: 0.7rem 0.8rem;
  min-height: 2.85rem;
  width: 100%;
}
.field textarea { min-height: 6.5rem; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--gold); }
.form-note {
  margin: 0.85rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}
.form-status {
  background: var(--ivory);
  color: var(--green);
  padding: 2.25rem 2rem;
  box-shadow: var(--shadow);
}
.form-status p { margin: 0.7rem 0 0; color: var(--muted); }

.contact-aside p { margin: 0 0 1rem; }
.contact-list { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.contact-list li {
  margin: 0 0 1.1rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid rgba(198, 170, 128, 0.25);
}
.contact-list strong {
  display: block;
  font-family: var(--display);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.25rem;
  font-weight: 500;
}
.is-placeholder,
.placeholder-value {
  font-style: italic;
  color: var(--gold-soft);
  text-decoration: none;
  cursor: default;
}
.visit-link { color: var(--gold-soft); text-decoration: underline; text-underline-offset: 3px; }

/* Footer */
.site-footer {
  background: var(--green-deep);
  color: rgba(246, 241, 232, 0.8);
  padding: 3.5rem 0 2rem;
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(198, 170, 128, 0.18);
}
.site-footer h2, .site-footer .brand-name {
  font-family: var(--display);
  color: var(--ivory);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.85rem;
  font-weight: 500;
  margin: 0 0 0.8rem;
}
.site-footer a { color: var(--gold-soft); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.footer-logo { width: 88px; height: 88px; margin-bottom: 1rem; }
.legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.7rem;
  padding-top: 1.4rem;
  font-size: 0.85rem;
  color: rgba(246, 241, 232, 0.65);
}

@media (max-width: 900px) {
  :root { --header-h: 72px; }
  .brand-text { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .site-nav {
    display: none;
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: var(--green);
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem 1.5rem 3rem;
    gap: 1.4rem;
    overflow: auto;
  }
  body.has-early-bird .site-nav { top: calc(var(--header-h) + 48px); }
  .site-nav.is-open { display: flex; }
  .site-nav a { font-size: 0.95rem; }
  .site-nav .btn { margin-left: 0; width: 100%; }
  .split, .split.reverse,
  .cards, .two-col, .inquire-grid, .footer-grid {
    grid-template-columns: 1fr;
  }
  .split.reverse .split-copy { order: 0; }
  .figure-tall, .figure-tall img { min-height: 360px; }
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 180px;
  }
  .gallery-grid .figure:nth-child(1),
  .gallery-grid .figure:nth-child(2) { grid-column: auto; grid-row: auto; min-height: 200px; }
  .gallery-grid .figure:nth-child(3),
  .gallery-grid .figure:nth-child(4),
  .gallery-grid .figure:nth-child(5) { grid-column: auto; grid-row: auto; }
  .gallery-grid .figure:nth-child(1) { grid-column: 1 / -1; min-height: 240px; }
  .form-grid { grid-template-columns: 1fr; }
  .section { padding: 4.25rem 0; }
  .hero-content { padding-bottom: 3.25rem; }
}

@media (max-width: 560px) {
  .wrap, .hero-content { width: min(100% - 1.75rem, 1160px); }
  .btn-row { flex-direction: column; align-items: stretch; }
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .gallery-grid .figure:nth-child(1) { grid-column: 1; }
  .form-card, .form-status { padding: 1.5rem 1.15rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

.panel-visual {
  aspect-ratio: 4 / 3;
  background: var(--green);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  border-bottom: 1px solid var(--sand);
}
.panel-visual img {
  width: 140px;
  height: 140px;
  object-fit: cover;
}
.panel-visual p {
  margin: 0;
  font-family: var(--display);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--gold);
}

/* Form sits on a cream card inside a dark section — reset inherited ivory text */
.on-dark .form-card,
.on-dark .form-status {
  color: var(--ink);
}
.on-dark .form-card h3,
.on-dark .form-status h3 {
  color: var(--green);
}
.on-dark .form-card p,
.on-dark .form-status p,
.on-dark .form-note,
.on-dark .form-card .form-intro {
  color: #4F564F;
}

@media (max-width: 900px) {
  .hero-content {
    padding-bottom: 6rem;
  }
  .hero .caption-chip {
    bottom: 1rem;
  }
}
