/* ===== Liberty Bell Tours — design system ===== */
:root {
  --navy: #1d2f4b;
  --navy-dk: #122036;
  --bronze: #c9922f;
  --bronze-dk: #a9741f;
  --brick: #8a3b2b;
  --brick-dk: #6e2d20;
  --cream: #f6efe0;
  --paper: #fffaf0;
  --ink: #221c14;
  --ink-soft: #564c3c;
  --line: #e3d6ba;
  --ok: #3c7a4f;
  --err: #a23a2c;
  --radius: 14px;
  --shadow-layer: 0 18px 40px -20px rgba(29,47,75,.35);
  --font-display: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  --font-body: "Segoe UI", system-ui, -apple-system, Helvetica, Arial, sans-serif;
  --font-mono: "Consolas", "SFMono-Regular", Menlo, monospace;
}

html, body { overflow-x: clip; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font-body); color: var(--ink); background: var(--paper);
  font-size: 16px; line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: var(--brick); text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--navy); margin: 0 0 .5em; line-height: 1.12; }
p { margin: 0 0 1em; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: 8px 14px; z-index: 200; }
.skip-link:focus { left: 8px; top: 8px; }
:focus-visible { outline: 3px solid var(--bronze); outline-offset: 2px; }

/* ---------- utilities ---------- */
.u-mt-0 { margin-top: 0; } .u-mt-1 { margin-top: 1rem; } .u-mt-2 { margin-top: 2rem; } .u-mt-3 { margin-top: 3rem; }
.u-mb-0 { margin-bottom: 0; } .u-mb-1 { margin-bottom: 1rem; } .u-mb-2 { margin-bottom: 2rem; }
.section { padding: clamp(48px, 8vw, 96px) 0; }
.section-alt { background: var(--cream); }
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.center { text-align: center; }
.eyebrow { font-family: var(--font-mono); letter-spacing: .14em; text-transform: uppercase; font-size: .78rem; color: var(--bronze-dk); }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in-view { opacity: 1; transform: none; }
.reveal-clip { clip-path: inset(0 0 100% 0); transition: clip-path .8s ease; opacity: 1; transform: none; }
.reveal-clip.in-view { clip-path: inset(0 0 0% 0); }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-clip { opacity: 1 !important; transform: none !important; clip-path: none !important; transition: none !important; }
}

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,250,240,.9); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); transition: padding .25s ease; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; }
.site-header.is-scrolled .header-inner { padding: 8px 24px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark { width: 36px; height: 36px; flex: none; }
.logo-word { font-family: var(--font-display); font-size: 1.25rem; color: var(--navy); white-space: nowrap; }
.logo-word em { font-style: normal; color: var(--brick); }
.footer-logo { color: var(--paper); }
.footer-logo em { color: var(--bronze); }
.main-nav { display: flex; gap: 26px; }
.main-nav a { color: var(--navy); font-weight: 600; position: relative; padding: 4px 0; }
.main-nav a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--brick); transition: width .25s ease; }
.main-nav a:hover::after, .main-nav a.is-active::after { width: 100%; }
.main-nav a.is-active { color: var(--brick); }
.header-actions { display: flex; align-items: center; gap: 16px; }
.cart-link { position: relative; display: inline-flex; color: var(--navy); min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
.cart-count { position: absolute; top: 0; right: 0; background: var(--brick); color: #fff; font-size: .68rem; font-weight: 700; border-radius: 999px; min-width: 17px; height: 17px; display: flex; align-items: center; justify-content: center; padding: 0 3px; }
.cart-link.bump .cart-count { animation: bump .35s ease; }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.5); } 100% { transform: scale(1); } }
.menu-toggle { display: none; background: none; border: none; color: var(--navy); min-width: 44px; min-height: 44px; }
@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .main-nav {
    position: fixed; inset: 0 0 0 30%; top: 0; background: var(--navy); flex-direction: column; padding: 100px 28px; gap: 20px;
    transform: translateX(100%); visibility: hidden; transition: transform .3s ease, visibility .3s ease; z-index: 90;
  }
  .main-nav.is-open { transform: translateX(0); visibility: visible; }
  .main-nav a { color: var(--cream); font-size: 1.1rem; }
  .main-nav a.is-active { color: var(--bronze); }
}

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 22px; border-radius: 999px; font-weight: 700; font-size: .95rem; border: 2px solid transparent; cursor: pointer; position: relative; overflow: hidden; isolation: isolate; }
.btn-solid { background: var(--brick); color: #fff; }
.btn-solid:hover { background: var(--brick-dk); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-ghost { background: transparent; color: var(--cream); border-color: rgba(255,255,255,.5); }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-sweep::before { content: ""; position: absolute; inset: 0; left: -100%; width: 100%; background: rgba(255,255,255,.22); transition: left .35s ease; z-index: -1; }
.btn-sweep:hover::before { left: 0; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- hero (home) ---------- */
.hero-scene { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--navy) 0%, var(--navy-dk) 100%); padding: 72px 0 0; }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 32px; min-height: 560px; }
.hero-copy { position: relative; z-index: 5; color: var(--cream); padding-bottom: 60px; }
.hero-copy .eyebrow { color: var(--bronze); }
.hero-title { font-size: clamp(2.4rem, 5.6vw, 4.2rem); color: var(--paper); }
.hero-title em { font-style: normal; color: var(--bronze); }
.hero-lede { color: #d7dbe6; max-width: 480px; font-size: 1.08rem; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 22px; }
.hero-art { position: relative; height: 100%; min-height: 420px; }
.hero-art [data-depth] { position: absolute; transition: transform .15s ease-out; }
.hero-art img { position: absolute; border-radius: var(--radius); box-shadow: var(--shadow-layer); object-fit: cover; }
.hero-floor { position: absolute; left: 0; right: 0; bottom: 0; height: 90px; background: var(--cream); clip-path: polygon(0 40%, 100% 0, 100% 100%, 0 100%); }

/* ---------- isometric decorative scenes ---------- */
.iso-skyline { width: 100%; height: auto; display: block; }

/* ---------- product/tour cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 26px; }
.tour-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .3s ease, box-shadow .3s ease; display: flex; flex-direction: column; }
.tour-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-layer); }
.tour-card-media { aspect-ratio: 4/3; overflow: hidden; position: relative; }
.tour-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.tour-card:hover .tour-card-media img { transform: scale(1.08); }
.tour-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.tour-card-cat { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--bronze-dk); }
.tour-card h3 { font-size: 1.2rem; margin: 0; }
.tour-card-meta { display: flex; gap: 14px; color: var(--ink-soft); font-size: .88rem; }
.tour-card-meta span { display: inline-flex; align-items: center; gap: 5px; }
.tour-card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 10px; }
.tour-price { font-weight: 700; color: var(--navy); font-size: 1.1rem; }

/* horizontal scroll-snap strip (mobile) */
.scroll-strip { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; margin: 0 -24px; padding-left: 24px; padding-right: 24px; }
.scroll-strip .tour-card { min-width: 78vw; scroll-snap-align: start; }
@media (min-width: 760px) { .scroll-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); overflow: visible; margin: 0; padding: 0; } .scroll-strip .tour-card { min-width: 0; } }

