:root {
  --primary: #1e3a5f;
  --accent: #d4a017;
  --surface: #ffffff;
  --dark-text: #1a2332;
  --nav-h: 4rem;
  --callbar-h: 4.25rem;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  background: #ffffff;
  color: var(--dark-text);
  font-family: "DM Sans", sans-serif;
  overflow-x: clip;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

h1,
h2,
h3,
h4,
.font-heading {
  font-family: Fraunces, Georgia, serif;
}

::selection {
  background: #1e3a5f;
  color: #ffffff;
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #ffffff;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
  background: #1e3a5f;
}

* {
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 #ffffff;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: none;
}

.hero-frame {
  border-radius: 2.5rem;
}

.area-map > div {
  box-shadow: 0 24px 48px rgb(0 0 0 / 0.35);
}

.area-map iframe {
  background: #0f172a;
}

.nav-scrolled {
  box-shadow: 0 8px 24px rgb(15 23 42 / 0.06);
  background-color: #ffffff;
}

#mobileMenu {
  display: none;
  background: #ffffff;
  max-height: min(78dvh, calc(100dvh - var(--nav-h) - env(safe-area-inset-top, 0px)));
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

#mobileMenu.open {
  display: block;
}

.site-brand {
  display: block;
  line-height: 1.15;
  overflow-wrap: break-word;
  font-size: 0.92rem;
}

.menu-scrim {
  display: none;
  position: fixed;
  inset: 0;
  background: rgb(15 23 42 / 0.38);
  z-index: 45;
}

body.menu-open {
  overflow: hidden;
}

body.menu-open .menu-scrim {
  display: block;
}

body.menu-open .site-callbar {
  visibility: hidden;
}

#siteNav {
  padding-top: env(safe-area-inset-top);
}

#menuToggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  flex-shrink: 0;
}

.site-callbar {
  position: fixed;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  bottom: max(0.85rem, env(safe-area-inset-bottom));
  left: max(1rem, env(safe-area-inset-left));
  right: max(1rem, env(safe-area-inset-right));
}

.nav-drop {
  position: relative;
  align-self: stretch;
  display: flex;
  align-items: center;
}

.nav-drop-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.15rem;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: inherit;
}

.ui-caret {
  display: inline-block;
  width: 0.42rem;
  height: 0.42rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin: 0.05rem 0 0.28rem;
  flex-shrink: 0;
  transition: transform 0.2s ease, margin 0.2s ease;
}

.ui-menu {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 1.2rem;
  height: 1.2rem;
}

.ui-menu span {
  display: block;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transform-origin: center;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

#menuToggle[aria-expanded="true"] .ui-menu span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

#menuToggle[aria-expanded="true"] .ui-menu span:nth-child(2) {
  opacity: 0;
}

#menuToggle[aria-expanded="true"] .ui-menu span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.fact-item {
  position: relative;
  padding-left: 1.1rem;
}

.fact-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.38rem;
  height: 0.38rem;
  background: var(--accent);
}

.nav-panel {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: min(44rem, calc(100vw - 2rem));
  padding: 0.15rem 0 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  z-index: 70;
}

.nav-panel-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1.25rem;
  box-shadow: 0 22px 50px rgb(15 23 42 / 0.12);
  padding: 1rem;
}

.nav-panel.nav-panel-areas {
  width: min(52rem, calc(100vw - 2rem));
  left: 50%;
  transform: translateX(-50%);
}

.nav-drop.is-open > .nav-panel {
  display: block;
}

@media (hover: hover) and (pointer: fine) {
  .nav-drop:hover > .nav-panel {
    display: block;
  }
}

.nav-drop.is-open .nav-drop-btn .ui-caret,
.nav-drop:hover .nav-drop-btn .ui-caret,
.mobile-acc.is-open .mobile-acc-btn .ui-caret,
.faq-item[open] summary .ui-caret {
  transform: rotate(225deg);
  margin-bottom: 0;
  margin-top: 0.28rem;
}

.mobile-acc-panel {
  display: none;
  background: #ffffff;
}

.mobile-acc.is-open > .mobile-acc-panel {
  display: block;
}

