/* ===== CLINICAL DESIGN THEME & VARIABLES ===== */
:root {
--teal:       #06b6d4;
--teal-light: #67e8f9;
--teal-dark:  #0891b2;
--mint:       #10b981;
--mint-light: #34d399;
--coral:      #f43f5e;
--amber:      #f59e0b;
--bg:         #fafafa;
--bg2:        #f1f5f9;
--white:      #ffffff;
--text:       #0f172a;
--text2:      #334155;
--text3:      #475569;
--border:     #e2e8f0;
--shadow-float: 0 4px 20px rgba(0, 0, 0, 0.08);
--gradient:   linear-gradient(135deg, #06b6d4 0%, #10b981 100%);
--gradient2:  linear-gradient(135deg, #22d3ee 0%, #34d399 100%);
--font-display: 'Playfair Display', serif;
--font-body:    'DM Sans', sans-serif;
--font-script:  'Dancing Script', cursive;
--radius: 20px;
--radius-lg: 24px;
--radius-xl: 32px;
}

*, *::before, *::after {
box-sizing: border-box;
margin: 0;
padding: 0;
-webkit-tap-highlight-color: transparent;
}

html {
scroll-behavior: smooth;
scroll-padding-top: 100px;
overflow-x: hidden;
max-width: 100%;
}

body {
font-family: var(--font-body);
background: var(--bg);
color: var(--text);
line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
font-family: var(--font-display);
line-height: 1.3;
}

input, textarea, select {
-webkit-appearance: none;
appearance: none;
}

main {
position: relative;
z-index: 1;
}

/* Common Textures */
.gradient-text {
background: var(--gradient);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}

.float-card {
background: var(--white);
border-radius: var(--radius);
box-shadow: var(--shadow-float);
transition: transform 0.4s cubic-bezier(.22,1,.36,1), box-shadow 0.4s ease;
will-change: transform;
}

.float-card:hover {
transform: translateY(-6px);
box-shadow: 0 28px 70px rgba(8, 145, 178, 0.18), 0 10px 20px rgba(0, 0, 0, 0.06);
}

/* Particles Background Decoration */
.particles {
position: fixed;
inset: 0;
pointer-events: none;
z-index: 0;
overflow: hidden;
}

.particle {
position: absolute;
border-radius: 50%;
background: var(--gradient);
opacity: 0.05;
animation: particleDrift linear infinite;
will-change: transform, opacity;
}

/* Keyframe Animations */
@keyframes particleDrift {
0%   { transform: translateY(105vh) rotate(0deg); opacity: 0; }
10%  { opacity: 0.07; }
90%  { opacity: 0.07; }
100% { transform: translateY(-15vh) rotate(720deg); opacity: 0; }
}

@keyframes floatY   { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes floatY2  { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-14px) rotate(2deg); } }
@keyframes fadeUp   { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideRight { from { opacity: 0; transform: translateX(-30px); } to { opacity: 1; transform: translateX(0); } }
@keyframes pulseBorder { 0%, 100% { box-shadow: 0 0 0 0 rgba(8, 145, 178, 0.3); } 50% { box-shadow: 0 0 0 12px rgba(8, 145, 178, 0); } }
@keyframes tickerScroll { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }

/* ===== NAVIGATION HEADER ===== */
.navbar {
position: fixed;
top: 0;
left: 0;
right: 0;
z-index: 1000;
padding: 0 24px;
background: rgba(255, 255, 255, 0.88);
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
border-bottom: 1px solid var(--border);
box-shadow: 0 4px 20px rgba(8, 145, 178, 0.04);
transition: background 0.3s, box-shadow 0.3s, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar.hide-on-scroll {
transform: translateY(-100%);
pointer-events: none;
}

.navbar.scrolled {
background: rgba(255, 255, 255, 0.95);
box-shadow: 0 4px 30px rgba(8, 145, 178, 0.1);
}

.nav-inner {
max-width: 1200px;
margin: 0 auto;
height: 70px;
display: flex;
align-items: center;
justify-content: space-between;
}

.nav-logo {
display: flex;
align-items: center;
gap: 12px;
text-decoration: none;
}

.brand-logo {
height: 38px;
width: auto;
object-fit: contain;
border-radius: 6px;
margin-right: 4px;
}

.logo-text {
display: flex;
flex-direction: column;
line-height: 1.1;
}

.logo-name {
font-family: var(--font-display);
font-size: 20px;
font-weight: 800;
background: var(--gradient);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}

.logo-sub {
font-size: 11px;
color: var(--text3);
font-weight: 600;
letter-spacing: 0.5px;
}

.nav-links {
display: flex;
align-items: center;
gap: 6px;
list-style: none;
}

.nav-links a {
text-decoration: none;
color: var(--text2);
font-size: 14px;
font-weight: 700;
padding: 8px 16px;
border-radius: 8px;
transition: background 0.25s, color 0.25s;
}

.nav-links a:hover {
background: var(--bg2);
color: var(--teal);
}

/* Specificity fix to prevent transparency on hover */
.nav-links .nav-cta {
background: var(--gradient);
color: white !important;
padding: 10px 20px;
border-radius: 50px;
font-weight: 700;
box-shadow: 0 4px 16px rgba(8, 145, 178, 0.25);
animation: pulseBorder 2.5s infinite;
}

.nav-links .nav-cta:hover {
background: var(--gradient);
filter: brightness(1.1);
color: white !important;
box-shadow: 0 6px 20px rgba(8, 145, 178, 0.4);
}

.hamburger {
display: none;
flex-direction: column;
gap: 5px;
background: none;
border: none;
cursor: pointer;
padding: 4px;
}

.hamburger span {
display: block;
width: 24px;
height: 2.5px;
background: var(--teal);
border-radius: 2px;
transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== HERO BACKGROUND VIDEO & LAYOUT ===== */
.hero {
display: flex;
align-items: center;
padding: 140px 24px 120px;
position: relative;
overflow: hidden;
}



.hero-video-bg {
position: absolute;
inset: 0;
z-index: 1;
pointer-events: none;
background: #000;
}

.hero-video-bg video {
width: 100%;
height: 100%;
object-fit: cover;
object-position: center center;
display: block;
}

.hero-video-overlay {
position: absolute;
inset: 0;
background: linear-gradient(rgba(0,0,0,0.35), rgba(0,0,0,0.15));
z-index: 2;
}

.hero-content {
position: relative;
z-index: 3;
max-width: 1200px;
margin: 0 auto;
width: 100%;
display: flex;
flex-direction: column;
gap: 24px;
justify-content: center;
animation: slideRight 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hbc {
position: absolute;
border-radius: 50%;
background: var(--gradient2);
opacity: 0.06;
will-change: transform;
}

.hbc-1 { width: 600px; height: 600px; top: -200px; right: -100px; animation: floatY 8s ease-in-out infinite; }
.hbc-2 { width: 400px; height: 400px; bottom: -100px; left: -100px; animation: floatY2 10s ease-in-out infinite; }
.hbc-3 { width: 200px; height: 200px; top: 40%; left: 30%; animation: floatY 6s ease-in-out infinite; opacity: 0.04; }

.hero-content {
display: flex;
flex-direction: column;
gap: 24px;
justify-content: center;
animation: slideRight 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-badge {
display: inline-flex;
align-items: center;
padding: 8px 16px;
border-radius: 50px;
font-size: 12px;
font-weight: 700;
background: white;
color: var(--teal-dark);
border: 1px solid var(--border);
width: fit-content;
animation: floatY 4s ease-in-out infinite;
}

.hero-title {
font-family: var(--font-display);
font-size: clamp(40px, 5.5vw, 68px);
font-weight: 900;
line-height: 1.1;
color: #ffffff; /* White text for contrast */
}

.gradient-text-hero {
background: linear-gradient(135deg, #a5f3fc 0%, #34d399 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}

.hero-subtitle {
font-size: 18px;
line-height: 1.8;
color: rgba(255, 255, 255, 0.9);
max-width: 540px;
}

.hero-subtitle em {
font-style: italic;
color: #a5f3fc;
font-family: var(--font-display);
font-weight: 700;
}

.hero-badges-row {
display: flex;
gap: 16px;
flex-wrap: wrap;
align-items: center;
}

.hero-rating {
display: inline-flex;
align-items: center;
gap: 10px;
padding: 12px 20px;
border-radius: 50px;
animation: floatY 5s ease-in-out infinite 1s;
}

.stars {
color: var(--amber);
font-size: 16px;
letter-spacing: 2px;
}

.hero-rating strong {
font-size: 22px;
color: var(--text);
}

.rating-text {
font-size: 13px;
color: var(--text3);
font-weight: 600;
}

.hero-social-pill {
display: inline-flex;
gap: 10px;
padding: 10px 16px;
border-radius: 50px;
animation: floatY 6s ease-in-out infinite 0.5s;
}

.soc-link {
display: flex;
align-items: center;
gap: 8px;
text-decoration: none;
font-size: 13px;
font-weight: 700;
padding: 6px 14px;
border-radius: 50px;
transition: transform 0.2s;
}

.soc-link.fb { color: #1877f2; background: #eff6ff; }
.soc-link:hover { transform: translateY(-3.5px); }

.hero-btns {
display: flex;
gap: 14px;
flex-wrap: wrap;
}

.btn {
display: inline-flex;
align-items: center;
gap: 10px;
padding: 14px 30px;
border-radius: 50px;
font-size: 15px;
font-weight: 700;
text-decoration: none;
cursor: pointer;
border: none;
transition: transform 0.3s cubic-bezier(.22,1,.36,1), box-shadow 0.3s;
font-family: var(--font-body);
}

.btn-primary {
background: var(--gradient);
color: white;
box-shadow: 0 6px 20px rgba(8, 145, 178, 0.3);
}

.btn-primary:hover {
transform: translateY(-3px);
box-shadow: 0 12px 30px rgba(8, 145, 178, 0.45);
}

.btn-outline {
background: white;
color: var(--teal-dark);
border: 2px solid var(--teal);
}

.btn-outline:hover {
background: var(--bg2);
transform: translateY(-3px);
}

.btn-outline-hero {
background: rgba(255,255,255,0.1);
color: white;
border: 2px solid rgba(255,255,255,0.4);
backdrop-filter: blur(8px);
-webkit-backdrop-filter: blur(8px);
}

.btn-outline-hero:hover {
background: rgba(255,255,255,0.25);
transform: translateY(-3px);
}

.btn-whatsapp-sm {
background: linear-gradient(135deg, #25D366, #128C7E);
color: white;
box-shadow: 0 4px 14px rgba(37, 211, 102, 0.25);
padding: 14px 24px;
}

.btn-whatsapp {
background: linear-gradient(135deg, #25D366, #128C7E);
color: white;
box-shadow: 0 6px 22px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
transform: translateY(-3px);
box-shadow: 0 12px 32px rgba(37, 211, 102, 0.45);
}

.btn-full { width: 100%; justify-content: center; }
.btn-sm { padding: 10px 20px; font-size: 13px; }

/* White Frame holding the loops video on Hero Visual */
.hero-video-box {
width: 350px;
height: 420px;
border-radius: var(--radius-xl);
overflow: hidden;
border: 8px solid white;
box-shadow: var(--shadow-float);
background: #000;
}

.hero-loop-video {
width: 100%;
height: 100%;
object-fit: cover;
}





/* ===== FACTS TICKER ===== */
.facts-ticker {
background: rgba(8, 145, 178, 0.85);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
padding: 12px 0;
overflow: hidden;
display: flex;
align-items: center;
position: absolute;
bottom: 0;
left: 0;
right: 0;
z-index: 4;
border-top: 1px solid rgba(255,255,255,0.2);
}

.ticker-label {
background: var(--amber);
color: var(--text);
font-size: 13px;
font-weight: 700;
padding: 4px 12px;
border-radius: 4px;
margin-left: 24px;
margin-right: 20px;
white-space: nowrap;
z-index: 2;
box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.ticker-track {
display: flex;
animation: tickerScroll 48s linear infinite;
width: max-content;
will-change: transform;
}

.ticker-track:hover {
animation-play-state: paused;
}

.ticker-item {
color: white;
font-size: 14px;
font-weight: 600;
padding: 0 44px;
white-space: nowrap;
}

.ticker-item::before {
content: '•';
margin-right: 12px;
color: var(--teal-light);
}

/* ===== COMMON SECTIONS ===== */
.section {
padding: 100px 24px;
position: relative;
}

.section-header {
text-align: center;
margin-bottom: 60px;
}

.section-tag {
display: inline-block;
padding: 6px 18px;
border-radius: 50px;
background: var(--bg2);
color: var(--teal-dark);
font-size: 12px;
font-weight: 800;
letter-spacing: 1px;
text-transform: uppercase;
margin-bottom: 12px;
}

.section-title {
font-family: var(--font-display);
font-size: clamp(32px, 5vw, 52px);
font-weight: 800;
margin-bottom: 14px;
}

.section-sub {
font-size: 17px;
color: var(--text3);
max-width: 580px;
margin: 0 auto;
}

/* ===== SERVICES ===== */
.services-tabs {
display: flex;
justify-content: center;
gap: 14px;
margin-bottom: 44px;
}

.tab-btn, .album-btn {
padding: 14px 32px;
border-radius: 50px;
border: none;
cursor: pointer;
font-size: 16px;
font-weight: 700;
font-family: var(--font-body);
background: white;
color: var(--text3);
box-shadow: 0 4px 12px rgba(8, 145, 178, 0.06);
transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.tab-btn.active, .album-btn.active {
background: var(--gradient);
color: white;
box-shadow: 0 6px 20px rgba(8, 145, 178, 0.25);
}

.services-grid {
max-width: 1200px;
margin: 0 auto;
display: grid;
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
gap: 28px;
}

.service-card {
padding: 32px 24px;
border-radius: var(--radius-lg);
background: white;
box-shadow: var(--shadow-float);
text-align: center;
transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s;
border: 2px solid transparent;
}

.service-card:hover {
transform: translateY(-8px);
border-color: var(--teal-light);
}

.service-icon {
font-size: 48px;
margin-bottom: 18px;
display: block;
}

.service-name {
font-family: var(--font-display);
font-size: 20px;
font-weight: 800;
margin-bottom: 10px;
}

.service-desc {
font-size: 14px;
color: var(--text3);
line-height: 1.7;
}

/* ===== SPECIALIST PROFILES ===== */
.doctors {
background: linear-gradient(180deg, var(--bg) 0%, var(--white) 100%);
}

.doctors-grid {
max-width: 1050px;
margin: 0 auto;
display: grid;
grid-template-columns: 1fr 1fr;
gap: 44px;
}

.doctor-card {
padding: 0;
border-radius: var(--radius-xl);
overflow: hidden;
display: flex;
flex-direction: column;
height: 100%;
}

.doctor-img-wrap {
width: 100%;
height: 380px;
overflow: hidden;
position: relative;
background-color: var(--bg2);
}

.doctor-img-wrap img {
width: 100%;
height: 100%;
object-fit: cover;
object-position: center 10%;
}

.doctor-specialty {
padding: 12px 26px;
font-size: 13px;
font-weight: 800;
letter-spacing: 0.5px;
}

.dental-spec {
background: linear-gradient(135deg, #e0f7fa, #b2ebf2);
color: var(--teal-dark);
}

.ent-spec {
background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
color: #1b5e20;
}

.doctor-name {
font-family: var(--font-display);
font-size: 28px;
font-weight: 800;
padding: 18px 26px 4px;
}

.doctor-script {
font-family: var(--font-script);
font-size: 20px;
color: var(--teal);
padding: 0 26px 14px;
font-weight: 700;
}

.doctor-bio {
font-size: 15px;
color: var(--text2);
line-height: 1.8;
padding: 0 26px 18px;
}

.doctor-tags {
display: flex;
flex-wrap: wrap;
gap: 10px;
padding: 0 26px 18px;
}

.doctor-tags span {
padding: 4px 14px;
border-radius: 50px;
background: var(--bg2);
color: var(--teal-dark);
font-size: 12px;
font-weight: 700;
}

.doctor-footer {
display: flex;
align-items: center;
justify-content: space-between;
padding: 18px 26px;
background: linear-gradient(135deg, var(--bg2), white);
margin-top: auto;
}

.doc-badge {
font-size: 12px;
font-weight: 800;
padding: 6px 14px;
border-radius: 50px;
}

.women-owned {
background: linear-gradient(135deg, #fce4ec, #f8bbd0);
color: #880e4f;
}

.ent-badge {
background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
color: #1b5e20;
}

/* ===== INTERACTIVE ANATOMY PORTAL ===== */
.explorer {
background: linear-gradient(135deg, var(--bg2) 0%, var(--white) 100%);
}

.explorer-tabs {
display: flex;
justify-content: center;
gap: 14px;
margin-bottom: 44px;
}

.exp-tab {
padding: 14px 32px;
border-radius: 50px;
border: 2px solid var(--border);
cursor: pointer;
font-size: 16px;
font-weight: 700;
font-family: var(--font-body);
background: white;
color: var(--text3);
transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.exp-tab.active {
background: var(--gradient);
color: white;
border-color: transparent;
box-shadow: 0 6px 20px rgba(8, 145, 178, 0.25);
}

.explorer-inner {
max-width: 1100px;
margin: 0 auto;
display: grid;
grid-template-columns: 1.1fr 0.9fr;
gap: 50px;
align-items: center;
}

.explorer-diagram {
position: relative;
display: flex;
align-items: center;
justify-content: center;
}

.explorer-diagram svg {
max-width: 100%;
height: auto;
filter: drop-shadow(0 16px 30px rgba(8, 145, 178, 0.12));
}

.hotspot {
cursor: pointer;
}

.hotspot ellipse, .hotspot circle, .hotspot path, .hotspot rect {
transition: filter 0.25s ease, stroke 0.25s ease, stroke-width 0.25s ease, fill-opacity 0.25s;
}

.explorer-info {
padding: 40px;
min-height: 350px;
display: flex;
flex-direction: column;
justify-content: center;
}

.exp-info-default {
text-align: center;
color: var(--text3);
}

.exp-arrow {
font-size: 44px;
margin-bottom: 14px;
animation: floatY 2s ease-in-out infinite;
}

.exp-info-default p {
font-size: 16px;
}

.exp-part-name {
font-family: var(--font-display);
font-size: 28px;
font-weight: 800;
color: var(--text);
margin-bottom: 8px;
}

.exp-part-emoji {
font-size: 52px;
display: block;
margin-bottom: 14px;
}

.exp-part-desc {
font-size: 16px;
color: var(--text2);
line-height: 1.8;
margin-bottom: 18px;
}

.exp-fact-box {
background: linear-gradient(135deg, var(--bg2), white);
border-radius: var(--radius);
padding: 16px 20px;
border-left: 5px solid var(--teal);
}

.exp-fact-label {
font-size: 11px;
font-weight: 800;
text-transform: uppercase;
letter-spacing: 1px;
color: var(--teal);
margin-bottom: 4px;
}

.exp-fact-text {
font-size: 14px;
color: var(--text2);
line-height: 1.7;
}

.exp-treatment-list {
display: flex;
flex-wrap: wrap;
gap: 10px;
margin-top: 18px;
}

.exp-treatment-chip {
padding: 6px 14px;
border-radius: 50px;
font-size: 13px;
font-weight: 700;
background: var(--gradient);
color: white;
}

/* ===== PHOTO GALLERY SLIDER ===== */
.gallery {
background: var(--bg);
}

.gallery-slider-wrapper {
max-width: 100vw;
width: 100vw;
margin: 0 calc(-50vw + 50%); /* Full bleed */
padding: 0;
overflow: hidden;
}

.gallery-slider {
position: relative;
width: 100%;
background: transparent;
border: none;
box-shadow: none;
border-radius: 0;
}

.slider-track-viewport {
position: relative;
cursor: pointer;
}

.marquee-viewport {
  display: flex;
}

.slider-img-container {
  position: relative;
  flex-shrink: 0;
  width: 300px;
  height: 300px; /* Fixed aspect ratio container */
  opacity: 1;
  pointer-events: all;
  margin-right: 4px;
}

.slider-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  background: var(--bg2);
}

.slider-track-viewport:hover .slider-img-container img {
  transform: none; /* Removed scale to prevent clipping in flex row */
}

/* Animations using Keyframes for maximum control and smoothness */
.slider-img-container.slide-next-exit {
animation: slideNextExit 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.slider-img-container.slide-next-enter {
animation: slideNextEnter 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.slider-img-container.slide-prev-exit {
animation: slidePrevExit 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.slider-img-container.slide-prev-enter {
animation: slidePrevEnter 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideNextExit {
from { transform: translateX(0); opacity: 1; }
to { transform: translateX(-100%); opacity: 0; }
}
@keyframes slideNextEnter {
from { transform: translateX(100%); opacity: 0; }
to { transform: translateX(0); opacity: 1; }
}
@keyframes slidePrevExit {
from { transform: translateX(0); opacity: 1; }
to { transform: translateX(100%); opacity: 0; }
}
@keyframes slidePrevEnter {
from { transform: translateX(-100%); opacity: 0; }
to { transform: translateX(0); opacity: 1; }
}

.slider-btn {
position: absolute;
top: 50%;
transform: translateY(-50%);
background: rgba(8, 145, 178, 0.85);
color: white;
border: none;
width: 44px;
height: 44px;
border-radius: 50%;
font-size: 24px;
cursor: pointer;
z-index: 10;
display: flex;
align-items: center;
justify-content: center;
transition: background 0.25s, transform 0.25s cubic-bezier(.22,1,.36,1);
}

.slider-btn:hover {
background: var(--teal);
transform: translateY(-50%) scale(1.1);
}

.prev-btn { left: 16px; }
.next-btn { right: 16px; }

.slider-info {
position: absolute;
bottom: 0;
left: 0;
right: 0;
background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.4) 70%, transparent 100%);
color: white;
padding: 24px 20px 16px;
display: flex;
justify-content: space-between;
align-items: center;
font-size: 13px;
font-weight: 700;
pointer-events: none;
z-index: 5;
}

.slider-counter {
background: rgba(255, 255, 255, 0.18);
padding: 4px 12px;
border-radius: 50px;
backdrop-filter: blur(8px);
-webkit-backdrop-filter: blur(8px);
border: 1px solid rgba(255, 255, 255, 0.15);
}

.slider-expand-hint {
opacity: 0.85;
text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

/* Lightbox Modal Structure */
.lightbox {
position: fixed;
inset: 0;
z-index: 1100;
display: flex;
align-items: center;
justify-content: center;
opacity: 0;
pointer-events: none;
transition: opacity 0.3s ease;
}

.lightbox.open {
opacity: 1;
pointer-events: all;
}

.lb-overlay {
position: absolute;
inset: 0;
background: rgba(8, 20, 40, 0.92);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
}

.lb-content {
position: relative;
z-index: 2;
max-width: 900px;
width: 90%;
border-radius: var(--radius-xl);
overflow: hidden;
background: white;
}

.lb-img {
width: 100%;
max-height: 75vh;
object-fit: contain;
display: block;
}

.lb-close {
position: absolute;
top: 16px;
right: 16px;
background: rgba(0, 0, 0, 0.6);
color: white;
border: none;
width: 38px;
height: 38px;
border-radius: 50%;
font-size: 18px;
cursor: pointer;
z-index: 3;
transition: background 0.2s;
}

.lb-close:hover {
background: var(--teal);
}

.lb-prev, .lb-next {
position: absolute;
top: 50%;
transform: translateY(-50%);
background: rgba(8, 145, 178, 0.85);
color: white;
border: none;
width: 48px;
height: 48px;
border-radius: 50%;
font-size: 26px;
cursor: pointer;
z-index: 3;
transition: background 0.2s, transform 0.2s;
}

.lb-prev { left: 16px; }
.lb-next { right: 16px; }
.lb-prev:hover, .lb-next:hover {
background: var(--teal);
transform: translateY(-50%) scale(1.1);
}

.lb-caption {
padding: 18px;
text-align: center;
font-size: 15px;
color: var(--text2);
font-weight: 700;
}

/* ===== REVIEWS CAROUSEL ===== */
.overall-rating {
display: inline-flex;
align-items: center;
gap: 16px;
padding: 16px 24px;
border-radius: var(--radius);
margin-top: 16px;
}

.big-rating {
font-family: var(--font-display);
font-size: 56px;
font-weight: 900;
color: var(--teal);
line-height: 1;
}

.stars-row {
color: var(--amber);
font-size: 22px;
letter-spacing: 3px;
}

.g-sync-status {
display: flex;
align-items: center;
gap: 6px;
font-size: 12px;
color: var(--mint);
font-weight: 700;
margin-top: 4px;
}

.pulse-dot {
width: 8px;
height: 8px;
border-radius: 50%;
background-color: var(--mint);
display: inline-block;
animation: pulseBorder 1.5s infinite;
}

.reviews-track-wrap {
overflow: hidden;
padding: 24px 0;
width: 100%;
}

.reviews-track {
display: flex;
gap: 24px;
width: max-content;
/* Padding left to prevent cutting off first card, right is not needed for endless */
padding-left: 16px; 
will-change: transform;
}

.review-card {
width: 320px;
flex-shrink: 0;
padding: 28px;
border-radius: var(--radius-lg);
background: white;
box-shadow: 0 8px 24px rgba(8, 145, 178, 0.06);
border: 1px solid var(--border);
transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.review-card:hover {
transform: translateY(-6px);
}

.review-stars {
color: var(--amber);
font-size: 16px;
margin-bottom: 12px;
}

.review-text {
font-size: 14px;
line-height: 1.7;
color: var(--text2);
margin-bottom: 16px;
font-style: italic;
}

.review-author {
font-size: 14px;
font-weight: 800;
color: var(--text);
}

.review-date {
font-size: 11px;
color: var(--text3);
margin-top: 2px;
}

/* ===== EXPANDABLE FAB — CIRCLE STAYS FIXED, LABEL SLIDES LEFT ===== */
.fab-wrap {
position: fixed;
right: 20px;
z-index: 1050;
display: flex;
align-items: center;
transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.fab-wrap.hide-on-scroll {
transform: translateY(150px);
opacity: 0;
pointer-events: none;
}

.sticky-footer {
transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.sticky-footer.hide-on-scroll {
transform: translateY(100%);
opacity: 0;
pointer-events: none;
}
flex-direction: row; /* label LEFT | circle RIGHT */
}

.fab-feedback-wrap {
bottom: calc(96px + env(safe-area-inset-bottom));
}

.fab-ai-wrap {
bottom: calc(30px + env(safe-area-inset-bottom));
}

/* The label slides out from BEHIND the circle */
.fab-label {
font-size: 14px;
font-weight: 700;
white-space: nowrap;
overflow: hidden;
max-width: 0;
opacity: 0;
height: 48px;
display: flex;
align-items: center;
border-radius: 50px 0 0 50px;
padding: 0;
transition:
  max-width 0.4s cubic-bezier(0.16, 1, 0.3, 1),
  opacity 0.2s ease 0s,
  padding 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.fab-feedback-label {
background: var(--gradient);
color: white;
box-shadow: -3px 3px 14px rgba(8,145,178,0.18);
}

.fab-ai-label {
background: white;
color: var(--teal-dark);
border: 1.5px solid rgba(8,145,178,0.2);
border-right: none;
box-shadow: -3px 3px 14px rgba(8,145,178,0.12);
}

/* Hover on the wrapper expands label — circle does NOT move */
.fab-wrap:hover .fab-label,
.fab-wrap:focus-within .fab-label {
max-width: 170px;
opacity: 1;
padding: 0 14px 0 20px;
transition:
  max-width 0.4s cubic-bezier(0.16, 1, 0.3, 1),
  opacity 0.2s ease 0.2s,
  padding 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* The circle — always stays at right: 20px from screen edge */
.fab-circle {
width: 56px;
height: 56px;
border-radius: 50%;
flex-shrink: 0;
display: flex;
align-items: center;
justify-content: center;
font-size: 20px;
cursor: pointer;
border: none;
font-family: var(--font-body);
position: relative;
z-index: 1;
transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.fab-circle:hover {
transform: scale(1.06);
}

.fab-feedback-circle {
background: var(--gradient);
color: white;
box-shadow: 0 6px 20px rgba(8,145,178,0.25), 0 2px 6px rgba(0,0,0,0.08);
}

.fab-ai-circle {
background: white;
box-shadow: 0 6px 20px rgba(8,145,178,0.2), 0 2px 6px rgba(0,0,0,0.07);
border: 1.5px solid rgba(8,145,178,0.2) !important;
overflow: hidden;
}

.fab-ai-avatar {
width: 100%;
height: 100%;
object-fit: cover;
border-radius: 50%;
}


/* ===== MISHKA AI CHAT PANEL ===== */
.ai-chat-panel {
position: fixed;
bottom: calc(100px + env(safe-area-inset-bottom));
right: 20px;
width: 340px;
max-height: 500px;
background: white;
border-radius: var(--radius-xl);
box-shadow: 0 20px 60px rgba(8, 145, 178, 0.22), 0 8px 24px rgba(0,0,0,0.12);
display: flex;
flex-direction: column;
z-index: 998;
overflow: hidden;
border: 1px solid var(--border);
transform: translateY(24px) scale(0.95);
opacity: 0;
pointer-events: none;
transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.ai-chat-panel.open {
transform: translateY(0) scale(1);
opacity: 1;
pointer-events: all;
}

.ai-chat-header {
display: flex;
align-items: center;
gap: 12px;
padding: 14px 16px;
background: var(--gradient);
color: white;
flex-shrink: 0;
}

.ai-chat-avatar {
width: 40px;
height: 40px;
border-radius: 50%;
object-fit: cover;
border: 2px solid rgba(255,255,255,0.4);
flex-shrink: 0;
}

.ai-chat-name {
font-weight: 800;
font-size: 15px;
line-height: 1.2;
}

.ai-chat-status {
font-size: 11px;
opacity: 0.88;
display: flex;
align-items: center;
gap: 5px;
}

.ai-status-dot {
width: 7px;
height: 7px;
background: #4ade80;
border-radius: 50%;
display: inline-block;
animation: pulseBorder 1.5s infinite;
}

.ai-close-btn {
margin-left: auto;
background: rgba(255,255,255,0.2);
border: none;
color: white;
width: 30px;
height: 30px;
border-radius: 50%;
cursor: pointer;
font-size: 14px;
display: flex;
align-items: center;
justify-content: center;
transition: background 0.2s;
flex-shrink: 0;
}

.ai-close-btn:hover {
background: rgba(255,255,255,0.35);
}

.ai-messages {
flex: 1;
overflow-y: auto;
padding: 14px;
display: flex;
flex-direction: column;
gap: 10px;
scroll-behavior: smooth;
}

.ai-msg {
display: flex;
gap: 8px;
align-items: flex-end;
}

.ai-msg.ai { flex-direction: row; }
.ai-msg.user { flex-direction: row-reverse; }

.ai-msg-avatar {
width: 28px;
height: 28px;
border-radius: 50%;
object-fit: cover;
flex-shrink: 0;
}

.ai-msg-bubble {
max-width: 78%;
padding: 10px 14px;
border-radius: 18px;
font-size: 13px;
line-height: 1.65;
font-family: var(--font-body);
}

.ai-msg.ai .ai-msg-bubble {
background: var(--bg2);
color: var(--text);
border-bottom-left-radius: 4px;
}

.ai-msg.user .ai-msg-bubble {
background: var(--gradient);
color: white;
border-bottom-right-radius: 4px;
}

.ai-quick-replies {
padding: 8px 14px 10px;
display: flex;
flex-wrap: wrap;
gap: 7px;
flex-shrink: 0;
border-top: 1px solid var(--border);
}

.ai-quick-btn {
padding: 6px 13px;
border-radius: 50px;
border: 1.5px solid var(--teal);
background: white;
color: var(--teal-dark);
font-size: 12px;
font-weight: 700;
cursor: pointer;
font-family: var(--font-body);
transition: all 0.2s;
white-space: nowrap;
}

.ai-quick-btn:hover {
background: var(--teal);
color: white;
}

.ai-input-row {
display: flex;
gap: 8px;
padding: 10px 12px;
border-top: 1px solid var(--border);
flex-shrink: 0;
background: white;
}

.ai-input {
flex: 1;
padding: 9px 14px;
border-radius: 50px;
border: 1.5px solid var(--border);
font-family: var(--font-body);
font-size: 13px;
color: var(--text);
background: var(--bg);
outline: none;
transition: border-color 0.2s;
}

.ai-input:focus {
border-color: var(--teal);
background: white;
}

.ai-send-btn {
width: 38px;
height: 38px;
border-radius: 50%;
background: var(--gradient);
color: white;
border: none;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
font-size: 15px;
flex-shrink: 0;
transition: transform 0.2s, box-shadow 0.2s;
}

.ai-send-btn:hover {
transform: scale(1.1);
box-shadow: 0 4px 14px rgba(8,145,178,0.35);
}

/* AI Calendar picker */
.ai-calendar-wrap {
background: var(--bg);
border-radius: var(--radius);
padding: 10px;
border: 1px solid var(--border);
margin-top: 6px;
max-width: 100%;
}

.ai-calendar-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 8px;
font-weight: 700;
font-size: 13px;
color: var(--teal-dark);
}

.ai-cal-nav {
background: none;
border: none;
cursor: pointer;
color: var(--teal);
font-size: 18px;
padding: 2px 6px;
border-radius: 6px;
transition: background 0.2s;
}

.ai-cal-nav:hover { background: var(--bg2); }

.ai-calendar-grid {
display: grid;
grid-template-columns: repeat(7, 1fr);
gap: 2px;
font-size: 11px;
text-align: center;
}

.ai-cal-day-label {
font-weight: 700;
color: var(--text3);
padding: 3px 0;
}

.ai-cal-day {
padding: 5px 2px;
border-radius: 6px;
cursor: pointer;
transition: background 0.15s, color 0.15s;
color: var(--text);
}

.ai-cal-day:hover:not(.disabled):not(.empty) {
background: var(--teal-light);
color: white;
}

.ai-cal-day.today {
background: var(--bg2);
font-weight: 700;
color: var(--teal-dark);
}

.ai-cal-day.selected {
background: var(--gradient);
color: white;
font-weight: 700;
}

.ai-cal-day.disabled, .ai-cal-day.empty {
color: #cbd5e1;
cursor: not-allowed;
}

/* Treatment chips in AI chat */
.ai-treat-chips {
display: flex;
flex-wrap: wrap;
gap: 6px;
margin-top: 6px;
}

.ai-treat-chip {
padding: 5px 12px;
border-radius: 50px;
border: 1.5px solid var(--border);
background: white;
color: var(--text2);
font-size: 11px;
font-weight: 700;
cursor: pointer;
transition: all 0.2s;
font-family: var(--font-body);
}

.ai-treat-chip.selected {
background: var(--gradient);
color: white;
border-color: transparent;
}

/* Booking confirmation card */
.ai-booking-card {
background: linear-gradient(135deg, var(--bg2), white);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 12px 14px;
font-size: 12px;
line-height: 1.9;
color: var(--text2);
margin-top: 4px;
}

.ai-booking-card strong {
color: var(--text);
}

.ai-wa-confirm-btn {
width: 100%;
padding: 11px;
border-radius: 50px;
background: linear-gradient(135deg, #25D366, #128C7E);
color: white;
border: none;
cursor: pointer;
font-size: 13px;
font-weight: 700;
margin-top: 10px;
font-family: var(--font-body);
transition: transform 0.2s, box-shadow 0.2s;
}

.ai-wa-confirm-btn:hover {
transform: translateY(-2px);
box-shadow: 0 6px 18px rgba(37,211,102,0.35);
}

.review-modal-overlay {
position: fixed;
inset: 0;
z-index: 1050;
background: rgba(15, 23, 42, 0.6);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
display: flex;
align-items: center;
justify-content: center;
opacity: 0;
pointer-events: none;
transition: opacity 0.3s cubic-bezier(.16, 1, .3, 1);
}

.review-modal-overlay.open {
opacity: 1;
pointer-events: all;
}

.review-modal-card {
width: 90%;
max-width: 520px;
padding: 36px;
transform: translateY(20px);
transition: transform 0.35s cubic-bezier(.16, 1, .3, 1);
}

.review-modal-overlay.open .review-modal-card {
transform: translateY(0);
}

.review-modal-title {
font-size: 22px;
font-weight: 800;
margin-bottom: 4px;
}

.review-modal-subtitle {
font-size: 13px;
color: var(--text3);
margin-bottom: 24px;
}

.rating-stars-select {
display: flex;
gap: 8px;
font-size: 26px;
color: #cbd5e1;
cursor: pointer;
}

.star-opt {
transition: color 0.2s;
}

.star-opt:hover, .star-opt.selected {
color: var(--amber);
}

.review-modal-actions {
display: flex;
justify-content: flex-end;
gap: 12px;
margin-top: 12px;
}

/* ===== APPOINTMENT SCHEDULING ===== */
.booking {
background: linear-gradient(135deg, var(--bg2) 0%, white 100%);
}

.booking-inner {
max-width: 1200px;
margin: 0 auto;
display: grid;
grid-template-columns: 1fr 1.4fr;
gap: 50px;
}

.booking-info {
display: flex;
flex-direction: column;
gap: 24px;
}

.binfo-card {
padding: 24px;
}

.binfo-card h3 {
font-size: 18px;
font-weight: 800;
margin-bottom: 10px;
}

.binfo-card p {
font-size: 15px;
color: var(--text2);
line-height: 1.8;
margin-bottom: 12px;
}

.binfo-card.emergency {
background: linear-gradient(135deg, #fef3f2, #fff7ed);
border: 1px solid #fca5a5;
}

.hours-list {
display: grid;
grid-template-columns: 1fr 1.2fr;
gap: 10px;
font-size: 15px;
color: var(--text2);
}

.hours-list span:nth-child(odd) {
font-weight: 800;
}

.booking-form {
padding: 40px;
scroll-margin-top: 130px;
}

.form-title {
font-family: var(--font-display);
font-size: 26px;
font-weight: 800;
margin-bottom: 24px;
}

.doctor-choice {
display: flex;
gap: 12px;
}

.doc-btn {
flex: 1;
padding: 14px;
border-radius: var(--radius);
border: 2px solid var(--border);
background: white;
font-family: var(--font-body);
font-size: 14px;
font-weight: 700;
cursor: pointer;
transition: all 0.25s ease;
color: var(--text2);
}

.doc-btn.active {
background: var(--gradient);
color: white;
border-color: transparent;
}

.form-row {
display: grid;
grid-template-columns: 1fr 1.2fr;
gap: 20px;
}

.form-group {
display: flex;
flex-direction: column;
gap: 8px;
margin-bottom: 20px;
}

.form-group label {
font-size: 14px;
font-weight: 700;
color: var(--text2);
display: flex;
align-items: center;
gap: 8px;
}

.form-group input, .form-group textarea {
padding: 14px 18px;
border-radius: var(--radius);
border: 2px solid var(--border);
font-family: var(--font-body);
font-size: 15px;
color: var(--text);
background: var(--bg);
outline: none;
transition: border-color 0.25s ease, background-color 0.25s;
}

.form-group input:focus, .form-group textarea:focus {
border-color: var(--teal);
background: white;
}

.form-group textarea {
resize: vertical;
}

.treatment-selector {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 10px;
}

.treat-chip {
padding: 8px 16px;
border-radius: 50px;
font-size: 13px;
font-weight: 700;
border: 2px solid var(--border);
background: white;
color: var(--text3);
cursor: pointer;
transition: all 0.2s ease;
font-family: var(--font-body);
}

.treat-chip:hover {
border-color: var(--teal);
color: var(--teal);
}

.treat-chip.selected {
background: var(--gradient);
color: white;
border-color: transparent;
}

.mic-btn {
background: none;
border: none;
cursor: pointer;
font-size: 18px;
padding: 4px;
border-radius: 50%;
transition: transform 0.2s;
}

.mic-btn:hover {
transform: scale(1.2);
}

.mic-status {
font-size: 12px;
color: var(--teal);
min-height: 18px;
font-style: italic;
}

.form-note {
font-size: 13px;
color: var(--text3);
text-align: center;
margin-top: 10px;
}

/* Custom interactive inline form notification */
.toast-notification {
background: linear-gradient(135deg, #e0f2f1, #b2dfdb);
border-left: 5px solid var(--mint);
padding: 14px 18px;
border-radius: 8px;
color: var(--teal-dark);
font-size: 14px;
font-weight: 700;
margin-bottom: 20px;
transition: opacity 0.3s ease;
}

.toast-notification.error {
background: #ffebee;
border-left-color: var(--coral);
color: #b71c1c;
}

.toast-notification.hide {
display: none;
}

/* ===== MAP & LIVE ROUTE PLANNER ===== */
.location-section {
background: var(--bg);
}

.map-grid-container {
max-width: 1200px;
margin: 0 auto;
display: grid;
grid-template-columns: 1.2fr 0.8fr;
gap: 32px;
align-items: start;
}

.map-embed {
border-radius: var(--radius-xl);
overflow: hidden;
}

.map-embed iframe {
display: block;
}

.map-side-panel {
background: rgba(255, 255, 255, 0.95);
padding: 28px;
border-radius: var(--radius-lg);
border: 1px solid var(--border);
box-shadow: 0 10px 30px rgba(8, 145, 178, 0.12);
}

.map-side-panel h4 {
font-size: 18px;
font-weight: 800;
color: var(--text);
margin-bottom: 6px;
}

.map-side-panel p {
font-size: 13px;
color: var(--text2);
margin-bottom: 14px;
line-height: 1.5;
}

.direction-form {
display: flex;
flex-direction: column;
}

.styled-input {
width: 100%;
padding: 14px 16px;
border-radius: 12px;
border: 1px solid var(--border);
font-size: 15px;
font-family: var(--font-body);
background: var(--bg);
color: var(--text);
transition: all 0.3s ease;
}

.styled-input:focus {
border-color: var(--teal);
outline: none;
box-shadow: 0 0 0 4px rgba(8, 145, 178, 0.1);
}

.shadow-input {
box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

.shadow-btn {
box-shadow: 0 4px 14px rgba(8, 145, 178, 0.25);
border-radius: 12px;
padding: 14px;
font-size: 15px;
text-transform: uppercase;
letter-spacing: 0.5px;
transition: transform 0.2s, box-shadow 0.2s;
}

.shadow-btn:hover {
transform: translateY(-2px);
box-shadow: 0 6px 20px rgba(8, 145, 178, 0.35);
}

.checkbox-card {
display: flex;
align-items: center;
gap: 10px;
background: var(--bg);
padding: 12px 14px;
border-radius: 10px;
border: 1px solid var(--border);
cursor: pointer;
transition: border-color 0.2s;
}

.checkbox-card:hover {
border-color: var(--teal-light);
}

.custom-checkbox {
width: 18px;
height: 18px;
accent-color: var(--teal);
cursor: pointer;
}

.checkbox-card label {
font-size: 13px;
color: var(--text2);
cursor: pointer;
font-weight: 500;
user-select: none;
}

.open-maps-overlay-btn {
position: absolute;
bottom: 20px;
right: 20px;
background: white;
color: var(--text);
padding: 10px 16px;
border-radius: 50px;
font-size: 13px;
font-weight: 700;
text-decoration: none;
box-shadow: 0 4px 15px rgba(0,0,0,0.15);
display: flex;
align-items: center;
gap: 6px;
transition: all 0.2s;
border: 1px solid var(--border);
z-index: 10;
}

.open-maps-overlay-btn:hover {
transform: translateY(-2px);
box-shadow: 0 6px 20px rgba(0,0,0,0.2);
color: var(--teal);
}

.map-embed {
position: relative; /* For absolute button positioning */
}

/* Custom route result step guides */
.direction-result {
margin-top: 20px;
border-top: 1px dashed var(--border);
padding-top: 20px;
}

.direction-result.hide {
display: none;
}

.dir-metrics {
display: flex;
gap: 12px;
margin-bottom: 16px;
}

.dir-metric-badge {
background: rgba(8, 145, 178, 0.08);
color: var(--teal-dark);
padding: 8px 14px;
border-radius: 10px;
font-size: 14px;
font-weight: 700;
display: flex;
align-items: center;
gap: 6px;
}

.dir-warning-banner {
background: #FFF3CD;
color: #856404;
padding: 12px 14px;
border-radius: 10px;
font-size: 13px;
font-weight: 600;
margin-bottom: 16px;
display: flex;
align-items: flex-start;
gap: 10px;
border: 1px solid #FFEEBA;
line-height: 1.4;
}

.dir-step-list {
max-height: 220px;
overflow-y: auto;
padding-right: 8px;
background: var(--bg);
border-radius: 12px;
padding: 14px;
border: 1px solid var(--border);
}

.dir-step-item {
font-size: 13px;
line-height: 1.6;
color: var(--text2);
margin-bottom: 12px;
padding-bottom: 12px;
border-bottom: 1px solid var(--border);
position: relative;
padding-left: 24px;
}

.dir-step-item::before {
content: '•';
position: absolute;
left: 6px;
color: var(--teal);
font-weight: bold;
font-size: 18px;
}

.dir-step-item:last-child {
border-bottom: none;
margin-bottom: 0;
padding-bottom: 0;
}

/* ===== FOOTER SYSTEM ===== */
.footer {
background: var(--text);
padding: 64px 24px 36px;
position: relative;
}

.footer-inner {
max-width: 1200px;
margin: 0 auto;
display: flex;
flex-direction: column;
align-items: center;
gap: 36px;
}

.footer-brand {
display: flex;
align-items: center;
gap: 16px;
text-align: center;
}

.footer-brand-logo {
height: 52px;
width: auto;
object-fit: contain;
border-radius: 8px;
}

.footer-brand h3 {
font-family: var(--font-display);
font-size: 22px;
font-weight: 800;
color: white;
}

.footer-brand p {
font-size: 14px;
color: #94a3b8;
margin-top: 2px;
}

.footer-address-text {
font-size: 13px;
color: #64748b !important;
margin-top: 6px !important;
}

.footer-social-wrapper {
width: 100%;
max-width: 500px;
text-align: center;
}

.footer-social-title {
color: white;
font-size: 15px;
font-weight: 700;
margin-bottom: 16px;
}

.footer-socials {
display: flex;
gap: 16px;
flex-wrap: wrap;
justify-content: center;
}

.footer-soc-btn {
display: flex;
align-items: center;
gap: 10px;
padding: 12px 24px;
border-radius: 50px;
text-decoration: none;
font-size: 14px;
font-weight: 700;
transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s;
}

.wa-footer { background: linear-gradient(135deg, #25D366, #128C7E); color: white; }
.fb-footer { background: #1877f2; color: white; }
.ig-footer { background: linear-gradient(135deg, #833ab4, #fd1d1d, #f56040); color: white; }

.footer-soc-btn:hover {
transform: translateY(-4px);
box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.footer-copy {
font-size: 13px;
color: #475569;
text-align: center;
border-top: 1px solid #1e293b;
padding-top: 24px;
width: 100%;
}

/* ===== STICKY NAVIGATION (MOBILE ONLY) ===== */
.sticky-footer {
display: none;
position: fixed;
bottom: 0;
left: 0;
right: 0;
z-index: 1000;
background: rgba(255, 255, 255, 0.96);
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
border-top: 1px solid var(--border);
box-shadow: 0 -4px 24px rgba(8, 145, 178, 0.12);
padding: 8px 12px calc(8px + env(safe-area-inset-bottom)) 12px;
gap: 8px;
}

.sfb-btn {
flex: 1;
display: flex;
flex-direction: column;
align-items: center;
gap: 2px;
padding: 7px 4px;
border-radius: 12px;
text-decoration: none;
font-size: 10px;
font-weight: 700;
transition: transform 0.2s ease;
}

.sfb-btn span {
font-size: 18px;
}

.sfb-call { background: linear-gradient(135deg, #dcfce7, #bbf7d0); color: #166534; }
.sfb-book { background: var(--gradient); color: white; }
.sfb-wa { background: linear-gradient(135deg, #dcfce7, #bbf7d0); color: #065f46; }
.sfb-maps { background: linear-gradient(135deg, #eff6ff, #dbeafe); color: #1e40af; }

/* ===== SCROLL REVEAL ACTIVATION ===== */
.fade-on-scroll {
opacity: 0;
transform: translateY(28px);
transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.22,1,.36,1);
will-change: transform, opacity;
}

.fade-on-scroll.visible {
opacity: 1;
transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
.fade-on-scroll {
   transition: none !important;
   opacity: 1 !important;
   transform: none !important;
}
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ===== RESPONSIVE MEDIA QUERIES ===== */
@media (min-width: 769px) and (max-width: 1024px) {
.hero { padding: 120px 24px 60px; gap: 40px; grid-template-columns: 1fr 1fr; }
.map-grid-container { grid-template-columns: 1fr; }
.services-grid { grid-template-columns: repeat(2, 1fr); }
.doctors-grid { grid-template-columns: repeat(2, 1fr); }

}

@media (max-width: 768px) {
html, body {
overflow-x: hidden;
max-width: 100%;
}
body {
padding-bottom: calc(80px + env(safe-area-inset-bottom)); /* Safe padding for sticky navigation overlay */
}
.nav-links {
display: none;
position: fixed;
top: 70px;
left: 0;
right: 0;
background: white;
flex-direction: column;
padding: 24px;
border-bottom: 1px solid var(--border);
box-shadow: 0 8px 32px rgba(8, 145, 178, 0.15);
z-index: 999;
}
.nav-links.open {
display: flex;
}
.hamburger {
display: flex;
}
.hero {
text-align: center;
padding: 100px 20px 90px;
}
.hero-badge, .hero-rating, .hero-social-pill {
margin: 0 auto;
}
.hero-btns, .hero-badges-row {
justify-content: center;
flex-direction: column;
align-items: stretch;
gap: 12px;
}
.hero-btns .btn {
width: 100%;
}


.doctors-grid {
grid-template-columns: 1fr;
max-width: 100%;
}
.explorer-inner {
grid-template-columns: 1fr;
gap: 24px;
}
.booking-inner {
grid-template-columns: 1fr;
}
.form-row {
grid-template-columns: 1fr;
}
.map-grid-container {
grid-template-columns: 1fr;
}
.gallery-slider-wrapper { padding: 0; }
.slider-img-container { width: 280px; height: 280px; }
.section {
padding: 40px 16px;
}
.sticky-footer {
display: flex;
}
.stat-num {
font-size: 38px;
}
.doctor-choice {
flex-direction: column;
}

/* Typography Scale Down */
.section-title {
font-size: 1.8rem;
line-height: 1.2;
word-wrap: break-word;
}
.hero-title {
font-size: 2.2rem;
line-height: 1.2;
}

/* Images & Graphics */
img, video, .hero-visual, .lb-img {
max-width: 100%;
height: auto;
object-fit: contain;
}

/* Touch Targets & Buttons */
.btn, button, .nav-cta, .sfb-btn, .doc-btn, .tab-btn, .album-btn {
min-height: 48px;
display: inline-flex;
align-items: center;
justify-content: center;
}

/* Form Inputs (Prevent iOS Zoom) */
input, select, textarea {
font-size: 16px !important;
min-height: 48px;
}
}

@media (max-width: 480px) {
.gallery-grid { grid-template-columns: 1fr; gap: 12px; }
.services-grid { grid-template-columns: 1fr; gap: 12px; }
.fab-ai-wrap { bottom: calc(100px + env(safe-area-inset-bottom)); right: 14px; }
.fab-wrap:hover .fab-label, .fab-wrap:focus-within .fab-label { max-width: 0 !important; opacity: 0 !important; padding: 0 !important; }
.fab-label { display: none; }
.ai-chat-panel { right: 8px; width: calc(100vw - 16px); bottom: calc(170px + env(safe-area-inset-bottom)); max-height: 420px; }
}
.date-hint {
  display: block;
  font-size: 13px;
  color: var(--text3);
  margin-top: 6px;
  margin-left: 4px;
}

/* Ensure the calendar icon is large and clearly visible on mobile */
input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 1;
  display: block;
  width: 20px;
  height: 20px;
  cursor: pointer;
}

/* Custom bulletproof date input styling for mobile */
input[type="date"] {
  position: relative;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="%23718096" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="4" width="18" height="18" rx="2" ry="2"></rect><line x1="16" y1="2" x2="16" y2="6"></line><line x1="8" y1="2" x2="8" y2="6"></line><line x1="3" y1="10" x2="21" y2="10"></line></svg>');
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 20px;
}

/* Expand the native invisible picker icon to cover the whole input so tapping anywhere opens it */
input[type="date"]::-webkit-calendar-picker-indicator {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
