:root {
  --primary: #181818; /* Black */
  --primary-foreground: #FFFFFF; /* White */
  --primary-hover: #333333; /* Darker Black */
  --secondary: #F5F5DC; /* Cream Beige */
  --secondary-foreground: #181818; /* Black */
  --secondary-hover: #E0E0C8; /* Darker Cream Beige */
  --background: #FFFFFF; /* White */
  --foreground: #181818; /* Black */
  --card: #F5F5DC; /* Cream Beige */
  --card-foreground: #181818; /* Black */
  --muted: #f0f0f0; /* Light Gray - blends with white/beige */
  --muted-foreground: #333333; /* Darker Gray for muted text */
  --accent: #181818; /* Black for accents */
  --accent-foreground: #FFFFFF; /* White for accent text */
  --border: #DCDCDC; /* Light Gray for borders */
  --input: #E5E5E5; /* Light Gray for input backgrounds */
  --ring: #181818; /* Black for focus rings */
  --radius: 0.5rem;
}

/* Base styles */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Lato:wght@300;400;700&display=swap');

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

html {
  scroll-behavior: smooth;
  font-size: 14px; /* Reduced from default 16px to make everything relatively smaller */
}

body {
  font-family: 'Lato', sans-serif;
  color: var(--foreground);
  background-color: var(--background);
  line-height: 1.7;
  min-height: 100vh;
}
/* Playfair Display */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  color: var(--foreground);
  font-weight: 700;
  line-height: 1.2;
}

.ampersand-lato {
  font-family: 'Lato', sans-serif;
  font-style: normal;
}

h1 { 
  font-size: 2.8rem; 
  margin-bottom: 1.5rem; 
  color: var(--primary);
}

h2 { 
  font-size: 2.2rem; 
  margin-bottom: 1rem; 
  color: var(--foreground);
  border-bottom: 2px solid var(--secondary);
  padding-bottom: 0.5rem;
}

h3 { 
  font-size: 1.8rem; 
  margin-bottom: 0.75rem;
}

p, li, dd {
  color: var(--foreground);
  font-size: 1.05rem;
  margin-bottom: 1rem;
  font-weight: 400;
}

a {
  color: #0066cc; /* Blue color for links - standard web convention */
  text-decoration: underline; /* Underline to indicate it's a link */
  transition: all 0.2s ease-in-out;
}

a:hover {
  color: #004080; /* Darker blue on hover for better contrast */
  text-decoration: underline;
}

a:visited {
  color: #0066cc; /* Keep visited links on-brand instead of browser-default purple */
}

a.text-link:hover {
  color: #004080;
  text-decoration: underline;
}

/* Revert button link styles to original */
.button a,
button a,
.button,
a.button,
.button:visited,
a.button:visited {
  color: var(--primary-foreground);
  text-decoration: none;
}

.button-secondary a,
.button-secondary,
.button-secondary:visited,
a.button-secondary,
a.button-secondary:visited {
  color: #181818; /* Darker color for light background buttons */
  text-decoration: none;
}

.button:hover a,
button:hover a,
.button:hover,
a.button:hover {
  color: var(--primary-foreground);
  text-decoration: none;
}

.button-secondary:hover a,
a.button-secondary:hover {
  color: #181818; /* Keep dark color on hover for light buttons */
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Top Bar */
.top-bar {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-height: 30px;
}

.top-bar-section {
  flex: 1;
  text-align: center;
  padding: 0.2rem 1rem;
  color: var(--secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background-color 0.2s ease, color 0.2s ease;
  border-right: 1px solid rgba(0, 0, 0, 0.05);
}

.top-bar-section:link,
.top-bar-section:visited {
  color: var(--secondary);
}

.top-bar-section:last-child {
    border-right: none;
}

/* .top-bar-section.section1 { background-color: #aeae94; }
.top-bar-section.section2 { background-color: #aeae94; }
.top-bar-section.section3 { background-color: #aeae94; } */
.top-bar-section.section1 { background-color: #000000; }
.top-bar-section.section2 { background-color: #000000; }
.top-bar-section.section3 { background-color: #000000; }

.top-bar-section:hover {
  background-color: #000000;
  color: #FFFFFF;
}

/* Navbar */
.navbar {
  background: 
    linear-gradient(145deg, 
      #f8f5f0 0%, 
      #f0ead8 10%, 
      #e8dcc0 25%, 
      #d4c4a0 50%, 
      #e8dcc0 75%, 
      #f0ead8 90%, 
      #f8f5f0 100%),
    linear-gradient(90deg, 
      rgba(248,245,240,0.4) 0%, 
      rgba(212,196,160,0.2) 50%, 
      rgba(248,245,240,0.4) 100%);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 
    0 4px 20px rgba(139, 117, 85, 0.25),
    0 2px 8px rgba(139, 117, 85, 0.18),
    inset 0 2px 0 rgba(255, 252, 247, 0.9),
    inset 0 -2px 0 rgba(139, 117, 85, 0.2),
    inset 2px 0 2px rgba(255, 252, 247, 0.5),
    inset -2px 0 2px rgba(139, 117, 85, 0.15);
  border-bottom: 3px solid #c9a961;
  border-top: 1px solid #c9a961;
  padding: 1rem 0;
  position: relative;
  /* Allow dropdowns to extend beyond navbar */
  overflow: visible;
}

.navbar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255, 252, 247, 0.9) 20%, 
    rgba(255, 252, 247, 1) 50%, 
    rgba(255, 252, 247, 0.9) 80%, 
    transparent 100%);
  z-index: 1;
}

/* Additional metallic texture overlay */
.navbar:hover::before {
  height: 3px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255, 252, 247, 0.95) 20%, 
    rgba(255, 252, 247, 1) 50%, 
    rgba(255, 252, 247, 0.95) 80%, 
    transparent 100%);
}

.navbar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent 0%, 
    transparent 40%,
    rgba(255, 252, 247, 0.7) 50%, 
    transparent 60%,
    transparent 100%);
  background-size: 200% 100%;
  background-repeat: no-repeat;
  animation: shine 4s linear infinite;
  z-index: 1;
  /* Ensure overlay doesn't capture events and hint at animation */
  pointer-events: none;
  will-change: background-position;
}

@keyframes shine {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.navbar .container {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  padding: 0 1.5rem;
  margin: 0 auto;
  max-width: 100%;
  position: relative;
  z-index: 2;
  white-space: nowrap;
  overflow: visible; /* Allow dropdowns to extend beyond container */
}

.navbar .logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-right: 2rem;
  padding-left: 2rem;
}

