/* =========================================================
   ANIMAL MED — design system
   Built around the clinic's own mark: hand-drawn cow / horse /
   dog / cat huddle, cobalt ink, and a stamped, form-board feel
   rather than a soft SaaS look.
   ========================================================= */
:root {
  --blue: #0b4a87;
  --blue-deep: #062f58;
  --blue-mid: #1663a8;
  --blue-pale: #e7eef6;
  --blue-line: #c7d6e8;
  --ink: #151a22;
  --ink-soft: #4c5768;
  --ink-faint: #8892a0;
  --paper: #fbfaf6;
  --paper-2: #f1ede3;
  --white: #ffffff;
  --alarm: #c1382b;
  --alarm-deep: #8e271d;
  --alarm-pale: #fbe7e4;
  --r-sm: 6px;
  --r-md: 10px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Work Sans", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
.display {
  font-family: "Archivo Black", sans-serif;
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: var(--blue-deep);
  margin: 0;
  text-transform: none;
}
h3 {
  text-transform: none;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.01em;
}

.eyebrow-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--blue-mid);
}
.mono {
  font-family: "JetBrains Mono", monospace;
}

a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}
button {
  font-family: inherit;
  cursor: pointer;
}
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (max-width: 640px) {
  .wrap {
    padding: 0 18px;
  }
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--alarm);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 999;
  background: var(--blue-deep);
  color: var(--white);
  padding: 12px 18px;
  border-radius: var(--r-sm);
  transition: top 0.2s var(--ease);
}
.skip-link:focus {
  top: 16px;
}

/* ---------- buttons: flat, stamped, hard offset shadow instead of soft glow ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 24px;
  border-radius: var(--r-sm);
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border: 2px solid transparent;
  transition:
    transform 0.15s var(--ease),
    box-shadow 0.15s var(--ease),
    background 0.15s var(--ease);
}
.btn svg {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
}
.btn-alarm {
  background: var(--alarm);
  color: var(--white);
  box-shadow: 4px 4px 0 var(--alarm-deep);
}
.btn-alarm:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--alarm-deep);
}
.btn-alarm:active {
  transform: translate(0, 0);
  box-shadow: 2px 2px 0 var(--alarm-deep);
}

.btn-blue {
  background: var(--blue);
  color: var(--white);
  box-shadow: 4px 4px 0 var(--blue-deep);
}
.btn-blue:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--blue-deep);
}
.btn-blue:active {
  transform: translate(0, 0);
  box-shadow: 2px 2px 0 var(--blue-deep);
}

.btn-outline {
  background: transparent;
  border-color: var(--blue);
  color: var(--blue);
}
.btn-outline:hover {
  background: var(--blue-pale);
}

.btn-outline-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--white);
}
.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-sm {
  padding: 10px 16px;
  font-size: 0.92rem;
  box-shadow: 3px 3px 0 var(--blue-deep);
}
.btn-sm.btn-alarm {
  box-shadow: 3px 3px 0 var(--alarm-deep);
}

/* ============ HEADER ============ */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--paper);
  border-bottom: 3px solid var(--blue-deep);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  gap: 20px;
  min-height: 84px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.site-header .brand {
  height: 100%;
}
.brand-mark {
  height: 64px;
  width: auto;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
  background: transparent;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand-text strong {
  font-family: "Archivo Black", sans-serif;
  font-size: 1.18rem;
  color: var(--blue-deep);
  text-transform: none;
  letter-spacing: 0.005em;
}
.brand-text span {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav a {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--ink-soft);
  position: relative;
  padding: 6px 0;
}
.main-nav a:hover {
  color: var(--blue);
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--alarm);
  transition: width 0.2s var(--ease);
}
.main-nav a:hover::after {
  width: 100%;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--blue);
  border-radius: var(--r-sm);
  padding: 7px;
  color: var(--blue);
}

@media (max-width: 920px) {
  .main-nav {
    display: none;
  }
  .header-cta .btn-outline {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .main-nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 3px solid var(--blue-deep);
    padding: 20px 24px;
    gap: 16px;
    box-shadow: 0 12px 24px -12px rgba(11, 74, 135, 0.25);
    z-index: 55;
  }
}


