/* =====================================================
   Crown Dental Clinic — landing.css
   Aesthetic: Regal Luxury · Deep Navy + Gold + White
   ===================================================== */

/* ---------- CSS Variables ---------- */
:root {
  --navy:       #0f1b4c;
  --navy-mid:   #1a2f72;
  --blue:       #1565C0;
  --blue-light: #2196F3;
  --cyan:       #00BCD4;
  --gold:       #F5C518;
  --gold-dark:  #D4A017;
  --white:      #ffffff;
  --off-white:  #f7f9fc;
  --gray-100:   #f1f4f9;
  --gray-200:   #e2e8f0;
  --gray-500:   #6b7280;
  --gray-700:   #374151;
  --text:       #1e293b;

  --radius-sm:  8px;
  --radius-md:  16px;
  --radius-lg:  24px;
  --radius-xl:  40px;

  --shadow-sm:  0 2px 8px rgba(15,27,76,.08), 0 1px 3px rgba(15,27,76,.05);
  --shadow-md:  0 8px 32px rgba(15,27,76,.12), 0 2px 8px rgba(15,27,76,.06);
  --shadow-lg:  0 20px 60px rgba(15,27,76,.16), 0 4px 16px rgba(15,27,76,.08);
  --shadow-gold: 0 8px 32px rgba(245,197,24,.30);

  --transition: 0.35s cubic-bezier(.4,0,.2,1);
  --font-head:  'Playfair Display', Georgia, serif;
  --font-body:  'DM Sans', system-ui, sans-serif;
  --container:  1200px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

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

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ---------- Skip Link ---------- */
.skip-link {
  position: absolute;
  top: -999px; left: -999px;
  background: var(--gold);
  color: var(--navy);
  padding: .5rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  z-index: 9999;
  transition: top .2s, left .2s;
}
.skip-link:focus { top: 1rem; left: 1rem; }

/* ---------- Container ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- Section headings ---------- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: .75rem;
}
.section-label::before {
  content: '';
  display: block;
  width: 28px; height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 1rem;
}
.section-title span { color: var(--blue-light); }
.section-sub {
  font-size: 1.05rem;
  color: var(--gray-500);
  max-width: 540px;
  line-height: 1.7;
}
.text-center .section-sub { margin: 0 auto; }

/* ---------- Buttons ---------- */
.btn-primary-crown {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-light) 100%);
  color: var(--white);
  padding: .85rem 2rem;
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .95rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(33,150,243,.35);
  transition: transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
}
.btn-primary-crown:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 32px rgba(33,150,243,.45);
  color: var(--white);
}
.btn-primary-crown:active { transform: translateY(-1px); }

.btn-ghost-crown {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: transparent;
  color: var(--navy);
  padding: .85rem 2rem;
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .95rem;
  border: 2px solid var(--gray-200);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), color var(--transition), transform var(--transition);
  text-decoration: none;
}
.btn-ghost-crown:hover {
  border-color: var(--blue-light);
  background: rgba(33,150,243,.06);
  color: var(--blue-light);
  transform: translateY(-2px);
}

.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--navy);
  padding: .85rem 2rem;
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .95rem;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-gold);
  transition: transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
}
.btn-gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(245,197,24,.45);
  color: var(--navy);
}