.navbar .logo a {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: bold;
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.navbar .logo .logo-image {
  height: 40px;
  width: auto;
  transition: all 0.3s ease;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.navbar .logo .logo-text {
  background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 50%, #2c2c2c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.navbar .logo .logo-text::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #c9a961 0%, #d4af37 50%, #c9a961 100%);
  -webkit-background-clip: text;
  background-clip: text;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.navbar .logo a:hover .logo-text::after {
  opacity: 1;
}

.navbar .logo a:hover .logo-image {
  transform: scale(1.05);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

/* Desktop Navigation */
.nav-links-main-desktop {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  white-space: nowrap;
  flex-wrap: nowrap;
}

/* Desktop dropdown for For Patients */
.nav-links-main-desktop .has-dropdown {
  position: relative;
  display: flex;
  align-items: center;
  /* Extend hover area downward to bridge any tiny gaps */
  padding-bottom: 8px;
  margin-bottom: -8px;
}

.nav-links-main-desktop .has-dropdown > .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-links-main-desktop .has-dropdown .dropdown-caret {
  font-size: 0.75rem;
  display: inline-block;
  transition: transform 0.2s ease;
  transform: rotate(0deg);
}

/* Rotate caret up on hover/open/focus */
.nav-links-main-desktop .has-dropdown:hover .dropdown-caret,
.nav-links-main-desktop .has-dropdown:focus-within .dropdown-caret,
.nav-links-main-desktop .has-dropdown.open .dropdown-caret {
  transform: rotate(180deg);
}

.nav-links-main-desktop .dropdown-menu {
  /* Keep in DOM for animation; hide via opacity/visibility */
  position: absolute;
  top: 100%; /* flush under trigger */
  left: 0;
  min-width: 240px;
  background: rgba(18, 18, 18, 0.9); /* translucent dark gray */
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
  padding: 0.5rem 0;
  z-index: 50;
  backdrop-filter: blur(4px);
  overflow: hidden; /* prevent underline from spilling outside */
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 200ms ease, visibility 0s linear 200ms;
}

.nav-links-main-desktop .dropdown-menu .dropdown-item {
  display: block;
  padding: 0.7rem 1rem;
  color: #ffffff; /* white text */
  font-weight: 400; /* remove bold */
  white-space: nowrap;
  transition: color 0.2s ease, background-color 0.2s ease;
  position: relative; /* for underline */
  box-sizing: border-box;
}

/* Gold underline animation for submenu items */
.nav-links-main-desktop .dropdown-menu .dropdown-item::after {
  content: '';
  position: absolute;
  left: 12px;  /* inset to avoid panel edge bleed */
  right: 12px;
  bottom: 6px;
  height: 2px;
  background: linear-gradient(90deg, #c9a961, #d4af37, #c9a961);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
  opacity: 0.9;
}

.nav-links-main-desktop .dropdown-menu .dropdown-item + .dropdown-item {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.nav-links-main-desktop .dropdown-menu .dropdown-item:hover {
  background: rgba(255, 255, 255, 0.08); /* subtle light on dark */
  color: var(--secondary); /* gold/beige text */
}

.nav-links-main-desktop .dropdown-menu .dropdown-item:hover::after {
  transform: scaleX(1);
}

.nav-links-main-desktop .has-dropdown:hover .dropdown-menu,
.nav-links-main-desktop .has-dropdown:focus-within .dropdown-menu,
.nav-links-main-desktop .has-dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  transition: opacity 180ms ease, transform 220ms ease;
}

.nav-links-main-desktop a {
  color: #2c2c2c;
  text-decoration: none;
  font-weight: 900;
  transition: all 0.3s ease;
  position: relative;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5);
}

/* Underline only on hover and active states */
.nav-links-main-desktop a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #c9a961, #d4af37, #c9a961);
  opacity: 0;
  transition: all 0.3s ease;
  box-shadow: 0 1px 2px rgba(201, 169, 97, 0.3);
}

.nav-links-main-desktop a.active,
.nav-links-main-desktop a:hover {
  color: #1a1a1a;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.7);
}

.nav-links-main-desktop a.active::after,
.nav-links-main-desktop a:hover::after {
  opacity: 1;
}

/* Desktop nav-links-main styles - hidden on mobile/tablet */
@media (min-width: 1351px) {
  .nav-links-main {
    display: none !important;
  }
  
  /* Hide close button on desktop */
  .nav-close {
    display: none !important;
  }
}

@media (max-width: 1350px) {
  .nav-links-main-desktop {
    display: none !important;
  }
}

.navbar .nav-links-main a {
  color: #2c2c2c;
  text-decoration: none;
  font-weight: 900;
  transition: all 0.3s ease;
  position: relative;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5);
}

/* Underline only on hover and active states */
.navbar .nav-links-main a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #c9a961, #d4af37, #c9a961);
  opacity: 0;
  transition: all 0.3s ease;
  box-shadow: 0 1px 2px rgba(201, 169, 97, 0.3);
}

.navbar .nav-links-main a.active,
.navbar .nav-links-main a:hover {
  color: #1a1a1a;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.7);
}

.navbar .nav-links-main a.active::after,
.navbar .nav-links-main a:hover::after {
  opacity: 1;
}

.navbar .nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    white-space: nowrap;
    flex-wrap: nowrap;
    flex-shrink: 0;
}

/* Mobile menu dropdown (hamburger overlay) */
.nav-links-main .mobile-dropdown {
  border-top: 1px solid rgba(0,0,0,0.05);
}

.nav-links-main .mobile-dropdown-toggle {
  width: auto;
  max-width: 280px;
  margin: 0.25rem auto;
  text-align: center;
  background: transparent;
  border: none;
  padding: 0.75rem 1.5rem;
  font-weight: 900;
  color: #fff; /* Match mobile menu link color */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.3s ease;
}

/* Mobile caret animation */
.nav-links-main .mobile-dropdown-toggle i.fa-chevron-down {
  display: inline-block;
  transition: transform 0.2s ease;
  transform: rotate(180deg); /* default up */
}

.nav-links-main .mobile-dropdown-toggle[aria-expanded="true"] i.fa-chevron-down {
  transform: rotate(0deg); /* faces down when expanded */
}

.nav-links-main .mobile-dropdown-toggle:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateX(10px);
}

.nav-links-main .mobile-dropdown-menu {
  /* Animate open/close */
  width: 100%;
  padding: 0 0 0.5rem 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: max-height 220ms ease, opacity 180ms ease;
}

.nav-links-main .mobile-dropdown-menu.open {
  max-height: 600px; /* large enough to show all items */
  opacity: 1;
  pointer-events: auto;
}