/* ============ EMERGENCY RIBBON ============ */
.ribbon {
  background: var(--blue-deep);
  color: var(--white);
}
.ribbon-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 10px 20px;
  flex-wrap: wrap;
  text-align: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.ribbon-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #5fd87a;
  flex-shrink: 0;
  animation: blink 1.4s infinite;
}
@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}
.ribbon a.ribbon-phone {
  color: #8fc1ee;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 700;
}
.ribbon a.ribbon-phone:hover {
  color: var(--white);
}

/* ============ ARC MOTIF (from the logo's sweep) ============ */
.brand-arc {
  position: absolute;
  pointer-events: none;
}

/* ============ HERO ============ */
.hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 0;
  background: var(--paper);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 20px;
  align-items: center;
  position: relative;
  z-index: 2;
}
@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .hero {
    padding: 40px 0 0;
  }
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}
.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1.5px solid var(--blue-line);
  background: var(--white);
  padding: 6px 12px;
  border-radius: 100px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--blue-deep);
  text-transform: uppercase;
}
.tag-chip.tag-alarm {
  border-color: var(--alarm);
  color: var(--alarm-deep);
  background: var(--alarm-pale);
}

.hero h1 {
  font-size: clamp(2rem, 4.1vw, 3.1rem);
  max-width: 15ch;
}
.hero-sub {
  margin-top: 20px;
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 48ch;
}
.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.stamp-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 40px;
}
.stamp {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 2px solid var(--blue-deep);
  border-radius: var(--r-sm);
  padding: 9px 14px;
  background: var(--white);
  transform: rotate(-1.1deg);
}
.stamp:nth-child(2) {
  transform: rotate(1deg);
}
.stamp:nth-child(3) {
  transform: rotate(-0.6deg);
}
.stamp svg {
  width: 20px;
  height: 20px;
  color: var(--blue);
  flex-shrink: 0;
}
.stamp-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.stamp-text strong {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--blue-deep);
  text-transform: uppercase;
}
.stamp-text span {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.66rem;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* hero visual: the actual brand illustration, large, on the arc */
.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 520px;
}
.hero-arc-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.hero-slideshow {
  position: relative;
  z-index: 2;
  width: min(92%, 460px);
  min-height: 500px;
}
.mark-plate {
  background: var(--white);
  border: 3px solid var(--blue-deep);
  border-radius: var(--r-md);
  box-shadow: 8px 8px 0 var(--blue-line);
  padding: 34px 30px 26px;
}
.hero-slideshow .mark-plate {
  position: absolute;
  inset: 0;
  width: 100%;
  opacity: 0;
  transform: translateY(8px) scale(0.99);
  transition:
    opacity 0.55s ease,
    transform 0.55s ease;
  pointer-events: none;
}
.hero-slideshow .mark-plate.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  z-index: 1;
}
.mark-plate img {
  width: 100%;
  height: auto;
  display: block;
}
.mark-plate img.is-photo {
  border-radius: 4px;
}
.hero-slide-dots {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-top: 18px;
}
.hero-slide-dots .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1.5px solid var(--blue);
  background: transparent;
  padding: 0;
  transition:
    background 0.2s,
    width 0.2s;
}
.hero-slide-dots .dot.active {
  background: var(--blue);
  width: 22px;
  border-radius: 100px;
}
@media (max-width: 560px) {
  .hero-slideshow {
    min-height: 460px;
  }
}
.mark-plate-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1.5px dashed var(--blue-line);
}
.mark-plate-foot .lbl {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.mark-plate-foot .val {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  color: var(--blue-deep);
  font-size: 0.98rem;
  text-transform: uppercase;
}

.rating-seal {
  position: absolute;
  z-index: 3;
  top: -14px;
  right: -10px;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: var(--blue-deep);
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: rotate(9deg);
  border: 2px dashed rgba(255, 255, 255, 0.5);
  font-family: "Barlow Condensed", sans-serif;
}
.rating-seal strong {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}
.rating-seal span {
  font-size: 0.56rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}
@media (max-width: 560px) {
  .rating-seal {
    top: -10px;
    right: 6px;
    width: 76px;
    height: 76px;
  }
  .rating-seal strong {
    font-size: 1.2rem;
  }
}

/* thin divider strip using the animal mark, repeated small — recurring brand motif */
.mark-divider {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 26px;
  padding: 20px 16px;
  background: var(--blue-pale);
  border-top: 1px solid var(--blue-line);
  border-bottom: 1px solid var(--blue-line);
}
.mark-divider img {
  height: 34px;
  width: auto;
  opacity: 0.55;
}
.mark-divider span.dtxt {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  color: var(--blue-mid);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
@media (max-width: 480px) {
  .mark-divider {
    gap: 10px 16px;
    padding: 16px 14px;
  }
  .mark-divider img {
    height: 24px;
  }
  .mark-divider span.dtxt {
    font-size: 0.64rem;
  }
}

/* ============ SECTION SHELL ============ */
section {
  padding: 84px 0;
}
@media (max-width: 720px) {
  section {
    padding: 56px 0;
  }
}
.section-head {
  max-width: 700px;
  margin-bottom: 44px;
}
.section-head .eyebrow-label {
  display: block;
  margin-bottom: 10px;
}
.section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2.15rem);
}
.section-head h2 span {
  color: var(--alarm);
}
.section-head p {
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: 1.02rem;
  max-width: 60ch;
}
.rule {
  height: 3px;
  background: var(--blue-deep);
  width: 64px;
  margin-top: 16px;
}

