/* 8tee Golf — design tokens + base styles */
:root {
  --camel: #B8965A;
  --camel-soft: rgba(184, 150, 90, 0.15);
  --forest: #2D4A2D;
  --forest-deep: #1F3620;
  --off-white: #FAFAF5;
  --cream: #F5F0E8;
  --charcoal: #1A1A1A;
  --rust: #B85C38;

  --serif: 'Cormorant Garamond', 'Cormorant', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;

  --nav-h: 76px;
  --page-max: 1360px;
  --gutter: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--charcoal);
  background: var(--off-white);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Typography primitives */
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }
.serif-italic { font-family: var(--serif); font-style: italic; font-weight: 400; }
.sans { font-family: var(--sans); }
.mono { font-family: var(--mono); }
.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
}

h1, h2, h3, h4 { margin: 0; font-weight: 400; letter-spacing: -0.015em; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 2px;
  transition: all 220ms ease;
  white-space: nowrap;
}
.btn-forest { background: var(--forest); color: var(--cream); }
.btn-forest:hover { background: var(--forest-deep); transform: translateY(-1px); }
.btn-camel { background: var(--camel); color: #fff; }
.btn-camel:hover { background: #a88549; transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--camel); border-color: var(--camel); }
.btn-outline:hover { background: var(--camel); color: #fff; }
.btn-outline-cream { background: transparent; color: var(--cream); border-color: var(--cream); }
.btn-outline-cream:hover { background: var(--cream); color: var(--forest); }
.btn-ghost { background: transparent; color: var(--charcoal); padding: 12px 0; }

/* Container */
.container {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Section scaffolds */
section { position: relative; }
.sec-pad { padding: clamp(80px, 10vw, 140px) 0; }
.sec-pad-sm { padding: clamp(56px, 7vw, 96px) 0; }

.bg-off-white { background: var(--off-white); color: var(--charcoal); }
.bg-cream { background: var(--cream); color: var(--charcoal); }
.bg-forest { background: var(--forest); color: var(--cream); }
.bg-forest-deep { background: var(--forest-deep); color: var(--cream); }

/* Photo placeholder — editorial stripe field */
.photo {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(184,150,90,0.18), rgba(45,74,45,0.12)),
    repeating-linear-gradient(
      45deg,
      rgba(184,150,90,0.08) 0px,
      rgba(184,150,90,0.08) 2px,
      transparent 2px,
      transparent 14px
    ),
    var(--cream);
}
.photo.dark {
  background:
    linear-gradient(135deg, rgba(0,0,0,0.45), rgba(45,74,45,0.6)),
    repeating-linear-gradient(
      45deg,
      rgba(184,150,90,0.12) 0px,
      rgba(184,150,90,0.12) 2px,
      transparent 2px,
      transparent 14px
    ),
    var(--forest-deep);
}
.photo .photo-caption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 6px 10px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--charcoal);
  background: rgba(250, 250, 245, 0.85);
  backdrop-filter: blur(4px);
  border-radius: 2px;
  text-transform: uppercase;
  max-width: 80%;
}
.photo.dark .photo-caption {
  color: var(--cream);
  background: rgba(26, 26, 26, 0.6);
}
.photo .photo-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 10px; height: 10px;
  border: 1px solid var(--camel);
  background: var(--camel);
  border-radius: 50%;
}

/* Sticky nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  background: rgba(250, 250, 245, 0.82);
  backdrop-filter: saturate(1.2) blur(12px);
  -webkit-backdrop-filter: saturate(1.2) blur(12px);
  border-bottom: 1px solid rgba(26, 26, 26, 0.06);
  transition: background 220ms ease, border-color 220ms ease;
}
.nav.on-dark {
  background: rgba(31, 54, 32, 0.7);
  border-bottom-color: rgba(245, 240, 232, 0.12);
}
.nav-inner {
  height: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.nav-links {
  display: flex; gap: 28px; align-items: center;
}
.nav-link {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--charcoal);
  padding: 6px 0;
  position: relative;
  cursor: pointer;
  background: none;
  border: 0;
  font-family: var(--sans);
}
.nav.on-dark .nav-link { color: var(--cream); }
.nav-link::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--camel); transform: scaleX(0); transform-origin: left;
  transition: transform 260ms ease;
}
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.nav-cta {
  font-size: 11px;
  letter-spacing: 0.14em;
  padding: 10px 18px;
  border: 1px solid var(--camel);
  color: var(--camel);
  text-transform: uppercase;
  font-weight: 500;
  border-radius: 2px;
  transition: all 220ms ease;
  cursor: pointer;
  background: transparent;
  font-family: var(--sans);
}
.nav-cta:hover { background: var(--camel); color: #fff; }
.nav-logo {
  display: flex; align-items: center;
  cursor: pointer;
}
.nav-logo img {
  height: 42px;
  width: auto;
}
/* White SVG: invert to dark on light nav, keep white on dark hero */
.nav:not(.on-dark) .nav-logo-img { filter: invert(1) brightness(0.15); }
.nav-logo-img {
  display: block;
}
.nav-left {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--charcoal);
  opacity: 0.7;
}
.nav.on-dark .nav-left { color: var(--cream); }
.nav-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--camel); }
.mobile-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }

@media (max-width: 960px) {
  .nav-links { display: none; }
  .mobile-toggle { display: flex; }
}

/* Mobile drawer */
.mobile-drawer {
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  background: var(--off-white);
  z-index: 99;
  padding: 48px var(--gutter);
  display: none;
  flex-direction: column;
  gap: 8px;
}
.mobile-drawer.open { display: flex; }
.mobile-drawer .nav-link {
  font-size: 28px;
  font-family: var(--serif);
  letter-spacing: 0;
  text-transform: none;
  padding: 16px 0;
  border-bottom: 1px solid rgba(26,26,26,0.08);
  text-align: left;
}

/* Footer */
.footer {
  background: var(--forest);
  color: var(--cream);
  padding: 96px 0 32px;
}
.footer-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 56px;
}
.footer-logo img { height: 72px; width: auto; filter: brightness(1.15); }
.footer-cols {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 48px;
  max-width: 900px;
  margin: 0 auto 64px;
  padding: 0 var(--gutter);
}
.footer-col h5 {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: 0 0 20px;
  color: var(--camel);
  font-weight: 500;
}
.footer-col a {
  display: block;
  color: var(--cream);
  cursor: pointer;
  text-decoration: none;
  padding: 8px 0;
  font-size: 14px;
  opacity: 0.85;
  transition: opacity 180ms, color 180ms;
  background: none; border: 0; font-family: inherit; text-align: left;
}
.footer-col a:hover { opacity: 1; color: var(--camel); }

.footer-social {
  display: flex; justify-content: center; gap: 24px; margin-bottom: 48px;
}
.footer-social a {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(245, 240, 232, 0.3);
  display: flex; align-items: center; justify-content: center;
  color: var(--cream);
  text-decoration: none;
  transition: all 200ms ease;
}
.footer-social a:hover { border-color: var(--camel); color: var(--camel); }

