/* =========================================================
   SmileCare Dental Clinic — Premium Demo by Virtual Rudra
   Design system: soft blue gradients, glassmorphism, luxury minimal
   ========================================================= */

/* ---------- Design Tokens ---------- */
:root {
  --font-head: 'Sora', sans-serif;
  --font-body: 'Inter', sans-serif;

  --blue-50:  #eef6ff;
  --blue-100: #dcedff;
  --blue-200: #b6dcff;
  --blue-400: #4f9dff;
  --blue-500: #2f7ef7;
  --blue-600: #1d63e0;
  --blue-700: #164ec2;
  --teal-400: #34d9c8;

  --ink-900: #0b1220;
  --ink-800: #131c2e;
  --ink-600: #4b5875;
  --ink-400: #7c8aa5;
  --ink-200: #e4eaf5;
  --ink-100: #f1f5fc;

  --white: #ffffff;

  --grad-primary: linear-gradient(135deg, var(--blue-500) 0%, var(--teal-400) 100%);
  --grad-soft: linear-gradient(180deg, #f5f9ff 0%, #ffffff 100%);
  --grad-hero: radial-gradient(60% 60% at 80% 10%, rgba(79,157,255,0.20) 0%, rgba(255,255,255,0) 70%),
               radial-gradient(50% 50% at 10% 20%, rgba(52,217,200,0.16) 0%, rgba(255,255,255,0) 70%);

  --shadow-sm: 0 2px 8px rgba(15, 30, 60, 0.06);
  --shadow-md: 0 12px 32px rgba(15, 30, 60, 0.10);
  --shadow-lg: 0 24px 60px rgba(15, 30, 60, 0.14);
  --shadow-glow: 0 8px 40px rgba(47, 126, 247, 0.25);

  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-full: 999px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
  font-family: var(--font-body);
  color: var(--ink-800);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select { font: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; color: var(--ink-900); }
:focus-visible { outline: 2px solid var(--blue-500); outline-offset: 3px; }

.container { max-width: 1220px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 820px; }
.section { padding: 110px 0; }
@media (max-width: 768px) { .section { padding: 72px 0; } }

.text-gradient {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.glass {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

/* ---------- Section headers ---------- */
.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-600);
  background: var(--blue-50);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 18px;
}
.section-head h2 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 16px; }
.section-head p { color: var(--ink-600); font-size: 17px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 15px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
  white-space: nowrap;
}
.btn-primary { background: var(--grad-primary); color: var(--white); box-shadow: var(--shadow-glow); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 50px rgba(47,126,247,0.35); }
.btn-ghost { background: var(--white); color: var(--ink-800); border: 1.5px solid var(--ink-200); }
.btn-ghost:hover { border-color: var(--blue-400); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.btn-white { background: var(--white); color: var(--blue-600); }
.btn-white:hover { transform: translateY(-3px); box-shadow: 0 14px 50px rgba(0,0,0,0.2); }
.btn-lg { padding: 17px 34px; font-size: 16px; }
.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-block { width: 100%; }

.ripple { position: relative; overflow: hidden; }
.ripple-effect {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.55);
  transform: scale(0);
  animation: ripple-anim 0.6s var(--ease);
  pointer-events: none;
}
@keyframes ripple-anim { to { transform: scale(3); opacity: 0; } }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.5s var(--ease), visibility 0.5s var(--ease);
}
.preloader.hidden { opacity: 0; visibility: hidden; }
.preloader-tooth { font-size: 48px; animation: pulse-tooth 1.1s ease-in-out infinite; }
@keyframes pulse-tooth { 0%,100% { transform: scale(1); opacity: 0.6; } 50% { transform: scale(1.25); opacity: 1; } }

