/* =========================================================================
   Dr. Farhan Ullah Shah — Pediatric Clinic Website
   Premium medical UI: Navy Blue / White / Soft Sky Blue
   ========================================================================= */

/* ---------- Design tokens ---------- */
:root {
  --navy: #0b2a4a;
  --navy-dark: #071b33;
  --navy-light: #123a63;
  --sky: #eaf6fd;
  --sky-mid: #cfebfb;
  --sky-accent: #7fc3ea;
  --sky-accent-dark: #4a93c7;
  --white: #ffffff;
  --text: #1e2a38;
  --text-muted: #57697a;
  --text-soft: #7c8b9a;
  --whatsapp: #25d366;
  --whatsapp-dark: #1ebe5b;
  --border: #e3edf5;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --shadow-sm: 0 4px 14px rgba(11, 42, 74, 0.07);
  --shadow-md: 0 14px 34px rgba(11, 42, 74, 0.1);
  --shadow-lg: 0 24px 60px rgba(11, 42, 74, 0.16);

  --container: 1220px;
  --nav-h: 78px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font-head: "Poppins", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
}
body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote {
  margin: 0;
}
ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.2;
  font-weight: 600;
}

.icon {
  width: 1em;
  height: 1em;
  display: inline-block;
}
svg {
  width: 100%;
  height: 100%;
}

