:root {
  --ink: #102033;
  --muted: #607184;
  --navy: #12314f;
  --navy-dark: #0d2238;
  --blue: #2563eb;
  --sky: #eaf4ff;
  --teal: #0f9f8f;
  --teal-soft: #e8f8f5;
  --coral: #f9735b;
  --amber: #f5b642;
  --white: #ffffff;
  --surface: #f7f9fc;
  --line: #dce6ef;
  --shadow: 0 18px 42px rgba(16, 32, 51, 0.12);
  --max-width: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  color: var(--ink);
  background: var(--white);
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.section__container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4.5rem 1rem;
}

.section__eyebrow {
  margin-bottom: 0.7rem;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section__header {
  margin-bottom: 0.8rem;
  color: var(--navy);
  font-size: 2.25rem;
  line-height: 1.15;
}

.section__lead {
  max-width: 700px;
  color: var(--muted);
  font-size: 1.05rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0.75rem 1.2rem;
  color: var(--white);
  background: var(--coral);
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease,
    transform 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  color: var(--white);
  background: #e35d44;
  transform: translateY(-1px);
}

.btn--secondary {
  color: var(--white);
  background: var(--blue);
}

.btn--secondary:hover,
.btn--secondary:focus-visible {
  background: #1d4ed8;
}

.btn--ghost {
  border-color: rgba(18, 49, 79, 0.18);
  color: var(--navy);
  background: var(--white);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--sky);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(220, 230, 239, 0.9);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 28px rgba(16, 32, 51, 0.06);
  backdrop-filter: blur(14px);
}

.nav__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 0.85rem 1rem;
}

.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--navy);
  font-size: 1.25rem;
  font-weight: 900;
}

.nav__logo img {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(15, 159, 143, 0.18);
}

.nav__logo span span {
  color: var(--teal);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  list-style: none;
}

.nav__links a {
  display: inline-flex;
  border-radius: 6px;
  padding: 0.65rem 0.75rem;
  color: #2d4357;
  font-size: 0.95rem;
  font-weight: 800;
}

.nav__links a:hover,
.nav__links a:focus-visible,
.nav__links a[aria-current="page"] {
  color: var(--blue);
  background: var(--sky);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.portal-button {
  color: var(--white);
  background: var(--navy);
}

.portal-button:hover,
.portal-button:focus-visible {
  background: var(--blue);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: var(--navy);
  content: "";
}

.hero {
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(13, 34, 56, 0.95), rgba(18, 49, 79, 0.72)),
    url("us.jpg") center / cover no-repeat;
}

.hero__container {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.85fr);
  align-items: center;
  gap: 3rem;
  min-height: calc(100vh - 78px);
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}

.hero .section__eyebrow,
.page-hero .section__eyebrow {
  color: var(--amber);
}

.hero h1,
.page-hero h1 {
  max-width: 780px;
  color: var(--white);
  font-size: 4rem;
  line-height: 1.02;
}

.hero__content p {
  max-width: 650px;
  margin-top: 1.1rem;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.15rem;
}

.hero__actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.7rem;
}

.hero__proof {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 2rem;
}

.hero__proof div {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 0.9rem;
  background: rgba(255, 255, 255, 0.1);
}

.hero__proof strong {
  display: block;
  color: var(--white);
  font-size: 1.35rem;
}

.hero__proof span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.85rem;
}

.form-panel {
  border: 1px solid rgba(220, 230, 239, 0.92);
  border-radius: 8px;
  padding: 1.35rem;
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.form-panel h2,
.form-panel h3,
.form-panel h4 {
  margin-bottom: 0.35rem;
  color: var(--navy);
  font-size: 1.45rem;
}

.form-panel > p {
  margin-bottom: 1rem;
  color: var(--muted);
}

.appointment-form {
  display: grid;
  gap: 0.9rem;
}

.appointment-form label,
.portal-form label {
  display: grid;
  gap: 0.35rem;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
}

.appointment-form input,
.appointment-form textarea,
.portal-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.85rem 0.95rem;
  color: var(--ink);
  background: #fbfdff;
}