.alt-bg {
  background: var(--white);
  border-top: 1px solid var(--blue-line);
  border-bottom: 1px solid var(--blue-line);
}

/* ============ TRIAGE WIDGET (dispatch board look) ============ */
.triage {
  background: var(--blue-deep);
  color: var(--white);
  border-radius: var(--r-md);
  padding: 40px;
  position: relative;
  border: 3px solid var(--blue-deep);
}
@media (max-width: 640px) {
  .triage {
    padding: 26px 20px;
  }
}

.triage-head {
  max-width: 600px;
  margin-bottom: 30px;
}
.triage-head .eyebrow-label {
  color: #8fc1ee;
}
.triage-head h2 {
  color: var(--white);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
}
.triage-head p {
  color: rgba(255, 255, 255, 0.72);
  margin-top: 12px;
}

.triage-steps {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 26px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.74rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.4);
}
.triage-steps .step-num {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-radius: 4px;
  font-size: 0.72rem;
}
.triage-steps .step-line {
  width: 26px;
  height: 1.5px;
  background: rgba(255, 255, 255, 0.22);
}
.triage-steps .step.active {
  color: var(--white);
}
.triage-steps .step.active .step-num {
  background: var(--alarm);
  border-color: var(--alarm);
  color: var(--white);
}
.triage-steps .step.done .step-num {
  background: rgba(143, 193, 238, 0.25);
  border-color: #8fc1ee;
  color: #8fc1ee;
}

