/* ============================================================
   Range Caddies — Web Design System
   Mirrors the RC iOS token set for brand consistency
   ============================================================ */

/* ─── Tokens ─────────────────────────────────────────────── */
:root {
  --rc-dark-base:    #0A1E19;
  --rc-dark-surface: #0F3028;
  --rc-green-700:    #1B4D3E;
  --rc-green-900:    #0F3028;
  --rc-gold-500:     #C9A84C;
  --rc-gold-300:     #DFC278;
  --rc-gold-200:     #EDD7A0;
  --rc-white:        #FFFFFF;
  --rc-white-70:     rgba(255,255,255,0.70);
  --rc-white-50:     rgba(255,255,255,0.50);
  --rc-white-15:     rgba(255,255,255,0.15);
  --rc-white-08:     rgba(255,255,255,0.08);
  --rc-radius-lg:    16px;
  --rc-radius-md:    12px;
  --rc-radius-sm:    8px;

  /* Typography scale */
  --font-xs:   0.75rem;   /* 12px */
  --font-sm:   0.875rem;  /* 14px */
  --font-base: 1rem;      /* 16px */
  --font-lg:   1.125rem;  /* 18px */
  --font-xl:   1.375rem;  /* 22px */
  --font-2xl:  1.75rem;   /* 28px */
  --font-3xl:  2.25rem;   /* 36px */
  --font-4xl:  3rem;      /* 48px */

  /* Spacing */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
}

/* ─── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
               "Helvetica Neue", Arial, sans-serif;
  background: var(--rc-dark-base);
  color: var(--rc-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: var(--rc-gold-300); text-decoration: none; }
a:hover { color: var(--rc-gold-200); text-decoration: underline; }
img { max-width: 100%; display: block; }

/* ─── Layout ─────────────────────────────────────────────── */
.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 var(--space-5);
}
.container--wide {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 var(--space-5);
}

/* ─── Nav ────────────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 30, 25, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--rc-white-15);
}
.nav-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: var(--space-4) var(--space-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-lg);
  font-weight: 700;
  color: var(--rc-white);
  letter-spacing: -0.4px;
}
.nav-brand-icon {
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, var(--rc-green-700), var(--rc-dark-base));
  border: 1.5px solid var(--rc-gold-500);
  border-radius: var(--rc-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  list-style: none;
}
.nav-links a {
  font-size: var(--font-sm);
  font-weight: 500;
  color: var(--rc-white-70);
  transition: color 0.15s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--rc-gold-300); text-decoration: none; }

/* ─── Page Hero ──────────────────────────────────────────── */
.page-hero {
  padding: var(--space-12) 0 var(--space-10);
  text-align: center;
  border-bottom: 1px solid var(--rc-white-08);
}
.page-hero__eyebrow {
  display: inline-block;
  font-size: var(--font-xs);
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--rc-gold-300);
  margin-bottom: var(--space-3);
}
.page-hero__title {
  font-size: var(--font-3xl);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: var(--space-4);
}
.page-hero__subtitle {
  font-size: var(--font-lg);
  color: var(--rc-white-70);
  max-width: 520px;
  margin: 0 auto;
}
.page-hero__date {
  margin-top: var(--space-4);
  font-size: var(--font-sm);
  color: var(--rc-white-50);
}

/* ─── Section ────────────────────────────────────────────── */
.section {
  padding: var(--space-10) 0;
  border-bottom: 1px solid var(--rc-white-08);
}
.section:last-child { border-bottom: none; }
.section__label {
  font-size: var(--font-xs);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--rc-gold-300);
  margin-bottom: var(--space-4);
}
.section__title {
  font-size: var(--font-2xl);
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: var(--space-3);
}
.section__body {
  color: var(--rc-white-70);
  font-size: var(--font-base);
  line-height: 1.75;
}
.section__body p { margin-bottom: var(--space-4); }
.section__body p:last-child { margin-bottom: 0; }
.section__body h3 {
  font-size: var(--font-lg);
  font-weight: 700;
  color: var(--rc-white);
  margin: var(--space-6) 0 var(--space-2);
}
.section__body ul, .section__body ol {
  margin: var(--space-3) 0 var(--space-4) var(--space-6);
}
.section__body li { margin-bottom: var(--space-2); }

/* ─── Card ────────────────────────────────────────────────── */
.card {
  background: var(--rc-white-08);
  border: 1px solid var(--rc-white-15);
  border-radius: var(--rc-radius-lg);
  padding: var(--space-6);
  margin-bottom: var(--space-4);
}

/* ─── FAQ Accordion (CSS-only) ───────────────────────────── */
.faq-list { display: flex; flex-direction: column; gap: var(--space-2); }
.faq-item {
  background: var(--rc-white-08);
  border: 1px solid var(--rc-white-15);
  border-radius: var(--rc-radius-md);
  overflow: hidden;
}
.faq-item input[type="checkbox"] { display: none; }
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-5) var(--space-6);
  font-size: var(--font-base);
  font-weight: 600;
  color: var(--rc-white);
  cursor: pointer;
  user-select: none;
  transition: color 0.15s;
  gap: var(--space-4);
}
.faq-question:hover { color: var(--rc-gold-300); }
.faq-chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--rc-gold-500);
  transition: transform 0.25s ease;
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-answer-inner {
  padding: 0 var(--space-6) var(--space-5);
  font-size: var(--font-sm);
  color: var(--rc-white-70);
  line-height: 1.7;
  border-top: 1px solid var(--rc-white-08);
  padding-top: var(--space-4);
}
.faq-item input:checked ~ .faq-question .faq-chevron { transform: rotate(180deg); }
.faq-item input:checked ~ .faq-answer { max-height: 500px; }

