:root {
  color-scheme: light;
  --bg: #f7fbff;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-solid: #ffffff;
  --ink: #0c1b2b;
  --muted: #5c6b7b;
  --line: rgba(9, 35, 63, 0.12);
  --navy: #08233f;
  --blue: #0c5fa8;
  --teal: #0f8c89;
  --gold: #c9a45c;
  --gold-soft: #f2e5c6;
  --rose: #b95f73;
  --success: #128c7e;
  --shadow: 0 24px 70px rgba(8, 35, 63, 0.14);
  --shadow-soft: 0 14px 34px rgba(8, 35, 63, 0.1);
  --radius: 8px;
  --container: min(1180px, calc(100% - 40px));
  --font-ui: "Inter", "Noto Sans Bengali", system-ui, sans-serif;
  --font-display: "Noto Serif Bengali", "Inter", serif;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #081320;
  --surface: rgba(12, 28, 45, 0.82);
  --surface-solid: #0e1c2d;
  --ink: #f5f9ff;
  --muted: #aeb9c6;
  --line: rgba(223, 232, 241, 0.14);
  --navy: #08233f;
  --blue: #6cb6ff;
  --teal: #39c7c0;
  --gold: #e6c878;
  --gold-soft: #3d3521;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
  --shadow-soft: 0 14px 34px rgba(0, 0, 0, 0.25);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(235, 246, 255, 0.84), rgba(255, 255, 255, 0.96) 35%, rgba(245, 250, 253, 0.95)),
    var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

[data-theme="dark"] body,
body[data-theme="dark"] {
  background:
    linear-gradient(180deg, rgba(9, 24, 39, 0.95), rgba(8, 19, 32, 0.96) 40%, rgba(11, 26, 42, 0.98)),
    var(--bg);
}

img,
svg,
iframe {
  max-width: 100%;
}

img {
  display: block;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid rgba(201, 164, 92, 0.7);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  transform: translateY(-140%);
  padding: 10px 14px;
  border-radius: var(--radius);
  background: var(--navy);
  color: #fff;
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 14px 0;
  background: rgba(247, 251, 255, 0.74);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

[data-theme="dark"] .site-header {
  background: rgba(8, 19, 32, 0.72);
}

.site-header[data-elevated="true"] {
  border-color: var(--line);
  box-shadow: 0 12px 30px rgba(8, 35, 63, 0.08);
}

.nav-shell {
  width: var(--container);
  margin-inline: auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  align-items: center;
}

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

.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(201, 164, 92, 0.55);
  border-radius: 50%;
  background: linear-gradient(145deg, var(--navy), #0e5a8c);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0;
  box-shadow: 0 10px 26px rgba(8, 35, 63, 0.18);
}

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

.brand strong {
  font-size: 0.98rem;
  line-height: 1.25;
}

.brand small {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.35;
}

.nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  padding: 10px 12px;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 650;
  transition:
    color 0.2s ease,
    background 0.2s ease;
}

