/* Bogey Brothers Insurance — brand tokens + site styles.
   Ratified palette: fairway green #1B3A2D · ivory #F5F1E6 · brass #B08D4A · charcoal #1E1E1C.
   Type: Fraunces display / Inter body. Luxury golf-club language: hairline rules,
   heavy whitespace, sparing brass. No cartoon golf, no argyle/dimple/flag motifs. */

:root {
  --green: #1b3a2d;
  --green-deep: #142c22;      /* derived shade of fairway green for depth only */
  --ivory: #f5f1e6;
  --ivory-soft: #ede7d8;      /* derived shade of ivory for surface contrast only */
  --brass: #b08d4a;
  --charcoal: #1e1e1c;
  --charcoal-2: rgba(30, 30, 28, 0.64);
  --hairline: rgba(30, 30, 28, 0.18);
  --hairline-light: rgba(245, 241, 230, 0.24);

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --section-pad: clamp(5rem, 12vw, 9rem);
  --content-max: 72rem;
}

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

html, body {
  margin: 0;
  padding: 0;
  background: var(--ivory);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Lenis smooth-scroll requirements */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

::selection { background: var(--brass); color: var(--ivory); }

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

/* ===== Type scale ===== */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 480;
  letter-spacing: -0.01em;
  line-height: 1.12;
  margin: 0;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 1.5rem;
}

/* ===== Hairline rules ===== */
.rule {
  border: 0;
  border-top: 1px solid var(--hairline);
  margin: 0;
}

.section-dark .rule { border-top-color: var(--hairline-light); }

/* ===== Layout primitives ===== */
.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 3rem);
}

section { padding: var(--section-pad) 0; }

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--ivory) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
  color: var(--charcoal);
}

.monogram {
  width: 2.75rem;
  height: 2.75rem;
  flex: none;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 560;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.2;
}

.brand-name small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  color: var(--charcoal-2);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2.5rem);
}

.site-nav a {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--charcoal-2);
  transition: color 0.25s ease;
}

.site-nav a:hover { color: var(--charcoal); }

/* Nav CTA: .site-nav a would out-specify .btn-primary and paint the label charcoal */
.site-nav a.btn-primary,
.site-nav a.btn-primary:hover { color: var(--ivory); }

.nav-links { display: flex; gap: clamp(1.25rem, 3vw, 2.5rem); }

@media (max-width: 720px) {
  .nav-links { display: none; }
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 0.95rem 2.4rem;
  border-radius: 9999px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), background 0.3s ease,
    color 0.3s ease, border-color 0.3s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--green);
  color: var(--ivory);
  border: 1px solid var(--green);
}

.btn-primary:hover { background: var(--green-deep); }

.btn-ghost {
  background: transparent;
  color: var(--charcoal);
  border: 1px solid var(--hairline);
}

.btn-ghost:hover { border-color: var(--charcoal); }

.section-dark .btn-primary {
  background: var(--ivory);
  color: var(--green);
  border-color: var(--ivory);
}

.section-dark .btn-ghost {
  color: var(--ivory);
  border-color: var(--hairline-light);
}

.section-dark .btn-ghost:hover { border-color: var(--ivory); }

.btn-nav { padding: 0.6rem 1.6rem; font-size: 0.8rem; white-space: nowrap; }

/* ===== Hero — asymmetric editorial grid =====
   Text owns cols 1–7; the terrain scene owns the right and bleeds off-canvas.
   The exclusion zone is structural (grid + scene offset), never a z-index patch. */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 0;
  border-bottom: 1px solid var(--hairline);
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  width: 100%;
}

.hero-scene {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 60%;
  right: -10%;
  pointer-events: none;
}

.hero-scene canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-content {
  grid-column: 1 / 8;
  padding-top: 9rem;
  padding-bottom: 5rem;
}

.hero-title {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 460;
  margin: 0 0 1.75rem;
}

.hero-title em {
  font-style: italic;
  color: var(--green);
}

