@import url("https://fonts.googleapis.com/css2?family=Instrument+Sans:ital,wght@0,400..700;1,400..700&display=swap");

:root {
  color-scheme: light;
  --color-red: #8a1e04;
  --color-blue: #5c87a1;
  --color-blue-dark: #345468;
  --color-body: #f5f7f9;
  --color-paper: #ffffff;
  --color-ink: #1b1f24;
  --color-muted: #5e6770;
  --color-border: #d8dce0;
  --radius-card: 20px;
  --radius-pill: 999px;
  --container: 1280px;
  --space-page: 36px;
  --font-main: "Instrument Sans", "Segoe UI", sans-serif;
  --font-scale: 0.88;
}

* {
  box-sizing: border-box;
}

/* The hidden attribute only carries `display: none` from the UA sheet, so any
   component with its own display rule (.contact-form and .intake-form are both
   `display: grid`) silently stays on screen when scripts set `hidden`. */
[hidden] {
  display: none !important;
}

/* Scripts toggle this to show and hide fields. It carries !important for the
   same reason [hidden] does: the elements wearing it have their own display
   rule from a page stylesheet, which loads later and would otherwise win. */
.is-hidden {
  display: none !important;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  font-size: calc(16px * var(--font-scale, 1));
  color: var(--color-ink);
  background: var(--color-body);
  line-height: 1.35;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

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

.site {
  min-height: 100vh;
  background: var(--color-paper);
}

.shell {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-page);
}

.super-header {
  background: var(--color-red);
  border-bottom: 4px solid #fff;
  color: #fff;
}

.super-header__inner {
  min-height: 48px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 32px;
  font-size: calc(16px * var(--font-scale, 1));
}

.super-header__item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
}

.super-header__phone-picker {
  gap: 10px;
}

.super-header__phone-dial {
  display: inline-flex;
  align-items: center;
}

.super-header__phone-dial.is-disabled {
  opacity: 0.55;
}

.super-header__phone-dial:hover {
  opacity: 0.85;
}

.super-header__office-select {
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: var(--radius-pill);
  background-color: rgba(255, 255, 255, 0.08);
  color: #fff;
  padding: 6px 28px 6px 12px;
  max-width: 280px;
  font: inherit;
  line-height: 1.25;
  cursor: pointer;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #fff 50%),
    linear-gradient(135deg, #fff 50%, transparent 50%);
  background-position:
    calc(100% - 15px) calc(50% - 2px),
    calc(100% - 9px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.super-header__office-select:hover {
  background-color: rgba(255, 255, 255, 0.16);
}

.super-header__office-select:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 1px;
}

.super-header__office-select option {
  color: var(--color-ink);
}

.super-header__action {
  color: inherit;
}

.super-header__action:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.super-header__icon {
  width: 24px;
  height: 24px;
  display: inline-block;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.super-header__icon.phone {
  background-image: url("/assets/icons/icon-phone.png");
}

.super-header__icon.pay {
  background-image: url("/assets/icons/icon-pay.png");
}

.super-header__icon.portal {
  border: 2px solid currentColor;
  border-radius: 50%;
  position: relative;
}

.super-header__icon.portal::before,
.super-header__icon.portal::after {
  content: "";
  position: absolute;
  background: currentColor;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.super-header__icon.portal::before {
  width: 12px;
  height: 3px;
}

.super-header__icon.portal::after {
  width: 3px;
  height: 12px;
}

.super-header__icon.calendar {
  background-image: url("/assets/icons/icon-appointment.png");
}

.main-header {
  background: var(--color-blue);
  border-bottom: 4px solid var(--color-red);
  color: #fff;
}

.main-header__inner {
  min-height: 108px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo img {
  height: 96px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: calc(20px * var(--font-scale, 1));
}

.main-nav a {
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.18s ease;
}

.main-nav a:hover,
.main-nav a.active {
  border-bottom-color: #fff;
}

@media (max-width: 1280px) {
  .main-header__inner {
    min-height: auto;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px 22px;
    padding-top: 10px;
    padding-bottom: 12px;
  }

  .logo img {
    height: 82px;
  }

  .main-nav {
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 18px;
    font-size: calc(18px * var(--font-scale, 1));
  }
}

@media (max-width: 1120px) {
  .super-header__inner {
    min-height: auto;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px 20px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .super-header__phone-picker {
    order: -1;
  }
}

.body {
  background: var(--color-paper);
  border-bottom: 4px solid var(--color-red);
  min-height: 420px;
}

.page-content {
  padding: 36px 0 60px;
}

.page-title {
  margin: 0 0 12px;
  font-size: calc(48px * var(--font-scale, 1));
  line-height: 1.1;
  color: var(--color-red);
  font-weight: 700;
}

.page-intro {
  margin: 0;
  font-size: calc(20px * var(--font-scale, 1));
  color: var(--color-ink);
}

.section-title {
  margin: 0 0 10px;
  font-size: calc(48px * var(--font-scale, 1));
  color: var(--color-red);
  line-height: 1.1;
}

.section-subtitle {
  margin: 0 0 16px;
  font-size: calc(32px * var(--font-scale, 1));
  color: var(--color-blue);
  line-height: 1.2;
}

.card {
  border-radius: var(--radius-card);
  border: 4px solid var(--color-red);
  background: #fff;
}

.card.alt {
  border-color: var(--color-blue);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 10px;
  border: 0;
  font: inherit;
  cursor: pointer;
}

.btn-primary {
  background: var(--color-red);
  color: #fff;
  padding: 0 28px;
}

.muted {
  color: var(--color-muted);
}

.main-footer {
  background: var(--color-blue);
  border-top: 4px solid var(--color-red);
  color: #fff;
}

.main-footer__inner {
  min-height: 108px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: calc(10px * var(--font-scale, 1));
}

.footer-link {
  font-size: calc(16px * var(--font-scale, 1));
}

.footer-badge {
  width: 100px;
  height: 95px;
  border: 4px solid var(--color-red);
  border-radius: 30px;
  overflow: hidden;
  background: #fff;
}

.footer-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