.nav-links a:hover {
  color: var(--ink);
  background: rgba(12, 95, 168, 0.08);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-button,
.carousel-button {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  box-shadow: none;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.icon-button:hover,
.carousel-button:hover {
  transform: translateY(-2px);
  border-color: rgba(201, 164, 92, 0.55);
}

.icon-button svg,
.button svg,
.carousel-button svg,
.social-row svg,
.floating-social svg,
.social-link-rail svg,
.mobile-cta svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.1;
}

.nav-toggle {
  display: none;
}

.segmented-control {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
}

.segmented-control span {
  padding: 7px 9px;
  border-radius: 6px;
}

.segmented-control span.active {
  background: var(--navy);
  color: #fff;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  line-height: 1.1;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

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

.button-small {
  min-height: 42px;
  padding: 10px 14px;
  background: var(--navy);
  color: #fff;
  box-shadow: 0 12px 28px rgba(8, 35, 63, 0.18);
}

.button-primary {
  background: linear-gradient(135deg, #08233f, #0c5fa8 62%, #0f8c89);
  color: #fff;
  box-shadow: 0 16px 38px rgba(12, 95, 168, 0.25);
}

.button-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(16px);
}

.button-ghost.dark {
  color: var(--ink);
  background: var(--surface);
  border-color: var(--line);
}

.button-whatsapp {
  background: #128c7e;
  color: #fff;
  box-shadow: 0 16px 34px rgba(18, 140, 126, 0.22);
}

.hero {
  position: relative;
  min-height: 86svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media {
  background-image: url("https://images.unsplash.com/photo-1622253692010-333f2da6031d?auto=format&fit=crop&w=1900&q=88");
  background-size: cover;
  background-position: 72% center;
  transform: scale(1.02);
}

.hero-overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(4, 18, 34, 0.92) 0%, rgba(4, 24, 42, 0.83) 42%, rgba(4, 24, 42, 0.42) 70%, rgba(4, 24, 42, 0.2) 100%),
    linear-gradient(180deg, rgba(8, 35, 63, 0.2), rgba(8, 35, 63, 0.88));
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 700px) minmax(280px, 380px);
  gap: 48px;
  align-items: end;
  padding: 116px 0 122px;
}

.hero-copy {
  min-width: 0;
  max-width: 700px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.eyebrow {
  color: #f4d991;
  padding: 9px 12px;
  border: 1px solid rgba(244, 217, 145, 0.32);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
}

.hero h1,
.section-heading h2 {
  margin: 18px 0 18px;
  font-family: var(--font-display);
  line-height: 1.13;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 780px;
  font-size: clamp(2.45rem, 7vw, 5.9rem);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.hero-lede {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1rem, 2vw, 1.18rem);
  overflow-wrap: anywhere;
  word-break: break-word;
}

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

.hero-panel {
  align-self: end;
  display: grid;
  gap: 14px;
  max-width: 380px;
  margin-left: auto;
}

.doctor-chip,
.availability-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.2);
}

.doctor-chip img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(244, 217, 145, 0.75);
}

.doctor-chip strong,
.availability-card strong {
  display: block;
  line-height: 1.25;
}

.doctor-chip span,
.availability-card span {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
}

.availability-card svg {
  width: 38px;
  height: 38px;
  padding: 8px;
  border-radius: 50%;
  background: rgba(244, 217, 145, 0.17);
  color: #f4d991;
}

.trust-strip {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: -72px;
  margin-bottom: 54px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  box-shadow: var(--shadow);
}

.trust-strip div {
  min-height: 118px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 22px;
  background: var(--surface);
  backdrop-filter: blur(18px);
}

.trust-strip strong {
  color: var(--navy);
  font-size: clamp(1.65rem, 3.5vw, 2.45rem);
  line-height: 1;
}

[data-theme="dark"] .trust-strip strong {
  color: #fff;
}

.trust-strip span {
  color: var(--muted);
  font-weight: 700;
}

.section {
  padding: 88px 0;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.2fr);
  gap: 56px;
  align-items: start;
}

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

.section-heading.centered {
  margin-inline: auto;
  text-align: center;
}

.section-heading h2 {
  color: var(--ink);
  font-size: clamp(2rem, 4.8vw, 3.65rem);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 1.03rem;
}

