:root {
  /* Elegant Lavender, Soft Plum & Champagne Gold scale */
  --green-950: hsl(280, 48%, 11%); /* Deep Royal Plum headings */
  --green-900: hsl(280, 40%, 18%); /* Soft brand Plum */
  --green-800: hsl(272, 45%, 34%); /* Amethyst Plum */
  --green-700: hsl(272, 40%, 46%); /* Medium Lavender accent */
  --green-500: hsl(272, 38%, 56%); /* Main wellness Lavender Pearl */
  --green-300: hsl(272, 38%, 78%); /* Pastel Lavender */
  --green-100: hsl(272, 35%, 93%); /* Light Lilac tint */
  
  /* Modern clean slate/ice blue/lavender tones */
  --sage-50: hsl(272, 20%, 97%); /* Clean Ice Lavender-Grey base */
  --mint-50: hsl(272, 25%, 95%); /* Pale Lilac highlight */
  --cream: hsl(38, 48%, 95%); /* Warm Champagne tint */
  --linen: hsl(38, 28%, 92%); /* Warm Sand Gold tint */
  --sand: hsl(38, 18%, 86%);
  
  /* Surface and layout backgrounds */
  --surface: hsl(272, 24%, 98%); /* Clean premium card background */
  --surface-strong: hsl(272, 16%, 93%); /* Slightly stronger Lavender border/surface */
  
  /* Accents */
  --gold: hsl(38, 45%, 52%); /* Champagne gold for clinical highlights */
  --gold-deep: hsl(38, 45%, 38%); /* Bronze gold text/icons */
  --coral: hsl(348, 45%, 58%); /* Soft Rose Plum accent */
  
  /* Neutrals */
  --white: hsl(272, 38%, 97.5%);
  --grey-50: hsl(272, 12%, 97%);
  --grey-100: hsl(272, 10%, 92%);
  --grey-200: hsl(272, 8%, 84%);
  --grey-500: hsl(280, 8%, 46%); /* Muted dark slate/plum text */
  --grey-700: hsl(280, 15%, 26%); /* Dark gray-purple body text */
  
  --text: hsl(280, 30%, 12%); /* Main high-contrast charcoal-plum text */
  
  /* Shadow upgrades */
  --shadow: 0 24px 60px -16px hsla(280, 44%, 10%, 0.12), 0 12px 28px -12px hsla(280, 44%, 10%, 0.06);
  --shadow-soft: 0 14px 36px -12px hsla(280, 44%, 10%, 0.06);
  
  /* border radius and premium settings */
  --radius: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--grey-700);
  background:
    linear-gradient(115deg, hsla(272, 30%, 94%, 0.5), transparent 40rem),
    linear-gradient(180deg, var(--grey-50) 0%, hsl(272, 12%, 97%) 48%, hsl(272, 20%, 96%) 100%);
  font-family: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.42;
  background-image:
    linear-gradient(rgba(138, 79, 192, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(138, 79, 192, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  animation: themeDrift 28s linear infinite;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(248, 245, 252, 0.92);
  border-bottom: 1px solid rgba(138, 79, 192, 0.12);
  box-shadow: 0 10px 30px rgba(45, 20, 70, 0.06);
  backdrop-filter: blur(20px);
}

.navbar {
  width: min(1180px, calc(100% - 32px));
  min-height: 86px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.brand-mark {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: transparent;
  border: none;
  box-shadow: none;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--grey-500);
  font-size: 0.95rem;
  font-weight: 500;
}

.brand strong {
  color: var(--green-950);
  font-size: 1.45rem;
  line-height: 1.15;
}

.brand span:last-child {
  min-width: 0;
}

.brand strong,
.brand small {
  overflow-wrap: anywhere;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--grey-500);
  font-size: 0.92rem;
}

.nav-menu a {
  padding: 9px 10px;
  border-radius: 999px;
  transition: color 160ms ease, background 160ms ease;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--green-800);
  background: linear-gradient(135deg, rgba(248, 240, 255, 0.95), rgba(255, 248, 232, 0.78));
}

.nav-cta {
  padding: 10px 18px !important;
  color: var(--white) !important;
  background: linear-gradient(135deg, var(--green-900), var(--green-700)) !important;
  border: 1px solid rgba(210, 169, 79, 0.26);
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(90, 40, 120, 0.2);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--grey-100);
  border-radius: var(--radius);
  background: var(--surface);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--green-900);
}

.hero {
  min-height: 740px;
  position: relative;
  display: grid;
  align-items: center;
  padding: 120px max(24px, calc((100vw - 1180px) / 2)) 112px;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(32, 12, 48, 0.94), rgba(54, 20, 80, 0.72) 47%, rgba(54, 20, 80, 0.22)),
    linear-gradient(180deg, rgba(32, 12, 48, 0.14), rgba(32, 12, 48, 0.64)),
    url("../assets/images/clinic-5.jpg.jpeg") center/cover;
  transform: scale(1.02);
  animation: heroImageBreath 18s ease-in-out infinite alternate;
}

