/* 
  SELVAM WOMEN & CHILDREN CLINIC - Premium Public Website Stylesheet
  Strict Palette & Typography System
*/

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  /* Official Brand Palette */
  --deep-plum: #54215F;
  --premium-purple: #713A7E;
  --soft-orchid: #A86AA8;
  --muted-rose: #D98AA8;
  --soft-blush: #F6E8EF;
  --warm-peach: #F3B184;
  --soft-cream: #FFF8F3;
  --clean-white: #FFFFFF;
  
  --primary-text: #2B2430;
  --secondary-text: #706872;
  --light-text: #968D9A;
  --soft-border: rgba(84, 33, 95, 0.12);
  --active-glow: rgba(113, 58, 126, 0.25);
  
  --shadow-sm: 0 4px 15px rgba(84, 33, 95, 0.04);
  --shadow-md: 0 12px 30px rgba(84, 33, 95, 0.08);
  --shadow-lg: 0 24px 50px rgba(84, 33, 95, 0.12);
  --shadow-hover: 0 20px 40px rgba(113, 58, 126, 0.18);
  
  --gradient-signature: linear-gradient(135deg, #54215F 0%, #713A7E 32%, #A86AA8 58%, #D98AA8 78%, #F3B184 100%);
  --gradient-soft-bg: linear-gradient(135deg, #FFF8F3 0%, #F9EEF4 38%, #F3EAF6 70%, #FFFFFF 100%);
  --gradient-pediatric: linear-gradient(135deg, #FFF8F3 0%, #F3EAF6 100%);
  --gradient-gynecology: linear-gradient(135deg, #FFF8F3 0%, #F9EEF4 100%);

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;
  
  --transition-fast: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--soft-cream);
  color: var(--primary-text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--soft-cream);
}
::-webkit-scrollbar-thumb {
  background: var(--muted-rose);
  border-radius: var(--radius-pill);
  border: 2px solid var(--soft-cream);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--premium-purple);
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

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

.container-narrow {
  max-width: 960px;
}

/* Typography Helpers */
.text-gradient {
  background: var(--gradient-signature);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.section-subtitle {
  text-transform: uppercase;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--premium-purple);
  margin-bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.section-subtitle::before {
  content: '';
  width: 20px;
  height: 2px;
  background: var(--gradient-signature);
  border-radius: 2px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  color: var(--deep-plum);
  line-height: 1.25;
  margin-bottom: 20px;
}

.section-description {
  font-size: 1.125rem;
  color: var(--secondary-text);
  max-width: 680px;
  line-height: 1.7;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-pill);
  transition: all var(--transition-fast);
  cursor: pointer;
  border: none;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-signature);
  color: var(--clean-white);
  box-shadow: 0 10px 25px rgba(84, 33, 95, 0.25);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, #713A7E 0%, #54215F 100%);
  opacity: 0;
  z-index: -1;
  transition: opacity var(--transition-fast);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-secondary {
  background: var(--clean-white);
  color: var(--deep-plum);
  border: 1px solid var(--soft-border);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--soft-blush);
  border-color: var(--muted-rose);
  color: var(--deep-plum);
  transform: translateY(-2px);
}

.btn-outline-purple {
  background: transparent;
  color: var(--deep-plum);
  border: 2px solid var(--premium-purple);
}

.btn-outline-purple:hover {
  background: var(--premium-purple);
  color: var(--clean-white);
  transform: translateY(-2px);
}

/* ==========================================
   16. STICKY NAVIGATION
   ========================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 18px 0;
  transition: all var(--transition-smooth);
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.navbar.scrolled {
  padding: 12px 0;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--soft-border);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-brand img {
  height: 48px;
  width: auto;
  object-fit: contain;
  transition: height var(--transition-fast);
}

.nav-brand-text {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--deep-plum);
  line-height: 1.1;
  display: flex;
  flex-direction: column;
}

.nav-brand-text small {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--premium-purple);
  text-transform: uppercase;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--primary-text);
  position: relative;
  padding: 6px 0;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--gradient-signature);
  border-radius: 2px;
  transition: width var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--deep-plum);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--deep-plum);
}

/* Mobile Navigation Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 380px;
  height: 100vh;
  background: var(--clean-white);
  z-index: 1005;
  box-shadow: var(--shadow-lg);
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: right var(--transition-smooth);
}

.mobile-drawer.active {
  right: 0;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--soft-border);
}

.drawer-close {
  background: var(--soft-blush);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--deep-plum);
  cursor: pointer;
}

.drawer-menu {
  list-style: none;
  margin: 30px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.drawer-link {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--deep-plum);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-overlay {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(43, 36, 48, 0.4);
  backdrop-filter: blur(4px);
  z-index: 1004;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}

.drawer-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* ==========================================
   17-19. MAIN HERO SECTION
   ========================================== */
.hero-section {
  position: relative;
  padding: 140px 0 90px 0;
  background: var(--gradient-soft-bg);
  overflow: hidden;
}

.hero-backdrop-glow {
  position: absolute;
  top: -10%;
  right: -5%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(243, 177, 132, 0.25) 0%, rgba(217, 138, 168, 0.15) 50%, rgba(255, 248, 243, 0) 70%);
  filter: blur(60px);
  pointer-events: none;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--clean-white);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--soft-border);
  box-shadow: var(--shadow-sm);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--premium-purple);
  margin-bottom: 24px;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: var(--warm-peach);
  border-radius: 50%;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--deep-plum);
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero-lead {
  font-size: 1.18rem;
  color: var(--secondary-text);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 580px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-contact-quick {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--soft-border);
}

