/* Cricket Manager Heritage — promo site styles
   Heritage palette: Pavilion Maroon, Sepia Gold, Cream, Walnut
   Typography: Playfair Display (display) + Source Sans 3 (body)
*/

:root {
  --maroon: #7A1F2B;
  --maroon-dark: #5A1620;
  --maroon-rose: #A14654;
  --gold: #B68A4A;
  --gold-bronze: #8C6932;
  --gold-light: #E0BE76;
  --ivory: #F2E8D5;
  --cream: #FAF4E8;
  --cream-soft: #FDF8EE;
  --paper: #EEE3CC;
  --parchment: #F7EFDD;
  --walnut: #2A1B12;
  --walnut-surface: #3B2A1F;
  --coffee: #5A4636;
  --dust: #8A7460;
  --divider: rgba(182, 138, 74, 0.32);
  --maroon-gradient: linear-gradient(180deg, #7A1F2B 0%, #5A1620 100%);
  --gold-gradient: linear-gradient(135deg, #E0BE76 0%, #8C6932 100%);
  --parchment-gradient: linear-gradient(180deg, #FAF4E8 0%, #EEE3CC 100%);
  --hero-overlay: linear-gradient(180deg, rgba(42,27,18,0.55) 0%, rgba(42,27,18,0.35) 40%, rgba(250,244,232,0.92) 100%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Source Sans 3', system-ui, -apple-system, sans-serif;
  color: var(--walnut);
  background: var(--cream);
  margin: 0;
  overflow-x: hidden;
  font-size: 17px;
  line-height: 1.6;
}

.font-display { font-family: 'Playfair Display', Georgia, serif; }
.font-body { font-family: 'Source Sans 3', system-ui, sans-serif; }

/* Subtle parchment texture overlay */
.parchment-texture::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(182,138,74,0.06) 0, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(122,31,43,0.04) 0, transparent 50%);
  opacity: 0.9;
  z-index: 0;
}

/* ====== Typography ====== */
.hero-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.015em;
  color: var(--cream);
}
.hero-title .accent {
  font-style: italic;
  font-weight: 700;
  color: var(--gold-light);
  position: relative;
}
.hero-title .accent::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -8px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  opacity: 0.7;
}
.outlined-text {
  -webkit-text-stroke: 1.5px var(--gold);
  color: transparent;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-style: italic;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(30px, 4.6vw, 48px);
  line-height: 1.08;
  color: var(--walnut);
  letter-spacing: -0.01em;
}
.section-title em {
  font-style: italic;
  color: var(--maroon);
  font-weight: 700;
}
.section-title .gold-text {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: italic;
}
.eyebrow {
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-bronze);
  display: inline-block;
  position: relative;
  padding: 0 18px;
}
.eyebrow::before,
.eyebrow::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 10px;
  height: 1px;
  background: var(--gold);
}
.eyebrow::before { left: 0; }
.eyebrow::after { right: 0; }
.eyebrow.solo::before,
.eyebrow.solo::after { display: none; }

/* Decorative serif underline (heritage motif) */
.serif-underline {
  display: inline-block;
  width: 64px;
  height: 2px;
  background: var(--gold);
  position: relative;
  margin: 14px auto 24px;
}
.serif-underline::before,
.serif-underline::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  transform: translateY(-50%);
}
.serif-underline::before { left: -14px; }
.serif-underline::after { right: -14px; }

/* ====== Buttons ====== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.04em;
  padding: 0 28px;
  height: 52px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  line-height: 1;
  gap: 10px;
  text-transform: uppercase;
}
.btn-primary {
  background: var(--maroon-gradient);
  color: var(--cream);
  box-shadow: 0 10px 24px rgba(122,31,43,0.32), inset 0 1px 0 rgba(255,255,255,0.08);
  border: 1px solid var(--maroon-dark);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(122,31,43,0.42), inset 0 1px 0 rgba(255,255,255,0.12);
}
.btn-secondary {
  background: transparent;
  color: var(--maroon);
  border: 1.5px solid var(--maroon);
}
.btn-secondary:hover {
  background: rgba(122,31,43,0.06);
  transform: translateY(-2px);
}
.btn-gold {
  background: var(--gold-gradient);
  color: var(--walnut);
  border: 1px solid var(--gold-bronze);
  box-shadow: 0 10px 24px rgba(140,105,50,0.32);
}
.btn-gold:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}
.btn-ghost {
  background: transparent;
  color: var(--cream);
  border: 1.5px solid rgba(242,232,213,0.5);
}
.btn-ghost:hover { background: rgba(242,232,213,0.1); border-color: var(--gold-light); color: var(--gold-light); }

/* ====== Navigation ====== */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(250,244,232,0.92);
  border-bottom: 1px solid var(--divider);
  transition: background .2s ease;
}
.site-nav .brand-name {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--maroon);
  letter-spacing: -0.01em;
}
.nav-link {
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: var(--walnut);
  padding: 8px 14px;
  border-radius: 4px;
  text-decoration: none;
  transition: background .15s ease, color .15s ease;
  letter-spacing: 0.02em;
}
.nav-link:hover { background: rgba(122,31,43,0.06); color: var(--maroon); }