/* ---------- Accessibility helpers ---------- */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--navy);
  color: var(--white);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  z-index: 2000;
  transition: top 0.25s var(--ease);
  font-weight: 600;
}
.skip-link:focus {
  top: 12px;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
:focus-visible {
  outline: 3px solid var(--sky-accent-dark);
  outline-offset: 2px;
  border-radius: 4px;
}

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

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.section {
  padding: clamp(56px, 9vw, 110px) 0;
}
.section-alt {
  background: linear-gradient(180deg, var(--sky) 0%, #f5fbfe 100%);
}
.section-head {
  max-width: 680px;
  margin: 0 auto 48px;
  text-align: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sky-accent-dark);
  background: var(--sky);
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}
.section-head h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  margin-bottom: 14px;
}
.section-head p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.98rem;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease);
  white-space: nowrap;
  border: 1.5px solid transparent;
}
.btn .icon {
  width: 19px;
  height: 19px;
}
.btn-primary {
  background: var(--navy);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--navy-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-whatsapp {
  background: var(--whatsapp);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-whatsapp:hover {
  background: var(--whatsapp-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-outline {
  background: var(--white);
  color: var(--navy);
  border-color: var(--border);
}
.btn-outline:hover {
  border-color: var(--navy);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.btn-sky {
  background: var(--sky);
  color: var(--navy);
}
.btn-sky:hover {
  background: var(--sky-mid);
  transform: translateY(-2px);
}
.btn-block {
  width: 100%;
}
.btn-sm {
  padding: 10px 18px;
  font-size: 0.9rem;
}

/* ---------- Reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1.in-view { transition-delay: 0.08s; }
.reveal-delay-2.in-view { transition-delay: 0.16s; }
.reveal-delay-3.in-view { transition-delay: 0.24s; }
.reveal-delay-4.in-view { transition-delay: 0.32s; }

/* ==========================================================================
   Navbar
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease),
    background 0.3s var(--ease);
}
.navbar.scrolled {
  box-shadow: 0 6px 24px rgba(11, 42, 74, 0.08);
  border-bottom-color: var(--border);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--navy);
}
.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--navy), var(--sky-accent-dark));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}
.brand-mark .icon {
  width: 24px;
  height: 24px;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand-text .name {
  font-size: 1rem;
}
.brand-text .role {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  font-family: var(--font-body);
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
  position: relative;
}
.nav-links a:hover,
.nav-links a.active {
  background: var(--sky);
  color: var(--navy);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
  color: var(--navy);
  background: var(--sky);
}
.nav-toggle .icon {
  width: 22px;
  height: 22px;
}
.nav-toggle .icon-close {
  display: none;
}
.nav-toggle.open .icon-menu {
  display: none;
}
.nav-toggle.open .icon-close {
  display: block;
}

@media (max-width: 991px) {
  .nav-links {
    position: fixed;
    inset: var(--nav-h) 0 0 0;
    height: calc(100dvh - var(--nav-h));
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 20px;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.28s var(--ease), transform 0.28s var(--ease),
      visibility 0.28s;
    overflow-y: auto;
  }
  .nav-links.open {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
    box-shadow: 0 18px 30px rgba(11, 42, 74, 0.1);
  }
  .nav-links a {
    padding: 15px 18px;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
  }
  .nav-links .mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 18px;
  }
  .nav-actions .desktop-only {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
}
.mobile-actions {
  display: none;
}
/* Buttons inside the mobile menu must keep their .btn appearance,
   not the plain nav-link text styling (higher specificity override). */
.nav-links .mobile-actions a.btn {
  border-bottom: none;
  border-radius: var(--radius-pill);
  padding: 14px 26px;
  font-size: 0.98rem;
}
.nav-links .mobile-actions a.btn-primary {
  color: var(--white);
}
.nav-links .mobile-actions a.btn-whatsapp {
  color: var(--white);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  padding: clamp(48px, 8vw, 90px) 0 clamp(60px, 9vw, 100px);
  background: radial-gradient(circle at 85% 12%, var(--sky) 0%, transparent 55%),
    linear-gradient(180deg, #ffffff 0%, #f7fbfe 100%);
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--sky);
  color: var(--navy-light);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 22px;
}
.hero-eyebrow .icon {
  width: 15px;
  height: 15px;
  color: var(--sky-accent-dark);
}
.hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}
.hero h1 span {
  color: var(--sky-accent-dark);
}
.hero .doctor-line {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}
.hero .doctor-role {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 22px;
}
.hero p.lead {
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 34px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 34px;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}
.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text-muted);
  font-weight: 500;
}
.hero-meta-item .icon {
  width: 20px;
  height: 20px;
  color: var(--sky-accent-dark);
  flex-shrink: 0;
}

/* Hero visual */
.hero-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 480px;
  margin: 0 auto;
}
.hero-blob {
  position: absolute;
  inset: 4%;
  border-radius: 42% 58% 55% 45% / 48% 42% 58% 52%;
  background: linear-gradient(155deg, var(--navy) 0%, var(--sky-accent-dark) 100%);
  box-shadow: var(--shadow-lg);
  animation: blobMove 12s var(--ease) infinite alternate;
}
@keyframes blobMove {
  0% { border-radius: 42% 58% 55% 45% / 48% 42% 58% 52%; }
  100% { border-radius: 58% 42% 45% 55% / 55% 50% 50% 45%; }
}
.hero-visual-inner {
  position: absolute;
  inset: 14%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.92);
}
.hero-visual-inner .icon {
  width: 46%;
  height: 46%;
  opacity: 0.95;
}
.hero-dot {
  position: absolute;
  border-radius: 50%;
  background: var(--white);
  opacity: 0.5;
}
.hero-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  box-shadow: var(--shadow-md);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  animation: floatY 5s ease-in-out infinite;
}
.hero-card .icon {
  width: 22px;
  height: 22px;
  color: var(--sky-accent-dark);
  flex-shrink: 0;
}
.hero-card.card-1 {
  top: 4%;
  left: -6%;
  animation-delay: 0s;
}
.hero-card.card-2 {
  bottom: 8%;
  right: -8%;
  animation-delay: 1.4s;
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@media (max-width: 991px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero p.lead {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions,
  .hero-meta {
    justify-content: center;
  }
  .hero-visual {
    max-width: 340px;
    margin-top: 20px;
  }
  .hero-card {
    font-size: 0.78rem;
    padding: 10px 13px;
  }
}

/* ==========================================================================
   About
   ========================================================================== */
.about .container {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(32px, 5vw, 70px);
  align-items: center;
}
.about-visual {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}
.about-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--sky) 0%, var(--sky-mid) 100%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.about-frame::before,
.about-frame::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
}
.about-frame::before {
  width: 140px;
  height: 140px;
  top: -40px;
  right: -40px;
}
.about-frame::after {
  width: 90px;
  height: 90px;
  bottom: -20px;
  left: -20px;
  background: rgba(11, 42, 74, 0.06);
}
.about-avatar {
  position: relative;
  width: 46%;
  color: var(--navy);
  z-index: 1;
}
.about-frame .frame-caption {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.9);
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}
.about-badge {
  position: absolute;
  bottom: -18px;
  right: -14px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--navy);
  font-size: 0.85rem;
}
.about-badge .icon {
  width: 24px;
  height: 24px;
  color: var(--whatsapp);
}

