:root {
  --bg: #ffffff;
  --surface: #f7f7f6;
  --ink: #131313;
  --ink-soft: #3a3a3a;
  --ink-muted: #666666;
  --rule: rgba(0, 0, 0, 0.12);
  --accent: #0f6e67;
  --max: 1280px;
  --radius: 4px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: "Source Serif 4", "Source Serif Pro", Georgia, serif;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--ink); text-decoration: none; }
a:hover, a:focus-visible {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 0.22em;
}

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

.tnum { font-variant-numeric: tabular-nums; }

sup {
  font-size: 0.55em;
  vertical-align: 0.55em;
  line-height: 0;
  margin-left: 0.06em;
  font-weight: inherit;
  letter-spacing: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Source Sans 3", "Source Sans Pro", sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--ink);
  border-radius: 4px;
  z-index: 999;
  text-decoration: none;
}
.skip-link:focus,
.skip-link:focus-visible {
  left: 1rem;
  top: 1rem;
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Focus rings for keyboard users */
:where(a, button, [tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Visually hidden, accessible to screen readers */
.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;
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* === Layout === */
main { display: flex; flex-direction: column; flex: 1; background: var(--bg); min-height: 0; }

.container,
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 72px;
}

/* === Nav === */
.site-nav {
  position: relative;
  width: 100%;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo { text-decoration: none; display: inline-flex; align-items: center; }
.logo img { display: block; height: 34px; width: auto; }

.nav-toggle {
  display: none;
  border: 1px solid var(--rule);
  background: transparent;
  border-radius: 4px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle::before { transform: translateY(-6px); }
.nav-toggle::after  { transform: translateY(6px); }
.nav-toggle[aria-expanded="true"] span { opacity: 0; }
.nav-toggle[aria-expanded="true"]::before { transform: translateY(1px) rotate(45deg); }
.nav-toggle[aria-expanded="true"]::after  { transform: translateY(-1px) rotate(-45deg); }

.nav-links, .footer-links {
  list-style: none;
  display: flex;
}
.nav-links { gap: 44px; }
.footer-links { gap: 28px; align-items: center; }
.footer-links a {
  font-family: "Source Sans 3", "Source Sans Pro", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--ink-muted);
  transition: color 0.2s ease;
}
.footer-links a:hover,
.footer-links a:focus-visible { color: var(--accent); text-decoration: none; }
.nav-links a {
  font-family: "Source Serif 4", "Source Serif Pro", Georgia, serif;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--accent); text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--ink); }

/* === Homepage Hero === */
.hero {
  display: flex;
  align-items: center;
  flex: 1;
  background: var(--bg);
}

.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 64px 72px;
  width: 100%;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero-left { padding-right: 0; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Source Sans 3", "Source Sans Pro", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 36px;
}
.eyebrow::before {
  content: "";
  width: 2px;
  height: 0.95em;
  background: var(--accent);
  display: inline-block;
}

.hero h1:not(.eyebrow) {
  font-family: "Source Serif 4", "Source Serif Pro", Georgia, serif;
  font-weight: 400;
  font-size: clamp(2.4rem, 4.4vw, 3.75rem);
  line-height: 1.05;
  color: var(--ink);
  letter-spacing: -0.025em;
  margin: 0 0 32px;
  text-wrap: balance;
}

.hero-sub {
  font-family: "Source Serif 4", "Source Serif Pro", Georgia, serif;
  font-size: 18px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.6;
  max-width: 560px;
}
.hero-sub b, .hero-sub strong { font-weight: 600; color: var(--ink); }
.hero-sub p { margin: 0; }
.hero-sub p + p { margin-top: 24px; }
.teal-accent { color: var(--accent); font-weight: 600; }

/* At a glance */
.hero-right {
  display: grid;
  gap: 36px;
  padding: 6px 0 0 56px;
  border-left: 1px solid var(--rule);
  align-self: stretch;
}
.hero-right::before {
  content: "At a Glance";
  font-family: "Source Sans 3", "Source Sans Pro", sans-serif;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 500;
}

.stat { display: flex; flex-direction: column; padding: 0; }
.stat-value {
  font-family: "Source Serif 4", "Source Serif Pro", Georgia, serif;
  font-weight: 500;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  margin: 0;
  order: 1;
}
.stat:first-child .stat-value { font-size: 30px; }
.stat-label {
  font-family: "Source Sans 3", "Source Sans Pro", sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 14px 0 0;
  order: 2;
}

/* === Contact Page === */
.page-main.contact-page {
  padding: 0;
  background: var(--bg);
}

.contact-split {
  min-height: calc(100vh - 80px);
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.split-content {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 96px 72px 96px max(48px, calc((100vw - var(--max)) / 2 + 72px));
  background: var(--bg);
}
.split-content-inner { width: 100%; max-width: 600px; }

.contact-label {
  margin: 0;
  font-family: "Source Serif 4", "Source Serif Pro", Georgia, serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.contact-heading {
  margin: 0 0 56px;
  font-family: "Source Serif 4", "Source Serif Pro", Georgia, serif;
  font-weight: 400;
  font-size: clamp(2.4rem, 4vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--ink);
  text-wrap: balance;
}

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.contact-card { position: relative; padding-left: 0; }
.contact-card::before { content: none; }

.card-label {
  margin: 0 0 18px;
  font-family: "Source Serif 4", "Source Serif Pro", Georgia, serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.card-value {
  margin: 0;
  font-family: "Source Serif 4", "Source Serif Pro", Georgia, serif;
  font-size: 17px;
  font-weight: 400;
  color: var(--ink-soft);
  line-height: 1.65;
}

.card-detail {
  margin: 12px 0 0;
  font-family: "Source Serif 4", "Source Serif Pro", Georgia, serif;
  font-size: 15px;
  font-weight: 400;
  color: var(--ink-muted);
  line-height: 1.6;
}

.card-link-wrap { margin: 20px 0 0; }

.maps-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Source Serif 4", "Source Serif Pro", Georgia, serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
}
.maps-link .link-arrow {
  display: inline-block;
  color: var(--accent);
  transition: transform 0.2s ease;
}
.maps-link:hover .link-arrow,
.maps-link:focus-visible .link-arrow { transform: translateX(4px); }
.maps-link:hover, .maps-link:focus-visible {
  color: var(--ink);
  text-decoration: none;
}

.email-link {
  display: inline-block;
  font-family: "Source Serif 4", "Source Serif Pro", Georgia, serif;
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 4px;
}
.email-link:hover, .email-link:focus-visible {
  color: var(--ink);
  text-decoration: none;
}

.split-map {
  position: relative;
  min-height: calc(100vh - 80px);
  background: var(--surface);
  overflow: hidden;
  border-left: 1px solid var(--rule);
}
.split-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.55) contrast(0.96);
  transition: filter 0.4s ease;
}
.split-map:hover iframe,
.split-map:focus-within iframe {
  filter: grayscale(0.25) contrast(1);
}

.map-float-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  background: #ffffff;
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 14px 22px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
  pointer-events: none;
}
.map-float-name {
  margin: 0 0 4px;
  font-family: "Source Serif 4", "Source Serif Pro", Georgia, serif;
  font-weight: 500;
  font-size: 14px;
  color: var(--ink);
}
.map-float-address {
  margin: 0;
  font-family: "Source Sans 3", "Source Sans Pro", sans-serif;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

/* === Legal & Generic Page === */
.page-main {
  padding: 0 0 4rem;
  background: var(--bg);
}
.page-main .container { max-width: var(--max); }

.page-hero { padding: 96px 0 56px; }

.page-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 28px;
  font-family: "Source Serif 4", "Source Serif Pro", Georgia, serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.page-eyebrow::before {
  content: "";
  width: 2px;
  height: 0.95em;
  background: var(--accent);
  display: inline-block;
}

.page-title {
  margin: 0 0 1.5rem;
  font-family: "Source Serif 4", "Source Serif Pro", Georgia, serif;
  font-weight: 400;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--ink);
  text-wrap: balance;
}

