/* ============================================================
   J. AUSTIN & SONS — HOMEPAGE DESIGN SYSTEM
   Duda → WordPress migration · modernize, not rebrand
   Brand tokens extracted from the existing site & logo.
============================================================ */

:root {
  /* Brand color — from existing site header, links & logo */
  --navy: #175190;          /* primary brand blue (existing header) */
  --navy-deep: #0D2C4E;     /* dark sections */
  --navy-ink: #081C33;      /* hero overlay base */
  --blue: #427BCA;          /* existing link/button blue */
  --sky: #49AEDF;           /* existing light accent */
  --yellow: #F9DD4A;        /* Castle logo yellow — signature accent */
  --red: #EE3124;           /* Castle logo red — Dexpan/alerts only */
  --ink: #1A2733;           /* body text */
  --ink-soft: #46586B;      /* secondary text */
  --paper: #F4F8FC;         /* tinted section background */
  --line: #DCE6F0;          /* borders */
  --white: #FFFFFF;
  --footer-bg: #070707;     /* existing footer black */

  /* Type — the site's existing families, reset on a modern scale */
  --font-display: 'Fjalla One', 'Arial Narrow', sans-serif;
  --font-body: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;

  --fs-900: clamp(2.5rem, 1.6rem + 4vw, 4.25rem);   /* hero */
  --fs-800: clamp(1.9rem, 1.4rem + 2.2vw, 2.9rem);  /* h2 */
  --fs-700: clamp(1.4rem, 1.2rem + 1vw, 1.85rem);   /* h3 / .h3 */
  --fs-600: 1.2rem;
  --fs-400: 1rem;
  --fs-300: 0.9rem;
  --fs-200: 0.8rem;

  /* Layout */
  --container: 76rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4rem, 8vw, 7rem);
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(13, 44, 78, 0.1), 0 4px 14px rgba(13, 44, 78, 0.06);
  --shadow-md: 0 6px 24px rgba(13, 44, 78, 0.14);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-400);
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--navy-deep);
  margin: 0 0 0.6em;
}
h1 { font-size: var(--fs-900); }
h2 { font-size: var(--fs-800); }
h3 { font-size: var(--fs-600); letter-spacing: 0.03em; }
.h3 { font-size: var(--fs-700); }
p { margin: 0 0 1em; }
a { color: var(--blue); }
ul { margin: 0; padding: 0; }
:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 2px;
  border-radius: 2px;
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section-y); }
.section--tint { background: var(--paper); }
.section--slim { padding-block: clamp(2.5rem, 5vw, 4rem); }
.icon { width: 1em; height: 1em; fill: currentColor; flex: none; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100;
  background: var(--yellow);
  color: var(--navy-ink);
  padding: 0.75rem 1.25rem;
  font-weight: 700;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

/* ---------- Signature: eyebrow + castle-yellow tick ---------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--fs-300);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 0 0 0.9rem;
}
.eyebrow--light { color: #CFE2F7; }
.eyebrow--center { justify-content: center; }
.tick {
  display: inline-block;
  width: 2rem;
  height: 4px;
  background: var(--yellow);
  border-radius: 2px;
  flex: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  font-family: var(--font-body);
  font-size: var(--fs-300);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
              border-color 0.2s var(--ease), transform 0.15s var(--ease),
              box-shadow 0.2s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn:active { transform: translateY(0); }
.btn--lg { padding: 1rem 2rem; font-size: var(--fs-400); }
.btn--primary { background: var(--navy); color: var(--white); }
.btn--primary:hover { background: var(--blue); }
.btn--yellow { background: var(--yellow); color: var(--navy-ink); }
.btn--yellow:hover { background: #FCE873; }
.btn--red { background: var(--red); color: var(--white); }
.btn--red:hover { background: #C9241A; }
.btn--outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: var(--white); }
.btn--ghost { background: rgba(255,255,255,0.12); color: var(--white); border-color: rgba(255,255,255,0.55); backdrop-filter: blur(2px); }
.btn--ghost:hover { background: var(--white); color: var(--navy-deep); border-color: var(--white); }

.text-link {
  font-weight: 700;
  font-size: var(--fs-300);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 3px solid var(--yellow);
  padding-bottom: 2px;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.text-link:hover { color: var(--blue); border-color: var(--sky); }

/* ============================================================
   HEADER
============================================================ */
.topbar {
  background: var(--navy-deep);
  color: #C9DCF2;
  font-size: var(--fs-200);
}
.topbar__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.35rem 1.5rem;
  padding-block: 0.45rem;
}
.topbar__item { display: inline-flex; align-items: center; gap: 0.45rem; margin: 0; }
.topbar__item .icon { color: var(--yellow); font-size: 1rem; }
.topbar__link { color: var(--white); font-weight: 600; text-decoration: none; }
.topbar__link:hover { color: var(--yellow); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s var(--ease);
}
.site-header.is-stuck { box-shadow: var(--shadow-md); }
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 5rem;
}
.brand { display: block; flex: none; background: var(--navy-deep); border-radius: var(--radius); padding: 0.45rem 0.7rem; margin-block: 0.5rem; }
.brand img { width: 104px; height: auto; }

