/*
 * FreeCredit Casinos — Design System v3.0 (Heritage)
 *
 * Logo-derived palette: forest green shield + antique gold + cream pages.
 * Mood: classic, trustworthy, boutique. Editorial heritage feel.
 *
 * Hybrid theme: cream/ivory body, green & gold accents, dark navy footer.
 * Used by all pages. Page-specific styles continue to live inline.
 * To restyle the entire site, edit this file.
 */

/* ─── DESIGN TOKENS ─── */
:root {
  /* Cream/ivory page surface scale */
  --bg-0:       #faf7f0;        /* main page background — warm cream */
  --bg-1:       #f5f0e3;        /* slightly deeper cream — section backgrounds */
  --bg-2:       #ffffff;        /* card surface, pristine white */
  --bg-3:       #ede4ce;        /* warm parchment — featured cards */

  /* Dark surfaces (footer + navy elements) */
  --navy-0:     #0e1b2e;        /* deep navy — footer base */
  --navy-1:     #142844;        /* navy panel */
  --navy-2:     #1f3a5e;        /* lighter navy accent */

  /* Text scale (on cream) */
  --ink-0:      #1a2f1a;        /* deep forest — primary headings */
  --ink-1:      #2d3f2d;        /* secondary heading */
  --ink-2:      #4a5547;        /* body text */
  --ink-3:      #6b766a;        /* muted secondary text */
  --ink-4:      #8b938a;        /* very muted captions */

  /* Text scale (on navy) */
  --navy-text-0: #faf7f0;       /* cream on navy */
  --navy-text-1: #d4cfc2;       /* muted cream on navy */
  --navy-text-2: #8a9aaf;       /* navy-muted */

  /* Brand colors (from logo) */
  --green-deep:  #13693a;        /* deepest forest, logo shadow */
  --green:       #1e7344;        /* signature forest green */
  --green-mid:   #28834a;        /* lighter green highlight */
  --green-bright: #2d9d56;       /* accent green for CTAs */

  --gold:        #d5ae54;        /* antique signature gold */
  --gold-deep:   #b08c3a;        /* darker gold for shadows */
  --gold-light:  #e8c878;        /* light gold for highlights */
  --gold-muted:  #9c8240;        /* muted gold for borders */

  /* Semantic */
  --line:         rgba(30, 115, 68, 0.12);    /* subtle green-tinted border */
  --line-strong:  rgba(30, 115, 68, 0.25);
  --line-gold:    rgba(213, 174, 84, 0.30);
  --line-warm:    rgba(176, 140, 58, 0.20);
  --red:          #b8404a;
  --red-soft:     #f5e8e8;
  --green-soft:   #e8f0e8;

  /* Gradients (heritage-appropriate, restrained) */
  --grad-gold:     linear-gradient(135deg, #e8c878 0%, #d5ae54 50%, #b08c3a 100%);
  --grad-green:    linear-gradient(135deg, #28834a 0%, #1e7344 100%);
  --grad-cream:    linear-gradient(180deg, #faf7f0 0%, #f5f0e3 100%);
  --grad-navy:     linear-gradient(180deg, #142844 0%, #0e1b2e 100%);

  /* Type stack — heritage editorial */
  --serif:    'Playfair Display', 'EB Garamond', Georgia, serif;
  --sans:     'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --display:  'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --mono:     'JetBrains Mono', ui-monospace, 'SF Mono', monospace;

  /* Sizing */
  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 16px;
  --radius-xl: 22px;

  /* Shadows — soft, paper-like, no glow effects */
  --shadow-sm:    0 1px 3px rgba(26, 47, 26, 0.08);
  --shadow:       0 2px 12px rgba(26, 47, 26, 0.10);
  --shadow-lg:    0 8px 32px rgba(26, 47, 26, 0.14);
  --shadow-card:  0 1px 3px rgba(26, 47, 26, 0.06), 0 1px 2px rgba(26, 47, 26, 0.10);
  --shadow-card-lg: 0 8px 24px rgba(26, 47, 26, 0.10), 0 2px 6px rgba(26, 47, 26, 0.06);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg-0);
  color: var(--ink-2);
  line-height: 1.65;
  font-feature-settings: "ss01", "cv11";
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--green);
  text-decoration: none;
  transition: color 0.2s, opacity 0.2s;
}
a:hover { color: var(--gold-deep); }

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

::selection {
  background: var(--gold-light);
  color: var(--ink-0);
}

/* ─── NOTICE BAR ─── */
.notice {
  background: var(--navy-0);
  border-bottom: 2px solid var(--gold);
  padding: 11px 0;
  text-align: center;
  font-size: 12px;
  color: var(--navy-text-1);
  letter-spacing: 0.01em;
}
.notice b { color: var(--gold-light); font-weight: 700; }

/* ─── HEADER ─── */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 240, 0.92);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid var(--line);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  max-width: 1280px;
  margin: 0 auto;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: opacity 0.2s;
  flex-shrink: 0;
  min-width: 0;
}
.brand:hover { opacity: 0.85; }
.brand-logo {
  height: 48px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
.brand-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1;
  font-family: var(--display);
}
.brand-wordmark .wm-line1 {
  font-size: 19px;
  font-weight: 600;
  color: var(--ink-0);
  letter-spacing: 0.005em;
}
.brand-wordmark .wm-line2 {
  font-size: 19px;
  font-weight: 600;
  color: var(--gold-deep);
  letter-spacing: 0.04em;
  margin-top: 2px;
}