.hero::after {
  content: "";
  position: absolute;
  left: max(24px, calc((100vw - 1180px) / 2));
  right: max(24px, calc((100vw - 1180px) / 2));
  bottom: 36px;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.5), transparent);
}

.hero-graphic {
  position: absolute;
  right: max(28px, calc((100vw - 1180px) / 2));
  top: 50%;
  width: min(34vw, 430px);
  aspect-ratio: 1;
  transform: translateY(-50%);
  opacity: 0.72;
  pointer-events: none;
}

.orbit {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(210, 169, 79, 0.34);
  border-radius: 50%;
}

.orbit::before,
.orbit::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 8px rgba(202, 164, 93, 0.12);
}

.orbit::before {
  top: 12%;
  left: 17%;
}

.orbit::after {
  right: 13%;
  bottom: 19%;
  background: var(--green-300);
  box-shadow: 0 0 0 8px rgba(200, 160, 240, 0.14);
}

.orbit-one {
  animation: orbitTurn 24s linear infinite;
}

.orbit-two {
  inset: 16%;
  border-style: dashed;
  animation: orbitTurn 18s linear infinite reverse;
}

.pulse-line {
  position: absolute;
  left: 11%;
  right: 11%;
  top: 50%;
  height: 70px;
  transform: translateY(-50%);
  overflow: hidden;
}

.pulse-line::before {
  content: "";
  position: absolute;
  left: -35%;
  top: 50%;
  width: 135%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(200, 160, 240, 0.9), rgba(255, 248, 232, 0.9), transparent);
  box-shadow:
    55px -18px 0 -1px rgba(210, 175, 240, 0.55),
    90px 16px 0 -1px rgba(202, 164, 93, 0.62),
    125px -26px 0 -1px rgba(210, 175, 240, 0.5);
  animation: pulseTravel 4.8s ease-in-out infinite;
}

.cross-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 76px;
  height: 76px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 248, 232, 0.28);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.cross-mark::before,
.cross-mark::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 999px;
  background: rgba(255, 250, 241, 0.86);
  transform: translate(-50%, -50%);
}

.cross-mark::before {
  width: 36px;
  height: 9px;
}

.cross-mark::after {
  width: 9px;
  height: 36px;
}

.hero-content {
  position: relative;
  width: min(760px, 100%);
  color: var(--white);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green-700);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero .eyebrow,
.page-hero .eyebrow,
.coming-soon .eyebrow {
  color: #e9dcfc;
}

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

h1 {
  max-width: 920px;
  margin-bottom: 20px;
  font-size: clamp(2.7rem, 5.2vw, 5.15rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(1.72rem, 2.7vw, 2.72rem);
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  font-size: 1.12rem;
}

.hero-copy {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.16rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.btn::after {
  content: ">";
  margin-left: 10px;
  font-size: 0.92em;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--green-900), var(--green-700));
  box-shadow: 0 16px 36px rgba(90, 40, 120, 0.26);
}

.btn-secondary {
  color: var(--green-900);
  background: linear-gradient(135deg, var(--surface), var(--cream));
  box-shadow: 0 16px 36px rgba(18, 53, 44, 0.14);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 13px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(10px);
  font-size: 0.9rem;
}

.trust-strip {
  width: min(1180px, calc(100% - 32px));
  margin: -58px auto 0;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--grey-100);
  box-shadow: var(--shadow);
}

.trust-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  border-top: 3px solid var(--gold);
  pointer-events: none;
}

.trust-strip div {
  padding: 30px;
  background: rgba(251, 248, 255, 0.96);
}

.trust-strip strong,
.trust-strip span {
  display: block;
}

.trust-strip strong {
  color: var(--green-900);
  font-size: 1.34rem;
}

.trust-strip span {
  color: var(--grey-500);
}

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 104px 0;
}

.muted-section {
  width: 100%;
  padding-left: max(16px, calc((100vw - 1180px) / 2));
  padding-right: max(16px, calc((100vw - 1180px) / 2));
  background:
    linear-gradient(180deg, var(--sage-50), var(--linen)),
    repeating-linear-gradient(135deg, rgba(138, 79, 192, 0.045) 0 1px, transparent 1px 18px);
}

.split-section,
.form-layout,
.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 56px;
}

.form-layout {
  align-items: start;
}

.doctor-card,
.portrait-panel {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  border: 1px solid rgba(225, 215, 235, 0.72);
}

.doctor-card img,
.portrait-panel img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.doctor-card .upright-frame,
.portrait-panel .upright-frame {
  height: 420px;
}

.upright-frame {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--green-100), var(--cream));
}