.hero-subtitle {
  font-size: clamp(1.02rem, 1.8vw, 1.2rem);
  color: var(--charcoal-2);
  max-width: 34rem;
  margin: 0 0 2.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.hero-rule {
  width: 4.5rem;
  border-top: 1px solid var(--brass);
  margin: 0 0 2rem;
}

/* Thin brass rule that draws downward on load (replaces the SCROLL label) */
.hero-drop-rule {
  width: 1px;
  height: 4.5rem;
  background: var(--brass);
  margin-top: 3rem;
  transform-origin: top center;
}

.js .hero-drop-rule { transform: scaleY(0); }

/* Mobile / narrow: terrain becomes a shallow band below the headline, inside
   the first viewport — text never sits on geometry */
@media (max-width: 860px) {
  .hero {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
  }

  .hero-grid { display: block; }

  .hero-content {
    padding-top: 7.5rem;
    padding-bottom: 2.5rem;
  }

  .hero-scene {
    position: relative;
    inset: auto;
    left: 0;
    right: 0;
    width: 100%;
    flex: 1;
    min-height: 11rem;
    border-top: 1px solid var(--hairline);
  }

  .hero-drop-rule { display: none; }
}

/* ===== Section headers ===== */
.section-head {
  max-width: 46rem;
  margin-bottom: clamp(3rem, 7vw, 5rem);
}

.section-head h2 {
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  margin: 0 0 1.25rem;
}

.section-head p {
  font-size: 1.05rem;
  color: var(--charcoal-2);
  margin: 0;
}

/* ===== Pain / gap section ===== */
.gap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--hairline);
}

.gap-item {
  padding: 2.5rem clamp(1.25rem, 3vw, 2.5rem) 2.75rem 0;
  border-bottom: 1px solid var(--hairline);
}

.gap-item + .gap-item {
  border-left: 1px solid var(--hairline);
  padding-left: clamp(1.25rem, 3vw, 2.5rem);
}

.gap-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--brass);
  display: block;
  margin-bottom: 1.4rem;
}

.gap-item h3 {
  font-size: 1.35rem;
  margin: 0 0 0.9rem;
}

.gap-item p {
  font-size: 0.95rem;
  color: var(--charcoal-2);
  margin: 0;
}

@media (max-width: 860px) {
  .gap-grid { grid-template-columns: 1fr; }
  .gap-item + .gap-item { border-left: 0; padding-left: 0; }
  .gap-item { padding-right: 0; }
}

/* ===== Dark (fairway green) sections ===== */
.section-dark {
  background: var(--green);
  color: var(--ivory);
}

.section-dark .section-head p,
.section-dark p { color: rgba(245, 241, 230, 0.72); }

.section-dark h2, .section-dark h3 { color: var(--ivory); }

/* ===== Solution section ===== */
.solution-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.solution-copy p {
  font-size: 1.02rem;
  margin: 0 0 1.4rem;
}

.solution-points { display: grid; gap: 0; border-top: 1px solid var(--hairline-light); }

.solution-point {
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--hairline-light);
}

.solution-point h3 {
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
}

.solution-point h3::before {
  content: "";
  width: 1.4rem;
  border-top: 1px solid var(--brass);
  flex: none;
  transform: translateY(-0.28em);
}

.solution-point p { font-size: 0.93rem; margin: 0; }

@media (max-width: 860px) {
  .solution-grid { grid-template-columns: 1fr; }
}

/* ===== How it works ===== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
}

.step h3 { font-size: 1.3rem; margin: 1.4rem 0 0.8rem; }
.step p { font-size: 0.95rem; color: var(--charcoal-2); margin: 0; }

.step-marker {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.step-marker .rule { flex: 1; }

.step-marker span {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--brass);
}

@media (max-width: 860px) {
  .steps-grid { grid-template-columns: 1fr; }
}

/* ===== Proof section — clearly-labeled placeholders only ===== */
.proof-note {
  font-size: 0.82rem;
  color: var(--charcoal-2);
  max-width: 40rem;
  margin: 0 0 2.5rem;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.placeholder-card {
  border: 1px dashed var(--brass);
  border-radius: 0.25rem;
  padding: 2rem 1.75rem;
  background: color-mix(in srgb, var(--brass) 6%, transparent);
}

.placeholder-tag {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
  border: 1px solid var(--brass);
  border-radius: 9999px;
  padding: 0.25rem 0.7rem;
  margin-bottom: 1.1rem;
}

.placeholder-card p {
  font-size: 0.9rem;
  color: var(--charcoal-2);
  margin: 0;
}

.placeholder-inline {
  border-bottom: 1px dashed var(--brass);
  color: var(--brass);
  font-style: normal;
  padding: 0 0.15rem;
}

@media (max-width: 860px) {
  .proof-grid { grid-template-columns: 1fr; }
}

/* ===== Quote section ===== */
.quote-section { background: var(--ivory-soft); }

.quote-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.quote-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.field { display: grid; gap: 0.4rem; }
.field-full { grid-column: 1 / -1; }

.field label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--charcoal-2);
}