.main-nav { margin-left: auto; }
.main-nav__list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}
.main-nav__list > li { position: relative; }
.main-nav__list > li > a,
.main-nav__list > li > button {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.65rem 0.85rem;
  font-family: var(--font-body);
  font-size: var(--fs-300);
  font-weight: 600;
  color: var(--navy-deep);
  text-decoration: none;
  background: none;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  position: relative;
  white-space: nowrap;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.main-nav__list > li > a::after,
.main-nav__list > li > button::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.25rem;
  height: 3px;
  background: var(--yellow);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.main-nav__list > li > a:hover::after,
.main-nav__list > li > a[aria-current="page"]::after,
.main-nav__list > li > button:hover::after,
.main-nav__list > li > button[aria-expanded="true"]::after { transform: scaleX(1); }
.chev { width: 0.9em; height: 0.9em; fill: currentColor; transition: transform 0.2s var(--ease); }
button[aria-expanded="true"] .chev { transform: rotate(180deg); }

.dropdown {
  position: absolute;
  top: calc(100% + 0rem);
  left: 0;
  min-width: 16rem;
  list-style: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--yellow);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-md);
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
}
.dropdown--wide { min-width: 18rem; max-height: 70vh; overflow: auto; }
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown,
.has-dropdown > button[aria-expanded="true"] + .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown a {
  display: block;
  padding: 0.55rem 1.25rem;
  color: var(--ink);
  font-size: var(--fs-300);
  font-weight: 500;
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: background-color 0.15s var(--ease), border-color 0.15s var(--ease), color 0.15s var(--ease);
}
.dropdown a:hover { background: var(--paper); border-left-color: var(--yellow); color: var(--navy); }

.site-header__actions { display: flex; align-items: center; gap: 0.5rem; flex: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle__bar {
  display: block;
  height: 3px;
  width: 100%;
  background: var(--navy-deep);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}
body.nav-open .nav-toggle__bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
body.nav-open .nav-toggle__bar:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle__bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ============================================================
   HERO
============================================================ */
.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: min(88vh, 46rem);
  isolation: isolate;
  overflow: hidden;
}
.hero__media, .hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero__media img { object-fit: cover; object-position: center 40%; }
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(78deg, rgba(8, 28, 51, 0.94) 0%, rgba(13, 44, 78, 0.82) 42%, rgba(13, 44, 78, 0.35) 72%, rgba(13, 44, 78, 0.55) 100%);
}
.hero__content {
  position: relative;
  z-index: 1;
  padding-block: clamp(4rem, 10vw, 7rem);
  max-width: calc(var(--container));
  width: 100%;
}
.hero__title {
  color: var(--white);
  text-shadow: 0 2px 24px rgba(8, 28, 51, 0.4);
  margin-bottom: 0.4em;
}
.hero__lede {
  color: #DDEAF9;
  font-size: clamp(1.05rem, 1rem + 0.5vw, 1.3rem);
  max-width: 34em;
  margin-bottom: 2rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 2.5rem; }
.hero__proof {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  list-style: none;
  color: #C9DCF2;
  font-size: var(--fs-300);
  font-weight: 600;
}
.hero__proof li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.hero__proof li::before {
  content: "";
  width: 0.9rem;
  height: 4px;
  background: var(--yellow);
  border-radius: 2px;
}