.appointment-form textarea {
  min-height: 96px;
  resize: vertical;
}

.appointment-form input:focus-visible,
.appointment-form textarea:focus-visible,
.portal-form input:focus-visible,
.portal-tabs button:focus-visible,
.nav-toggle:focus-visible,
.btn:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.22);
  outline-offset: 2px;
}

.appointment__hint {
  color: var(--muted);
  font-size: 0.84rem;
}

.appointment__confirmation {
  display: grid;
  gap: 0.25rem;
  border-left: 4px solid var(--teal);
  border-radius: 6px;
  padding: 0.8rem 0.9rem;
  background: var(--teal-soft);
}

.appointment__confirmation[hidden] {
  display: none;
}

.appointment__confirmation strong {
  color: var(--navy);
}

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

.image-strip {
  background: var(--surface);
}

.image-strip__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
}

.image-strip__grid img {
  height: 240px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: 3rem;
}

.split-grid img {
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.feature-grid,
.service__grid,
.doctors__grid,
.values-grid,
.contact-grid,
.portal-benefit-grid {
  display: grid;
  gap: 1rem;
}

.feature-grid {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 2rem;
}

.feature-card,
.service__card,
.doctors__card,
.value-card,
.contact-card,
.portal-benefit-card,
.faq-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 30px rgba(16, 32, 51, 0.07);
}

.feature-card,
.value-card,
.contact-card,
.portal-benefit-card,
.faq-item {
  padding: 1.25rem;
}

.feature-card strong,
.service__card h3,
.service__card h4,
.value-card h3,
.contact-card h3,
.portal-benefit-card h3,
.faq-item h3 {
  color: var(--navy);
}

.feature-card p,
.service__card p,
.value-card p,
.contact-card p,
.portal-benefit-card p,
.faq-item p {
  margin-top: 0.45rem;
  color: var(--muted);
}

.accent-line {
  width: 44px;
  height: 4px;
  margin-bottom: 0.85rem;
  border-radius: 999px;
  background: var(--coral);
}

.accent-line--blue {
  background: var(--blue);
}

.accent-line--teal {
  background: var(--teal);
}

.page-hero {
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(13, 34, 56, 0.95), rgba(18, 49, 79, 0.64)),
    url("assets/services-hero.webp") center / cover no-repeat;
}

.page-hero--about {
  background:
    linear-gradient(90deg, rgba(13, 34, 56, 0.95), rgba(18, 49, 79, 0.62)),
    url("assets/about-reception-hero.webp") center / cover no-repeat;
}

.page-hero--doctors {
  background:
    linear-gradient(90deg, rgba(13, 34, 56, 0.95), rgba(18, 49, 79, 0.62)),
    url("assets/doctors-hero.webp") center / cover no-repeat;
}

.page-hero--contact {
  background:
    linear-gradient(90deg, rgba(13, 34, 56, 0.95), rgba(18, 49, 79, 0.62)),
    url("assets/contact-support.webp") center / cover no-repeat;
}

.page-hero--portal {
  background: linear-gradient(135deg, rgba(13, 34, 56, 0.98), rgba(37, 99, 235, 0.66));
}

.page-hero__content {
  max-width: 760px;
}

.page-hero p {
  max-width: 690px;
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.08rem;
}

.service__grid {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 2.3rem;
}

.service__card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  padding: 1.35rem;
}

.service__card h3,
.service__card h4 {
  font-size: 1.1rem;
}

.service__card a,
.inline-link {
  display: inline-flex;
  align-items: center;
  margin-top: auto;
  padding-top: 1rem;
  color: var(--blue);
  font-weight: 900;
}

.service__card a:hover,
.inline-link:hover {
  color: var(--coral);
}