/* ---------- NAVIGATION ---------- */
#mainNav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1050;
  padding: 1.25rem 0;
  transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
}
#mainNav.scrolled {
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: .75rem 0;
  box-shadow: 0 2px 24px rgba(15,27,76,.08);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-shrink: 0;
}
.nav-logo img {
  height: 52px;
  width: auto;
  transition: height var(--transition);
  border-radius: var(--radius-sm);
}
#mainNav.scrolled .nav-logo img { height: 42px; }
.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.nav-logo-text .brand-name {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  transition: color var(--transition);
}
#mainNav.scrolled .brand-name { color: var(--navy); }
.nav-logo-text .brand-sub {
  font-size: .7rem;
  font-weight: 500;
  color: rgba(255,255,255,.75);
  letter-spacing: .05em;
  transition: color var(--transition);
}
#mainNav.scrolled .brand-sub { color: var(--gray-500); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}
.nav-links a {
  font-size: .9rem;
  font-weight: 500;
  color: rgba(255,255,255,.88);
  transition: color var(--transition);
  position: relative;
  padding-bottom: 4px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: width var(--transition);
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a:hover { color: var(--white); }
#mainNav.scrolled .nav-links a { color: var(--gray-700); }
#mainNav.scrolled .nav-links a:hover { color: var(--blue); }

.nav-cta { margin-left: .5rem; }

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
  flex-direction: column;
  gap: 5px;
}
.nav-hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: background var(--transition), transform var(--transition), opacity var(--transition);
}
#mainNav.scrolled .nav-hamburger span { background: var(--navy); }
.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* Mobile offcanvas */
.mobile-menu {
  position: fixed;
  top: 0; right: -100%;
  width: min(340px, 90vw);
  height: 100vh;
  background: var(--white);
  z-index: 1060;
  padding: 2rem 1.5rem;
  box-shadow: -8px 0 40px rgba(15,27,76,.15);
  transition: right var(--transition);
  overflow-y: auto;
}
.mobile-menu.open { right: 0; }
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,27,76,.4);
  z-index: 1055;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.mobile-overlay.open { opacity: 1; pointer-events: all; }
.mobile-menu-close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--navy);
  padding: .25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  margin-bottom: 1.5rem;
}
.mobile-nav-links { display: flex; flex-direction: column; gap: .25rem; }
.mobile-nav-links a {
  display: block;
  padding: .9rem 1rem;
  font-weight: 600;
  color: var(--navy);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  transition: background var(--transition), color var(--transition);
}
.mobile-nav-links a:hover { background: var(--gray-100); color: var(--blue); }
.mobile-nav-cta { margin-top: 1.5rem; }

/* ---------- HERO ---------- */
#hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 55%, #1e3a8a 100%);
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 7rem 0 4rem;
}

/* Decorative bg shapes */
.hero-bg-shape {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero-bg-shape-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(33,150,243,.15) 0%, transparent 70%);
  top: -150px; right: -100px;
}
.hero-bg-shape-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(245,197,24,.08) 0%, transparent 70%);
  bottom: -100px; left: 5%;
}
.hero-bg-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 36px 36px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-content { padding-right: 1rem; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(245,197,24,.15);
  border: 1px solid rgba(245,197,24,.3);
  color: var(--gold);
  padding: .4rem 1rem;
  border-radius: 50px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero-badge svg { width: 14px; height: 14px; }

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.12;
  margin-bottom: 1.25rem;
}
.hero-title .accent {
  color: var(--gold);
  display: block;
}

.hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,.75);
  line-height: 1.75;
  margin-bottom: 2rem;
  max-width: 480px;
}

.hero-bullets {
  display: flex;
  flex-direction: column;
  gap: .65rem;
  margin-bottom: 2.5rem;
}
.hero-bullet {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: rgba(255,255,255,.85);
  font-size: .9rem;
  font-weight: 500;
}
.hero-bullet-icon {
  width: 28px; height: 28px;
  background: rgba(245,197,24,.18);
  border: 1px solid rgba(245,197,24,.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gold);
  font-size: .75rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Hero image side */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-img-wrap {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}
.hero-img-blob {
  position: absolute;
  inset: -20px;
  background: linear-gradient(135deg, rgba(33,150,243,.25) 0%, rgba(245,197,24,.15) 100%);
  border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%;
  animation: blobMorph 8s ease-in-out infinite;
  z-index: 0;
}
@keyframes blobMorph {
  0%,100% { border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%; }
  33%      { border-radius: 45% 55% 40% 60% / 60% 45% 55% 40%; }
  66%      { border-radius: 55% 45% 60% 40% / 40% 55% 45% 60%; }
}
.hero-img-frame {
  position: relative;
  z-index: 1;
  border-radius: 40% 60% 50% 50% / 45% 45% 55% 55%;
  overflow: hidden;
  aspect-ratio: 4/5;
  border: 3px solid rgba(255,255,255,.15);
  box-shadow: var(--shadow-lg);
}
.hero-img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Floating accent cards */
.hero-float-card {
  position: absolute;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius-md);
  padding: .75rem 1rem;
  box-shadow: var(--shadow-md);
  z-index: 2;
  animation: floatCard 4s ease-in-out infinite;
}
.hero-float-card:nth-child(3) { animation-delay: -2s; }
.hero-float-1 { bottom: 10%; left: -30px; }
.hero-float-2 { top: 12%; right: -20px; }
@keyframes floatCard {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
.float-card-icon {
  font-size: 1.5rem;
  margin-bottom: .25rem;
}
.float-card-label {
  font-size: .72rem;
  font-weight: 600;
  color: rgba(255,255,255,.7);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.float-card-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
}

/* Crown SVG accent */
.hero-crown-accent {
  position: absolute;
  top: -10px; right: 30px;
  z-index: 3;
  animation: crownSpin 6s linear infinite;
  transform-origin: center;
}
@keyframes crownSpin {
  0%,100% { transform: rotate(-5deg) scale(1); }
  50%      { transform: rotate(5deg) scale(1.08); }
}

/* Wave divider */
.hero-wave {
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  line-height: 0;
}
.hero-wave svg { display: block; width: 100%; }

/* ---------- STATS BAND ---------- */
#stats {
  background: var(--navy);
  padding: 2.5rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: center;
}
.stat-item {
  padding: 1.5rem 1rem;
  border-right: 1px solid rgba(255,255,255,.1);
}
.stat-item:last-child { border-right: none; }
.stat-number {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  margin-bottom: .25rem;
}
.stat-label {
  font-size: .85rem;
  color: rgba(255,255,255,.65);
  font-weight: 500;
  letter-spacing: .04em;
}