.about-content h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.3rem);
  margin-bottom: 6px;
}
.about-content .role-tag {
  color: var(--sky-accent-dark);
  font-weight: 600;
  margin-bottom: 18px;
  display: block;
}
.about-content p {
  color: var(--text-muted);
  margin-bottom: 16px;
}
.about-more {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s var(--ease), opacity 0.5s var(--ease),
    margin 0.5s var(--ease);
}
.about-more.open {
  max-height: 400px;
  opacity: 1;
}
.about-note {
  font-size: 0.88rem;
  color: var(--text-soft);
  font-style: italic;
  border-left: 3px solid var(--sky-accent);
  padding-left: 12px;
  margin-bottom: 20px;
}
.about-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.read-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--navy);
  padding: 12px 4px;
}
.read-more-btn .icon {
  width: 16px;
  height: 16px;
  transition: transform 0.3s var(--ease);
}
.read-more-btn.open .icon {
  transform: rotate(180deg);
}

@media (max-width: 900px) {
  .about .container {
    grid-template-columns: 1fr;
  }
  .about-content {
    text-align: center;
  }
  .about-actions {
    justify-content: center;
  }
  .about-note {
    text-align: left;
  }
}

/* ==========================================================================
   Services
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 30px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease);
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--sky-mid);
}
.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(150deg, var(--sky) 0%, var(--sky-mid) 100%);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  transition: background 0.35s var(--ease), color 0.35s var(--ease);
}
.service-card:hover .service-icon {
  background: linear-gradient(150deg, var(--navy) 0%, var(--sky-accent-dark) 100%);
  color: var(--white);
}
.service-icon .icon {
  width: 28px;
  height: 28px;
}
.service-card h3 {
  font-size: 1.08rem;
  margin-bottom: 10px;
}
.service-card p {
  color: var(--text-muted);
  font-size: 0.93rem;
}

@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 780px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Why Choose Us
   ========================================================================== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.why-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  display: flex;
  gap: 16px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.why-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.why-icon {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.why-icon .icon {
  width: 24px;
  height: 24px;
}
.why-card h3 {
  font-size: 1.02rem;
  margin-bottom: 6px;
}
.why-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .why-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Clinic
   ========================================================================== */
.clinic .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 60px);
  align-items: center;
}
.clinic-gallery {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  grid-template-rows: repeat(2, 1fr);
  gap: 16px;
  height: 100%;
  min-height: 340px;
}
.clinic-tile {
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  color: var(--white);
  display: flex;
  align-items: flex-end;
  padding: 16px;
  font-weight: 700;
  font-size: 0.82rem;
}
.clinic-tile.tall {
  grid-row: span 2;
}
.clinic-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.94;
}
.clinic-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 27, 51, 0) 40%, rgba(7, 27, 51, 0.55) 100%);
}
.clinic-tile .tile-icon,
.clinic-tile .tile-label {
  position: relative;
  z-index: 1;
}
.clinic-tile .tile-icon {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 34px;
  height: 34px;
  opacity: 0.9;
}

.clinic-content .badge-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.clinic-feature-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 24px 0 30px;
}
.clinic-feature {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 500;
  color: var(--text);
}
.clinic-feature .icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--sky);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.clinic-feature .icon-wrap .icon {
  width: 19px;
  height: 19px;
}
.clinic-address-box {
  background: var(--sky);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 26px;
}
.clinic-address-box .icon {
  width: 24px;
  height: 24px;
  color: var(--sky-accent-dark);
  flex-shrink: 0;
  margin-top: 2px;
}
.clinic-address-box address {
  font-style: normal;
  color: var(--navy-light);
  font-weight: 500;
  line-height: 1.55;
}
.clinic-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .clinic .container {
    grid-template-columns: 1fr;
  }
  .clinic-gallery {
    min-height: 300px;
  }
}