.content-block {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}
.content-block p {
  font-family: "Source Serif 4", "Source Serif Pro", Georgia, serif;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.7;
  margin: 0 0 16px;
  max-width: 780px;
}
.content-block p strong { color: var(--ink); font-weight: 600; }

.content-block h2 {
  margin: 64px 0 8px;
  padding-top: 48px;
  border-top: 1px solid var(--rule);
  font-family: "Source Serif 4", "Source Serif Pro", Georgia, serif;
  font-size: 1.75rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.content-block h2:first-of-type {
  margin-top: 24px;
  padding-top: 0;
  border-top: 0;
}

.content-block h3 {
  margin: 36px 0 12px;
  font-family: "Source Serif 4", "Source Serif Pro", Georgia, serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.content-block h3:first-of-type { margin-top: 28px; }

.policy { margin-top: 0.35rem; }

/* === Footer === */
.footer {
  padding: 56px 0 40px;
  background: var(--bg);
  border-top: 1px solid var(--rule);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "top"
    "disc"
    "legal";
  row-gap: 24px;
}
.footer-top {
  grid-area: top;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
}
.footer-brand {
  margin: 0;
  font-family: "Source Serif 4", "Source Serif Pro", Georgia, serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink);
  line-height: 1.7;
  text-align: left;
}
.footer-disclaimer {
  grid-area: disc;
  margin: 0;
  max-width: 100%;
  font-family: "Source Serif 4", "Source Serif Pro", Georgia, serif;
  font-size: 12.5px;
  font-weight: 400;
  color: var(--ink-muted);
  line-height: 1.7;
}
.footer-copyright {
  grid-area: legal;
  margin: 0;
  font-family: "Source Serif 4", "Source Serif Pro", Georgia, serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--ink-muted);
}