.triage-panel-step {
  display: none;
}
.triage-panel-step.active {
  display: block;
  animation: fade-up 0.3s var(--ease);
}
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
@media (max-width: 760px) {
  .option-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.option-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--r-sm);
  padding: 20px 12px;
  text-align: center;
  color: var(--white);
  transition: all 0.15s var(--ease);
}
.option-card svg {
  width: 28px;
  height: 28px;
  margin-bottom: 9px;
  color: #8fc1ee;
}
.option-card span {
  display: block;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.option-card:hover {
  border-color: #8fc1ee;
  background: rgba(255, 255, 255, 0.08);
}
.option-card.selected {
  background: var(--white);
  border-color: var(--white);
}
.option-card.selected svg {
  color: var(--blue-deep);
}
.option-card.selected span {
  color: var(--blue-deep);
}
.option-card.urgent-card:hover {
  border-color: var(--alarm);
  background: rgba(193, 56, 43, 0.18);
}
.option-card.urgent-card.selected {
  background: var(--alarm);
  border-color: var(--alarm);
}
.option-card.urgent-card.selected svg {
  color: var(--white);
}
.option-card.urgent-card.selected span {
  color: var(--white);
}

.triage-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "JetBrains Mono", monospace;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 16px;
  background: none;
  border: none;
  padding: 0;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.triage-back:hover {
  color: var(--white);
}
.triage-back svg {
  width: 15px;
  height: 15px;
}

.booking-form {
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--r-sm);
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 640px) {
  .booking-form {
    grid-template-columns: 1fr;
  }
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field.full {
  grid-column: 1/-1;
}
.field label {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.field input,
.field textarea {
  background: var(--white);
  border: 1.5px solid transparent;
  border-radius: var(--r-sm);
  padding: 11px 13px;
  font-family: "Work Sans", sans-serif;
  font-size: 0.92rem;
  color: var(--ink);
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
}
.field textarea {
  resize: vertical;
  min-height: 76px;
}
.booking-actions {
  grid-column: 1/-1;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.booking-summary {
  grid-column: 1/-1;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(0, 0, 0, 0.2);
  padding: 11px 14px;
  border-radius: var(--r-sm);
}
.booking-summary b {
  color: #8fc1ee;
}

/* ============ SERVICES — form-board list, not icon cards ============ */
.services-list {
  display: flex;
  flex-direction: column;
  border-top: 1.5px solid var(--blue-line);
}
.service-row {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1.5px solid var(--blue-line);
  transition: background 0.15s;
}
.service-row:hover {
  background: var(--blue-pale);
}
.service-num {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.85rem;
  color: var(--ink-faint);
}
.service-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--blue-deep);
  border-radius: var(--r-sm);
  color: var(--blue);
  flex-shrink: 0;
}
.service-icon svg {
  width: 22px;
  height: 22px;
}
.service-body h3 {
  margin-bottom: 4px;
}
.service-body p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
  max-width: 56ch;
}
.service-row.emphasis .service-icon {
  border-color: var(--alarm);
  color: var(--alarm);
  background: var(--alarm-pale);
}
.service-tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--blue-mid);
  border: 1.5px solid var(--blue-line);
  border-radius: 100px;
  padding: 5px 11px;
  white-space: nowrap;
}
.service-row.emphasis .service-tag {
  color: var(--alarm-deep);
  border-color: var(--alarm);
}
@media (max-width: 680px) {
  .service-row {
    grid-template-columns: 44px 1fr;
  }
  .service-tag {
    grid-column: 2;
    justify-self: start;
    margin-top: 6px;
  }
}

/* ============ WHY US — two column ledger ============ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--blue-line);
  border: 1.5px solid var(--blue-line);
}
@media (max-width: 760px) {
  .why-grid {
    grid-template-columns: 1fr;
  }
}
.why-cell {
  background: var(--white);
  padding: 28px 26px;
}
.why-cell .why-icon {
  width: 38px;
  height: 38px;
  color: var(--blue);
  margin-bottom: 14px;
}
.why-cell h3 {
  margin-bottom: 8px;
}
.why-cell p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

/* ============ DOCTOR / OWNER ============ */
.doctor-panel {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 44px;
  align-items: center;
  background: var(--blue-deep);
  border-radius: var(--r-md);
  padding: 44px;
  position: relative;
  overflow: hidden;
}
@media (max-width: 860px) {
  .doctor-panel {
    grid-template-columns: 1fr;
    padding: 30px 24px;
    gap: 30px;
  }
}
.doctor-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 100% 0%,
    rgba(143, 193, 238, 0.18),
    transparent 55%
  );
  pointer-events: none;
}
.doctor-photo-frame {
  position: relative;
  z-index: 1;
  background: var(--white);
  border: 3px solid var(--white);
  border-radius: var(--r-md);
  padding: 10px;
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.22);
  transform: rotate(-1.4deg);
}
.doctor-photo-frame img {
  border-radius: 6px;
  width: 100%;
  height: auto;
  display: block;
}
.doctor-photo-tag {
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%) rotate(2deg);
  background: var(--alarm);
  color: var(--white);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  white-space: nowrap;
  box-shadow: 3px 3px 0 var(--alarm-deep);
}
.doctor-copy {
  position: relative;
  z-index: 1;
  color: var(--white);
}
.doctor-copy .eyebrow-label {
  color: #8fc1ee;
  display: block;
  margin-bottom: 12px;
}
.doctor-copy h2 {
  color: var(--white);
  font-size: clamp(1.4rem, 2.6vw, 1.95rem);
  margin-bottom: 6px;
}
.doctor-name-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin: 14px 0 18px;
}
.doctor-name {
  font-family: "Archivo Black", sans-serif;
  text-transform: uppercase;
  font-size: 1.5rem;
  color: var(--white);
}
.doctor-role {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.8rem;
  color: #8fc1ee;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.doctor-copy p.bio {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1rem;
  max-width: 56ch;
  margin-bottom: 22px;
}
.doctor-creds {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}
.doctor-cred {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-radius: 100px;
  padding: 7px 13px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.doctor-cred svg {
  width: 15px;
  height: 15px;
  color: #8fc1ee;
}

/* ============ REVIEWS ============ */
.reviews-top {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  border: 2px solid var(--blue-deep);
  border-radius: var(--r-md);
  padding: 30px 34px;
  margin-bottom: 32px;
  background: var(--white);
  box-shadow: 6px 6px 0 var(--blue-line);
}
.rating-block {
  display: flex;
  align-items: center;
  gap: 16px;
}
.rating-big {
  font-family: "Archivo Black", sans-serif;
  font-size: 3rem;
  color: var(--blue-deep);
  line-height: 1;
}
.rating-big sub {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.1rem;
  color: var(--ink-faint);
  font-weight: 700;
}
.stars-inline {
  display: inline-flex;
  gap: 3px;
}
.stars-inline svg {
  width: 16px;
  height: 16px;
  color: var(--blue);
}
.rating-meta p {
  margin: 6px 0 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  max-width: 44ch;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: var(--blue-line);
  border: 1.5px solid var(--blue-line);
}
@media (max-width: 920px) {
  .reviews-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 640px) {
  .reviews-grid {
    grid-template-columns: 1fr;
  }
}
.review-card {
  background: var(--white);
  padding: 26px;
}
.review-card .stars-inline {
  margin-bottom: 14px;
}
.review-card p.quote {
  font-size: 0.95rem;
  color: var(--ink);
  margin: 0 0 18px;
}
.review-author {
  display: flex;
  align-items: center;
  gap: 11px;
}
.review-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--blue-deep);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Archivo Black", sans-serif;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.review-author strong {
  display: block;
  font-size: 0.87rem;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
}
.review-author span {
  font-size: 0.75rem;
  color: var(--ink-faint);
}

