/* ===== CSS CUSTOM PROPERTIES - MEDICAL CLINIC THEME ===== */
:root {
  /* Primary Color Palette - Medical Blue */
  --primary-blue: #1E40AF;
  --primary-blue-light: #3B82F6;
  --primary-blue-dark: #1E3A8A;

  /* Secondary Color Palette - Trust Teal */
  --secondary-teal: #0891B2;
  --secondary-teal-light: #06B6D4;
  --secondary-teal-dark: #0E7490;

  /* Healthcare Accent - Medical Green */
  --accent-green: #059669;
  --accent-green-light: #10B981;
  --accent-green-dark: #047857;

  /* Background Colors */
  --background-white: #FFFFFF;
  --background-light: #F8FAFC;
  --background-gray: #F1F5F9;

  /* Text Colors */
  --text-primary: var(--primary-blue);
  --text-secondary: #475569;
  --text-muted: #64748B;
  --text-white: #FFFFFF;

  /* Border & Accent Colors */
  --border-light: #E2E8F0;
  --border-medium: #CBD5E1;
  --accent-light: #F8FAFC;
  --shadow-light: rgba(30, 64, 175, 0.1);
  --shadow-medium: rgba(30, 64, 175, 0.15);

  /* Typography - Modern Medical Fonts */
  --font-primary: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', sans-serif;
  --font-display: 'SF Pro Display', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing Scale */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Z-index Scale */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal: 1040;
  --z-popover: 1050;
  --z-tooltip: 1060;
}

/* ===== RESET & BASE STYLES ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  /* Prevent zoom on mobile */
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-primary);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--background-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Prevent mobile zoom */
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

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

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

button {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  border: none;
  background: none;
  cursor: pointer;
  /* Prevent zoom on mobile */
  touch-action: manipulation;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: 16px; /* iOS requires 16px to prevent zoom */
  line-height: inherit;
  /* Prevent zoom on mobile */
  touch-action: manipulation;
}

/* ===== UTILITY CLASSES ===== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hidden {
  display: none !important;
}

/* ===== DYNAMIC ENTRANCE ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

/* Cards slide up from bottom with bounce */
.specialty-card,
.menu-item {
  opacity: 0;
  animation: fadeInUp 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* About slides in from left */
.about-content {
  opacity: 0;
  animation: fadeInLeft 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* Contact slides in from right */
.contact-content {
  opacity: 0;
  animation: fadeInRight 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* Hero content animation */
.hero-title,
.hero-subtitle,
.hero-buttons {
  opacity: 0;
  animation: fadeInUp 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.hero-title { animation-delay: 0.3s; }
.hero-subtitle { animation-delay: 0.5s; }
.hero-buttons { animation-delay: 0.7s; }

/* Stagger the animations for dynamic effect */
.specialty-card:nth-child(1) { animation-delay: 0.2s; }
.specialty-card:nth-child(2) { animation-delay: 0.4s; }
.specialty-card:nth-child(3) { animation-delay: 0.6s; }
.specialty-card:nth-child(4) { animation-delay: 0.8s; }

.menu-item:nth-child(1) { animation-delay: 0.1s; }
.menu-item:nth-child(2) { animation-delay: 0.3s; }
.menu-item:nth-child(3) { animation-delay: 0.5s; }
.menu-item:nth-child(4) { animation-delay: 0.2s; }
.menu-item:nth-child(5) { animation-delay: 0.4s; }
.menu-item:nth-child(6) { animation-delay: 0.6s; }
.menu-item:nth-child(7) { animation-delay: 0.7s; }
.menu-item:nth-child(8) { animation-delay: 0.8s; }
.menu-item:nth-child(9) { animation-delay: 0.9s; }
.menu-item:nth-child(10) { animation-delay: 1.0s; }

.about-content { animation-delay: 0.3s; }
.contact-content { animation-delay: 0.4s; }

/* ===== TYPOGRAPHY ===== */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.5rem);
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: var(--space-sm);
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: var(--space-2xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius-lg);
  transition: all 0.2s ease;
  cursor: pointer;
  border: 2px solid transparent;
  min-height: 48px;
}

.btn-primary {
  background-color: var(--primary-blue);
  color: var(--text-white);
  border-color: var(--primary-blue);
}

.btn-primary:hover {
  background-color: var(--primary-blue-dark);
  border-color: var(--primary-blue-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 15px var(--shadow-medium);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary-blue);
  border-color: var(--primary-blue);
}

.btn-secondary:hover {
  background-color: var(--primary-blue);
  color: var(--text-white);
  transform: translateY(-1px);
  box-shadow: 0 6px 15px var(--shadow-medium);
}

/* ===== NAVIGATION ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-fixed);
  background-color: rgba(255, 255, 255, 0.0);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.0);
  transition: all var(--transition-normal);
}

.navbar.scrolled {
  background-color: var(--background-white);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 2px 20px var(--shadow-light);
  backdrop-filter: none;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem var(--space-md);
  max-width: 1200px;
  margin: 0 auto;
}

.nav-logo {
  z-index: var(--z-fixed);
}

.logo-image {
  height: 70px;
  width: auto;
  transition: all var(--transition-normal);
}

/* Ensure logo is visible on transparent navbar */
.navbar:not(.scrolled) .logo-image {
  /* No filter needed - clean appearance */
}

/* Scrolled navbar logo */
.navbar.scrolled .logo-image {
  /* No filter needed - clean appearance */
}

.logo-image:hover {
  transform: scale(1.05);
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary-blue);
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: var(--space-lg);
}

.nav-link {
  font-weight: 500;
  color: var(--text-primary);
  transition: color var(--transition-fast);
  position: relative;
}

/* Ensure nav links are visible on transparent navbar */
.navbar:not(.scrolled) .nav-link {
  color: var(--primary-blue);
}

/* Scrolled navbar nav links */
.navbar.scrolled .nav-link {
  color: var(--text-primary);
}

.nav-link:hover,
.nav-link.active {
  color: var(--secondary-teal);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary-teal);
  transition: width var(--transition-normal);
}

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