.service-label {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 1rem;
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  color: var(--navy);
  background: var(--sky);
  font-size: 0.76rem;
  font-weight: 900;
}

.service__card:nth-child(2n) .service-label {
  background: var(--teal-soft);
}

.service__card:nth-child(3n) .service-label {
  background: #fff3df;
}

.highlight-band {
  color: var(--white);
  background: var(--navy);
}

.highlight-band .section__header,
.highlight-band h2,
.highlight-band h3 {
  color: var(--white);
}

.highlight-band p,
.highlight-band li {
  color: rgba(255, 255, 255, 0.78);
}

.highlight-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.highlight-list {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.5rem;
  list-style: none;
}

.highlight-list li {
  border-left: 4px solid var(--amber);
  padding-left: 0.9rem;
}

.portal-preview {
  background: var(--surface);
}

.portal-preview__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  align-items: center;
  gap: 2.5rem;
}

.portal__panel {
  display: grid;
  gap: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.1rem;
  background: linear-gradient(135deg, #ffffff, #f3f8ff);
  box-shadow: var(--shadow);
}

.portal__panel__top,
.portal-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.9rem;
  background: var(--white);
}

.portal__panel__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.portal__panel__top span,
.portal-row span {
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.portal-row {
  display: grid;
  gap: 0.25rem;
}

.portal-row strong {
  color: var(--navy);
}

.portal-row small {
  color: var(--muted);
}

.portal-row--accent {
  border-color: rgba(249, 115, 91, 0.25);
  background: #fff4f1;
}

.doctors__grid {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 2rem;
}

.doctors__card {
  overflow: hidden;
  text-align: left;
}

.doctors__card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.doctor-card__body {
  display: grid;
  gap: 0.55rem;
  padding: 1rem;
}

.doctor-role {
  color: var(--blue);
  font-weight: 900;
}

.doctor-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.4rem;
}

.doctor-tags span {
  border-radius: 999px;
  padding: 0.35rem 0.6rem;
  color: var(--navy);
  background: var(--sky);
  font-size: 0.76rem;
  font-weight: 800;
}

.values-grid {
  grid-template-columns: repeat(4, 1fr);
  margin-top: 2rem;
}

.contact-grid {
  grid-template-columns: minmax(0, 0.8fr) minmax(360px, 1.2fr);
  align-items: start;
}

.contact-list {
  display: grid;
  gap: 0.9rem;
  margin-top: 1rem;
}

.contact-card {
  display: grid;
  gap: 0.2rem;
}

