/* ============================================================
   Nahma Golf Club — Shared Design System
   main.css

   Covers: design tokens, reset, typography, nav, footer,
   breadcrumb, buttons, overline, containers, and all
   component classes used across 2+ pages.

   Page-specific styles remain in <style> blocks within
   each page's HTML file.
   ============================================================ */

/* ============================================================
   GOOGLE FONTS
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@700&family=DM+Sans:ital,wght@0,400;0,500;0,600;1,400&family=JetBrains+Mono:wght@400;500&display=swap');


/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  /* Colors */
  --color-green:           #1C3829;
  --color-green-dark:      #122519;
  --color-green-light:     #E6EDE8;
  --color-terracotta:      #B85C38;
  --color-terracotta-dark: #834229;
  --color-terracotta-light:#F2D5C8;
  --color-cream:           #F4EFE6;
  --color-cream-dark:      #E8E0D4;
  --color-off-white:       #FAFAF8;
  --color-dark:            #1A1A18;
  --color-text-muted:      #6B7264;
  --color-white:           #FFFFFF;

  /* Layout */
  --maxw:   1280px;
  --pad-x:  80px;

  /* Fonts */
  --font-head: "Barlow Condensed", "Helvetica Neue", Arial, sans-serif;
  --font-body: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}


/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--color-cream);
  color: var(--color-dark);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img    { display: block; max-width: 100%; }
a      { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; padding: 0; color: inherit; }


/* ============================================================
   TYPOGRAPHY SCALE
   ============================================================ */
.h-display {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(52px, 7.4vw, 92px);
  line-height: 0.98;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0;
}

.h1 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(48px, 6vw, 72px);
  line-height: 1.04;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0;
}

.h2 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(40px, 4.6vw, 56px);
  line-height: 1.04;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0;
}

.h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(30px, 3.4vw, 40px);
  line-height: 1.08;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0;
}

.h4 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0;
}

.stat-num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(56px, 6vw, 80px);
  line-height: 1;
  letter-spacing: 0.02em;
}

.body-lg  { font-size: 18px; line-height: 1.65; }
.body-sm  { font-size: 14px; line-height: 1.55; }
.caption  { font-size: 12px; line-height: 1.4; font-weight: 500; }
.mono-tag { font-family: var(--font-mono); font-size: 11px; color: var(--color-text-muted); letter-spacing: 0.08em; }


/* ============================================================
   OVERLINE — ── LABEL ──
   ============================================================ */
.overline {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-text-muted);
  margin: 0 0 22px;
  white-space: nowrap;
}

.overline::before,
.overline::after {
  content: "";
  display: block;
  width: 46px;
  height: 1px;
  background: var(--color-terracotta);
}

.overline--dark { color: rgba(255, 255, 255, 0.78); }
.overline--dark::before,
.overline--dark::after { background: var(--color-terracotta); }

.overline--centered { display: flex; justify-content: center; align-items: center; }


/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: 2px;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
  border: 1px solid transparent;
  line-height: 1;
  white-space: nowrap;
}

.btn--lg { padding: 16px 32px; font-size: 15px; }
.btn--sm { padding: 10px 20px; font-size: 13px; }

.btn--primary             { background: var(--color-terracotta); color: var(--color-white); }
.btn--primary:hover       { background: var(--color-terracotta-dark); }

.btn--secondary           { background: transparent; color: var(--color-green); border-color: var(--color-green); }
.btn--secondary:hover     { background: var(--color-green); color: var(--color-white); }

.btn--ghost               { background: transparent; color: var(--color-white); border-color: rgba(255, 255, 255, 0.6); }
.btn--ghost:hover         { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.9); }

/* Text link */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  color: var(--color-green);
  letter-spacing: 0.02em;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color 150ms ease, color 150ms ease;
}
.text-link:hover                   { border-color: var(--color-terracotta); color: var(--color-terracotta); }
.text-link .arrow                  { display: inline-block; transition: transform 150ms ease; }
.text-link:hover .arrow            { transform: translateX(3px); }

/* Contextual inline link (used in Golf Near Escanaba prose) */
.clink {
  color: var(--color-green);
  border-bottom: 1px solid var(--color-cream-dark);
  transition: border-color 150ms ease, color 150ms ease;
  padding-bottom: 1px;
}
.clink:hover { color: var(--color-terracotta); border-bottom-color: var(--color-terracotta); }


/* ============================================================
   LAYOUT CONTAINERS
   ============================================================ */
.wrap           { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad-x); }
.section        { padding: 120px 0; }
.section--tight { padding: 88px 0; }


/* ============================================================
   NAV — HOMEPAGE VARIANT (transparent → scrolled)
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--color-white);
}

/* Scrolled / solid state — also the default for all non-homepage pages */
.nav.is-scrolled,
.nav--solid {
  background: var(--color-cream);
  color: var(--color-dark);
  border-bottom-color: var(--color-cream-dark);
}

.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

/* Logo */
.logo {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  line-height: 1;
  padding: 4px 0;
}
.logo__rule {
  width: 100%;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}
.logo__mark {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 2px 0;
}

