/* ==========================================================================
   Dr. Talha Dental Clinic – Jhelum
   Shared stylesheet
   ========================================================================== */

:root {
  --color-primary: #1253A0;
  --color-primary-dark: #0D3F80;
  --color-accent: #00BCD4;
  --color-accent-dark: #00A0B5;
  --color-bg: #F8FBFF;
  --color-surface: #FFFFFF;
  --color-text: #0D1B2A;
  --color-text-muted: #5A7184;
  --color-border: #E3ECF7;
  --color-navy: #0D1B2A;

  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;

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

  --shadow-sm: 0 2px 8px rgba(13, 27, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(13, 27, 42, 0.08);
  --shadow-lg: 0 16px 40px rgba(18, 83, 160, 0.14);

  --container-width: 1180px;
  --nav-height: 84px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

ul { list-style: none; margin: 0; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.18;
  margin: 0;
  color: var(--color-text);
}

p { margin: 0; }

button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.visually-hidden {
  position: absolute;
  left: -9999px;
  top: auto;
}

.visually-hidden:focus {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 2000;
  background: var(--color-surface);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
}

section { position: relative; }

.section-pad { padding: 96px 0; }

@media (max-width: 768px) {
  .section-pad { padding: 64px 0; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
  background: rgba(0, 188, 212, 0.1);
  padding: 7px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 18px;
}

.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.01em;
}

.section-head p {
  margin-top: 16px;
  font-size: 17px;
  color: var(--color-text-muted);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 30px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  white-space: nowrap;
}

.btn svg { width: 19px; height: 19px; flex-shrink: 0; }

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(18, 83, 160, 0.28);
  background: var(--color-primary-dark);
}

.btn-white {
  background: var(--color-surface);
  color: var(--color-primary);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.btn-white:hover {
  transform: translateY(-3px);
  background: var(--color-bg);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--color-border);
}

.btn-outline:hover {
  border-color: var(--color-primary);
  background: rgba(18, 83, 160, 0.05);
}

.btn-block { width: 100%; }

/* ---------- Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(248, 251, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: padding 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--color-border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  transition: height 0.3s ease;
}

.site-header.scrolled .nav {
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 19px;
  color: var(--color-text);
  flex-shrink: 0;
}

.logo .logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: var(--color-primary);
  color: var(--color-accent);
  border-radius: 10px;
  flex-shrink: 0;
}

.logo .logo-icon svg { width: 21px; height: 21px; }

.logo .logo-text span { display: block; }

.logo .logo-sub {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 11.5px;
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 38px;
}

.nav-links a {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  color: var(--color-text-muted);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
}

.nav-links a:hover { color: var(--color-primary); }

.nav-links a.active { color: var(--color-primary); }

.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 3px;
  border-radius: var(--radius-full);
  background: var(--color-accent);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-cta {
  display: none;
}

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  z-index: 1100;
  position: relative;
}

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

.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); }

.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--color-primary);
  background-image: radial-gradient(circle at 85% 10%, rgba(0, 188, 212, 0.35), transparent 55%);
  z-index: 1050;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  padding: 32px 40px;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}

.mobile-nav.open { transform: translateX(0); }

.mobile-nav a {
  font-family: var(--font-heading);
  font-size: 30px;
  font-weight: 700;
  color: #fff;
  padding: 12px 0;
  opacity: 0.92;
}

.mobile-nav a.active { color: var(--color-accent); }

.mobile-nav .btn-primary {
  margin-top: 24px;
  background: var(--color-accent);
  color: var(--color-navy);
}

@media (min-width: 1000px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .hamburger { display: none; }
}

@media (max-width: 999px) {
  .nav-links { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 56px 0 80px;
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

.hero-copy .eyebrow { animation: fadeUp 0.7s ease both; }

.hero h1 {
  font-size: clamp(34px, 5.4vw, 56px);
  letter-spacing: -0.02em;
  animation: fadeUp 0.7s ease 0.08s both;
}

.hero h1 .highlight {
  color: var(--color-primary);
  position: relative;
}

.hero-copy p.lead {
  margin-top: 22px;
  font-size: 18px;
  color: var(--color-text-muted);
  max-width: 520px;
  animation: fadeUp 0.7s ease 0.16s both;
}

.hero-actions {
  margin-top: 32px;
  animation: fadeUp 0.7s ease 0.24s both;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-muted);
  animation: fadeUp 0.7s ease 0.32s both;
}

.trust-row .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-text-muted);
  opacity: 0.5;
}

.trust-row .stars { color: #F5A623; display: inline-flex; gap: 2px; }
.trust-row .stars svg { width: 15px; height: 15px; fill: #F5A623; }
.trust-row strong { color: var(--color-text); }

.hero-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3.3;
  background: linear-gradient(145deg, var(--color-primary) 0%, #0A3D7A 55%, var(--color-accent) 130%);
  box-shadow: var(--shadow-lg);
  animation: fadeIn 0.9s ease 0.2s both;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.96;
}

.hero-visual .badge-float {
  position: absolute;
  left: 20px;
  bottom: 20px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-md);
}

.badge-float .badge-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.badge-float .badge-icon svg { width: 22px; height: 22px; }

.badge-float strong {
  font-family: var(--font-heading);
  font-size: 15px;
  display: block;
}

.badge-float span {
  font-size: 12.5px;
  color: var(--color-text-muted);
}

@media (min-width: 900px) {
  .hero .container {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
  }
  .hero { padding: 76px 0 100px; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  padding: 64px 0 56px;
  background: linear-gradient(180deg, #EEF5FF 0%, var(--color-bg) 100%);
  border-bottom: 1px solid var(--color-border);
}

.page-hero .eyebrow { margin-bottom: 16px; }

.page-hero h1 {
  font-size: clamp(32px, 5vw, 48px);
  letter-spacing: -0.02em;
  max-width: 720px;
}

.page-hero p {
  margin-top: 18px;
  font-size: 17px;
  color: var(--color-text-muted);
  max-width: 560px;
}

/* ---------- Trust strip ---------- */
.trust-strip {
  background: var(--color-navy);
  padding: 56px 0;
}

.trust-strip .container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 16px;
}