/* ============ SERVICE AREA STRIP ============ */
.area-strip {
  background: var(--blue-deep);
  color: var(--white);
  padding: 40px 0;
}
.area-strip .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: space-between;
}
.area-strip h3 {
  color: var(--white);
  font-family: "Archivo Black", sans-serif;
  text-transform: uppercase;
  font-size: 1.15rem;
  margin: 0;
}
.area-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.area-pill {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-radius: 100px;
  padding: 7px 14px;
  color: rgba(255, 255, 255, 0.9);
}
.area-pill.hl {
  background: var(--alarm);
  border-color: var(--alarm);
  color: var(--white);
  font-weight: 700;
}

/* ============ LOCATION ============ */
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: stretch;
}
@media (max-width: 900px) {
  .location-grid {
    grid-template-columns: 1fr;
  }
}

.location-info {
  background: var(--white);
  border: 2px solid var(--blue-deep);
  border-radius: var(--r-md);
  padding: 34px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  box-shadow: 6px 6px 0 var(--blue-line);
}
.info-row {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}
.info-icon {
  width: 42px;
  height: 42px;
  border: 2px solid var(--blue-deep);
  border-radius: var(--r-sm);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
}
.info-icon svg {
  width: 20px;
  height: 20px;
}
.info-row h4 {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  margin: 0 0 4px;
  color: var(--blue-deep);
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.info-row p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}
.info-row .mono {
  color: var(--blue-deep);
  font-weight: 700;
}
.hours-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue-pale);
  color: var(--blue-deep);
  padding: 6px 13px;
  border-radius: 100px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.74rem;
  font-weight: 700;
  margin-top: 8px;
}
.hours-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2e9e4e;
}
.location-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.map-embed {
  border-radius: var(--r-md);
  overflow: hidden;
  border: 2px solid var(--blue-deep);
  min-height: 340px;
  position: relative;
  box-shadow: 6px 6px 0 var(--blue-line);
}
.map-embed iframe {
  width: 100%;
  height: 100%;
  min-height: 340px;
  border: 0;
  display: block;
}

