/* =========================================================
   Discover Connecticut — Universities & Travel
   Design System  |  connecticut.in
   New England palette: deep greens, navy, warm autumn tones
========================================================= */

:root {
  /* Palette */
  --navy: #14213d;
  --navy-deep: #0b1426;
  --forest: #1f4d3a;
  --forest-light: #2e6e51;
  --autumn: #c4622d;
  --autumn-light: #e08a4c;
  --gold: #d8a24a;
  --cream: #f7f3ea;
  --paper: #fbfaf6;
  --ink: #20262e;
  --muted: #5c6672;
  --line: #e4e0d4;
  --white: #ffffff;

  --shadow-sm: 0 2px 8px rgba(20, 33, 61, 0.08);
  --shadow-md: 0 8px 24px rgba(20, 33, 61, 0.12);
  --shadow-lg: 0 18px 48px rgba(20, 33, 61, 0.18);

  --radius: 14px;
  --radius-lg: 22px;
  --maxw: 1200px;
  --font-head: Georgia, "Times New Roman", "Iowan Old Style", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 17px;
}
img { max-width: 100%; display: block; }
a { color: var(--forest); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--autumn); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy); line-height: 1.2; margin: 0 0 0.5em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1rem; }
ul { margin: 0 0 1rem; padding-left: 1.2rem; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }
.bg-cream { background: var(--cream); }
.bg-navy { background: var(--navy); color: var(--cream); }
.text-center { text-align: center; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--autumn);
  margin-bottom: 0.6rem;
}
.section-lead { max-width: 720px; margin: 0 auto 2.4rem; color: var(--muted); font-size: 1.08rem; }
.section-head { margin-bottom: 2.6rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-body); font-weight: 600; font-size: 0.97rem;
  padding: 0.85rem 1.6rem; border-radius: 50px; border: 2px solid transparent;
  cursor: pointer; transition: all var(--transition); text-align: center;
}
.btn--primary { background: var(--autumn); color: #fff; }
.btn--primary:hover { background: var(--autumn-light); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: #fff; }
.btn--ghost-light { background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.5); }
.btn--ghost-light:hover { background: #fff; color: var(--navy); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 250, 246, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 0.6rem; font-family: var(--font-head); font-weight: 700; font-size: 1.35rem; color: var(--navy); }
.brand:hover { color: var(--navy); }
.brand .brand-mark {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, var(--forest), var(--autumn));
  color: #fff; display: grid; place-items: center; font-size: 1.1rem;
}
.brand small { display: block; font-family: var(--font-body); font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--autumn); font-weight: 600; }
.nav-links { display: flex; align-items: center; gap: 0.4rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: 0.5rem 0.9rem; border-radius: 8px;
  color: var(--ink); font-weight: 500; font-size: 0.96rem;
}
.nav-links a:hover, .nav-links a.active { color: var(--forest); background: rgba(31, 77, 58, 0.08); }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.5rem; color: var(--navy); cursor: pointer; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 0.5rem 22px 1rem; box-shadow: var(--shadow-md);
    max-height: 0; overflow: hidden; transition: max-height var(--transition); padding-top: 0; padding-bottom: 0;
  }
  .nav-links.open { max-height: 420px; padding-top: 0.5rem; padding-bottom: 1rem; }
  .nav-links a { padding: 0.8rem 0.6rem; border-radius: 8px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 78vh; display: flex; align-items: center;
  color: #fff; overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(11,20,38,0.82), rgba(31,77,58,0.45)); }
.hero__content { position: relative; z-index: 2; max-width: 720px; padding: 60px 0; }
.hero h1 { color: #fff; }
.hero p.lead { font-size: 1.2rem; color: rgba(255,255,255,0.92); max-width: 560px; margin-bottom: 1.8rem; }
.hero .btn-row { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Hero search */
.hero-search {
  margin-top: 2rem; display: flex; gap: 0.5rem; background: #fff; padding: 0.5rem;
  border-radius: 50px; max-width: 520px; box-shadow: var(--shadow-md);
}
.hero-search input {
  flex: 1; border: 0; padding: 0.7rem 1.1rem; font-size: 1rem; font-family: var(--font-body);
  border-radius: 50px; color: var(--ink); background: transparent;
}
.hero-search input:focus { outline: none; }

/* Page hero (inner pages) */
.page-hero {
  position: relative; color: #fff; padding: 96px 0 72px; overflow: hidden;
}
.page-hero__bg { position: absolute; inset: 0; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(11,20,38,0.85), rgba(31,77,58,0.55)); }
.page-hero__content { position: relative; z-index: 2; max-width: 760px; }
.page-hero h1 { color: #fff; }
.page-hero p { color: rgba(255,255,255,0.92); font-size: 1.12rem; max-width: 620px; }

/* Breadcrumbs */
.breadcrumbs { font-size: 0.85rem; color: var(--muted); padding: 14px 0; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; padding: 0; }
.breadcrumbs li::after { content: "›"; margin-left: 0.5rem; color: var(--line); }
.breadcrumbs li:last-child::after { content: ""; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--autumn); }
.breadcrumbs [aria-current="page"] { color: var(--navy); font-weight: 600; }

/* ---------- Grids & Cards ---------- */
.grid { display: grid; gap: 26px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card__media { aspect-ratio: 4/3; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.card:hover .card__media img { transform: scale(1.06); }
.card__body { padding: 1.3rem 1.4rem 1.5rem; flex: 1; display: flex; flex-direction: column; }
.card__loc { font-size: 0.82rem; color: var(--autumn); font-weight: 600; letter-spacing: 0.04em; display: flex; align-items: center; gap: 0.35rem; margin-bottom: 0.4rem; }
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--muted); font-size: 0.97rem; margin-bottom: 1rem; flex: 1; }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; flex-wrap: wrap; }

.badge {
  display: inline-block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em;
  padding: 0.28rem 0.7rem; border-radius: 50px; background: rgba(31,77,58,0.1); color: var(--forest);
}
.badge--ivy { background: rgba(46,46,99,0.12); color: #2e2e63; }
.badge--public { background: rgba(196,98,45,0.14); color: var(--autumn); }
.badge--liberal { background: rgba(216,162,74,0.18); color: #9a6f1d; }
.tag-row { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.9rem; }

.link-more { font-weight: 600; font-size: 0.92rem; display: inline-flex; align-items: center; gap: 0.35rem; }
.link-more i { transition: transform var(--transition); }
.link-more:hover i { transform: translateX(4px); }

/* Quick facts list */
.facts { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem 1rem; font-size: 0.86rem; color: var(--muted); }
.facts li i { color: var(--forest); margin-right: 0.35rem; }

/* ---------- Filters / toolbar ---------- */
.toolbar {
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between;
  background: #fff; padding: 1rem 1.2rem; border-radius: var(--radius); box-shadow: var(--shadow-sm);
  border: 1px solid var(--line); margin-bottom: 2rem;
}
.filter-group { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.filter-group label { font-size: 0.85rem; font-weight: 600; color: var(--muted); margin-right: 0.2rem; }
.chip {
  border: 1px solid var(--line); background: var(--paper); color: var(--ink);
  padding: 0.45rem 0.95rem; border-radius: 50px; font-size: 0.86rem; cursor: pointer;
  font-family: var(--font-body); font-weight: 500; transition: all var(--transition);
}
.chip:hover { border-color: var(--forest); color: var(--forest); }
.chip.active { background: var(--forest); border-color: var(--forest); color: #fff; }
.view-toggle { display: flex; gap: 0.3rem; background: var(--paper); border-radius: 50px; padding: 0.25rem; border: 1px solid var(--line); }
.view-toggle button {
  border: 0; background: transparent; padding: 0.45rem 0.8rem; border-radius: 50px; cursor: pointer;
  color: var(--muted); font-size: 0.9rem; transition: all var(--transition);
}
.view-toggle button.active { background: var(--navy); color: #fff; }

.results-meta { font-size: 0.9rem; color: var(--muted); margin-bottom: 1.2rem; }

/* List view */
.uni-list { display: flex; flex-direction: column; gap: 1rem; }
.uni-list .card { flex-direction: row; }
.uni-list .card__media { width: 240px; aspect-ratio: auto; flex-shrink: 0; }
.uni-list .card__media img { height: 100%; }
@media (max-width: 640px) { .uni-list .card { flex-direction: column; } .uni-list .card__media { width: 100%; aspect-ratio: 16/9; } }

/* Map view (static styled) */
.map-view { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.4rem; align-items: start; }
@media (max-width: 860px) { .map-view { grid-template-columns: 1fr; } }
.map-canvas {
  position: relative; background: linear-gradient(160deg, #dfe9e2, #cdd9ce); border-radius: var(--radius);
  min-height: 460px; overflow: hidden; border: 1px solid var(--line); box-shadow: inset 0 0 40px rgba(31,77,58,0.12);
}
.map-canvas::before { content: "Connecticut"; position: absolute; bottom: 14px; right: 18px; font-family: var(--font-head); font-size: 1.4rem; color: rgba(31,77,58,0.25); }
.map-pin {
  position: absolute; transform: translate(-50%, -100%); cursor: pointer; z-index: 2;
}
.map-pin .dot {
  width: 18px; height: 18px; background: var(--autumn); border: 3px solid #fff; border-radius: 50%;
  box-shadow: var(--shadow-md); transition: transform var(--transition);
}
.map-pin:hover .dot, .map-pin.active .dot { transform: scale(1.4); background: var(--forest); }
.map-pin .label {
  position: absolute; bottom: 130%; left: 50%; transform: translateX(-50%);
  background: var(--navy); color: #fff; font-size: 0.74rem; padding: 0.25rem 0.55rem; border-radius: 6px;
  white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity var(--transition);
}
.map-pin:hover .label, .map-pin.active .label { opacity: 1; }
.map-side { max-height: 460px; overflow-y: auto; display: flex; flex-direction: column; gap: 0.7rem; padding-right: 4px; }
.map-side .mini-card {
  display: flex; gap: 0.8rem; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0.6rem; cursor: pointer; transition: all var(--transition);
}
.map-side .mini-card:hover, .map-side .mini-card.active { border-color: var(--forest); box-shadow: var(--shadow-sm); }
.map-side .mini-card img { width: 78px; height: 64px; border-radius: 8px; object-fit: cover; }
.map-side .mini-card h4 { font-family: var(--font-body); font-size: 0.95rem; margin: 0 0 0.2rem; color: var(--navy); }
.map-side .mini-card span { font-size: 0.78rem; color: var(--muted); }

.hidden { display: none !important; }

/* ---------- Feature / split sections ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split--reverse .split__media { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 28px; } .split--reverse .split__media { order: 0; } }
.split__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.split ul li { margin-bottom: 0.4rem; }

/* ---------- Itinerary cards ---------- */
.itin-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 320px; display: flex; align-items: flex-end; color: #fff; box-shadow: var(--shadow-md); }
.itin-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.itin-card:hover img { transform: scale(1.07); }
.itin-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(11,20,38,0.88)); }
.itin-card__body { position: relative; z-index: 2; padding: 1.6rem; }
.itin-card__body h3 { color: #fff; margin-bottom: 0.4rem; }
.itin-card__body .meta { font-size: 0.82rem; color: var(--gold); font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }
.itin-card__body p { color: rgba(255,255,255,0.85); font-size: 0.94rem; margin: 0.4rem 0 0; }

/* Timeline (itinerary detail) */
.timeline { list-style: none; padding: 0; margin: 1.5rem 0; border-left: 3px solid var(--line); }
.timeline li { position: relative; padding: 0 0 1.8rem 1.8rem; }
.timeline li::before { content: ""; position: absolute; left: -10px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--autumn); border: 3px solid #fff; box-shadow: var(--shadow-sm); }
.timeline h4 { margin: 0 0 0.2rem; color: var(--forest); font-family: var(--font-body); font-size: 1.05rem; }
.timeline .day { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--autumn); font-weight: 700; }

/* Stats strip */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
@media (max-width: 640px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stats .num { font-family: var(--font-head); font-size: 2.4rem; color: var(--autumn); line-height: 1; }
.stats .lbl { font-size: 0.85rem; color: var(--muted); margin-top: 0.4rem; }

/* Info / detail blocks */
.info-block { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow-sm); }
.info-block h3 { display: flex; align-items: center; gap: 0.5rem; }
.info-block h3 i { color: var(--autumn); }
.info-block ul { color: var(--muted); }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 760px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
.gallery img { aspect-ratio: 1/1; object-fit: cover; border-radius: 10px; box-shadow: var(--shadow-sm); }

.pill-list { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; }
.pill-list li { background: var(--cream); border: 1px solid var(--line); padding: 0.35rem 0.85rem; border-radius: 50px; font-size: 0.85rem; color: var(--ink); }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--forest), var(--navy)); color: #fff; border-radius: var(--radius-lg); padding: 3rem; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.85); max-width: 560px; margin: 0 auto 1.5rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,0.78); padding: 60px 0 0; font-size: 0.92rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 36px; padding-bottom: 40px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 0.55rem; }
.site-footer a { color: rgba(255,255,255,0.78); }
.site-footer a:hover { color: var(--gold); }
.footer-brand .brand { color: #fff; margin-bottom: 0.8rem; }
.footer-brand p { max-width: 320px; color: rgba(255,255,255,0.6); }
.footer-social { display: flex; gap: 0.6rem; margin-top: 1rem; }
.footer-social a { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,0.08); display: grid; place-items: center; color: #fff; }
.footer-social a:hover { background: var(--autumn); }
.email-reveal { cursor: pointer; color: var(--gold); font-weight: 600; }
.cookie-note { background: rgba(255,255,255,0.05); border-top: 1px solid rgba(255,255,255,0.08); padding: 16px 0; font-size: 0.82rem; color: rgba(255,255,255,0.6); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 18px 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.6rem; font-size: 0.82rem; color: rgba(255,255,255,0.55); }
.footer-bottom a { color: var(--gold); }

/* Cookie consent banner */
.cookie-banner {
  position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%);
  background: var(--navy); color: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 1rem 1.2rem; max-width: 620px; width: calc(100% - 36px); z-index: 200;
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
}
.cookie-banner p { margin: 0; font-size: 0.86rem; flex: 1; min-width: 220px; color: rgba(255,255,255,0.85); }
.cookie-banner .btn { padding: 0.6rem 1.2rem; font-size: 0.85rem; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Misc */
.lead-row { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.note { font-size: 0.85rem; color: var(--muted); font-style: italic; }
.prose p { max-width: 70ch; }
.prose h2 { margin-top: 2rem; }