.upright-photo {
  position: absolute;
  left: 50%;
  top: 50%;
  width: auto;
  max-width: none;
  height: 146%;
  transform: translate(-50%, -50%) rotate(90deg);
  transform-origin: center;
  object-fit: cover;
}

.doctor-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 34px;
}

.doctor-photo-grid .upright-frame {
  min-height: 360px;
  border: 1px solid rgba(210, 169, 79, 0.24);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.doctor-photo-grid .upright-photo {
  height: 148%;
}

.doctor-card div {
  padding: 26px 28px;
  border-top: 4px solid var(--green-100);
}

.doctor-card p {
  color: var(--grey-500);
  margin-bottom: 0;
}

.text-link {
  color: var(--green-700);
  font-weight: 800;
  border-bottom: 1px solid currentColor;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 34px;
}

.service-grid,
.values-grid,
.blog-grid,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.service-card,
.values-grid article,
.contact-card,
.info-card {
  padding: 28px;
  border: 1px solid rgba(225, 215, 235, 0.9);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(251, 248, 255, 0.98), rgba(240, 232, 248, 0.9)),
    linear-gradient(135deg, rgba(240, 226, 248, 0.72), transparent);
  box-shadow: var(--shadow-soft);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.service-card {
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: "";
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green-500), var(--gold));
  transform: scaleX(0.26);
  transform-origin: left;
  transition: transform 220ms ease;
}

.service-card:hover::after {
  transform: scaleX(1);
}

.service-card:hover,
.values-grid article:hover,
.contact-card:hover,
.blog-card:hover {
  transform: translateY(-4px);
  border-color: rgba(180, 138, 220, 0.58);
  box-shadow: 0 22px 52px rgba(45, 18, 55, 0.12);
}

.service-icon {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 50%;
  color: var(--green-900);
  background: linear-gradient(135deg, var(--green-100), var(--cream));
  border: 1px solid rgba(210, 169, 79, 0.26);
  font-weight: 900;
  font-size: 0.82rem;
}

.service-card p,
.values-grid p {
  color: var(--grey-500);
  margin-bottom: 0;
}

.center-action {
  margin-top: 34px;
  text-align: center;
}

.consultation-band {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 40px;
  align-items: start;
}

.consultation-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.option-card {
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  border-radius: var(--radius);
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(32, 12, 48, 0.98), rgba(64, 25, 96, 0.94)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 18px);
  box-shadow: var(--shadow-soft);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.option-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.option-card span {
  color: #e9dcfc;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
}

.option-card strong {
  margin: 12px 0 8px;
  font-size: 1.32rem;
  line-height: 1.2;
}

.option-card p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.82);
}

.location-section {
  padding-top: 28px;
}

.location-panel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: end;
  margin-bottom: 24px;
  padding: 38px;
  border: 1px solid rgba(225, 215, 235, 0.9);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(251, 248, 255, 0.98), rgba(240, 232, 248, 0.94)),
    repeating-linear-gradient(120deg, rgba(138, 79, 192, 0.055) 0 1px, transparent 1px 22px);
  box-shadow: var(--shadow-soft);
}

.location-panel h2 {
  max-width: 720px;
}

.location-panel p {
  max-width: 680px;
  color: var(--grey-700);
}

.location-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.location-details {
  display: grid;
  gap: 12px;
}

.location-details div {
  display: grid;
  gap: 4px;
  padding: 18px 20px;
  border: 1px solid rgba(219, 229, 225, 0.9);
  border-radius: var(--radius);
  background: var(--surface);
}

.location-details strong {
  color: var(--green-950);
}

.location-details span {
  color: var(--grey-500);
}

