/* ========================================
   JIVANT CLINIC — Design System & Styles
   ======================================== */

/* ---------- CSS Variables ---------- */
:root {
  /* Primary Orange Palette */
  --orange-50: #FFF7F0;
  --orange-100: #FFEDD5;
  --orange-200: #FFDBB5;
  --orange-300: #FFC088;
  --orange-400: #FF9F5A;
  --orange-500: #FF6B35;
  --orange-600: #E8531A;
  --orange-700: #C44216;
  --orange-800: #9C3518;
  --orange-900: #7D2F18;

  /* Secondary Navy */
  --navy-50: #F0F4F8;
  --navy-100: #D9E2EC;
  --navy-200: #BCCCDC;
  --navy-300: #9FB3C8;
  --navy-400: #829AB1;
  --navy-500: #627D98;
  --navy-600: #486581;
  --navy-700: #334E68;
  --navy-800: #243B53;
  --navy-900: #102A43;

  /* Accent Teal */
  --teal-400: #4FD1C5;
  --teal-500: #38B2AC;
  --teal-600: #2C9E97;

  /* Neutrals */
  --white: #FFFFFF;
  --gray-50: #FAFAFA;
  --gray-100: #F5F5F5;
  --gray-200: #E5E5E5;
  --gray-300: #D4D4D4;
  --gray-400: #A3A3A3;
  --gray-500: #737373;
  --gray-600: #525252;
  --gray-700: #404040;
  --gray-800: #262626;
  --gray-900: #171717;

  /* Semantic */
  --bg-primary: var(--white);
  --bg-secondary: var(--orange-50);
  --bg-dark: var(--navy-900);
  --text-primary: var(--navy-900);
  --text-secondary: var(--gray-600);
  --text-light: var(--gray-400);
  --text-on-dark: var(--white);

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #FF6B35 0%, #E8451A 100%);
  --gradient-warm: linear-gradient(135deg, #FF9F5A 0%, #FF6B35 100%);
  --gradient-hero: linear-gradient(135deg, #FFF7F0 0%, #FFEDD5 50%, #FFF7F0 100%);
  --gradient-dark: linear-gradient(135deg, #102A43 0%, #1A3A5C 100%);

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(16, 42, 67, 0.05);
  --shadow-sm: 0 2px 8px rgba(16, 42, 67, 0.08);
  --shadow-md: 0 4px 16px rgba(16, 42, 67, 0.1);
  --shadow-lg: 0 8px 32px rgba(16, 42, 67, 0.12);
  --shadow-xl: 0 16px 48px rgba(16, 42, 67, 0.16);
  --shadow-orange: 0 8px 32px rgba(255, 107, 53, 0.3);
  --shadow-card: 0 4px 24px rgba(16, 42, 67, 0.06);

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

  /* Spacing */
  --section-padding: 120px;
  --container-width: 1200px;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

ul, ol {
  list-style: none;
}

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

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

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

/* ---------- Typography ---------- */
.section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--orange-500);
  margin-bottom: 16px;
  font-family: var(--font-heading);
}

.section-label.center {
  justify-content: center;
}

.label-line {
  display: block;
  width: 32px;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.section-title.center {
  text-align: center;
}

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 60px;
  text-align: center;
  line-height: 1.7;
}

.section-header {
  margin-bottom: 20px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 15px;
  font-family: var(--font-heading);
  letter-spacing: 0.3px;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--white);
  box-shadow: var(--shadow-orange);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(255, 107, 53, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-outline {
  background: transparent;
  color: var(--orange-500);
  border: 2px solid var(--orange-200);
}

.btn-outline:hover {
  background: var(--orange-50);
  border-color: var(--orange-500);
  transform: translateY(-2px);
}

.btn-full {
  width: 100%;
}

/* ---------- ANIMATION BASE ---------- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   NAVIGATION
   ======================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all var(--transition-base);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.navbar.scrolled {
  padding: 10px 0;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-md);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 1001;
}

.logo-icon {
  width: 40px;
  height: 40px;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  color: var(--navy-900);
}

.logo-accent {
  color: var(--orange-500);
}

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

.nav-link {
  padding: 8px 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--gray-600);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--orange-500);
}

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

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

.nav-cta {
  padding: 10px 24px;
  background: var(--gradient-primary);
  color: var(--white);
  font-weight: 600;
  font-size: 14px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-orange);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 107, 53, 0.35);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  z-index: 1001;
}

.hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy-900);
  border-radius: 2px;
  position: relative;
  transition: background var(--transition-fast);
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background: var(--navy-900);
  border-radius: 2px;
  transition: all var(--transition-base);
}

.hamburger::before { top: -7px; }
.hamburger::after { bottom: -7px; }

.nav-toggle.active .hamburger { background: transparent; }
.nav-toggle.active .hamburger::before { top: 0; transform: rotate(45deg); }
.nav-toggle.active .hamburger::after { bottom: 0; transform: rotate(-45deg); }

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  position: relative;
  padding: 160px 0 0;
  background: var(--gradient-hero);
  overflow: hidden;
  min-height: 100vh;
}

.hero-bg-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.08;
}

.hero-shape-1 {
  width: 600px;
  height: 600px;
  background: var(--orange-500);
  top: -200px;
  right: -100px;
  animation: float 20s ease-in-out infinite;
}

.hero-shape-2 {
  width: 400px;
  height: 400px;
  background: var(--teal-500);
  bottom: -100px;
  left: -100px;
  animation: float 15s ease-in-out infinite reverse;
}

.hero-shape-3 {
  width: 200px;
  height: 200px;
  background: var(--orange-300);
  top: 40%;
  left: 60%;
  animation: float 25s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: var(--white);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--orange-600);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
  border: 1px solid var(--orange-100);
  animation: fadeInUp 0.8s ease-out;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  color: var(--navy-900);
  margin-bottom: 24px;
  animation: fadeInUp 0.8s ease-out 0.1s backwards;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--gray-600);
  line-height: 1.7;
  max-width: 540px;
  margin-bottom: 36px;
  animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out 0.3s backwards;
}

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

/* Hero Image */
.hero-image {
  position: relative;
  animation: fadeInUp 1s ease-out 0.4s backwards;
}

.hero-image-wrapper {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.hero-image-wrapper img {
  width: 100%;
  height: 460px;
  object-fit: cover;
}

.hero-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, transparent 50%);
}

/* Floating Cards */
.hero-floating-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 2;
  animation: floatCard 3s ease-in-out infinite;
}

.hero-card-1 {
  top: 30px;
  left: -40px;
  animation-delay: 0s;
}

.hero-card-2 {
  bottom: 50px;
  right: -30px;
  animation-delay: 1.5s;
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.floating-card-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--orange-50);
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.hero-floating-card strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy-900);
  font-family: var(--font-heading);
}