/* ---------- section dividers / ornaments ---------- */
.divider { display: block; width: 100%; height: 48px; }
.seal { width: 86px; height: 86px; }

/* ---------- signature feature: Route Builder ---------- */
.route-builder { background: var(--navy); color: var(--cream); border-radius: 22px; padding: clamp(28px, 5vw, 56px); position: relative; overflow: hidden; }
.route-builder h2 { color: var(--paper); }
.route-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; margin-top: 24px; }
@media (max-width: 760px) { .route-grid { grid-template-columns: 1fr; } }
.stop-list { display: flex; flex-direction: column; gap: 10px; }
.stop-item { display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 10px; padding: 10px 14px; cursor: pointer; }
.stop-item input { accent-color: var(--bronze); width: 18px; height: 18px; }
.stop-item .stop-time { margin-left: auto; font-family: var(--font-mono); font-size: .82rem; color: var(--bronze); }
.route-result { background: rgba(255,255,255,.06); border: 1px dashed rgba(255,255,255,.25); border-radius: 14px; padding: 20px; }
.route-result ol { margin: 10px 0; padding-left: 20px; }
.route-result li { margin-bottom: 6px; }
.route-total { font-size: 1.4rem; font-weight: 700; color: var(--bronze); }

/* ---------- page hero (inner pages) ---------- */
.page-hero { background: var(--cream); padding: 52px 0 40px; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.page-hero p { color: var(--ink-soft); max-width: 620px; }

/* ---------- breadcrumbs ---------- */
.breadcrumbs { display: flex; gap: 8px; font-size: .85rem; color: var(--ink-soft); margin-bottom: 14px; }
.breadcrumbs a { color: var(--ink-soft); }
.breadcrumbs a:hover { color: var(--brick); }

/* ---------- prose (legal pages) ---------- */
.prose { max-width: 720px; line-height: 1.7; }
.prose h2 { margin-top: 2em; font-size: 1.4rem; }
.prose h3 { font-size: 1.15rem; margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .5em; }
.legal-toc { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; max-width: 420px; }
.legal-toc h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; }
.legal-toc ol { margin: 0; padding-left: 1.2em; }
.legal-layout { display: grid; grid-template-columns: 1fr 280px; gap: 40px; align-items: start; }
@media (max-width: 860px) { .legal-layout { grid-template-columns: 1fr; } }