/* ---------- Navbar ---------- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.navbar.scrolled { border-color: var(--ink-200); box-shadow: 0 4px 24px rgba(15,30,60,0.06); }
.nav-container {
  width: 100%; max-width: 1220px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 700; font-size: 20px; color: var(--ink-900); }
.logo-icon { font-size: 24px; }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a { font-size: 14.5px; font-weight: 500; color: var(--ink-600); transition: color 0.25s; position: relative; }
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px;
  background: var(--grad-primary); transition: width 0.3s var(--ease);
}
.nav-links a:hover { color: var(--ink-900); }
.nav-links a:hover::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 18px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 26px; }
.nav-toggle span { display: block; height: 2px; background: var(--ink-900); border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.3s var(--ease); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + 64px) 0 90px;
  overflow: hidden;
}
.hero-bg-gradient { position: absolute; inset: 0; background: var(--grad-hero); z-index: -1; }
.hero-container {
  max-width: 1220px; margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--blue-50); color: var(--blue-700);
  font-size: 13.5px; font-weight: 600;
  padding: 8px 16px; border-radius: var(--radius-full);
  margin-bottom: 24px;
}
.badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal-400); box-shadow: 0 0 0 4px rgba(52,217,200,0.25); }
.hero-title { font-size: clamp(38px, 5.2vw, 64px); margin-bottom: 22px; }
.hero-subtitle { font-size: 18px; color: var(--ink-600); max-width: 520px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 48px; }
.hero-stats { display: flex; gap: 40px; }
.hero-stat { font-family: var(--font-head); }
.hero-stat > span:not(.counter) { font-size: 26px; font-weight: 700; color: var(--ink-900); }
.hero-stat .counter { font-size: 26px; font-weight: 700; color: var(--ink-900); }
.hero-stat p { font-family: var(--font-body); font-size: 13.5px; color: var(--ink-400); margin-top: 2px; }

.hero-visual { position: relative; }
.hero-image-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/4.6;
}
.hero-image { width: 100%; height: 100%; object-fit: cover; }

.floating-card {
  position: absolute;
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  box-shadow: var(--shadow-md);
  max-width: 250px;
}
.card-appointment { top: 8%; left: -8%; }
.card-chat { bottom: 20%; right: -10%; }
.card-rating { bottom: 4%; left: -4%; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.fc-icon {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--grad-primary); color: var(--white); font-size: 16px;
}
.fc-icon-alt { background: linear-gradient(135deg, #ff8a65, #ff5f6d); }
.fc-title { font-size: 13.5px; font-weight: 700; color: var(--ink-900); }
.fc-sub { font-size: 12.5px; color: var(--ink-400); }
.fc-stars { color: #ffb020; font-size: 13px; letter-spacing: 2px; }

.scroll-indicator { display: flex; justify-content: center; margin-top: 40px; }
.scroll-indicator span {
  width: 26px; height: 42px; border: 2px solid var(--ink-200); border-radius: var(--radius-full);
  position: relative;
}
.scroll-indicator span::before {
  content: ''; position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 8px; background: var(--blue-500); border-radius: 2px;
  animation: scroll-dot 1.6s ease-in-out infinite;
}
@keyframes scroll-dot { 0% { opacity: 1; top: 8px; } 100% { opacity: 0; top: 22px; } }

/* ---------- Trusted By ---------- */
.trusted-by { padding: 48px 0; border-top: 1px solid var(--ink-200); border-bottom: 1px solid var(--ink-200); }
.trusted-label { text-align: center; font-size: 13px; color: var(--ink-400); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 26px; font-weight: 600; }
.trusted-logos { display: flex; justify-content: center; align-items: center; gap: 44px; flex-wrap: wrap; }
.trusted-logos span { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink-600); font-size: 15px; opacity: 0.85; transition: opacity 0.3s; }
.trusted-logos span:hover { opacity: 1; color: var(--blue-600); }
.trusted-logos i { font-size: 18px; color: var(--blue-500); }

/* ---------- Features ---------- */
.features { background: var(--grad-soft); }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feature-card {
  padding: 32px 26px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.feature-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.feature-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: var(--grad-primary); color: var(--white); font-size: 20px;
  margin-bottom: 18px;
}
.feature-card h3 { font-size: 18px; margin-bottom: 8px; }
.feature-card p { font-size: 14.5px; color: var(--ink-600); }

/* ---------- Showcase ---------- */
.showcase-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.showcase-visual { position: relative; }
.showcase-visual img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; aspect-ratio: 6/7; object-fit: cover; }
.showcase-badge {
  position: absolute; bottom: -18px; left: 24px;
  padding: 12px 20px; border-radius: var(--radius-full);
  font-size: 13.5px; font-weight: 700; color: var(--blue-700);
  display: flex; align-items: center; gap: 8px;
  box-shadow: var(--shadow-md);
}
.showcase-content h2 { font-size: clamp(28px, 3.6vw, 40px); margin: 16px 0 18px; }
.showcase-content p { color: var(--ink-600); font-size: 16.5px; margin-bottom: 26px; }
.check-list { margin-bottom: 32px; display: flex; flex-direction: column; gap: 14px; }
.check-list li { display: flex; align-items: center; gap: 10px; font-weight: 500; color: var(--ink-800); }
.check-list i { color: var(--teal-400); font-size: 17px; }

