/* ==========================================================================
   Bonfield Express — modern responsive stylesheet
   Brand palette: burnt-orange/rust autumn theme (matches original #941100)
   ========================================================================== */

/* ---- Design tokens ---- */
:root {
  --primary: #941100;            /* burnt rust-orange (original page bg) */
  --primary-dark: #740c00;
  --primary-light: #b8340f;
  --accent: #e8a13c;             /* autumn gold */
  --accent-dark: #c9862a;
  --cream: #fbf7f1;              /* warm light background */
  --cream-2: #f3ecdf;
  --ink: #2e2a26;                /* warm dark gray text */
  --ink-soft: #5f5a53;
  --line: #e3dccd;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(46, 42, 38, 0.12);
  --shadow-sm: 0 4px 14px rgba(46, 42, 38, 0.08);
  --radius: 14px;
  --radius-sm: 9px;
  --maxw: 1120px;                /* centered content max width */
  --nav-h: 68px;
  --font-body: 'Segoe UI', 'Helvetica Neue', Roboto, 'Arial Narrow', Arial, sans-serif;
  --font-heading: 'Segoe UI', 'Helvetica Neue', Roboto, Arial, sans-serif;
}

/* ---- Reset / base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--primary-dark); text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; color: var(--ink); font-family: var(--font-heading); }
h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); margin: 0 0 .4em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0 0 .5em; }
h3 { font-size: 1.25rem; margin: 0 0 .4em; }
p { margin: 0 0 1em; }
::selection { background: var(--accent); color: var(--ink); }

/* Accessibility: skip link */
.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 1000;
  background: var(--primary); color: #fff; padding: 10px 16px; border-radius: 8px;
  transition: top .2s ease;
}
.skip-link:focus { top: 8px; text-decoration: none; color: #fff; }

/* Layout wrapper — centered max-width */
.wrapper { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

.btn {
  display: inline-block; text-align: center; font-weight: 700;
  padding: 13px 26px; border-radius: 999px; cursor: pointer; border: 0;
  background: var(--primary); color: #fff; font-size: 1rem;
  box-shadow: var(--shadow-sm); transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
}
.btn:hover { background: var(--primary-dark); color: #fff; transform: translateY(-2px); text-decoration: none; box-shadow: var(--shadow); }
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-accent:hover { background: var(--accent-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); box-shadow: none; }
.btn-outline:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }
.btn-lg { padding: 16px 34px; font-size: 1.1rem; }
.btn-sm { padding: 9px 18px; font-size: .92rem; }

.section { padding: 64px 0; }
.section-sm { padding: 40px 0; }
.section-title { text-align: center; margin: 0 auto 40px; max-width: 720px; }
.section-title h2 { position: relative; display: inline-block; padding-bottom: 12px; }
.section-title h2::after {
  content: ''; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 64px; height: 4px; border-radius: 3px; background: var(--accent);
}
.section-title p { color: var(--ink-soft); margin-top: 12px; }
.eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: .14em;
  font-size: .78rem; font-weight: 700; color: var(--primary); margin-bottom: 8px;
}

.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.card {
  background: #fff; border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--accent); }
.card h3 { color: var(--primary); }
.tag {
  display: inline-block; background: var(--cream-2); color: var(--primary-dark);
  border: 1px solid var(--line); border-radius: 999px; padding: 4px 14px;
  font-size: .82rem; font-weight: 600; margin: 3px 4px 3px 0;
}

/* ===================== Header / Nav ===================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(180%) blur(8px);
  box-shadow: 0 2px 14px rgba(46, 42, 38, .08);
}
.navbar { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); gap: 16px; }
.nav-logo { display: flex; align-items: center; gap: 12px; font-weight: 800; color: var(--primary); font-size: 1.15rem; }
.nav-logo:hover { color: var(--primary-dark); text-decoration: none; }
.nav-logo img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; background: #fff; box-shadow: var(--shadow-sm); }
.nav-logo .brand-text { line-height: 1.05; }
.nav-logo .brand-text small { display: block; font-size: .72rem; font-weight: 600; color: var(--ink-soft); letter-spacing: .08em; text-transform: uppercase; }

.nav-menu { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-menu a {
  display: block; padding: 10px 14px; color: var(--ink); font-weight: 700; font-size: .98rem;
  border-radius: 8px; transition: background .18s ease, color .18s ease;
}
.nav-menu a:hover { background: var(--cream-2); color: var(--primary); text-decoration: none; }
.nav-menu a.active { color: var(--primary); background: var(--cream-2); }
.nav-cta { margin-left: 8px; }
.nav-cta .btn { padding: 9px 20px; }

.nav-toggle { display: none; background: transparent; border: 0; cursor: pointer; width: 44px; height: 44px; }
.nav-toggle .bar, .nav-toggle .bar::before, .nav-toggle .bar::after {
  display: block; width: 26px; height: 3px; background: var(--primary); border-radius: 3px; position: relative; transition: .25s ease;
}
.nav-toggle .bar::before, .nav-toggle .bar::after { content: ''; position: absolute; left: 0; }
.nav-toggle .bar::before { top: -8px; }
.nav-toggle .bar::after { top: 5px; }
.nav-toggle.open .bar { background: transparent; }
.nav-toggle.open .bar::before { top: 0; transform: rotate(45deg); }
.nav-toggle.open .bar::after { top: 0; transform: rotate(-45deg); }

/* ===================== Hero ===================== */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 55%, #5a0900 100%);
}
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 36px; padding: 76px 0; }
.hero .eyebrow { color: var(--accent); }
.hero h1 { color: #fff; }
.hero h1 .sub { display: block; font-size: .5em; font-weight: 700; letter-spacing: .12em; color: var(--accent); text-transform: uppercase; }
.hero p.lead { font-size: 1.15rem; color: rgba(255,255,255,.92); max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.hero-actions .btn { box-shadow: 0 8px 22px rgba(0,0,0,.22); }
.hero-figure { position: relative; }
.hero-figure img { border-radius: var(--radius); box-shadow: 0 20px 45px rgba(0,0,0,.35); width: 100%; }
.hero-badge {
  position: absolute; left: -18px; bottom: -18px; background: var(--accent); color: var(--ink);
  border-radius: var(--radius); padding: 16px 20px; box-shadow: var(--shadow); text-align: center; font-weight: 800;
}
.hero-badge small { display: block; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.hero-badge .big { font-size: 2rem; line-height: 1; }

/* Stat bar */
.statsbar { background: #fff; border-top: 4px solid var(--accent); box-shadow: var(--shadow-sm); border-radius: var(--radius); margin-top: -42px; position: relative; z-index: 3; }
.statsbar .cell { text-align: center; padding: 26px 16px; border-right: 1px solid var(--line); }
.statsbar .cell:last-child { border-right: 0; }
.statsbar .num { font-size: 2.3rem; font-weight: 800; color: var(--primary); line-height: 1; }
.statsbar .label { color: var(--ink-soft); font-size: .92rem; margin-top: 6px; }

/* Feature cards on home */
.feature-icon { width: 56px; height: 56px; border-radius: 12px; background: var(--cream-2); color: var(--primary); display: grid; place-items: center; font-size: 1.6rem; margin-bottom: 14px; }

/* Generic page hero */
.page-hero { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; padding: 62px 0 52px; }
.page-hero h1 { color: #fff; }
.page-hero .crumb { margin-top: 12px; font-size: .92rem; color: rgba(255,255,255,.85); }
.page-hero .crumb a { color: var(--accent); }
.page-hero ul { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.page-hero li { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.page-hero .check { color: var(--accent); font-weight: 800; }

/* Content page */
.page { padding: 52px 0 70px; }
.page-inner { max-width: 900px; margin: 0 auto; }
.page-inner h2 { margin-top: 1.6em; }
.page-inner ul { padding-left: 1.2em; }
.callout {
  background: var(--cream-2); border-left: 5px solid var(--accent);
  border-radius: var(--radius-sm); padding: 20px 24px; margin: 24px 0;
}
.callout strong { color: var(--primary); }

/* Info boxes grid */
.info-box { background: #fff; border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.info-box h3 { color: var(--primary); display: flex; align-items: center; gap: 10px; margin-top: 0; }
.info-box .icon { font-size: 1.4rem; }

/* Tables */
table.data { width: 100%; border-collapse: collapse; margin: 16px 0 8px; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
table.data th, table.data td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); }
table.data th { background: var(--primary); color: #fff; font-weight: 700; }
table.data tbody tr:nth-child(even) { background: var(--cream); }
table.data tbody tr:hover { background: var(--cream-2); }

/* FAQ accordion */
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 12px; overflow: hidden; }
.faq-item summary { cursor: pointer; padding: 18px 20px; font-weight: 700; color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.faq-item summary::after { content: '+'; font-size: 1.5rem; color: var(--primary); font-weight: 400; transition: transform .2s ease; flex: 0 0 auto; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--primary); }
.faq-item .answer { padding: 0 20px 20px; color: var(--ink-soft); }

/* Countdown */
.countdown { display: flex; justify-content: center; gap: 14px; margin: 22px 0 6px; }
.countdown .cd-cell { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); border-radius: var(--radius-sm); padding: 14px 16px; min-width: 78px; text-align: center; }
.countdown .cd-num { font-size: 2.3rem; font-weight: 800; line-height: 1; display: block; }
.countdown .cd-lbl { font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); margin-top: 6px; display: block; }

/* Sponsors grid */
.sponsor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 22px; }
.sponsor-card { background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); border: 1px solid var(--line); text-align: center; transition: transform .2s ease; }
.sponsor-card:hover { transform: translateY(-3px); }
.sponsor-card img { margin: 0 auto 12px; }
.sponsor-card .tier { font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--accent-dark); font-weight: 700; }

/* Photo gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); background: #fff; }
.gallery figure img { width: 100%; height: 200px; object-fit: cover; }
.gallery figcaption { padding: 12px 14px; font-size: .88rem; color: var(--ink-soft); text-align: center; }

/* Social row */
.social { display: flex; gap: 12px; }
.social a { width: 44px; height: 44px; border-radius: 50%; background: var(--cream-2); display: grid; place-items: center; transition: background .2s ease; }
.social a:hover { background: var(--primary); }
.social a:hover img { filter: brightness(0) invert(1); }
.social img { width: 22px; height: 22px; }

/* Footer */
.site-footer { background: #3a1a12; color: rgba(255,255,255,.8); margin-top: 48px; }
.site-footer a { color: rgba(255,255,255,.85); }
.site-footer a:hover { color: var(--accent); text-decoration: none; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; padding: 52px 0 34px; }
.footer-grid h4 { color: #fff; margin: 0 0 14px; font-size: 1rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 8px; font-size: .92rem; }
.footer-brand .brand-text { color: #fff; font-size: 1.25rem; font-weight: 800; margin-bottom: 8px; display: block; }
.footer-brand img { width: 60px; height: 60px; border-radius: 50%; background: rgba(255,255,255,.12); margin-bottom: 14px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); padding: 18px 0; font-size: .86rem; text-align: center; color: rgba(255,255,255,.65); }
.footer-bottom a { color: rgba(255,255,255,.7); }

/* Misc helpers */
.pill-list { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pill-list li { background: var(--cream-2); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: .88rem; font-weight: 600; }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { padding: 8px 0 8px 30px; position: relative; border-bottom: 1px dashed var(--line); }
.check-list li::before { content: '✓'; position: absolute; left: 0; top: 7px; color: var(--primary); font-weight: 800; }
.divider { height: 4px; width: 64px; background: var(--accent); margin: 18px auto; border-radius: 3px; }
.small-note { font-size: .9rem; color: var(--ink-soft); }
.two-col { column-count: 2; column-gap: 36px; }
@media (max-width: 720px) { .two-col { column-count: 1; } }

/* ===================== Responsive ===================== */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-figure { order: -1; }
}
@media (max-width: 760px) {
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .navbar { height: auto; padding: 12px 0; }
  .nav-toggle { display: block; order: 3; }
  .nav-menu {
    position: absolute; top: calc(var(--nav-h) + 12px); left: 0; right: 0;
    background: #fff; flex-direction: column; align-items: stretch; gap: 2px;
    padding: 14px 20px 20px; box-shadow: 0 12px 24px rgba(0,0,0,.12);
    border-top: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .28s ease;
  }
  .nav-menu.open { max-height: 640px; }
  .nav-menu a { padding: 12px 10px; border-bottom: 1px solid var(--line); }
  .nav-cta { margin-left: 0; padding-top: 8px; }
  .statsbar { border-top: 0; }
  .statsbar .cell { border-right: 0; border-bottom: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .grid-4 { grid-template-columns: 1fr; }
  .countdown .cd-cell { min-width: 64px; }
  .countdown .cd-num { font-size: 1.8rem; }
  body { font-size: 16px; }
}

/* Print */
@media print {
  .site-header, .site-footer, .hero-actions, .nav-toggle { display: none; }
  body { color: #000; background: #fff; font-size: 12px; }
  .section { padding: 20px 0; }
}
