/* ==========================================================================
   Vehari Gymkhana — Design system
   Variables, typography, buttons, utilities
   ========================================================================== */

:root {
  /* Brand */
  --club-green: #063b30;
  --club-dark: #032a23;
  --club-green-soft: #0b4a3b;

  /* Neutrals */
  --club-cream: #f7f3e9;
  --club-beige: #eee7d7;
  --club-white: #ffffff;

  /* Accent */
  --club-gold: #c99a3d;
  --club-gold-light: #e3c46b;
  /* Gold for small text on light backgrounds (WCAG AA) */
  --club-gold-ink: #83601e;

  /* Text */
  --club-text: #1e2925;
  --club-muted: #6b716c;
  --club-line: rgba(30, 41, 37, 0.12);
  --club-line-strong: rgba(30, 41, 37, 0.2);

  /* Type */
  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;

  /* Metrics */
  --gutter: clamp(20px, 5vw, 80px);
  --section-y: clamp(56px, 7vw, 110px);
  --radius: 10px;
  --radius-sm: 6px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* Bootstrap overrides */
  --bs-body-font-family: var(--font-sans);
  --bs-body-color: var(--club-text);
  --bs-body-bg: var(--club-white);
  --bs-link-color: var(--club-green);
  --bs-link-hover-color: var(--club-gold);
  --bs-border-color: var(--club-line);
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  font-family: var(--font-sans);
  color: var(--club-text);
  background: var(--club-white);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection {
  background: var(--club-gold);
  color: var(--club-dark);
}

img {
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  transition: color 0.25s ease;
}

/* Full-width shells with generous, responsive gutters */
.container-fluid {
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
  position: relative;
}

.section--cream { background: var(--club-cream); }
.section--beige { background: var(--club-beige); }
.section--green { background: var(--club-green); color: var(--club-cream); }

/* Constrain editorial text without narrowing the section itself */
.measure { max-width: 62ch; }
.measure-sm { max-width: 46ch; }

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--club-gold-ink);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: 0.85;
}

.eyebrow--plain::before { display: none; }

/* Gold eyebrows sit on dark panels in the hero, feature and CTA */
.hero .eyebrow,
.featured .eyebrow,
.membership .eyebrow {
  color: var(--club-gold-light);
}

.section-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 14px 0 0;
  color: var(--club-text);
  text-wrap: balance;
}

.section-title--light { color: var(--club-cream); }

.section-lede {
  margin-top: 18px;
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--club-muted);
  max-width: 60ch;
}

.body-copy {
  color: var(--club-muted);
  font-size: 15.5px;
  line-height: 1.8;
}

.text-gold { color: var(--club-gold); }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn-club {
  --btn-bg: var(--club-green);
  --btn-fg: var(--club-white);
  --btn-bd: var(--club-green);

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 13px 24px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bd);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  transition: transform 0.25s ease, background-color 0.25s ease,
    color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.btn-club i { font-size: 14px; transition: transform 0.25s ease; }

.btn-club:hover,
.btn-club:focus-visible {
  color: var(--btn-fg);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(3, 42, 35, 0.16);
}

.btn-club:hover i { transform: translateX(3px); }

.btn-club:focus-visible {
  outline: 2px solid var(--club-gold);
  outline-offset: 3px;
}

.btn-club--gold {
  --btn-bg: var(--club-gold);
  --btn-fg: var(--club-dark);
  --btn-bd: var(--club-gold);
}

.btn-club--gold:hover,
.btn-club--gold:focus-visible {
  --btn-bg: var(--club-gold-light);
  --btn-bd: var(--club-gold-light);
}

.btn-club--ghost {
  --btn-bg: transparent;
  --btn-fg: #fff;
  --btn-bd: rgba(255, 255, 255, 0.55);
}

.btn-club--ghost:hover,
.btn-club--ghost:focus-visible {
  --btn-bg: rgba(255, 255, 255, 0.1);
  --btn-bd: #fff;
  --btn-fg: #fff;
  box-shadow: none;
}

.btn-club--outline {
  --btn-bg: transparent;
  --btn-fg: var(--club-green);
  --btn-bd: rgba(6, 59, 48, 0.35);
}

.btn-club--outline:hover,
.btn-club--outline:focus-visible {
  --btn-bg: var(--club-green);
  --btn-fg: var(--club-white);
  --btn-bd: var(--club-green);
}

.btn-club--cream {
  --btn-bg: var(--club-cream);
  --btn-fg: var(--club-dark);
  --btn-bd: var(--club-cream);
}

.btn-club--dark {
  --btn-bg: var(--club-green);
  --btn-fg: var(--club-white);
  --btn-bd: var(--club-green);
}

/* Small text links with an arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--club-green);
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(6, 59, 48, 0.25);
  transition: color 0.25s ease, border-color 0.25s ease, gap 0.25s ease;
}

.link-arrow i { transition: transform 0.25s ease; }

.link-arrow:hover {
  color: var(--club-gold-ink);
  border-color: var(--club-gold);
}

.link-arrow:hover i { transform: translateX(3px); }

.link-arrow--gold {
  color: var(--club-gold);
  border-color: rgba(201, 154, 61, 0.4);
}

.link-arrow--gold:hover { color: var(--club-gold-light); }

/* --------------------------------------------------------------------------
   Small components
   -------------------------------------------------------------------------- */

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.check-list li {
  position: relative;
  padding-left: 34px;
  font-size: 15px;
  color: var(--club-muted);
  line-height: 1.55;
}

.check-list li::before {
  content: "\F26E"; /* bootstrap-icons check-lg */
  font-family: "bootstrap-icons";
  position: absolute;
  left: 0;
  top: 1px;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: var(--club-gold);
  color: var(--club-dark);
  font-size: 10px;
  line-height: 21px;
  text-align: center;
  font-weight: 700;
}

.check-list--light li { color: rgba(255, 255, 255, 0.82); }

/* Decorative gold rule */
.rule-gold {
  width: 54px;
  height: 1px;
  background: var(--club-gold);
  border: 0;
  opacity: 1;
  margin: 0;
}

/* Subtle reveal on scroll (progressive enhancement) */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

html.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html.js [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}