.home-map {
  height: 460px;
  overflow: hidden;
  border: 1px solid rgba(219, 229, 225, 0.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.home-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.page-hero {
  position: relative;
  min-height: 350px;
  display: grid;
  align-items: end;
  padding: 96px max(24px, calc((100vw - 1180px) / 2)) 56px;
  color: var(--white);
  background: linear-gradient(90deg, rgba(18, 53, 44, 0.86), rgba(18, 53, 44, 0.44)), var(--green-700);
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  right: max(24px, calc((100vw - 1180px) / 2));
  bottom: 44px;
  width: min(36vw, 420px);
  height: 110px;
  opacity: 0.34;
  background:
    linear-gradient(90deg, transparent 0 5%, rgba(169, 217, 201, 0.7) 5% 24%, transparent 24% 30%, rgba(255, 250, 241, 0.8) 30% 44%, transparent 44% 50%, rgba(202, 164, 93, 0.78) 50% 62%, transparent 62% 100%);
  clip-path: polygon(0 52%, 13% 52%, 18% 25%, 25% 82%, 31% 52%, 42% 52%, 48% 36%, 56% 67%, 63% 52%, 100% 52%, 100% 56%, 64% 56%, 56% 78%, 48% 48%, 43% 56%, 32% 56%, 25% 92%, 18% 35%, 14% 56%, 0 56%);
  animation: pagePulse 5.5s ease-in-out infinite;
}

.page-hero h1 {
  position: relative;
  font-size: clamp(2.25rem, 4.5vw, 4.2rem);
  line-height: 1.04;
}

.page-hero p {
  position: relative;
  max-width: 720px;
  color: rgba(255, 255, 255, 0.86);
}

.about-hero { background-image: linear-gradient(90deg, rgba(6, 36, 29, 0.88), rgba(13, 59, 47, 0.5)), url("../assets/images/clinic-2.jpg.jpeg"); background-size: cover; background-position: center; }
.services-hero { background-image: linear-gradient(90deg, rgba(6, 36, 29, 0.88), rgba(13, 59, 47, 0.5)), url("../assets/images/clinic-5.jpg.jpeg"); background-size: cover; background-position: center; }
.online-hero { background-image: linear-gradient(90deg, rgba(6, 36, 29, 0.88), rgba(13, 59, 47, 0.5)), url("../assets/images/clinic-1.jpg.jpeg"); background-size: cover; background-position: center; }
.offline-hero { background-image: linear-gradient(90deg, rgba(6, 36, 29, 0.88), rgba(13, 59, 47, 0.5)), url("../assets/images/clinic-5.jpg.jpeg"); background-size: cover; background-position: center; }
.contact-hero { background-image: linear-gradient(90deg, rgba(6, 36, 29, 0.88), rgba(13, 59, 47, 0.5)), url("../assets/images/clinic-1.jpg.jpeg"); background-size: cover; background-position: center; }
.blog-hero { background-image: linear-gradient(90deg, rgba(6, 36, 29, 0.88), rgba(13, 59, 47, 0.5)), url("../assets/images/clinic-5.jpg.jpeg"); background-size: cover; background-position: center; }
.gallery-hero { background-image: linear-gradient(90deg, rgba(6, 36, 29, 0.88), rgba(13, 59, 47, 0.5)), url("../assets/images/clinic-5.jpg.jpeg"); background-size: cover; background-position: center; }

.service-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.service-list article {
  padding: 32px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid rgba(219, 229, 225, 0.9);
  box-shadow: var(--shadow-soft);
}

.service-list h2 {
  font-size: 1.35rem;
}

.cta-panel {
  padding: 58px;
  border-radius: var(--radius);
  color: var(--white);
  background:
    linear-gradient(135deg, var(--green-950), var(--green-800)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.075) 0 1px, transparent 1px 20px);
  box-shadow: var(--shadow);
}

.consult-form {
  padding: 34px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid rgba(225, 215, 235, 0.95);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.consult-form::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--green-500), var(--gold), var(--coral));
}

.form-header {
  display: grid;
  gap: 4px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--grey-100);
}

.form-header span {
  color: var(--green-700);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.form-header strong {
  color: var(--green-950);
  font-size: 1.28rem;
}

.consult-form label {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--green-900);
  font-weight: 800;
}

.consult-form input,
.consult-form select,
.consult-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  color: var(--text);
  background: #fbf9ff;
  font: inherit;
}

.consult-form input:focus,
.consult-form select:focus,
.consult-form textarea:focus {
  outline: 3px solid rgba(180, 138, 220, 0.22);
  border-color: var(--green-500);
}

.consult-form textarea {
  resize: vertical;
}

.form-note {
  margin: 14px 0 0;
  color: var(--green-700);
  font-weight: 800;
}

.form-note.error {
  color: #a43a3a;
}

.consult-form button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.info-card {
  display: grid;
  gap: 6px;
  margin-top: 24px;
}

.info-card span {
  color: var(--grey-500);
}

