/* ===========================================================
   Visit Illinois — Shared Stylesheet
   Nature-inspired palette: deep blues (Lake Michigan), greens
   (quads & forests), earth tones, warm accents. Mobile-first.
   No external CDN. System font stack for fast loading.
   =========================================================== */

:root {
  --blue-900: #0f2e40;
  --blue-700: #16384a;
  --blue-600: #1d6e8c;
  --blue-500: #2f8fb3;
  --green-700: #2f8f5a;
  --green-600: #3a9e6a;
  --green-500: #5bb37e;
  --earth-700: #7a5230;
  --earth-500: #b58a55;
  --sand: #f3ead4;
  --accent: #e8843c;       /* warm accent */
  --accent-dark: #cf6f2c;
  --ink: #20313a;
  --muted: #5a6b73;
  --line: #e2e8ea;
  --bg: #ffffff;
  --bg-soft: #f4f8f8;
  --bg-tint: #eaf3f2;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 6px 24px rgba(15, 46, 64, 0.10);
  --shadow-lg: 0 14px 40px rgba(15, 46, 64, 0.16);
  --maxw: 1200px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--blue-600); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { font-family: var(--serif); color: var(--blue-700); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: 2rem; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1rem; }

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

.section { padding: 56px 0; }
.section--soft { background: var(--bg-soft); }
.section--tint { background: var(--bg-tint); }

.section-head { max-width: 760px; margin: 0 auto 36px; text-align: center; }
.section-head h2 { font-size: 1.9rem; }
.section-head p { color: var(--muted); }

.eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: .12em;
  font-size: .76rem; font-weight: 700; color: var(--green-700);
  background: var(--bg-tint); padding: 5px 12px; border-radius: 999px; margin-bottom: 12px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font-weight: 700; font-size: .98rem; border: 0; border-radius: 999px;
  padding: 12px 24px; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(232,132,60,.35); }
