/* ==========================================================================
   Cabinet Dentaire – Dr. Wajih Zaim · Tanger
   Visual identity: calm medical blue + soft turquoise, editorial serif headings
   ========================================================================== */

/* ---------- Fonts (self-hosted) ---------- */
@font-face { font-family: "Manrope"; src: url("../fonts/manrope.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }
@font-face { font-family: "DM Serif Display"; src: url("../fonts/dmserif.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Serif Display"; src: url("../fonts/dmserif-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Tajawal"; src: url("../fonts/tajawal-400.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Tajawal"; src: url("../fonts/tajawal-500.woff2") format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Tajawal"; src: url("../fonts/tajawal-700.woff2") format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Tajawal"; src: url("../fonts/tajawal-800.woff2") format("woff2"); font-weight: 800; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF; }

/* ---------- Design tokens ---------- */
:root {
  --c-primary: #176B87;
  --c-primary-700: #0f5169;
  --c-primary-50: #e8f3f7;
  --c-teal: #48B9B0;
  --c-teal-50: #e6f6f4;
  --c-bg: #ffffff;
  --c-soft: #F4F9FB;
  --c-navy: #193247;
  --c-navy-900: #10243a;
  --c-text: #193247;
  --c-muted: #5b7083;
  --c-line: #e1ebf0;
  --c-wa: #25D366;

  --f-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-display: "DM Serif Display", Georgia, "Times New Roman", serif;

  --r-sm: 12px; --r-md: 20px; --r-lg: 28px; --r-xl: 40px;
  --sh-sm: 0 2px 10px rgba(25, 50, 71, .06);
  --sh-md: 0 12px 34px -12px rgba(25, 50, 71, .18);
  --sh-lg: 0 30px 60px -24px rgba(23, 107, 135, .35);
  --ease: cubic-bezier(.22, .8, .24, 1);

  --bs-primary: #176B87;
  --bs-primary-rgb: 23, 107, 135;
  --bs-body-color: #193247;
  --bs-body-font-family: var(--f-body);
  --bs-link-color: #176B87;
  --bs-link-color-rgb: 23, 107, 135;
  --bs-link-hover-color: #0f5169;
  --bs-link-hover-color-rgb: 15, 81, 105;
  --bs-border-radius: 12px;
}
html[dir="rtl"] {
  --f-body: "Tajawal", "Manrope", system-ui, sans-serif;
  --f-display: "Tajawal", "DM Serif Display", serif;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  font-family: var(--f-body);
  color: var(--c-text);
  background: var(--c-bg);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
html[dir="rtl"] body { font-size: 1.125rem; line-height: 1.85; }
h1, h2, h3, h4, h5 { color: var(--c-navy); font-weight: 700; line-height: 1.2; }
a { text-decoration: none; transition: color .2s; }
img { max-width: 100%; height: auto; }
::selection { background: var(--c-teal); color: #fff; }
:focus-visible { outline: 3px solid rgba(72, 185, 176, .6); outline-offset: 2px; border-radius: 6px; }

.skip-link { position: absolute; inset-inline-start: 1rem; top: -100px; z-index: 2000; background: var(--c-navy); color: #fff; padding: .6rem 1rem; border-radius: 8px; }
.skip-link:focus { top: 1rem; color: #fff; }
.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.flip-rtl { display: inline-block; }
html[dir="rtl"] .flip-rtl { transform: scaleX(-1); }
.text-white-75 { color: rgba(255, 255, 255, .78) !important; }

/* ---------- Buttons ---------- */
.btn { font-weight: 700; border-radius: 999px; padding: .7rem 1.4rem; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; letter-spacing: .01em; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .2s, color .2s, border-color .2s; }
.btn-lg { padding: .95rem 1.8rem; font-size: 1.02rem; }
.btn:active { transform: translateY(1px); }
.btn-primary {
  --bs-btn-bg: var(--c-primary); --bs-btn-border-color: var(--c-primary);
  --bs-btn-hover-bg: var(--c-primary-700); --bs-btn-hover-border-color: var(--c-primary-700);
  --bs-btn-active-bg: var(--c-primary-700); --bs-btn-active-border-color: var(--c-primary-700);
  --bs-btn-disabled-bg: var(--c-primary); --bs-btn-disabled-border-color: var(--c-primary);
  box-shadow: 0 10px 24px -10px rgba(23, 107, 135, .65);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(23, 107, 135, .7); }
.btn-outline-primary {
  --bs-btn-color: var(--c-primary); --bs-btn-border-color: rgba(23, 107, 135, .35);
  --bs-btn-hover-bg: var(--c-primary); --bs-btn-hover-border-color: var(--c-primary);
  --bs-btn-active-bg: var(--c-primary-700); --bs-btn-active-border-color: var(--c-primary-700);
  border-width: 1.5px;
}
.btn-ghost { background: rgba(255, 255, 255, .7); color: var(--c-navy); border: 1.5px solid var(--c-line); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: #fff; color: var(--c-primary); border-color: rgba(23, 107, 135, .35); transform: translateY(-2px); }
.btn-whatsapp { background: var(--c-wa); color: #fff; border: 0; }
.btn-whatsapp:hover { background: #1ebe5b; color: #fff; }
.btn-link-arrow { padding-inline: 0; color: var(--c-primary); border: 0; }
.btn-link-arrow i { transition: transform .25s var(--ease); }
.btn-link-arrow:hover i { transform: translateX(4px); }
html[dir="rtl"] .btn-link-arrow:hover i { transform: scaleX(-1) translateX(4px); }
.btn-light { color: var(--c-primary); }

/* ---------- Top bar & header ---------- */
.topbar { background: var(--c-navy); color: rgba(255, 255, 255, .78); font-size: .84rem; padding: .5rem 0; }
.topbar a { color: rgba(255, 255, 255, .85); }
.topbar a:hover { color: #fff; }
.topbar i { color: var(--c-teal); margin-inline-end: .3rem; }
.topbar-status i { font-size: .5rem; vertical-align: middle; color: #f59e0b; }
.topbar-status.is-open i { color: #34d399; }

.site-header { position: sticky; top: 0; z-index: 1030; border-bottom: 1px solid transparent; transition: box-shadow .3s, border-color .3s; }
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(255, 255, 255, .88); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); transition: background .3s; }
.site-header.is-scrolled { box-shadow: 0 8px 30px -18px rgba(25, 50, 71, .35); border-color: var(--c-line); }
.site-header.is-scrolled::before { background: rgba(255, 255, 255, .96); }
.header-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: nowrap; gap: 1rem; }
.header-row .brand { min-width: 0; }
.desktop-nav { flex-direction: row; margin-inline: auto; }
.header-actions { display: flex; align-items: center; gap: .5rem; flex-shrink: 0; }
.site-header .navbar { padding: .9rem 0; transition: padding .3s var(--ease); }
.site-header.is-scrolled .navbar { padding: .55rem 0; }

.brand { display: inline-flex; align-items: center; gap: .75rem; color: var(--c-navy); }
.brand:hover { color: var(--c-navy); }
.brand-mark { flex-shrink: 0; border-radius: 14px; box-shadow: 0 8px 18px -8px rgba(23, 107, 135, .6); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--f-display); font-size: 1.32rem; letter-spacing: .01em; }
html[dir="rtl"] .brand-name { font-weight: 800; }
.brand-sub { font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; color: var(--c-muted); font-weight: 600; margin-top: .2rem; }
html[dir="rtl"] .brand-sub { letter-spacing: 0; font-size: .82rem; }
.brand-light, .brand-light:hover { color: #fff; }
.brand-light .brand-sub { color: rgba(255, 255, 255, .6); }

.navbar-nav .nav-link { color: var(--c-navy); font-weight: 600; font-size: .97rem; padding: .5rem 1rem !important; position: relative; }
.navbar-nav .nav-link::after { content: ""; position: absolute; inset-inline: 1rem; bottom: .2rem; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--c-primary), var(--c-teal)); transform: scaleX(0); transform-origin: center; transition: transform .3s var(--ease); }
.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active { color: var(--c-primary); }
.navbar-nav .nav-link:hover::after, .navbar-nav .nav-link.active::after { transform: scaleX(1); }

.btn-lang { border: 1.5px solid var(--c-line); border-radius: 999px; padding: .45rem .85rem; font-weight: 700; font-size: .88rem; color: var(--c-navy); background: #fff; }
.btn-lang:hover, .btn-lang.show { border-color: rgba(23, 107, 135, .4); color: var(--c-primary); }
.lang-switch .dropdown-menu { border: 1px solid var(--c-line); border-radius: 14px; padding: .4rem; min-width: 10rem; }
.lang-switch .dropdown-item { border-radius: 10px; padding: .5rem .8rem; font-weight: 600; }
.lang-switch .dropdown-item.active, .lang-switch .dropdown-item:active { background: var(--c-primary-50); color: var(--c-primary); }
.btn-cta { padding: .6rem 1.2rem; font-size: .93rem; }

.navbar-toggler { border: 0; padding: .55rem; width: 44px; height: 44px; border-radius: 12px; background: var(--c-soft); display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.navbar-toggler:focus { box-shadow: none; }
.toggler-bar { width: 20px; height: 2px; border-radius: 2px; background: var(--c-navy); display: block; }
.toggler-bar:nth-child(2) { width: 14px; align-self: center; }

/* Mobile menu (offcanvas, outside the header) */
.mobile-nav { --bs-offcanvas-width: min(360px, 88vw); border: 0 !important; }
.mobile-nav .offcanvas-header { border-bottom: 1px solid var(--c-line); padding: 1rem 1.25rem; }
.mobile-nav .offcanvas-body { padding: 1rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom)); }
.mobile-nav-list { list-style: none; padding: 0; margin: 0; }
.mobile-nav-list a { display: flex; align-items: center; justify-content: space-between; padding: .95rem .25rem; font-size: 1.12rem; font-weight: 700; color: var(--c-navy); border-bottom: 1px solid var(--c-line); }
.mobile-nav-list a i { font-size: .85rem; color: #9fb0bd; }
.mobile-nav-list a.active, .mobile-nav-list a:hover { color: var(--c-primary); }
.mobile-nav-list a.active i { color: var(--c-teal); }
.mobile-nav-langs { display: flex; gap: .5rem; margin-top: 1.25rem; }
.mobile-nav-langs a { flex: 1; text-align: center; padding: .55rem .3rem; border-radius: 12px; border: 1.5px solid var(--c-line); font-weight: 700; font-size: .92rem; color: var(--c-navy); }
.mobile-nav-langs a.active { background: var(--c-primary-50); border-color: rgba(23, 107, 135, .35); color: var(--c-primary); }

@media (max-width: 991.98px) {
  .site-header .navbar { padding: .65rem 0; }
  .brand { gap: .6rem; }
  .brand-name { font-size: 1.12rem; white-space: nowrap; }
  .brand-sub { font-size: .62rem; letter-spacing: .1em; white-space: nowrap; }
  .brand-mark { width: 40px; height: 40px; }
}
@media (max-width: 389.98px) {
  .site-header .brand-sub { display: none; }
  .btn-lang { padding: .4rem .6rem; }
}

/* ---------- Sections & typography ---------- */
.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; position: relative; }
.section-soft { background: var(--c-soft); }
.section-navy { background: radial-gradient(1200px 500px at 100% 0%, rgba(72, 185, 176, .16), transparent 60%), linear-gradient(160deg, var(--c-navy) 0%, var(--c-navy-900) 100%); color: #fff; overflow: hidden; }
.section-head { max-width: 720px; margin: 0 auto 3.25rem; }
.eyebrow { display: inline-flex; align-items: center; gap: .55rem; font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--c-primary); margin-bottom: 1rem; }
html[dir="rtl"] .eyebrow { letter-spacing: 0; font-size: .95rem; }
.eyebrow::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--c-primary), var(--c-teal)); }
.text-center .eyebrow::after { content: ""; width: 26px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--c-teal), var(--c-primary)); }
.eyebrow-light { color: var(--c-teal); }
.section-title { font-family: var(--f-display); font-weight: 400; font-size: clamp(2rem, 4.2vw, 3.1rem); line-height: 1.12; letter-spacing: -.01em; margin-bottom: 1.2rem; }
html[dir="rtl"] .section-title { font-weight: 800; line-height: 1.35; letter-spacing: 0; }
.section-title em, .hero-title em, .page-hero h1 em { font-style: italic; color: var(--c-primary); position: relative; white-space: nowrap; }
html[dir="rtl"] .section-title em, html[dir="rtl"] .hero-title em, html[dir="rtl"] .page-hero h1 em { font-style: normal; }
.section-navy .section-title em, .booking-aside .section-title em { color: var(--c-teal); }
.section-intro { color: var(--c-muted); font-size: 1.1rem; }
.lead-text p { color: var(--c-muted); font-size: 1.1rem; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(3rem, 7vw, 6rem) 0 clamp(4rem, 8vw, 7rem); overflow: hidden; background: linear-gradient(180deg, var(--c-soft) 0%, #fff 100%); }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; }
.orb-1 { width: 520px; height: 520px; background: radial-gradient(circle, rgba(72, 185, 176, .45), transparent 70%); top: -160px; inset-inline-end: -120px; }
.orb-2 { width: 420px; height: 420px; background: radial-gradient(circle, rgba(23, 107, 135, .25), transparent 70%); bottom: -180px; inset-inline-start: -140px; }
.hero-grid { position: absolute; inset: 0; background-image: radial-gradient(rgba(23, 107, 135, .12) 1px, transparent 1px); background-size: 26px 26px; mask-image: linear-gradient(180deg, rgba(0,0,0,.7), transparent 75%); -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.7), transparent 75%); }
.hero .eyebrow { background: #fff; border: 1px solid var(--c-line); padding: .45rem .9rem .45rem .7rem; border-radius: 999px; box-shadow: var(--sh-sm); letter-spacing: .08em; font-size: .74rem; }
.hero .eyebrow::before { display: none; }
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c-teal); box-shadow: 0 0 0 4px rgba(72, 185, 176, .2); }
.hero-title { isolation: isolate; font-family: var(--f-display); font-weight: 400; font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.04; letter-spacing: -.02em; margin: .4rem 0 1.4rem; }
html[dir="rtl"] .hero-title { font-weight: 800; line-height: 1.3; letter-spacing: 0; }
.hero-title em::after { content: ""; position: absolute; inset-inline: 0; bottom: .06em; height: .14em; background: rgba(72, 185, 176, .35); border-radius: 6px; z-index: -1; }
.hero-lead { font-size: 1.15rem; color: var(--c-muted); max-width: 34rem; margin-bottom: 2rem; }
.hero-badges { list-style: none; padding: 0; margin: 2.4rem 0 0; display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; }
.hero-badges li { display: flex; align-items: center; gap: .5rem; font-weight: 600; font-size: .93rem; color: var(--c-navy); }
.hero-badges i { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--c-teal-50); color: var(--c-primary); font-size: .9rem; }

.hero-visual { position: relative; max-width: 520px; margin-inline: auto; padding: 1.5rem 0; }
.hero-frame { position: relative; aspect-ratio: 5 / 6; border-radius: 260px 260px var(--r-xl) var(--r-xl); overflow: hidden; background: linear-gradient(160deg, var(--c-primary) 0%, #2a8fa3 55%, var(--c-teal) 100%); box-shadow: var(--sh-lg); isolation: isolate; }
.hero-frame::before { content: ""; position: absolute; inset: 14px; border-radius: 248px 248px 30px 30px; border: 1px solid rgba(255, 255, 255, .28); z-index: 2; pointer-events: none; }
.hero-frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-illustration { position: absolute; inset: 8% 6% 4%; width: 88%; height: 88%; animation: floaty 7s ease-in-out infinite; }
.float-card, .float-chip { position: absolute; background: rgba(255, 255, 255, .95); backdrop-filter: blur(8px); border-radius: 18px; box-shadow: var(--sh-md); display: flex; align-items: center; gap: .8rem; padding: .85rem 1rem; z-index: 3; border: 1px solid rgba(255, 255, 255, .9); }
.float-card strong, .float-chip strong { display: block; font-size: .9rem; color: var(--c-navy); line-height: 1.25; }
.float-card small, .float-chip small { display: block; font-size: .78rem; color: var(--c-muted); line-height: 1.35; }
.float-card-1 { top: 18%; inset-inline-start: -2.2rem; max-width: 250px; animation: floaty 6s ease-in-out infinite; }
.float-card-2 { bottom: 16%; inset-inline-end: -1.8rem; animation: floaty 7s ease-in-out -2s infinite; }
.float-chip { bottom: -.4rem; inset-inline-start: 12%; padding: .55rem 1rem .55rem .55rem; border-radius: 999px; }
.fc-icon { width: 42px; height: 42px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; background: var(--c-primary-50); color: var(--c-primary); font-size: 1.2rem; }
.fc-icon-teal { background: var(--c-teal-50); color: #2c9a91; }
.chip-avatar { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; flex-shrink: 0; display: grid; place-items: center; background: linear-gradient(135deg, var(--c-primary), var(--c-teal)); color: #fff; font-family: "DM Serif Display", serif; font-size: 1rem; }
.chip-avatar img { width: 100%; height: 100%; object-fit: cover; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (max-width: 575.98px) {
  .float-card-1 { inset-inline-start: -.5rem; top: 8%; max-width: 210px; }
  .float-card-2 { inset-inline-end: -.5rem; }
  .hero-visual { padding-inline: .5rem; }
}

/* ---------- Doctor / welcome ---------- */
.doctor-portrait { position: relative; max-width: 440px; margin-inline: auto; }
.doctor-portrait::before { content: ""; position: absolute; inset: 2rem -1.2rem -1.2rem 2rem; border-radius: var(--r-xl); background: linear-gradient(135deg, var(--c-teal-50), var(--c-primary-50)); z-index: -1; }
html[dir="rtl"] .doctor-portrait::before { inset: 2rem 2rem -1.2rem -1.2rem; }
.doctor-portrait img, .portrait-placeholder { width: 100%; aspect-ratio: 5 / 6; object-fit: cover; border-radius: var(--r-xl); box-shadow: var(--sh-md); }
.portrait-placeholder { display: grid; place-items: center; background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.25), transparent 50%), linear-gradient(150deg, var(--c-primary), var(--c-teal)); }
.portrait-placeholder span { font-family: "DM Serif Display", serif; font-size: clamp(5rem, 12vw, 8rem); color: rgba(255, 255, 255, .92); letter-spacing: .04em; }
.portrait-tag { position: absolute; bottom: 1.4rem; inset-inline-start: -1rem; background: #fff; padding: .7rem 1.1rem; border-radius: 14px; box-shadow: var(--sh-md); font-weight: 700; color: var(--c-navy); }
.portrait-tag i { color: var(--c-teal); }
.quote-card { position: relative; margin: 1.8rem 0; padding: 1.5rem 1.6rem 1.4rem 1.6rem; background: var(--c-soft); border-radius: var(--r-md); border-inline-start: 4px solid var(--c-teal); }
.quote-card > i { position: absolute; top: -.9rem; inset-inline-end: 1.2rem; font-size: 2.6rem; color: var(--c-teal); opacity: .35; }
.quote-card p { font-family: var(--f-display); font-size: 1.22rem; line-height: 1.5; color: var(--c-navy); margin-bottom: .6rem; }
html[dir="rtl"] .quote-card p { font-weight: 500; }
.quote-card footer { font-size: .9rem; font-weight: 700; color: var(--c-primary); }

/* ---------- Service cards ---------- */
.service-card { display: flex; flex-direction: column; height: 100%; padding: 2rem 1.8rem; background: #fff; border-radius: var(--r-lg); border: 1px solid var(--c-line); color: var(--c-text); position: relative; overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.service-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, var(--c-primary), var(--c-teal)); opacity: 0; transition: opacity .35s var(--ease); z-index: 0; }
.service-card > * { position: relative; z-index: 1; }
.service-card h3 { font-size: 1.22rem; margin: 1.3rem 0 .6rem; transition: color .3s; }
.service-card p { color: var(--c-muted); font-size: .98rem; margin-bottom: 1.4rem; flex-grow: 1; transition: color .3s; }
.service-icon { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; font-size: 1.6rem; color: var(--c-primary); background: var(--c-primary-50); transition: background .3s, color .3s, transform .35s var(--ease); }
.service-more { font-weight: 700; font-size: .92rem; color: var(--c-primary); display: inline-flex; gap: .4rem; align-items: center; transition: color .3s; }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); border-color: transparent; }
.service-card:hover::before { opacity: 1; }
.service-card:hover h3, .service-card:hover .service-more { color: #fff; }
.service-card:hover p { color: rgba(255, 255, 255, .85); }
.service-card:hover .service-icon { background: rgba(255, 255, 255, .18); color: #fff; transform: rotate(-6deg) scale(1.05); }

/* ---------- Why cards ---------- */
.why-card { height: 100%; padding: 2rem; border-radius: var(--r-lg); background: linear-gradient(180deg, #fff, var(--c-soft)); border: 1px solid var(--c-line); position: relative; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.why-card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.why-num { position: absolute; top: 1.4rem; inset-inline-end: 1.6rem; font-family: "DM Serif Display", serif; font-size: 2.4rem; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(23, 107, 135, .25); }
.why-icon { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: #fff; box-shadow: var(--sh-sm); color: var(--c-teal); font-size: 1.4rem; margin-bottom: 1.2rem; }
.why-card h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.why-card p { color: var(--c-muted); margin: 0; font-size: .97rem; }

/* ---------- Clinic environment ---------- */
.check-list { list-style: none; padding: 0; margin: 1.6rem 0; }
.check-list li { position: relative; padding-inline-start: 2.1rem; margin-bottom: .85rem; font-weight: 600; }
.check-list li::before { content: "\F26E"; font-family: "bootstrap-icons"; position: absolute; inset-inline-start: 0; top: .05rem; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--c-teal-50); color: var(--c-primary); display: grid; place-items: center; font-size: 1rem; }
.check-list-light li { color: #fff; }
.check-list-light li::before { background: rgba(72, 185, 176, .2); color: var(--c-teal); }
.mosaic { display: grid; gap: 1rem; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 150px; }
.mosaic figure { margin: 0; border-radius: var(--r-md); overflow: hidden; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.mosaic figure:hover img { transform: scale(1.06); }
.mosaic figure:nth-child(1) { grid-column: span 4; grid-row: span 2; }
.mosaic figure:nth-child(2) { grid-column: span 2; grid-row: span 2; }
.mosaic figure:nth-child(n+3) { grid-column: span 2; }
.mosaic-1 figure:nth-child(1) { grid-column: span 6; }
.mosaic-2 figure:nth-child(1), .mosaic-2 figure:nth-child(2) { grid-column: span 3; }
.mosaic-4 figure:nth-child(3), .mosaic-4 figure:nth-child(4) { grid-column: span 3; }
.env-tiles { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: 1fr 1fr auto; gap: 1rem; min-height: 380px; }
.env-tile { border-radius: var(--r-lg); padding: 1.8rem; display: flex; flex-direction: column; justify-content: flex-end; gap: .8rem; background: linear-gradient(160deg, rgba(255,255,255,.1), rgba(255,255,255,.03)); border: 1px solid rgba(255, 255, 255, .12); font-weight: 700; position: relative; overflow: hidden; }
.env-tile i { font-size: 2rem; color: var(--c-teal); }
.env-tile-lg { grid-row: span 2; background: linear-gradient(160deg, rgba(72, 185, 176, .35), rgba(23, 107, 135, .35)); }
.env-tile-lg i { font-size: 3.2rem; }
.env-tile::after { content: ""; position: absolute; width: 180px; height: 180px; border-radius: 50%; border: 1px solid rgba(255,255,255,.12); top: -60px; inset-inline-end: -60px; }
.env-note { grid-column: span 2; margin: 0; font-size: .88rem; color: rgba(255, 255, 255, .6); }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; top: 44px; inset-inline: 16%; height: 2px; background: repeating-linear-gradient(90deg, var(--c-teal) 0 8px, transparent 8px 16px); opacity: .5; }
.step { text-align: center; padding: 0 1rem; position: relative; }
.step-icon { position: relative; width: 88px; height: 88px; margin: 0 auto 1.4rem; border-radius: 50%; display: grid; place-items: center; background: #fff; box-shadow: var(--sh-md); font-size: 2rem; color: var(--c-primary); border: 6px solid var(--c-soft); }
.step-icon b { position: absolute; top: -4px; inset-inline-end: -4px; width: 30px; height: 30px; border-radius: 50%; background: var(--c-teal); color: #fff; font-size: .85rem; display: grid; place-items: center; }
.step h3 { font-size: 1.2rem; }
.step p { color: var(--c-muted); margin: 0; }
@media (max-width: 767.98px) { .steps { grid-template-columns: 1fr; } .steps::before { display: none; } }

/* ---------- Testimonials ---------- */
.testi-card { height: 100%; margin: 0; padding: 2rem; border-radius: var(--r-lg); background: #fff; box-shadow: var(--sh-sm); border: 1px solid var(--c-line); display: flex; flex-direction: column; }
.testi-card blockquote { flex-grow: 1; margin: 1rem 0 1.4rem; }
.testi-card blockquote p { font-size: 1.02rem; color: var(--c-text); margin: 0; }
.testi-card figcaption { display: flex; align-items: center; gap: .75rem; font-weight: 700; }
.testi-avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--c-primary), var(--c-teal)); color: #fff; }
.stars { color: #f5b301; letter-spacing: .1rem; }

/* ---------- Booking ---------- */
.section-booking { background: linear-gradient(180deg, #fff 0%, var(--c-soft) 100%); }
.booking-wrap { border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--sh-lg); background: #fff; }
.booking-aside { padding: clamp(2rem, 4vw, 3.5rem); color: #fff; background: radial-gradient(500px 300px at 0% 100%, rgba(72, 185, 176, .35), transparent 70%), linear-gradient(160deg, var(--c-primary) 0%, var(--c-navy) 100%); }
.booking-aside .section-title { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.booking-main { padding: clamp(1.6rem, 4vw, 3.5rem); }
.booking-contacts { display: grid; gap: .8rem; margin-top: 2rem; }
.bc-item { display: flex; align-items: center; gap: 1rem; padding: .9rem 1rem; border-radius: 16px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); color: #fff; transition: background .25s; }
a.bc-item:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.bc-item > i { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .12); font-size: 1.2rem; color: var(--c-teal); flex-shrink: 0; }
.bc-item small { display: block; font-size: .78rem; color: rgba(255, 255, 255, .65); }
.bc-item b { font-weight: 700; }

.form-label { font-weight: 700; font-size: .9rem; color: var(--c-navy); margin-bottom: .4rem; }
.form-label .req { color: #c2410c; }
.form-label .opt { font-weight: 500; color: var(--c-muted); font-size: .82rem; }
.form-control, .form-select { border: 1.5px solid var(--c-line); border-radius: 14px; padding: .8rem 1rem; font-size: 1rem; background-color: #fbfdfe; transition: border-color .2s, box-shadow .2s, background-color .2s; }
.form-control:focus, .form-select:focus { border-color: var(--c-teal); box-shadow: 0 0 0 4px rgba(72, 185, 176, .18); background-color: #fff; }
.form-control::placeholder { color: #9fb0bd; }
html[dir="rtl"] input[type="tel"], html[dir="rtl"] input[type="email"] { text-align: right; }
.form-check-input:checked { background-color: var(--c-primary); border-color: var(--c-primary); }
.form-check-input:focus { box-shadow: 0 0 0 4px rgba(72, 185, 176, .18); border-color: var(--c-teal); }
.form-note { font-size: .86rem; color: var(--c-muted); max-width: 26rem; }
.form-note i { color: var(--c-teal); }
.alert { border-radius: 14px; }

/* ---------- Location ---------- */
.contact-list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1.2rem; }
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact-list li > div { min-width: 0; overflow-wrap: anywhere; }
.contact-list small { display: block; text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; font-weight: 800; color: var(--c-muted); margin-bottom: .1rem; }
html[dir="rtl"] .contact-list small { letter-spacing: 0; font-size: .85rem; }
.contact-list a { font-weight: 700; color: var(--c-navy); }
.contact-list a:hover { color: var(--c-primary); }
.cl-icon { width: 48px; height: 48px; flex-shrink: 0; border-radius: 14px; display: grid; place-items: center; background: var(--c-primary-50); color: var(--c-primary); font-size: 1.2rem; }
.cl-icon-wa { background: #e8faf0; color: #1ea952; }
.cl-link { display: inline-block; margin-top: .3rem; font-size: .9rem; color: var(--c-primary) !important; }
.map-wrap { position: relative; height: 100%; min-height: 480px; border-radius: var(--r-xl); overflow: hidden; background: var(--c-soft); box-shadow: var(--sh-md); }
.map-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: saturate(.85); }
.map-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 2rem 2rem 14rem; color: var(--c-muted); background-image: radial-gradient(rgba(23, 107, 135, .12) 1px, transparent 1px); background-size: 22px 22px; }
.map-placeholder i { font-size: 3rem; color: var(--c-teal); }
.hours-card { position: absolute; inset-inline-end: 1.2rem; bottom: 1.2rem; width: min(330px, calc(100% - 2.4rem)); background: rgba(255, 255, 255, .97); backdrop-filter: blur(8px); border-radius: var(--r-md); padding: 1.3rem 1.4rem; box-shadow: var(--sh-md); }
.hours-card h3 { font-size: 1rem; margin-bottom: .8rem; }
.hours-card h3 i { color: var(--c-teal); }
.hours-table { width: 100%; font-size: .88rem; }
.hours-table th { font-weight: 600; padding: .28rem 0; color: var(--c-navy); }
.hours-table td { text-align: end; padding: .28rem 0; color: var(--c-muted); font-variant-numeric: tabular-nums; }
html[dir="rtl"] .hours-table td { text-align: left; }
.hours-table tr.is-today th, .hours-table tr.is-today td { color: var(--c-primary); font-weight: 800; }
.hours-table tr.is-closed td { color: #b45309; }
.hours-note { font-size: .78rem; color: var(--c-muted); margin: .6rem 0 0; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; padding: clamp(3.5rem, 7vw, 5.5rem) 0 clamp(3rem, 6vw, 4.5rem); background: linear-gradient(180deg, var(--c-soft), #fff); overflow: hidden; }
.page-hero::after { content: ""; position: absolute; width: 480px; height: 480px; border-radius: 50%; inset-inline-end: -160px; top: -220px; background: radial-gradient(circle, rgba(72, 185, 176, .3), transparent 70%); }
.page-hero h1 { font-family: var(--f-display); font-weight: 400; font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.1; margin-bottom: 1rem; max-width: 50rem; }
html[dir="rtl"] .page-hero h1 { font-weight: 800; line-height: 1.35; }
.page-hero p { font-size: 1.15rem; color: var(--c-muted); max-width: 40rem; margin: 0; }
.breadcrumb { font-size: .86rem; margin-bottom: 1.2rem; --bs-breadcrumb-divider-color: #9fb0bd; }
.breadcrumb a { color: var(--c-muted); }
.breadcrumb a:hover { color: var(--c-primary); }
.breadcrumb-item.active { color: var(--c-primary); font-weight: 600; }
html[dir="rtl"] .breadcrumb-item + .breadcrumb-item::before { float: right; padding-left: var(--bs-breadcrumb-item-padding-x); padding-right: 0; }

/* ---------- About ---------- */
.info-card { padding: 2rem; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--c-line); height: 100%; }
.info-card h2, .info-card h3 { font-size: 1.25rem; display: flex; align-items: center; gap: .7rem; margin-bottom: 1.1rem; }
.info-card h2 i, .info-card h3 i { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--c-primary-50); color: var(--c-primary); font-size: 1.1rem; }
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline li { position: relative; padding-inline-start: 1.6rem; padding-bottom: .9rem; }
.timeline li::before { content: ""; position: absolute; inset-inline-start: 0; top: .6rem; width: 10px; height: 10px; border-radius: 50%; background: var(--c-teal); box-shadow: 0 0 0 4px var(--c-teal-50); }
.timeline li::after { content: ""; position: absolute; inset-inline-start: 4px; top: 1.3rem; bottom: 0; width: 2px; background: var(--c-line); }
.timeline li:last-child::after { display: none; }
.pending-note { color: var(--c-muted); font-style: italic; margin: 0; }
.value-card { text-align: center; padding: 2rem 1.5rem; }
.value-card i { font-size: 2rem; color: var(--c-teal); }
.value-card h3 { font-size: 1.2rem; margin: .8rem 0 .4rem; }
.value-card p { color: var(--c-muted); margin: 0; }

/* ---------- Service detail ---------- */
.service-hero-icon { width: 76px; height: 76px; border-radius: 22px; display: grid; place-items: center; font-size: 2.1rem; color: #fff; background: linear-gradient(150deg, var(--c-primary), var(--c-teal)); box-shadow: var(--sh-lg); margin-bottom: 1.4rem; }
.service-image { border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--sh-md); margin-bottom: 2.4rem; }
.service-image img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.prose { font-size: 1.08rem; }
.prose p { color: #33495c; }
.benefits { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: .9rem; margin: 1.2rem 0 2rem; }
.benefits li { display: flex; gap: .8rem; align-items: flex-start; padding: 1rem 1.1rem; border-radius: 16px; background: var(--c-soft); font-weight: 600; }
.benefits li i { color: var(--c-teal); font-size: 1.2rem; }
@media (max-width: 575.98px) { .benefits { grid-template-columns: 1fr; } }
.note-box { display: flex; gap: 1rem; padding: 1.3rem 1.4rem; border-radius: 16px; background: #fff8eb; border: 1px solid #fde7bd; color: #7a5212; }
.note-box i { font-size: 1.3rem; }
.sticky-aside { position: sticky; top: 110px; }
.aside-card { border-radius: var(--r-lg); padding: 2rem; background: linear-gradient(160deg, var(--c-primary), var(--c-navy)); color: #fff; box-shadow: var(--sh-lg); }
.aside-card h2 { color: #fff; font-size: 1.4rem; }
.aside-card p { color: rgba(255, 255, 255, .8); }
.aside-list { list-style: none; padding: 0; margin: 1.5rem 0 0; border-radius: var(--r-lg); border: 1px solid var(--c-line); overflow: hidden; }
.aside-list a { display: flex; align-items: center; gap: .8rem; padding: .9rem 1.2rem; color: var(--c-navy); font-weight: 600; border-bottom: 1px solid var(--c-line); transition: background .2s, color .2s; }
.aside-list li:last-child a { border-bottom: 0; }
.aside-list a:hover { background: var(--c-soft); color: var(--c-primary); }
.aside-list i { color: var(--c-teal); }

/* ---------- Gallery ---------- */
.gallery-filters { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-bottom: 2.5rem; }
.gallery-filters button { border: 1.5px solid var(--c-line); background: #fff; border-radius: 999px; padding: .5rem 1.2rem; font-weight: 700; color: var(--c-navy); transition: all .2s; }
.gallery-filters button.active, .gallery-filters button:hover { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.gallery-grid { columns: 3 280px; column-gap: 1.2rem; }
.gallery-item { break-inside: avoid; margin: 0 0 1.2rem; border-radius: var(--r-md); overflow: hidden; position: relative; display: block; cursor: zoom-in; background: var(--c-soft); }
.gallery-item img { width: 100%; display: block; transition: transform .8s var(--ease); }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item figcaption { position: absolute; inset-inline: 0; bottom: 0; padding: 2.4rem 1rem .9rem; color: #fff; font-weight: 600; font-size: .92rem; background: linear-gradient(transparent, rgba(16, 36, 58, .75)); opacity: 0; transition: opacity .3s; }
.gallery-item:hover figcaption, .gallery-item:focus-visible figcaption { opacity: 1; }
.gallery-item.is-hidden { display: none; }
.lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(10, 22, 36, .92); display: none; align-items: center; justify-content: center; padding: 2rem; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 82vh; border-radius: 14px; }
.lightbox figcaption { color: #fff; text-align: center; margin-top: 1rem; }
.lightbox button { position: absolute; background: rgba(255, 255, 255, .12); border: 0; color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 1.4rem; }
.lightbox button:hover { background: rgba(255, 255, 255, .25); }
.lb-close { top: 1.2rem; inset-inline-end: 1.2rem; }
.lb-prev { inset-inline-start: 1.2rem; top: 50%; transform: translateY(-50%); }
.lb-next { inset-inline-end: 1.2rem; top: 50%; transform: translateY(-50%); }

/* ---------- Empty states & confirmations ---------- */
.empty-state { max-width: 560px; margin: 0 auto; text-align: center; padding: 3rem 2rem; border-radius: var(--r-lg); border: 1.5px dashed rgba(23, 107, 135, .25); background: #fff; }
.empty-state i { font-size: 2.4rem; color: var(--c-teal); }
.empty-state p { color: var(--c-muted); margin: 1rem 0 1.4rem; }
.success-card { text-align: center; padding: clamp(2rem, 5vw, 3.5rem); border-radius: var(--r-xl); background: #fff; box-shadow: var(--sh-lg); max-width: 680px; margin: 0 auto; }
.success-icon { width: 88px; height: 88px; margin: 0 auto 1.4rem; border-radius: 50%; display: grid; place-items: center; font-size: 2.6rem; color: #fff; background: linear-gradient(150deg, var(--c-teal), var(--c-primary)); box-shadow: 0 0 0 10px var(--c-teal-50); animation: pop .6s var(--ease); }
.ref-badge { display: inline-block; font-family: ui-monospace, Menlo, monospace; font-weight: 700; font-size: 1.1rem; letter-spacing: .06em; padding: .5rem 1rem; border-radius: 10px; background: var(--c-soft); color: var(--c-primary); border: 1px dashed rgba(23, 107, 135, .35); }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ---------- Footer ---------- */
.site-footer { color: rgba(255, 255, 255, .72); padding-bottom: 0; }
.footer-cta { background: linear-gradient(180deg, transparent 50%, var(--c-navy-900) 50%); }
.footer-dark { background: var(--c-navy-900); padding-top: 4rem; }
.footer-cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 2.2rem 2.6rem; border-radius: var(--r-xl); color: #fff; background: radial-gradient(400px 200px at 90% 0%, rgba(255, 255, 255, .18), transparent 70%), linear-gradient(120deg, var(--c-primary), var(--c-teal)); box-shadow: var(--sh-lg); }
.footer-cta-inner h2 { color: #fff; font-family: var(--f-display); font-weight: 400; }
html[dir="rtl"] .footer-cta-inner h2 { font-weight: 800; }
.footer-cta-inner h2 em { font-style: normal; }
.footer-cta-inner p { color: rgba(255, 255, 255, .85); }
.site-footer { margin-top: 2rem; }
.footer-main { padding-bottom: 3.5rem; }
.footer-about { margin: 1.2rem 0 1.4rem; max-width: 22rem; }
.footer-title { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .16em; font-weight: 800; margin-bottom: 1.2rem; }
html[dir="rtl"] .footer-title { letter-spacing: 0; font-size: 1rem; }
.footer-links, .footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .55rem; }
.footer-links a, .footer-contact a { color: rgba(255, 255, 255, .72); }
.footer-links a:hover, .footer-contact a:hover { color: var(--c-teal); }
.footer-contact li { display: flex; gap: .8rem; margin-bottom: .9rem; }
.footer-contact i { color: var(--c-teal); margin-top: .2rem; }
.footer-social { display: flex; gap: .6rem; }
.footer-social a { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .07); color: #fff; transition: background .2s, transform .2s; }
.footer-social a:hover { background: var(--c-teal); transform: translateY(-3px); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 1.4rem 0; font-size: .86rem; }
.footer-langs { display: flex; gap: 1rem; }
.footer-langs a { color: rgba(255, 255, 255, .6); }
.footer-langs a:hover { color: #fff; }

/* ---------- WhatsApp float & mobile bar ---------- */
.wa-float { position: fixed; z-index: 1040; bottom: 1.4rem; inset-inline-end: 1.4rem; height: 60px; min-width: 60px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: var(--c-wa); color: #fff; font-size: 1.75rem; box-shadow: 0 14px 30px -10px rgba(37, 211, 102, .7); transition: transform .25s var(--ease), padding .3s var(--ease); }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid var(--c-wa); animation: ring 2.4s ease-out infinite; }
.wa-float-label { max-width: 0; overflow: hidden; white-space: nowrap; font-size: .95rem; font-weight: 700; transition: max-width .35s var(--ease), margin .35s var(--ease); }
.wa-float:hover { color: #fff; transform: translateY(-3px); padding-inline: 1.2rem; }
.wa-float:hover .wa-float-label { max-width: 220px; margin-inline-start: .6rem; }
@keyframes ring { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.45); opacity: 0; } }
.mobile-actionbar { position: fixed; inset-inline: 0; bottom: 0; z-index: 1035; display: flex; gap: .5rem; padding: .6rem .8rem calc(.6rem + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); border-top: 1px solid var(--c-line); box-shadow: 0 -8px 24px -16px rgba(25, 50, 71, .4); }
.mobile-actionbar a { flex: 1; display: flex; align-items: center; justify-content: center; gap: .5rem; padding: .75rem; border-radius: 14px; font-weight: 700; font-size: .95rem; }
.mab-call { background: var(--c-soft); color: var(--c-navy); }
.mab-book { background: var(--c-primary); color: #fff; flex: 1.6 !important; }
.mab-book:hover { color: #fff; }
@media (max-width: 767.98px) {
  body { padding-bottom: 76px; }
  .wa-float { bottom: 88px; inset-inline-end: 1rem; width: 54px; min-width: 54px; height: 54px; font-size: 1.55rem; }
  .wa-float:hover { padding-inline: 0; }
  .wa-float:hover .wa-float-label { max-width: 0; margin: 0; }
}

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0ms); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .topbar, .wa-float, .mobile-actionbar, .footer-cta { display: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ==========================================================================
   Mobile refinements (≤ 991px / ≤ 575px)
   ========================================================================== */
html, body { overflow-x: clip; }
@media (max-width: 991.98px) {
  .hero { padding-top: 2rem; }
  .hero-copy { text-align: start; }
  .hero-visual { max-width: 440px; }
  .section-head { margin-bottom: 2.25rem; }
  .map-wrap { min-height: 0; height: auto; display: flex; flex-direction: column; }
  .map-wrap iframe { position: static; height: 340px; }
  .map-placeholder { position: static; min-height: 220px; padding: 2rem; }
  .hours-card { position: static; width: auto; box-shadow: none; border-radius: 0; backdrop-filter: none; }
  .sticky-aside { position: static; }
  .footer-dark { padding-top: 3rem; }
}
@media (max-width: 575.98px) {
  body { font-size: 1rem; }
  .section { padding: 3.5rem 0; }
  .container { padding-inline: 1.15rem; }
  .btn-lg { padding: .85rem 1.4rem; font-size: 1rem; }
  .hero-copy .btn-lg { width: 100%; }
  .hero .eyebrow { font-size: .68rem; letter-spacing: .04em; border-radius: 14px; line-height: 1.4; }
  .hero-title { font-size: 2.35rem; }
  .hero-lead { font-size: 1.05rem; }
  .hero-badges { flex-direction: column; gap: .6rem; margin-top: 1.8rem; }
  .hero-visual { padding: 1rem .25rem 2rem; }
  .float-card { padding: .65rem .8rem; border-radius: 14px; gap: .6rem; }
  .float-card-1 { top: 6%; inset-inline-start: 0; max-width: 200px; }
  .float-card-2 { bottom: 14%; inset-inline-end: 0; }
  .float-card small { font-size: .72rem; }
  .fc-icon { width: 36px; height: 36px; font-size: 1rem; }
  .float-chip { inset-inline-start: 50%; transform: translateX(-50%); white-space: nowrap; }
  html[dir="rtl"] .float-chip { transform: translateX(50%); }
  .section-title { font-size: 1.85rem; }
  .section-intro, .lead-text p { font-size: 1rem; }
  .doctor-portrait { max-width: 340px; }
  .doctor-portrait::before { inset: 1.2rem -.6rem -.6rem 1.2rem; }
  html[dir="rtl"] .doctor-portrait::before { inset: 1.2rem 1.2rem -.6rem -.6rem; }
  .portrait-tag { inset-inline-start: .75rem; bottom: .75rem; font-size: .9rem; }
  .quote-card p { font-size: 1.08rem; }
  .service-card { padding: 1.6rem 1.4rem; }
  .why-card { padding: 1.6rem; }
  .env-tiles { grid-template-columns: 1fr 1fr; grid-template-rows: auto; min-height: 0; }
  .env-tile { padding: 1.2rem; font-size: .92rem; }
  .env-tile-lg { grid-column: span 2; grid-row: auto; min-height: 150px; }
  .mosaic { grid-auto-rows: 100px; gap: .6rem; }
  .booking-wrap { border-radius: var(--r-lg); }
  .booking-aside, .booking-main { padding: 1.6rem 1.25rem; }
  .booking-form .btn-lg { width: 100%; }
  .form-control, .form-select { font-size: 16px; } /* prevents iOS zoom on focus */
  .info-card { padding: 1.5rem 1.25rem; }
  .page-hero { padding: 2.25rem 0 2rem; }
  .page-hero h1 { font-size: 2rem; }
  .page-hero p { font-size: 1rem; }
  .footer-cta-inner { padding: 1.6rem 1.4rem; border-radius: var(--r-lg); }
  .footer-cta-inner .btn { flex: 1 1 100%; }
  .footer-cta-inner .h3 { font-size: 1.45rem; }
  .footer-main .row > .col-lg-3:last-child { margin-top: 0; }
  .footer-bottom { text-align: center; }
  .footer-langs { justify-content: center; }
  .success-card { padding: 2rem 1.25rem; }
  .steps { gap: 2.5rem; }
}
