/* ═══════════════════════════════════════════════
   HealthCare Clinic — style.css
   Theme: Teal-Blue Clinical Premium
   ═══════════════════════════════════════════════ */

/* ─── Custom Properties ─────────────────────── */
:root {
  /* Core palette */
  --teal:        #0d9488;
  --teal-light:  #14b8a6;
  --teal-dark:   #0f766e;
  --blue:        #0369a1;
  --blue-light:  #0ea5e9;

  /* Surfaces */
  --bg:          #f8fafc;
  --bg-card:     #ffffff;
  --bg-alt:      #f0fdf9;
  --border:      #e2e8f0;

  /* Text */
  --text-h:      #0f172a;
  --text-body:   #334155;
  --text-muted:  #64748b;

  /* Gradients */
  --grad-hero:   linear-gradient(135deg, #e0f2fe 0%, #ccfbf1 100%);
  --grad-teal:   linear-gradient(135deg, var(--teal) 0%, var(--blue) 100%);
  --grad-stats:  linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);

  /* Effects */
  --shadow-sm:   0 2px 8px rgba(0,0,0,.06);
  --shadow-md:   0 8px 24px rgba(0,0,0,.10);
  --shadow-lg:   0 20px 48px rgba(0,0,0,.14);
  --radius-sm:   10px;
  --radius-md:   16px;
  --radius-lg:   24px;

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;

  /* Transitions */
  --t-fast: .18s ease;
  --t-med:  .32s ease;
  --t-slow: .5s ease;

  /* Nav height */
  --nav-h: 72px;
}

/* Dark mode overrides */
.dark-mode {
  --bg:       #0f172a;
  --bg-card:  #1e293b;
  --bg-alt:   #162032;
  --border:   #334155;
  --text-h:   #f1f5f9;
  --text-body:#cbd5e1;
  --text-muted:#94a3b8;
  --grad-hero:linear-gradient(135deg, #162032 0%, #0f2a2a 100%);
  --shadow-sm:0 2px 8px rgba(0,0,0,.3);
  --shadow-md:0 8px 24px rgba(0,0,0,.4);
  --shadow-lg:0 20px 48px rgba(0,0,0,.5);
}

/* ─── Reset & Base ──────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-body);
  line-height: 1.7;
  transition: background var(--t-med), color var(--t-med);
  overflow-x: hidden;
}

body[data-loading="true"] { overflow: hidden; }

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

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

ul { list-style: none; }

h1,h2,h3,h4 {
  font-family: var(--font-display);
  color: var(--text-h);
  line-height: 1.2;
  transition: color var(--t-med);
}

/* ─── Loader ────────────────────────────────── */
#loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--grad-teal);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  transition: opacity .5s ease, visibility .5s ease;
}
#loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.loader-inner { text-align: center; color: #fff; }

.loader-cross {
  width: 60px; height: 60px;
  position: relative; margin: 0 auto 16px;
}
.loader-cross span {
  position: absolute; background: #fff; border-radius: 4px;
  animation: pulse 1s ease-in-out infinite;
}
.loader-cross span:first-child { width: 12px; height: 60px; left: 50%; transform: translateX(-50%); }
.loader-cross span:last-child  { width: 60px; height: 12px; top: 50%; transform: translateY(-50%); animation-delay: .2s; }

@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }

.loader-inner p { font-size: 1rem; font-weight: 600; letter-spacing: .1em; opacity: .9; }

/* ─── Layout Helpers ────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 96px 0; }

.section-header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 64px;
}
.section-header h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 12px 0 16px; }
.section-header p  { color: var(--text-muted); font-size: 1.05rem; }

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--teal);
  padding: 4px 14px;
  border-radius: 100px;
  background: rgba(13,148,136,.1);
}

/* ─── Scroll Reveal ─────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ─── Buttons ───────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 100px;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--t-fast);
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.15);
  opacity: 0;
  transition: opacity var(--t-fast);
}
.btn:hover::after { opacity: 1; }
.btn:active { transform: scale(.97); }

.btn-primary {
  background: var(--grad-teal);
  color: #fff;
  box-shadow: 0 4px 20px rgba(13,148,136,.35);
}
.btn-primary:hover {
  box-shadow: 0 8px 28px rgba(13,148,136,.5);
  transform: translateY(-2px);
}

.btn-outline {
  border-color: var(--teal);
  color: var(--teal);
  background: transparent;
}
.btn-outline:hover {
  background: var(--teal);
  color: #fff;
  transform: translateY(-2px);
}

.btn-full { width: 100%; justify-content: center; }

/* ─── Navbar ────────────────────────────────── */
#navbar {
  position: sticky;
  top: 0; z-index: 1000;
  height: var(--nav-h);
  background: rgba(248,250,252,.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background var(--t-med), border-color var(--t-med), box-shadow var(--t-med);
}
#navbar.scrolled {
  box-shadow: var(--shadow-md);
  background: rgba(248,250,252,.97);
}
.dark-mode #navbar { background: rgba(15,23,42,.88); }
.dark-mode #navbar.scrolled { background: rgba(15,23,42,.97); }

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .85rem;
  font-weight: 500;
  color: var(--text-h);
  line-height: 1.3;
  flex-shrink: 0;
  text-decoration: none;
}
.logo-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--grad-teal);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; font-weight: 700;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-body);
  transition: background var(--t-fast), color var(--t-fast);
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active { background: rgba(13,148,136,.1); color: var(--teal); }