.btn--primary:hover { background: var(--accent-dark); color: #fff; }
.btn--ghost { background: rgba(255,255,255,.16); color: #fff; border: 2px solid rgba(255,255,255,.7); }
.btn--ghost:hover { background: rgba(255,255,255,.28); color: #fff; }
.btn--outline { background: transparent; color: var(--blue-600); border: 2px solid var(--blue-600); }
.btn--outline:hover { background: var(--blue-600); color: #fff; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.nav__logo img { height: 42px; width: auto; }
.nav__toggle {
  background: none; border: 0; cursor: pointer; width: 44px; height: 44px;
  display: flex; flex-direction: column; justify-content: center; gap: 5px; padding: 10px;
}
.nav__toggle span { display: block; height: 3px; background: var(--blue-700); border-radius: 3px; transition: .3s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.nav__menu {
  list-style: none; margin: 0; padding: 0;
  position: absolute; top: 68px; left: 0; right: 0; background: #fff;
  border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  max-height: 0; overflow: hidden; transition: max-height .35s ease;
}
.nav__menu.open { max-height: 640px; }
.nav__menu li { border-top: 1px solid var(--line); }
.nav__menu a {
  display: block; padding: 14px 20px; color: var(--blue-700); font-weight: 600;
}
.nav__menu a.active { color: var(--accent); }
.nav__menu a:hover { background: var(--bg-tint); text-decoration: none; }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,46,64,.35), rgba(15,46,64,.72)); }
.hero__inner { position: relative; padding: 90px 0 70px; max-width: 760px; }
.hero h1 { color: #fff; font-size: 2.3rem; text-shadow: 0 2px 16px rgba(0,0,0,.35); }
.hero p { font-size: 1.12rem; color: rgba(255,255,255,.94); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 22px; }

/* ---------- Search / filter bar ---------- */
.searchbar {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 16px; display: grid; gap: 12px; margin-top: 28px;
}
.searchbar label { font-size: .8rem; font-weight: 700; color: var(--muted); display: block; margin-bottom: 4px; }
.searchbar input, .searchbar select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: 1rem; font-family: inherit; color: var(--ink); background: var(--bg-soft);
}
.searchbar input:focus, .searchbar select:focus { outline: 2px solid var(--blue-500); background: #fff; }

/* ---------- Grids & Cards ---------- */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr 1fr; }

.card {
  background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.card__media { aspect-ratio: 4 / 3; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.card__tag { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--green-700); font-weight: 700; }
.card__body h3 { margin: 8px 0 8px; font-size: 1.2rem; }
.card__body p { color: var(--muted); font-size: .96rem; flex: 1; }
.card__link { margin-top: 14px; font-weight: 700; color: var(--accent); }
.card__link:hover { color: var(--accent-dark); }

/* feature highlight blocks */
.feature {
  display: grid; gap: 22px; align-items: center; grid-template-columns: 1fr;
}
.feature__media img { border-radius: var(--radius); box-shadow: var(--shadow); }
.feature__body h2 { color: var(--blue-700); }
.feature--reverse .feature__media { order: -1; }

/* "Why Illinois" stat strip */
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.stat { background: #fff; border-radius: var(--radius); padding: 22px; text-align: center; box-shadow: var(--shadow); }
.stat__num { font-family: var(--serif); font-size: 2rem; color: var(--green-700); font-weight: 700; }
.stat__label { color: var(--muted); font-size: .92rem; }

/* icon list */
.iconlist { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.iconlist li { display: flex; gap: 12px; align-items: flex-start; }
.iconlist .dot { flex: none; width: 28px; height: 28px; border-radius: 8px; background: var(--bg-tint); color: var(--green-700); display: grid; place-items: center; font-weight: 800; }

/* ---------- Tabs ---------- */
.tabs__nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.tabs__btn {
  border: 1px solid var(--line); background: #fff; color: var(--blue-700);
  padding: 10px 18px; border-radius: 999px; cursor: pointer; font-weight: 600; font-family: inherit; font-size: .95rem;
}
.tabs__btn[aria-selected="true"] { background: var(--blue-600); color: #fff; border-color: var(--blue-600); }
.tabs__panel { display: none; }
.tabs__panel.active { display: block; animation: fade .3s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Comparison table ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
table.compare { width: 100%; border-collapse: collapse; background: #fff; min-width: 640px; }
table.compare th, table.compare td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); font-size: .95rem; }
table.compare thead th { background: var(--blue-700); color: #fff; font-family: var(--serif); }
table.compare tbody tr:nth-child(even) { background: var(--bg-soft); }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { font-size: .85rem; color: var(--muted); padding: 14px 0; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.breadcrumbs li::after { content: "›"; margin-left: 6px; color: var(--earth-500); }
.breadcrumbs li:last-child::after { content: ""; }

/* ---------- Itinerary timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; border-left: 3px solid var(--green-500); }
.timeline li { position: relative; padding: 0 0 24px 26px; }
.timeline li::before { content: ""; position: absolute; left: -10px; top: 4px; width: 16px; height: 16px; background: var(--accent); border-radius: 50%; border: 3px solid #fff; }
.timeline h4 { margin: 0 0 4px; color: var(--blue-700); }
.timeline span { font-size: .8rem; font-weight: 700; color: var(--green-700); text-transform: uppercase; letter-spacing: .06em; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--blue-700), var(--green-700)); color: #fff; border-radius: var(--radius); padding: 40px 28px; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.92); max-width: 620px; margin: 0 auto 20px; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gallery img { border-radius: var(--radius-sm); width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; box-shadow: var(--shadow); }

/* ---------- Newsletter ---------- */
.newsletter form { display: grid; gap: 12px; max-width: 460px; margin: 0 auto; }
.newsletter input { padding: 13px 16px; border-radius: 999px; border: 1px solid var(--line); font-size: 1rem; font-family: inherit; }
.note { font-size: .82rem; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--blue-900); color: #cfdde4; padding: 50px 0 0; margin-top: 10px; font-size: .95rem; }
.site-footer h4 { color: #fff; font-family: var(--serif); font-size: 1.05rem; margin-bottom: 14px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 30px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer ul li { margin-bottom: 9px; }
.site-footer a { color: #b6cdd6; }
.site-footer a:hover { color: #fff; }
.footer-brand img { height: 44px; filter: brightness(0) invert(1); margin-bottom: 12px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px; padding: 18px 0; text-align: center; font-size: .85rem; color: #9fb6bf; }
.footer-bottom a { color: #e8a96a; }
.email-reveal { cursor: pointer; color: #e8a96a; font-weight: 600; text-decoration: underline; background: none; border: 0; font-size: inherit; font-family: inherit; padding: 0; }

/* cookie banner */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200;
  background: #fff; color: var(--ink); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 18px 20px; display: none; gap: 14px; align-items: center; flex-wrap: wrap;
  border: 1px solid var(--line);
}
.cookie-banner.show { display: flex; }
.cookie-banner p { margin: 0; flex: 1; min-width: 220px; font-size: .9rem; }

/* utilities */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; }
.lead { font-size: 1.12rem; color: var(--muted); }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { background: var(--bg-tint); color: var(--blue-700); border-radius: 999px; padding: 6px 14px; font-size: .85rem; font-weight: 600; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Responsive (tablet & up) ---------- */
@media (min-width: 700px) {
  .grid--2 { grid-template-columns: 1fr 1fr; }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .searchbar { grid-template-columns: 2fr 1fr 1fr auto; align-items: end; }
  .searchbar .btn { width: 100%; justify-content: center; height: 46px; }
  .feature { grid-template-columns: 1fr 1fr; gap: 40px; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  h1 { font-size: 2.6rem; } .hero h1 { font-size: 3rem; }
  .gallery { grid-template-columns: repeat(4, 1fr); }
  .newsletter form { grid-template-columns: 1fr auto; }
}

@media (min-width: 980px) {
  .nav__toggle { display: none; }
  .nav__menu {
    position: static; display: flex; gap: 4px; max-height: none; overflow: visible;
    box-shadow: none; border: 0; background: transparent;
  }
  .nav__menu li { border: 0; }
  .nav__menu a { padding: 10px 14px; border-radius: 8px; }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto; }
}