.quick-contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.quick-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--soft-blush);
  color: var(--deep-plum);
  display: flex;
  align-items: center;
  justify-content: center;
}

.quick-contact-info label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--secondary-text);
  text-transform: uppercase;
  display: block;
}

.quick-contact-info a {
  font-weight: 700;
  color: var(--deep-plum);
  font-size: 1rem;
}

/* Editorial Hero Photo Collage */
.hero-image-wrapper {
  position: relative;
}

.hero-main-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--clean-white);
}

.hero-main-card img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.hero-main-card:hover img {
  transform: scale(1.03);
}

.hero-floating-card {
  position: absolute;
  bottom: -30px;
  left: -30px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  padding: 20px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--soft-border);
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 280px;
}

.floating-icon {
  width: 48px;
  height: 48px;
  background: var(--gradient-signature);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clean-white);
  flex-shrink: 0;
}

.floating-text h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--deep-plum);
}

.floating-text p {
  font-size: 0.8rem;
  color: var(--secondary-text);
}

/* ==========================================
   20. ABOUT CLINIC SECTION
   ========================================== */
.about-section {
  padding: 100px 0;
  background: var(--clean-white);
  position: relative;
}

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

.about-image-stack {
  position: relative;
}

.about-img-primary {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  height: 440px;
  width: 100%;
  object-fit: cover;
}

.about-experience-badge {
  position: absolute;
  top: 30px;
  right: -20px;
  background: var(--gradient-signature);
  color: var(--clean-white);
  padding: 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  text-align: center;
}

.about-experience-badge h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  line-height: 1.2;
}

.about-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 32px;
}

.pillar-card {
  padding: 20px;
  border-radius: var(--radius-md);
  background: var(--soft-cream);
  border: 1px solid var(--soft-border);
  transition: transform var(--transition-fast);
}

.pillar-card:hover {
  transform: translateY(-4px);
  border-color: var(--soft-orchid);
}

.pillar-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--soft-blush);
  color: var(--deep-plum);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.pillar-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--deep-plum);
  margin-bottom: 6px;
}

.pillar-card p {
  font-size: 0.85rem;
  color: var(--secondary-text);
}

/* ==========================================
   21, 25-26. EDITORIAL SPECIALITIES TRANSITION
   ========================================== */
.specialities-section {
  padding: 110px 0;
  background: var(--gradient-soft-bg);
}

.specialities-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 50px;
}

.speciality-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--clean-white);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--soft-border);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-smooth);
  position: relative;
}

.speciality-card.pediatrics {
  border-top: 5px solid var(--premium-purple);
}

.speciality-card.gynecology {
  border-top: 5px solid var(--muted-rose);
}

.speciality-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.speciality-image-wrapper {
  position: relative;
  height: 280px;
  overflow: hidden;
}

