:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Arial Hebrew", Arial, sans-serif;
  --ink: #173f34;
  --ink-soft: #526b64;
  --cream: #f6f2e8;
  --paper: #fffdf7;
  --white: #ffffff;
  --sage: #e2ebe1;
  --coral: #dc755c;
  --gold: #e2bc62;
  --blue: #9acfd8;
  --lavender: #a69aba;
  --line: #d5ddd5;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  background: var(--cream);
  font-size: 18px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 4px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 247, 0.96);
}

.header-inner,
.footer-inner {
  width: min(calc(100% - 3rem), 72rem);
  margin-inline: auto;
}

.header-inner {
  min-height: 4.6rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.75rem;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.brand-mark {
  width: 2.65rem;
  height: 2.65rem;
  display: block;
  flex: 0 0 auto;
  color: transparent;
  background: url("assets/logo-mark.svg") center / contain no-repeat;
  border-radius: 0;
  font-size: 0;
}

.brand-text {
  display: grid;
  font-size: 0.94rem;
  font-weight: 800;
  line-height: 1.05;
  white-space: nowrap;
}

.brand-text small {
  margin-top: 0.28rem;
  color: var(--ink-soft);
  font-size: 0.62rem;
  font-weight: 500;
}

.desktop-nav {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: clamp(0.75rem, 1.7vw, 1.4rem);
  font-size: 0.82rem;
  font-weight: 680;
}

.desktop-nav > a,
.nav-dropdown-trigger {
  padding: 0.45rem 0;
  border-bottom: 2px solid transparent;
}

.desktop-nav > a:hover,
.desktop-nav > a[aria-current="page"],
.nav-dropdown-trigger:hover,
.nav-dropdown-trigger[aria-current="page"],
.nav-dropdown.is-active > .nav-dropdown-trigger {
  border-color: var(--coral);
}

.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-dropdown-trigger::after {
  content: "⌄";
  margin-top: -0.15rem;
  color: var(--ink-soft);
  font-size: 0.72rem;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% - 0.1rem);
  right: -0.8rem;
  width: 13.5rem;
  padding: 0.45rem;
  display: grid;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  box-shadow: 0 0.8rem 2rem rgba(23, 63, 52, 0.13);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.nav-dropdown-menu a {
  padding: 0.55rem 0.65rem;
  border: 0;
  border-radius: 0.25rem;
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a[aria-current="page"] {
  color: var(--ink);
  background: var(--sage);
}

.header-alert-link {
  padding: 0.5rem 0.72rem;
  border: 1px solid #c9a89f;
  color: #73483d;
  background: #fff7f3;
  border-radius: 0.3rem;
  font-size: 0.72rem;
  font-weight: 750;
  white-space: nowrap;
}

.header-alert-link:hover {
  background: #fbece6;
}

.mobile-menu {
  display: none;
  position: relative;
}

.site-footer {
  border-top: 1px solid var(--line);
}

.footer-inner {
  padding: 1.7rem 0 2.4rem;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 2rem;
  color: var(--ink-soft);
  font-size: 0.72rem;
}

.footer-brand div {
  display: grid;
  gap: 0.1rem;
}

.footer-brand strong {
  color: var(--ink);
  font-size: 0.84rem;
}

.footer-inner > a {
  color: var(--ink);
  font-weight: 750;
}

@media (max-width: 980px) {
  .desktop-nav {
    display: none;
  }

  .header-inner {
    grid-template-columns: 1fr auto auto;
  }

  .mobile-menu {
    display: block;
  }

  .mobile-menu summary {
    padding: 0.5rem 0.7rem;
    border: 1px solid var(--line);
    border-radius: 0.3rem;
    cursor: pointer;
    font-size: 0.72rem;
    font-weight: 750;
    list-style: none;
  }

  .mobile-menu summary::-webkit-details-marker {
    display: none;
  }

  .mobile-links {
    position: absolute;
    top: calc(100% + 0.65rem);
    left: 0;
    width: min(19rem, calc(100vw - 1.5rem));
    padding: 0.45rem;
    display: grid;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 0.35rem;
    box-shadow: 0 12px 30px rgba(23, 63, 52, 0.12);
  }

  .mobile-links a {
    padding: 0.65rem 0.7rem;
    border-bottom: 1px solid var(--line);
    font-size: 0.78rem;
    font-weight: 650;
  }

  .mobile-service-group {
    display: grid;
    border-bottom: 1px solid var(--line);
  }

  .mobile-service-group > a {
    border-bottom: 0;
  }

  .mobile-service-links {
    padding: 0 0.8rem 0.45rem 0;
    display: grid;
  }

  .mobile-service-links a {
    padding: 0.38rem 0.65rem;
    border: 0;
    color: var(--ink-soft);
    font-size: 0.72rem;
    font-weight: 600;
  }

  .mobile-links a:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 17px;
  }

  .header-inner,
  .footer-inner {
    width: min(calc(100% - 1.5rem), 42rem);
  }

  .header-inner {
    min-height: 4.3rem;
    grid-template-columns: 1fr auto;
    gap: 0.7rem;
  }

  .header-alert-link {
    display: none;
  }

  .brand-text small {
    display: none;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