/* ---------- SERVICES ---------- */
#services {
  padding: 6rem 0;
  background: var(--off-white);
  position: relative;
}
.services-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  cursor: default;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  transform: scaleX(0);
  transition: transform var(--transition);
  transform-origin: left;
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.service-card:hover::before { transform: scaleX(1); }

.service-icon-wrap {
  width: 60px; height: 60px;
  background: linear-gradient(135deg, rgba(21,101,192,.1), rgba(0,188,212,.1));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  transition: background var(--transition), transform var(--transition);
}
.service-card:hover .service-icon-wrap {
  background: linear-gradient(135deg, rgba(21,101,192,.18), rgba(0,188,212,.18));
  transform: scale(1.1);
}
.service-card h3 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
}
.service-card p {
  font-size: .9rem;
  color: var(--gray-500);
  line-height: 1.65;
  flex-grow: 1;
}
.service-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--blue-light);
  transition: gap var(--transition), color var(--transition);
}
.service-link:hover { gap: .6rem; color: var(--blue); }

/* ---------- ABOUT ---------- */
#about {
  padding: 6rem 0;
  background: var(--white);
  position: relative;
}
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.about-img-wrap {
  position: relative;
}
.about-img-main {
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: var(--shadow-lg);
}
.about-img-main img { width: 100%; height: 100%; object-fit: cover; }
.about-img-accent {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  width: 200px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 4px solid var(--white);
  box-shadow: var(--shadow-md);
  aspect-ratio: 4/3;
}
.about-img-accent img { width: 100%; height: 100%; object-fit: cover; }
.about-exp-badge {
  position: absolute;
  top: 1.5rem;
  left: -1.5rem;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--navy);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  text-align: center;
  box-shadow: var(--shadow-gold);
}
.about-exp-badge .exp-number {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 800;
  display: block;
  line-height: 1;
}
.about-exp-badge .exp-label {
  font-size: .75rem;
  font-weight: 600;
  display: block;
  margin-top: .2rem;
}

.about-checklist {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin: 1.75rem 0 2rem;
}
.about-check {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  font-size: .95rem;
  color: var(--gray-700);
}
.check-icon {
  width: 22px; height: 22px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: .1rem;
  color: var(--white);
  font-size: .65rem;
}