@media (max-width: 640px) {
  .header-row { padding: 10px 14px; gap: 8px; }
  .brand-logo { height: 40px; }
  .brand-wordmark .wm-line1,
  .brand-wordmark .wm-line2 { font-size: 16px; }
}
@media (max-width: 380px) {
  .brand-wordmark { display: none; }
  .brand-logo { height: 42px; }
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

nav.primary {
  display: flex;
  align-items: center;
  gap: 26px;
}
nav.primary a {
  color: var(--ink-1);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.2s;
  position: relative;
  text-decoration: none;
}
nav.primary a:hover { color: var(--green); }
nav.primary a.active {
  color: var(--green);
  font-weight: 600;
}
nav.primary a.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

@media (max-width: 980px) {
  nav.primary { display: none; }
  .cta-desktop { display: none; }
}
@media (min-width: 981px) {
  .mobile-menu-btn { display: none !important; }
}

/* ─── MOBILE DRAWER ─── */
.mobile-drawer {
  display: none;
  flex-direction: column;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  padding: 16px 20px 24px;
  gap: 4px;
}
.mobile-drawer a {
  color: var(--ink-1);
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.mobile-drawer a:last-of-type { border-bottom: none; }
.mobile-drawer a.cta-pill {
  margin-top: 12px;
  text-align: center;
  border-bottom: none;
  padding: 14px 22px;
  font-family: var(--sans);
  font-size: 14px;
  color: #fff;
}
.mobile-drawer a.cta-pill:hover { color: #fff; }
body.menu-open .mobile-drawer { display: flex; }
body.menu-open .mobile-menu-btn { background: var(--bg-1); }

/* ─── CTA PILL ─── */
.cta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green);
  color: #fff;
  padding: 11px 22px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}
.cta-pill:hover {
  background: var(--green-deep);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.cta-pill.gold {
  background: var(--gold);
  color: var(--ink-0);
}
.cta-pill.gold:hover {
  background: var(--gold-deep);
  color: #fff;
}
.cta-pill.outline {
  background: transparent;
  border: 1.5px solid var(--green);
  color: var(--green);
  box-shadow: none;
}
.cta-pill.outline:hover {
  background: var(--green);
  color: #fff;
}

/* ─── LANG SWITCH ─── */
.lang-switch {
  display: inline-flex;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px;
  margin-right: 0;
  gap: 1px;
}
.lang-switch .lang-opt {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  padding: 5px 10px;
  border-radius: 999px;
  transition: all 0.15s;
  text-decoration: none;
}
.lang-switch .lang-opt:hover { color: var(--ink-0); }
.lang-switch .lang-opt.lang-on {
  background: var(--green);
  color: #fff;
}
@media (max-width: 480px) {
  .lang-switch .lang-opt { padding: 4px 7px; font-size: 10px; }
}
@media (max-width: 360px) {
  .lang-switch { display: none; }
}

/* ─── LAYOUT WRAPPER ─── */
.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 80px 0;
}
@media (max-width: 768px) {
  section { padding: 56px 0; }
}

/* ─── HEADINGS ─── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink-0);
  line-height: 1.18;
}

h1.hero-title {
  font-size: clamp(34px, 5.5vw, 60px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 22px;
  color: var(--ink-0);
  text-wrap: balance;
}
h1.hero-title em {
  font-style: italic;
  color: var(--green);
  font-weight: 600;
}
h1.hero-title .accent {
  color: var(--gold-deep);
  font-style: italic;
}

h2.sect {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 16px;
  color: var(--ink-0);
}
h2.sect em {
  font-style: italic;
  color: var(--green);
}

h3 {
  font-size: 22px;
  font-weight: 700;
  margin: 32px 0 12px;
  letter-spacing: -0.01em;
  color: var(--ink-0);
  font-family: var(--sans);
}

/* ─── HERO ─── */
.hero {
  text-align: center;
  padding: 64px 20px 48px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 800px 400px at 50% -100px, rgba(30, 115, 68, 0.06), transparent 70%),
    radial-gradient(ellipse 600px 300px at 80% 30%, rgba(213, 174, 84, 0.04), transparent 70%);
}
@media (max-width: 640px) {
  .hero { padding: 48px 16px 32px; }
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-2);
  border: 1px solid var(--line-gold);
  color: var(--gold-deep);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}