/* Mobile Navigation */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  z-index: var(--z-fixed);
}

.hamburger .bar {
  width: 25px;
  height: 3px;
  background-color: var(--text-primary);
  margin: 3px 0;
  transition: var(--transition-fast);
}

/* Ensure hamburger is visible on transparent navbar */
.navbar:not(.scrolled) .hamburger .bar {
  background-color: var(--primary-blue);
}

/* Scrolled navbar hamburger */
.navbar.scrolled .hamburger .bar {
  background-color: var(--text-primary);
}

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

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

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

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: var(--background-white);
    width: 100%;
    text-align: center;
    transition: var(--transition-normal);
    box-shadow: 0 10px 27px var(--shadow-light);
    padding: var(--space-lg) 0;
    gap: var(--space-md);
  }

  .nav-menu.active {
    left: 0;
  }
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

.hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter:
    blur(0px)
    brightness(1.1)
    contrast(0.9)
    saturate(0.8);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(231, 236, 239, 0.85) 0%,
    rgba(231, 236, 239, 0.65) 35%,
    rgba(231, 236, 239, 0.45) 70%,
    rgba(231, 236, 239, 0.25) 100%
  );
  z-index: -1;
}

.hero-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
  z-index: 1;
}

.hero-content {
  text-align: center;
  color: var(--text-white);
  max-width: 800px;
  margin: 0 auto;
  transform: translateY(-30px);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: var(--space-md);
}

.hero-subtitle {
  font-size: clamp(1.125rem, 3vw, 1.375rem);
  line-height: 1.6;
  margin-bottom: var(--space-xl);
  opacity: 0.95;
}

.hero-buttons {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 280px;
  }
}

/* ===== SPECIALTIES SECTION ===== */
.specialties {
  padding: var(--space-3xl) 0;
  background-color: var(--background-light);
}

.specialties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
}

.specialty-card {
  background-color: var(--background-white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 4px 20px var(--shadow-light);
  border: 1px solid var(--border-light);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.specialty-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px var(--shadow-medium);
}

.specialty-image {
  height: 200px;
  overflow: hidden;
}

.specialty-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.specialty-content {
  padding: var(--space-lg);
}

.specialty-content h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.specialty-content p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===== MENU/DOCTORS SECTION ===== */
.menu {
  padding: var(--space-3xl) 0;
  background-color: var(--background-white);
}

.menu-filter {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-2xl);
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  color: var(--text-secondary);
  background-color: var(--background-light);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-lg);
  transition: all 0.2s ease;
  cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
  color: var(--text-white);
  background-color: var(--secondary-teal);
  border-color: var(--secondary-teal);
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  max-width: 1200px;
  margin: 0 auto;
}

.menu-item {
  background-color: var(--background-white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 4px 20px var(--shadow-light);
  border: 2px solid var(--border-light);
  display: flex;
  flex-direction: column;
  height: 600px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.menu-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px var(--shadow-medium);
  border-color: var(--secondary-teal-light);
}

.menu-item-image {
  height: 300px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

.menu-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.3s ease;
}

.menu-item:hover .menu-item-image img {
  transform: scale(1.03);
}

.menu-item-content {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.menu-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-sm);
  gap: var(--space-sm);
}