.nav-actions {
  display: flex; align-items: center; gap: 12px; flex-shrink: 0;
}

.theme-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  cursor: pointer;
  font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--t-fast);
  color: var(--text-body);
}
.theme-btn:hover { border-color: var(--teal); color: var(--teal); }

.light-mode .moon-icon { display: none; }
.dark-mode  .sun-icon  { display: none; }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--grad-teal);
  color: #fff;
  padding: 10px 18px;
  border-radius: 100px;
  font-weight: 600;
  font-size: .88rem;
  white-space: nowrap;
  transition: box-shadow var(--t-fast), transform var(--t-fast);
  box-shadow: 0 4px 16px rgba(13,148,136,.3);
}
.nav-cta:hover { box-shadow: 0 6px 24px rgba(13,148,136,.5); transform: translateY(-1px); }

/* hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text-h);
  border-radius: 2px;
  transition: all var(--t-fast);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── Hero ──────────────────────────────────── */
.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 48px;
  padding: 72px 24px 0;
  max-width: 100%;
  margin: 0 auto;
    background-image: url(hero.png);
  background-size: cover;
  background-position: center;
  overflow: visible;
}
.hero-bg {
  position:relative;
  transition: background var(--t-med);
}

.hero-content {
  grid-column: 1;
  grid-row: 1;
}
.hero-eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--teal);
  border: 1px solid rgba(13,148,136,.3);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  margin-bottom: 20px;
  color: var(--text-h);
}
.hero h1 em {
  font-style: normal;
  color: var(--teal);
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 440px;
  margin-bottom: 36px;
}

.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 40px; }

.hero-trust { display: flex; align-items: center; gap: 16px; }
.trust-avatars {
  display: flex;
}
.trust-avatars img {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 2px solid var(--bg-card);
  margin-left: -10px;
  object-fit: cover;
}
.trust-avatars img:first-child { margin-left: 0; }

.stars { color: #f59e0b; font-size: 1rem; letter-spacing: 2px; }
.hero-trust small { font-size: .82rem; color: var(--text-muted); }


 
 

/* Floating badges */
.hero-badge {
  position: absolute;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-md);
  min-width: 130px;
  transition: transform var(--t-fast), background var(--t-med);
  animation: float 3.5s ease-in-out infinite;
}
.hero-badge:hover { transform: scale(1.05) !important; }

.badge-1 { top: 32px; right: -32px; animation-delay: 0s; }
.badge-2 { top: 50%; right: -40px; transform: translateY(-50%); animation-delay: .7s; }
.badge-3 { bottom: 60px; right: -28px; animation-delay: 1.4s; }

.badge-icon { font-size: 1.5rem; }
.hero-badge strong { display: block; font-size: .85rem; color: var(--text-h); }
.hero-badge small  { font-size: .75rem; color: var(--text-muted); }

@keyframes float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
.badge-2 { animation: float2 3.5s ease-in-out infinite .7s; }
@keyframes float2 {
  0%,100% { transform: translateY(-50%); }
  50%      { transform: translateY(calc(-50% - 8px)); }
}

/* Hero pills */
.hero-pills {
  grid-column: 1 / -1;
  grid-row: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 36px 0 72px;
}
.pill {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform var(--t-fast), box-shadow var(--t-fast), background var(--t-med);
}
.pill:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.pill > span { font-size: 1.8rem; flex-shrink: 0; line-height: 1; }
.pill strong { display: block; font-size: .95rem; color: var(--text-h); margin-bottom: 4px; }
.pill small  { font-size: .8rem; color: var(--text-muted); line-height: 1.4; }