/* ============================================================
   SECTION HEADS
============================================================ */
.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head__sub { color: var(--ink-soft); font-size: 1.05rem; margin: 0; }

/* ============================================================
   HERITAGE
============================================================ */
.heritage__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.gen-marks {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: -0.25rem 0 1.4rem;
}
.gen-marks span {
  width: 2.2rem;
  height: 6px;
  background: var(--yellow);
  border-radius: 3px;
}
.gen-marks span:nth-child(1) { opacity: 0.35; }
.gen-marks span:nth-child(2) { opacity: 0.5; }
.gen-marks span:nth-child(3) { opacity: 0.65; }
.gen-marks span:nth-child(4) { opacity: 0.82; }
.gen-marks em {
  font-style: normal;
  font-size: var(--fs-200);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-left: 0.4rem;
}
.heritage__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.8rem 0 2rem;
  padding: 1.4rem 0;
  border-block: 1px solid var(--line);
}
.stat__num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.2rem);
  color: var(--navy);
  line-height: 1;
}
.stat__label {
  display: block;
  font-size: var(--fs-200);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 0.35rem;
}
.heritage__media { display: grid; gap: 1.25rem; }
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--navy-ink);
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.heritage__store { margin: 0; position: relative; }
.heritage__store img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  width: 100%;
  object-fit: cover;
  aspect-ratio: 5 / 2.6;
}
.heritage__store figcaption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  background: rgba(8, 28, 51, 0.82);
  color: var(--white);
  font-size: var(--fs-200);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.45rem 0.9rem;
  border-left: 4px solid var(--yellow);
  border-radius: 4px;
}

/* ============================================================
   DEPARTMENTS
============================================================ */
.dept-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 1.25rem;
  list-style: none;
}
.dept-card a {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  isolation: isolate;
}
.dept-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.dept-card a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 28, 51, 0.85) 0%, rgba(8, 28, 51, 0.25) 45%, rgba(8, 28, 51, 0) 70%);
  transition: background-color 0.3s var(--ease);
}
.dept-card__label {
  position: absolute;
  z-index: 1;
  left: 1.1rem;
  right: 1.1rem;
  bottom: 1rem;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.15;
  padding-bottom: 0.5rem;
}
.dept-card__label::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 2.2rem;
  height: 4px;
  background: var(--yellow);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.dept-card a:hover img,
.dept-card a:focus-visible img { transform: scale(1.06); }
.dept-card a:hover .dept-card__label::after,
.dept-card a:focus-visible .dept-card__label::after { transform: scaleX(1); }

/* ============================================================
   WHY CHOOSE
============================================================ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.5rem;
}
.why-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.why-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.why-card__icon {
  display: inline-grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--navy);
  margin-bottom: 1.1rem;
  border-bottom: 3px solid var(--yellow);
}
.why-card__icon svg { width: 1.6rem; height: 1.6rem; fill: currentColor; }
.why-card h3 { margin-bottom: 0.5rem; }
.why-card p { color: var(--ink-soft); font-size: var(--fs-300); margin: 0; }

/* ============================================================
   CONTRACTOR BAND
============================================================ */
.contractor { background: var(--navy-deep); color: #D7E5F5; }
.contractor__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.contractor__media { margin: 0; }
.contractor__media img {
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  aspect-ratio: 4 / 4.4;
  object-fit: cover;
  width: 100%;
}
.contractor h2 { color: var(--white); }
.check-list {
  list-style: none;
  display: grid;
  gap: 0.7rem;
  margin: 1.4rem 0 2rem;
}
.check-list li {
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
  font-weight: 500;
}
.check-list li::before {
  content: "";
  flex: none;
  width: 1rem;
  height: 5px;
  background: var(--yellow);
  border-radius: 2px;
  transform: translateY(-3px);
}
.contractor__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.contractor .btn--primary { background: var(--yellow); color: var(--navy-ink); }
.contractor .btn--primary:hover { background: #FCE873; }

/* ============================================================
   BRANDS — stepped carousel
============================================================ */
.brand-carousel {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.brand-viewport { flex: 1; overflow: hidden; }
.brand-track {
  display: flex;
  align-items: stretch;
  gap: 1rem;
  list-style: none;
  transition: transform 0.45s var(--ease);
  will-change: transform;
}
.brand-track li {
  display: grid;
  place-items: center;
  flex: none;
  width: 11rem;
  min-height: 5.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
}
.brand-track img {
  max-height: 3.25rem;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.75;
  transition: filter 0.25s var(--ease), opacity 0.25s var(--ease);
}
.brand-track li:hover img { filter: grayscale(0); opacity: 1; }
.carousel-btn {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
              border-color 0.2s var(--ease), transform 0.15s var(--ease);
}
.carousel-btn:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
  transform: translateY(-1px);
}
.carousel-btn svg { width: 1.4rem; height: 1.4rem; fill: currentColor; }
@media (prefers-reduced-motion: reduce) {
  .brand-track { transition: none; }
}

/* ============================================================
   SPLIT HIGHLIGHTS
============================================================ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.split__media { margin: 0; }
.split__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.split--reverse .split__media { order: 2; }
.split--reverse .split__copy { order: 1; }
.split__copy p { color: var(--ink-soft); }
.split__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.6rem; }

/* ============================================================
   SERVICES
============================================================ */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.5rem;
}
.service-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius);
  border-top: 4px solid var(--yellow);
  box-shadow: var(--shadow-sm);
  padding: 1.9rem 1.7rem;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.service-card__icon {
  display: inline-grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  margin-bottom: 1.1rem;
}
.service-card__icon svg { width: 1.5rem; height: 1.5rem; fill: currentColor; }
.service-card p { color: var(--ink-soft); font-size: var(--fs-300); flex: 1; }
.service-card .text-link { align-self: flex-start; }