/* ---------- Journey Timeline ---------- */
.journey { background: var(--grad-soft); }
.timeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; position: relative; }
.timeline::before {
  content: ''; position: absolute; top: 26px; left: 8%; right: 8%; height: 2px;
  background: linear-gradient(90deg, var(--blue-200), var(--teal-400), var(--blue-200));
  z-index: 0;
}
.timeline-item { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; }
.timeline-icon {
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--white); border: 2px solid var(--blue-200);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue-600); font-size: 18px; margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}
.timeline-content { padding: 22px 18px; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.timeline-thumb { width: 100%; height: 90px; object-fit: cover; border-radius: 10px; margin-bottom: 14px; }
.timeline-step { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--blue-500); }
.timeline-content h3 { font-size: 16.5px; margin: 8px 0 8px; }
.timeline-content p { font-size: 13.5px; color: var(--ink-600); }

/* ---------- Before / After ---------- */
.ba-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.ba-card { padding: 40px 36px; border-radius: var(--radius-lg); }
.ba-before { background: #fef4f2; border: 1px solid #fbdad5; }
.ba-after { background: linear-gradient(135deg, var(--blue-50), #eafffb); border: 1px solid var(--blue-200); }
.ba-card h3 { font-size: 20px; display: flex; align-items: center; gap: 10px; margin-bottom: 24px; }
.ba-before h3 { color: #d9483a; }
.ba-after h3 { color: var(--blue-700); }
.ba-card ul { display: flex; flex-direction: column; gap: 16px; }
.ba-card li { display: flex; align-items: center; gap: 12px; font-weight: 500; font-size: 15px; }
.ba-before i { color: #d9483a; }
.ba-after i { color: var(--teal-400); }

/* ---------- Treatments ---------- */
.treatments-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.treatment-card {
  border-radius: var(--radius-md); overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  background: var(--white);
}
.treatment-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.treatment-card img { width: 100%; height: 200px; object-fit: cover; }
.treatment-body { padding: 22px 24px; }
.treatment-body h3 { font-size: 18px; margin-bottom: 8px; }
.treatment-body p { font-size: 14px; color: var(--ink-600); margin-bottom: 14px; }
.treatment-price { display: inline-block; font-weight: 700; color: var(--blue-600); font-size: 14.5px; }

/* ---------- Demo Notice ---------- */
.demo-notice {
  max-width: 560px; margin: 0 auto 44px;
  display: flex; align-items: center; gap: 10px; justify-content: center;
  background: #fff8e6; border: 1px solid #ffe4a3; color: #8a6300;
  padding: 12px 20px; border-radius: var(--radius-full);
  font-size: 13.5px; font-weight: 600; text-align: center;
}

/* ---------- Doctors ---------- */
.doctors-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.doctor-card { text-align: center; }
.doctor-img { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 20px; box-shadow: var(--shadow-md); aspect-ratio: 4/4.4; }
.doctor-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.doctor-card:hover .doctor-img img { transform: scale(1.06); }
.doctor-card h3 { font-size: 19px; margin-bottom: 4px; }
.doctor-role { color: var(--ink-500, var(--ink-600)); font-size: 14px; margin-bottom: 14px; }
.doctor-socials { display: flex; justify-content: center; gap: 14px; }
.doctor-socials a {
  width: 36px; height: 36px; border-radius: 50%; background: var(--blue-50);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue-600); transition: background 0.3s, color 0.3s, transform 0.3s;
}
.doctor-socials a:hover { background: var(--grad-primary); color: var(--white); transform: translateY(-3px); }

/* ---------- Testimonials ---------- */
.testimonials { background: var(--grad-soft); }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial-card { padding: 30px 28px; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.t-stars { color: #ffb020; margin-bottom: 16px; font-size: 14px; letter-spacing: 2px; }
.testimonial-card p { font-size: 15px; color: var(--ink-800); margin-bottom: 22px; line-height: 1.7; }
.t-author { display: flex; align-items: center; gap: 12px; }
.t-author img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.t-author strong { display: block; font-size: 14.5px; }
.t-author span { font-size: 12.5px; color: var(--ink-400); }

/* ---------- AI Chat ---------- */
.chat-window { max-width: 640px; margin: 0 auto; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.chat-header { padding: 18px 24px; border-bottom: 1px solid var(--ink-200); background: rgba(255,255,255,0.5); }
.chat-header-info { display: flex; align-items: center; gap: 12px; }
.chat-avatar {
  width: 40px; height: 40px; border-radius: 50%; background: var(--grad-primary);
  display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 16px; flex-shrink: 0;
}
.chat-avatar.sm { width: 30px; height: 30px; font-size: 13px; }
.chat-title { font-weight: 700; font-size: 14.5px; }
.chat-status { font-size: 12.5px; color: var(--ink-400); display: flex; align-items: center; gap: 6px; }
.dot-online { width: 7px; height: 7px; border-radius: 50%; background: #2ecc71; display: inline-block; }
.chat-body { height: 320px; overflow-y: auto; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.chat-msg { display: flex; align-items: flex-start; gap: 10px; max-width: 85%; animation: msg-in 0.35s var(--ease); }
@keyframes msg-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.chat-msg p { padding: 12px 16px; border-radius: 16px; font-size: 14px; line-height: 1.55; }
.chat-msg.bot p { background: var(--ink-100); border-bottom-left-radius: 4px; }
.chat-msg.user { align-self: flex-end; flex-direction: row-reverse; }
.chat-msg.user p { background: var(--grad-primary); color: var(--white); border-bottom-right-radius: 4px; }
.chat-typing p { display: flex; gap: 4px; align-items: center; padding: 14px 16px; }
.chat-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-400); animation: typing-bounce 1.2s infinite; }
.chat-typing span:nth-child(2) { animation-delay: 0.15s; }
.chat-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing-bounce { 0%,60%,100% { transform: translateY(0); opacity: 0.5; } 30% { transform: translateY(-5px); opacity: 1; } }
.chat-suggestions { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 24px 16px; }
.suggestion-chip {
  padding: 8px 14px; border-radius: var(--radius-full); background: var(--blue-50); color: var(--blue-700);
  font-size: 12.5px; font-weight: 600; transition: background 0.3s, transform 0.3s;
}
.suggestion-chip:hover { background: var(--blue-100); transform: translateY(-2px); }
.chat-input-row { display: flex; gap: 10px; padding: 16px 20px; border-top: 1px solid var(--ink-200); background: rgba(255,255,255,0.5); }
.chat-input-row input {
  flex: 1; border: 1.5px solid var(--ink-200); border-radius: var(--radius-full);
  padding: 12px 20px; font-size: 14px; background: var(--white); transition: border-color 0.3s;
}
.chat-input-row input:focus { outline: none; border-color: var(--blue-400); }
.chat-send {
  width: 44px; height: 44px; border-radius: 50%; background: var(--grad-primary); color: var(--white);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: transform 0.3s;
}
.chat-send:hover { transform: scale(1.08); }

/* ---------- Booking ---------- */
.booking { background: var(--grad-soft); }
.booking-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 32px; align-items: start; }
.booking-form, .calendar-card { padding: 36px; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 20px; position: relative; }
.form-group label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 8px; color: var(--ink-800); }
.form-group input, .form-group select {
  width: 100%; padding: 13px 16px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--ink-200); background: var(--white);
  font-size: 14.5px; transition: border-color 0.3s, box-shadow 0.3s;
}
.form-group input:focus, .form-group select:focus {
  outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(47,126,247,0.12);
}
.form-group.invalid input, .form-group.invalid select { border-color: #e14b3d; }
.error-msg { display: none; color: #e14b3d; font-size: 12.5px; margin-top: 6px; }
.form-group.invalid .error-msg { display: block; }

.calendar-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.calendar-header button { width: 32px; height: 32px; border-radius: 50%; background: var(--blue-50); color: var(--blue-600); display: flex; align-items: center; justify-content: center; transition: background 0.3s; }
.calendar-header button:hover { background: var(--blue-100); }
.calendar-header h3 { font-size: 16px; }
.calendar-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; font-size: 12px; color: var(--ink-400); font-weight: 600; margin-bottom: 8px; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-day {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  border-radius: 10px; font-size: 13.5px; font-weight: 500; cursor: pointer;
  transition: background 0.25s, color 0.25s, transform 0.2s;
}
.cal-day.empty { cursor: default; }
.cal-day.available { background: var(--blue-50); color: var(--blue-700); }
.cal-day.available:hover { background: var(--blue-100); transform: scale(1.08); }
.cal-day.selected { background: var(--grad-primary); color: var(--white); box-shadow: var(--shadow-glow); }
.cal-day.past { color: var(--ink-200); cursor: not-allowed; }
.calendar-legend { display: flex; gap: 20px; margin-top: 18px; font-size: 12.5px; color: var(--ink-600); }
.calendar-legend .dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; margin-right: 6px; }
.dot-available { background: var(--blue-200); }
.dot-selected { background: var(--blue-500); }

/* ---------- FAQ Accordion ---------- */
.accordion-item { border-bottom: 1px solid var(--ink-200); }
.accordion-header {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 22px 4px; text-align: left; font-family: var(--font-head); font-weight: 600; font-size: 16.5px; color: var(--ink-900);
}
.accordion-header i { transition: transform 0.35s var(--ease); color: var(--blue-500); flex-shrink: 0; margin-left: 16px; }
.accordion-item.active .accordion-header i { transform: rotate(180deg); }
.accordion-panel { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.accordion-panel p { padding: 0 4px 22px; color: var(--ink-600); font-size: 15px; max-width: 680px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 32px; }
.contact-info { display: flex; flex-direction: column; gap: 16px; }
.contact-item { display: flex; align-items: center; gap: 16px; padding: 20px 24px; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
a.contact-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.contact-item i { width: 44px; height: 44px; border-radius: 12px; background: var(--grad-primary); color: var(--white); display: flex; align-items: center; justify-content: center; font-size: 17px; flex-shrink: 0; }
.contact-item strong { display: block; font-size: 14.5px; margin-bottom: 2px; }
.contact-item span { font-size: 14px; color: var(--ink-600); }
.contact-socials { display: flex; gap: 12px; margin-top: 6px; }
.contact-socials a {
  width: 42px; height: 42px; border-radius: 50%; background: var(--blue-50); color: var(--blue-600);
  display: flex; align-items: center; justify-content: center; transition: background 0.3s, color 0.3s, transform 0.3s;
}
.contact-socials a:hover { background: var(--grad-primary); color: var(--white); transform: translateY(-3px); }
.contact-map { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.map-placeholder {
  height: 100%; min-height: 340px; background: var(--blue-50);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  color: var(--blue-600);
}
.map-placeholder i { font-size: 40px; }
.map-placeholder p { font-size: 14px; font-weight: 600; }

/* ---------- Final CTA ---------- */
.final-cta {
  background: var(--grad-primary);
  padding: 100px 0;
  text-align: center;
  color: var(--white);
}
.final-cta h2 { color: var(--white); font-size: clamp(28px, 4vw, 42px); margin-bottom: 16px; }
.final-cta p { font-size: 17px; opacity: 0.92; max-width: 520px; margin: 0 auto 34px; }

/* ---------- Footer ---------- */
.footer { background: var(--ink-900); color: #b7c2d9; padding: 80px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-brand .nav-logo { color: var(--white); margin-bottom: 14px; }
.footer-brand p { font-size: 14px; line-height: 1.7; max-width: 280px; }
.footer-col h4 { color: var(--white); font-size: 15px; margin-bottom: 18px; }
.footer-col a { display: block; font-size: 14px; margin-bottom: 12px; transition: color 0.3s; }
.footer-col a:hover { color: var(--white); }
.footer .contact-socials a { background: rgba(255,255,255,0.08); color: var(--white); }
.footer-bottom { max-width: 1220px; margin: 0 auto; padding: 26px 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 13px; }
.footer-credit strong { color: var(--white); }

/* ---------- Floating WhatsApp / Back to Top ---------- */
.whatsapp-float {
  position: fixed; bottom: 28px; left: 28px; z-index: 900;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: var(--white); font-size: 26px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(37,211,102,0.4);
  animation: float-bob 3s ease-in-out infinite;
  transition: transform 0.3s;
}
.whatsapp-float:hover { transform: scale(1.1); }
.back-to-top {
  position: fixed; bottom: 28px; right: 28px; z-index: 900;
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--ink-900); color: var(--white); font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }

/* ---------- Modals ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(11,18,32,0.55);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity 0.35s var(--ease), visibility 0.35s var(--ease);
  padding: 20px;
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-content {
  background: rgba(255,255,255,0.95);
  border-radius: var(--radius-lg);
  padding: 40px; max-width: 520px; width: 100%;
  position: relative; text-align: center;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.35s var(--ease);
  box-shadow: var(--shadow-lg);
}
.modal-overlay.active .modal-content { transform: scale(1) translateY(0); }
.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 34px; height: 34px; border-radius: 50%; background: var(--ink-100);
  font-size: 20px; line-height: 1; display: flex; align-items: center; justify-content: center;
  transition: background 0.3s;
}
.modal-close:hover { background: var(--ink-200); }
.modal-video-placeholder { padding: 60px 20px; color: var(--blue-600); }
.modal-video-placeholder i { font-size: 56px; margin-bottom: 18px; }
.modal-video-placeholder p { color: var(--ink-600); font-size: 14.5px; }
.success-icon {
  width: 74px; height: 74px; border-radius: 50%; background: var(--grad-primary);
  color: var(--white); font-size: 30px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 22px;
  animation: pop-in 0.5s var(--ease);
}
@keyframes pop-in { 0% { transform: scale(0); } 70% { transform: scale(1.15); } 100% { transform: scale(1); } }
.modal-success h3 { font-size: 22px; margin-bottom: 10px; }
.modal-success p { color: var(--ink-600); font-size: 14.5px; margin-bottom: 26px; }

/* ---------- Scroll Animations ---------- */
.fade-up { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); transition-delay: var(--delay, 0s); }
.fade-up.in-view { opacity: 1; transform: translateY(0); }

.float-anim { animation: floaty 5s ease-in-out infinite; }
.float-anim-reverse { animation: floaty 5.5s ease-in-out infinite reverse; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes float-bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .timeline::before { display: none; }
  .treatments-grid, .doctors-grid, .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hero-container { grid-template-columns: 1fr; }
  .hero-visual { max-width: 440px; margin: 0 auto; order: -1; }
  .hero-stats { justify-content: center; }
  .showcase-grid, .ba-grid, .booking-grid, .contact-grid { grid-template-columns: 1fr; }
  .showcase-visual { order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .container, .container-narrow, .nav-container, .hero-container { padding-left: 20px; padding-right: 20px; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-actions .btn { display: none; }
  .navbar.menu-open .nav-links {
    display: flex; flex-direction: column; position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: var(--white); padding: 24px; gap: 20px; box-shadow: var(--shadow-md); border-bottom: 1px solid var(--ink-200);
  }
  .navbar.menu-open .nav-actions .btn { display: inline-flex; margin-top: 4px; }
  .features-grid { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr 1fr; }
  .treatments-grid, .doctors-grid, .testimonials-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .floating-card { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }

  /* Medium, professional image sizing on mobile — nothing full-bleed or oversized */
  .hero { padding: calc(var(--nav-h) + 36px) 0 56px; }
  .hero-visual { max-width: 280px; }
  .hero-image-wrap { aspect-ratio: 4/4.2; }
  .section-head { margin-bottom: 40px; }
  .showcase-visual img { max-width: 380px; aspect-ratio: 4/3.6; margin: 0 auto; display: block; }
  .showcase-badge { left: 50%; transform: translateX(-50%); }
  .treatment-card, .doctor-card, .testimonial-card { max-width: 380px; margin-left: auto; margin-right: auto; }
  .treatment-card img { height: 160px; }
  .doctor-img { aspect-ratio: 4/3.6; max-width: 260px; margin: 0 auto 20px; }
}

@media (max-width: 480px) {
  .container, .container-narrow, .nav-container, .hero-container { padding-left: 16px; padding-right: 16px; }
  .section { padding: 56px 0; }
  .hero-visual { max-width: 220px; }
  .hero-stats { gap: 24px; }
  .treatment-card img { height: 140px; }
  .doctor-img { max-width: 210px; }
  .showcase-visual img { max-width: 300px; }
  .fc-title, .fc-sub { font-size: 12px; }
}