/* ============ FOOTER ============ */
footer {
  background: var(--blue-deep);
  color: rgba(255, 255, 255, 0.72);
  padding: 56px 0 100px;
  position: relative;
  overflow: hidden;
}
.footer-watermark {
  position: absolute;
  right: -40px;
  bottom: -30px;
  width: 280px;
  opacity: 0.06;
  pointer-events: none;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  position: relative;
  z-index: 1;
}
@media (max-width: 800px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 520px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
.footer-brand .brand {
  margin-bottom: 14px;
}
.footer-brand .brand-mark {
  color: #8fc1ee;
}
.footer-brand .brand-text strong {
  color: var(--white);
}
.footer-brand .brand-text span {
  color: rgba(255, 255, 255, 0.55);
}
.footer-brand p {
  font-size: 0.95rem;
  max-width: none;
  width: 100%;
  margin: 0 0 8px 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.6;
}
/* Improve readability and avoid line overlap */
.footer-brand p {
  line-height: 1.45;
}
.footer-col h5 {
  color: var(--white);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 16px;
  font-weight: 700;
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.footer-col a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
}
.footer-col a:hover {
  color: #8fc1ee;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 22px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.72);
  position: relative;
  z-index: 2;
  margin-top: 8px;
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 18px;
}
.footer-bottom a {
  color: rgba(255, 255, 255, 0.6);
}
.footer-bottom a:hover {
  color: var(--white);
}

/* Ensure footer bottom items don't overlap on narrow screens */
.footer-bottom span {
  min-width: 0;
  overflow-wrap: anywhere;
}

@media (max-width: 520px) {
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding-top: 12px;
  }
  .footer-brand p {
    max-width: 100%;
  }
}

/* ============ MOBILE STICKY TABBAR ============ */
.mobile-tabbar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 70;
  background: var(--white);
  border-top: 3px solid var(--blue-deep);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  gap: 10px;
}
@media (max-width: 720px) {
  .mobile-tabbar {
    display: flex;
  }
  body {
    padding-bottom: 80px;
  }
}
.tab-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 9px 4px;
  border-radius: var(--r-sm);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}
.tab-btn svg {
  width: 20px;
  height: 20px;
}
.tab-call {
  background: var(--alarm);
  color: var(--white);
}
.tab-directions {
  background: var(--blue-pale);
  color: var(--blue-deep);
  border: 1.5px solid var(--blue-line);
}

/* ============ EMERGENCY MODAL ============ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(6, 15, 28, 0.78);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.open {
  display: flex;
  animation: fade-in 0.2s var(--ease);
}
@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.modal-box {
  background: var(--white);
  border-radius: var(--r-md);
  max-width: 440px;
  width: 100%;
  padding: 36px 30px 30px;
  text-align: center;
  position: relative;
  border: 3px solid var(--alarm);
  box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.2);
  animation: pop-in 0.25s var(--ease);
}
@keyframes pop-in {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: var(--r-sm);
  background: var(--paper-2);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
}
.modal-close:hover {
  background: var(--blue-line);
}
.modal-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--alarm-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  position: relative;
}
.modal-icon::before {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 2px solid rgba(193, 56, 43, 0.35);
  animation: ring-pulse 1.5s infinite;
}
@keyframes ring-pulse {
  0% {
    transform: scale(0.9);
    opacity: 1;
  }
  100% {
    transform: scale(1.35);
    opacity: 0;
  }
}
.modal-icon svg {
  width: 30px;
  height: 30px;
  color: var(--alarm);
}
.modal-box h3 {
  font-family: "Archivo Black", sans-serif;
  text-transform: uppercase;
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--blue-deep);
}
.modal-box p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-bottom: 24px;
}
.modal-phone-btn {
  font-size: 1.1rem;
  padding: 16px 20px;
  width: 100%;
}
.modal-note {
  margin-top: 16px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  color: var(--ink-faint);
}

/* ============ HUMAN CLINIC REFRESH ============ */
:root {
  --blue: #176b70;
  --blue-deep: #123f47;
  --blue-mid: #2b8583;
  --blue-pale: #eaf4f1;
  --blue-line: #c9ded9;
  --ink: #243238;
  --ink-soft: #5c6a6e;
  --ink-faint: #8a9899;
  --paper: #f7f8f5;
  --paper-2: #edf1ed;
  --white: #ffffff;
  --alarm: #d05a3d;
  --alarm-deep: #9e3c2d;
  --alarm-pale: #f9e8e2;
  --r-sm: 4px;
  --r-md: 8px;
}