/* ---------- DOCTORS ---------- */
#doctors {
  padding: 6rem 0;
  background: var(--off-white);
}
.doctors-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.doctors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.doctor-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid var(--gray-200);
}
.doctor-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.doctor-img {
  aspect-ratio: 1;
  overflow: hidden;
  position: relative;
  background: var(--gray-100);
}
.doctor-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.doctor-card:hover .doctor-img img { transform: scale(1.05); }
.doctor-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,27,76,.6) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1.5rem;
}
.doctor-card:hover .doctor-overlay { opacity: 1; }
.doctor-social {
  display: flex;
  gap: .5rem;
}
.doctor-social a {
  width: 36px; height: 36px;
  background: rgba(255,255,255,.2);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: .85rem;
  transition: background var(--transition);
}
.doctor-social a:hover { background: var(--gold); color: var(--navy); }
.doctor-info {
  padding: 1.5rem;
  text-align: center;
}
.doctor-name {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .25rem;
}
.doctor-title {
  font-size: .85rem;
  color: var(--blue-light);
  font-weight: 600;
  margin-bottom: .75rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.doctor-stars {
  display: flex;
  justify-content: center;
  gap: 3px;
  margin-bottom: .75rem;
  color: var(--gold);
  font-size: .85rem;
}
.doctor-cta {
  font-size: .85rem;
  font-weight: 600;
  color: var(--blue-light);
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  transition: gap var(--transition);
}
.doctor-cta:hover { gap: .6rem; }

/* ---------- TESTIMONIALS ---------- */
#testimonials {
  padding: 6rem 0;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  position: relative;
  overflow: hidden;
}
#testimonials::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,197,24,.08), transparent 70%);
  top: -200px; left: -100px;
  pointer-events: none;
}
.testimonials-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.testimonials-header .section-title { color: var(--white); }
.testimonials-header .section-label { color: var(--gold); }

.testi-slider-wrap {
  position: relative;
  overflow: hidden;
}
.testi-track {
  display: flex;
  transition: transform .6s cubic-bezier(.4,0,.2,1);
}
.testi-slide {
  min-width: 100%;
  padding: 0 1rem;
}
.testi-card {
  background: rgba(255,255,255,.07);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}
.testi-quote-icon {
  font-size: 4rem;
  line-height: 1;
  color: rgba(245,197,24,.3);
  font-family: Georgia, serif;
  position: absolute;
  top: 1rem;
  left: 2rem;
}
.testi-text {
  font-size: 1.05rem;
  color: rgba(255,255,255,.85);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-style: italic;
}
.testi-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}
.testi-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(245,197,24,.4);
  flex-shrink: 0;
}
.testi-avatar img { width: 100%; height: 100%; object-fit: cover; }
.testi-name {
  font-weight: 700;
  color: var(--white);
  font-size: .95rem;
}
.testi-role {
  font-size: .8rem;
  color: rgba(255,255,255,.55);
}
.testi-stars { color: var(--gold); font-size: .85rem; margin-top: .2rem; }

.testi-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.5rem;
}
.testi-btn {
  width: 44px; height: 44px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--white);
  font-size: 1rem;
  transition: background var(--transition), border-color var(--transition);
}
.testi-btn:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.testi-dots {
  display: flex;
  gap: .5rem;
}
.testi-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.3);
  border: none;
  cursor: pointer;
  transition: background var(--transition), width var(--transition);
  padding: 0;
}
.testi-dot.active {
  background: var(--gold);
  width: 24px;
  border-radius: 4px;
}

/* ---------- GALLERY ---------- */
#gallery {
  padding: 6rem 0;
  background: var(--white);
}
.gallery-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto;
  gap: 1rem;
}
.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  aspect-ratio: 1;
  background: var(--gray-100);
}
.gallery-item:nth-child(1) { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,27,76,.5), rgba(33,150,243,.3));
  opacity: 0;
  transition: opacity var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.5rem;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* ---------- APPOINTMENT FORM ---------- */
