/* ============================================================
   East Texas State Fair — App Support Site
   Brand pulled from the ETSF / Gathera white-label app
   (mobile/src/lib/colors.ts, fair-config.ts, tailwind.config.js)
   ============================================================ */

:root {
  /* ETSF brand palette */
  --etsf-blue: #2B5EA7;
  --etsf-blue-dark: #1A3D6E;
  --etsf-blue-light: #4A8BD4;
  --etsf-gold: #E8A931;
  --etsf-gold-dark: #C48A1A;
  --etsf-leather: #8B5E3C;
  --etsf-navy: #152A4A;

  /* Surfaces & text (fair-config theme) */
  --bg: #F8F9FB;
  --surface: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.45);
  --text-primary: #1F2937;
  --text-secondary: #6B7280;
  --text-muted: #4B5563;
  --border: #E6E6E6;

  --radius: 16px;
  --radius-sm: 14px;
  --shadow-soft: 0 10px 30px rgba(21, 42, 74, 0.08);
  --shadow-card: 0 6px 20px rgba(21, 42, 74, 0.06);
  --maxw: 960px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-primary);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--etsf-blue); text-decoration: none; }
a:hover { color: var(--etsf-blue-dark); }

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

/* ---------- Bezold-edge glass card (matches the app) ---------- */
.glass {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-radius: var(--radius);
  border-top: 1.5px solid rgba(255, 255, 255, 0.6);
  border-left: 1.5px solid rgba(255, 255, 255, 0.5);
  border-bottom: 2px solid rgba(0, 0, 0, 0.10);
  border-right: 2px solid rgba(0, 0, 0, 0.07);
  box-shadow: var(--shadow-card);
}

/* ---------- ETSF app badge (recreated in CSS/SVG) ---------- */
.badge {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--etsf-blue-light), var(--etsf-blue) 55%, var(--etsf-blue-dark));
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.4), 0 4px 10px rgba(21,42,74,0.35);
  flex-shrink: 0;
}
.badge svg { width: 20px; height: 20px; margin-bottom: 1px; }
.badge .badge-text {
  font-size: 5px; font-weight: 700; letter-spacing: 0.5px;
  color: rgba(255,255,255,0.95); text-transform: uppercase; line-height: 1.1;
  text-align: center;
}
.badge.lg { width: 88px; height: 88px; border-radius: 22px; }
.badge.lg svg { width: 40px; height: 40px; }
.badge.lg .badge-text { font-size: 9px; }

/* ---------- Sticky nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 249, 251, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 12px 20px;
  display: flex; align-items: center; gap: 14px;
}
.nav-brand { display: flex; align-items: center; gap: 12px; }
.nav-brand .name { font-weight: 800; font-size: 16px; color: var(--etsf-navy); line-height: 1.1; }
.nav-brand .sub { font-size: 11px; color: var(--text-secondary); font-weight: 600; letter-spacing: 0.3px; }
.nav-links { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nav-links a {
  font-size: 14px; font-weight: 600; color: var(--text-muted);
  padding: 8px 12px; border-radius: 10px;
}
.nav-links a:hover { background: rgba(43, 94, 167, 0.08); color: var(--etsf-blue); }
.nav-links a.cta {
  background: var(--etsf-blue); color: #fff;
  box-shadow: 0 4px 12px rgba(43, 94, 167, 0.3);
}
.nav-links a.cta:hover { background: var(--etsf-blue-dark); color: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  text-align: center;
  padding: 76px 20px 84px;
  background:
    linear-gradient(180deg, rgba(21,42,74,0.78) 0%, rgba(26,61,110,0.72) 55%, rgba(21,42,74,0.92) 100%),
    url("assets/hero-leather.jpg");
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.hero-inner { max-width: 700px; margin: 0 auto; position: relative; z-index: 1; }
.hero .badge.lg { margin: 0 auto 22px; }
.hero h1 {
  font-size: clamp(30px, 5vw, 46px); font-weight: 800;
  margin: 0 0 6px; letter-spacing: -0.5px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.35);
}
.hero .eyebrow {
  display: inline-block; font-size: 12px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--etsf-gold); margin-bottom: 14px;
}
.hero .lede {
  font-size: 17px; color: rgba(255,255,255,0.9);
  margin: 12px auto 0; max-width: 540px;
}
.hero .tagline {
  font-size: 14px; font-style: italic; color: rgba(255,255,255,0.75);
  margin-top: 8px;
}
.hero-actions { margin-top: 30px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 700; padding: 13px 22px;
  border-radius: 12px; cursor: pointer; border: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--etsf-gold); color: var(--etsf-navy); box-shadow: 0 6px 18px rgba(232,169,49,0.4); }
.btn-primary:hover { background: var(--etsf-gold-dark); color: var(--etsf-navy); }
.btn-ghost {
  background: rgba(255,255,255,0.12); color: #fff;
  border: 1.5px solid rgba(255,255,255,0.4);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255,255,255,0.22); color: #fff; }

/* ---------- Sections ---------- */
section { padding: 56px 0; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 36px; }
.section-head .eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--etsf-blue);
}
.section-head h2 { font-size: clamp(24px, 4vw, 32px); font-weight: 800; margin: 8px 0 10px; color: var(--etsf-navy); }
.section-head p { color: var(--text-secondary); font-size: 16px; margin: 0; }