/* ─── Services ──────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-fast), box-shadow var(--t-fast), background var(--t-med), border-color var(--t-fast);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-teal);
  opacity: 0;
  transition: opacity var(--t-med);
  z-index: 0;
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: var(--teal); }
.service-card:hover::before { opacity: .04; }

.service-icon {
  width: 64px; height: 64px;
  border-radius: 18px;
  background: color-mix(in srgb, var(--icon-color) 12%, transparent);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 20px;
  position: relative; z-index: 1;
  transition: transform var(--t-fast);
}
.service-card:hover .service-icon { transform: scale(1.1) rotate(-5deg); }

.service-card h3 {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  position: relative; z-index: 1;
}
.service-card p {
  font-size: .9rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  position: relative; z-index: 1;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--teal);
  position: relative; z-index: 1;
  transition: gap var(--t-fast);
}
.card-link:hover { gap: 12px; }

/* ─── About ─────────────────────────────────── */
.about-section { background: var(--bg-alt); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.about-img-wrap {
  position: relative;
}
.about-img-wrap img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.about-badge {
  position: absolute;
  bottom: 32px; left: -28px;
  background: var(--grad-teal);
  color: #fff;
  padding: 20px 24px;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-md);
}
.about-badge strong { font-size: 2rem; font-family: var(--font-display); display: block; line-height: 1; }
.about-badge span   { font-size: 1.5rem; }
.about-badge small  { display: block; font-size: .8rem; opacity: .9; margin-top: 4px; }

.about-text h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin: 12px 0 20px; }
.about-text p  { color: var(--text-muted); margin-bottom: 28px; }

.check-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 36px; }
.check-list li {
  display: flex; align-items: center; gap: 12px;
  font-weight: 500; font-size: .95rem; color: var(--text-body);
}
.check-list li::before {
  content: '✓';
  width: 26px; height: 26px;
  background: var(--grad-teal);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* ─── Doctors ───────────────────────────────── */
.doctors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.doctor-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform var(--t-fast), box-shadow var(--t-fast), background var(--t-med);
  cursor: pointer;
}
.doctor-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }

.doctor-img {
  position: relative;
  overflow: hidden;
  height: 260px;
}
.doctor-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--t-med);
}
.doctor-card:hover .doctor-img img { transform: scale(1.07); }

.doctor-socials {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 12px;
  display: flex; gap: 8px; justify-content: center;
  background: linear-gradient(to top, rgba(0,0,0,.6), transparent);
  transform: translateY(100%);
  transition: transform var(--t-fast);
}
.doctor-card:hover .doctor-socials { transform: none; }
.doctor-socials a {
  width: 32px; height: 32px;
  background: rgba(255,255,255,.9);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 700;
  color: var(--teal);
  transition: background var(--t-fast), color var(--t-fast);
}
.doctor-socials a:hover { background: var(--teal); color: #fff; }

.doctor-info {
  padding: 20px;
}
.doctor-info h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.specialty {
  font-size: .82rem;
  color: var(--teal);
  font-weight: 600;
  display: block;
  margin-bottom: 10px;
}
.doctor-meta {
  display: flex; gap: 16px;
  font-size: .8rem; color: var(--text-muted);
}
.doctor-meta span:first-child { color: #f59e0b; }

/* ─── Stats ─────────────────────────────────── */
.stats-section {
  background: var(--grad-stats);
  padding: 72px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.stat-item { color: #fff; }
.stat-icon { font-size: 2.4rem; display: block; margin-bottom: 12px; }
.stat-item strong { font-size: clamp(2rem, 4vw, 2.8rem); font-family: var(--font-display); display: block; }
.stat-item small { font-size: .9rem; opacity: .75; margin-top: 6px; display: block; }

/* ─── Testimonials ──────────────────────────── */
.testimonials-slider { position: relative; overflow: hidden; }

.slider-track {
  display: flex;
  gap: 28px;
  transition: transform .5s cubic-bezier(.25,.46,.45,.94);
  will-change: transform;
}
.slider-track{
    display:flex;
    gap:24px;
    transition:transform .5s ease;
}

.testimonial-card{
    flex:0 0 calc((100% - 48px) / 3);
}

@media(max-width:1024px){

    .testimonial-card{
        flex:0 0 calc((100% - 24px) / 2);
    }

}

@media(max-width:768px){

    .slider-track{
        gap:16px;
    }

    .testimonial-card{
        flex:0 0 100%;
    }

}
.testimonial-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 36px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  min-width: calc(33.333% - 20px);
  flex-shrink: 0;
  transition: background var(--t-med), box-shadow var(--t-fast);
}
.testimonial-card:hover { box-shadow: var(--shadow-md); }

.quote-icon { font-size: 2.5rem; color: var(--teal); opacity: .3; line-height: 1; margin-bottom: 16px; }

.testimonial-card p {
  font-size: .95rem;
  color: var(--text-body);
  margin-bottom: 24px;
  font-style: italic;
  line-height: 1.75;
}

.testimonial-author {
  display: flex; align-items: center; gap: 14px;
}
.testimonial-author img {
  width: 52px; height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--teal-light);
}
.testimonial-author strong { display: block; font-size: .9rem; color: var(--text-h); margin-bottom: 4px; }
.testimonial-author .stars { font-size: .8rem; }

.slider-controls {
  display: flex; align-items: center; justify-content: center;
  gap: 16px; margin-top: 36px;
}
.slider-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--bg-card);
  color: var(--text-h);
  font-size: 1.1rem;
  cursor: pointer;
  transition: all var(--t-fast);
}
.slider-btn:hover {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}
.slider-dots { display: flex; gap: 8px; }
.slider-dot {
  width: 8px; height: 8px;
  border-radius: 100px;
  background: var(--border);
  cursor: pointer;
  transition: all var(--t-fast);
  border: none;
}
.slider-dot.active { background: var(--teal); width: 24px; }