.menu-item-header h3 {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--text-primary);
  flex-grow: 1;
}

.price {
  font-weight: 600;
  color: var(--accent-green);
  font-size: 1rem;
  white-space: nowrap;
}

.menu-item-content p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-sm);
  flex-grow: 1;
}

.doctor-booking-btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: var(--primary-blue);
  color: var(--text-white);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  text-decoration: none;
  text-align: center;
  transition: all var(--transition-normal);
  margin-top: auto;
  align-self: flex-start;
}

.doctor-booking-btn:hover {
  background-color: var(--secondary-teal);
  transform: translate3d(0, -2px, 0);
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
  color: var(--text-white);
  text-decoration: none;
}

/* Responsive grid for doctors */
@media (max-width: 1024px) {
  .menu-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .menu-grid {
    grid-template-columns: 1fr;
  }

  .menu-item-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ===== ABOUT SECTION ===== */
.about {
  padding: var(--space-3xl) 0;
  background-color: var(--background-light);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.about-text {
  max-width: none;
}

.about-text .section-title {
  text-align: left;
  margin-bottom: var(--space-md);
}

.about-intro {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  line-height: 1.5;
}

.about-text p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

.about-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.highlight {
  text-align: center;
  padding: var(--space-md);
  background-color: var(--background-white);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 15px var(--shadow-light);
}

.highlight h4 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--secondary-teal);
  margin-bottom: var(--space-xs);
}

.highlight p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin: 0;
}

.about-image {
  position: relative;
}

.about-image img {
  width: 100%;
  max-width: 300px;
  height: 450px;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 40px var(--shadow-medium);
  margin: 0 auto;
  display: block;
}

@media (max-width: 768px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

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

  .about-highlights {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
}

/* ===== NEWSLETTER SECTION ===== */
.newsletter {
  padding: var(--space-3xl) 0;
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-teal) 100%);
  color: var(--text-white);
}

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

.newsletter h2 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
}

.newsletter p {
  font-size: 1.125rem;
  margin-bottom: var(--space-xl);
  opacity: 0.9;
}

