@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* Reset and Variables */
:root {
  --primary: #1cb3d6;
  --primary-rgb: 28, 179, 214;
  --primary-hover: #149cb9;
  --primary-light: #e6f7fa;
  --bg-dark: #090a0c;
  --bg-dark-card: #121418;
  --bg-light: #f7f9fa;
  --bg-light-secondary: #ffffff;
  --text-dark: #121418;
  --text-muted-dark: #626e7d;
  --text-light: #ffffff;
  --text-muted-light: #a0aec0;
  --border-light: #e2e8f0;
  --border-dark: #2d3748;
  
  --font-sans: 'Outfit', sans-serif;
  --font-serif: 'DM Serif Display', serif;
  
  --transition-fast: all 0.2s ease;
  --transition-normal: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 10px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
  --shadow-lg: 0 20px 35px -10px rgba(0,0,0,0.15), 0 10px 15px -8px rgba(0,0,0,0.15);
  --shadow-primary: 0 10px 20px -5px rgba(28, 179, 214, 0.4);

  /* Responsive variables */
  --h2-font-size: 2.8rem;
  --h2-large-font-size: 3.2rem;
  --section-padding: 120px 0;
}

html {
  overflow-x: hidden;
  width: 100%;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
}

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

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

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

.mobile-only {
  display: none !important;
}

.desktop-only {
  display: block !important;
}

.text-gradient {
  background: linear-gradient(135deg, #1cb3d6 0%, #00d4ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.bg-dark-section {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.bg-light-section {
  background-color: var(--bg-light);
  color: var(--text-dark);
}

.italic-serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  text-transform: none;
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition-normal);
  padding: 24px 0;
  background-color: transparent;
}

header.scrolled {
  background-color: rgba(9, 10, 12, 0.92);
  backdrop-filter: blur(12px);
  padding: 16px 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Ensure navbar contents fit nicely */
header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 48px; /* Ensure space between logo, nav, and nav-buttons */
}

.logo {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: 2px;
  color: var(--text-light);
  text-transform: uppercase;
}

.logo span {
  color: var(--primary);
  font-weight: 300;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 32px;
  align-items: center;
}

nav ul li a {
  color: var(--text-light);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  position: relative;
  padding: 8px 0;
  white-space: nowrap;
}

nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: var(--transition-normal);
}

nav ul li a:hover {
  color: var(--primary);
}

nav ul li a:hover::after {
  width: 100%;
}

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

/* Call Us Link & Micro-animations */
.nav-call-link {
  color: var(--text-light);
  font-weight: 600;
  font-size: 0.9rem;
  margin-right: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  transition: var(--transition-normal);
}

.nav-call-link:hover {
  color: var(--primary);
}

.phone-icon-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: rgba(28, 179, 214, 0.12);
  transition: var(--transition-normal);
  color: var(--primary);
}

.nav-call-link:hover .phone-icon-wrapper {
  background-color: var(--primary);
  color: var(--text-light);
  transform: scale(1.08);
}

/* Pulsing outer ring */
.phone-icon-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  border: 1px solid var(--primary);
  opacity: 0;
  pointer-events: none;
  animation: phonePulse 2.5s cubic-bezier(0.25, 0, 0.3, 1) infinite;
}

/* Wobble / vibrate animation for the phone icon itself */
.nav-call-link svg {
  transition: transform 0.3s ease;
  transform-origin: center;
  animation: phoneWiggle 4s ease-in-out infinite;
}

.nav-call-link:hover svg {
  animation: phoneWiggleHover 0.6s ease-in-out infinite;
}

@keyframes phonePulse {
  0% {
    transform: scale(0.85);
    opacity: 0.8;
  }
  50% {
    opacity: 0.3;
  }
  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}

@keyframes phoneWiggle {
  0%, 75%, 100% {
    transform: rotate(0deg);
  }
  77% {
    transform: rotate(-15deg);
  }
  80% {
    transform: rotate(15deg);
  }
  83% {
    transform: rotate(-12deg);
  }
  86% {
    transform: rotate(12deg);
  }
  89% {
    transform: rotate(-8deg);
  }
  92% {
    transform: rotate(8deg);
  }
  95% {
    transform: rotate(0deg);
  }
}