.contact-card span {
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.map-panel {
  min-height: 280px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.25rem;
  background:
    linear-gradient(135deg, rgba(234, 244, 255, 0.92), rgba(232, 248, 245, 0.92)),
    repeating-linear-gradient(
      45deg,
      rgba(18, 49, 79, 0.08) 0,
      rgba(18, 49, 79, 0.08) 1px,
      transparent 1px,
      transparent 18px
    );
}

.map-pin {
  width: fit-content;
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
  color: var(--white);
  background: var(--coral);
  font-weight: 900;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.portal-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  align-items: start;
  gap: 2rem;
}

.portal-hero {
  color: var(--white);
  background: linear-gradient(135deg, var(--navy-dark), var(--navy) 56%, #1e4f92);
}

.portal-hero .portal-page-grid {
  align-items: center;
  min-height: calc(100vh - 78px);
}

.portal-hero h1 {
  max-width: 760px;
  color: var(--white);
  font-size: 3.6rem;
  line-height: 1.05;
}

.portal-hero .section__lead {
  color: rgba(255, 255, 255, 0.82);
}

.portal-hero .feature-card {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.portal-hero .feature-card strong {
  color: var(--white);
}

.portal-hero .feature-card p {
  color: rgba(255, 255, 255, 0.74);
}

.portal-auth-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.2rem;
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.portal-auth-card h2 {
  color: var(--navy);
}

.portal-status {
  margin-top: 1rem;
  border-left: 4px solid var(--blue);
  border-radius: 6px;
  padding: 0.85rem 0.95rem;
  color: var(--navy);
  background: var(--sky);
  font-weight: 900;
}

.portal-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin: 1.1rem 0;
}

.portal-tabs button {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.75rem;
  color: var(--navy);
  background: var(--white);
  font-weight: 900;
  cursor: pointer;
}

.portal-tabs button.is-active {
  color: var(--white);
  background: var(--blue);
}

.portal-form {
  display: grid;
  gap: 0.95rem;
}

.portal-form[hidden],
.portal-dashboard[hidden] {
  display: none;
}

.verify-form p {
  border: 1px dashed rgba(37, 99, 235, 0.35);
  border-radius: 6px;
  padding: 0.8rem;
  color: var(--navy);
  background: var(--sky);
  font-weight: 900;
}

.portal-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.portal-dashboard {
  display: grid;
  gap: 0.9rem;
}

.portal-dashboard__header {
  border-radius: 8px;
  padding: 1rem;
  color: var(--white);
  background: var(--navy);
}

.portal-dashboard__header span {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.85rem;
}

.portal-dashboard__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.portal-dashboard__item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.85rem;
  background: var(--surface);
}

.portal-dashboard__item span {
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.portal-dashboard__item strong {
  display: block;
  margin-top: 0.3rem;
  color: var(--navy);
}

.portal-dashboard__item p {
  margin-top: 0.25rem;
  color: var(--muted);
}

.portal-benefit-grid {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 2rem;
}

.footer {
  color: rgba(255, 255, 255, 0.78);
  background: var(--navy-dark);
}

.footer__container {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 2rem;
}

.footer h3,
.footer h4 {
  margin-bottom: 0.85rem;
  color: var(--white);
}

.footer h3 span {
  color: var(--teal);
}

.footer p,
.footer li {
  margin-bottom: 0.7rem;
}

.footer ul {
  list-style: none;
}

.footer a:hover,
.footer a:focus-visible {
  color: var(--amber);
}

.footer__bar {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__bar__content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.85rem 1rem;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.84rem;
}

@media (width < 980px) {
  .hero__container,
  .split-grid,
  .highlight-grid,
  .portal-preview__grid,
  .portal-page-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero__container {
    min-height: auto;
  }

  .feature-grid,
  .service__grid,
  .doctors__grid,
  .values-grid,
  .portal-benefit-grid,
  .faq-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (width < 820px) {
  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: calc(100% + 0.5rem);
    display: none;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 1rem;
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .nav-menu.is-open {
    display: grid;
    gap: 1rem;
  }

  .nav__links {
    display: grid;
    gap: 0.25rem;
  }

  .nav__actions {
    flex-wrap: wrap;
  }

  .hero h1,
  .page-hero h1,
  .portal-hero h1 {
    font-size: 2.65rem;
  }

  .hero__proof {
    grid-template-columns: 1fr;
  }

  .image-strip__grid {
    grid-template-columns: 1fr;
  }

  .image-strip__grid img {
    height: 220px;
  }
}

@media (width < 620px) {
  .section__container {
    padding: 3.4rem 1rem;
  }

  .nav__container {
    padding: 0.75rem 1rem;
  }

  .nav__logo {
    font-size: 1.08rem;
  }

  .hero h1,
  .page-hero h1,
  .portal-hero h1 {
    font-size: 2.25rem;
  }

  .section__header {
    font-size: 1.85rem;
  }

  .feature-grid,
  .service__grid,
  .doctors__grid,
  .values-grid,
  .portal-benefit-grid,
  .faq-grid,
  .portal-dashboard__grid {
    grid-template-columns: 1fr;
  }

  .footer__container {
    grid-template-columns: 1fr;
  }

  .portal-tabs {
    grid-template-columns: 1fr;
  }
}