.map-frame {
  height: 430px;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(219, 229, 225, 0.85);
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.contact-grid {
  grid-template-columns: repeat(3, 1fr);
}

.contact-card span,
.blog-card span {
  color: var(--green-700);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-card strong {
  display: block;
  margin-top: 12px;
  overflow-wrap: anywhere;
}

.blog-grid {
  grid-template-columns: repeat(3, 1fr);
}

.blog-card {
  overflow: hidden;
  border: 1px solid rgba(219, 229, 225, 0.9);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.blog-card img {
  width: 100%;
  aspect-ratio: 1.35;
  object-fit: cover;
}

.blog-card div {
  padding: 24px;
}

.blog-card h2 {
  margin: 10px 0;
  font-size: 1.35rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery-item {
  position: relative;
  min-height: 320px;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--mint-50), var(--cream));
  box-shadow: var(--shadow-soft);
}

.gallery-grid img,
.gallery-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.gallery-item img {
  height: 100%;
  min-height: 320px;
}

.gallery-item.rotated img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: auto;
  max-width: none;
  height: 142%;
  transform: translate(-50%, -50%) rotate(90deg);
  transform-origin: center;
}

.gallery-item:nth-child(5) {
  grid-column: span 2;
}

.coming-soon {
  min-height: calc(100vh - 78px);
  display: grid;
  place-items: center;
  padding: 80px 24px;
  color: var(--white);
  text-align: center;
  background:
    linear-gradient(120deg, rgba(8, 35, 31, 0.92), rgba(40, 114, 98, 0.76)),
    url("../assets/images/clinic-1.jpg.jpeg") center/cover;
}

.soon-content {
  width: min(760px, 100%);
}

.soon-content .hero-actions {
  justify-content: center;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  padding: 80px max(24px, calc((100vw - 1180px) / 2)) 40px;
  color: rgba(246, 242, 252, 0.75);
  background: 
    radial-gradient(circle at 80% 10%, rgba(138, 79, 192, 0.08) 0%, transparent 50%),
    linear-gradient(180deg, var(--green-950) 0%, #08070d 100%);
  border-top: 1px solid rgba(138, 79, 192, 0.15);
}

.site-footer strong,
.site-footer a,
.site-footer .brand small {
  color: var(--white);
}

.site-footer a {
  display: inline-flex;
  text-align: left;
}

.site-footer p {
  max-width: 520px;
  margin: 18px 0 0;
}

.footer-main {
  display: grid;
  gap: 18px;
}

.footer-contact {
  display: grid;
  gap: 12px;
  justify-items: end;
  align-content: start;
  font-weight: 800;
}

.footer-contact a {
  padding: 10px 18px;
  border: 1px solid rgba(167, 139, 250, 0.22);
  border-radius: 999px;
  color: rgba(246, 242, 252, 0.9);
  background: rgba(167, 139, 250, 0.04);
  transition: all 0.25s ease;
}

.footer-contact a:hover {
  background: rgba(167, 139, 250, 0.12);
  border-color: var(--accent-primary, #a78bfa);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(138, 79, 192, 0.15);
}

.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.88rem;
}

.footer-bottom small {
  font-size: 0.78rem;
}

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

.social-links a {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(167, 139, 250, 0.16);
  transition: all 0.25s ease;
}

.social-links a[aria-label="WhatsApp"] {
  background: rgba(37, 211, 102, 0.08);
}

.social-links a[aria-label="Facebook"] {
  background: rgba(24, 119, 242, 0.08);
}

.social-links a[aria-label="Instagram"] {
  background: linear-gradient(135deg, rgba(245, 133, 41, 0.08), rgba(221, 42, 123, 0.08), rgba(81, 91, 212, 0.08));
}

.social-links a:hover {
  transform: translateY(-3px);
  background: rgba(210, 169, 79, 0.22);
}

.social-links svg,
.whatsapp-float svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.whatsapp-float svg {
  width: 31px;
  height: 31px;
}

.site-footer .brand-mark {
  width: 92px;
  height: 92px;
  background: var(--surface);
  border: 1px solid rgba(210, 169, 79, 0.22);
  border-radius: 50%;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.18);
}

.site-footer .brand-mark img {
  padding: 8px;
}

.site-footer .brand strong {
  color: var(--white);
}

.site-footer .brand {
  min-width: 0;
}

.site-footer .brand span:last-child {
  min-width: 0;
}

.site-footer .brand strong,
.site-footer .brand small {
  overflow-wrap: anywhere;
}

.site-footer .brand small {
  color: rgba(255, 255, 255, 0.68);
}

.site-footer .brand-mark img {
  transform: scale(1.12);
}

.site-footer p {
  margin-bottom: 0;
}

/* Doctor image container and alignment fixes (with 90deg rotation using container queries) */
.doctor-image-frame {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--green-100), var(--cream));
  border: 1px solid rgba(155, 119, 43, 0.12);
  box-shadow: var(--shadow-soft);
  container-type: size; /* Track container dimensions for query units */
}

.doctor-image-frame img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100cqh; /* Map image width to container height */
  height: 100cqw; /* Map image height to container width */
  max-width: none;
  object-fit: cover;
  object-position: right center; /* Align head (right side of unrotated image) to top of frame */
  transform: translate(-50%, -50%) rotate(-90deg);
  transform-origin: center;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.doctor-image-frame:hover img {
  transform: translate(-50%, -50%) rotate(-90deg) scale(1.05);
}

.doctor-card .doctor-image-frame {
  height: 420px;
}

.portrait-panel .doctor-image-frame {
  height: 480px;
}

.doctor-photo-grid .doctor-image-frame {
  height: 380px;
}

/* Floating Social menu speed dial styles */
.social-floater-menu {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 12px;
}

.floater-trigger {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  background: var(--green-900);
  color: var(--white);
  box-shadow: var(--shadow);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease;
  animation: whatsappBreathe 2.8s ease-in-out infinite;
}