.trust-stat {
  text-align: center;
  position: relative;
  padding: 0 12px;
}

.trust-stat:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -8px;
  top: 8%;
  height: 84%;
  width: 1px;
  background: rgba(255, 255, 255, 0.12);
}

.trust-stat .num {
  font-family: var(--font-heading);
  font-size: clamp(32px, 4.4vw, 44px);
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: -0.02em;
}

.trust-stat .label {
  margin-top: 6px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

@media (min-width: 700px) {
  .trust-strip .container { grid-template-columns: repeat(4, 1fr); }
}

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

@media (min-width: 700px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1000px) {
  .services-grid { grid-template-columns: repeat(4, 1fr); }
}

.service-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px 22px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 188, 212, 0.4);
}

.service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: rgba(18, 83, 160, 0.08);
  color: var(--color-primary);
  margin-bottom: 18px;
}

.service-icon svg { width: 24px; height: 24px; }

.service-card h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.service-card p {
  font-size: 14.5px;
  color: var(--color-text-muted);
}

.service-card .learn-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13.5px;
  color: var(--color-accent-dark);
}

.service-card .learn-more svg { width: 15px; height: 15px; transition: transform 0.2s ease; }
.service-card:hover .learn-more svg { transform: translateX(3px); }

.services-cta {
  margin-top: 48px;
  text-align: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 36px 24px;
}

.services-cta p {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 20px;
}

/* ---------- Why choose us ---------- */
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.why-intro h2 {
  font-size: clamp(28px, 4vw, 38px);
}

.why-intro p {
  margin-top: 18px;
  font-size: 16.5px;
  color: var(--color-text-muted);
  max-width: 420px;
}

.why-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 560px) {
  .why-features { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1000px) {
  .why-grid { grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: center; }
}

.why-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.why-card .service-icon { background: rgba(0, 188, 212, 0.12); color: var(--color-accent-dark); }

.why-card h3 { font-size: 16px; margin-bottom: 8px; }
.why-card p { font-size: 14px; color: var(--color-text-muted); }

/* ---------- Team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 700px) {
  .team-grid { grid-template-columns: 1fr 1fr; }
}

.team-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  gap: 22px;
  align-items: flex-start;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: linear-gradient(150deg, var(--color-primary), var(--color-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 26px;
  flex-shrink: 0;
}

.team-card h3 { font-size: 19px; }

.team-card .title {
  display: block;
  margin-top: 4px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 13.5px;
  color: var(--color-accent-dark);
}

.team-card p.bio {
  margin-top: 12px;
  font-size: 14.5px;
  color: var(--color-text-muted);
}

/* ---------- Reviews ---------- */
.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 800px) {
  .reviews-grid { grid-template-columns: repeat(3, 1fr); }
}

.review-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.review-stars {
  display: flex;
  gap: 3px;
  color: #F5A623;
  margin-bottom: 16px;
}

.review-stars svg { width: 16px; height: 16px; fill: #F5A623; }

.review-card p.quote {
  font-size: 15px;
  color: var(--color-text);
  min-height: 96px;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--color-border);
}