.nav-links-main .mobile-dropdown-menu .nav-item {
  display: block;
  padding-left: 2rem;
  padding-right: 1.25rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.navbar .nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.navbar .nav-links a {
  color: #2c2c2c;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  white-space: nowrap;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5);
}

/* Default underline for all navbar links */
.navbar .nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, #c9a961, #d4af37, #c9a961);
  opacity: 0.3;
  transition: all 0.3s ease;
}

.navbar .nav-links a.active,
.navbar .nav-links a:hover {
  color: #1a1a1a;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.7);
}

.navbar .nav-links a.active::after,
.navbar .nav-links a:hover::after {
  height: 2px;
  opacity: 1;
  box-shadow: 0 1px 2px rgba(201, 169, 97, 0.3);
}

.navbar .nav-button {
  margin-left: 1.5rem;
}

.navbar .nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--foreground);
}

/* Hide mobile-only menu items on desktop */
.navbar .mobile-phone-link,
.navbar .mobile-appointment-link {
  display: none;
}

/* Button styles */
.button, button[type="submit"] {
  display: inline-block;
  background-color: var(--primary);
  color: var(--primary-foreground);
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
}

.button:hover, button[type="submit"]:hover 
.button:hover {
    background-color: var(--primary) !important;
    box-shadow: inset 0 0 0 2px var(--primary), inset 0 0 0 4px var(--secondary), 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
    color: var(--primary-foreground)!important;
}

.button-secondary {
  background-color: var(--secondary);
  color: #181818; /* Darker color for better contrast on light background */
  border: 1px solid transparent;
}

.button-outline {
  background-color: transparent;
  color: #181818; /* Dark color for visibility on light backgrounds */
  border: 1px solid var(--primary);
}

.button-outline:hover {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

/* Ensure outline button links also have dark text */
.button-outline a,
a.button-outline,
a.button-outline:visited {
  color: #181818;
  text-decoration: none;
}

a.button-outline:hover,
a.button-outline:hover:visited {
  color: var(--primary-foreground);
}

.navbar-button {
  white-space: nowrap;
  border: 2px solid transparent!important;
  background-color: #181818!important;
  color: #FFFFFF!important;
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.navbar-button:hover {
  background-color: #FFFFFF!important;
  color: #181818!important;
}

.button.button-call {
    color: var(--primary-foreground);
    border: 2px solid var(--primary-foreground);
}

/* Hero section */
.hero-section {
  background-color: var(--card);
  border-radius: var(--radius);
  padding: 4rem 2rem;
  text-align: center;
  margin: 4rem 0 0rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  background-image: linear-gradient(to bottom right, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
  position: relative;
  overflow: hidden;
  flex-direction: column;
  padding: 2rem 1.5rem 3rem;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('https://images.unsplash.com/photo-1588776814546-1ffcf47267a5?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80');
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  z-index: -1;
}

.hero-section h1 {
  font-size: 3.2rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero-section p {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  max-width: 700px;
  margin: 0 auto 2rem;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Hero Section with Video Background */
.hero-section-with-video {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: 0;
}

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

.hero-background-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(24, 24, 24, 0.7) 0%,
    rgba(24, 24, 24, 0.5) 50%,
    rgba(24, 24, 24, 0.6) 100%
  );
  z-index: 2;
}

.hero-content-overlay {
  position: relative;
  z-index: 3;
  width: 100%;
  padding: 2rem 0;
}

.hero-content-overlay .hero-content {
  text-align: center;
  color: white;
  max-width: 2000px;
  margin: 0 auto;
  padding: 0 2rem;
}

.hero-content-overlay h1 {
  font-size: 3.5rem;
  color: white;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  font-weight: 700;
  line-height: 1.2;
}

.hero-content-overlay p {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.95);
  margin: 0 auto 2.5rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
  line-height: 1.6;
  max-width: 2000px !important;
}

.hero-content-overlay .hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-content-overlay .button {
  padding: 1rem 2rem;
  font-weight: 600;
  font-size: 1.1rem;
  border-radius: 50px;
  transition: all 0.3s ease;
  text-shadow: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-content-overlay .button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.hero-content-overlay .button-secondary {
  background-color: var(--secondary);
  color: #181818; /* Darker color for better contrast on light background */
  border: 2px solid var(--secondary);
}

.hero-content-overlay .button-secondary:hover {
  background-color: white;
  color: var(--primary);
  border-color: white;
}

.hero-content-overlay .button-outline {
  background-color: transparent;
  color: white;
  border: 2px solid white;
}

.hero-content-overlay .button-outline:hover {
  background-color: white;
  color: var(--primary);
}

.section-title {
    padding-top: 2rem;
}

/* Services section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.service-card {
  background: var(--background);
  border-radius: 15px;
  padding: 1.8rem 1.4rem;
  text-align: center;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
  display: block;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  text-decoration: none;
  color: inherit;
}

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

.service-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary), #2c2c2c);
  color: #F5F5DC;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 1.2rem;
  transition: all 0.4s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotateY(180deg);
  background: linear-gradient(135deg, var(--secondary), #d4af37);
  color: var(--primary);
}

.service-card h3 {
  color: var(--primary);
  margin-bottom: 0.8rem;
  font-size: 1.2rem;
  font-weight: 700;
}

.service-card p {
  color: var(--muted-foreground);
  line-height: 1.6;
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* Testimonial section */
.testimonial-section {
  background-color: var(--muted);
  padding: 4rem 0;
  margin: 4rem 0;
  position: relative;
}

.testimonial-slider {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
  min-height: 250px;
  padding-top: 80px;
}

.testimonial {
  background: var(--card);
  border-radius: var(--radius);
  padding: 2rem;
  margin: 1rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.5s ease;
  opacity: 0;
  position: absolute;
  width: 100%;
  transform: translateX(50px);
  pointer-events: none;
}

.testimonial.active {
  opacity: 1;
  transform: translateX(0);
  position: relative;
  pointer-events: all;
}

/* Testimonial Image Styles */
.testimonial-content {
  position: relative;
}

.testimonial-image-container {
  position: absolute;
  top: -120px;
  left: 0px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  z-index: 1;
  flex-shrink: 0;
}

.testimonial-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 1%;
}

.testimonial-text-content {
}

.testimonial-text {
  font-style: italic;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-left: 1.5rem;
  border-left: 3px solid var(--primary);
}

.testimonial-author {
  font-weight: 700;
  display: block;
  text-align: right;
  color: var(--primary);
}

.testimonial-controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.testimonial-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--muted-foreground);
  opacity: 0.3;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.testimonial-dot.active {
  opacity: 1;
  background-color: var(--primary);
}

/* Trust badges */
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin: 2rem 0;
}

.trust-badge {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 200px;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.trust-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background-color: var(--primary);
}