#appointment {
  padding: 6rem 0;
  background: var(--off-white);
  position: relative;
}
.appt-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: start;
}
.appt-info h2 {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 1rem;
}
.appt-info p {
  color: var(--gray-500);
  margin-bottom: 2rem;
  line-height: 1.7;
}
.appt-contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.appt-contact-icon {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.1rem;
  flex-shrink: 0;
}
.appt-contact-label {
  font-size: .78rem;
  color: var(--gray-500);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.appt-contact-value {
  font-weight: 600;
  color: var(--navy);
  font-size: .95rem;
}

.appt-form-wrap {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  margin-bottom: 1rem;
}
.form-group label {
  font-size: .85rem;
  font-weight: 600;
  color: var(--navy);
}
.form-control-crown {
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: .75rem 1rem;
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
  outline: none;
}
.form-control-crown:focus {
  border-color: var(--blue-light);
  box-shadow: 0 0 0 3px rgba(33,150,243,.12);
}
.form-control-crown.error { border-color: #ef4444; }
.form-error-msg {
  font-size: .78rem;
  color: #ef4444;
  display: none;
}
.form-error-msg.visible { display: block; }
.form-success {
  display: none;
  background: rgba(34,197,94,.1);
  border: 1px solid rgba(34,197,94,.3);
  color: #15803d;
  border-radius: var(--radius-sm);
  padding: 1rem;
  text-align: center;
  font-weight: 600;
  margin-bottom: 1rem;
}
.form-success.visible { display: block; }
.validation-summary { color: #ef4444; font-size: .85rem; margin-bottom: 1rem; }
textarea.form-control-crown { resize: vertical; min-height: 100px; }
select.form-control-crown { cursor: pointer; }

/* ---------- FOOTER ---------- */
#footer {
  background: var(--navy);
  padding: 4rem 0 2rem;
  color: rgba(255,255,255,.75);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand img { height: 56px; border-radius: var(--radius-sm); margin-bottom: 1rem; }
.footer-brand p {
  font-size: .88rem;
  line-height: 1.7;
  color: rgba(255,255,255,.6);
  margin-bottom: 1.25rem;
  max-width: 280px;
}
.footer-social {
  display: flex;
  gap: .5rem;
}
.social-icon {
  width: 38px; height: 38px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.7);
  font-size: .95rem;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.social-icon:hover { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.footer-col h4 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: .75rem;
}
.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 30px; height: 2px;
  background: var(--gold);
  border-radius: 2px;
}
.footer-links { display: flex; flex-direction: column; gap: .5rem; }
.footer-links a {
  font-size: .88rem;
  color: rgba(255,255,255,.6);
  transition: color var(--transition), padding-left var(--transition);
  display: flex;
  align-items: center;
  gap: .35rem;
}
.footer-links a:hover { color: var(--gold); padding-left: .35rem; }
.footer-contact-item {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  font-size: .88rem;
  color: rgba(255,255,255,.6);
  margin-bottom: .75rem;
}
.footer-contact-item i { color: var(--gold); margin-top: 3px; flex-shrink: 0; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-copy {
  font-size: .83rem;
  color: rgba(255,255,255,.45);
}
.footer-copy a { color: var(--gold); }

/* ---------- SECTION WAVES ---------- */
.wave-divider { line-height: 0; display: block; overflow: hidden; }
.wave-divider svg { display: block; width: 100%; }

/* ---------- ENTRANCE ANIMATIONS ---------- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .7s cubic-bezier(.4,0,.2,1), transform .7s cubic-bezier(.4,0,.2,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* Hero entrance */
.hero-content .hero-badge   { animation: heroFadeUp .8s ease .1s both; }
.hero-content .hero-title   { animation: heroFadeUp .8s ease .25s both; }
.hero-content .hero-sub     { animation: heroFadeUp .8s ease .4s both; }
.hero-content .hero-bullets { animation: heroFadeUp .8s ease .5s both; }
.hero-content .hero-actions { animation: heroFadeUp .8s ease .65s both; }
.hero-visual                { animation: heroScaleIn .9s ease .3s both; }

@keyframes heroFadeUp {
  from { opacity:0; transform: translateY(30px); }
  to   { opacity:1; transform: translateY(0); }
}
@keyframes heroScaleIn {
  from { opacity:0; transform: scale(.93) translateY(20px); }
  to   { opacity:1; transform: scale(1) translateY(0); }
}

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .hero-bg-shape, .hero-img-blob, .hero-float-card,
  .hero-crown-accent { animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-bullets { align-items: center; }
  .hero-actions { justify-content: center; }
  .hero-visual { max-width: 360px; margin: 0 auto; }
  .about-inner { grid-template-columns: 1fr; }
  .about-img-wrap { max-width: 400px; margin: 0 auto 2rem; }
  .doctors-grid { grid-template-columns: repeat(2, 1fr); }
  .appt-inner { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item:nth-child(1) { grid-column: span 2; }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 520px) {
  .services-grid { grid-template-columns: 1fr; }
  .doctors-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item:nth-child(1) { grid-column: span 1; }
  #hero { padding: 6rem 0 3rem; }
  .appt-form-wrap { padding: 1.5rem; }
}
#doctors .doctors-grid {
    grid-template-columns: minmax(280px, 420px);
    justify-content: center;
}
#doctors .doctor-card {
    max-width: 420px;
    margin: 0 auto;
}

.one-doctor-grid {
    display: grid;
    grid-template-columns: minmax(320px, 460px);
    justify-content: center;
}

    .one-doctor-grid .doctor-card {
        margin: 0 auto;
        width: 100%;
    }

.doctor-bio {
    font-size: .92rem;
    color: var(--gray-500);
    line-height: 1.7;
    margin: .75rem 0 1rem;
    max-width: 32ch;
    margin-left: auto;
    margin-right: auto;
}

#doctors .doctors-header {
    text-align: center;
}

#doctors .section-sub {
    margin-left: auto;
    margin-right: auto;
    max-width: 700px;
}
.single-contact-layout {
    display: block;
}