/* ==========================================================================
   Gallery
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  border: none;
  color: var(--white);
  display: block;
  width: 100%;
  padding: 0;
}
.gallery-item .tile-bg {
  position: absolute;
  inset: 0;
  transition: transform 0.5s var(--ease);
}
.gallery-item:hover .tile-bg {
  transform: scale(1.08);
}
.gallery-item .tile-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 27, 51, 0) 35%, rgba(7, 27, 51, 0.72) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 16px;
  text-align: left;
}
.gallery-item .tile-icon-big {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 34%;
  transform: translate(-50%, -60%);
  opacity: 0.9;
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
}
.gallery-item:hover .tile-icon-big {
  transform: translate(-50%, -70%) scale(1.08);
  opacity: 0.5;
}
.gallery-item .tile-title {
  position: relative;
  font-weight: 700;
  font-size: 0.92rem;
  z-index: 1;
}
.gallery-item .zoom-hint {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.gallery-item:hover .zoom-hint {
  opacity: 1;
  transform: scale(1);
}
.gallery-item .zoom-hint .icon {
  width: 16px;
  height: 16px;
}

@media (max-width: 1100px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 700px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 420px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(7, 20, 36, 0.86);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s;
}
.lightbox.open {
  opacity: 1;
  visibility: visible;
}
.lightbox-inner {
  position: relative;
  width: 100%;
  max-width: 640px;
}
.lightbox-frame {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-frame .tile-bg {
  position: absolute;
  inset: 0;
}
.lightbox-frame .tile-icon-big {
  position: relative;
  width: 30%;
  opacity: 0.9;
}
.lightbox-caption {
  background: var(--white);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  padding: 18px 24px;
  margin-top: -8px;
  position: relative;
  z-index: 1;
}
.lightbox-caption h4 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}
.lightbox-caption p {
  color: var(--text-muted);
  font-size: 0.88rem;
}
.lightbox-close,
.lightbox-nav {
  position: absolute;
  z-index: 2;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s var(--ease);
}
.lightbox-close:hover,
.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.3);
}
.lightbox-close {
  top: 12px;
  right: 12px;
  background: rgba(7, 20, 36, 0.4);
}
.lightbox-close .icon {
  width: 18px;
  height: 18px;
}
.lightbox-nav .icon {
  width: 20px;
  height: 20px;
}
.lightbox-prev {
  left: 10px;
  top: 42%;
}
.lightbox-next {
  right: 10px;
  top: 42%;
  transform: rotate(180deg);
}

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
.testimonial-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px 24px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

/* Watermark quote icon: scaled down, clipped to the card, sits behind content */
.testimonial-quote-icon {
  position: absolute;
  top: -12px;
  right: -8px;
  width: 64px;
  height: 64px;
  color: var(--sky);
  z-index: 0;
  pointer-events: none;
}

.testimonial-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}
.testimonial-stars {
  display: flex;
  gap: 3px;
  color: #f5b301;
}
.testimonial-stars .star-ico-off {
  color: var(--border);
}
.testimonial-stars .star-ico {
  width: 15px;
  height: 15px;
  flex: none;
  display: inline-flex;
}
.patient-tag {
  flex: none;
  margin-left: auto;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--sky-accent-dark);
  background: var(--sky);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.testimonial-card p.quote-text {
  position: relative;
  z-index: 1;
  color: var(--text);
  font-size: 0.94rem;
  line-height: 1.65;
  margin-bottom: 20px;
  flex-grow: 1;
}
.testimonial-person {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(150deg, var(--sky) 0%, var(--sky-mid) 100%);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
}
.testimonial-name {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--navy);
  line-height: 1.3;
}
.testimonial-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .testimonials-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .testimonials-grid { grid-template-columns: 1fr; }
  .testimonial-card { padding: 24px 22px 22px; }
}

/* ==========================================================================
   Contact / Appointment
   ========================================================================== */
.contact .container {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(30px, 5vw, 56px);
  align-items: start;
}
.contact-info-card {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 40px);
  box-shadow: var(--shadow-lg);
}
.contact-info-card h3 {
  color: var(--white);
  font-size: 1.3rem;
  margin-bottom: 8px;
}
.contact-info-card > p {
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 26px;
  font-size: 0.94rem;
}
.contact-line {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.contact-line:first-of-type {
  border-top: none;
}
.contact-line .icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--sky-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-line .icon-wrap .icon {
  width: 19px;
  height: 19px;
}
.contact-line a,
.contact-line span {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 500;
  font-size: 0.94rem;
  word-break: break-word;
}
.contact-line a:hover {
  color: var(--sky-accent);
}
.contact-line .label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 3px;
}
.contact-map {
  margin-top: 26px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  aspect-ratio: 16 / 11;
  background: rgba(255, 255, 255, 0.06);
}
.contact-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.contact-info-card .btn-whatsapp {
  margin-top: 22px;
  width: 100%;
}

