:root {
  --bg: #fbf7f1;
  --bg-soft: #f1e8dc;
  --text: #1e2b26;
  --muted: #66736d;
  --brand: #1f6f63;
  --brand-dark: #164f47;
  --card: #ffffff;
  --border: rgba(30, 43, 38, 0.12);
  --shadow: 0 20px 50px rgba(30, 43, 38, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

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

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand-logo {
  width: 170px;
  max-height: 62px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.93rem;
  color: rgba(30, 43, 38, 0.82);
}

.site-nav a {
  transition: color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.site-nav a:hover {
  color: var(--brand-dark);
}

.nav-cta {
  background: var(--brand);
  color: white;
  padding: 9px 15px;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(31, 111, 99, 0.18);
}

.nav-cta:hover {
  color: white;
  background: var(--brand-dark);
  transform: translateY(-1px);
}

.menu-button {
  display: none;
  border: 0;
  background: transparent;
  font-size: 1.8rem;
}

.hero {
  padding: 62px 0 76px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.86fr);
  align-items: center;
  gap: 56px;
}

.eyebrow {
  color: var(--brand);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

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

h1 {
  font-size: clamp(2.45rem, 5.2vw, 4.45rem);
  line-height: 1;
  letter-spacing: -0.055em;
  margin-bottom: calc(22px + env(safe-area-inset-bottom));
  max-width: 820px;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.hero-text {
  font-size: clamp(1.05rem, 1.4vw, 1.18rem);
  color: var(--muted);
  max-width: 620px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 30px 0 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.button.primary {
  background: var(--brand);
  color: white;
  box-shadow: 0 14px 30px rgba(31, 111, 99, 0.2);
}

.button.primary:hover {
  background: var(--brand-dark);
}

.button.secondary {
  border-color: var(--border);
  background: white;
}

.button:hover {
  transform: translateY(-1px);
}

.button.large {
  min-height: 56px;
  padding-inline: 28px;
}

.microcopy {
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-media {
  position: relative;
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: 18px -14px -18px 18px;
  border-radius: 34px;
  background: rgba(31, 111, 99, 0.10);
  z-index: -1;
}

.hero-media img,
.rounded-image {
  border-radius: 32px;
  box-shadow: var(--shadow);
}

.hero-media img {
  aspect-ratio: 4 / 5;
  width: 100%;
  object-fit: cover;
}

.section {
  padding: 86px 0;
}

.section.soft {
  background: var(--bg-soft);
}

.doctor-section {
  border-block: 1px solid var(--border);
}

.doctor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
  gap: 42px;
  align-items: center;
}

.doctor-copy p {
  color: var(--muted);
  max-width: 720px;
}

.doctor-copy p:last-child {
  margin-bottom: 0;
}

.training-card {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 28px;
  box-shadow: 0 16px 38px rgba(30, 43, 38, 0.07);
}

.training-label {
  margin-bottom: 18px;
  color: var(--brand-dark);
  font-weight: 800;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(31, 111, 99, 0.10);
  border: 1px solid rgba(31, 111, 99, 0.18);
  color: var(--brand-dark);
  font-size: 0.9rem;
  font-weight: 750;
}

.secondary-badge {
  background: rgba(30, 43, 38, 0.06);
  border-color: var(--border);
  color: var(--muted);
}

.training-note {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.section-heading {
  max-width: 780px;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.05rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 32px;
}

.service-cards {
  grid-template-columns: repeat(5, 1fr);
}

.coverage-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) 1fr;
  gap: 28px;
  align-items: start;
  margin-top: 22px;
  padding: 26px;
  background: rgba(31, 111, 99, 0.08);
  border: 1px solid rgba(31, 111, 99, 0.16);
  border-radius: 28px;
}

.coverage-card h3 {
  margin-bottom: 0;
}

.coverage-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.coverage-label {
  margin-bottom: 8px;
  color: var(--brand-dark);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.process-note {
  margin-top: 22px;
  color: var(--muted);
  font-size: 0.95rem;
}


.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 28px;
  box-shadow: 0 10px 30px rgba(30, 43, 38, 0.06);
}

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

.two-columns {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 42px;
  align-items: center;
}

.steps {
  padding-left: 1.2rem;
  font-size: 1.08rem;
  color: var(--muted);
}

.steps li + li {
  margin-top: 12px;
}

.narrow {
  max-width: 780px;
}

.center {
  text-align: center;
}

.faq {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.faq-question {
  width: 100%;
  border: 1px solid var(--border);
  background: white;
  border-radius: 20px;
  padding: 20px;
  text-align: left;
  font: inherit;
  font-weight: 750;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.faq-question:hover,
.faq-question.faq-item-open {
  border-color: rgba(31, 111, 99, 0.28);
  box-shadow: 0 10px 24px rgba(30, 43, 38, 0.06);
}

.faq-question span {
  color: var(--brand);
  font-weight: 900;
}

.faq-answer {
  display: none;
  background: white;
  border: 1px solid var(--border);
  border-top: 0;
  border-radius: 0 0 20px 20px;
  margin-top: -16px;
  padding: 18px 20px 20px;
  color: var(--muted);
}

.faq-answer p {
  margin-bottom: 0;
}

.faq-item-open + .faq-answer {
  display: block;
}

.contact {
  background: #ffffff;
}

.contact p:not(.eyebrow):not(.microcopy) {
  color: var(--muted);
}

.contact-details {
  margin: 28px auto 18px;
  display: grid;
  gap: 8px;
}

.contact-details p {
  margin: 0;
}

.contact-details strong {
  color: var(--text);
}

.contact-details a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.contact-details a:hover {
  text-decoration: underline;
}



.legal-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
}

.legal-header-inner {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.legal-brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.legal-brand img {
  display: block;
  width: auto;
  height: 64px;
  max-width: 180px;
  object-fit: contain;
}

.legal-header .button {
  flex: 0 0 auto;
  white-space: nowrap;
}

.legal-page {
  background: #ffffff;
}

.legal-page .container {
  max-width: 860px;
}

.legal-page h1 {
  margin-bottom: 1rem;
}

.legal-page h2 {
  margin-top: 2.5rem;
  margin-bottom: 0.8rem;
  color: var(--text);
  font-size: 1.35rem;
}

.legal-page p,
.legal-page li {
  color: var(--muted);
  line-height: 1.8;
}

.legal-page ul {
  padding-left: 1.4rem;
  margin: 1rem 0;
}

.legal-page a {
  color: var(--primary);
}

.legal-page .button {
  margin-top: 2.5rem;
}

.site-footer {
  background: #14231f;
  color: white;
  padding: 52px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 0.7fr;
  gap: 42px;
  align-items: start;
}

.footer-brand img {
  width: 150px;
  max-height: 86px;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 18px;
}

.footer-brand p,
.footer-block p,
.footer-bottom p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.footer-title {
  margin-bottom: 14px;
  color: white;
  font-size: 0.95rem;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.76);
  transition: color 160ms ease;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 42px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.88rem;
}

.footer-tech-note {
  flex: 1 1 320px;
  max-width: 460px;
  text-align: center;
  opacity: 0.9;
}

@media (max-width: 1100px) {
  .service-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 820px) {
  .container {
    width: min(100% - 32px, 1120px);
  }

  .header-inner {
    min-height: 58px;
  }

  .brand-logo {
    width: 145px;
    max-height: 54px;
  }

  .menu-button {
    display: block;
    color: var(--text);
  }

  .site-nav {
    position: absolute;
    top: 64px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 18px;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 10px 12px;
  }

  .nav-cta {
    text-align: center;
    padding: 12px 16px;
  }

  .hero-grid,
  .doctor-grid,
  .two-columns,
  .cards,
  .service-cards,
  .coverage-card {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 34px 0 58px;
  }

  .hero-grid {
    gap: 34px;
  }

  .hero-copy {
    max-width: 680px;
  }

  h1 {
    font-size: clamp(2.35rem, 12vw, 3.6rem);
    letter-spacing: -0.05em;
  }

  .hero-actions {
    margin-top: 26px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-media::before {
    inset: 14px -8px -14px 12px;
    border-radius: 28px;
  }

  .hero-media img {
    max-height: 520px;
    border-radius: 28px;
  }

  .section {
    padding: 64px 0;
  }

  .doctor-grid {
    gap: 28px;
  }

  .training-card {
    padding: 24px;
    border-radius: 26px;
  }

  .badge {
    font-size: 0.86rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-brand img {
    width: 136px;
    max-height: 74px;
  }

  .footer-title {
    font-size: 0.9rem;
  }

  .footer-links {
    gap: 8px;
  }

  .footer-bottom {
    display: block;
  }

  .footer-bottom p + p {
    margin-top: 10px;
  }

  .footer-tech-note {
    flex: initial;
    max-width: none;
    text-align: left;
  }
}

@media (max-width: 480px) {
  .header-inner {
    min-height: 56px;
  }

  .brand-logo {
    width: 136px;
    max-height: 50px;
  }

  .hero {
    padding-top: 28px;
  }

  .eyebrow {
    font-size: 0.72rem;
  }

  h1 {
    font-size: clamp(2.15rem, 13vw, 3rem);
  }

  .hero-text {
    font-size: 1.02rem;
  }

  .microcopy {
    font-size: 0.88rem;
  }
}

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: calc(22px + env(safe-area-inset-bottom));
  z-index: 999;
  width: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  border: 1px solid rgba(31, 111, 99, 0.22);
  border-radius: 999px;
  background: var(--brand);
  color: white;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 16px 34px rgba(30, 43, 38, 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 160ms ease, visibility 160ms ease, transform 160ms ease, background-color 160ms ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--brand-dark);
}

@media (max-width: 480px) {
  .back-to-top {
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom));
    width: 44px;
    height: 44px;
  }
}

/* Navbar polish: white background to blend with logo image */
.site-header,
.header,
.navbar {
  background: #ffffff;
}

/* Final navbar surface alignment */
.site-header {
  background: var(--bg);
}

.header-inner {
  background: var(--bg);
}

/* Final header beige surface */
.site-header,
.site-header .header-inner {
  background-color: #fbf7f1 !important;
}

.site-header {
  backdrop-filter: none !important;
}

@media (max-width: 640px) {
  .legal-header-inner {
    min-height: auto;
    padding-block: 14px;
    gap: 12px;
  }

  .legal-brand img {
    height: 52px;
    max-width: 140px;
  }

  .legal-header .button {
    min-height: 44px;
    padding-inline: 16px;
    font-size: 0.92rem;
  }
}