.review-author .initial {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(18, 83, 160, 0.1);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.review-author strong { font-size: 14px; display: block; }
.review-author span { font-size: 12.5px; color: var(--color-text-muted); }

.reviews-footer {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.reviews-footer a {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 12px 22px;
  box-shadow: var(--shadow-sm);
}

.rating-badge .stars { color: #F5A623; display: flex; gap: 2px; }
.rating-badge .stars svg { width: 16px; height: 16px; fill: #F5A623; }
.rating-badge strong { font-family: var(--font-heading); font-size: 16px; }
.rating-badge span { font-size: 13.5px; color: var(--color-text-muted); }

/* ---------- How to book ---------- */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  position: relative;
}

@media (min-width: 800px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
  .steps::before {
    content: '';
    position: absolute;
    top: 27px;
    left: 12%;
    right: 12%;
    height: 0;
    border-top: 2px dashed var(--color-border);
    z-index: 0;
  }
}

.step {
  position: relative;
  z-index: 1;
  text-align: center;
}

.step-num {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
  box-shadow: var(--shadow-md);
}

.step h3 { font-size: 17px; margin-bottom: 8px; }
.step p { font-size: 14.5px; color: var(--color-text-muted); max-width: 240px; margin: 0 auto; }

.steps-cta { text-align: center; margin-top: 48px; }

/* ---------- Final CTA ---------- */
.final-cta {
  background: var(--color-primary);
  background-image: radial-gradient(circle at 15% 20%, rgba(0, 188, 212, 0.35), transparent 50%),
                     radial-gradient(circle at 85% 80%, rgba(0, 188, 212, 0.25), transparent 50%);
  padding: 96px 0;
  text-align: center;
}

.final-cta h2 {
  color: #fff;
  font-size: clamp(30px, 5vw, 46px);
  letter-spacing: -0.02em;
}

.final-cta p {
  margin: 18px auto 0;
  max-width: 520px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 17px;
}

.final-cta .btn { margin-top: 32px; }

.final-cta .address {
  margin-top: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
}

.final-cta .address svg { width: 16px; height: 16px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-navy);
  color: rgba(255, 255, 255, 0.7);
  padding: 72px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 760px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
}

.footer-col .logo { color: #fff; margin-bottom: 16px; }
.footer-col .logo .logo-sub { color: rgba(255, 255, 255, 0.55); }

.footer-col p { font-size: 14px; line-height: 1.7; max-width: 320px; }

.footer-col h4 {
  color: #fff;
  font-size: 14.5px;
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}

.footer-col ul li { margin-bottom: 12px; font-size: 14.5px; }
.footer-col ul li a:hover { color: var(--color-accent); }

.footer-col .contact-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 14.5px;
}

.footer-col .contact-line svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: 2px; color: var(--color-accent); }

.social-row {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.social-row a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.social-row a:hover { background: var(--color-accent); transform: translateY(-3px); }
.social-row a svg { width: 17px; height: 17px; }

.footer-bottom {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
}

.footer-credit {
  display: block;
  margin-top: 6px;
}

.footer-credit a {
  color: rgba(255, 255, 255, 0.6);
  font-weight: 600;
  transition: color 0.2s ease;
}

.footer-credit a:hover {
  color: var(--color-accent);
}

/* ---------- Floating buttons ---------- */
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 26px rgba(0, 188, 212, 0.42);
  z-index: 900;
  transition: transform 0.25s ease;
}

.whatsapp-float svg { width: 28px; height: 28px; }
.whatsapp-float:hover { transform: scale(1.08); }

.whatsapp-float::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--color-accent);
  animation: pulseRing 2.4s ease-out infinite;
  z-index: -1;
}

.scroll-top {
  position: fixed;
  left: 22px;
  bottom: 22px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top svg { width: 20px; height: 20px; }

@keyframes pulseRing {
  0% { transform: scale(1); opacity: 0.55; }
  100% { transform: scale(1.9); opacity: 0; }
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

/* ---------- Section background variants ---------- */
.bg-surface { background: var(--color-surface); }
.bg-base { background: var(--color-bg); }

/* ==========================================================================
   Services page
   ========================================================================== */
.services-detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 760px) {
  .services-detail { grid-template-columns: 1fr 1fr; }
}

.service-detail-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-detail-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.service-detail-card .service-icon { width: 56px; height: 56px; border-radius: 16px; margin-bottom: 20px; }
.service-detail-card .service-icon svg { width: 27px; height: 27px; }

.service-detail-card h3 { font-size: 20px; margin-bottom: 12px; }

.service-detail-card p { font-size: 15px; color: var(--color-text-muted); margin-bottom: 14px; }

.service-detail-card .who-for {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--color-text);
  background: var(--color-bg);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 18px;
}

.service-detail-card .who-for span { font-weight: 400; color: var(--color-text-muted); display: block; margin-top: 2px; }

.service-detail-card .btn { font-size: 13.5px; padding: 12px 22px; }

