.section {
  padding: var(--section-y) 0;
}

.section--mist {
  background: linear-gradient(180deg, rgba(223, 232, 239, 0.62), rgba(255, 255, 255, 0));
}

.section--reverse-mist {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(223, 232, 239, 0.58));
}

.section-kicker {
  margin: 0 0 10px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-blue-700);
}

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

.section-heading--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.lead {
  font-size: 1.08rem;
  color: var(--slate-700);
}

.button,
.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

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

.button--primary,
.header-cta {
  background: linear-gradient(135deg, var(--brand-blue-700), var(--brand-lime-700));
  color: var(--white);
  box-shadow: 0 18px 44px rgba(13, 76, 136, 0.22);
}

.button--secondary {
  background: rgba(255, 255, 255, 0.68);
  color: var(--brand-blue-700);
  border: 1px solid rgba(13, 76, 136, 0.18);
}

.button--light {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.26);
}

/* Original Hero Section (kept for reference if needed) */
.hero {
  padding: 24px 0 18px;
}

.hero__frame {
  position: relative;
  width: min(1360px, calc(100vw - 28px));
  margin: 0 auto;
  min-height: 720px;
  border-radius: 36px;
  overflow: hidden;
  box-shadow: var(--shadow-strong);
  border: 1px solid rgba(13, 76, 136, 0.12);
  background:
    radial-gradient(circle at 15% 20%, rgba(201, 234, 41, 0.22), transparent 18%),
    linear-gradient(130deg, #0e2238 0%, #194a7b 45%, #7eb50f 100%);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(9, 21, 35, 0.78) 0%, rgba(13, 36, 59, 0.58) 42%, rgba(9, 21, 35, 0.2) 100%);
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 34px;
  align-items: center;
  min-height: 720px;
  padding: 82px 0 92px;
}

/* Full-Screen Hero with Background Image */
.hero-fullscreen {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 650px;

  display: flex;
  align-items: center;
  justify-content: flex-start;

  background-size: cover;
  background-position: center 10%;
  background-attachment: scroll;

  overflow: hidden;
  box-sizing: border-box;
}

.hero-fullscreen__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(9, 21, 35, 0.85) 0%, rgba(13, 36, 59, 0.65) 25%, rgba(9, 21, 35, 0.2) 50%, transparent 65%);
  z-index: 1;
}

.hero-fullscreen__content {
  position: relative;
  z-index: 2;
  color: var(--white);
  max-width: 35%;
  padding: 60px 0 60px 40px;
  width: 100%;
}

.hero-fullscreen__content h1 {
  color: var(--white);
  margin-bottom: 20px;
  line-height: 1.1;
}

.hero-fullscreen__content p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.06rem;
  margin-bottom: 24px;
  max-width: 100%;
}

.hero__content {
  color: var(--white);
}

.hero__eyebrow {
  margin: 0 0 16px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.hero__content p {
  max-width: 58ch;
  font-size: 1.06rem;
  color: rgba(255, 255, 255, 0.88);
}

.hero__actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 14px;
}

.hero__media {
  position: relative;
}

.hero__media img,
.image-panel img {
  width: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 26px 80px rgba(6, 17, 30, 0.28);
}

.hero__media img {
  height: 470px;
}

.hero__stat-card {
  position: absolute;
  right: -6px;
  bottom: -22px;
  max-width: 250px;
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(13, 76, 136, 0.1);
  box-shadow: var(--shadow-soft);
}

.hero__stat-card strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--brand-blue-900);
  line-height: 1;
  margin-bottom: 8px;
}

.split-grid,
.contact-grid,
.two-column-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  align-items: center;
}

.panel,
.card,
.contact-form-card,
.highlight-card {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(13, 76, 136, 0.08);
  box-shadow: var(--shadow-soft);
}

.panel,
.contact-form-card,
.highlight-card {
  padding: 30px;
  border-radius: var(--radius-lg);
}

.card {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border-radius: var(--radius-md);
}

.card::after {
  content: "";
  position: absolute;
  inset: auto -24px -44px auto;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(183, 216, 20, 0.18), transparent 68%);
}