.hero-floating-card span {
  font-size: 12px;
  color: var(--gray-500);
}

/* Stats Bar */
.hero-stats {
  position: relative;
  z-index: 2;
  margin-top: 80px;
  padding-bottom: 40px;
}

.stats-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

.stat-item {
  flex: 1;
  text-align: center;
  padding: 0 20px;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 800;
  color: var(--orange-500);
  line-height: 1;
}

.stat-suffix {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 800;
  color: var(--orange-500);
}

.stat-label {
  display: block;
  font-size: 14px;
  color: var(--gray-500);
  margin-top: 8px;
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 50px;
  background: var(--gray-200);
  flex-shrink: 0;
}

/* ========================================
   ABOUT SECTION
   ======================================== */
.about {
  padding: var(--section-padding) 0;
  background: var(--bg-primary);
}

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

.about-image-wrapper {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.about-image-wrapper img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.about-experience-badge {
  position: absolute;
  bottom: 24px;
  right: 24px;
  background: var(--gradient-primary);
  color: var(--white);
  padding: 20px 28px;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-orange);
}

.experience-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 800;
  line-height: 1;
}

.experience-text {
  font-size: 13px;
  font-weight: 500;
  opacity: 0.9;
  line-height: 1.3;
}

.about-description {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.8;
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 32px;
}