.newsletter-form .form-group {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.newsletter-form input {
  flex: 1;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  border: 2px solid transparent;
  border-radius: var(--radius-lg);
  background-color: var(--background-white);
  color: var(--text-primary);
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--accent-green);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

.newsletter-form .btn {
  white-space: nowrap;
  background-color: var(--accent-green);
  border-color: var(--accent-green);
}

.newsletter-form .btn:hover {
  background-color: var(--accent-green-dark);
  border-color: var(--accent-green-dark);
}

.privacy-note {
  font-size: 0.875rem;
  opacity: 0.8;
  margin: 0;
}

@media (max-width: 640px) {
  .newsletter-form .form-group {
    flex-direction: column;
  }
}

/* ===== CONTACT SECTION ===== */
.contact {
  padding: var(--space-3xl) 0;
  background-color: var(--background-white);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  margin-top: var(--space-2xl);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.contact-map {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 10px 30px var(--shadow-light);
  border: 2px solid var(--border-light);
  transition: all var(--transition-normal);
}

.contact-map:hover {
  box-shadow: 0 15px 40px var(--shadow-medium);
  border-color: var(--secondary-teal-light);
  transform: translate3d(0, -2px, 0);
}

.contact-map iframe {
  display: block;
  width: 100%;
}

.contact-item h3 {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.contact-item p {
  color: var(--text-secondary);
  line-height: 1.6;
}

.contact-form {
  background-color: var(--background-light);
  padding: var(--space-xl);
  border-radius: var(--radius-xl);
  box-shadow: 0 10px 30px var(--shadow-light);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  border: 2px solid var(--border-medium);
  border-radius: var(--radius-md);
  background-color: var(--background-white);
  color: var(--text-primary);
  transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--secondary-teal);
  box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.1);
}

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

.form-message {
  margin-top: var(--space-md);
  padding: var(--space-sm);
  border-radius: var(--radius-md);
  font-weight: 500;
  text-align: center;
}

.form-message.success {
  background-color: rgba(5, 150, 105, 0.1);
  color: var(--accent-green-dark);
  border: 1px solid rgba(5, 150, 105, 0.2);
}

.form-message.error {
  background-color: rgba(239, 68, 68, 0.1);
  color: #DC2626;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

@media (max-width: 768px) {
  .contact-content {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .contact-form {
    padding: var(--space-lg);
  }
}

/* ===== FOOTER ===== */
.footer {
  background-color: var(--primary-blue-dark);
  color: var(--text-white);
  padding: var(--space-3xl) 0 var(--space-lg);
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-xl);
}

.footer-brand h3 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.footer-brand p {
  opacity: 0.8;
  font-size: 1.125rem;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.footer-column h4 {
  font-weight: 600;
  margin-bottom: var(--space-md);
  color: var(--text-white);
}

.footer-column ul {
  list-style: none;
}

.footer-column li {
  margin-bottom: var(--space-xs);
}

.footer-column a {
  color: rgba(255, 255, 255, 0.8);
  transition: color var(--transition-fast);
}

.footer-column a:hover {
  color: var(--text-white);
}

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

.footer-legal {
  display: flex;
  gap: var(--space-md);
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  transition: color var(--transition-fast);
}

.footer-legal a:hover {
  color: var(--text-white);
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .footer-links {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: var(--space-sm);
  }
}

/* ===== CHAT WIDGET ===== */
.chat-widget {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: var(--z-modal);
}

.chat-toggle {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-teal) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px var(--shadow-medium);
  transition: all var(--transition-normal);
  color: var(--text-white);
}

.chat-toggle:hover {
  transform: scale3d(1.1, 1.1, 1);
  box-shadow: 0 8px 30px var(--shadow-medium);
}

.chat-container {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 350px;
  height: 450px;
  background-color: var(--background-white);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  display: none;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border-light);
}

.chat-container.active {
  display: flex;
}

.chat-header {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-teal) 100%);
  padding: var(--space-md);
  color: var(--text-white);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-title h4 {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.chat-status {
  font-size: 0.875rem;
  opacity: 0.9;
}

.chat-close {
  background: none;
  border: none;
  color: var(--text-white);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: var(--radius-sm);
  transition: background-color var(--transition-fast);
}

.chat-close:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.chat-messages {
  flex: 1;
  padding: var(--space-md);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.chat-message {
  max-width: 80%;
}

.bot-message {
  align-self: flex-start;
}

.user-message {
  align-self: flex-end;
}

.message-content {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-lg);
  font-size: 0.875rem;
  line-height: 1.4;
}

.bot-message .message-content {
  background-color: var(--background-light);
  color: var(--text-primary);
  border-bottom-left-radius: 0.375rem;
}

.user-message .message-content {
  background-color: var(--secondary-teal);
  color: var(--text-white);
  border-bottom-right-radius: 0.375rem;
}

.message-time {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  text-align: right;
}

.bot-message .message-time {
  text-align: left;
}

.chat-input-container {
  padding: var(--space-md);
  border-top: 1px solid var(--border-light);
}

.chat-form {
  display: flex;
  gap: 0.5rem;
  align-items: flex-end;
}

.chat-form input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-lg);
  font-size: 0.875rem;
  resize: none;
  background-color: var(--background-white);
}

.chat-form input:focus {
  outline: none;
  border-color: var(--secondary-teal);
}

.chat-send {
  background-color: var(--secondary-teal);
  color: var(--text-white);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.chat-send:hover {
  background-color: var(--secondary-teal-dark);
}

@media (max-width: 640px) {
  .chat-widget {
    bottom: 1rem;
    right: 1rem;
  }

  .chat-container {
    width: calc(100vw - 2rem);
    max-width: 350px;
  }
}

/* ===== SCROLL TO TOP ===== */
.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  width: 50px;
  height: 50px;
  background-color: var(--secondary-teal);
  color: var(--text-white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  z-index: var(--z-fixed);
}

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

.scroll-to-top:hover {
  background-color: var(--secondary-teal-dark);
  transform: translate3d(0, -2px, 0);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 480px) {
  :root {
    --space-xs: 0.375rem;
    --space-sm: 0.75rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 2.5rem;
    --space-3xl: 3rem;
  }

  .container {
    padding: 0 var(--space-sm);
  }

  .hero {
    min-height: 500px;
  }

  .hero-buttons .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
  }

  .specialty-card,
  .menu-item {
    margin: 0 var(--space-sm);
  }

  .contact-form,
  .newsletter-form {
    padding: var(--space-md);
  }
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */
/* Clean performance optimizations - no animation conflicts */

/* Optimize fonts for better rendering */
* {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Prevent layout shifts during loading */
img, iframe {
  content-visibility: auto;
}

/* Optimize scrolling performance */
html {
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .specialty-card,
  .menu-item,
  .about-content,
  .contact-content,
  .hero-title,
  .hero-subtitle,
  .hero-buttons {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}