.trust-badge i {
  font-size: 2rem;
  color: var(--primary-foreground);
  margin-bottom: 0rem;
}

.trust-badge span {
  font-weight: 700;
  color: var(--foreground);
}

/* Experience banner */
.experience-banner {
  background-color: var(--primary);
  color: var(--primary-foreground);
  padding: 0.4rem 1rem;
  text-align: center;
  font-weight: 600;
  letter-spacing: 0.5px;
  border-radius: 0px;
  margin-bottom: 0rem;
  font-size: 0.9rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Shared content hero */
.content-hero {
  --content-hero-mark: '✦';
  --content-hero-mark-size: 24rem;
  --content-hero-mark-right: 3%;
  --content-hero-mark-top: -2rem;
  background: linear-gradient(150deg, #0e0e0e 0%, #181818 60%, #1c1710 100%);
  color: var(--primary-foreground);
  padding: 5rem 0 5.5rem;
  position: relative;
  overflow: hidden;
}

.content-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 8% 85%, rgba(201, 169, 97, 0.14) 0%, transparent 45%),
    radial-gradient(ellipse at 92% 10%, rgba(201, 169, 97, 0.07) 0%, transparent 40%);
  pointer-events: none;
}

.content-hero::after {
  content: var(--content-hero-mark);
  position: absolute;
  right: var(--content-hero-mark-right);
  top: var(--content-hero-mark-top);
  font-family: 'Playfair Display', serif;
  font-size: clamp(14rem, 22vw, var(--content-hero-mark-size));
  line-height: 1;
  color: rgba(201, 169, 97, 0.05);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.content-hero .container {
  position: relative;
  z-index: 1;
}

.content-hero-content {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.content-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.42rem 1.1rem;
  margin-bottom: 1.5rem;
  border-radius: 999px;
  background: transparent;
  color: #c9a961;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid rgba(201, 169, 97, 0.38);
}

.content-hero-mark-icon {
  color: #c9a961;
  font-size: 0.75rem;
  opacity: 0.9;
}

.content-hero h1 {
  font-size: 3.6rem;
  margin-bottom: 1.1rem;
  color: #ffffff;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.content-hero-subtitle {
  font-size: 1.12rem;
  margin: 0 auto;
  max-width: 680px;
  color: rgba(255, 255, 255, 0.58);
  line-height: 1.8;
}

.content-hero-subtitle a,
.content-hero-subtitle a:visited {
  color: #d9bc78;
  text-decoration-color: rgba(217, 188, 120, 0.65);
}

.content-hero-subtitle a:hover {
  color: #ffffff;
  text-decoration-color: #ffffff;
}

.content-hero-divider {
  width: 52px;
  height: 2px;
  background: linear-gradient(90deg, #c9a961, #d4af37 60%, transparent);
  border-radius: 2px;
  margin: 1.75rem auto 0;
}

.content-hero--contact {
  --content-hero-mark: '+';
  --content-hero-mark-size: 22rem;
}

.content-hero--faq {
  --content-hero-mark: '?';
  --content-hero-mark-size: 22rem;
}

/* Section styling */
.section {
  padding: 4rem 0;
}

.section-highlight {
  background-color: var(--muted);
  border-radius: var(--radius);
  padding: 3rem 2rem;
  margin: 3rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 2rem;
}

.section-title h2 {
  border-bottom: none;
  position: relative;
  display: inline-block;
  padding-bottom: 0.75rem;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--secondary);
}

@media (max-width: 768px) {
  .content-hero {
    padding: 3.5rem 0 4rem;
  }

  .content-hero::after {
    right: 1%;
    top: -1rem;
  }

  .content-hero h1 {
    font-size: 2.5rem;
  }

  .content-hero-subtitle {
    font-size: 1.05rem;
  }
}

@media (max-width: 480px) {
  .content-hero-eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.1em;
  }

  .content-hero::after {
    display: none;
  }
}

/* Footer */
.footer {
  background: var(--foreground);
  color: var(--background);
  padding: 4rem 0 2rem;
  position: relative;
  border-top: 3px solid var(--secondary);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-column h3 {
  color: var(--background);
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.footer-column h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--secondary);
}

.footer-column p {
  color: var(--background);
  opacity: 0.8;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--background);
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--secondary);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--background);
  opacity: 0.8;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  color: var(--background);
  opacity: 0.7;
  font-size: 0.9rem;
}

.footer a {
  color: var(--secondary);
}

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

.footer-phone-link {
  text-decoration: none;
  font-weight: 400;
  transition: font-weight 0.2s ease, color 0.2s ease;
}

.footer-phone-link:hover {
  text-decoration: none;
  font-weight: 700;
}

.footer-emergency-link {
  color: #dc2626!important;
  font-weight: 700;
}

.footer-emergency-link:hover {
  color: #ffb3b3  !important;
}

/* Forms */
form {
  margin: 2rem 0;
}

form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--foreground);
}

form input[type="text"],
form input[type="email"],
form input[type="password"],
form input[type="tel"],
form textarea,
form select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  font-family: 'Lato', sans-serif;
  background-color: var(--card);
  color: var(--foreground);
  transition: all 0.2s ease;
}

form input:focus,
form textarea:focus,
form select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(64, 184, 167, 0.2);
}

form textarea {
  min-height: 150px;
  resize: vertical;
}

/* Utilities */
.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 2.5rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 2.5rem; }

.ml-1 { margin-left: 0.5rem; }
.ml-2 { margin-left: 1rem; }
.ml-3 { margin-left: 1.5rem; }

.flex {
  display: flex;
}

.flex-column {
  flex-direction: column;
}

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

.items-center {
  align-items: center;
}

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

/* Accessibility */
.skip-to-content {
  position: absolute;
  top: -40px;
  left: 0;
  padding: 8px;
  background-color: var(--primary);
  color: var(--primary-foreground);
  z-index: 1001;
  transition: top 0.2s ease;
}

.skip-to-content:focus {
  top: 0;
}

.scroll-to-top {
  position: fixed;
  right: 25px;
  bottom: 25px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--primary);
  color: var(--primary-foreground);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 900;
}

.scroll-to-top i {
  font-size: 14px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  background-color: var(--primary-hover);
  transform: translateY(-3px);
}

.sticky-cta {
  display: none;
}