.about-feature {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--orange-50);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  border: 1px solid transparent;
}

.about-feature:hover {
  background: var(--white);
  border-color: var(--orange-200);
  box-shadow: var(--shadow-md);
  transform: translateX(8px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border-radius: var(--radius-md);
  flex-shrink: 0;
  box-shadow: var(--shadow-xs);
}

.about-feature h4 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 4px;
}

.about-feature p {
  font-size: 14px;
  color: var(--gray-500);
}

/* ========================================
   SERVICES SECTION
   ======================================== */
.services {
  padding: var(--section-padding) 0;
  background: var(--bg-secondary);
}

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

.tab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-heading);
  color: var(--gray-500);
  background: var(--white);
  border-radius: 100px;
  border: 2px solid var(--gray-200);
  transition: all var(--transition-base);
}

.tab-btn:hover {
  border-color: var(--orange-300);
  color: var(--orange-500);
}

.tab-btn.active {
  background: var(--gradient-primary);
  color: var(--white);
  border-color: transparent;
  box-shadow: var(--shadow-orange);
}

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

.service-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 36px 28px;
  transition: all var(--transition-base);
  border: 1px solid var(--gray-100);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform var(--transition-base);
  transform-origin: left;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--orange-100);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card[data-category="dental"] {
  display: none;
}

.service-card.show {
  display: block;
  animation: fadeScale 0.4s ease-out;
}

@keyframes fadeScale {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.service-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--orange-50);
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
  color: var(--orange-500);
  transition: all var(--transition-base);
}

.service-card:hover .service-icon {
  background: var(--gradient-primary);
  color: var(--white);
  transform: scale(1.05);
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 12px;
}

.service-card p {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.7;
  margin-bottom: 20px;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--orange-500);
  font-family: var(--font-heading);
  transition: gap var(--transition-base);
}

.service-link:hover {
  gap: 12px;
}

/* ========================================
   DOCTORS SECTION
   ======================================== */
.doctors {
  padding: var(--section-padding) 0;
  background: var(--bg-primary);
}

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

.doctor-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition-base);
  border: 1px solid var(--gray-100);
}

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

.doctor-image {
  position: relative;
  overflow: hidden;
  height: 300px;
}

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

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

.doctor-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(16, 42, 67, 0.8) 0%, transparent 50%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.doctor-card:hover .doctor-overlay {
  opacity: 1;
}

.doctor-social {
  display: flex;
  gap: 12px;
  transform: translateY(20px);
  transition: transform var(--transition-base);
}

.doctor-card:hover .doctor-social {
  transform: translateY(0);
}

.social-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  color: var(--white);
  transition: all var(--transition-fast);
}

.social-icon:hover {
  background: var(--orange-500);
  transform: scale(1.1);
}

.doctor-info {
  padding: 24px;
}

.doctor-specialty {
  display: inline-block;
  padding: 4px 14px;
  background: var(--orange-50);
  color: var(--orange-600);
  font-size: 12px;
  font-weight: 600;
  border-radius: 100px;
  margin-bottom: 12px;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.doctor-info h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 8px;
}

.doctor-info p {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.6;
}

/* ========================================
   INSURANCE SECTION
   ======================================== */
.insurance {
  padding: var(--section-padding) 0;
  background: var(--bg-secondary);
}

.insurance-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.insurance-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 32px;
  text-align: center;
  transition: all var(--transition-base);
  border: 2px solid transparent;
}

.insurance-card:hover {
  transform: translateY(-4px);
  border-color: var(--orange-200);
  box-shadow: var(--shadow-md);
}

.insurance-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.insurance-card h4 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 8px;
}

.insurance-card p {
  font-size: 14px;
  color: var(--gray-500);
}

.insurance-note {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 32px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--orange-500);
  box-shadow: var(--shadow-sm);
}

.insurance-note-icon {
  flex-shrink: 0;
}

.insurance-note p {
  font-size: 15px;
  color: var(--text-secondary);
}

.insurance-note strong {
  color: var(--navy-900);
}