/* ====== Hero ====== */
.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  isolation: isolate;
  background: var(--walnut);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('images/hero_bg.webp');
  background-size: cover;
  background-position: center 30%;
  z-index: -2;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--hero-overlay);
}
.hero-fallback {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--walnut-surface) 0%, var(--walnut) 60%, var(--cream) 100%);
  z-index: -3;
}
.hero-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 30%, rgba(26,15,8,0.55) 100%);
  z-index: -1;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(182,138,74,0.18);
  color: var(--gold-light);
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 600;
  font-size: 12px;
  padding: 8px 16px;
  border-radius: 999px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 1px solid rgba(224,190,118,0.35);
}

.stat-num {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 36px;
  line-height: 1;
  color: var(--gold-light);
}
.stat-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(242,232,213,0.78);
  margin-top: 6px;
}
.hero .divider-v {
  width: 1px;
  height: 44px;
  background: rgba(224,190,118,0.35);
}

/* ====== Cards ====== */
.heritage-card {
  background: var(--paper);
  border: 1px solid var(--divider);
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 2px 6px rgba(42,27,18,0.12);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  position: relative;
  overflow: hidden;
}
.heritage-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold-gradient);
  opacity: 0;
  transition: opacity .25s ease;
}
.heritage-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(42,27,18,0.18);
  border-color: var(--gold);
}
.heritage-card:hover::before { opacity: 1; }
.heritage-card h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--walnut);
  margin: 14px 0 10px;
  line-height: 1.2;
}
.heritage-card p {
  color: var(--coffee);
  font-size: 15px;
  line-height: 1.6;
}

.feature-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--maroon-gradient);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(122,31,43,0.28), inset 0 1px 0 rgba(255,255,255,0.1);
  border: 2px solid var(--gold);
  position: relative;
}
.feature-icon svg { width: 30px; height: 30px; }
.feature-icon-gold {
  background: var(--gold-gradient);
  color: var(--maroon);
  border-color: var(--maroon);
}

/* ====== Phone frame / screenshot ====== */
.phone-frame-css {
  width: 280px;
  aspect-ratio: 420 / 912;
  background: var(--walnut);
  border-radius: 36px;
  padding: 10px;
  box-shadow:
    0 30px 70px rgba(42,27,18,0.4),
    0 0 0 1.5px var(--gold-bronze),
    inset 0 0 0 1px rgba(224,190,118,0.18);
  position: relative;
  margin: 0 auto;
}
.phone-frame-css::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 18px;
  background: #0a0604;
  border-radius: 999px;
  z-index: 2;
}
.phone-frame-css img {
  width: 100%;
  height: 100%;
  border-radius: 28px;
  object-fit: cover;
  display: block;
}

/* ====== Almanac/ornate divider ====== */
.almanac-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 40px 0;
  gap: 16px;
}
.almanac-divider .line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  max-width: 220px;
}
.almanac-divider .ornament {
  width: 12px;
  height: 12px;
  border: 1.5px solid var(--gold);
  transform: rotate(45deg);
  position: relative;
}
.almanac-divider .ornament::before {
  content: '';
  position: absolute;
  inset: 3px;
  background: var(--gold);
}

/* ====== Wave / section dividers ====== */
.wave-top, .wave-bottom {
  position: relative;
  line-height: 0;
}
.wave-top svg, .wave-bottom svg {
  display: block;
  width: 100%;
  height: 60px;
}

/* ====== Swiper / Carousel ====== */
.swiper-pagination-bullet {
  background: var(--coffee) !important;
  opacity: 0.4;
}
.swiper-pagination-bullet-active {
  background: var(--maroon) !important;
  opacity: 1 !important;
  transform: scale(1.3);
}
.swiper-button-next, .swiper-button-prev {
  color: var(--maroon) !important;
  background: var(--parchment);
  width: 48px !important;
  height: 48px !important;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  box-shadow: 0 6px 14px rgba(42,27,18,0.18);
}
.swiper-button-next::after, .swiper-button-prev::after { font-size: 16px !important; font-weight: 700; }