@keyframes phoneWiggleHover {
  0%, 100% {
    transform: rotate(0deg) scale(1.1);
  }
  25% {
    transform: rotate(-15deg) scale(1.1);
  }
  75% {
    transform: rotate(15deg) scale(1.1);
  }
}

/* Button styles */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: var(--transition-normal);
  border: none;
  text-align: center;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--text-light);
  box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 22px -4px rgba(28, 179, 214, 0.5);
}

.btn-outline {
  background-color: transparent;
  color: var(--text-light);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--text-light);
  transform: translateY(-2px);
}

.btn-outline-dark {
  background-color: transparent;
  color: var(--text-dark);
  border: 1px solid rgba(0, 0, 0, 0.2);
}

.btn-outline-dark:hover {
  background-color: rgba(0, 0, 0, 0.05);
  border-color: var(--text-dark);
  transform: translateY(-2px);
}

.btn-white {
  background-color: var(--text-light);
  color: var(--bg-dark);
}

.btn-white:hover {
  background-color: var(--primary);
  color: var(--text-light);
  transform: translateY(-2px);
}

.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--text-light);
  margin: 5px 0;
  transition: var(--transition-normal);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.55) contrast(1.05);
  animation: kenBurns 15s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transform-origin: center center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(9,10,12,0.6) 0%, rgba(9,10,12,0.85) 100%);
  z-index: 2;
}

.hero .container {
  position: relative;
  z-index: 3;
  width: 100%;
}

.hero-content {
  max-width: 780px;
}

.hero-content h1 {
  font-family: var(--font-sans);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 24px;
  letter-spacing: -0.5px;
  line-height: 1.15;
}

.hero-content h1 .italic-serif {
  font-size: 3.8rem;
  color: var(--primary);
}

.hero-content p {
  font-size: 1.1rem;
  color: var(--text-muted-light);
  margin-bottom: 40px;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Doctors Section */
.doctors-section {
  padding: var(--section-padding);
}

.doctors-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 48px;
  align-items: center;
}

.doctors-images {
  grid-column: span 7;
  display: flex;
  gap: 24px;
}

.doctor-card {
  flex: 1;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5;
}

.doctor-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%; /* Keep faces and heads in frame */
  transition: var(--transition-slow);
}

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

.doctor-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 24px;
  background: linear-gradient(0deg, rgba(9,10,12,0.95) 0%, rgba(9,10,12,0.4) 50%, rgba(9,10,12,0) 100%);
  color: var(--text-light);
  z-index: 2;
}

.doctor-info h4 {
  font-size: 1.25rem;
  font-weight: 700;
}

.doctor-info p {
  color: var(--primary);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.doctors-content {
  grid-column: span 5;
}

.doctors-content h3 {
  font-size: 0.9rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.doctors-content h2 {
  font-size: var(--h2-font-size);
  margin-bottom: 24px;
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.2;
}

.doctors-content p {
  color: var(--text-muted-light);
  margin-bottom: 32px;
  font-size: 1.05rem;
}

/* Details Section */
.details-section {
  padding: var(--section-padding);
  background-color: var(--bg-light-secondary);
}

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

.details-image {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.details-image img {
  width: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.details-content h2 {
  font-size: var(--h2-font-size);
  margin-bottom: 32px;
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--text-dark);
}

.details-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.details-item {
  display: flex;
  gap: 20px;
}

.details-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-top: 4px;
}

.details-text h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-dark);
}

.details-text p {
  color: var(--text-muted-dark);
  font-size: 0.95rem;
}