.footer-bottom {
  border-top: 1px solid rgba(245, 240, 232, 0.12);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  max-width: var(--page-max);
  margin: 0 auto;
  padding-left: var(--gutter); padding-right: var(--gutter);
  font-size: 12px;
  opacity: 0.7;
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom a { color: inherit; text-decoration: none; margin-left: 20px; cursor: pointer; }
.footer-bottom a:hover { color: var(--camel); }

/* Forms */
.field {
  display: flex; flex-direction: column; gap: 8px;
}
.field label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  opacity: 0.75;
}
.field input, .field select, .field textarea {
  font-family: var(--sans);
  font-size: 15px;
  padding: 14px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid currentColor;
  color: inherit;
  outline: none;
  width: 100%;
  transition: border-color 180ms;
  border-radius: 0;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-bottom-color: var(--camel);
}
.field textarea { min-height: 100px; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='none' stroke='%23B8965A' stroke-width='1.5' d='M1 1l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 8px center; padding-right: 24px; }

/* Animations */
@keyframes fadeUp {
  from { transform: translateY(18px); }
  to { transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0.001; }
  to { opacity: 1; }
}
.page-enter {
  opacity: 1;
  animation: fadeUp 560ms cubic-bezier(.2,.7,.2,1) forwards;
}
@media (prefers-reduced-motion: reduce) {
  .page-enter { animation: none; }
}

.reveal { opacity: 0; transform: translateY(20px); transition: opacity 700ms ease, transform 700ms cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* Utility */
.hr-camel { height: 1px; background: var(--camel); border: 0; width: 40px; margin: 0; }
.tag-soon {
  display: inline-block;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 6px 10px;
  background: var(--camel);
  color: #fff;
  border-radius: 2px;
  font-weight: 500;
}
.tag-outline {
  display: inline-block;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 6px 10px;
  border: 1px solid var(--camel);
  color: var(--camel);
  border-radius: 2px;
}

/* Grid helpers */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
@media (max-width: 820px) {
  .two-col { grid-template-columns: 1fr; }
}

/* Responsive type */
.h-display {
  font-family: var(--serif);
  font-size: clamp(48px, 8vw, 108px);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.h-hero {
  font-family: var(--serif);
  font-size: clamp(42px, 6.5vw, 92px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.h-large {
  font-family: var(--serif);
  font-size: clamp(36px, 4.8vw, 68px);
  line-height: 1.08;
  letter-spacing: -0.015em;
}
.h-med {
  font-family: var(--serif);
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.h-small {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.lead {
  font-family: var(--sans);
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.6;
  max-width: 52ch;
  color: inherit;
  opacity: 0.88;
}
.body-serif {
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.55;
  font-weight: 400;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 32px; right: 32px;
  background: var(--forest-deep);
  color: var(--cream);
  padding: 16px 20px;
  border-left: 3px solid var(--camel);
  font-size: 14px;
  z-index: 200;
  animation: fadeUp 320ms ease both;
  max-width: 360px;
  border-radius: 2px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* Pillar cards */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(245, 240, 232, 0.18); }
@media (max-width: 820px) { .pillars { grid-template-columns: 1fr; } }
.pillar {
  background: var(--forest);
  padding: 56px 40px 40px;
  display: flex; flex-direction: column; gap: 20px;
  min-height: 360px;
  transition: background 280ms ease;
  cursor: pointer;
}
.pillar:hover { background: var(--forest-deep); }
.pillar .hr-camel { margin-top: auto; margin-bottom: 12px; }
.pillar h3 { font-family: var(--serif); font-size: 34px; line-height: 1.1; }
.pillar p { font-size: 15px; line-height: 1.55; color: rgba(245,240,232,0.82); margin: 0; }
.pillar .pillar-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--camel);
  transition: gap 220ms ease;
}
.pillar:hover .pillar-arrow { gap: 16px; }

/* Stat box */
.stat { padding: 32px 0; }
.stat .num { font-family: var(--serif); font-size: clamp(40px, 5vw, 64px); color: var(--camel); line-height: 1; }
.stat .lbl { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; margin-top: 12px; opacity: 0.7; }

/* Gallery grid */
.ig-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.ig-grid .photo { aspect-ratio: 1; }
@media (max-width: 820px) { .ig-grid { grid-template-columns: repeat(3, 1fr); } }

/* Values/cards grid */
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
@media (max-width: 820px) { .value-grid { grid-template-columns: 1fr; gap: 32px; } }
.value .num-big {
  font-family: var(--serif); font-size: 72px; color: var(--camel); line-height: 1;
  margin-bottom: 20px; font-weight: 300;
}

/* Product tiles */
.tile-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 960px) { .tile-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .tile-grid { grid-template-columns: 1fr; } }

.tile { display: flex; flex-direction: column; }
.tile .photo { aspect-ratio: 3/4; margin-bottom: 16px; }
.tile h4 { font-family: var(--serif); font-size: 22px; margin-bottom: 4px; }
.tile p { font-size: 13px; color: rgba(26,26,26,0.65); margin: 0 0 12px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; gap: 32px; } }
.step { position: relative; padding-top: 24px; border-top: 1px solid var(--camel); }
.step .num-big {
  font-family: var(--serif); font-size: 64px; color: var(--camel); line-height: 1;
  margin-bottom: 12px; font-weight: 300;
}
.step h4 { font-family: var(--serif); font-size: 28px; margin-bottom: 8px; }
.step p { color: rgba(26,26,26,0.7); font-size: 15px; margin: 0; }

/* Timeline */
.timeline { display: flex; gap: 24px; margin-top: 64px; }
.timeline .t-item { flex: 1; border-top: 1px solid var(--camel); padding-top: 20px; }
.timeline .t-year { font-family: var(--mono); font-size: 12px; color: var(--camel); letter-spacing: 0.18em; }
.timeline .t-label { font-family: var(--serif); font-size: 22px; margin-top: 8px; }
@media (max-width: 820px) { .timeline { flex-direction: column; gap: 16px; } }

/* Big numeral element */
.big-eight {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(200px, 28vw, 420px);
  line-height: 0.8;
  color: var(--camel);
  letter-spacing: -0.05em;
}

/* Event cards */
.event-card { display: flex; flex-direction: column; background: var(--off-white); color: var(--charcoal); }
.event-card .photo { aspect-ratio: 4/3; }
.event-card .ec-body { padding: 24px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.event-card h4 { font-family: var(--serif); font-size: 24px; }
.event-card .ec-meta { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; color: var(--camel); text-transform: uppercase; }