/* ====== Legal pages ====== */
.legal-content {
  max-width: 820px;
  margin: 0 auto;
  padding: 48px 24px 120px;
  color: var(--walnut);
  line-height: 1.75;
}
.legal-content h1 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(32px, 5vw, 46px);
  margin: 0 0 12px;
  letter-spacing: -0.01em;
  color: var(--walnut);
}
.legal-content h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 24px;
  margin: 40px 0 14px;
  color: var(--maroon);
  border-bottom: 1px solid var(--divider);
  padding-bottom: 8px;
}
.legal-content h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 19px;
  margin: 26px 0 8px;
  color: var(--walnut);
  font-style: italic;
}
.legal-content p, .legal-content li {
  color: var(--coffee);
  font-size: 16px;
}
.legal-content ul { padding-left: 22px; }
.legal-content li { margin-bottom: 8px; }
.legal-content a { color: var(--maroon); text-decoration: underline; text-underline-offset: 3px; }
.legal-content a:hover { color: var(--maroon-dark); }
.legal-content .meta {
  color: var(--dust);
  font-size: 14px;
  font-style: italic;
}
.legal-content strong { color: var(--walnut); }
.legal-content em { color: var(--gold-bronze); font-style: italic; }

/* ====== Forms ====== */
.form-input, .form-textarea {
  width: 100%;
  background: var(--parchment);
  border: 1.5px solid var(--divider);
  border-radius: 8px;
  padding: 14px 18px;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 16px;
  color: var(--walnut);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--maroon);
  box-shadow: 0 0 0 3px rgba(122,31,43,0.12);
}
.form-label {
  display: block;
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--walnut);
  margin-bottom: 8px;
}
.form-file {
  display: block;
  padding: 14px 18px;
  background: var(--parchment);
  border: 2px dashed var(--divider);
  border-radius: 8px;
  text-align: center;
  color: var(--coffee);
  font-family: 'Source Sans 3', sans-serif;
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease;
}
.form-file:hover { border-color: var(--maroon); color: var(--maroon); }
.form-file input { display: none; }

/* ====== Footer ====== */
.site-footer {
  background: var(--walnut);
  color: var(--ivory);
  padding: 64px 24px 32px;
  position: relative;
  border-top: 4px solid var(--gold);
}
.site-footer a { color: var(--gold-light); text-decoration: none; transition: color .15s ease; }
.site-footer a:hover { color: var(--cream); }
.footer-grid {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 48px;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }

.compliance-notice {
  background: rgba(242,232,213,0.06);
  border: 1px solid rgba(224,190,118,0.22);
  border-radius: 8px;
  padding: 14px 16px;
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(242,232,213,0.85);
}
.compliance-notice strong { color: var(--gold-light); }

/* ====== Privacy acceptance button ====== */
.privacy-accept-btn {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding: 20px 16px 24px;
  background: linear-gradient(180deg, rgba(250,244,232,0) 0%, rgba(250,244,232,0.96) 50%, rgba(250,244,232,1) 100%);
  pointer-events: none;
}
.privacy-accept-btn.hidden { display: none; }
.privacy-accept-btn .accept-btn {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--maroon-gradient);
  color: var(--cream);
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0 32px;
  height: 56px;
  border-radius: 6px;
  border: 1px solid var(--maroon-dark);
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(122,31,43,0.42);
  min-width: 260px;
}
.privacy-accept-btn .accept-btn:hover { filter: brightness(1.05); transform: translateY(-2px); transition: all .18s ease; }

/* ====== Misc ====== */
[x-cloak] { display: none !important; }

/* Compliance banner */
.cricket-disclaimer {
  background: var(--paper);
  border-left: 4px solid var(--gold);
  border-radius: 6px;
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 14px;
  color: var(--coffee);
  line-height: 1.6;
}
.cricket-disclaimer strong { color: var(--maroon); }

/* Match preview card on home */
.fixture-card {
  background: var(--parchment-gradient);
  border: 1.5px solid var(--gold);
  border-radius: 10px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 6px 18px rgba(42,27,18,0.12);
}
.fixture-card .crest {
  width: 64px;
  height: 64px;
  object-fit: contain;
}
.fixture-card .vs {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 700;
  font-size: 20px;
  color: var(--gold-bronze);
}
.fixture-card .team-name {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--walnut);
  text-align: center;
  margin-top: 4px;
  max-width: 100px;
  line-height: 1.2;
}

/* Hero CTA wrapper */
.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

@media (max-width: 640px) {
  .btn { font-size: 14px; padding: 0 22px; height: 48px; }
  .phone-frame-css { width: 240px; }
}