/* Emergency Banner */
.emergency-banner {
  background: linear-gradient(135deg, #1cb3d6 0%, #00d4ff 100%);
  padding: 64px 0;
  color: var(--text-light);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.emergency-banner .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.emergency-banner h2 {
  font-size: 2.2rem;
  margin-bottom: 12px;
  font-weight: 800;
}

.emergency-banner p {
  font-size: 1.1rem;
  margin-bottom: 24px;
  opacity: 0.9;
  max-width: 600px;
}

/* Implant Section */
.implant-section {
  padding: var(--section-padding);
}

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

.implant-content h3 {
  font-size: 0.9rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.implant-content h2 {
  font-size: var(--h2-font-size);
  margin-bottom: 24px;
  font-family: var(--font-serif);
  font-weight: 400;
}

.implant-content p {
  color: var(--text-muted-light);
  margin-bottom: 32px;
  font-size: 1.05rem;
}

.implant-image {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.implant-image img {
  width: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

/* Second Opinion Callout */
.second-opinion-section {
  position: relative;
  z-index: 10;
  margin-top: -60px;
  margin-bottom: 40px;
}

.second-opinion-card {
  background-color: var(--bg-light-secondary);
  border-radius: 8px;
  padding: 48px;
  box-shadow: var(--shadow-lg);
  border-top: 4px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.second-opinion-info {
  flex: 1;
}

.second-opinion-info h3 {
  font-size: 1.8rem;
  font-family: var(--font-serif);
  font-weight: 400;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.second-opinion-info p {
  color: var(--text-muted-dark);
  font-size: 1rem;
}

.second-opinion-actions {
  display: flex;
  gap: 16px;
}

/* Technology Section */
.tech-section {
  padding: var(--section-padding);
  background-color: #121418;
  color: var(--text-light);
}

.tech-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 64px auto;
}

.tech-header h3 {
  font-size: 0.9rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.tech-header h2 {
  font-size: var(--h2-font-size);
  font-family: var(--font-serif);
  font-weight: 400;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.tech-card {
  background-color: #1a1e24;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
  border: 1px solid rgba(255,255,255,0.03);
}

.tech-card:hover {
  transform: translateY(-8px);
  border-color: rgba(28, 179, 214, 0.3);
  box-shadow: 0 16px 30px rgba(0,0,0,0.3);
}

.tech-card-image {
  height: 220px;
  overflow: hidden;
}

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

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

.tech-card-content {
  padding: 32px;
}

.tech-card-content h4 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.tech-card-content p {
  color: var(--text-muted-light);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Services Section */
.services-section {
  padding: var(--section-padding);
  background-color: var(--bg-light);
  position: relative;
}

.services-header {
  text-align: center;
  margin-bottom: 80px;
}

.services-header h2 {
  font-size: var(--h2-large-font-size);
  font-family: var(--font-sans);
  font-weight: 800;
}

.services-header h2 span {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--primary);
  text-transform: none;
}

.service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 96px;
}

.service-row:last-child {
  margin-bottom: 0;
}

.service-row.reverse .service-content {
  grid-column: 2;
}

.service-row.reverse .service-image {
  grid-column: 1;
  grid-row: 1;
}

.service-content h3 {
  font-size: 2rem;
  font-family: var(--font-serif);
  font-weight: 400;
  margin-bottom: 16px;
  color: var(--text-dark);
}

.service-content p {
  color: var(--text-muted-dark);
  font-size: 1.05rem;
  margin-bottom: 32px;
  max-width: 500px;
}

.service-image {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  transition: var(--transition-slow);
}

.service-row:hover .service-image img {
  transform: scale(1.03);
}

/* Our Expertise Section */
.expertise-section {
  padding: var(--section-padding);
}

.expertise-header {
  text-align: center;
  margin-bottom: 64px;
}

.expertise-header h2 {
  font-size: var(--h2-font-size);
  font-family: var(--font-sans);
  font-weight: 800;
  text-transform: lowercase;
}

.expertise-header h2 span {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--primary);
}

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

.expertise-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  box-shadow: var(--shadow-md);
}

.expertise-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.expertise-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(9,10,12,0.2) 0%, rgba(9,10,12,0.85) 100%);
  display: flex;
  align-items: flex-end;
  padding: 32px;
  transition: var(--transition-normal);
}

.expertise-overlay h4 {
  color: var(--text-light);
  font-size: 1.2rem;
  font-weight: 600;
  transition: var(--transition-normal);
}

.expertise-card:hover img {
  transform: scale(1.08);
}

.expertise-card:hover .expertise-overlay {
  background: linear-gradient(180deg, rgba(28,179,214,0.1) 0%, rgba(9,10,12,0.95) 100%);
}

.expertise-card:hover .expertise-overlay h4 {
  color: var(--primary);
  transform: translateY(-4px);
}

/* Comfort (Office Gallery) Section */
.comfort-section {
  padding: var(--section-padding);
  background-color: var(--bg-light-secondary);
}

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

.comfort-content h2 {
  font-size: var(--h2-font-size);
  font-family: var(--font-serif);
  font-weight: 400;
  margin-bottom: 24px;
}

.comfort-content p {
  color: var(--text-muted-dark);
  font-size: 1.05rem;
  margin-bottom: 36px;
  max-width: 500px;
}

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

.comfort-gallery img {
  border-radius: 6px;
  object-fit: cover;
  width: 100%;
  height: 200px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

.comfort-gallery img:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-md);
}

.comfort-gallery img.span-2 {
  grid-column: span 2;
  height: 260px;
}

/* Reviews Section */
.reviews-section {
  padding: var(--section-padding);
}

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

.reviews-slider-container {
  background-color: var(--bg-dark-card);
  border-radius: 8px;
  padding: 56px;
  position: relative;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,0.03);
}

.quote-icon {
  font-size: 3rem;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 24px;
  opacity: 0.3;
}

.reviews-slider {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.review-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.review-slide.active {
  opacity: 1;
  visibility: visible;
}

.review-text {
  font-size: 1.2rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 24px;
  font-weight: 400;
}

.review-author {
  font-weight: 700;
  color: var(--primary);
}

.review-author span {
  font-weight: 400;
  color: var(--text-muted-light);
  font-size: 0.85rem;
  margin-left: 8px;
}

.slider-controls {
  display: flex;
  gap: 12px;
  margin-top: 32px;
}

.slider-btn {
  width: 44px;
  height: 44px;
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.slider-btn:hover {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--text-light);
}

.reviews-info h2 {
  font-size: var(--h2-large-font-size);
  font-family: var(--font-sans);
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.1;
}

.reviews-info h2 span {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--primary);
}

.reviews-info p {
  color: var(--text-muted-light);
  font-size: 1.05rem;
  margin-bottom: 32px;
  max-width: 400px;
}

.reviews-rating {
  display: flex;
  align-items: center;
  gap: 16px;
}

.rating-stars {
  color: #ffb400;
  font-size: 1.4rem;
}

.rating-text {
  font-weight: 600;
  font-size: 1rem;
}

/* Schedule section (Call to Action Banner) */
.schedule-banner {
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: var(--section-padding);
  position: relative;
  text-align: center;
}

.schedule-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(9, 10, 12, 0.82);
}