/* ─── FAQ ───────────────────────────────────── */
.faq-section { background: var(--bg-alt); }

.faq-container { max-width: 780px; }

.faq-list { display: flex; flex-direction: column; gap: 14px; }

.faq-item {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: background var(--t-med), border-color var(--t-fast);
}
.faq-item.open { border-color: var(--teal); }

.faq-q {
  width: 100%;
  background: none;
  border: none;
  padding: 22px 24px;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-h);
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px;
  transition: color var(--t-fast);
}
.faq-q:hover { color: var(--teal); }
.faq-item.open .faq-q { color: var(--teal); }

.faq-icon {
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--teal);
  transition: transform var(--t-fast);
  flex-shrink: 0;
  line-height: 1;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .2s ease;
}
.faq-item.open .faq-a { max-height: 300px; padding-bottom: 20px; }

.faq-a p {
  padding: 0 24px;
  font-size: .93rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ─── Appointment ───────────────────────────── */
.appointment-section { background: var(--bg); }

.appointment-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 72px;
  align-items: start;
}

.appt-info h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 12px 0 16px; }
.appt-info p  { color: var(--text-muted); margin-bottom: 28px; }

/* Form */
.appt-form {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  transition: background var(--t-med);
}

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

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

.form-group label {
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-h);
}
.optional { font-weight: 400; color: var(--text-muted); }

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: .93rem;
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-med);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(13,148,136,.12);
}
.form-group input.error, .form-group select.error, .form-group textarea.error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239,68,68,.12);
}
.form-group textarea { resize: vertical; min-height: 90px; }

.form-error {
  font-size: .78rem;
  color: #ef4444;
  min-height: 18px;
  display: block;
}

.appt-form .form-group { margin-bottom: 20px; }
.appt-form .btn { margin-top: 8px; }

.form-success {
  display: none;
  margin-top: 16px;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  background: rgba(13,148,136,.1);
  color: var(--teal-dark);
  font-weight: 600;
  text-align: center;
  font-size: .93rem;
  border: 1px solid rgba(13,148,136,.2);
}
.form-success.show { display: block; }

/* ─── Contact ───────────────────────────────── */
.contact-section { background: var(--bg-alt); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: start;
}

.contact-cards { display: flex; flex-direction: column; gap: 20px; }

.contact-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  display: flex; align-items: center; gap: 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-fast), box-shadow var(--t-fast), background var(--t-med);
}
.contact-card:hover { transform: translateX(6px); box-shadow: var(--shadow-md); }

.contact-card-icon {
  width: 50px; height: 50px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--c) 12%, transparent);
  color: var(--c);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.contact-card strong { display: block; font-size: .9rem; margin-bottom: 4px; color: var(--text-h); }
.contact-card p { font-size: .88rem; color: var(--text-muted); line-height: 1.5; }
.contact-card a { color: var(--teal); font-weight: 500; }
.contact-card a:hover { text-decoration: underline; }