/* ============================================================
   TESTIMONIALS
============================================================ */
.quote-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.5rem;
}
.quote-card {
  margin: 0;
  background: var(--paper);
  border-radius: var(--radius);
  padding: 2rem 1.75rem 1.6rem;
  position: relative;
}
.quote-card::before {
  content: "“";
  position: absolute;
  top: 0.2rem;
  left: 1.4rem;
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 1;
  color: var(--yellow);
}
.quote-card p {
  position: relative;
  font-size: 1.02rem;
  color: var(--ink);
  margin: 0.8rem 0 1.4rem;
}
.quote-card footer { display: flex; align-items: baseline; gap: 0.6rem; }
.quote-card cite {
  font-style: normal;
  font-weight: 700;
  font-size: var(--fs-300);
  color: var(--navy-deep);
}
.quote-card footer span { font-size: var(--fs-200); color: var(--ink-soft); }

/* ============================================================
   DEXPAN
============================================================ */
.dexpan { background: linear-gradient(105deg, #FBEFEE 0%, #F7F3F0 100%); }
.dexpan__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.dexpan__logo { margin-bottom: 1.4rem; }
.dexpan__copy p { color: var(--ink-soft); }
.dexpan__copy .btn { margin-top: 0.5rem; }
.dexpan__media { margin: 0; }
.dexpan__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* ============================================================
   CTA + FORM
============================================================ */
.cta {
  background:
    linear-gradient(115deg, var(--navy-ink) 0%, var(--navy-deep) 55%, var(--navy) 100%);
  color: #D7E5F5;
}
.cta__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}
.cta h2 { color: var(--white); }
.cta__contact { list-style: none; display: grid; gap: 0.6rem; margin-top: 1.8rem; font-weight: 600; }
.cta__contact a { color: var(--white); text-decoration: none; border-bottom: 2px solid var(--yellow); padding-bottom: 1px; }
.cta__contact a:hover { color: var(--yellow); }

.inquiry-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.3);
  padding: clamp(1.5rem, 3vw, 2.4rem);
  color: var(--ink);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-field { display: grid; gap: 0.35rem; margin-bottom: 1rem; }
.form-field label {
  font-size: var(--fs-200);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy-deep);
}
.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--font-body);
  font-size: var(--fs-400);
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 0.7rem 0.9rem;
  width: 100%;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.form-field textarea { resize: vertical; min-height: 6.5rem; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(66, 123, 202, 0.2);
}
.form-note { font-size: var(--fs-200); color: var(--ink-soft); margin: 0.9rem 0 0; }