.speciality-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.speciality-card:hover .speciality-image-wrapper img {
  transform: scale(1.05);
}

.speciality-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--deep-plum);
}

.speciality-content {
  padding: 32px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.speciality-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--deep-plum);
  margin-bottom: 12px;
}

.speciality-desc {
  color: var(--secondary-text);
  font-size: 0.98rem;
  margin-bottom: 24px;
}

.speciality-list {
  list-style: none;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.speciality-list li {
  font-size: 0.92rem;
  color: var(--primary-text);
  display: flex;
  align-items: center;
  gap: 10px;
}

.speciality-list li svg {
  color: var(--premium-purple);
  flex-shrink: 0;
}

/* ==========================================
   22-24. DOCTORS SECTION (LARGE EDITORIAL PORTRAITS)
   ========================================== */
.doctors-section {
  padding: 110px 0;
  background: var(--clean-white);
}

.doctors-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 50px;
}

.doctor-editorial-card {
  background: var(--soft-cream);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--soft-border);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-smooth);
}

.doctor-editorial-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--soft-orchid);
}

.doctor-portrait-frame {
  position: relative;
  height: 380px;
  width: 100%;
  overflow: hidden;
  background: var(--soft-blush);
}

.doctor-portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform var(--transition-slow);
}

.doctor-editorial-card:hover .doctor-portrait-frame img {
  transform: scale(1.04);
}

.doctor-reg-badge {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: rgba(84, 33, 95, 0.88);
  backdrop-filter: blur(10px);
  color: var(--clean-white);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.doctor-details-body {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}

.doctor-role-tag {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--premium-purple);
  margin-bottom: 6px;
}

.doctor-name {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--deep-plum);
  margin-bottom: 4px;
}

.doctor-degree {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted-rose);
  margin-bottom: 16px;
}

.doctor-specialty-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary-text);
  margin-bottom: 16px;
  line-height: 1.4;
}

.doctor-contacts-list {
  margin: 20px 0;
  padding-top: 16px;
  border-top: 1px dashed var(--soft-border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.doctor-contact-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
}

.doctor-contact-row svg {
  color: var(--premium-purple);
}

.doctor-contact-row a {
  font-weight: 700;
  color: var(--deep-plum);
  transition: color var(--transition-fast);
}

.doctor-contact-row a:hover {
  color: var(--soft-orchid);
}

/* ==========================================
   27. SERVICES SECTION
   ========================================== */
.services-section {
  padding: 110px 0;
  background: var(--gradient-soft-bg);
}

.services-tabs {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
}

.tab-btn {
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  background: var(--clean-white);
  color: var(--secondary-text);
  border: 1px solid var(--soft-border);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.tab-btn.active {
  background: var(--gradient-signature);
  color: var(--clean-white);
  border-color: transparent;
  box-shadow: 0 8px 20px rgba(84, 33, 95, 0.2);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.service-box {
  background: var(--clean-white);
  padding: 30px;
  border-radius: var(--radius-md);
  border: 1px solid var(--soft-border);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-smooth);
}

.service-box:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--soft-orchid);
}

.service-icon-wrapper {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--soft-blush);
  color: var(--deep-plum);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.service-box h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--deep-plum);
  margin-bottom: 10px;
}

.service-box p {
  font-size: 0.92rem;
  color: var(--secondary-text);
  line-height: 1.6;
}

/* ==========================================
   28. FACILITIES & CLINIC EXPERIENCE
   ========================================== */
.facilities-section {
  padding: 110px 0;
  background: var(--clean-white);
}

.editorial-gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.editorial-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.editorial-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 260px;
  transition: transform var(--transition-slow);
}

.editorial-item:hover img {
  transform: scale(1.05);
}

.editorial-item-1 { grid-column: span 7; height: 380px; }
.editorial-item-2 { grid-column: span 5; height: 380px; }
.editorial-item-3 { grid-column: span 4; height: 300px; }
.editorial-item-4 { grid-column: span 4; height: 300px; }
.editorial-item-5 { grid-column: span 4; height: 300px; }

.editorial-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  background: linear-gradient(0deg, rgba(43, 36, 48, 0.85) 0%, rgba(43, 36, 48, 0) 100%);
  color: var(--clean-white);
}