.full-width-contact {
    max-width: 1000px;
    margin: 0 auto;
}

.contact-intro {
    font-size: 1.05rem;
    color: var(--gray-500);
    margin-bottom: 2rem;
    max-width: 720px;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.25rem;
    margin-top: 2rem;
}

.clinic-message-box {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: linear-gradient(135deg, rgba(21,101,192,.07), rgba(0,188,212,.05));
    border: 1px solid rgba(21,101,192,.10);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.25rem;
    margin-top: 2rem;
    box-shadow: var(--shadow-sm);
}

    .clinic-message-box i {
        font-size: 1.35rem;
        color: var(--gold-dark);
        margin-top: .15rem;
    }

    .clinic-message-box strong {
        display: block;
        color: var(--navy);
        margin-bottom: .35rem;
        font-size: 1rem;
    }

    .clinic-message-box p {
        margin: 0;
        color: var(--gray-700);
        line-height: 1.75;
    }

.map-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
}

.map-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.2rem 1.4rem;
    border-bottom: 1px solid var(--gray-200);
    background: linear-gradient(135deg, rgba(21,101,192,.05), rgba(245,197,24,.05));
}

    .map-card-header h3 {
        margin: 0;
        font-family: var(--font-head);
        font-size: 1.2rem;
        color: var(--navy);
    }

.map-link {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    color: var(--blue);
    font-weight: 600;
    font-size: .9rem;
}

    .map-link:hover {
        color: var(--blue-light);
    }

.map-frame-wrap {
    line-height: 0;
}

@media (max-width: 768px) {
    .contact-info-grid {
        grid-template-columns: 1fr;
    }

    .map-card-header {
        flex-direction: column;
        align-items: flex-start;
    }
}
.contact-map-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: stretch;
}

.contact-intro {
    font-size: 1.02rem;
    color: var(--gray-500);
    margin-bottom: 1.75rem;
    max-width: 620px;
}

.clinic-message-box {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: linear-gradient(135deg, rgba(21,101,192,.07), rgba(0,188,212,.05));
    border: 1px solid rgba(21,101,192,.10);
    border-radius: var(--radius-lg);
    padding: 1.15rem 1.15rem;
    margin-top: 1.5rem;
    box-shadow: var(--shadow-sm);
}

    .clinic-message-box i {
        font-size: 1.3rem;
        color: var(--gold-dark);
        margin-top: .1rem;
    }

    .clinic-message-box strong {
        display: block;
        color: var(--navy);
        margin-bottom: .35rem;
        font-size: 1rem;
    }

    .clinic-message-box p {
        margin: 0;
        color: var(--gray-700);
        line-height: 1.7;
    }

.appt-map-wrap {
    display: flex;
    align-items: stretch;
}

.compact-map-card {
    width: 100%;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.map-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
}

.map-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    border-bottom: 1px solid var(--gray-200);
    background: linear-gradient(135deg, rgba(21,101,192,.05), rgba(245,197,24,.05));
}

    .map-card-header h3 {
        margin: 0;
        font-family: var(--font-head);
        font-size: 1.15rem;
        color: var(--navy);
    }

