/* =====================================================
   HOME CITY — Hamilton, ON  ·  v2
   Deep pine + brick, photo-forward, Bricolage/Inter
   ===================================================== */

:root {
  --pine: #14211b;         /* near-black green — dark sections, footer */
  --pine-soft: #22332b;
  --ink: #1b2620;          /* headings on light */
  --body: #48544d;         /* body text on light */
  --paper: #faf9f6;        /* page background */
  --tint: #f0efe8;         /* tinted section */
  --brick: #c1502a;        /* primary accent */
  --brick-dark: #9c3e1f;
  --gold: #d9a441;         /* small highlights */
  --line: #e2e1d8;
  --line-dark: rgba(255,255,255,0.14);
  --white: #ffffff;

  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --sans: "Inter", system-ui, sans-serif;

  --max: 1180px;
  --r: 14px;
  --r-lg: 20px;
  --shadow: 0 6px 24px rgba(20, 33, 27, 0.09);
  --shadow-lg: 0 18px 50px rgba(20, 33, 27, 0.16);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--body);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: -0.015em;
}

h1 { font-size: clamp(2.6rem, 6.5vw, 4.6rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }

a { color: var(--brick); text-underline-offset: 3px; }
a:hover { color: var(--brick-dark); }

:focus-visible { outline: 3px solid var(--brick); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--pine); color: var(--white);
  padding: 0.7rem 1.2rem; z-index: 200; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.eyebrow {
  font-family: var(--display);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--brick);
  margin-bottom: 0.7rem;
}
.eyebrow-light { color: var(--gold); }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .strip-track { animation: none !important; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.98rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.btn:active { transform: scale(0.98); }
.btn-lg { padding: 1rem 1.9rem; font-size: 1.05rem; }
.btn-block { width: 100%; }

.btn-primary { background: var(--brick); color: var(--white); }
.btn-primary:hover { background: var(--brick-dark); color: var(--white); }

.btn-outline { background: rgba(255,255,255,0.08); color: var(--white); border-color: rgba(255,255,255,0.65); backdrop-filter: blur(4px); }
.btn-outline:hover { background: var(--white); color: var(--pine); border-color: var(--white); }

.btn-outline-dark { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline-dark:hover { background: var(--ink); color: var(--white); }

.btn-ghost { background: transparent; color: var(--ink); padding: 0.6rem 1rem; }
.btn-ghost:hover { color: var(--brick); }

.btn-solid { background: var(--pine); color: var(--white); padding: 0.65rem 1.25rem; font-size: 0.92rem; }
.btn-solid:hover { background: var(--brick); color: var(--white); }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--pine);
  color: rgba(255,255,255,0.85);
  font-size: 0.85rem;
  text-align: center;
  padding: 0.45rem 1rem;
  letter-spacing: 0.02em;
}
.topbar #openStatusTop { color: var(--gold); font-weight: 600; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 249, 246, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 4px 18px rgba(20,33,27,0.07);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.8rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}

.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.brand-mark {
  display: grid; place-items: center;
  width: 42px; height: 42px;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--brick), var(--brick-dark));
  color: var(--white);
  box-shadow: 0 4px 12px rgba(193, 80, 42, 0.35);
}
.brand-text {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.brand-text-light { color: var(--white); font-size: 1.5rem; }

.main-nav { display: flex; gap: 1.6rem; }
.main-nav a {
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--body);
  text-decoration: none;
  position: relative;
  padding: 0.35rem 0;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 2px;
  background: var(--brick);
  transition: right 0.2s ease;
}
.main-nav a:hover { color: var(--ink); }
.main-nav a:hover::after { right: 0; }
.nav-call-mobile { display: none; }

.header-actions { display: flex; align-items: center; gap: 0.5rem; }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px; height: 46px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  padding: 12px;
}
.menu-toggle span {
  display: block; height: 2px; width: 100%;
  background: var(--ink); border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.22s ease;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(92vh, 860px);
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(15, 26, 20, 0.88) 0%, rgba(15, 26, 20, 0.62) 45%, rgba(15, 26, 20, 0.25) 100%);
}

.hero-inner {
  position: relative;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: clamp(4rem, 10vw, 7rem) 1.4rem;
}

.hero-eyebrow {
  font-family: var(--display);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 1rem;
}

.hero h1 { color: var(--white); margin-bottom: 1.2rem; }
.hero h1 em {
  font-style: normal;
  color: var(--gold);
  position: relative;
}

.hero-sub {
  max-width: 52ch;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 2rem;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 2.2rem; }