body {
  background: var(--paper);
  font-family: "Work Sans", sans-serif;
}
h1,
h2,
.display {
  font-family: "Work Sans", sans-serif;
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.08;
}
h3,
.btn,
.main-nav a,
.stamp-text strong,
.service-tag {
  font-family: "Work Sans", sans-serif;
}
.eyebrow-label,
.mono,
.ribbon-inner,
.brand-text span,
.field label {
  font-family: "Work Sans", sans-serif;
}
header.site-header {
  background: rgb(247, 248, 245);
  border-bottom: 1px solid var(--blue-line);
}
.nav-row {
  min-height: 76px;
  padding: 8px 0;
}
.brand {
  gap: 11px;
}
.brand-mark {
  height: 58px;
  width: 76px;
  object-fit: contain;
  image-rendering: auto;
}
.brand-text strong {
  font-family: "Work Sans", sans-serif;
  font-weight: 800;
}
.brand-text span {
  letter-spacing: 0;
  text-transform: none;
}
.main-nav {
  gap: 22px;
}
.main-nav a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.main-nav a::after {
  height: 2px;
  background: var(--alarm);
}
.btn {
  border-radius: 5px;
  text-transform: none;
  font-size: 0.95rem;
  letter-spacing: 0;
  box-shadow: none;
}
.btn-alarm,
.btn-blue {
  box-shadow: none;
}
.btn-alarm:hover,
.btn-blue:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(18, 63, 71, 0.18);
}
.ribbon {
  background: var(--blue);
}
.ribbon-inner {
  padding: 8px 20px;
  font-size: 0.78rem;
}
.hero {
  padding: 76px 0 0;
}
.hero-grid {
  gap: 64px;
}
.tag-chip {
  border-radius: 4px;
  background: transparent;
  padding: 5px 9px;
  text-transform: none;
  letter-spacing: 0;
}
.hero h1 {
  max-width: 17ch;
  font-size: clamp(2.3rem, 4.5vw, 4rem);
}
.hero-sub {
  max-width: 52ch;
  line-height: 1.7;
}
.stamp-row {
  gap: 12px;
  margin-top: 34px;
}
.stamp {
  border: 1px solid var(--blue-line);
  border-radius: 6px;
  padding: 10px 12px;
  background: var(--white);
  transform: none;
}
.stamp:nth-child(2),
.stamp:nth-child(3) {
  transform: none;
}
.hero-visual {
  min-height: 500px;
}
.hero-arc-svg {
  opacity: 0.35;
}
.mark-plate {
  border: 1px solid var(--blue-line);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(18, 63, 71, 0.12);
  padding: 24px 24px 20px;
}
.rating-seal {
  background: var(--alarm);
  border: none;
  transform: rotate(4deg);
}
.mark-divider {
  background: var(--blue);
  border: 0;
  padding: 15px 16px;
}
.mark-divider img {
  filter: brightness(0) invert(1);
  opacity: 0.7;
  height: 28px;
}
.mark-divider span.dtxt {
  color: rgba(255, 255, 255, 0.82);
}
section {
  padding: 74px 0;
}
.section-head {
  margin-bottom: 36px;
}
.section-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}
.triage {
  border: 0;
  border-radius: 8px;
  background: var(--blue-deep);
  padding: 36px;
  box-shadow: 0 18px 38px rgba(18, 63, 71, 0.14);
}
.option-card {
  border-radius: 5px;
}
.option-card:hover {
  background: rgba(255, 255, 255, 0.12);
}
.services-list {
  border-top: 1px solid var(--blue-line);
}
.service-row {
  border-bottom: 1px solid var(--blue-line);
  padding: 21px 0;
}
.service-row:hover {
  background: transparent;
}
.service-icon {
  border-radius: 50%;
  width: 42px;
  height: 42px;
}
.modal-box {
  border: 0;
  border-top: 5px solid var(--alarm);
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
}
@media (max-width: 920px) {
  .hero-grid {
    gap: 22px;
  }
  .main-nav {
    background: var(--paper) !important;
    border-bottom: 1px solid var(--blue-line) !important;
  }
}
@media (max-width: 640px) {
  .hero {
    padding-top: 48px;
  }
  .hero h1 {
    font-size: 2.35rem;
  }
  .hero-visual {
    min-height: 450px;
  }
  .triage {
    padding: 24px 18px;
  }
}