.map-link {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    color: var(--blue);
    font-weight: 600;
    font-size: .9rem;
}

    .map-link:hover {
        color: var(--blue-light);
    }

.map-frame-wrap {
    flex: 1;
    min-height: 420px;
    line-height: 0;
}

@media (max-width: 992px) {
    .contact-map-layout {
        grid-template-columns: 1fr;
    }

    .map-frame-wrap {
        min-height: 340px;
    }
}
.floating-whatsapp {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    z-index: 9999;
    box-shadow: 0 12px 30px rgba(37, 211, 102, .35);
    text-decoration: none;
    transition: transform .25s ease, box-shadow .25s ease;
}

    .floating-whatsapp:hover {
        color: #fff;
        transform: translateY(-4px) scale(1.05);
        box-shadow: 0 18px 40px rgba(37, 211, 102, .45);
    }

@media (max-width: 576px) {
    .floating-whatsapp {
        right: 16px;
        bottom: 16px;
        width: 56px;
        height: 56px;
        font-size: 28px;
    }
}
.head-doctor {
    border: 2px solid #F5C518;
    transform: scale(1.03);
}

.doctor-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #F5C518;
    color: #000;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
}
.doctors-section {
    background: var(--off-white);
}

.clean-doctors-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    align-items: stretch;
    margin-top: 50px;
}

.clean-doctor-card {
    position: relative;
    background: #fff;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(15, 27, 76, .10);
    border: 1px solid rgba(15, 27, 76, .08);
    transition: transform .25s ease, box-shadow .25s ease;
}

    .clean-doctor-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 26px 65px rgba(15, 27, 76, .16);
    }

.clean-doctor-image {
    height: 320px;
    background: #eef2f8;
    overflow: hidden;
}

    .clean-doctor-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center top;
        display: block;
    }

.clean-doctor-body {
    padding: 26px;
    text-align: center;
}

    .clean-doctor-body h3 {
        margin: 0;
        font-size: 24px;
        font-weight: 800;
        color: var(--blue-dark);
    }

.clean-doctor-role {
    margin: 8px 0 14px;
    font-size: 14px;
    font-weight: 800;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: .5px;
}

.clean-doctor-text {
    min-height: 78px;
    margin: 0 0 22px;
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 15px;
}

.clean-doctor-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 12px 20px;
    border-radius: 999px;
    background: rgba(15, 27, 76, .08);
    color: var(--blue-dark);
    font-weight: 800;
    text-decoration: none;
    transition: all .25s ease;
}

    .clean-doctor-btn:hover {
        background: var(--blue-dark);
        color: #fff;
    }

.consultant-card {
    transform: translateY(-18px);
    border: 2px solid rgba(245, 197, 24, .75);
    box-shadow: 0 28px 75px rgba(245, 197, 24, .20);
}

    .consultant-card:hover {
        transform: translateY(-26px);
    }

.consultant-ribbon {
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    background: linear-gradient(135deg, #F5C518, #D4A017);
    color: #111;
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .5px;
    box-shadow: 0 10px 25px rgba(0,0,0,.18);
}

.main-doctor-btn {
    background: linear-gradient(135deg, #F5C518, #D4A017);
    color: #111;
}

    .main-doctor-btn:hover {
        background: var(--blue-dark);
        color: #fff;
    }

@media (max-width: 992px) {
    .clean-doctors-grid {
        grid-template-columns: 1fr;
        max-width: 520px;
        margin-left: auto;
        margin-right: auto;
    }

    .consultant-card,
    .consultant-card:hover {
        transform: none;
    }

    .consultant-card {
        order: -1;
    }
}

@media (max-width: 576px) {
    .clean-doctor-image {
        height: 280px;
    }

    .clean-doctor-body {
        padding: 22px;
    }
}
.staff-login-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    background: rgba(15, 27, 76, 0.08);
    color: var(--blue-dark);
    text-decoration: none;
    transition: all .25s ease;
    margin-left: 14px;
}

    .staff-login-btn:hover {
        background: var(--blue-dark);
        color: #fff;
        transform: translateY(-1px);
    }
.clean-doctor-card:first-child .clean-doctor-image img {
    object-position: center -110px;
}
/* Abdelrahman image fix */
.clean-doctor-card:last-child .clean-doctor-image img {
    object-position: center 40%;
}