@media (max-width: 767px) {
  body.has-sticky-cta {
    padding-bottom: calc(5.2rem + env(safe-area-inset-bottom, 0px));
  }

  .sticky-cta {
    position: fixed;
    left: 50%;
    bottom: calc(0.8rem + env(safe-area-inset-bottom, 0px));
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(calc(100vw - 1.5rem), 22rem);
    gap: 0.55rem;
    padding: 0.55rem;
    background: rgba(28, 28, 28, 0.84);
    border: 1px solid rgba(245, 245, 220, 0.14);
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 950;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-50%) translateY(calc(100% + 1rem)) scale(0.96);
    transition: opacity 0.28s ease, transform 0.32s ease, visibility 0.32s ease;
  }

  .sticky-cta.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0) scale(1);
  }

  .sticky-cta a {
    min-height: 2.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.78rem 0.9rem;
    border-radius: 12px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
  }

  .sticky-call {
    background: transparent;
    color: var(--primary-foreground) !important;
    border: 1.5px solid rgba(245, 245, 220, 0.72);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  }

  .sticky-book {
    background: rgba(245, 245, 220, 0.96);
    color: var(--secondary-foreground) !important;
    border: 1.5px solid rgba(245, 245, 220, 0.96);
    box-shadow: 0 6px 14px rgba(245, 245, 220, 0.14);
  }

  .sticky-cta a:hover,
  .sticky-cta a:focus-visible {
    transform: translateY(-1px);
  }

  .sticky-call:hover,
  .sticky-call:focus-visible {
    background: rgba(255, 255, 255, 0.08);
    color: var(--primary-foreground) !important;
  }

  .sticky-book:hover,
  .sticky-book:focus-visible {
    background: var(--primary-foreground);
    color: var(--secondary-foreground) !important;
  }

  .sticky-cta-visible .scroll-to-top {
    bottom: calc(5.4rem + env(safe-area-inset-bottom, 0px));
  }

  .menu-open .sticky-cta {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transform: translateX(-50%) translateY(calc(100% + 1rem)) scale(0.96);
  }
}

/* Flash messages */
.flashes {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.flashes li {
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: var(--radius);
  font-weight: 500;
}

.flashes .success { background-color: #ecfdf5; color: #065f46; border-left: 4px solid #10b981; }
.flashes .info { background-color: #eff6ff; color: #1e40af; border-left: 4px solid #3b82f6; }
.flashes .warning { background-color: #fffbeb; color: #92400e; border-left: 4px solid #f59e0b; }
.flashes .error { background-color: #fef2f2; color: #b91c1c; border-left: 4px solid #ef4444; }

/* Responsive design */
@media (max-width: 992px) {
  h1 { font-size: 2.4rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.5rem; }
  
  .container {
    padding: 0 1rem;
  }
  
  .hero-section {
    padding: 3rem 1.5rem;
  }
  
  .hero-section h1 {
    font-size: 2.6rem;
  }

  .hero-content-overlay .hero-content {
    max-width: 95%;
    padding: 0 1.5rem;
  }

  .hero-content-overlay h1 {
    font-size: 3rem;
  }

  .hero-content-overlay p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.95);
    margin: 0 auto 2.5rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
    line-height: 1.6;
    max-width: 95%;
  }

  .navbar .logo a {
    font-size: 1.5rem;
  }

  .navbar .nav-links {
      flex-wrap: wrap;
      gap: 0.8rem;
      justify-content: flex-start;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  }

  .navbar .nav-links a,
  .nav-callout span,
  .nav-callout a {
      font-size: 0.9rem;
  }
  
  .navbar-button {
      padding: 0.5rem 1rem;
      font-size: 0.9rem;
  }
}

@media (max-width: 1350px) {
  .top-bar {
    flex-direction: column;
    max-height: none;
  }
  .top-bar-section {
    border-right: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 0.4rem 1rem;
  }
  .top-bar-section:last-child {
      border-bottom: none;
  }
  
  .navbar .container {
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
  }
  
  .nav-links-main {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    flex-direction: column;
    justify-content: flex-start; /* Keep content stable when submenus open */
    align-items: center;
    padding: 8rem 2rem 2rem;
    box-sizing: border-box;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    display: flex;
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), 
                visibility 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
                opacity 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    visibility: hidden;
    opacity: 0;
  }
  
  .nav-links-main.active {
    transform: translateY(0);
    visibility: visible;
    opacity: 1;
  }
  
  /* Mobile Menu Header */
  .mobile-menu-header {
    position: absolute;
    top: 2rem;
    left: 2rem;
    right: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10001;
  }

  .mobile-menu-logo-link {
    display: inline-block;
    transition: all 0.3s ease;
  }

  .mobile-menu-logo {
    height: 90px;
    width: auto;
    filter: brightness(1.2) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transition: all 0.3s ease;
    display: block;
  }

  .mobile-menu-logo-link:hover .mobile-menu-logo {
    transform: scale(1.05);
    filter: brightness(1.2) drop-shadow(0 3px 6px rgba(0, 0, 0, 0.4));
  }

  /* Close button for mobile menu */
  .nav-close {
    position: absolute;
    top: 0;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10002;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 1;
  }
  
  /* Only show close button when mobile menu is active */
  .nav-links-main.active .nav-close {
    display: flex;
  }
  
  .nav-close:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
  }
  
  .nav-close i {
    font-size: 1.5rem;
  }
  
  /* Full screen mobile menu styling */
  .nav-links-main a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: white;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    margin: 0.25rem auto;
    border-radius: 6px;
    transition: all 0.3s ease;
    width: auto;
    max-width: 280px;
  }
  
  .nav-links-main a:hover:not(.mobile-menu-logo-link) {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateX(10px);
    color: white;
  }

  .mobile-menu-logo-link:hover {
    background-color: transparent !important;
    transform: none !important;
  }
  
  .nav-links-main a.active {
    background-color: rgba(245, 245, 220, 0.2);
    color: #F5F5DC;
    font-weight: 600;
  }

  .nav-links-main > .nav-item:first-of-type {
    margin-top: 1.35rem;
  }
  
  .nav-links-main a.active:hover {
    background-color: rgba(245, 245, 220, 0.3);
    color: #F5F5DC;
  }
  

  
  .mobile-phone-link {
    background-color: rgba(245, 245, 220, 0.2);
    color: #F5F5DC;
    font-weight: bold;
    border: 2px solid #F5F5DC;
  }
  
  .mobile-phone-link:hover {
    background-color: #F5F5DC;
    color: #181818;
    transform: translateX(10px);
  }
  
  .mobile-appointment-link {
    background-color: #F5F5DC;
    color: #000000 !important;
    font-weight: bold;
    border: 2px solid #F5F5DC;
  }
  
  .mobile-appointment-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white !important;
    transform: translateX(10px);
  }
  
  /* Show mobile-only menu items on mobile */
  .mobile-phone-link,
  .mobile-appointment-link {
    display: block;
  }
  
  .navbar .nav-toggle {
    display: block !important;
    order: 3;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--foreground);
    padding: 0.5rem;
    z-index: 1001;
  }
  
  .navbar .nav-actions {
    display: none;
  }
  
  .navbar .logo {
    order: 1;
    padding-right: 1rem;
    padding-left: 0;
  }
  
  .navbar .logo a {
    font-size: 1.4rem;
  }
  
  .navbar .logo .logo-image {
    height: 35px;
  }
  
  .hero-section h1 {
    font-size: 2.2rem;
  }
  
  .hero-section p {
    font-size: 1.1rem;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.7rem; }
  h3 { font-size: 1.3rem; }
  
  .button, button[type="submit"] {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .trust-badges {
    gap: 1rem;
  }
  
  .trust-badge {
    min-width: 100%;
  }
  
  .hero-section {
    padding: 2rem 1rem;
  }
  
  .navbar .logo a {
    font-size: 1.2rem;
  }
  
  .navbar .logo .logo-image {
    height: 30px;
  }
  
  .navbar .nav-toggle {
    font-size: 1.3rem;
  }

  .testimonial-content {
  }

  .testimonial-image-container {
    top: -100px;
    left: 0px;
    width: 100px;
    height: 100px;
  }
  
  .testimonial-text-content {
  }
  
  /* What Can We Do For You - Mobile */
  .what-can-we-do-section {
    padding: 3rem 0;
  }
  
  .patient-needs-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 1.5rem 0;
  }
  
  .patient-need-card {
    padding: 1.5rem 1rem;
    min-height: 160px;
  }
  
  .need-icon {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }
  
  .patient-need-card h3 {
    font-size: 1.1rem;
  }
  
  .patient-need-card p {
    font-size: 0.9rem;
  }
  
  .need-arrow {
    bottom: 0.75rem;
    right: 1rem;
    font-size: 1rem;
  }
  
  .what-can-we-do-section .mx-3 {
    display: block;
    margin: 0.5rem 0;
  }
  
  /* What Can We Do For You - Mobile Responsive */
  .what-can-we-do-intro-container {
    flex-direction: column;
    gap: 2rem;
    min-height: auto;
  }
  
  .patient-need-card-compact {
    padding: 0.8rem 1rem;
  }
  
  .need-icon-compact {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
  
  .need-text-compact h3 {
    font-size: 0.9rem;
  }
  
  .need-text-compact p {
    font-size: 0.8rem;
  }
  
  /* Horizontal features mobile adjustments */
  .features-grid-horizontal {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .feature-card-horizontal {
    height: 140px;
  }
  
  .feature-card-front-horizontal,
  .feature-card-back-horizontal {
    padding: 0.8rem;
    gap: 0.5rem;
  }
  
  .feature-icon-horizontal {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .feature-text-horizontal h3,
  .feature-card-back-horizontal h3 {
    font-size: 0.85rem;
  }
  
  .feature-card-back-horizontal p {
    font-size: 0.75rem;
  }
  
  /* Single column mobile adjustments */
  .why-choose-single-column {
    gap: 2rem;
  }
  
  /* Horizontal features mobile adjustments */
  .features-grid-horizontal {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .feature-card-horizontal {
    height: 140px;
  }
  
  .feature-card-front-horizontal,
  .feature-card-back-horizontal {
    padding: 0.8rem;
    gap: 0.5rem;
  }
  
  .feature-text-horizontal h3,
  .feature-card-back-horizontal h3 {
    font-size: 0.85rem;
  }
  
  .feature-card-back-horizontal p {
    font-size: 0.75rem;
  }
  
  .feature-icon-horizontal {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}

/* Print styles */
@media print {
  .navbar, .footer, .scroll-to-top, .button, .skip-to-content {
    display: none;
  }
  
  body, .container {
    background: white;
    color: black;
    padding: 0;
    margin: 0;
    box-shadow: none;
  }
  
  a {
    color: black;
    text-decoration: none;
  }
  
  h1, h2, h3 {
    color: black;
  }
  
  img {
    max-width: 100%;
  }
  
  p, h2, h3 {
    orphans: 3;
    widows: 3;
  }
}

/* Doctor cards for About page */
.doctor-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin: 2rem 0;
}

.doctor-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border);
  position: relative;
}

.doctor-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background-color: var(--primary);
}