.card > * {
  position: relative;
  z-index: 1;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.single-column-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.service-card {
  display: block;
  height: 100%;
}

.service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card > img:first-child {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.service-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center;
}

.feature-points {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}

/* Smooth Animations */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatAnimation {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* Card Hover Effects */
.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(13, 76, 136, 0.15) !important;
}

.service-card:hover img {
  transform: scale(1.08);
}

.panel:hover {
  transform: translateY(-4px);
  box-shadow: 0 25px 70px rgba(13, 76, 136, 0.12) !important;
}

/* Button Hover Effects */
.button:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 15px 50px rgba(13, 76, 136, 0.3) !important;
}

/* Form Input Focus */
input:focus,
textarea:focus,
select:focus {
  border-color: #b7d814 !important;
  box-shadow: 0 0 0 3px rgba(183, 216, 20, 0.1) !important;
  outline: none;
}

.feature-points li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
}

.feature-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--brand-lime-700);
  box-shadow: 0 0 0 5px rgba(28, 90, 150, 0.12);
}

.doctor-visual {
  position: relative;
  min-height: 520px;
}

.shape-photo {
  position: absolute;
  overflow: hidden;
  margin: 0;
  box-shadow: 0 28px 80px rgba(14, 34, 56, 0.18);
  border: 8px solid rgba(255, 255, 255, 0.84);
  background: rgba(255, 255, 255, 0.9);
}

.shape-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.shape-photo--arch {
  left: 0;
  top: 10px;
  width: min(360px, 80%);
  height: 440px;
  border-radius: 220px 220px 28px 28px;
}

.shape-photo--blob {
  right: 8%;
  bottom: 10px;
  width: min(260px, 58%);
  height: 300px;
  border-radius: 42% 58% 49% 51% / 45% 35% 65% 55%;
}

.inner-hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #0e2238;
}

.inner-hero__media,
.inner-hero__overlay {
  position: absolute;
  inset: 0;
}

.inner-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.inner-hero__overlay {
  background: linear-gradient(90deg, rgba(9, 21, 35, 0.84) 0%, rgba(13, 36, 59, 0.76) 44%, rgba(9, 21, 35, 0.22) 100%);
}

.inner-hero__content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  color: var(--white);
  padding: 120px 0 92px;
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0 0 18px;
  list-style: none;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
  font-weight: 700;
}

.breadcrumb-list li + li::before {
  content: "/";
  margin-right: 8px;
  color: rgba(255, 255, 255, 0.48);
}

.contact-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
}

.contact-form {
  display: grid;
  gap: 16px;
}

.contact-form__field {
  display: grid;
  gap: 8px;
}

.contact-form__field label {
  font-weight: 800;
}

.field-required {
  color: var(--danger);
}

.contact-form__field input,
.contact-form__field textarea,
.contact-form__field select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(13, 76, 136, 0.14);
  background: rgba(255, 255, 255, 0.92);
  font: inherit;
  color: var(--navy-950);
}

.contact-form__field textarea {
  resize: vertical;
}

.contact-form__notice {
  margin: 0;
  padding: 14px 16px;
  border-radius: 16px;
  font-weight: 800;
  background: rgba(183, 216, 20, 0.18);
  color: var(--brand-blue-900);
}

.map-frame {
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(13, 76, 136, 0.08);
}

.map-frame iframe {
  width: 100%;
  height: 420px;
  border: 0;
  display: block;
}

.site-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
}

.site-modal[hidden] {
  display: none;
}

.site-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14, 34, 56, 0.72);
}

.site-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(680px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 34px;
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(243, 248, 251, 0.96)),
    radial-gradient(circle at right top, rgba(183, 216, 20, 0.16), transparent 24%);
  box-shadow: 0 30px 90px rgba(14, 34, 56, 0.28);
}

.site-modal__close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(13, 76, 136, 0.08);
  color: var(--navy-950);
  font-size: 1.5rem;
  cursor: pointer;
}

body.modal-open {
  overflow: hidden;
}