/* ---------- notices / alerts ---------- */
.notice { border-radius: 10px; padding: 14px 18px; border: 1px solid var(--line); background: var(--cream); margin-bottom: 1.2em; }
.notice-info { border-color: #b9c4d6; background: #eef1f7; }
.notice-success { border-color: var(--ok); background: #e9f4ec; color: #1f4f2d; }
.notice-error { border-color: var(--err); background: #fbe9e6; color: #6e1f14; }

/* ---------- forms ---------- */
.form-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: .92rem; }
.field input, .field select, .field textarea {
  min-height: 44px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 8px; font: inherit; background: var(--paper); color: var(--ink);
  accent-color: var(--brick);
}
.field textarea { min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brick); }
.field-full { grid-column: 1 / -1; }
.field-error { color: var(--err); font-size: .82rem; min-height: 1.1em; }
.hp { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; left: -9999px; }
.form-msg { min-height: 1.4em; font-weight: 600; }
.form-msg.is-ok { color: var(--ok); }
.form-msg.is-error { color: var(--err); }
.newsletter-form { display: flex; gap: 8px; flex-wrap: wrap; }
.newsletter-form input[type=email] { flex: 1; min-width: 160px; min-height: 44px; border-radius: 999px; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.08); color: #fff; padding: 0 16px; }
.newsletter-form input[type=email]::placeholder { color: #c3c9d6; }

/* ---------- cart / checkout ---------- */
.cart-table { width: 100%; border-collapse: collapse; margin-bottom: 24px; }
.cart-table th, .cart-table td { padding: 14px 10px; border-bottom: 1px solid var(--line); text-align: left; }
.cart-table img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }
.cart-row-main { display: flex; gap: 12px; align-items: center; }
.qty-input { width: 64px; min-height: 40px; border: 1.5px solid var(--line); border-radius: 8px; padding: 4px 8px; }
.cart-summary { background: var(--cream); border-radius: var(--radius); padding: 22px 24px; max-width: 380px; margin-left: auto; }
.cart-summary dl { display: flex; justify-content: space-between; margin: 0 0 10px; }
.cart-summary dt, .cart-summary dd { margin: 0; }
.cart-empty { padding: 40px; text-align: center; color: var(--ink-soft); }

/* ---------- product/tour detail ---------- */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 860px) { .product-detail { grid-template-columns: 1fr; } }
.product-detail img { border-radius: var(--radius); aspect-ratio: 4/3; object-fit: cover; box-shadow: var(--shadow-layer); }
.product-meta-row { display: flex; gap: 18px; color: var(--ink-soft); margin: 10px 0 18px; flex-wrap: wrap; }
.product-highlights { list-style: none; padding: 0; margin: 18px 0; display: flex; flex-direction: column; gap: 10px; }
.product-highlights li { display: flex; gap: 10px; align-items: flex-start; }
.product-highlights svg { flex: none; color: var(--brick); margin-top: 3px; }
.qty-stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; }
.qty-stepper button { width: 40px; height: 40px; border: none; background: var(--cream); font-size: 1.1rem; cursor: pointer; }
.qty-stepper input { width: 46px; border: none; text-align: center; font: inherit; height: 40px; }