.map-wrap {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

/* ─── Footer ────────────────────────────────── */
.footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 72px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 48px;
  padding-bottom: 56px;
}

.footer-brand .nav-logo { color: #f1f5f9; margin-bottom: 16px; }
.footer-brand .logo-icon { /* inherits */ }
.footer-brand p { font-size: .88rem; line-height: 1.75; max-width: 280px; }

.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.social-btn {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,.07);
  color: #94a3b8;
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; font-weight: 700;
  transition: background var(--t-fast), color var(--t-fast);
}
.social-btn:hover { background: var(--teal); color: #fff; }

.footer-col h4 {
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font-size: .88rem;
  transition: color var(--t-fast), padding-left var(--t-fast);
  display: inline-flex; align-items: center; gap: 6px;
}
.footer-col a:hover { color: var(--teal-light); padding-left: 4px; }

.footer-contact li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: .88rem; line-height: 1.5;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  text-align: center;
  padding: 22px 0;
  font-size: .82rem;
}

/* ─── Floating Buttons ──────────────────────── */
.whatsapp-btn {
  position: fixed;
  bottom: 88px; right: 24px;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.5);
  z-index: 900;
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.whatsapp-btn:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,.6); }

.back-top {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--grad-teal);
  color: #fff;
  font-size: 1.4rem;
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  z-index: 900;
  opacity: 0; pointer-events: none;
  transform: translateY(16px);
  transition: opacity var(--t-fast), transform var(--t-fast);
}
.back-top.visible { opacity: 1; pointer-events: auto; transform: none; }
.back-top:hover { transform: translateY(-3px); }

/* ─── Responsive ────────────────────────────── */

/* Tablet  (≤ 1024px) */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 48px;
    text-align: center;
  }
  .hero-content { grid-column: 1; grid-row: 1; }
  .hero-image   { grid-column: 1; grid-row: 2; justify-content: center; }
  .hero-pills   { grid-template-columns: repeat(2, 1fr); }
  .hero-btns, .hero-trust { justify-content: center; }
  .hero-sub { margin: 0 auto 36px; }

  .hero-img-wrap img { width: 360px; height: 420px; }
  .badge-1 { right: -8px; }
  .badge-2 { right: -16px; }
  .badge-3 { right: -4px; }

  .services-grid   { grid-template-columns: repeat(2, 1fr); }
  .doctors-grid    { grid-template-columns: repeat(2, 1fr); }
  .about-grid      { grid-template-columns: 1fr; }
  .about-img-wrap  { max-width: 560px; margin: 0 auto; }
  .about-badge     { left: 16px; }
  .stats-grid      { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .appointment-grid{ grid-template-columns: 1fr; }
  .contact-grid    { grid-template-columns: 1fr; }
  .footer-grid     { grid-template-columns: 1fr 1fr; gap: 36px; }
}

/* Mobile (≤ 768px) */
@media (max-width: 768px) {
  :root { --nav-h: 64px; }

  .section { padding: 72px 0; }

  /* Nav */
  .nav-links {
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: var(--bg-card);
    flex-direction: column;
    gap: 0;
    padding: 16px 0 24px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-110%);
    opacity: 0;
    transition: transform var(--t-med), opacity var(--t-med);
    z-index: 999;
    box-shadow: var(--shadow-md);
  }
  .nav-links.open { transform: none; opacity: 1; }
  .nav-links a { padding: 12px 24px; border-radius: 0; }
  .nav-cta { display: none; }
  .hamburger { display: flex; }

  /* Hero */
  .hero { gap: 32px; padding: 40px 16px 0; }
  .hero-pills { grid-template-columns: 1fr 1fr; padding-bottom: 48px; }
  .hero-img-wrap img { width: 280px; height: 320px; }
  .badge-1, .badge-2, .badge-3 { display: none; }

  .services-grid { grid-template-columns: 1fr; }
  .doctors-grid  { grid-template-columns: 1fr; max-width: 340px; margin: 0 auto; }
  .stats-grid    { grid-template-columns: 1fr 1fr; }

  /* Testimonials — show 1 card */
  .testimonial-card { min-width: calc(100% - 0px); }

  .form-row { grid-template-columns: 1fr; }
  .appt-form { padding: 28px 20px; }

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

/* Small mobile (≤ 480px) */
@media (max-width: 480px) {
  .hero-pills { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .hero-btns  { flex-direction: column; align-items: center; }
}

/* ─── Reduced motion ────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