/* ============================================================
   FOOTER
============================================================ */
.site-footer { background: var(--footer-bg); color: #B9C2CC; font-size: var(--fs-300); }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { color: var(--yellow); }
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr 1.1fr 1.2fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-block: clamp(3rem, 6vw, 4.5rem);
}
.site-footer__logo {
  width: 128px;
  height: auto;
  margin-bottom: 1.2rem;
}
.footer-col__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  position: relative;
}
.footer-col__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 2rem;
  height: 3px;
  background: var(--yellow);
  border-radius: 2px;
}
.footer-col__title + .footer-list + .footer-col__title { margin-top: 1.8rem; }
.footer-list { list-style: none; display: grid; gap: 0.55rem; }
.footer-list--hours li { display: flex; justify-content: space-between; gap: 1rem; max-width: 18rem; }
.footer-list--hours span:first-child { font-weight: 600; color: #DDE5EC; }

.social-row { list-style: none; display: flex; gap: 0.7rem; margin-top: 1.4rem; }
.social-row a {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.social-row a:hover { background: var(--navy); border-color: var(--navy); transform: translateY(-2px); }
.social-row svg { width: 1.15rem; height: 1.15rem; fill: var(--white); }

.newsletter-form .form-field label { color: #DDE5EC; }
.newsletter-form .form-field input {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--white);
}
.newsletter-form .form-field input:focus {
  border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(73, 174, 223, 0.25);
}
.newsletter-form .btn { margin-top: 0.25rem; }

.site-footer__legal { border-top: 1px solid rgba(255, 255, 255, 0.1); }
.site-footer__legal-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-block: 1.2rem;
  font-size: var(--fs-200);
}
.site-footer__legal p { margin: 0; }
.legal-links { list-style: none; display: flex; gap: 1.5rem; }

/* ============================================================
   REVEAL ANIMATION
============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 68rem) {
  .heritage__grid,
  .contractor__grid,
  .split,
  .dexpan__grid,
  .cta__grid { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .split--reverse .split__copy { order: 0; }
  .contractor__media img { aspect-ratio: 16 / 9; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 56rem) {
  .nav-toggle { display: flex; }
  .site-header__actions .btn--primary { display: none; }
  .site-header__inner { justify-content: space-between; }   /* logo left, menu button right */
  .brand,
  .site-header__actions { position: relative; z-index: 60; } /* stay above the open menu panel */
  .main-nav {
    position: fixed;
    inset: 0;
    top: 0;
    z-index: 40;
    background: var(--white);
    padding: 6.5rem var(--gutter) 3rem;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s var(--ease);
    visibility: hidden;
  }
  body.nav-open .main-nav { transform: translateX(0); visibility: visible; }
  body.nav-open { overflow: hidden; }
  .main-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav__list > li { border-bottom: 1px solid var(--line); }
  .main-nav__list > li > a,
  .main-nav__list > li > button {
    width: 100%;
    justify-content: space-between;
    padding: 1rem 0.25rem;
    font-size: 1.05rem;
  }
  .main-nav__list > li > a::after,
  .main-nav__list > li > button::after { display: none; }
  .dropdown {
    position: static;
    min-width: 0;
    border: 0;
    border-left: 3px solid var(--yellow);
    border-radius: 0;
    box-shadow: none;
    background: var(--paper);
    margin: 0 0 0.75rem;
    padding: 0.25rem 0;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
  }
  .has-dropdown > button[aria-expanded="true"] + .dropdown { display: block; }
  .has-dropdown:hover .dropdown { /* no hover-open on mobile */ }
  .dropdown--wide { max-height: none; overflow: visible; }
}

@media (max-width: 40rem) {
  .topbar__text { display: none; }
  .topbar__inner { justify-content: space-around; padding-block: 0.15rem; }
  .topbar__item { padding: 0.8rem 1rem; }          /* ≥44px tap targets */
  .topbar__item .icon { font-size: 1.15rem; }
  .topbar__item--hours { display: inline-flex; }
  .hero { min-height: 34rem; }
  .heritage__stats { grid-template-columns: 1fr 1fr; gap: 1.25rem 1rem; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .dept-grid { grid-template-columns: 1fr 1fr; gap: 0.9rem; }
  .dept-card__label { font-size: 0.95rem; left: 0.8rem; right: 0.8rem; bottom: 0.75rem; }
  .site-footer__legal-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 28rem) {
  .dept-grid { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; }
}