.floater-trigger:hover {
  transform: scale(1.08);
  background: var(--green-800);
}

.floater-items {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.social-floater-menu.open .floater-items,
.social-floater-menu:hover .floater-items {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.floater-item {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--white);
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
}

.floater-item:hover {
  transform: scale(1.1);
  filter: brightness(1.1);
}

.floater-whatsapp {
  background: #25d366;
}

.floater-instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.floater-facebook {
  background: #1877f2;
}

.social-floater-menu svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

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

  .nav-menu {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 86px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 14px;
    border: 1px solid var(--grey-100);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-menu a {
    padding: 12px;
    border-radius: var(--radius);
  }

  .trust-strip,
  .split-section,
  .form-layout,
  .visit-grid,
  .location-panel,
  .consultation-band {
    grid-template-columns: 1fr;
  }

  .service-grid,
  .values-grid,
  .contact-grid,
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .doctor-photo-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item:nth-child(5) {
    grid-column: auto;
  }
}

@media (max-width: 680px) {
  .navbar {
    width: min(100% - 24px, 1180px);
  }

  .brand strong {
    font-size: 1.1rem;
  }

  .brand small {
    font-size: 0.8rem;
  }

  .brand-mark {
    width: 60px;
    height: 60px;
  }

  .hero,
  .page-hero {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero {
    min-height: 560px;
    align-items: end;
    padding-bottom: 86px;
  }

  .hero-graphic {
    right: -96px;
    top: 42%;
    width: 280px;
    opacity: 0.28;
  }

  .page-hero {
    min-height: 360px;
    padding-top: 84px;
    padding-bottom: 44px;
  }

  .page-hero::before {
    right: -42px;
    width: 280px;
    opacity: 0.22;
  }

  h1 {
    font-size: clamp(2.25rem, 12vw, 3.3rem);
  }

  .hero-copy {
    font-size: 1rem;
  }

  .trust-strip,
  .service-grid,
  .values-grid,
  .service-list,
  .consultation-options,
  .contact-grid,
  .blog-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .section {
    width: min(100% - 32px, 1180px);
    padding: 72px 0;
  }

  .muted-section {
    width: 100%;
    padding-left: 16px;
    padding-right: 16px;
  }

  .map-frame,
  .home-map {
    height: 330px;
  }

  .doctor-card .doctor-image-frame,
  .portrait-panel .doctor-image-frame,
  .doctor-photo-grid .doctor-image-frame {
    height: 340px;
  }

  .consult-form,
  .cta-panel,
  .location-panel {
    padding: 24px;
  }

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

  .location-actions .btn {
    width: 100%;
  }

  .hero-meta {
    display: none;
  }

  .site-footer {
    display: grid;
    grid-template-columns: 1fr;
  }

  .site-footer a,
  .footer-contact {
    text-align: left;
    justify-items: start;
  }

  .footer-bottom {
    display: grid;
  }

  .gallery-item,
  .gallery-item img {
    min-height: 260px;
  }
}

@keyframes themeDrift {
  from {
    background-position: 0 0, 0 0;
  }
  to {
    background-position: 72px 72px, 72px 72px;
  }
}

@keyframes heroImageBreath {
  from {
    transform: scale(1.02) translateX(0);
  }
  to {
    transform: scale(1.065) translateX(-12px);
  }
}

@keyframes orbitTurn {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulseTravel {
  0% {
    transform: translate(-18%, -50%);
    opacity: 0;
  }
  18%,
  78% {
    opacity: 1;
  }
  100% {
    transform: translate(22%, -50%);
    opacity: 0;
  }
}

@keyframes pagePulse {
  0%,
  100% {
    transform: translateX(0);
    opacity: 0.22;
  }
  50% {
    transform: translateX(-18px);
    opacity: 0.44;
  }
}

/* ==========================================================================
   Advanced CSS Animations & Micro-interactions
   ========================================================================= */

/* Page entry animations (above the fold) */
.site-header {
  animation: fadeInDown 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

h1, .page-hero h1 {
  animation: fadeInUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-copy, .hero-actions, .hero-meta, .page-hero p {
  animation: fadeInUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}

.hero-graphic {
  animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-graphic::before {
  content: "";
  position: absolute;
  inset: -10%;
  background: radial-gradient(circle, hsla(174, 52%, 24%, 0.28) 0%, transparent 70%);
  filter: blur(40px);
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
}

/* Scroll-triggered Viewport Entrance Animations (Optimized 3D Rotations) */
.scroll-trigger {
  opacity: 0;
  transition: 
    opacity 0.48s cubic-bezier(0.25, 1, 0.5, 1), 
    transform 0.48s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform, opacity;
}

/* 3D Slide Up (default) */
.scroll-trigger, .scroll-trigger.slide-up {
  transform: perspective(1000px) rotateX(6deg) translateY(28px);
}

/* 3D Slide from Left */
.scroll-trigger.slide-left {
  transform: perspective(1000px) rotateY(-8deg) translateX(-34px) translateY(0);
}

/* 3D Slide from Right */
.scroll-trigger.slide-right {
  transform: perspective(1000px) rotateY(8deg) translateX(34px) translateY(0);
}

/* 3D Zoom In */
.scroll-trigger.zoom-in {
  transform: perspective(1000px) translateZ(-60px) translateY(8px);
}

.scroll-trigger.scroll-visible {
  opacity: 1;
  transform: perspective(1000px) rotateX(0deg) rotateY(0deg) translate(0) scale(1);
}

/* Staggered transition delays for scroll grids */
.scroll-delay-1 { transition-delay: 0.05s; }
.scroll-delay-2 { transition-delay: 0.1s; }
.scroll-delay-3 { transition-delay: 0.15s; }
.scroll-delay-4 { transition-delay: 0.2s; }

/* Dynamic Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 0%;
  background: linear-gradient(90deg, var(--green-500) 0%, var(--gold) 50%, var(--coral) 100%);
  z-index: 1000;
  pointer-events: none;
  transition: width 0.06s linear;
  box-shadow: 0 2px 10px rgba(18, 53, 44, 0.16);
}

/* Graphic elements: Glowing Background mesh blobs (with Scroll Parallax) */
.bg-blob {
  position: absolute;
  width: min(55vw, 600px);
  aspect-ratio: 1;
  border-radius: 50%;
  z-index: -2;
  pointer-events: none;
  opacity: 0.18;
  filter: blur(120px);
  will-change: transform;
}

.bg-blob-one {
  background: radial-gradient(circle, var(--green-800) 0%, transparent 70%);
  top: 15%;
  left: -10%;
}

.bg-blob-two {
  background: radial-gradient(circle, var(--gold) 0%, transparent 70%);
  top: 55%;
  right: -10%;
}

.bg-blob-three {
  background: radial-gradient(circle, var(--green-500) 0%, transparent 70%);
  bottom: 15%;
  left: 20%;
}

/* Snappy 3D Card Hover Tilt and Layering Effects */
.service-card,
.values-grid article,
.contact-card,
.blog-card,
.option-card {
  position: relative;
  transition: 
    transform 0.28s cubic-bezier(0.25, 1, 0.5, 1), 
    box-shadow 0.28s cubic-bezier(0.25, 1, 0.5, 1), 
    border-color 0.28s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.45), var(--shadow-soft);
  perspective: 1000px;
  transform-style: preserve-3d;
}

.service-card h3,
.values-grid article h3,
.contact-card strong,
.blog-card h2,
.service-card p,
.values-grid article p,
.blog-card p,
.service-card .service-icon {
  transition: transform 0.28s cubic-bezier(0.25, 1, 0.5, 1);
  transform: translateZ(0);
}

.service-card:hover,
.values-grid article:hover,
.contact-card:hover,
.blog-card:hover {
  transform: perspective(1000px) rotateX(4deg) rotateY(-3deg) translateZ(12px) translateY(-8px) scale(1.015);
  border-color: rgba(116, 179, 157, 0.58);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.6), var(--shadow);
}

.option-card:hover {
  transform: perspective(1000px) rotateX(4deg) rotateY(-3deg) translateZ(12px) translateY(-8px) scale(1.015);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.2), var(--shadow);
}

/* Offset children in 3D space on hover */
.service-card:hover .service-icon {
  transform: translateZ(24px) rotate(3deg);
}

.service-card:hover h3,
.values-grid article:hover h3,
.contact-card:hover strong,
.blog-card:hover h2 {
  transform: translateZ(15px);
}

.service-card:hover p,
.values-grid article:hover p,
.blog-card:hover p {
  transform: translateZ(8px);
}

.floater-trigger {
  animation: premiumBreathe 3s ease-in-out infinite;
}

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

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes premiumBreathe {
  0%, 100% {
    transform: scale(1) translateY(0);
    box-shadow: var(--shadow), 0 0 0 0 hsla(272, 52%, 24%, 0.4);
  }
  50% {
    transform: scale(1.05) translateY(-4px);
    box-shadow: var(--shadow), 0 0 0 12px hsla(272, 52%, 24%, 0);
  }
}

@keyframes blobDrift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -60px) scale(1.1); }
  100% { transform: translate(-20px, 30px) scale(0.9); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

/* ==========================================================================
   Patient Review Section & Interactive Modal Styles
   ========================================================================= */

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 34px;
}

/* Review Card styling inherits preserve-3d and transition properties */
.review-card {
  padding: 30px;
  border: 1px solid rgba(225, 215, 235, 0.9);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(251, 248, 255, 0.98), rgba(240, 232, 248, 0.9));
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.45), var(--shadow-soft);
  perspective: 1000px;
  transform-style: preserve-3d;
  transition: 
    transform 0.28s cubic-bezier(0.25, 1, 0.5, 1), 
    box-shadow 0.28s cubic-bezier(0.25, 1, 0.5, 1), 
    border-color 0.28s cubic-bezier(0.25, 1, 0.5, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.review-card:hover {
  transform: perspective(1000px) rotateX(4deg) rotateY(-3deg) translateZ(12px) translateY(-8px) scale(1.015);
  border-color: rgba(180, 138, 220, 0.58);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.6), var(--shadow);
}