.reveal-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .hero__frame,
  .hero__grid {
    min-height: 640px;
  }

  .hero__grid,
  .split-grid,
  .contact-grid,
  .two-column-grid {
    grid-template-columns: 1fr;
  }

  .hero-fullscreen {
    height: 80vh;
  }

  .hero-fullscreen__content {
    max-width: 50%;
    padding: 50px 0 50px 40px;
  }

  .hero-fullscreen__overlay {
    background: linear-gradient(90deg, rgba(9, 21, 35, 0.88) 0%, rgba(13, 36, 59, 0.72) 30%, rgba(9, 21, 35, 0.35) 55%, transparent 70%);
  }

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

  .contact-detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .hero {
    padding-top: 14px;
    padding-bottom: 10px;
  }

  .hero__frame {
    width: min(1360px, calc(100vw - 16px));
    min-height: auto;
    border-radius: 24px;
  }

  .hero__grid {
    min-height: auto;
    padding: 30px 0 38px;
    gap: 22px;
  }

  .hero__media {
    order: -1;
  }

  .hero__media img {
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.08);
  }

  .hero__stat-card {
    position: static;
    max-width: none;
    margin-top: 14px;
  }

  .hero__actions,
  .cta-actions {
    flex-direction: column;
  }

  .hero__actions .button,
  .cta-actions .button,
  .header-cta {
    width: 100%;
  }

  /* Mobile styles for fullscreen hero section */
  .hero-fullscreen {
    height: 75vh;
    background-attachment: scroll;
    justify-content: flex-start;
  }

  .hero-fullscreen__overlay {
    background: linear-gradient(90deg, rgba(9, 21, 35, 0.92) 0%, rgba(13, 36, 59, 0.82) 40%, rgba(9, 21, 35, 0.4) 70%, transparent 85%);
  }

  .hero-fullscreen__content {
    max-width: 85%;
    padding: 40px 0 40px 20px;
  }

  .hero-fullscreen__content h1 {
    font-size: clamp(1.5rem, 5vw, 2.45rem);
    margin-bottom: 16px;
  }

  .hero-fullscreen__content p {
    font-size: 0.9rem;
    max-width: 100%;
  }

  .hero__actions,
  .cta-actions {
    flex-direction: column;
  }

  .hero__actions .button,
  .cta-actions .button,
  .header-cta {
    width: 100%;
  }

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

  .service-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center;
  }

  .card,
  .panel,
  .contact-form-card,
  .highlight-card {
    padding: 22px;
    border-radius: 22px;
  }

  .doctor-visual {
    min-height: 430px;
  }

  .shape-photo--arch {
    width: min(280px, 82%);
    height: 340px;
  }

  .shape-photo--blob {
    width: min(210px, 56%);
    height: 230px;
  }

  .inner-hero {
    min-height: 470px;
  }

  .inner-hero__content {
    padding: 92px 0 64px;
  }
}

/* =========================================================
   HEADER + HOME HERO — KEEP SECTIONS INDEPENDENT
   ========================================================= */

/* Header occupies its own space */
#site-header {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  width: 100% !important;
  z-index: 1000 !important;
}

/* Prevent a child header/nav from becoming a separate overlay */
#site-header > header {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  width: 100% !important;
}

/* Home hero starts below the navbar */
.hero-fullscreen {
  position: relative;
  width: 100%;
  height: calc(100vh - 104px);
  min-height: 650px;
  margin: 0;
  top: auto;
  left: auto;
  right: auto;
  z-index: 1;
}

/* Do not let the fixed background create visual overlap */
.hero-fullscreen {
  background-attachment: scroll;
}

/* Keep hero content inside its own section */
.hero-fullscreen__overlay {
  z-index: 1;
}

.hero-fullscreen__content {
  z-index: 2;
}

/* Tablet */
@media (max-width: 980px) {
  .hero-fullscreen {
    height: calc(80vh - 90px);
    min-height: 560px;
  }
}

/* Mobile */
@media (max-width: 720px) {
  .hero-fullscreen {
    height: calc(75vh - 72px);
    min-height: 520px;
    background-attachment: scroll;
  }
}

/* =========================================================
   3D FLIP CARD ANIMATION
   ========================================================= */
.specialist-flip-card {
  perspective: 1000px;
  border-radius: 20px;
  cursor: pointer;
  transition: box-shadow 0.4s ease;
  width: 100%;
  height: auto;
  min-height: 880px;
}

.specialist-flip-card:hover {
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.3);
}

.flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  transform-style: preserve-3d;
  min-height: 880px;
}

.specialist-flip-card:hover .flip-inner {
  transform: rotateY(180deg);
}

.flip-front,
.flip-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.flip-back {
  transform: rotateY(180deg);
}

/* =========================================================
   CLINIC OVERVIEW SECTION ANIMATIONS
   ========================================================= */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-60px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(60px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-30px);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}