/* ---------- Quick start steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { padding: 22px; text-align: center; }
.step .num {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(43,94,167,0.1); color: var(--etsf-blue);
  font-weight: 800; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
}
.step h3 { font-size: 16px; font-weight: 700; margin: 0 0 6px; color: var(--text-primary); }
.step p { font-size: 14px; color: var(--text-secondary); margin: 0; }

/* ---------- FAQ ---------- */
.faq-search {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; margin: 0 auto 26px; max-width: 520px;
}
.faq-search svg { width: 18px; height: 18px; color: #9CA3AF; flex-shrink: 0; }
.faq-search input {
  border: none; outline: none; background: transparent;
  font-family: inherit; font-size: 15px; width: 100%; color: var(--text-primary);
}
.faq-cat { margin-bottom: 26px; }
.faq-cat-head { display: flex; align-items: center; gap: 12px; margin: 0 4px 12px; }
.faq-cat-icon {
  width: 36px; height: 36px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.faq-cat-icon svg { width: 18px; height: 18px; }
.faq-cat-head h3 { font-size: 17px; font-weight: 700; margin: 0; flex: 1; color: var(--etsf-navy); }
.faq-cat-head .count { font-size: 13px; font-weight: 600; color: var(--text-secondary); }

.faq-item { margin-bottom: 10px; overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  font-family: inherit; font-size: 15px; font-weight: 600; color: var(--text-primary);
  padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.faq-q .chev { width: 18px; height: 18px; color: #9CA3AF; transition: transform 0.2s ease; flex-shrink: 0; }
.faq-item.open .faq-q .chev { transform: rotate(180deg); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height 0.25s ease, padding 0.25s ease;
  padding: 0 18px;
  color: var(--text-muted); font-size: 14.5px;
}
.faq-item.open .faq-a { max-height: 320px; padding: 0 18px 18px; }
.faq-a::before { content: ""; display: block; height: 1px; background: #E5E7EB; margin-bottom: 12px; }
.faq-empty { text-align: center; color: var(--text-secondary); padding: 20px; display: none; }

/* ---------- Support / contact ---------- */
.support-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; align-items: stretch; }
.contact-card { position: relative; padding: 28px; overflow: hidden; border: 1.5px solid rgba(232,169,49,0.3) !important; }
.contact-card::before {
  content: ""; position: absolute; top: -40px; left: -40px;
  width: 160px; height: 160px; border-radius: 50%;
  background: radial-gradient(circle, rgba(232,169,49,0.28), transparent 70%);
  pointer-events: none;
}
.contact-card h3 { font-size: 19px; font-weight: 800; margin: 0 0 4px; color: var(--etsf-navy); position: relative; }
.contact-card .muted { color: var(--text-secondary); font-size: 14px; margin: 0 0 18px; position: relative; }
.contact-row {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 0; position: relative;
}
.contact-row + .contact-row { border-top: 1px solid rgba(0,0,0,0.05); }
.contact-row .ic {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  background: rgba(232,169,49,0.15); color: var(--etsf-gold-dark);
  display: flex; align-items: center; justify-content: center;
}
.contact-row .ic svg { width: 20px; height: 20px; }
.contact-row .label { font-size: 12px; color: var(--text-secondary); font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px; }
.contact-row .val { font-size: 16px; font-weight: 700; color: var(--text-primary); }
.contact-row a.val:hover { color: var(--etsf-blue); }

.fair-card {
  padding: 28px; display: flex; flex-direction: column; justify-content: center;
  text-align: center;
  background:
    linear-gradient(160deg, rgba(43,94,167,0.95), rgba(21,42,74,0.97));
  color: #fff; border: none;
}
.fair-card h3 { font-size: 19px; font-weight: 800; margin: 0 0 8px; color: #fff; }
.fair-card p { color: rgba(255,255,255,0.85); font-size: 14px; margin: 0 0 18px; }
.fair-card .btn-primary { align-self: center; }

/* ---------- Footer ---------- */
.footer {
  background: var(--etsf-navy); color: rgba(255,255,255,0.7);
  padding: 40px 20px; font-size: 14px;
}
.footer-inner { max-width: var(--maxw); margin: 0 auto; }
.footer-top { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-start; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand .name { color: #fff; font-weight: 800; font-size: 16px; }
.footer-brand .sub { font-size: 12px; color: rgba(255,255,255,0.55); }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a { color: rgba(255,255,255,0.8); font-weight: 600; }
.footer-links a:hover { color: var(--etsf-gold); }
.footer hr { border: none; border-top: 1px solid rgba(255,255,255,0.12); margin: 26px 0 18px; }
.footer .fine { font-size: 12.5px; color: rgba(255,255,255,0.5); line-height: 1.7; }
.footer .fine a { color: rgba(255,255,255,0.7); }

/* ---------- Interior page header band ---------- */
.page-hero {
  position: relative; color: #fff; text-align: center;
  padding: 54px 20px 58px;
  background:
    linear-gradient(180deg, rgba(21,42,74,0.82) 0%, rgba(26,61,110,0.80) 100%),
    url("assets/hero-leather.jpg");
  background-size: cover; background-position: center;
}
.page-hero .eyebrow {
  display: inline-block; font-size: 12px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase; color: var(--etsf-gold); margin-bottom: 10px;
}
.page-hero h1 { font-size: clamp(28px, 5vw, 40px); font-weight: 800; margin: 0; text-shadow: 0 2px 12px rgba(0,0,0,0.35); }
.page-hero p { color: rgba(255,255,255,0.88); font-size: 16px; margin: 12px auto 0; max-width: 520px; }

/* ---------- Info / address card ---------- */
.info-card { padding: 24px 26px; }
.info-card h3 { font-size: 17px; font-weight: 800; color: var(--etsf-navy); margin: 0 0 6px; }
.info-card p { color: var(--text-muted); margin: 0; font-size: 15px; line-height: 1.7; }

/* ---------- Privacy / Terms doc page ---------- */
.doc { padding: 48px 0 64px; }
.doc .glass { padding: 36px; }
.doc h1 { font-size: 30px; color: var(--etsf-navy); margin: 0 0 4px; }
.doc .meta { color: var(--text-secondary); font-size: 13px; margin: 0 0 24px; }
.doc h2 { font-size: 18px; color: var(--etsf-navy); margin: 26px 0 8px; }
.doc p { color: var(--text-muted); margin: 0 0 8px; }
.doc ul { margin: 0 0 8px; padding-left: 20px; color: var(--text-muted); }
.doc li { margin-bottom: 6px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; margin-bottom: 20px; }

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .nav-links a:not(.cta) { display: none; }
  .steps { grid-template-columns: 1fr; }
  .support-grid { grid-template-columns: 1fr; }
  section { padding: 44px 0; }
  .hero { padding: 60px 20px 64px; }
}