.editorial-caption h4 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  margin-bottom: 4px;
}

.editorial-caption p {
  font-size: 0.82rem;
  opacity: 0.85;
}

/* ==========================================
   29. GALLERY & LIGHTBOX
   ========================================== */
.gallery-section {
  padding: 110px 0;
  background: var(--soft-cream);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.gallery-thumb {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 240px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery-overlay-hover {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(84, 33, 95, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clean-white);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.gallery-thumb:hover img {
  transform: scale(1.06);
}

.gallery-thumb:hover .gallery-overlay-hover {
  opacity: 1;
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(20, 15, 25, 0.92);
  backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}

.lightbox-modal.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 85vh;
  position: relative;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 85vh;
  border-radius: var(--radius-md);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.4);
}

/* ==========================================
   30. APPOINTMENT SECTION
   ========================================== */
.appointment-section {
  padding: 110px 0;
  background: var(--clean-white);
  position: relative;
}

.appointment-wrapper {
  background: var(--gradient-soft-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--soft-border);
  box-shadow: var(--shadow-lg);
  padding: 50px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
}

.appointment-info h3 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: var(--deep-plum);
  margin-bottom: 16px;
}

.appointment-info p {
  color: var(--secondary-text);
  margin-bottom: 30px;
  line-height: 1.7;
}

.direct-call-badge {
  background: var(--clean-white);
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--soft-border);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.direct-call-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--soft-blush);
  color: var(--deep-plum);
  display: flex;
  align-items: center;
  justify-content: center;
}

.appointment-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.form-group label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary-text);
}

.form-control {
  width: 100%;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--soft-border);
  background: var(--clean-white);
  outline: none;
  transition: all var(--transition-fast);
}

.form-control:focus {
  border-color: var(--premium-purple);
  box-shadow: 0 0 0 3px var(--active-glow);
}

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

/* Modal feedback */
.form-success-modal {
  display: none;
  background: #E8F5E9;
  color: #2E7D32;
  padding: 16px;
  border-radius: var(--radius-md);
  font-weight: 600;
  text-align: center;
}

/* ==========================================
   31-32. CONTACT & LOCATION MAP
   ========================================== */
.contact-section {
  padding: 110px 0;
  background: var(--soft-cream);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 40px;
}

.contact-card-box {
  background: var(--clean-white);
  padding: 36px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--soft-border);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-detail-item {
  display: flex;
  gap: 16px;
}

.contact-detail-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--soft-blush);
  color: var(--deep-plum);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-detail-text h5 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--deep-plum);
  margin-bottom: 4px;
}

.contact-detail-text p, .contact-detail-text a {
  font-size: 0.95rem;
  color: var(--secondary-text);
  line-height: 1.5;
}

.contact-detail-text a {
  font-weight: 600;
  color: var(--deep-plum);
}

.map-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--soft-border);
  min-height: 380px;
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
  min-height: 380px;
}

/* ==========================================
   33. FOOTER
   ========================================== */
.footer {
  background: var(--primary-text);
  color: rgba(255, 255, 255, 0.85);
  padding: 70px 0 30px 0;
}

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

.footer-brand img {
  height: 48px;
  margin-bottom: 16px;
  filter: brightness(0) invert(1);
}

.footer-brand h4 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--clean-white);
  margin-bottom: 10px;
}

.footer-brand p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
}

.footer-col h5 {
  color: var(--clean-white);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--warm-peach);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ==========================================
   34. RESPONSIVE BREAKPOINTS
   ========================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .doctors-grid {
    grid-template-columns: 1fr;
  }
  .appointment-wrapper {
    grid-template-columns: 1fr;
    padding: 32px;
  }
  .editorial-item-1, .editorial-item-2, .editorial-item-3, .editorial-item-4, .editorial-item-5 {
    grid-column: span 12;
    height: 280px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-menu, .nav-actions .btn {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  .hero-section {
    padding: 110px 0 60px 0;
  }
  .hero-title {
    font-size: 2.3rem;
  }
  .specialities-split {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  .hero-floating-card {
    left: 10px;
    bottom: -20px;
    padding: 14px 18px;
  }
}