.site-footer {
  --footer-ink: #f4f1ea;
  --footer-mute: rgb(244 241 234 / 0.86);
  background: var(--primary);
  color: var(--footer-ink);
  margin-top: 2.5rem;
  border-top: 3px solid var(--accent);
  padding-bottom: calc(var(--callbar-h) + env(safe-area-inset-bottom, 0px));
}

.site-footer ::selection {
  background: var(--accent);
  color: #1a2332;
}

.site-footer a {
  color: inherit;
  text-underline-offset: 0.18em;
}

.site-footer a:hover {
  color: var(--accent);
}

.site-footer a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.site-footer-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 3.75rem 1.5rem 2.75rem;
  display: grid;
  gap: 3rem 4.5rem;
}

.site-footer-brand {
  max-width: 22rem;
}

.site-footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
  text-decoration: none;
}

.site-footer-logo img {
  width: 3rem;
  height: 3rem;
  object-fit: contain;
  background: #fff;
  border-radius: 0.65rem;
}

.site-footer-logo span {
  font-family: Fraunces, Georgia, serif;
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.25;
  max-width: 11rem;
}

.site-footer-phone {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(1.45rem, 6vw, 2.35rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--accent);
  text-decoration: none;
  margin: 0 0 1rem;
}

.site-footer-phone:hover {
  color: #fff;
}

.site-footer-lede {
  color: var(--footer-mute);
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0 0 1.15rem;
  max-width: 28ch;
}

.site-footer-email {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--footer-mute);
  font-size: 0.88rem;
  text-decoration: none;
  letter-spacing: 0.01em;
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
}

.site-footer-dirs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
  min-width: 0;
  width: 100%;
}

.site-footer-col {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-width: 0;
}

.site-footer-col + .site-footer-col {
  padding-left: 3rem;
  border-left: 1px solid rgb(244 241 234 / 0.16);
}

.site-footer-col h2 {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 1.15rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgb(244 241 234 / 0.16);
}

.site-footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-rows: repeat(8, minmax(2.75rem, auto));
}

.site-footer-col a {
  font-size: 0.92rem;
  line-height: 1.3;
  color: var(--footer-mute);
  text-decoration: none;
}

.site-footer-col ul a {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
}

.site-footer-col a:hover {
  color: #fff;
}

.site-footer-more {
  margin-top: 1.15rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgb(244 241 234 / 0.16);
  color: var(--accent) !important;
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.01em;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.site-footer-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.85rem 1.5rem;
  max-width: 80rem;
  margin: 0 auto;
  padding: 1.15rem 1.5rem 1.4rem;
  border-top: 1px solid rgb(244 241 234 / 0.14);
  color: var(--footer-mute);
  font-size: 0.78rem;
  line-height: 1.5;
  letter-spacing: 0.01em;
}

.site-footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.35rem;
}

.site-footer-legal a {
  color: var(--footer-mute);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 0.2rem;
}

.site-footer-legal a:hover {
  color: #fff;
}

@media (min-width: 960px) {
  .site-footer-inner {
    grid-template-columns: minmax(16rem, 22rem) minmax(0, 1fr);
    align-items: stretch;
    padding-top: 4.25rem;
    padding-bottom: 3rem;
  }
}