.doctor-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.doctor-image {
  width: 100%;
  height: 300px;
  overflow: hidden;
}

.doctor-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.5s ease;
  border-radius: 0;
}

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

.doctor-content {
  padding: 1.5rem;
  flex: 1;
}

.doctor-content h3 {
  color: var(--primary);
  margin-bottom: 0.25rem;
  font-size: 1.5rem;
}

.doctor-specialty {
  color: var(--secondary);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  display: block;
}

.doctor-bio {
  color: var(--muted-foreground);
}

.doctor-bio p {
  margin-bottom: 0.75rem;
  font-size: 1rem;
  line-height: 1.6;
}

/* Features grid for Why Choose Us section */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.feature-item {
  display: flex;
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border: 1px solid var(--border);
  gap: 1rem;
  align-items: flex-start;
}

.feature-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  background-color: rgba(64, 184, 167, 0.1);
  width: 50px;
  height: 50px;
  min-width: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.5rem;
}

.feature-text {
  flex: 1;
}

.feature-text h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

.feature-text p {
  color: var(--muted-foreground);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* Responsive adjustments */
@media (min-width: 768px) {
  .doctor-card {
    flex-direction: row;
  }

  .doctor-image {
    width: 300px;
    height: auto;
    min-height: 100%;
  }
}

@media (max-width: 768px) {
  .doctor-image {
    height: 250px;
  }
  
  .feature-item {
    flex-direction: column;
    text-align: center;
  }
  
  .feature-icon {
    margin: 0 auto 1rem;
  }
}

/* Banner styles */
.banner-container {
  width: 100vw; /* Full viewport width */
  overflow: hidden; /* Hide any overflow if image is too tall */
  position: relative; /* Needed for child absolute positioning if any */
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.full-width-banner {
  width: 100%;
  height: 80vh; /* 40% of viewport height - adjust this value to your preference */
  object-fit: cover; /* Cover the container, cropping if necessary */
  display: block; /* Remove extra space below image */
}

/* Team Introduction Section Layout */
.team-intro-section {
  padding: 4.5rem 0;
}

.team-intro-container {
  display: flex;
  align-items: center; /* Vertically align items if they have different heights */
  justify-content: space-between; /* Distribute space evenly */
  gap: 2rem; /* Space between text and image */
  min-height: 520px;
  margin-bottom: 0;
}

.team-text-content {
  flex: 1; /* Allows the text content to take up available space */
  text-align: center; /* Align text to the center by default for this section */
}

.team-text-content .section-title {
  text-align: center; /* Center section title for this instance */
}

/* Ensure the h2::after pseudo-element is also centered */
.team-text-content .section-title h2::after {
  left: 50%; /* Align the underline to the center of the title */
  transform: translateX(-50%); /* Center the underline */
}


.team-text-content p {
  text-align: center; /* Align paragraph to the center for this section */
}

.team-image-content {
  flex: 1.45; /* Give the team video more width than the text column */
  display: flex;
  justify-content: center; /* Center image if it's smaller than flex item */
  align-items: center;
  width: 100%;
  max-width: 760px;
  margin-left: 3rem;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.team-group-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: scale(1.08) translateX(4%);
  transform-origin: center center;
  border-radius: 0;
  box-shadow: none;
}

/* Responsive adjustments for team intro */
@media (max-width: 768px) {
  .team-intro-section {
    padding: 4rem 0;
  }

  .team-intro-container {
    flex-direction: column;
    min-height: auto;
  }

  .team-image-content {
    margin-left: 0;
  }

  .team-text-content .section-title,
  .team-text-content p {
    text-align: center; /* Explicitly center on small screens (already default but good for clarity) */
  }

  .team-text-content .section-title h2::after {
    left: 50%; 
    transform: translateX(-50%);
  }
}

.nav-callout {
    display: flex;
    flex-direction: column;
    text-align: center;
    line-height: 1.2;
    margin-left: 1.5rem;
    justify-content: center;
}

.nav-callout span {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--foreground);
}

.nav-callout a {
    font-weight: bold;
}

.nav-callout a:hover,
.nav-callout a:active,
.nav-callout a:focus {
    color: var(--primary);
    text-decoration: none;
}

.nav-callout a::after {
    display: none !important;
}

/* Google Reviews Styling */
.testimonial-rating {
    margin-bottom: 1rem;
    text-align: left;
}

.testimonial-rating .star {
    color: #ffc107;
    font-size: 1.2rem;
    margin-right: 2px;
}

.testimonial-name-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    border-bottom: 1px solid transparent;
}