.hero-eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}
.hero-sub {
  font-size: 19px;
  color: var(--ink-2);
  max-width: 720px;
  margin: 0 auto 36px;
  line-height: 1.65;
  font-family: var(--sans);
}
.hero-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 28px;
  font-size: 13px;
  color: var(--ink-3);
}
.hero-meta b { color: var(--ink-0); font-weight: 600; }

/* ─── ANSWER BLOCK (featured snippet) ─── */
.answer-block {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  margin: 48px auto;
  position: relative;
  max-width: 920px;
  border-left: 4px solid var(--gold);
  box-shadow: var(--shadow-card-lg);
  text-align: left;
}
.answer-label {
  font-size: 11px;
  color: var(--gold-deep);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 14px;
  font-family: var(--sans);
}
.answer-block p {
  font-family: var(--display);
  font-size: 21px;
  line-height: 1.55;
  color: var(--ink-0);
  font-weight: 400;
}
.answer-block p strong {
  color: var(--green);
  font-weight: 700;
}

/* ─── BRAND CARDS ─── */
.brand-card {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 28px;
  align-items: center;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  margin-bottom: 16px;
  text-decoration: none;
}
.brand-card:hover {
  border-color: var(--line-gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.brand-card.featured {
  background: linear-gradient(135deg, var(--bg-3), var(--bg-2));
  border-color: var(--gold);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card-lg);
}
.brand-card.featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad-gold);
}
.brand-rank {
  width: 96px;
  height: 96px;
  border-radius: 14px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 42px;
  font-weight: 700;
  color: var(--green);
}
.brand-card.featured .brand-rank {
  background: var(--grad-gold);
  color: var(--ink-0);
  border-color: transparent;
}
.brand-name {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 600;
  color: var(--ink-0);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.brand-rating {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-1);
  border: 1px solid var(--line-gold);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: var(--gold-deep);
  margin-bottom: 8px;
}
.brand-blurb {
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.55;
}
.brand-bonus {
  color: var(--green);
  font-weight: 700;
  font-size: 15px;
}

@media (max-width: 720px) {
  .brand-card { grid-template-columns: 64px 1fr; gap: 16px; padding: 18px; }
  .brand-rank { width: 64px; height: 64px; font-size: 28px; border-radius: 12px; }
  .brand-name { font-size: 22px; }
  .brand-card .cta-pill { grid-column: 1 / -1; justify-content: center; }
}