.appointment-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 4vw, 40px);
  box-shadow: var(--shadow-md);
}
.appointment-form h3 {
  font-size: 1.3rem;
  margin-bottom: 6px;
}
.appointment-form > p {
  color: var(--text-muted);
  margin-bottom: 26px;
  font-size: 0.94rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-group {
  margin-bottom: 18px;
}
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--navy);
  margin-bottom: 7px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fbfdfe;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  font-size: 0.94rem;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--sky-accent-dark);
  box-shadow: 0 0 0 4px rgba(127, 195, 234, 0.25);
}
.form-group textarea {
  resize: vertical;
  min-height: 110px;
}
.form-error {
  color: #c0392b;
  font-size: 0.8rem;
  margin-top: 6px;
  display: none;
}
.form-group.invalid input,
.form-group.invalid select,
.form-group.invalid textarea {
  border-color: #c0392b;
}
.form-group.invalid .form-error {
  display: block;
}
.form-note {
  font-size: 0.8rem;
  color: var(--text-soft);
  margin-top: 4px;
  margin-bottom: 20px;
}
.form-success {
  display: none;
  align-items: center;
  gap: 12px;
  background: #eafaf1;
  border: 1px solid #b9ecce;
  color: #1c7a45;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 18px;
}
.form-success.show {
  display: flex;
}
.form-success .icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.form-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 6px;
}

@media (max-width: 991px) {
  .contact .container {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.78);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.footer-brand .brand-mark {
  background: linear-gradient(145deg, var(--sky-accent-dark), var(--sky-accent));
}
.footer-brand-text .name {
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
}
.footer-brand-text .role {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
}
.footer p.desc {
  font-size: 0.9rem;
  max-width: 340px;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.6);
}
.footer-social {
  display: flex;
  gap: 10px;
}
.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}
.footer-social a:hover {
  background: var(--whatsapp);
  transform: translateY(-3px);
}
.footer-social .icon {
  width: 18px;
  height: 18px;
}
.footer h4 {
  color: var(--white);
  font-size: 0.98rem;
  margin-bottom: 18px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-links a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.2s var(--ease), padding-left 0.2s var(--ease);
}
.footer-links a:hover {
  color: var(--sky-accent);
  padding-left: 4px;
}
.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9rem;
}
.footer-contact-list .icon {
  width: 17px;
  height: 17px;
  color: var(--sky-accent);
  flex-shrink: 0;
  margin-top: 3px;
}
.footer-contact-list a {
  color: rgba(255, 255, 255, 0.72);
}
.footer-contact-list a:hover {
  color: var(--sky-accent);
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
  flex-wrap: wrap;
}
.footer-bottom a {
  color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand-col {
    grid-column: 1 / -1;
  }
}
@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ==========================================================================
   Floating WhatsApp button
   ========================================================================== */
.float-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.45);
  z-index: 900;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  animation: pulseWA 2.6s infinite;
}
.float-whatsapp:hover {
  transform: scale(1.08);
}
.float-whatsapp .icon {
  width: 28px;
  height: 28px;
}
@keyframes pulseWA {
  0% { box-shadow: 0 10px 26px rgba(37, 211, 102, 0.45), 0 0 0 0 rgba(37, 211, 102, 0.55); }
  70% { box-shadow: 0 10px 26px rgba(37, 211, 102, 0.45), 0 0 0 14px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 10px 26px rgba(37, 211, 102, 0.45), 0 0 0 0 rgba(37, 211, 102, 0); }
}

.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 96px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease),
    visibility 0.3s;
}
.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top .icon {
  width: 20px;
  height: 20px;
}

@media (max-width: 560px) {
  .float-whatsapp {
    width: 54px;
    height: 54px;
    bottom: 18px;
    right: 18px;
  }
  .back-to-top {
    width: 42px;
    height: 42px;
    bottom: 18px;
    right: 82px;
  }
}