/* ========================================
   CONTACT SECTION
   ======================================== */
.contact {
  padding: var(--section-padding) 0;
  background: var(--bg-primary);
}

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

.contact-form-wrapper {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--gray-100);
}

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

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy-900);
  margin-bottom: 8px;
  font-family: var(--font-heading);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: 15px;
  color: var(--text-primary);
  background: var(--gray-50);
  transition: all var(--transition-fast);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--orange-500);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--gray-400);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-info-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-info-card {
  background: var(--gradient-dark);
  border-radius: var(--radius-xl);
  padding: 36px;
  color: var(--white);
}

.contact-info-card h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 28px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

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

.contact-detail-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 107, 53, 0.15);
  border-radius: var(--radius-md);
  color: var(--orange-400);
  flex-shrink: 0;
}

.contact-detail-item strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.contact-detail-item p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
}

.contact-map {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: var(--navy-900);
  padding: 80px 0 0;
  color: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 60px;
}

.footer-logo {
  margin-bottom: 20px;
}

.footer-logo .logo-text {
  color: var(--white);
}

.footer-description {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
  margin-bottom: 24px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social-link {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  color: rgba(255, 255, 255, 0.6);
  transition: all var(--transition-base);
}

.footer-social-link:hover {
  background: var(--orange-500);
  color: var(--white);
  transform: translateY(-3px);
}

.footer-links-col h4 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 12px;
}

.footer-links-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.footer-links-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links-col li,
.footer-links-col a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  transition: all var(--transition-fast);
}

.footer-links-col a:hover {
  color: var(--orange-400);
  padding-left: 4px;
}

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

.footer-bottom p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.4);
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.4);
  transition: color var(--transition-fast);
}

.footer-bottom-links a:hover {
  color: var(--orange-400);
}

/* ========================================
   BACK TO TOP BUTTON
   ======================================== */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  color: var(--white);
  border-radius: 50%;
  box-shadow: var(--shadow-orange);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-base);
  z-index: 999;
}

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

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(255, 107, 53, 0.4);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 1024px) {
  :root {
    --section-padding: 80px;
  }

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-floating-card {
    display: none;
  }

  .hero-image-wrapper img {
    height: 360px;
  }

  .stats-grid {
    flex-wrap: wrap;
    gap: 24px;
  }

  .stat-divider {
    display: none;
  }

  .stat-item {
    flex: 0 0 calc(50% - 12px);
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .doctors-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .insurance-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

@media (max-width: 768px) {
  :root {
    --section-padding: 60px;
  }

  /* Mobile Nav */
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 360px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding: 40px;
    box-shadow: var(--shadow-xl);
    transition: right var(--transition-base);
    z-index: 1000;
  }

  .nav-links.open {
    right: 0;
  }

  .nav-link {
    font-size: 18px;
    padding: 12px 16px;
    width: 100%;
    text-align: center;
  }

  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    padding: 120px 0 0;
    min-height: auto;
  }

  .hero-title {
    font-size: clamp(32px, 8vw, 48px);
  }

  .hero-image-wrapper img {
    height: 280px;
  }

  .hero-stats {
    margin-top: 48px;
  }

  .stats-grid {
    padding: 28px 20px;
  }

  .stat-number {
    font-size: 32px;
  }

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

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

  .insurance-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto 40px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-form-wrapper {
    padding: 28px 20px;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .footer-bottom-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .stat-item {
    flex: 0 0 100%;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

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

  .insurance-note {
    flex-direction: column;
    text-align: center;
  }
}

/* ---------- Form Success Animation ---------- */
.form-success {
  text-align: center;
  padding: 40px 20px;
  animation: fadeInUp 0.5s ease-out;
}

.form-success svg {
  width: 64px;
  height: 64px;
  color: #22c55e;
  margin-bottom: 20px;
}

.form-success h3 {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 12px;
}

.form-success p {
  font-size: 16px;
  color: var(--gray-500);
}

/* ---------- Mobile Overlay ---------- */
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.mobile-overlay.active {
  opacity: 1;
  visibility: visible;
}