.review-stars {
  color: #d2a94f; /* Glowing gold star fill */
  font-size: 1.15rem;
  margin-bottom: 12px;
  text-shadow: 0 0 8px rgba(210, 169, 79, 0.4);
  transition: transform 0.28s cubic-bezier(0.25, 1, 0.5, 1);
  transform: translateZ(0);
}

.review-text {
  color: var(--grey-700);
  font-size: 0.96rem;
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
  transition: transform 0.28s cubic-bezier(0.25, 1, 0.5, 1);
  transform: translateZ(0);
}

.review-author {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(155, 119, 43, 0.12);
  padding-top: 14px;
  margin-top: auto;
  transition: transform 0.28s cubic-bezier(0.25, 1, 0.5, 1);
  transform: translateZ(0);
}

.review-author strong {
  color: var(--green-950);
  font-size: 0.96rem;
}

.review-badge {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 99px;
  color: var(--green-800);
  background: rgba(138, 79, 192, 0.08);
  border: 1px solid rgba(138, 79, 192, 0.12);
}

.review-card:hover .review-stars {
  transform: translateZ(24px);
}

.review-card:hover .review-text {
  transform: translateZ(14px);
}

.review-card:hover .review-author {
  transform: translateZ(8px);
}

/* Modal Overlay Styling */
.review-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1001;
  background: rgba(24, 10, 38, 0.48);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease-out;
  padding: 16px;
}