.testimonial-name-link:hover {
    color: #4285f4;
    text-decoration: none;
    border-bottom: 1px solid #4285f4;
}

/* What Can We Do For You Section */
.what-can-we-do-section {
    background: var(--background);
    padding: 4rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.patient-needs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.patient-need-card {
    background: var(--card);
    border-radius: 15px;
    padding: 2rem 1.5rem;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 180px;
    justify-content: center;
}

.patient-need-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.patient-need-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    color: inherit;
    border-color: var(--secondary);
}

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

.need-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), #2c2c2c);
    color: #F5F5DC;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    transition: all 0.4s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.patient-need-card:hover .need-icon {
    transform: scale(1.1);
    background: linear-gradient(135deg, var(--secondary), #d4af37);
    color: var(--primary);
}

.patient-need-card h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.3;
}

.patient-need-card p {
    color: var(--muted-foreground);
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.4;
}

.need-arrow {
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    color: var(--primary);
    font-size: 1.2rem;
    position: absolute;
    bottom: 1rem;
    right: 1.5rem;
}

.patient-need-card:hover .need-arrow {
    opacity: 1;
    transform: translateX(0);
}

.what-can-we-do-section .mx-3 {
    margin: 0 1rem;
    color: var(--muted-foreground);
    font-weight: 500;
}

/* What Can We Do For You Introduction Section Layout */
.what-can-we-do-intro-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    margin-bottom: 2rem;
    min-height: 500px;
}

.what-can-we-do-video-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.what-can-we-do-video-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
}

.what-can-we-do-video {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: block;
}

.what-can-we-do-text-content {
    flex: 1;
}

/* Compact Patient Needs Grid */
.patient-needs-grid-compact {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.patient-need-card-compact {
    background: var(--background);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.patient-need-card-compact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.3s ease;
}

.patient-need-card-compact:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    color: inherit;
}

.patient-need-card-compact:hover::before {
    transform: scaleY(1);
}

.need-icon-compact {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary), #2c2c2c);
    color: #F5F5DC;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.patient-need-card-compact:hover .need-icon-compact {
    transform: scale(1.1);
    background: linear-gradient(135deg, var(--secondary), #d4af37);
    color: var(--primary);
}

.need-text-compact {
    flex: 1;
    text-align: left;
}

.need-text-compact h3 {
    color: var(--primary);
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
}

.need-text-compact p {
    color: var(--muted-foreground);
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.4;
    text-align: left;
}

.need-arrow-compact {
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    color: var(--primary);
    font-size: 1rem;
    flex-shrink: 0;
}

.patient-need-card-compact:hover .need-arrow-compact {
    opacity: 1;
    transform: translateX(0);
}

/* Patient Needs Grid (2x3) */
.patient-needs-grid-square {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
    max-width: 100%;
}

.patient-need-card-square {
    background: var(--background);
    border-radius: 15px;
    padding: 2rem 1.5rem;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;
    min-height: 150px;
}

.patient-need-card-square::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.patient-need-card-square:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    color: inherit;
}

.patient-need-card-square:hover::before {
    transform: scaleX(1);
}

.need-icon-square {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), #2c2c2c);
    color: #F5F5DC;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-bottom: 1.2rem;
}