/* ─── Contact Card ───────────────────────────────────────── */
.contact-card {
  background: linear-gradient(135deg, rgba(201,168,76,0.12) 0%, rgba(27,77,62,0.25) 100%);
  border: 1px solid rgba(201,168,76,0.30);
  border-radius: var(--rc-radius-lg);
  padding: var(--space-8) var(--space-6);
  text-align: center;
}
.contact-card__icon { font-size: 2.5rem; margin-bottom: var(--space-4); }
.contact-card__title {
  font-size: var(--font-xl);
  font-weight: 700;
  margin-bottom: var(--space-2);
}
.contact-card__body {
  color: var(--rc-white-70);
  margin-bottom: var(--space-5);
  font-size: var(--font-base);
}
.contact-card__email {
  display: inline-block;
  background: var(--rc-gold-500);
  color: var(--rc-dark-base);
  font-weight: 700;
  font-size: var(--font-sm);
  padding: var(--space-3) var(--space-6);
  border-radius: 100px;
  letter-spacing: 0.2px;
  transition: background 0.15s, transform 0.1s;
}
.contact-card__email:hover {
  background: var(--rc-gold-300);
  text-decoration: none;
  transform: translateY(-1px);
}

/* ─── Footer ──────────────────────────────────────────────── */
.site-footer {
  background: var(--rc-dark-surface);
  border-top: 1px solid var(--rc-white-15);
  padding: var(--space-8) 0;
}
.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 var(--space-5);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
}
.footer-copy {
  font-size: var(--font-xs);
  color: var(--rc-white-50);
}
.footer-links {
  display: flex;
  gap: var(--space-5);
  list-style: none;
}
.footer-links a {
  font-size: var(--font-xs);
  color: var(--rc-white-50);
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--rc-gold-300); text-decoration: none; }

/* ─── Index page specific ────────────────────────────────── */
.hero-section {
  min-height: 72vh;
  display: flex;
  align-items: center;
  padding: var(--space-20) 0 var(--space-16);
  background: linear-gradient(160deg, var(--rc-dark-surface) 0%, var(--rc-green-700) 50%, var(--rc-dark-base) 100%);
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 60% 40%, rgba(201,168,76,0.07), transparent 60%);
  pointer-events: none;
}
.hero-content { position: relative; }
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(201,168,76,0.15);
  border: 1px solid rgba(201,168,76,0.30);
  border-radius: 100px;
  padding: var(--space-1) var(--space-4);
  font-size: var(--font-xs);
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--rc-gold-300);
  margin-bottom: var(--space-5);
}
.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.05;
  margin-bottom: var(--space-5);
}
.hero-title span { color: var(--rc-gold-500); }
.hero-subtitle {
  font-size: var(--font-lg);
  color: var(--rc-white-70);
  max-width: 460px;
  line-height: 1.65;
  margin-bottom: var(--space-8);
}
.hero-cta-group {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--rc-gold-500);
  color: var(--rc-dark-base);
  font-weight: 700;
  font-size: var(--font-base);
  padding: var(--space-4) var(--space-6);
  border-radius: var(--rc-radius-md);
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
  box-shadow: 0 4px 16px rgba(201,168,76,0.30);
}
.btn-primary:hover {
  background: var(--rc-gold-300);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,168,76,0.40);
  text-decoration: none;
  color: var(--rc-dark-base);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--rc-white-08);
  color: var(--rc-white);
  font-weight: 600;
  font-size: var(--font-base);
  padding: var(--space-4) var(--space-6);
  border-radius: var(--rc-radius-md);
  border: 1px solid var(--rc-white-15);
  transition: background 0.15s;
}
.btn-secondary:hover {
  background: var(--rc-white-15);
  text-decoration: none;
  color: var(--rc-white);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-6);
}
.feature-tile {
  background: var(--rc-white-08);
  border: 1px solid var(--rc-white-15);
  border-radius: var(--rc-radius-lg);
  padding: var(--space-6);
}
.feature-tile__icon {
  width: 44px;
  height: 44px;
  background: rgba(201,168,76,0.15);
  border-radius: var(--rc-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: var(--space-4);
}
.feature-tile__title {
  font-size: var(--font-base);
  font-weight: 700;
  margin-bottom: var(--space-2);
}
.feature-tile__desc {
  font-size: var(--font-sm);
  color: var(--rc-white-70);
  line-height: 1.6;
}

/* ─── Responsive ──────────────────────────────────────────── */
@media (max-width: 600px) {
  .page-hero__title { font-size: var(--font-2xl); }
  .nav-links { gap: var(--space-4); }
  .faq-question { padding: var(--space-4); }
  .faq-answer-inner { padding: var(--space-3) var(--space-4) var(--space-4); }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