/* ─── PAYMENT GRID ─── */
.pay-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-top: 24px;
}
.pay-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.pay-card:hover {
  border-color: var(--green);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.pay-name {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 600;
  color: var(--ink-0);
  margin-bottom: 4px;
}
.pay-desc {
  font-size: 12px;
  color: var(--ink-3);
}

/* ─── STATS GRID ─── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin: 40px 0;
}
.stat {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.stat-num {
  display: block;
  font-family: var(--display);
  font-size: 46px;
  font-weight: 600;
  color: var(--green);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  font-size: 12px;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* ─── PROSE (long-form sections) ─── */
.prose {
  max-width: 760px;
  margin: 0 auto;
}
.prose p {
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.78;
  margin-bottom: 18px;
}
.prose p strong { color: var(--ink-0); font-weight: 700; }
.prose h3 {
  font-size: 24px;
  font-weight: 600;
  color: var(--ink-0);
  margin: 36px 0 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--display);
}
.prose h3::before {
  content: '';
  width: 5px;
  height: 26px;
  background: var(--gold);
  border-radius: 2px;
  flex-shrink: 0;
}
.prose ul, .prose ol {
  margin: 16px 0 24px 24px;
  color: var(--ink-2);
}
.prose li { margin-bottom: 8px; line-height: 1.7; }

/* ─── FAQ ─── */
.faq details {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  margin-bottom: 10px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.faq details:hover { border-color: var(--line-gold); }
.faq details[open] {
  border-color: var(--line-gold);
  box-shadow: var(--shadow-sm);
}
.faq summary {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink-0);
  padding: 22px 26px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  color: var(--gold-deep);
  font-size: 22px;
  font-weight: 400;
  transition: transform 0.2s;
  font-family: var(--sans);
}
.faq details[open] summary::after {
  content: '−';
}
.faq details p {
  padding: 0 26px 22px;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.7;
  font-family: var(--sans);
}
.faq details p strong { color: var(--green); font-weight: 700; }

/* ─── BREADCRUMB ─── */
.crumbs {
  font-size: 13px;
  color: var(--ink-3);
  padding: 20px 0;
}
.crumbs a { color: var(--green); }
.crumbs span { margin: 0 8px; color: var(--ink-4); }

/* ─── FOOTER (DARK NAVY) ─── */
footer.site {
  background: var(--grad-navy);
  border-top: 3px solid var(--gold);
  padding: 64px 0 32px;
  margin-top: 80px;
  color: var(--navy-text-1);
}
footer.site h5,
footer.site .footer-brand {
  color: var(--gold-light);
}
.f-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}
@media (max-width: 768px) {
  .f-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
.f-col h5 {
  font-family: var(--display);
  font-size: 14px;
  color: var(--gold-light);
  font-weight: 600;
  margin-bottom: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.f-col ul { list-style: none; }
.f-col li { margin-bottom: 8px; }
.f-col a {
  color: var(--navy-text-1);
  font-size: 13px;
  transition: color 0.2s;
  text-decoration: none;
}
.f-col a:hover { color: var(--gold-light); }

.f-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid rgba(213, 174, 84, 0.15);
  font-size: 12px;
  color: var(--navy-text-2);
}
.f-bottom a { color: var(--navy-text-1); }
.f-bottom a:hover { color: var(--gold-light); }

/* ─── LOGO LOCKUP (footer/about) ─── */
.brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.brand-lockup img {
  height: 52px;
  width: auto;
}
.brand-lockup .lockup-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  font-family: var(--display);
}
.brand-lockup .lockup-text .l1 {
  font-size: 20px;
  font-weight: 600;
  color: var(--gold-light);
  letter-spacing: 0.005em;
}
.brand-lockup .lockup-text .l2 {
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.04em;
  margin-top: 2px;
}

/* ─── TAGS / PILLS ─── */
.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green-soft);
  border: 1px solid var(--line);
  color: var(--green-deep);
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.tag-pill.gold {
  background: rgba(213, 174, 84, 0.12);
  border-color: var(--line-gold);
  color: var(--gold-deep);
}

/* ─── SECTION SEPARATORS ─── */
.divider-glow {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 64px auto;
  max-width: 600px;
  opacity: 0.5;
}

/* ─── MOBILE MENU BUTTON ─── */
.mobile-menu-btn {
  display: inline-flex;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  width: 40px;
  height: 40px;
  color: var(--ink-0);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.2s;
}
.mobile-menu-btn:hover { background: var(--bg-1); }

/* ─── UTILITIES ─── */
.text-green { color: var(--green); }
.text-gold { color: var(--gold-deep); }
.text-mute { color: var(--ink-3); }

/* Section that uses cream-deep background */
section.cream-deep {
  background: var(--bg-1);
}