@media (max-width: 639px) {
  .site-footer-inner {
    padding: 2.5rem 1.15rem 1.75rem;
    gap: 2rem;
  }

  .site-footer-logo span {
    max-width: none;
  }

  .site-footer-lede {
    max-width: none;
  }

  .site-footer-dirs {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .site-footer-col + .site-footer-col {
    padding-left: 0;
    border-left: 0;
    padding-top: 1.35rem;
    border-top: 1px solid rgb(244 241 234 / 0.16);
  }

  .site-footer-col ul {
    grid-template-rows: repeat(8, minmax(2.75rem, auto));
  }

  .site-footer-col ul a {
    min-height: 2.75rem;
    font-size: 0.9rem;
  }

  .site-footer-bar {
    padding: 1rem 1.15rem 1.15rem;
  }
}

@media (min-width: 640px) {
  .site-footer {
    padding-bottom: 0;
  }

  :root {
    --nav-h: 5rem;
  }
}

@media (min-width: 1024px) {
  :root {
    --nav-h: 5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .ui-menu span {
    transition: none;
  }
}

/* --- Mobile / tablet adaptation --- */

h1,
h2,
h3,
.site-brand {
  overflow-wrap: break-word;
}

img,
svg,
video {
  max-width: 100%;
}

.faq-item summary {
  min-height: 44px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.cta-panel {
  max-width: 100%;
}

.emergency-band a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}

@media (max-width: 1023px) {
  #siteNav .h-20 {
    height: auto;
    min-height: var(--nav-h);
    padding-block: 0.45rem;
    gap: 0.65rem;
  }

  main.pt-20 {
    padding-top: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
  }

  #mobileMenu > a,
  .mobile-acc-btn {
    min-height: 48px;
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
  }

  .mobile-acc-panel a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
  }

  nav.text-sm a,
  nav.text-sm span {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  a[class*="font-semibold text-primary"],
  a.font-semibold.text-primary {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .hidden.sm\:inline-flex[data-site-tel] {
    min-height: 44px;
  }
}

@media (max-width: 639px) {
  .site-brand {
    font-size: 0.84rem;
    max-width: 11.75rem;
  }

  h1.font-heading,
  h1 {
    font-size: clamp(1.7rem, 7.6vw, 2.15rem) !important;
    line-height: 1.2 !important;
    letter-spacing: -0.03em;
  }

  h2.font-heading,
  h2 {
    font-size: clamp(1.35rem, 6vw, 1.75rem) !important;
    line-height: 1.18 !important;
  }

  section.py-20,
  section.py-16 {
    padding-top: 2.75rem;
    padding-bottom: 2.75rem;
  }

  section.pt-12 {
    padding-top: 1.5rem;
  }

  section.pb-20 {
    padding-bottom: 2.5rem;
  }

  section.pt-8 {
    padding-top: 1.25rem;
  }

  .gap-12 {
    gap: 1.5rem;
  }

  .gap-16 {
    gap: 1.65rem;
  }

  .cta-panel {
    padding: 1.35rem !important;
    border-radius: 1.25rem;
  }

  .hero-actions > a {
    width: 100%;
    justify-content: center;
    min-height: 48px;
  }

  .keep-going-links {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
  }

  .keep-going-links a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .hero-frame,
  .rounded-\[2\.5rem\],
  .rounded-\[2rem\] {
    border-radius: 1.25rem;
  }

  .rotate-3,
  .rotate-2 {
    transform: none;
  }

  .overlap-badge {
    width: 5.5rem;
    height: 5.5rem;
  }

  .overlap-badge .font-heading {
    font-size: 0.78rem;
  }

  .map-caption {
    left: 0.85rem;
    right: 0.85rem;
    bottom: 0.85rem;
    width: auto;
    max-width: calc(100% - 1.7rem);
  }

  .emergency-band {
    font-size: 0.8rem;
    line-height: 1.4;
  }

  .emergency-band > div {
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
  }

  .emergency-band a {
    min-height: 44px;
    padding: 0 0.15rem;
    border: 0;
    border-radius: 0;
    text-decoration: underline;
    text-underline-offset: 0.18em;
    font-weight: 700;
  }

  .stat-counter,
  [aria-label="Company highlights"] .font-heading {
    font-size: 1.85rem !important;
  }

  [aria-label="Company highlights"] {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  [aria-label="Company highlights"] .gap-8 {
    gap: 1.15rem 0.75rem;
  }

  .photo-pair .mt-8 {
    margin-top: 0.85rem;
  }

  .text-lg {
    font-size: 1.02rem;
  }
}

@media (max-width: 379px) {
  .site-brand {
    font-size: 0.78rem;
    max-width: 9.6rem;
  }

  .photo-pair {
    gap: 0.55rem;
  }

  .photo-pair .mt-8 {
    margin-top: 0;
  }
}

@media (pointer: coarse) {
  button,
  a,
  summary,
  [role="button"] {
    touch-action: manipulation;
  }
}

@media (min-width: 640px) {
  .site-brand {
    font-size: 1.02rem;
    max-width: none;
  }

  .site-callbar {
    display: none;
  }
}