.schedule-banner .container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.schedule-banner h2 {
  font-size: var(--h2-large-font-size);
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--text-light);
  margin-bottom: 16px;
}

.schedule-banner p {
  font-size: 1.1rem;
  color: var(--text-muted-light);
  margin-bottom: 40px;
  max-width: 600px;
}

.schedule-actions {
  display: flex;
  gap: 16px;
}

/* FAQ Section */
.faq-section {
  padding: var(--section-padding);
  background-color: var(--bg-light-secondary);
}

.faq-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 64px auto;
}

.faq-header h2 {
  font-size: var(--h2-font-size);
  font-family: var(--font-sans);
  font-weight: 800;
}

.faq-header h2 span {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--primary);
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto;
}

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

.faq-item {
  background-color: var(--bg-light);
  border-radius: 6px;
  border: 1px solid var(--border-light);
  overflow: hidden;
  transition: var(--transition-normal);
}

.faq-question {
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.faq-question h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  padding-right: 16px;
  transition: var(--transition-fast);
}

.faq-toggle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted-dark);
  font-size: 1.2rem;
  font-weight: 300;
  transition: var(--transition-normal);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer-content {
  padding: 0 24px 24px 24px;
  color: var(--text-muted-dark);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* FAQ Active Styles */
.faq-item.active {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
  background-color: #ffffff;
}

.faq-item.active .faq-question h4 {
  color: var(--primary);
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
  color: var(--primary);
}

/* Contact & Map Section */
.contact-section {
  padding: 0;
}

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

.contact-info-panel {
  background-color: var(--bg-dark);
  color: var(--text-light);
  padding: 120px 80px 120px 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-info-panel h2 {
  font-size: var(--h2-large-font-size);
  font-family: var(--font-serif);
  font-weight: 400;
  margin-bottom: 40px;
}

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

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

.contact-icon {
  flex-shrink: 0;
  width: 24px;
  color: var(--primary);
  font-size: 1.3rem;
  margin-top: 2px;
}

.contact-text h4 {
  font-size: 0.85rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.contact-text p {
  font-size: 1.1rem;
  color: var(--text-muted-light);
  line-height: 1.5;
}

.map-panel {
  position: relative;
  min-height: 500px;
  background-color: #1a1d24;
  overflow: hidden;
}

.map-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted-light);
  padding: 40px;
  text-align: center;
}

.map-placeholder svg {
  color: var(--primary);
  margin-bottom: 16px;
  filter: drop-shadow(0 0 10px rgba(28,179,214,0.4));
}

.map-placeholder h4 {
  font-size: 1.25rem;
  color: var(--text-light);
  margin-bottom: 8px;
}

/* Affiliations Badges */
.affiliations-section {
  padding: 60px 0;
  background-color: var(--bg-light-secondary);
  border-bottom: 1px solid var(--border-light);
}

.badges-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.badge-item {
  flex: 1;
  min-width: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.45;
  filter: grayscale(100%);
  transition: var(--transition-fast);
}

.badge-item:hover {
  opacity: 0.85;
  filter: grayscale(0%);
}

.badge-item svg {
  height: 48px;
  width: auto;
}

/* Instagram Smile Gallery Grid */
.insta-section {
  padding: 80px 0;
  background-color: var(--bg-light-secondary);
  text-align: center;
}

.insta-header {
  margin-bottom: 40px;
}

.insta-header h3 {
  font-size: 0.9rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.insta-header h2 {
  font-size: 2.2rem;
  font-family: var(--font-serif);
  font-weight: 400;
}

.insta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.insta-card {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.insta-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.insta-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(9, 10, 12, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  opacity: 0;
  transition: var(--transition-normal);
}

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

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

/* Footer Banner ("you pick a time. we handle the rest.") */
.footer-banner {
  background-color: var(--primary-light);
  padding: 80px 0;
  text-align: center;
  position: relative;
}

.footer-banner h2 {
  font-size: var(--h2-font-size);
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.footer-banner p {
  font-size: 1.1rem;
  color: var(--text-muted-dark);
  margin-bottom: 32px;
}

.footer-banner-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
}

/* Main Footer */
footer {
  background-color: var(--bg-dark);
  color: var(--text-light);
  padding: 96px 0 32px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}

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

.footer-logo {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: 2px;
  color: var(--text-light);
  text-transform: uppercase;
  margin-bottom: 24px;
}

.footer-logo span {
  color: var(--primary);
  font-weight: 300;
}

.footer-about p {
  color: var(--text-muted-light);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 320px;
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 4px;
  background-color: rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  transition: var(--transition-fast);
}

.social-btn:hover {
  background-color: var(--primary);
  color: var(--text-light);
  transform: translateY(-2px);
}

.footer-column h4 {
  font-size: 0.9rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 24px;
  font-weight: 700;
}

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

.footer-links li a {
  color: var(--text-muted-light);
  font-size: 0.95rem;
}

.footer-links li a:hover {
  color: var(--primary);
  padding-left: 4px;
}

.footer-info-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.footer-info-icon {
  color: var(--primary);
  font-size: 1rem;
  margin-top: 2px;
}

.footer-info-text h5 {
  font-size: 0.8rem;
  color: var(--text-muted-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.footer-info-text p {
  font-size: 0.95rem;
  color: var(--text-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: var(--text-muted-light);
}

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

.footer-bottom-links a {
  font-size: 0.85rem;
  color: var(--text-muted-light);
}

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

/* Modals & Popups styling */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(9, 10, 12, 0.85);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  overflow-y: auto;
  padding: 60px 16px;
  box-sizing: border-box;
}

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

.modal-container {
  background-color: var(--bg-light-secondary);
  border-radius: 8px;
  width: 100%;
  max-width: 540px;
  padding: 40px;
  box-shadow: var(--shadow-lg);
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-top: 4px solid var(--primary);
}

.modal-overlay.active .modal-container {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(9, 10, 12, 0.05);
  border: none;
  color: var(--text-muted-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: var(--transition-fast);
  z-index: 10;
}

.modal-close:hover {
  background: rgba(9, 10, 12, 0.1);
  color: var(--primary);
}

.modal-header {
  margin-bottom: 28px;
  padding-right: 36px; /* Prevent text overlap with close button */
}

.modal-header h3 {
  font-size: 1.8rem;
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.modal-header p {
  color: var(--text-muted-dark);
  font-size: 0.95rem;
}

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

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border-radius: 4px;
  border: 1px solid var(--border-light);
  background-color: var(--bg-light);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text-dark);
  transition: var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(28, 179, 214, 0.15);
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

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

/* Mobile responsive navigation overlay */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(9, 10, 12, 0.88); /* premium translucent dark */
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* align links to the top to avoid header/X button overlaps */
  align-items: center;
  padding-top: 180px; /* clear logo and centered hamburger menu */
  padding-bottom: 60px;
  overflow-y: auto; /* scrollable menu for short screens/landscape modes */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.mobile-nav-links {
  list-style: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 48px;
}

.mobile-nav-links a {
  color: var(--text-light);
  font-size: 1.5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
}

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

/* Accessibility Button */
.accessibility-btn {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: #0081a7;
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  cursor: pointer;
  z-index: 1001; /* above header scrolled */
  transition: var(--transition-fast);
}
.accessibility-btn:hover {
  background-color: #006b8c;
  transform: scale(1.05);
}

.accessibility-btn svg {
  width: 26px;
  height: 26px;
}

/* Mobile Sticky Footer */
.mobile-sticky-footer {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: calc(64px + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background-color: var(--primary); /* Theme cyan */
  z-index: 1002;
  box-shadow: 0 -4px 10px rgba(0,0,0,0.15);
  border-top: 1px solid rgba(255,255,255,0.15);
  box-sizing: border-box;
}

.footer-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--bg-dark);
  gap: 4px;
  font-weight: 600;
  font-size: 0.8rem;
  transition: var(--transition-fast);
  border-right: 1px solid rgba(9, 10, 12, 0.15);
  text-decoration: none;
}

.footer-nav-item:last-child {
  border-right: none;
}

.footer-nav-item:hover {
  background-color: rgba(9, 10, 12, 0.08);
}

.footer-nav-item svg {
  color: var(--bg-dark);
}

.footer-nav-item span {
  font-family: var(--font-sans);
  letter-spacing: 0.5px;
}

/* Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(to right, var(--primary), #4fd1c5);
  width: 0%;
  z-index: 9999;
  transition: width 0.1s ease-out;
}

/* Ken Burns Keyframes */
@keyframes kenBurns {
  from {
    transform: scale(1.08);
  }
  to {
    transform: scale(1);
  }
}

/* Stats Section Styling */
.stats-section {
  background-color: var(--bg-light-secondary);
  padding: 60px 0;
  border-bottom: 1px solid var(--border-light);
  position: relative;
  z-index: 10;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}

.stats-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stats-number {
  font-family: var(--font-sans);
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 8px;
}

.stats-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted-dark);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Scroll Reveal Animations System */
.reveal {
  opacity: 0;
  transition: opacity 1.2s cubic-bezier(0.215, 0.61, 0.355, 1);
  will-change: opacity;
}

.reveal.reveal-up {
  transform: translateY(40px);
  transition: opacity 1.2s cubic-bezier(0.215, 0.61, 0.355, 1), transform 1.2s cubic-bezier(0.215, 0.61, 0.355, 1);
  will-change: opacity, transform;
}

.reveal.reveal-left {
  transform: translateX(-40px);
  transition: opacity 1.2s cubic-bezier(0.215, 0.61, 0.355, 1), transform 1.2s cubic-bezier(0.215, 0.61, 0.355, 1);
  will-change: opacity, transform;
}

.reveal.reveal-right {
  transform: translateX(40px);
  transition: opacity 1.2s cubic-bezier(0.215, 0.61, 0.355, 1), transform 1.2s cubic-bezier(0.215, 0.61, 0.355, 1);
  will-change: opacity, transform;
}

.reveal.reveal-scale {
  transform: scale(0.96);
  transition: opacity 1.2s cubic-bezier(0.215, 0.61, 0.355, 1), transform 1.2s cubic-bezier(0.215, 0.61, 0.355, 1);
  will-change: opacity, transform;
}

.reveal.visible {
  opacity: 1;
  transform: translate(0) scale(1);
}

/* Staggered Delay Utilities */
.reveal.delay-100 { transition-delay: 100ms; }
.reveal.delay-200 { transition-delay: 200ms; }
.reveal.delay-300 { transition-delay: 300ms; }
.reveal.delay-400 { transition-delay: 400ms; }
.reveal.delay-500 { transition-delay: 500ms; }
.reveal.delay-600 { transition-delay: 600ms; }

/* Responsive Breakpoints */
@media (max-width: 1250px) and (min-width: 769px) {
  header .container {
    gap: 24px; /* Maintain safe gap between header sections */
  }
  nav ul {
    gap: 16px; /* Reduce gap between nav items */
  }
  nav ul li a {
    font-size: 0.8rem;
  }
  .nav-buttons {
    gap: 12px;
  }
  .nav-buttons a {
    font-size: 0.8rem !important;
    white-space: nowrap;
  }
  .nav-buttons .btn {
    padding: 10px 20px;
    font-size: 0.8rem;
  }
}

@media (max-width: 1024px) {
  .hero-content h1 {
    font-size: 3rem;
  }
  .hero-content h1 .italic-serif {
    font-size: 3.2rem;
  }
  .doctors-grid {
    gap: 32px;
  }
  .doctors-images {
    grid-column: span 6;
  }
  .doctors-content {
    grid-column: span 6;
  }
  .details-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .details-image {
    order: 2;
  }
  .implant-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .implant-image {
    order: 2;
  }
  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .service-row {
    gap: 48px;
  }
  .expertise-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .comfort-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .comfort-gallery {
    order: 2;
  }
  .reviews-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .reviews-info {
    order: 1;
    text-align: center;
  }
  .reviews-slider-container {
    order: 2;
  }
  .reviews-rating {
    justify-content: center;
  }
  .faq-grid {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .contact-info-panel {
    padding: 80px 48px;
  }
  .map-panel {
    min-height: 400px;
  }
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 48px;
  }
}

@media (max-width: 768px) {
  :root {
    --h2-font-size: 2.2rem;
    --h2-large-font-size: 2.4rem;
    --section-padding: 72px 0;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 20px;
  }
  .stats-number {
    font-size: 2.6rem;
  }

  /* Display utilities */
  .desktop-only {
    display: none !important;
  }
  .mobile-only {
    display: block !important;
  }
  .hero-actions.mobile-only {
    display: flex !important;
  }

  body {
    padding-bottom: calc(64px + env(safe-area-inset-bottom)); /* Space for the sticky footer navigation + safe area */
  }

  header {
    padding: 16px 0;
  }
  header .container {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 16px;
    width: 100%;
  }
  .logo {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: 3px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.1;
    color: var(--text-light);
  }
  .logo span {
    font-size: 1rem;
    letter-spacing: 3px;
    margin-top: 4px;
    font-weight: 400;
    color: var(--text-light); /* Override primary color to white */
  }
  nav {
    display: none;
  }
  .nav-buttons {
    display: none;
  }
  .hamburger {
    display: block;
    margin: 0 auto;
    padding: 8px;
  }
  .hamburger span {
    background-color: var(--primary); /* Cyan spans */
    width: 30px;
    height: 3px;
    margin: 5px auto;
  }
  
  /* Hero modifications */
  .hero {
    height: auto;
    min-height: 100vh;
    padding: 180px 24px 80px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  .hero .container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
  }
  .hero-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
  }
  .hero-title-mobile {
    font-size: 2.6rem !important;
    font-weight: 300;
    color: var(--text-light);
    line-height: 1.25;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
    text-transform: lowercase;
  }
  .hero-subtitle-mobile {
    font-size: 1.25rem !important;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 40px;
    letter-spacing: 0.5px;
    text-transform: lowercase;
  }
  .hero-actions.mobile-only {
    flex-direction: column;
    width: 100%;
    gap: 16px;
  }
  .btn-cyan {
    background-color: #55e2f9 !important; /* Screenshot light cyan */
    color: #0c0e12 !important;
    font-weight: 700;
    font-size: 1.05rem;
    padding: 16px 28px;
    border-radius: 0 !important;
    width: 100%;
    letter-spacing: 1px;
    text-transform: lowercase;
    box-shadow: none !important;
    border: none;
    cursor: pointer;
    text-align: center;
  }
  .btn-cyan:hover {
    background-color: #3bcfe6 !important;
    transform: translateY(-2px);
  }
  .btn-white-mobile {
    background-color: #ffffff !important;
    color: #0c0e12 !important;
    font-weight: 700;
    font-size: 1.05rem;
    padding: 16px 28px;
    border-radius: 0 !important;
    width: 100%;
    letter-spacing: 1px;
    text-transform: lowercase;
    border: none;
    cursor: pointer;
    text-align: center;
  }
  .btn-white-mobile:hover {
    background-color: #f0f0f0 !important;
    transform: translateY(-2px);
  }

  /* Other mobile layout overrides */
  .doctors-grid {
    grid-template-columns: 1fr;
  }
  .doctors-images {
    grid-column: span 1;
    flex-direction: column; /* Stack doctors vertically on tablet/mobile */
    gap: 24px;
  }
  .doctor-card {
    aspect-ratio: 4 / 3; /* Wider aspect ratio on mobile to prevent extreme cropping */
    max-height: 380px; /* Cap height on larger mobile viewports */
  }
  .doctors-content {
    grid-column: span 1;
    text-align: center;
  }
  .second-opinion-card {
    flex-direction: column;
    text-align: center;
    padding: 32px;
  }
  .second-opinion-actions {
    flex-direction: column;
    width: 100%;
  }
  .second-opinion-actions .btn {
    width: 100%;
  }
  .tech-grid {
    grid-template-columns: 1fr;
  }
  .service-row {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 64px;
  }
  .service-row.reverse .service-content {
    grid-column: 1;
  }
  .service-row.reverse .service-image {
    grid-column: 1;
    grid-row: 2;
  }
  .expertise-grid {
    grid-template-columns: 1fr;
  }
  .insta-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  .contact-info-panel {
    padding: 64px 24px;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .badges-row {
    justify-content: center;
    gap: 24px;
  }
  .mobile-sticky-footer {
    display: flex;
  }
  .accessibility-btn {
    bottom: calc(80px + env(safe-area-inset-bottom));
    left: 16px;
    width: 44px;
    height: 44px;
  }
  .accessibility-btn svg {
    width: 22px;
    height: 22px;
  }
}

@media (max-width: 480px) {
  :root {
    --h2-font-size: 1.8rem;
    --h2-large-font-size: 2.0rem;
    --section-padding: 48px 0;
  }

  .hero-content h1 {
    font-size: 2rem !important;
    line-height: 1.25;
  }
  .hero-content h1 .italic-serif {
    font-size: 2.2rem !important;
  }
  .doctors-images {
    flex-direction: column;
  }
  .emergency-banner h2 {
    font-size: 1.6rem;
  }
  .emergency-banner p {
    font-size: 0.95rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-banner h2 {
    font-size: 2rem;
  }
  .footer-banner-actions {
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 0 16px;
  }
  .footer-banner-actions .btn {
    width: 100%;
  }
  .modal-container {
    padding: 24px;
  }
  .modal-overlay {
    padding: 20px 12px;
  }
  .modal-close {
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    font-size: 1.2rem;
  }
  .modal-header {
    padding-right: 32px;
  }
}