/* Nav links */
.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav__links a {
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.02em;
  transition: color 150ms ease;
  position: relative;
  padding: 6px 0;
}
.nav__links a:hover { color: var(--color-terracotta); }

/* Active link state (subpages) */
.nav__links a.is-active { color: var(--color-green); }
.nav__links a.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--color-terracotta);
}

.nav__cta { display: flex; align-items: center; gap: 14px; }

/* Nav CTA button — transparent nav (homepage hero) */
.nav .btn--nav-primary {
  background: var(--color-white);
  color: var(--color-green);
  padding: 11px 22px;
  font-size: 13px;
}
.nav.is-scrolled .btn--nav-primary {
  background: var(--color-green);
  color: var(--color-white);
}
.nav .btn--nav-primary:hover       { background: var(--color-terracotta); color: var(--color-white); }
.nav.is-scrolled .btn--nav-primary:hover { background: var(--color-green-dark); }

/* Nav CTA button — solid nav (all subpages; no .nav wrapping context) */
.btn--nav-primary {
  background: var(--color-green);
  color: var(--color-white);
  padding: 11px 22px;
  font-size: 13px;
}
.btn--nav-primary:hover { background: var(--color-green-dark); }


/* ============================================================
   BREADCRUMB
   ============================================================ */
.crumbs {
  padding: 100px 0 16px;
  background: var(--color-cream);
}
.crumbs__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  flex-wrap: wrap;
}
.crumbs__inner a,
.crumbs__inner .here { white-space: nowrap; transition: color 150ms ease; }
.crumbs__inner a:hover  { color: var(--color-terracotta); }
.crumbs__inner .sep     { color: var(--color-cream-dark); display: inline-block; }
.crumbs__inner .here    { color: var(--color-dark); }


/* ============================================================
   PHOTO FIGURE CAPTION COMPONENT
   ============================================================ */
.photo-fig { margin: 0; position: relative; }
.photo-fig img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.photo-fig figcaption {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.photo-fig figcaption::before {
  content: "";
  display: block;
  width: 18px;
  height: 1px;
  background: var(--color-terracotta);
}


/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--color-green-dark);
  color: var(--color-white);
  padding: 96px 0 40px;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer__brand .logo           { align-items: flex-start; color: var(--color-white); }
.footer__brand .logo__mark     { font-size: 22px; letter-spacing: 0.2em; }
.footer__tag {
  margin-top: 24px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  max-width: 280px;
}

.footer__col h5 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin: 0 0 20px;
}
.footer__col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer__col a,
.footer__col li { font-size: 15px; color: var(--color-white); transition: color 150ms ease; }
.footer__col a:hover { color: var(--color-terracotta); }

.footer__addr           { font-size: 15px; line-height: 1.7; color: rgba(255, 255, 255, 0.85); }
.footer__addr a         { color: rgba(255, 255, 255, 0.85); }

.footer__bottom {
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.footer__bottom .badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.55);
}
.footer__bottom .badge::before {
  content: "";
  display: block;
  width: 24px;
  height: 1px;
  background: var(--color-terracotta);
}


/* ============================================================
   MAP FRAME COMPONENT (Golf Near Escanaba + any future use)
   ============================================================ */
.map-frame {
  position: relative;
  background: var(--color-off-white);
  border: 1px solid var(--color-cream-dark);
  padding: 14px;
}
.map-frame__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-cream-dark);
  margin-bottom: 14px;
}
.map-frame__title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 10px;
}
.map-frame__title::before {
  content: "";
  display: block;
  width: 18px;
  height: 1px;
  background: var(--color-terracotta);
}
.map-frame__coords {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
}
.map-frame__embed {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--color-cream);
  overflow: hidden;
}
.map-frame__embed iframe,
.map-frame__embed svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.map-frame__caption {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  text-transform: uppercase;
}
.map-frame__caption a { color: var(--color-green); transition: color 150ms ease; }
.map-frame__caption a:hover { color: var(--color-terracotta); }


/* ============================================================
   CLOSER / FOOTER CTA SECTION
   (appears on Hole by Hole in green, on Golf Near Escanaba
    in green-dark; homepage has its own cream variant)
   ============================================================ */
.closer__inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
.closer .overline     { margin-left: auto; margin-right: auto; }
.closer__ctas {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}


/* ============================================================
   RESPONSIVE — SHARED BREAKPOINTS
   ============================================================ */
@media (max-width: 1100px) {
  :root { --pad-x: 40px; }

  .footer__top { grid-template-columns: 1fr 1fr; gap: 40px; }

  .nav__inner  { gap: 20px; }
  .nav__links  { gap: 22px; }
  .nav__links a { font-size: 14px; }
}

@media (max-width: 820px) {
  .nav__links { display: none; }
}

@media (max-width: 640px) {
  :root { --pad-x: 20px; }
  .section { padding: 80px 0; }
}

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


/* ============================================================
   SCREEN-READER ONLY UTILITY
   ============================================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   DATA-REVEAL HOOK
   Content is always visible. This attribute is reserved for
   future scroll animations; default state is fully rendered.
   ============================================================ */

/* ============================================================
   UTILITY
   ============================================================ */
.hidden { display: none; }