.patient-need-card-square:hover .need-icon-square {
    transform: scale(1.1);
    background: linear-gradient(135deg, var(--secondary), #d4af37);
    color: var(--primary);
}

.need-text-square {
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.need-text-square h3 {
    color: var(--primary);
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.2;
}

.need-text-square p {
    color: var(--muted-foreground);
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.4;
    text-align: center;
}

/* Enhanced Why Choose Us Section */
.why-choose-section {
    background: linear-gradient(135deg, var(--muted) 0%, #f8f9fa 100%);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.why-choose-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('https://images.unsplash.com/photo-1629909613654-28e377c37b09?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80');
    background-size: cover;
    background-position: center;
    opacity: 0.03;
    z-index: 0;
}

.why-choose-section .container {
    position: relative;
    z-index: 1;
}

/* Services Overview Section with Similar Background */
.services-overview-section {
    background: linear-gradient(135deg, var(--muted) 0%, #f8f9fa 100%);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.services-overview-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('https://images.unsplash.com/photo-1629909613654-28e377c37b09?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80');
    background-size: cover;
    background-position: center;
    opacity: 0.03;
    z-index: 0;
}

.services-overview-section .container {
    position: relative;
    z-index: 1;
}

/* Services intro container layout */
.services-intro-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    margin-bottom: 2rem;
    min-height: 500px;
}

.services-intro-reverse {
    flex-direction: row-reverse;
}

.services-video-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.services-text-content {
    flex: 1;
}

/* Responsive adjustments for services intro */
@media (max-width: 768px) {
    .services-intro-container {
        flex-direction: column;
        gap: 2rem;
        min-height: auto;
    }
    
    .services-intro-reverse {
        flex-direction: column;
    }
}

/* Single Column Why Choose Layout */
.why-choose-single-column {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.why-choose-top-content {
    width: 100%;
    text-align: center;
}

.why-choose-top-content .section-title {
    text-align: center;
}

.why-choose-top-content .section-title h2::after {
    left: 50%;
    transform: translateX(-50%);
}

.why-choose-top-content p {
    text-align: center;
}

/* Horizontal Features Grid */
.why-choose-features-horizontal {
    width: 100%;
}

.features-grid-horizontal {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    max-width: 100%;
}

/* Responsive breakpoints for horizontal features grid */
@media (max-width: 1200px) {
    .features-grid-horizontal {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.2rem;
    }
}

@media (max-width: 992px) {
    .features-grid-horizontal {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 992px) {
    /* Grid responsive adjustments - maintain 2x3 layout for tablets */
    .patient-needs-grid-square {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 1fr);
        gap: 1.2rem;
        margin: 1.5rem 0;
    }
    
    .patient-need-card-square {
        padding: 1.5rem 1.2rem;
        min-height: 130px;
    }
    
    .need-icon-square {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .need-text-square h3 {
        font-size: 1rem;
    }
    
    .need-text-square p {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .features-grid-horizontal {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 576px) {
    /* Grid responsive adjustments - single column for mobile */
    .patient-needs-grid-square {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(6, auto);
        gap: 1rem;
        margin: 1.5rem 0;
    }
    
    .patient-need-card-square {
        padding: 1.8rem 1.2rem;
        min-height: 140px;
    }
    
    .need-icon-square {
        width: 55px;
        height: 55px;
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }
    
    .need-text-square h3 {
        font-size: 1.1rem;
    }
    
    .need-text-square p {
        font-size: 0.95rem;
    }
}

.feature-card-horizontal {
    perspective: 1000px;
    height: 180px;
    cursor: pointer;
    border-radius: 12px;
    position: relative;
}

.feature-card-inner-horizontal {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}

.feature-card-horizontal:hover .feature-card-inner-horizontal {
    transform: rotateY(180deg);
}

.feature-card-front-horizontal,
.feature-card-back-horizontal {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.75rem;
}

.feature-card-front-horizontal {
    background: var(--background);
    color: var(--foreground);
}

.feature-card-back-horizontal {
    background: linear-gradient(135deg, var(--primary) 0%, #2c2c2c 100%);
    color: var(--primary-foreground);
    transform: rotateY(180deg);
    padding: 1.2rem 1rem;
    justify-content: center;
    text-align: center;
}

.feature-icon-horizontal {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), #2c2c2c);
    color: #F5F5DC;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin: 0;
}

.feature-text-horizontal {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.feature-text-horizontal h3 {
    color: var(--primary);
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

.feature-card-back-horizontal h3 {
    color: #F5F5DC !important;
    margin-bottom: 0.75rem;
    font-size: 1rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.feature-card-back-horizontal p {
    color: rgba(255, 255, 255, 0.95) !important;
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.4;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Primary Feature Horizontal */
.primary-feature-horizontal .feature-card-front-horizontal {
    background: linear-gradient(135deg, var(--primary) 0%, #2c2c2c 100%);
    color: var(--primary-foreground);
}

.primary-feature-horizontal .feature-icon-horizontal {
    background: #F5F5DC !important;
    color: #181818 !important;
}

.primary-feature-horizontal .feature-text-horizontal h3 {
    color: #F5F5DC !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-section {
  flex-direction: column;
  padding: 2rem 1.5rem 3rem;
}

.hero-content {
  width: 100%;
  order: 2;
  padding: 0;
  margin-top: 1rem;
}

.hero-image {
  position: relative;
  width: 50%;
  height: 180px;
}

.hero-image-left {
  order: 1;
  left: auto;
}

.hero-image-right {
  order: 3;
  right: auto;
  margin-top: 1rem;
}

/* Video Hero Mobile Styles */
.hero-section-with-video {
  min-height: 70vh;
}

.hero-content-overlay h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero-content-overlay p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.95);
  margin: 0 auto 2rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
  line-height: 1.6;
  max-width: 90%;
}

.hero-content-overlay .hero-buttons {
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.hero-content-overlay .button {
  min-width: 250px;
  padding: 0.9rem 1.5rem;
  font-size: 1rem;
}

.menu-open .floating-navbar {
  display: none !important;
}

/* Before/After Slider for Custom Dentures */
.before-after-slider {
  position: relative;
  width: 100%;
  max-width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  background: #f5f5f5;
}

.before-after-container {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  cursor: col-resize;
}

.before-after-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
  transition: none;
}

.before-image {
  z-index: 1;
}

.after-image {
  z-index: 2;
  clip-path: inset(0 50% 0 0);
}

.slider-handle {
  position: absolute;
  top: 0;
  left: 50%;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.8) 0%, rgba(245, 245, 220, 0.8) 100%);
  cursor: col-resize;
  z-index: 3;
  transform: translateX(-50%);
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.3);
}

.slider-handle::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, rgba(245, 245, 220, 0.95) 0%, rgba(212, 175, 55, 0.85) 100%);
  border: 2px solid rgba(245, 245, 220, 0.9);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 2px 12px rgba(212, 175, 55, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-handle::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  transform: translate(-50%, -50%);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23181818' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 6 2 12l6 6'/%3E%3Cpath d='M16 6l6 6-6 6'/%3E%3Cpath d='M3 12h18'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px 18px;
  opacity: 0.72;
  pointer-events: none;
}

.before-after-labels {
  position: absolute;
  top: 20px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 4;
  pointer-events: none;
}

.before-label,
.after-label {
  background: rgba(24, 24, 24, 0.8);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.before-after-description {
  padding: 1.5rem;
  text-align: center;
  background: white;
}

.before-after-description h4 {
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.before-after-description p {
  color: var(--muted-foreground);
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Responsive adjustments for before/after slider */
@media (max-width: 768px) {
  .before-after-container {
    height: 300px;
  }
  
  .before-after-labels {
    padding: 0 15px;
  }
  
  .before-label,
  .after-label {
    padding: 6px 12px;
    font-size: 12px;
  }
  
  .slider-handle::before {
    width: 30px;
    height: 30px;
  }
  
  .slider-handle::after {
    width: 30px;
    height: 30px;
    background-size: 14px 14px;
  }
}