.hero-card {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  border-radius: var(--r);
  padding: 0.85rem 1.2rem;
}
.hero-card-dot {
  width: 11px; height: 11px; border-radius: 50%;
  background: #5fd08a;
  box-shadow: 0 0 0 5px rgba(95, 208, 138, 0.22);
  flex-shrink: 0;
}
.hero-card.closed .hero-card-dot { background: #e0764f; box-shadow: 0 0 0 5px rgba(224, 118, 79, 0.22); }
.hero-card-title { font-family: var(--display); font-weight: 700; font-size: 1rem; color: var(--white); line-height: 1.3; }
.hero-card-sub { font-size: 0.85rem; color: rgba(255,255,255,0.75); line-height: 1.3; }

/* ---------- Marquee strip ---------- */
.strip {
  background: var(--brick);
  color: var(--white);
  overflow: hidden;
  padding: 0.8rem 0;
}
.strip-track {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  width: max-content;
  animation: marquee 34s linear infinite;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  white-space: nowrap;
}
.strip-track i { font-style: normal; color: rgba(255,255,255,0.55); }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 8vw, 6.5rem) 1.4rem; }
.section-inner { max-width: var(--max); margin: 0 auto; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2.6rem;
}
.section-sub { max-width: 40ch; }

.section-tint { background: var(--tint); }

.section-dark { background: var(--pine); color: rgba(255,255,255,0.8); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark a { color: var(--gold); }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.about-media { position: relative; }
.about-media img {
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 4.6;
  object-fit: cover;
}
.about-badge {
  position: absolute;
  right: -14px;
  bottom: 26px;
  background: var(--pine);
  color: var(--white);
  border-radius: var(--r);
  padding: 1rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  box-shadow: var(--shadow-lg);
}
.about-badge-num {
  font-family: var(--display);
  font-weight: 800;
  font-size: 2.3rem;
  color: var(--gold);
  line-height: 1;
}
.about-badge-label { font-size: 0.82rem; line-height: 1.3; color: rgba(255,255,255,0.85); }

.about-copy h2 { margin-bottom: 1.1rem; }
.about-copy p + p { margin-top: 1rem; }

.about-points {
  list-style: none;
  margin-top: 1.5rem;
  display: grid;
  gap: 0.7rem;
}
.about-points li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 500;
  color: var(--ink);
}
.about-points svg { color: var(--brick); flex-shrink: 0; }

/* ---------- Departments ---------- */
.dept-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 230px;
  gap: 1.1rem;
}
.dept-lg { grid-column: span 2; grid-row: span 2; }
.dept-wide { grid-column: span 2; }

.dept-card {
  position: relative;
  display: block;
  border-radius: var(--r);
  overflow: hidden;
  text-decoration: none;
  isolation: isolate;
}
.dept-card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.dept-card:hover img { transform: scale(1.05); }
.dept-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15, 26, 20, 0.85) 0%, rgba(15, 26, 20, 0.25) 55%, rgba(15, 26, 20, 0.05) 100%);
  transition: background 0.3s ease;
}
.dept-card:hover .dept-overlay {
  background: linear-gradient(to top, rgba(156, 62, 31, 0.88) 0%, rgba(156, 62, 31, 0.3) 60%, rgba(15, 26, 20, 0.05) 100%);
}
.dept-label {
  position: absolute;
  left: 1.2rem; right: 1.2rem; bottom: 1.1rem;
  z-index: 1;
}
.dept-label h3 { color: var(--white); font-size: 1.25rem; margin-bottom: 0.15rem; }
.dept-lg .dept-label h3 { font-size: 1.7rem; }
.dept-label p { color: rgba(255,255,255,0.85); font-size: 0.9rem; line-height: 1.45; }

.dept-note {
  margin-top: 1.4rem;
  font-size: 0.92rem;
  color: rgba(255,255,255,0.6);
  text-align: center;
}

/* ---------- Visit ---------- */
.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 1.4rem;
  align-items: stretch;
}

.visit-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.visit-address h3 { font-size: 1.5rem; margin-bottom: 0.4rem; }
.visit-plaza { font-size: 0.92rem; color: var(--body); margin-top: 0.3rem; }
.visit-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.2rem; }

.visit-hours h3 { margin-bottom: 0.7rem; }
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table td { padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
.hours-table td:last-child { text-align: right; font-weight: 600; color: var(--ink); }
.hours-table tr:last-child td { border-bottom: none; }
.hours-table tr.today td { color: var(--brick); font-weight: 700; }
.hours-table tr.today td:first-child::after {
  content: "TODAY";
  margin-left: 0.5rem;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  background: var(--brick);
  color: var(--white);
  border-radius: 999px;
  padding: 0.15rem 0.5rem;
  vertical-align: 2px;
}
.hours-note { margin-top: 0.8rem; font-size: 0.9rem; }

.map-wrap {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  min-height: 420px;
}
.map-wrap iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }

/* ---------- Policies ---------- */
.policy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.1rem;
}
.policy-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.8rem 1.6rem;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.policy-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, var(--brick), var(--gold));
}
.policy-num {
  font-family: var(--display);
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--brick);
  letter-spacing: 0.12em;
}
.policy-card h3 { margin: 0.4rem 0 0.6rem; }
.policy-card p { font-size: 0.96rem; }

/* ---------- FAQ ---------- */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.faq-intro { position: sticky; top: 110px; }
.faq-intro h2 { margin-bottom: 0.8rem; }

.faq-list details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  margin-bottom: 0.8rem;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}
.faq-list details[open] { box-shadow: var(--shadow); border-color: var(--brick); }
.faq-list summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  padding: 1.1rem 3rem 1.1rem 1.4rem;
  position: relative;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 1.2rem; top: 50%;
  transform: translateY(-50%);
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--tint);
  color: var(--brick);
  font-size: 1.25rem;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease;
}
.faq-list details[open] summary::after { content: "–"; background: var(--brick); color: var(--white); }
.faq-list details p { padding: 0 1.4rem 1.2rem; max-width: 62ch; }

/* ---------- Contact ---------- */
.section-contact {
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(193, 80, 42, 0.25), transparent 60%),
    var(--pine);
  color: rgba(255,255,255,0.82);
}
.section-contact h2 { color: var(--white); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.contact-intro h2 { margin-bottom: 0.9rem; }

.contact-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1.6rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  color: var(--gold);
  text-decoration: none;
}
.contact-phone:hover { color: var(--white); }