/* ---------- contact layout ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 860px) { .contact-layout { grid-template-columns: 1fr; } }
.contact-info { display: flex; flex-direction: column; gap: 16px; }
.contact-info-row { display: flex; gap: 12px; align-items: flex-start; }
.contact-info-row svg { color: var(--brick); flex: none; margin-top: 3px; }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 12px; max-width: 760px; }
.faq-item { border: 1px solid var(--line); border-radius: 10px; background: var(--paper); overflow: hidden; }
.faq-item summary { padding: 16px 20px; font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.3rem; color: var(--brick); }
.faq-item[open] summary::after { content: "–"; }
.faq-item .faq-body { padding: 0 20px 18px; color: var(--ink-soft); }

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: #cfd5e2; padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 32px; padding-bottom: 36px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-col h3 { color: var(--paper); font-size: .95rem; text-transform: uppercase; letter-spacing: .06em; font-family: var(--font-body); }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col a { color: #cfd5e2; }
.footer-col a:hover { color: var(--bronze); }
.footer-mail { display: flex; align-items: center; gap: 8px; margin-top: 10px; color: #cfd5e2; }
.footer-mail a { color: #cfd5e2; }
.footer-addr { display: flex; gap: 8px; align-items: center; color: #aab2c6; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 16px 24px; font-size: .85rem; color: #9aa3ba; }

/* ---------- cookie banner ---------- */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 300; background: var(--navy-dk); color: var(--cream); border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.cookie-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 16px 20px; }
.cookie-inner p { margin: 0; flex: 1 1 260px; font-size: .9rem; }
.cookie-inner a { color: var(--bronze); text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; }

/* ---------- grain overlay ---------- */
.grain-overlay { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 1; mix-blend-mode: overlay; }

/* ---------- 404 ---------- */
.error-scene { text-align: center; padding: 80px 0; }
.error-scene .seal { margin: 0 auto 20px; }

/* ===== COMPONENTS: .class - what it is =====
.wrap - centered max-width content container
.section / .section-alt - vertical page section spacing, alt = cream background
.grid / .grid-2 / .grid-3 - responsive auto-fit grid layouts
.reveal / .reveal-clip / .in-view - scroll-reveal animation hooks
.site-header / .header-inner / .is-scrolled - sticky site header & shrink-on-scroll state
.logo / .logo-mark / .logo-word - SVG logo mark + wordmark
.main-nav / .is-active / .is-open - primary nav, current-page + mobile open state
.menu-toggle - mobile hamburger button
.cart-link / .cart-count / .bump - header cart icon, badge, bump animation
.btn / .btn-solid / .btn-outline / .btn-ghost / .btn-sweep / .btn-block - button variants
.hero-scene / .hero-inner / .hero-copy / .hero-title / .hero-lede / .hero-cta / .hero-art / .hero-floor - home hero composition
.iso-skyline - isometric decorative scene wrapper
.card-grid / .tour-card / .tour-card-media / .tour-card-body / .tour-card-cat / .tour-card-meta / .tour-card-foot / .tour-price - catalog/tour cards
.scroll-strip - horizontal scroll-snap strip for mobile
.divider / .seal - decorative SVG divider and badge/seal
.route-builder / .route-grid / .stop-list / .stop-item / .route-result / .route-total - signature Liberty Route Builder feature
.page-hero - inner page hero/header band
.breadcrumbs - breadcrumb trail
.prose - readable-measure long-form text block for legal pages
.legal-toc / .legal-layout - legal page table of contents + two-column layout
.notice / .notice-info / .notice-success / .notice-error - alert/notice boxes
.form-grid / .field / .field-full / .field-error / .hp / .form-msg - form layout and validation
.newsletter-form - footer newsletter signup form
.cart-table / .cart-row-main / .qty-input / .cart-summary / .cart-empty - cart & checkout
.product-detail / .product-meta-row / .product-highlights / .qty-stepper - product/tour detail page
.contact-layout / .contact-info / .contact-info-row - contact page layout
.faq / .faq-item - FAQ accordion (details/summary)
.site-footer / .footer-grid / .footer-col / .footer-mail / .footer-addr / .footer-bottom - site footer
.cookie-banner / .cookie-inner / .cookie-actions - cookie consent banner
.grain-overlay - SVG feTurbulence grain texture overlay
.error-scene - 404 page layout
*/

/* ---------- footer brand & news ---------- */
.footer-brand {
  color: var(--paper);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 16px;
}

.footer-news {
  /* inherits layout from .footer-col */
}

/* ---------- remove button for cart ---------- */
.btn-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 40px;
  min-width: 40px;
  padding: 6px 12px;
  background: transparent;
  color: var(--err);
  border: 1px solid rgba(162, 58, 44, 0.2);
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.btn-remove:hover {
  background: rgba(162, 58, 44, 0.08);
  border-color: var(--err);
}
