/* ==========================================================================
   Golf-Trip landing page
   Brand tokens mirror lib/themes/golf_trip_palette.dart
   ========================================================================== */

:root {
  /* Dark palette */
  --bg-dark: #0A110D;
  --surface-dark: #151D18;
  --surface-dark-high: #1C2620;
  --outline-dark: #2D3A31;
  --accent: #76B947;
  --accent-fill: #4A6340;
  --on-accent: #0A110D;
  --text-on-dark: #FFFFFF;
  --text-on-dark-2: #E0E0E0;
  --text-on-dark-3: #8E8E93;

  /* Light (cream) palette */
  --bg-cream: #F2EDE2;
  --surface-cream-high: #EDE7D5;
  --outline-cream: #C7BFA4;
  --accent-deep: #5B7833;
  --forest: #1A2E1A;
  --text-on-cream-2: #3D4A38;
  --text-on-cream-3: #707565;

  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --header-height: 72px;
  --radius: 16px;
  --container: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-body);
  background: var(--bg-dark);
  color: var(--text-on-dark-2);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.container.narrow { max-width: 760px; }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 600;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(118, 185, 71, 0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--text-on-dark);
  border: 1px solid var(--outline-dark);
}

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

.btn-small { padding: 10px 22px; font-size: 14px; }
.btn-large { padding: 15px 32px; font-size: 16px; }

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.site-header.scrolled {
  background: rgba(10, 17, 13, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(45, 58, 49, 0.6);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  height: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo { height: 44px; width: 44px; object-fit: contain; }

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--text-on-dark);
  letter-spacing: -0.3px;
}

.brand-tagline {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.6px;
  color: var(--accent);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-on-dark-2);
  transition: color 0.15s ease;
}

.nav-link:hover { color: var(--accent); }

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

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: calc(var(--header-height) + 40px) 24px 80px;
}

.hero-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% -10%, rgba(118, 185, 71, 0.16), transparent 65%),
    radial-gradient(ellipse 55% 45% at 85% 105%, rgba(74, 99, 64, 0.22), transparent 60%),
    radial-gradient(ellipse 45% 40% at 8% 90%, rgba(31, 58, 31, 0.35), transparent 60%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 820px;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--accent);
  border: 1px solid var(--outline-dark);
  background: rgba(21, 29, 24, 0.6);
  border-radius: 999px;
  padding: 8px 20px;
  margin-bottom: 28px;
}

.hero-headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.08;
  letter-spacing: -1px;
  color: var(--text-on-dark);
  margin-bottom: 24px;
}

.hero-subhead {
  font-size: clamp(16px, 2.2vw, 19px);
  color: var(--text-on-dark-2);
  max-width: 620px;
  margin: 0 auto 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-on-dark-3);
  animation: cue-bob 2.2s ease-in-out infinite;
}

.scroll-cue:hover { color: var(--accent); }

@keyframes cue-bob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* ==========================================================================
   Story / value prop
   ========================================================================== */

.story {
  padding: 110px 0;
  text-align: center;
  background: var(--surface-dark);
  border-top: 1px solid var(--outline-dark);
  border-bottom: 1px solid var(--outline-dark);
}

.story-headline {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  color: var(--text-on-dark);
  margin-bottom: 20px;
}

.story-text {
  font-size: clamp(16px, 2vw, 18px);
  color: var(--text-on-dark-2);
}

/* ==========================================================================
   Feature pillars
   ========================================================================== */

.pillar { padding: 110px 0; }

.pillar-dark { background: var(--bg-dark); }

.pillar-light {
  background: var(--bg-cream);
  color: var(--text-on-cream-2);
}

.pillar-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.pillar-grid-flipped .pillar-copy { order: 2; }
.pillar-grid-flipped .pillar-art { order: 1; }

@media (max-width: 860px) {
  .pillar { padding: 80px 0; }
  .pillar-grid { grid-template-columns: 1fr; gap: 48px; }
  .pillar-grid-flipped .pillar-copy { order: 1; }
  .pillar-grid-flipped .pillar-art { order: 2; }
}

.pillar-kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--accent);
  margin-bottom: 16px;
}

.pillar-light .pillar-kicker { color: var(--accent-deep); }

.pillar-headline {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.4vw, 44px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.5px;
  color: var(--text-on-dark);
  margin-bottom: 18px;
}

.pillar-light .pillar-headline { color: var(--forest); }

.pillar-lead {
  font-size: 17px;
  margin-bottom: 32px;
  color: var(--text-on-dark-2);
}

.pillar-light .pillar-lead { color: var(--text-on-cream-2); }

.pillar-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.pillar-list li {
  position: relative;
  padding-left: 34px;
  font-size: 15px;
  color: var(--text-on-dark-3);
}

.pillar-light .pillar-list li { color: var(--text-on-cream-3); }

