:root {
  --bg: #ebebeb;
  --sheet: #ffffff;
  --text: #303f50;
  --teal: #0b4241;
  --teal-soft: #3a6665;
  --menu: #758799;
  --menu-active: #4c4c4c;
  --card: #d7d7d7;
  --footer: #6986a5;
  --line: #9cafc4;
  --radius: 6px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.6 Arial, "Arial Unicode MS", Helvetica, sans-serif;
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; border: 0; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, p { margin: 0; }

.wrap {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  background: var(--sheet);
}

/* ---------- Header + menu ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--sheet);
  box-shadow: 0 1px 0 rgba(0,0,0,.06), 0 4px 14px rgba(0,0,0,.05);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 4px 12px;
  position: relative;
}
.logo { display: block; line-height: 0; }
.logo img { width: 150px; }

.nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}
.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;
}

/* ---------- Search ---------- */
.search { position: relative; width: 230px; margin: 4px 11px 0 0; }
.search input {
  width: 100%;
  padding: 6px 34px 6px 12px;
  font: inherit;
  font-size: 13px;
  color: #364049;
  background: #f6f8fa;
  border: 1px solid #d5dbe2;
  border-radius: 16px;
  transition: border-color .15s, background .15s, box-shadow .15s;
  -webkit-appearance: none;
  appearance: none;
}
.search input::placeholder { color: #8a99a8; }
.search input:focus { outline: none; background: #fff; border-color: var(--teal-soft); box-shadow: 0 0 0 3px rgba(58,102,101,.14); }
.search input::-webkit-search-cancel-button { display: none; }
.search button {
  position: absolute; right: 3px; top: 3px;
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: transparent;
  color: var(--menu);
  cursor: pointer;
}
.search button:hover { color: var(--teal); }
.search-results {
  position: absolute;
  right: 0; top: calc(100% + 6px);
  z-index: 70;
  width: 360px; max-width: calc(100vw - 24px);
  max-height: 70vh; overflow: auto;
  margin: 0; padding: 4px;
  list-style: none;
  background: #fff;
  border: 1px solid #e1e6ec;
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0,0,0,.14);
}
.search-results[hidden] { display: none; }
.search-results a {
  display: block;
  padding: 9px 12px;
  border-radius: 7px;
  color: var(--text);
  line-height: 1.35;
}
.search-results a:hover, .search-results a.is-active { background: #eef3f2; text-decoration: none; }
.search-results .r-title { display: block; color: var(--teal); font-size: 14px; }
.search-results .r-snip { display: block; margin-top: 2px; font-size: 12px; color: #5f6e7c; }
.search-results mark { background: #fff1b3; color: inherit; padding: 0 1px; border-radius: 2px; }
.search-results .r-empty { padding: 12px; font-size: 13px; color: #6f7d8b; }

.menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
}
.menu-list li + li { position: relative; }
.menu-list li + li::before {
  content: "";
  position: absolute;
  left: -1px; top: 50%;
  width: 1px; height: 22px;
  margin-top: -11px;
  background: #d5dbe2;
}
.menu-list a {
  display: block;
  padding: 12px 11px;
  color: var(--menu);
  font-size: 14px;
  line-height: 1.2;
  border-radius: var(--radius);
  transition: color .15s, background .15s;
}
.menu-list a:hover,
.menu-list a.active { color: var(--menu-active); text-decoration: none; }
.menu-list a:hover { background: #f3f5f7; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  padding: 10px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--menu-active);
  border-radius: 2px;
}

/* ---------- Intro ---------- */
.intro {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 20px;
  padding: 32px 24px 28px;
  align-items: start;
}
.eyebrow, .intro h1 {
  font-size: 16px;
  font-weight: normal;
  color: var(--teal);
  margin-bottom: 8px;
}
.intro p + p { margin-top: 10px; }
.phone { font-size: 18px; letter-spacing: .02em; }
.intro-map { text-align: right; }
.intro-map img { display: inline-block; }

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--teal);
}
.arrow-link img { flex: none; }

/* ---------- Cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 0 6px 24px;
}
.card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  color: #192129;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,.14); }
.card-media { display: block; line-height: 0; }
.card-media img { display: block; width: 100%; height: auto; }
.card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  padding: 16px 12px 18px;
  font-size: 12px;
}
.card h2 {
  font-size: 16px;
  font-weight: normal;
  color: var(--teal-soft);
  line-height: 1.25;
}
.card h2 a { color: inherit; }
.eyebrow a { color: inherit; }
.card .arrow-link { margin-top: auto; padding-top: 6px; font-size: 12px; }

/* ---------- Slider ---------- */
.slider { position: relative; padding: 0; background: var(--sheet); container-type: inline-size; }
.slider-stage {
  position: relative;
  aspect-ratio: var(--ratio, 1502 / 527);
  overflow: hidden;
  background: #f4f4f4;
}
.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .8s ease;
}
.slide.is-active { opacity: 1; z-index: 1; }
.slider-dots {
  position: absolute;
  right: 14px;
  bottom: 12px;
  z-index: 2;
  display: flex;
  gap: 7px;
}
.slider-dots button {
  width: 14px; height: 14px;
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: rgba(255,255,255,.75);
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.slider-dots button[aria-selected="true"] { background: #1a1a1a; }
.slider-dots button { position: relative; }
.slider-dots button::after { content: ""; position: absolute; inset: -7px -3px; } /* larger tap target */

/* Dots drawn exactly over the 4 squares baked into the old slider photos */
@supports (width: 1cqw) {
  .slider-dots { gap: .35cqw; right: 1.5cqw; bottom: 1.5cqw; }
  .slider-dots button { width: 2.3cqw; height: 2.3cqw; border-radius: 0; background: #e3e3e3; }
  .slider-dots button[aria-selected="true"] { background: #1c1b19; }
  .slider--baked .slider-dots { right: 12.2cqw; bottom: .45cqw; }
}
.slider-dots button:hover { transform: scale(1.15); }
.slider-dots button:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

/* ---------- Subpages: sidebar + content ---------- */
.layout {
  display: grid;
  grid-template-columns: 25% minmax(0, 1fr);
  align-items: stretch;
}
.col { min-width: 0; }
.sidebar {
  display: flex;
  flex-direction: column;
  padding: 4px 26px 20px 10px;
}
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { border-bottom: 1px dotted #6f8296; }
.sidebar a {
  display: block;
  padding: 9px 19px;
  color: var(--menu);
  font-size: 15px;
  line-height: 1.5;
  transition: color .15s, background .15s, padding-left .15s;
}
.sidebar a:hover { color: var(--menu-active); background: #f6f8fa; text-decoration: none; padding-left: 23px; }
.sidebar a.active { color: var(--menu-active); }
.side-map { margin-top: auto; padding: 24px 0 0 19px; line-height: 0; }
.side-map img { max-width: 100%; height: auto; }

/* ---------- Subpages ---------- */
.article { padding: 28px 24px 36px; }
.article > * { max-width: 760px; }
.article h1 {
  font-size: 18px;
  font-weight: normal;
  color: var(--teal);
  margin-bottom: 14px;
}
.article h2 {
  font-size: 15px;
  font-weight: bold;
  color: var(--teal-soft);
  margin: 26px 0 6px;
}
.article p { margin: 0 0 12px; color: #4c4c4c; }
.article .lead { color: var(--text); font-size: 15px; }
.article ul { margin: 0 0 14px; padding: 0; list-style: none; }
.article li {
  position: relative;
  padding-left: 18px;
  margin: 3px 0;
  color: #4c4c4c;
}
.article li::before {
  content: "";
  position: absolute;
  left: 2px; top: .62em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--teal-soft);
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 18px 0 8px;
}
.contact-card { background: var(--card); padding: 14px 18px; border-radius: var(--radius); }
.contact-card h2 { margin: 0 0 4px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.contact-card p { margin: 0; }
.contact-form { display: grid; gap: 14px; margin-top: 12px; }
.contact-form label { display: grid; gap: 4px; font-size: 13px; color: #4c4c4c; }
.contact-form input, .contact-form textarea {
  font: inherit;
  padding: 9px 10px;
  border: 1px solid #ccd6e0;
  border-radius: 4px;
  color: #364049;
  background: #fff;
}
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--teal-soft); outline-offset: 1px; }
.btn {
  justify-self: start;
  padding: 10px 22px;
  border: 0;
  border-radius: var(--radius);
  background: var(--teal);
  color: #fff;
  font: inherit;
  cursor: pointer;
  transition: background .15s;
}
.btn:hover { background: var(--teal-soft); }
.form-note { font-size: 12px; color: #7a8896 !important; margin: 0 !important; }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 20px;
  padding: 0 0 36px;
  color: var(--footer);
  text-align: center;
  font-size: 13px;
  line-height: 1.9;
}
.site-footer .wrap {
  background: transparent;
  border-top: 1px dotted var(--line);
  padding-top: 22px;
}
.site-footer a { color: #839bb4; }

/* ---------- Tablet ---------- */
@media (max-width: 900px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .intro { grid-template-columns: 1fr 1fr; }
  .intro-map { grid-column: 1 / -1; text-align: left; }
}

/* ---------- Mobile menu ---------- */
@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { order: 2; padding: 0 18px 24px; }
  .sidebar nav { display: none; }       /* the top hamburger menu has the same items */
  .side-map { margin-top: 0; padding: 0; text-align: left; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: var(--sheet);
    box-shadow: 0 10px 20px rgba(0,0,0,.08);
    border-top: 1px solid #eef0f3;
  }
  .nav.open { display: block; }
  .nav { align-items: stretch; gap: 0; }
  .search { width: auto; margin: 12px 16px 4px; }
  .search-results { position: static; width: auto; max-width: none; max-height: none; margin-top: 8px; box-shadow: none; }
  .menu-list { flex-direction: column; align-items: stretch; padding: 6px 0; }
  .menu-list li + li::before { display: none; }
  .menu-list a { padding: 14px 20px; border-radius: 0; }
}

/* ---------- Small phones ---------- */
@media (max-width: 560px) {
  .intro { grid-template-columns: 1fr; padding: 24px 18px 20px; gap: 22px; }
  .cards { grid-template-columns: 1fr; padding-bottom: 16px; }
  .card-body { font-size: 14px; }
  .card .arrow-link { font-size: 13px; }
}

@media (max-width: 560px) {
  .article { padding: 22px 18px 28px; }
  .slider-dots { right: 8px; bottom: 6px; gap: 5px; }
  .slider-dots button { width: 11px; height: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .menu-list a, .slide, .btn { transition: none; }
}