.contact-form {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  box-shadow: var(--shadow-lg);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-field { margin-bottom: 1.1rem; }
.form-field label {
  display: block;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.form-field label span { color: var(--brick); }
.form-field label small { color: var(--body); font-weight: 400; }
.form-field input,
.form-field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  padding: 0.8rem 0.95rem;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--brick);
  box-shadow: 0 0 0 4px rgba(193, 80, 42, 0.14);
  background: var(--white);
}
.form-field input.invalid,
.form-field textarea.invalid { border-color: #c0362c; }

.field-error { min-height: 1.15em; margin-top: 0.3rem; font-size: 0.85rem; color: #c0362c; }

.form-status { margin-top: 1rem; font-weight: 600; }
.form-status.ok { color: #2c7a4b; }
.form-status.err { color: #c0362c; }

/* ---------- Footer ---------- */
.site-footer { background: var(--pine); color: rgba(255,255,255,0.72); border-top: 1px solid var(--line-dark); }
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3.5rem 1.4rem 2.5rem;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2.5rem;
}
.footer-brand p { margin-top: 0.8rem; font-size: 0.95rem; max-width: 34ch; }
.footer-col h4 {
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 0.8rem;
}
.footer-col p { font-size: 0.95rem; }
.footer-col p + p { margin-top: 0.5rem; }
.footer-col a { color: rgba(255,255,255,0.72); text-decoration: none; }
.footer-col a:hover { color: var(--white); text-decoration: underline; }
.footer-col nav { display: grid; gap: 0.4rem; font-size: 0.95rem; }

.footer-bottom {
  border-top: 1px solid var(--line-dark);
  padding: 1.1rem 1.4rem;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

/* ---------- Visit utilities ---------- */
.visit-utils { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.9rem; }
.util-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--body);
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.util-btn:hover { background: var(--white); color: var(--brick); border-color: var(--brick); }
.util-btn.copied { background: #e6f3ea; color: #2c7a4b; border-color: #2c7a4b; }

/* ---------- Active nav link ---------- */
.main-nav a.active { color: var(--brick); }
.main-nav a.active::after { right: 0; }

/* ---------- Mobile action bar ---------- */
.mobile-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  display: none;
  gap: 1px;
  background: var(--line);
  box-shadow: 0 -6px 24px rgba(20,33,27,0.16);
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.mobile-bar-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  padding: 0.95rem 0;
  background: var(--brick);
  color: var(--white);
}
.mobile-bar-btn:hover { color: var(--white); }
.mobile-bar-alt { background: var(--pine); }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 80;
  width: 48px; height: 48px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 50%;
  background: var(--pine);
  color: var(--white);
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.15s ease;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--brick); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background:
    radial-gradient(800px 400px at 15% -20%, rgba(193, 80, 42, 0.28), transparent 60%),
    var(--pine);
  color: rgba(255,255,255,0.85);
  padding: clamp(3rem, 7vw, 5rem) 1.4rem;
}
.page-hero h1 { color: var(--white); font-size: clamp(2.1rem, 5vw, 3.4rem); margin-bottom: 0.8rem; }
.page-hero-sub { max-width: 56ch; font-size: 1.08rem; }
.page-hero a { color: var(--gold); }

/* ---------- Breadcrumbs ---------- */
.crumbs { background: var(--pine); border-bottom: 1px solid var(--line-dark); }
.crumbs-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.55rem 1.4rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
}
.crumbs-inner a { color: rgba(255,255,255,0.75); text-decoration: none; }
.crumbs-inner a:hover { color: var(--white); }
.crumbs-inner span[aria-current] { color: var(--gold); }
.crumbs-inner span[aria-hidden] { margin: 0 0.4rem; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  padding: clamp(1.8rem, 4vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta-band h2 { margin: 0.2rem 0 0.4rem; }
.cta-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; }

/* ---------- Screen-reader only ---------- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Store assistant chat ---------- */
.hc-chat { position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 95; }

.hc-chat-fab {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border: none; border-radius: 50%;
  background: var(--brick);
  color: var(--white);
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(193, 80, 42, 0.45);
  transition: transform 0.15s ease, background 0.15s ease;
}
.hc-chat-fab:hover { background: var(--brick-dark); transform: scale(1.05); }

.hc-chat-panel {
  position: absolute;
  right: 0; bottom: 70px;
  width: min(360px, calc(100vw - 2rem));
  height: min(520px, calc(100vh - 140px));
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.hc-chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.1rem;
  background: var(--pine);
  color: var(--white);
}
.hc-chat-title { font-family: var(--display); font-weight: 700; font-size: 1rem; line-height: 1.2; }
.hc-chat-sub { font-size: 0.76rem; color: rgba(255,255,255,0.65); }
.hc-chat-close {
  background: none; border: none;
  color: rgba(255,255,255,0.8);
  font-size: 1.6rem; line-height: 1;
  cursor: pointer; padding: 0 0.2rem;
}
.hc-chat-close:hover { color: var(--white); }

.hc-chat-log {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  background: var(--paper);
}

.hc-msg {
  max-width: 85%;
  padding: 0.65rem 0.9rem;
  border-radius: 14px;
  font-size: 0.92rem;
  line-height: 1.55;
}
.hc-msg-bot {
  align-self: flex-start;
  background: var(--white);
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
  color: var(--body);
}
.hc-msg-bot a { color: var(--brick); font-weight: 600; }
.hc-msg-user {
  align-self: flex-end;
  background: var(--brick);
  color: var(--white);
  border-bottom-right-radius: 4px;
}

.hc-typing { display: inline-flex; gap: 4px; padding: 0.8rem 1rem; }
.hc-typing span {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--body);
  opacity: 0.4;
  animation: hcBlink 1.2s infinite;
}
.hc-typing span:nth-child(2) { animation-delay: 0.2s; }
.hc-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes hcBlink { 0%, 80%, 100% { opacity: 0.3; } 40% { opacity: 1; } }

.hc-chat-sugs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0 1rem 0.6rem;
  background: var(--paper);
}
.hc-chat-sugs:empty { display: none; }
.hc-chat-sugs button {
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brick);
  background: var(--white);
  border: 1px solid var(--brick);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.hc-chat-sugs button:hover { background: var(--brick); color: var(--white); }

.hc-chat-form {
  display: flex;
  gap: 0.5rem;
  padding: 0.7rem;
  border-top: 1px solid var(--line);
  background: var(--white);
}
.hc-chat-form input {
  flex: 1;
  font: inherit;
  font-size: 0.92rem;
  color: var(--ink);
  padding: 0.6rem 0.85rem;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
}
.hc-chat-form input:focus {
  outline: none;
  border-color: var(--brick);
  background: var(--white);
}
.hc-chat-form button {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border: none; border-radius: 50%;
  background: var(--brick);
  color: var(--white);
  cursor: pointer;
  flex-shrink: 0;
}
.hc-chat-form button:hover { background: var(--brick-dark); }

/* Keep to-top clear of the chat FAB */
.to-top { right: 1.1rem; bottom: 5.2rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .dept-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 210px; }
  .dept-lg { grid-column: span 2; grid-row: span 1; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .about-grid, .visit-grid, .faq-grid, .contact-grid { grid-template-columns: 1fr; }
  .faq-intro { position: static; }
  .about-media { max-width: 520px; }
  .header-directions { display: none; }
}