.profile-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.profile-card,
.service-card,
.booking-card,
.contact-panel,
.testimonial,
.compare-card,
.media-card,
.blog-card,
.newsletter,
.emergency-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.profile-card {
  min-height: 220px;
  padding: 24px;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.profile-card:hover,
.service-card:hover,
.compare-card:hover,
.media-card:hover,
.blog-card:hover {
  transform: translateY(-6px);
  border-color: rgba(201, 164, 92, 0.48);
  box-shadow: var(--shadow);
}

.profile-card svg,
.service-card > svg,
.media-card > svg {
  width: 42px;
  height: 42px;
  padding: 9px;
  border-radius: var(--radius);
  background: rgba(12, 95, 168, 0.1);
  color: var(--blue);
}

.profile-card h3,
.service-card h3,
.media-card h3,
.blog-card h3,
.compare-card h3 {
  margin: 18px 0 10px;
  color: var(--ink);
  font-size: 1.12rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.profile-card p,
.service-card p,
.media-card p {
  margin: 0;
  color: var(--muted);
}

.highlight-card {
  background: linear-gradient(145deg, rgba(8, 35, 63, 0.96), rgba(12, 95, 168, 0.9));
  color: #fff;
}

.highlight-card h3,
.highlight-card p {
  color: #fff;
}

.highlight-card svg {
  background: rgba(244, 217, 145, 0.18);
  color: #f4d991;
}

.chamber-section {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 12% 14%, rgba(201, 164, 92, 0.24), transparent 30%),
    radial-gradient(circle at 84% 18%, rgba(255, 255, 255, 0.14), transparent 28%),
    linear-gradient(135deg, rgba(8, 35, 63, 0.98) 0%, rgba(12, 95, 168, 0.94) 58%, rgba(15, 140, 137, 0.84) 100%);
}

.chamber-section .section-heading h2 {
  color: #fff;
}

.chamber-section .section-heading p {
  color: rgba(255, 255, 255, 0.78);
}

.chamber-section .section-kicker {
  color: #f4d991;
}

.chamber-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 36px;
}

.chamber-card {
  min-height: 334px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 34px 38px;
  border: 1px solid rgba(244, 217, 145, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  color: #40505d;
  text-align: center;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(12px);
  transition:    transform 0.22s ease,    border-color 0.22s ease,    box-shadow 0.22s ease,    background 0.22s ease;
  -webkit-border-radius: 8px;
  -moz-border-radius: 8px;
  -ms-border-radius: 8px;
  -o-border-radius: 8px;
}

.chamber-card:hover {
  transform: translateY(-7px);
  border-color: rgba(201, 164, 92, 0.72);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 32px 78px rgba(0, 0, 0, 0.24);
}

.chamber-card-wide {
  grid-column: 1 / -1;
  width: min(520px, 100%);
  justify-self: center;
}

.chamber-card > svg {
  width: 72px;
  height: 72px;
  margin-bottom: 16px;
  color: var(--blue);
  stroke-width: 2.5;
}

.chamber-city {
  color: #b98b23;
  font-size: clamp(1.65rem, 3vw, 2rem);
  line-height: 1.2;
  font-weight: 700;
}

.chamber-card h3 {
  margin: 18px 0 18px;
  color: #0c5fa8;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  line-height: 1.3;
  font-weight: 700;
}

.chamber-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chamber-card li {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 6px;
  color: #4f5f6d;
  font-size: 0.96rem;
  line-height: 1.5;
}

.chamber-card li svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  color: #c9a45c;
  stroke-width: 2.6;
}

.chamber-card a {
  color: #08233f;
  font-weight: 700;
}

.chamber-card a:hover {
  color: #0c5fa8;
}

.chamber-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(760px, 100%);
  margin: 26px auto 0;
  padding: 20px;
  border: 1px solid rgba(244, 217, 145, 0.32);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(16px);
}

.chamber-cta strong,
.chamber-cta span {
  display: block;
}

.chamber-cta strong {
  font-size: 1.05rem;
  line-height: 1.35;
}

.chamber-cta span {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 650;
}

.services-section {
  background:
    linear-gradient(180deg, rgba(8, 35, 63, 0.04), transparent),
    linear-gradient(90deg, rgba(201, 164, 92, 0.08), rgba(15, 140, 137, 0.06));
}

.service-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 30px 0;
}