.pillar-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6L9 17l-5-5"/></svg>') center / contain no-repeat;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6L9 17l-5-5"/></svg>') center / contain no-repeat;
}

.pillar-light .pillar-list li::before { background: var(--accent-deep); }

.li-title {
  display: block;
  font-weight: 600;
  font-size: 16px;
  color: var(--text-on-dark);
  margin-bottom: 2px;
}

.pillar-light .li-title { color: var(--forest); }

/* ==========================================================================
   Abstract illustration cards
   ========================================================================== */

.pillar-art { display: flex; justify-content: center; }

.art-card {
  width: min(380px, 100%);
  background: var(--surface-dark);
  border: 1px solid var(--outline-dark);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.art-card-light {
  background: #FFFFFF;
  border-color: var(--outline-cream);
  box-shadow: 0 24px 60px rgba(26, 46, 26, 0.18);
}

.art-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--outline-dark);
}

.art-dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-fill));
  flex-shrink: 0;
}

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

.art-chip {
  flex-shrink: 0;
  min-width: 44px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-on-dark-3);
  background: var(--surface-dark-high);
  border-radius: 8px;
  padding: 6px 8px;
}

.art-chip-accent { color: var(--on-accent); background: var(--accent); }

.art-line {
  height: 10px;
  border-radius: 5px;
  background: var(--surface-dark-high);
}

.art-card-light .art-line { background: var(--surface-cream-high); }

.w-30 { width: 30%; } .w-35 { width: 35%; } .w-40 { width: 40%; }
.w-45 { width: 45%; } .w-55 { width: 55%; } .w-60 { width: 60%; }
.w-65 { width: 65%; } .w-70 { width: 70%; } .w-75 { width: 75%; }
.w-80 { width: 80%; }

/* Scorecard mock (light card) */

.art-scorehead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--outline-cream);
}

.art-score-pill {
  font-weight: 700;
  font-size: 15px;
  color: #FFFFFF;
  background: var(--accent-deep);
  border-radius: 999px;
  padding: 4px 14px;
}

.art-score-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.art-cells { display: flex; gap: 6px; }

.art-cells i {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--surface-cream-high);
}

.art-cells i.hot { background: var(--accent-deep); }

/* Photo gallery mock */

.art-gallery {
  width: min(380px, 100%);
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: 110px;
  gap: 14px;
}

.art-photo {
  border-radius: 14px;
  border: 1px solid var(--outline-dark);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.art-photo.p1 { background: linear-gradient(135deg, #2F4A2A, #76B947); grid-row: span 2; }
.art-photo.p2 { background: linear-gradient(160deg, #1C2620, #4A6340); }
.art-photo.p3 { background: linear-gradient(200deg, #5A7350, #233326); }
.art-photo.p4 { background: linear-gradient(120deg, #3E6636, #A8D5A2); grid-column: span 2; }

/* ==========================================================================
   Trust
   ========================================================================== */

.trust {
  padding: 110px 0;
  text-align: center;
  background: var(--surface-dark);
  border-top: 1px solid var(--outline-dark);
  border-bottom: 1px solid var(--outline-dark);
}

.trust-quote {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.6vw, 34px);
  font-weight: 600;
  font-style: italic;
  color: var(--text-on-dark);
  margin-bottom: 14px;
}

.trust-sub {
  font-size: 15px;
  color: var(--text-on-dark-3);
}

/* ==========================================================================
   Final CTA band
   ========================================================================== */

.cta-band {
  padding: 130px 0;
  text-align: center;
  background:
    radial-gradient(ellipse 65% 80% at 50% 110%, rgba(118, 185, 71, 0.18), transparent 65%),
    var(--bg-dark);
}

.cta-headline {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text-on-dark);
  margin-bottom: 32px;
}

.cta-note {
  margin-top: 20px;
  font-size: 14px;
  color: var(--text-on-dark-3);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: #050B05;
  border-top: 1px solid var(--outline-dark);
  padding: 48px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand { display: flex; align-items: center; gap: 12px; }

.footer-logo { height: 40px; width: 40px; object-fit: contain; }

.footer-name {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--text-on-dark);
  line-height: 1.2;
}

.footer-tagline {
  display: block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.6px;
  color: var(--accent);
}

.footer-links { display: flex; gap: 24px; }

.footer-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-on-dark-3);
  transition: color 0.15s ease;
}

.footer-links a:hover { color: var(--accent); }

.footer-copy { font-size: 13px; color: var(--text-on-dark-3); }

/* ==========================================================================
   Scroll reveal
   ========================================================================== */

/* Hidden state only applies once JS has tagged <html class="js">, so content
   is never trapped invisible if scripts fail to load. */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger siblings inside the hero */
.hero .reveal:nth-child(2) { transition-delay: 0.08s; }
.hero .reveal:nth-child(3) { transition-delay: 0.16s; }
.hero .reveal:nth-child(4) { transition-delay: 0.24s; }

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