@media (max-width: 760px) {
  .main-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 30px rgba(20,33,27,0.12);
    flex-direction: column;
    gap: 0;
    padding: 0.4rem 1.4rem 1rem;
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
  .main-nav a:last-child { border-bottom: none; }
  .main-nav a::after { display: none; }
  .nav-call-mobile { display: block; color: var(--brick); font-weight: 700; }

  .menu-toggle { display: flex; }
  .header-phone { display: none; }

  .dept-grid { grid-template-columns: 1fr; grid-auto-rows: 190px; }
  .dept-lg, .dept-wide { grid-column: span 1; }

  .form-row { grid-template-columns: 1fr; gap: 0; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.8rem; }
  .about-badge { right: 10px; }

  .mobile-bar { display: flex; }
  body { padding-bottom: 58px; }         /* room for the fixed action bar */
  .hc-chat { bottom: 4.6rem; }           /* chat FAB above the action bar */
  .to-top { bottom: 9rem; }              /* to-top above the chat FAB */
}

/* =====================================================
   MOTION LAYER (v4) — heavier animation pass
   ===================================================== */

/* Page-load fade */
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }
body { animation: pageIn 0.5s ease both; }

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--brick), var(--gold));
  z-index: 200;
  pointer-events: none;
}

/* Hero: slow Ken Burns zoom + text entrance cascade */
@keyframes kenBurns {
  from { transform: scale(1); }
  to   { transform: scale(1.09); }
}
.hero-media img {
  animation: kenBurns 18s ease-out both;
  will-change: transform;
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(34px); }
  to   { opacity: 1; transform: none; }
}
.hero .hero-eyebrow { animation: riseIn 0.7s ease 0.15s both; }
.hero h1            { animation: riseIn 0.8s ease 0.3s both; }
.hero .hero-sub     { animation: riseIn 0.8s ease 0.5s both; }
.hero .hero-cta     { animation: riseIn 0.8s ease 0.68s both; }
.hero .hero-card    { animation: riseIn 0.8s ease 0.85s both; }
/* hero children animate themselves; don't double-hide via .reveal */
.hero .reveal { opacity: 1; transform: none; transition: none; }

/* gold shimmer sweep on the hero emphasis word */
@keyframes shimmer {
  0%, 55%, 100% { background-position: -200% center; }
  75% { background-position: 200% center; }
}
.hero h1 em {
  background: linear-gradient(100deg, var(--gold) 42%, #fff2d4 50%, var(--gold) 58%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 7s ease-in-out 2s infinite;
}

/* Staggered reveals — JS assigns --d per element */
.reveal { transition-delay: var(--d, 0s); }

/* Section heading accent bar draws in */
.section h2 { position: relative; padding-bottom: 0.55rem; }
.section h2::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 4px; width: 58px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--brick), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) 0.2s;
}
.section h2.in::after,
.reveal.in h2::after,
h2.reveal.in::after { transform: scaleX(1); }

/* Buttons: lift on hover */
.btn { will-change: transform; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(20,33,27,0.18); }
.btn:active { transform: translateY(0) scale(0.98); box-shadow: none; }

/* Department cards: label lifts, arrow slides in */
.dept-label { transform: translateY(6px); transition: transform 0.35s ease; }
.dept-card:hover .dept-label { transform: translateY(0); }
.dept-label h3::after {
  content: "→";
  display: inline-block;
  margin-left: 0.45rem;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.dept-card:hover .dept-label h3::after { opacity: 1; transform: none; }
.dept-card { transition: transform 0.35s ease, box-shadow 0.35s ease; }
.dept-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

/* About badge: gentle float */
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
.about-badge { animation: floaty 5s ease-in-out infinite; }

/* Policy & FAQ cards: hover lift */
.policy-card { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.policy-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

/* Visit panel + map subtle rise on reveal handled by .reveal */

/* Marquee: pause on hover */
.strip:hover .strip-track { animation-play-state: paused; }

/* Reduced motion kills all of it */
@media (prefers-reduced-motion: reduce) {
  body, .hero-media img, .hero .hero-eyebrow, .hero h1, .hero .hero-sub,
  .hero .hero-cta, .hero .hero-card, .about-badge, .hero h1 em {
    animation: none !important;
  }
  .section h2::after { transform: scaleX(1); transition: none; }
  .dept-label, .dept-card, .policy-card, .btn { transition: none; }
}