.service-tab {
  min-height: 42px;
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
  font-weight: 800;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.service-tab.active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

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

.service-card {
  min-height: 286px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.service-card.hidden {
  display: none;
}

.service-card span {
  position: absolute;
  left: 24px;
  bottom: 22px;
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.appointment-section {
  background: linear-gradient(135deg, rgba(8, 35, 63, 0.96), rgba(12, 95, 168, 0.9) 55%, rgba(15, 140, 137, 0.86));
  color: #fff;
}

.appointment-section .section-heading h2,
.appointment-section .section-heading p {
  color: #fff;
}

.appointment-section .section-heading p {
  color: rgba(255, 255, 255, 0.78);
}

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

.emergency-box {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.emergency-box svg {
  color: #f4d991;
}

.emergency-box strong,
.emergency-box a {
  display: block;
}

.emergency-box a {
  color: #fff;
  font-weight: 900;
}

.booking-card {
  padding: 26px;
  background: rgba(255, 255, 255, 0.94);
  color: #0c1b2b;
}

.booking-card fieldset {
  margin: 0 0 22px;
  padding: 0;
  border: 0;
}

.booking-card legend,
label span {
  display: block;
  margin-bottom: 9px;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 900;
}

.booking-card legend,
.booking-card label span {
  color: #0c1b2b;
}

.date-strip,
.slot-grid {
  display: grid;
  gap: 10px;
}

.date-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.date-pill,
.slot {
  min-height: 58px;
  border: 1px solid rgba(8, 35, 63, 0.14);
  border-radius: var(--radius);
  background: #f6f9fc;
  color: #0c1b2b;
  font-weight: 850;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}

.date-pill {
  display: grid;
  align-content: center;
  gap: 2px;
  padding: 10px;
  text-align: center;
}

.date-pill small {
  color: #64748b;
  font-weight: 800;
}

.date-pill.active,
.slot.active {
  background: #08233f;
  color: #fff;
  border-color: #08233f;
  box-shadow: 0 12px 26px rgba(8, 35, 63, 0.16);
}

.date-pill.active small {
  color: rgba(255, 255, 255, 0.74);
}

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

.slot.disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

label {
  display: block;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(8, 35, 63, 0.14);
  border-radius: var(--radius);
  background: #f9fbfd;
  color: #0c1b2b;
  padding: 13px 14px;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

textarea {
  resize: vertical;
  min-height: 118px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(12, 95, 168, 0.58);
  box-shadow: 0 0 0 4px rgba(12, 95, 168, 0.09);
  outline: 0;
  background: #fff;
}

.booking-card > label {
  margin-top: 14px;
}

.booking-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.form-note {
  margin: 12px 0 0;
  color: #64748b;
  font-size: 0.9rem;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.contact-panel {
  overflow: hidden;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
}

.contact-form {
  padding: 26px;
}

.contact-form label + label {
  margin-top: 14px;
}

.contact-form button {
  margin-top: 18px;
}

.map-frame {
  min-height: 430px;
  border-left: 1px solid var(--line);
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: saturate(0.9) contrast(1.02);
}

.reviews-section {
  background: linear-gradient(180deg, rgba(201, 164, 92, 0.08), rgba(12, 95, 168, 0.04));
}

.testimonial-shell {
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  gap: 18px;
  align-items: center;
  margin-top: 34px;
}

.testimonial-track {
  position: relative;
  min-height: 300px;
}

.testimonial {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 38px;
  text-align: center;
  opacity: 0;
  transform: translateX(16px) scale(0.98);
  pointer-events: none;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.testimonial.active {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
}

.stars {
  color: #d6a64d;
  font-size: 1.25rem;
  letter-spacing: 0;
}

.testimonial p {
  max-width: 760px;
  margin: 18px auto;
  color: var(--ink);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.65;
}

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

.video-placeholder {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius);
  background: rgba(12, 95, 168, 0.08);
  color: var(--blue);
  font-weight: 900;
}

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

.compare-card {
  overflow: hidden;
  background: var(--surface-solid);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.compare-card h3 {
  margin: 0;
  padding: 18px 20px;
}

.compare-image {
  position: relative;
  min-height: 250px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  padding: 18px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.compare-image::before,
.compare-image::after {
  content: "";
  position: absolute;
  inset: 0;
}

.compare-image::before {
  width: 50%;
  background: linear-gradient(135deg, rgba(8, 35, 63, 0.52), rgba(185, 95, 115, 0.44));
  border-right: 2px solid rgba(255, 255, 255, 0.84);
}

.compare-image::after {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.04));
}

.compare-image span {
  position: relative;
  z-index: 2;
  padding: 8px 11px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  color: #08233f;
  font-weight: 900;
  font-size: 0.78rem;
}

.compare-one {
  background-image: url("https://images.unsplash.com/photo-1579684385127-1ef15d508118?auto=format&fit=crop&w=900&q=82");
}

.compare-two {
  background-image: url("https://images.unsplash.com/photo-1581595220892-b0739db3ba8c?auto=format&fit=crop&w=900&q=82");
}

.compare-three {
  background-image: url("https://images.unsplash.com/photo-1505751172876-fa1923c5c528?auto=format&fit=crop&w=900&q=82");
}

.media-section {
  background:
    linear-gradient(180deg, rgba(8, 35, 63, 0.04), transparent),
    linear-gradient(90deg, rgba(15, 140, 137, 0.08), rgba(201, 164, 92, 0.08));
}

.social-row {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.social-row a,
.floating-social a {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--blue);
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}

.social-row a:hover,
.floating-social a:hover {
  transform: translateY(-3px);
  background: var(--navy);
  color: #fff;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.media-card {
  min-height: 220px;
  padding: 24px;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.youtube-card {
  grid-column: span 2;
  background:
    linear-gradient(135deg, rgba(8, 35, 63, 0.9), rgba(12, 95, 168, 0.78)),
    url("https://images.unsplash.com/photo-1532938911079-1b06ac7ceec7?auto=format&fit=crop&w=1200&q=82") center/cover;
  color: #fff;
}

.youtube-card h3,
.youtube-card p {
  color: #fff;
}

.youtube-card > svg {
  color: #f4d991;
  background: rgba(255, 255, 255, 0.14);
}

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

.mini-feed span {
  aspect-ratio: 1;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(8, 35, 63, 0.36), rgba(201, 164, 92, 0.28)),
    url("https://images.unsplash.com/photo-1576091160399-112ba8d25d1d?auto=format&fit=crop&w=300&q=70") center/cover;
}

.insights-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  gap: 24px;
  margin-top: 34px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.blog-card {
  overflow: hidden;
  background: var(--surface-solid);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

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

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

.blog-card span {
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.faq-list {
  display: grid;
  gap: 12px;
}

details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 18px 20px;
  box-shadow: var(--shadow-soft);
}

summary {
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
}

details p {
  margin: 12px 0 0;
  color: var(--muted);
}

.newsletter {
  display: grid;
  grid-template-columns: 1fr minmax(220px, 340px) auto;
  gap: 16px;
  align-items: center;
  margin-top: 26px;
  padding: 24px;
}

.newsletter h3 {
  margin: 6px 0 0;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
}

.site-footer {
  padding: 58px 0 28px;
  background: #06192d;
  color: #dcecff;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) 0.7fr 0.7fr;
  gap: 44px;
}

.footer-brand small,
.site-footer p,
.site-footer a,
.site-footer span {
  color: rgba(220, 236, 255, 0.76);
}

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

.site-footer h3 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 1rem;
}

.site-footer a,
.site-footer span {
  display: block;
  margin: 8px 0;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid rgba(220, 236, 255, 0.12);
}

.floating-social {
  position: fixed;
  right: 18px;
  bottom: 24px;
  z-index: 80;
  display: grid;
  gap: 10px;
}

.floating-social a {
  box-shadow: var(--shadow-soft);
}

.social-link-rail {
  position: fixed;
  left: 18px;
  top: 50%;
  z-index: 82;
  display: grid;
  gap: 12px;
  transform: translateY(-50%);
}

.social-link-rail a {
  position: relative;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  background: #1c3045;
  color: #fff;
  box-shadow: 0 16px 34px rgba(8, 35, 63, 0.22);
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.social-link-rail a::after {
  content: attr(data-tooltip);
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  padding: 7px 10px;
  border-radius: 999px;
  background: #08233f;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translate(-6px, -50%);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}

.social-link-rail a:hover {
  transform: translateY(-3px);
  background: linear-gradient(145deg, #08233f, #0c5fa8);
  box-shadow: 0 20px 44px rgba(12, 95, 168, 0.28);
}

.social-link-rail a:hover::after {
  opacity: 1;
  transform: translate(0, -50%);
}

@media (max-width: 1180px) {
  .social-link-rail {
    display: none;
  }
}

.mobile-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  display: none;
  grid-template-columns: repeat(3, 1fr);
  background: rgba(255, 255, 255, 0.94);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

[data-theme="dark"] .mobile-cta {
  background: rgba(8, 19, 32, 0.94);
}

.mobile-cta a {
  min-height: 58px;
  display: grid;
  place-items: center;
  gap: 2px;
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 900;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 120;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: min(420px, calc(100% - 32px));
  padding: 14px 16px;
  border-radius: var(--radius);
  background: #08233f;
  color: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 18px);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast svg {
  color: #f4d991;
}

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

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1080px) {
  .nav-shell {
    grid-template-columns: auto auto;
  }

  .nav-toggle {
    display: inline-grid;
    justify-self: end;
  }

  .nav-links,
  .nav-actions {
    grid-column: 1 / -1;
  }

  .nav-links {
    display: none;
    justify-content: start;
    flex-wrap: wrap;
    padding-top: 8px;
  }

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

  .nav-actions {
    display: none;
  }

  .nav-actions.open {
    display: flex;
    flex-wrap: wrap;
  }

  .hero-grid,
  .section-grid,
  .appointment-grid,
  .contact-panel,
  .insights-layout {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    margin-left: 0;
  }

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

  .contact-panel {
    overflow: visible;
  }

  .map-frame {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 760px) {
  :root {
    --container: min(100% - 28px, 1180px);
  }

  body {
    padding-bottom: 58px;
  }

  .site-header {
    padding: 10px 0;
  }

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

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

  .brand small {
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hero {
    min-height: auto;
  }

  .hero-media {
    background-position: 62% center;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(4, 18, 34, 0.82), rgba(4, 24, 42, 0.76) 44%, rgba(4, 24, 42, 0.94)),
      linear-gradient(90deg, rgba(4, 18, 34, 0.62), rgba(4, 18, 34, 0.22));
  }

  .hero-grid {
    padding: 92px 0 120px;
    gap: 28px;
  }

  .hero h1 {
    font-size: clamp(1.82rem, 7.5vw, 2.25rem);
    line-height: 1.18;
  }

  .hero-actions,
  .booking-actions,
  .contact-actions {
    align-items: stretch;
    flex-direction: column;
  }

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

  .trust-strip {
    grid-template-columns: repeat(2, 1fr);
    margin-top: -60px;
  }

  .trust-strip div {
    min-height: 104px;
    padding: 18px;
  }

  .section {
    padding: 64px 0;
  }

  .profile-layout,
  .services-grid,
  .gallery-grid,
  .blog-grid,
  .media-grid,
  .chamber-grid {
    grid-template-columns: 1fr;
  }

  .chamber-card,
  .chamber-card-wide {
    grid-column: auto;
    width: 100%;
  }

  .chamber-card {
    min-height: auto;
    padding: 30px 22px;
  }

  .chamber-cta {
    align-items: stretch;
    flex-direction: column;
    text-align: center;
  }

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

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

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

  .testimonial-shell {
    grid-template-columns: 1fr;
  }

  .testimonial-track {
    min-height: 390px;
  }

  .testimonial {
    padding: 28px 20px;
  }

  .carousel-button {
    display: none;
  }

  .youtube-card {
    grid-column: auto;
  }

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

  .footer-grid,
  .footer-bottom {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    gap: 26px;
  }

  .footer-bottom {
    display: grid;
  }

  .floating-social {
    display: none;
  }

  .mobile-cta {
    display: grid;
  }

  .toast {
    bottom: 74px;
  }
}

@media (max-width: 420px) {
  .date-strip,
  .slot-grid,
  .trust-strip {
    grid-template-columns: 1fr;
  }

  .doctor-chip,
  .availability-card {
    align-items: flex-start;
  }
}