/* === Responsive === */
@media (max-width: 900px) {
  .nav-inner { padding: 20px 24px; }
  .container, .footer-inner { padding-left: 24px; padding-right: 24px; }

  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute;
    top: 68px;
    left: 24px;
    right: 24px;
    border: 1px solid var(--rule);
    background: var(--bg);
    border-radius: 4px;
    padding: 16px;
    display: none;
    flex-direction: column;
    gap: 14px;
  }
  .nav-links.open { display: flex; }

  .hero { min-height: 0; display: block; }
  .hero-inner {
    grid-template-columns: 1fr;
    padding: 72px 24px 64px;
    gap: 56px;
  }
  .hero-left { padding: 0; }
  .hero-sub { max-width: 100%; }

  .hero-right {
    border-left: 0;
    border-top: 1px solid var(--rule);
    padding: 40px 0 0;
    display: flex;
    flex-direction: column;
    gap: 28px;
  }
  .stat:first-child .stat-value { font-size: 22px; }
  .stat:not(:first-child) .stat-value { font-size: 20px; }

  .page-hero { padding: 64px 0 40px; }
  .page-main.contact-page { padding-top: 0; }

  .contact-split { grid-template-columns: 1fr; }
  .split-content {
    justify-content: stretch;
    padding: 64px 24px 56px;
  }
  .split-content-inner { max-width: none; }
  .split-map {
    min-height: 50vh;
    height: 50vh;
    border-left: 0;
    border-top: 1px solid var(--rule);
  }
  .map-float-label { padding: 12px 16px; }

  .footer { padding: 32px 0 36px; }
  .footer-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .footer-top { order: 1; flex-direction: column; align-items: flex-start; }
  .footer-disclaimer { order: 2; max-width: 100%; }
  .footer-copyright  { order: 3; }
  .footer-brand { text-align: left; }
}