.cta-strip {
  background: var(--color-primary);
  border-radius: var(--radius-lg);
  padding: 48px 32px;
  text-align: center;
  margin-top: 24px;
}

.cta-strip h2 { color: #fff; font-size: clamp(24px, 3.4vw, 32px); }
.cta-strip p { color: rgba(255, 255, 255, 0.8); margin-top: 12px; font-size: 16px; }
.cta-strip .btn { margin-top: 26px; }

/* ==========================================================================
   About page
   ========================================================================== */
.doctor-profile {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

@media (min-width: 880px) {
  .doctor-profile { grid-template-columns: 0.85fr 1.15fr; gap: 56px; }
  .doctor-profile.reverse { grid-template-columns: 1.15fr 0.85fr; }
  .doctor-profile.reverse .doctor-visual { order: 2; }
}

.doctor-visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 4.2;
  background: linear-gradient(150deg, var(--color-primary), var(--color-accent));
  box-shadow: var(--shadow-lg);
}

.doctor-visual img { width: 100%; height: 100%; object-fit: cover; }

.doctor-visual.avatar-fill {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 96px;
}

.doctor-info .credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 22px;
}

.credential-pill {
  font-family: var(--font-heading);
  font-size: 12.5px;
  font-weight: 700;
  background: rgba(18, 83, 160, 0.08);
  color: var(--color-primary);
  padding: 8px 14px;
  border-radius: var(--radius-full);
}

.doctor-info p { font-size: 16px; color: var(--color-text-muted); margin-bottom: 14px; }

.vision-quote {
  margin-top: 22px;
  padding: 20px 24px;
  border-left: 3px solid var(--color-accent);
  background: var(--color-surface);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 17px;
  color: var(--color-text);
}

.clinic-story {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

@media (min-width: 880px) {
  .clinic-story { grid-template-columns: 1fr 1fr; }
}

.clinic-story .story-visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 12;
  box-shadow: var(--shadow-lg);
}

.clinic-story .story-visual img { width: 100%; height: 100%; object-fit: cover; }

.clinic-story p { font-size: 16px; color: var(--color-text-muted); margin-bottom: 14px; }

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

@media (min-width: 700px) {
  .values-grid { grid-template-columns: repeat(4, 1fr); }
}

.value-card {
  text-align: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 30px 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.value-card .service-icon { margin: 0 auto 16px; }

.value-card h3 { font-size: 16px; }

/* ==========================================================================
   Gallery page
   ========================================================================== */
.clinic-photos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (min-width: 700px) {
  .clinic-photos { grid-template-columns: repeat(4, 1fr); }
}

.clinic-photo {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  box-shadow: var(--shadow-sm);
}

.clinic-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.clinic-photo:hover img { transform: scale(1.06); }

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.filter-btn {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  padding: 11px 22px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-muted);
  transition: all 0.2s ease;
}

.filter-btn:hover { border-color: var(--color-primary); color: var(--color-primary); }

.filter-btn.active {
  background: var(--color-primary);
  color: var(--color-accent);
  border-color: var(--color-primary);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (min-width: 700px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  aspect-ratio: 1 / 1;
  box-shadow: var(--shadow-sm);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.gallery-item.hidden { display: none; }

.gallery-visual {
  position: absolute;
  inset: 0;
  background: linear-gradient(150deg, var(--color-primary), var(--color-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.85);
}

.gallery-visual svg { width: 44px; height: 44px; }

.gallery-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 0.02em;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  z-index: 2;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(13, 27, 42, 0.78) 0%, transparent 55%);
  display: flex;
  align-items: flex-end;
  padding: 18px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-item:hover .gallery-visual { transform: scale(1.06); }

.gallery-overlay span {
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
}

/* ==========================================================================
   Contact page
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 0.85fr 1.15fr; }
}

.contact-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
}

.contact-card h2 { font-size: 24px; margin-bottom: 28px; }

.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 26px;
}

.contact-row .service-icon { flex-shrink: 0; }

.contact-row h4 { font-size: 14.5px; margin-bottom: 4px; }
.contact-row p { font-size: 14.5px; color: var(--color-text-muted); }
.contact-row a { color: var(--color-primary); font-weight: 600; }

.contact-card .btn { margin-top: 8px; }

.directions-note {
  margin-top: 22px;
  padding: 14px 16px;
  background: var(--color-bg);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  color: var(--color-text-muted);
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.directions-note svg { width: 17px; height: 17px; flex-shrink: 0; color: var(--color-accent-dark); margin-top: 1px; }

.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 360px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}

.map-wrap iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; }

.hours-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 4px;
}

.hours-table td { padding: 6px 0; font-size: 14px; }
.hours-table td:first-child { color: var(--color-text-muted); }
.hours-table td:last-child { text-align: right; font-weight: 600; }