.review-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.review-modal {
  width: min(520px, 100%);
  background: linear-gradient(135deg, rgba(246, 242, 252, 0.98), rgba(248, 240, 255, 0.96));
  border: 1px solid rgba(210, 169, 79, 0.28);
  border-radius: 16px;
  padding: 38px 34px;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.8), var(--shadow);
  position: relative;
  transform: perspective(1000px) rotateX(15deg) translateY(24px) scale(0.94);
  transition: transform 0.28s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-style: preserve-3d;
}

.review-modal-overlay.active .review-modal {
  transform: perspective(1000px) rotateX(0deg) translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  right: 18px;
  top: 18px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(155, 119, 43, 0.16);
  border-radius: 50%;
  background: var(--surface);
  color: var(--grey-500);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 1.34rem;
  font-weight: 300;
  line-height: 1;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: var(--green-900);
  color: var(--white);
  border-color: var(--green-900);
  transform: rotate(90deg);
}

.review-modal h3 {
  margin: 0 0 24px;
  color: var(--green-950);
  font-size: 1.48rem;
  text-align: center;
}

.review-modal label {
  display: block;
  margin-bottom: 16px;
  font-weight: 800;
  color: var(--green-900);
  font-size: 0.9rem;
}

.review-modal input,
.review-modal select,
.review-modal textarea {
  width: 100%;
  margin-top: 6px;
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  padding: 11px 14px;
  background: var(--white);
  font: inherit;
  color: var(--text);
  box-shadow: inset 0 1px 2px rgba(18, 53, 44, 0.04);
}

.review-modal input:focus,
.review-modal select:focus,
.review-modal textarea:focus {
  outline: 3px solid rgba(180, 138, 220, 0.22);
  border-color: var(--green-500);
}

.star-rating-container {
  margin-bottom: 18px;
}

.stars-selector {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.stars-selector button {
  background: none;
  border: none;
  padding: 0;
  font-size: 2rem;
  color: var(--grey-200);
  cursor: pointer;
  line-height: 1;
  transition: transform 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.15s ease;
}

.stars-selector button:hover {
  transform: scale(1.2);
}

/* JavaScript handles highlighting, we define active state */
.stars-selector button.highlighted {
  color: #d2a94f;
  text-shadow: 0 0 12px rgba(210, 169, 79, 0.5);
}

/* New review reveal slide-down */
@keyframes reviewSlideDown {
  from {
    opacity: 0;
    transform: perspective(1000px) rotateX(-10deg) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: perspective(1000px) rotateX(0) translateY(0);
  }
}

.new-review-animate {
  animation: reviewSlideDown 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

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

@media (max-width: 680px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  .review-modal {
    padding: 28px 20px;
  }
}