.field input, .field select, .field textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--charcoal);
  background: var(--ivory);
  border: 1px solid var(--hairline);
  border-radius: 0.25rem;
  padding: 0.85rem 1rem;
  width: 100%;
}

.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brass);
}

.form-actions { grid-column: 1 / -1; margin-top: 0.5rem; }

.form-note {
  grid-column: 1 / -1;
  font-size: 0.78rem;
  color: var(--charcoal-2);
  margin: 0.25rem 0 0;
}

.form-status {
  grid-column: 1 / -1;
  display: none;
  border: 1px dashed var(--brass);
  border-radius: 0.25rem;
  padding: 1rem 1.25rem;
  font-size: 0.88rem;
  color: var(--charcoal);
  background: color-mix(in srgb, var(--brass) 8%, transparent);
}

.form-status.visible { display: block; }

@media (max-width: 860px) {
  .quote-grid { grid-template-columns: 1fr; }
  .quote-form { grid-template-columns: 1fr; }
}

/* ===== Closing CTA band ===== */
.closing { text-align: center; }

.closing h2 {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  max-width: 34rem;
  margin: 0 auto 1.5rem;
}

.closing p {
  max-width: 30rem;
  margin: 0 auto 2.5rem;
}

.closing .hero-actions { justify-content: center; }

/* ===== Footer ===== */
.site-footer {
  background: var(--green-deep);
  color: rgba(245, 241, 230, 0.66);
  padding: 4rem 0 2.5rem;
  font-size: 0.83rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.site-footer h3 {
  color: var(--ivory);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.site-footer a { color: rgba(245, 241, 230, 0.66); text-decoration: none; }
.site-footer a:hover { color: var(--ivory); }

.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }

.footer-legal {
  border-top: 1px solid var(--hairline-light);
  padding-top: 2rem;
  font-size: 0.74rem;
  color: rgba(245, 241, 230, 0.45);
}

.footer-legal p { margin: 0 0 0.5rem; }

.footer-monogram { width: 3.25rem; height: 3.25rem; margin-bottom: 1.25rem; }

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ===== About page ===== */
.page-hero {
  padding-top: clamp(10rem, 20vw, 14rem);
  padding-bottom: clamp(4rem, 8vw, 6rem);
}

.page-hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 460;
  max-width: 44rem;
  margin: 0 0 1.5rem;
}

.page-hero p {
  font-size: 1.1rem;
  color: var(--charcoal-2);
  max-width: 38rem;
  margin: 0;
}

.narrative { max-width: 44rem; }

.narrative h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 3.5rem 0 1.25rem;
}

.narrative h2:first-child { margin-top: 0; }

.narrative p {
  font-size: 1.02rem;
  color: var(--charcoal-2);
  margin: 0 0 1.4rem;
}

.narrative .drop {
  font-size: 1.18rem;
  color: var(--charcoal);
}

/* ===== Reveal targets ===== */
/* Hidden only when JS is running (class set by site.js) so content
   stays visible if scripts fail — never leave opacity 0 without JS. */
.js [data-reveal] { opacity: 0; transform: translateY(28px); }

.js [data-reveal-rule] { transform: scaleX(0); transform-origin: left center; }

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; }
  .js [data-reveal-rule] { transform: none; }
  .js .hero-drop-rule { transform: none; }
  .btn, .btn:hover { transition: none; transform: none; }
}
