/* ==========================================================================
   INCREDICARE DENTAL & MEDICAL SERVICES - STYLESHEET
   Brand Identity: Derived from Logo (Blue, Purple, Red, Charcoal)
   Style Philosophy: Empathetic Medical Luxury & Glassmorphism
   ========================================================================== */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Outfit:wght@500;600;700&display=swap');

:root {
  /* Brand Colors (Logo Derived) */
  --logo-blue: #2563eb;
  --logo-blue-light: #3b82f6;
  --logo-purple: #7c3aed;
  --logo-purple-light: #8b5cf6;
  --logo-red: #dc2626;
  --logo-red-light: #ef4444;
  
  /* Accent Colors */
  --accent-gold: #d97706;
  --accent-gold-light: #fef3c7;
  --accent-emerald: #10b981;
  --accent-emerald-light: #d1fae5;

  /* Neutral Layout Variables */
  --bg-base: #f8fafc;
  --bg-card: rgba(255, 255, 255, 0.85);
  --border-glass: rgba(37, 99, 235, 0.08);
  
  /* Text Contrast (Stethoscope Charcoal/Black) */
  --text-dark: #0f172a;
  --text-muted: #475569;
  --text-light: #94a3b8;
  
  /* Elevation Shadows */
  --shadow-sm: 0 4px 10px rgba(37, 99, 235, 0.02);
  --shadow-md: 0 12px 30px rgba(37, 99, 235, 0.05);
  --shadow-lg: 0 24px 50px rgba(37, 99, 235, 0.08);
  
  /* Spacing Grid */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 3rem;
  --space-xl: 5rem;
  
  /* Borders */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-base);
  color: var(--text-muted);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  color: var(--text-dark);
  font-weight: 600;
  line-height: 1.25;
}

section {
  padding: var(--space-xl) 0;
}

section h2.section-title {
  font-size: 2.25rem;
  text-align: center;
  margin-bottom: var(--space-lg);
  position: relative;
  padding-bottom: var(--space-xs);
}

section h2.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--logo-blue), var(--logo-purple));
  border-radius: 2px;
}

/* ==========================================================================
   Navigation Bar (Frosted Glass with Blue Tint)
   ========================================================================== */
.header-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(248, 250, 252, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-glass);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

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

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 0.75rem;
}

.logo-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--logo-blue), var(--logo-purple));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.logo-text {
  font-family: 'Outfit', sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  background: linear-gradient(90deg, var(--logo-blue), var(--logo-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.nav-menu a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--logo-blue);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background-color: var(--logo-blue);
  color: white !important;
  font-weight: 600;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-sm);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.nav-cta:hover {
  background-color: var(--logo-blue-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.25);
}

/* Burger menu for mobile */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  width: 100%;
  height: 3px;
  background-color: var(--text-dark);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  padding-top: 140px;
  padding-bottom: var(--space-xl);
  background: radial-gradient(circle at 80% 20%, rgba(37, 99, 235, 0.05), transparent 50%),
              radial-gradient(circle at 10% 80%, rgba(124, 58, 237, 0.03), transparent 50%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-lg);
  align-items: center;
}

.hero-text h1 {
  font-size: 3.5rem;
  line-height: 1.15;
  margin-bottom: var(--space-sm);
}

.hero-text h1 span.gradient {
  background: linear-gradient(90deg, var(--logo-blue), var(--logo-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-text p.lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
  max-width: 580px;
}

.hero-btns {
  display: flex;
  gap: 1rem;
}

/* Crescent sweeping hover animation button */
.btn-crescent {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: white;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-sm);
  border: none;
  background-color: var(--logo-red);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.15);
  transition: all 0.3s ease;
}

.btn-crescent::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transition: all 0.6s ease;
}

.btn-crescent:hover::before {
  left: 100%;
}

.btn-crescent:hover {
  background-color: var(--logo-red-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(220, 38, 38, 0.25);
}

.btn-outline {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--logo-blue);
  background-color: transparent;
  border: 1px solid rgba(37, 99, 235, 0.2);
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background-color: rgba(37, 99, 235, 0.05);
  border-color: var(--logo-blue);
  transform: translateY(-2px);
}

/* Widescreen Hero Image container */
.hero-image-container {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-glass);
}

.hero-image-container img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}

/* ==========================================================================
   About Section & Mission/Vision Tabs
   ========================================================================== */
.about {
  background-color: white;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: var(--space-lg);
  align-items: flex-start;
}

.about-info h3 {
  font-size: 1.85rem;
  margin-bottom: var(--space-sm);
}

.about-info p {
  margin-bottom: var(--space-sm);
}

.tabs-container {
  background: var(--bg-base);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-glass);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.tabs-header {
  display: flex;
  background-color: rgba(226, 232, 240, 0.3);
  border-bottom: 1px solid var(--border-glass);
}

.tab-btn {
  flex: 1;
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 1.15rem;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.tab-btn.active {
  color: var(--logo-blue);
  background-color: white;
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--logo-blue);
}

.tabs-content {
  padding: 2.25rem;
  background-color: white;
}

.tab-pane {
  display: none;
  animation: fadeIn 0.4s ease;
}

.tab-pane.active {
  display: block;
}

.mission-list {
  list-style: none;
  margin-top: var(--space-sm);
}

.mission-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.mission-list li strong {
  color: var(--text-dark);
}

.mission-bullet {
  color: var(--accent-emerald);
  font-size: 1.25rem;
  line-height: 1;
  font-weight: bold;
}

/* ==========================================================================
   Services Section (Grid Cards)
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-md);
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

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

/* Dynamic department themed top border colors */
.service-card.dental-theme { border-top: 4px solid var(--logo-blue-light); }
.service-card.medical-theme { border-top: 4px solid var(--logo-blue); }
.service-card.mind-theme { border-top: 4px solid var(--logo-purple); }

.service-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: var(--space-sm);
}

.dental-theme .service-icon { background-color: rgba(59, 130, 246, 0.08); color: var(--logo-blue-light); }
.medical-theme .service-icon { background-color: rgba(37, 99, 235, 0.08); color: var(--logo-blue); }
.mind-theme .service-icon { background-color: rgba(124, 58, 237, 0.08); color: var(--logo-purple); }

.service-card h3 {
  font-size: 1.35rem;
  margin-bottom: var(--space-xs);
}

.service-card ul.subservices-list {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-glass);
  list-style: none;
  font-size: 0.9rem;
}

.service-card ul.subservices-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}

.service-card ul.subservices-list li::before {
  content: '•';
  font-size: 1.25rem;
}
.dental-theme ul.subservices-list li::before { color: var(--logo-blue-light); }
.medical-theme ul.subservices-list li::before { color: var(--logo-blue); }
.mind-theme ul.subservices-list li::before { color: var(--logo-purple); }

/* ==========================================================================
   Clinicians Directory (Filterable Cards & Modal Details)
   ========================================================================== */
.team {
  background-color: white;
}

.filters-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: var(--space-lg);
}

.filter-btn {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 1.25rem;
  border-radius: 30px;
  border: 1px solid rgba(37, 99, 235, 0.1);
  background-color: var(--bg-base);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  background-color: rgba(37, 99, 235, 0.04);
}

.filter-btn.active {
  background-color: var(--logo-blue);
  color: white;
  border-color: var(--logo-blue);
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.15);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
}

/* Themed Clinician Card */
.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  display: flex;
  flex-direction: column;
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(37, 99, 235, 0.15);
}

.team-card.dental-card { border-top: 4px solid var(--logo-blue-light); }
.team-card.medical-card { border-top: 4px solid var(--logo-blue); }
.team-card.mind-card { border-top: 4px solid var(--logo-purple); }

.card-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: var(--accent-gold-light);
  color: var(--accent-gold);
  padding: 0.25rem 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: 4px;
}

.doctor-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  margin-bottom: 1.15rem;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.1);
}
.dental-card .doctor-avatar { background: linear-gradient(135deg, var(--logo-blue-light), var(--logo-blue)); }
.medical-card .doctor-avatar { background: linear-gradient(135deg, var(--logo-blue), var(--logo-blue-light)); }
.mind-card .doctor-avatar { background: linear-gradient(135deg, var(--logo-purple), var(--logo-purple-light)); }

.doctor-specialty {
  font-size: 0.8rem;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}
.dental-card .doctor-specialty { color: var(--logo-blue-light); }
.medical-card .doctor-specialty { color: var(--logo-blue); }
.mind-card .doctor-specialty { color: var(--logo-purple); }

.doctor-name {
  font-size: 1.25rem;
  margin-bottom: 0.35rem;
}

.doctor-credentials {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-bottom: var(--space-xs);
}

.doctor-summary {
  font-size: 0.85rem;
  margin-bottom: 1rem;
  flex: 1;
}

.doctor-accolades {
  background-color: var(--accent-gold-light);
  border-radius: var(--radius-sm);
  padding: 0.65rem;
  font-size: 0.8rem;
  color: var(--accent-gold);
  margin-bottom: 1.25rem;
}

.doctor-accolades strong {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.15rem;
}

.card-btn {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid;
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: white;
  text-align: center;
}
.dental-card .card-btn { border-color: rgba(59, 130, 246, 0.2); color: var(--logo-blue-light); }
.dental-card .card-btn:hover { background-color: var(--logo-blue-light); color: white; border-color: var(--logo-blue-light); }

.medical-card .card-btn { border-color: rgba(37, 99, 235, 0.2); color: var(--logo-blue); }
.medical-card .card-btn:hover { background-color: var(--logo-blue); color: white; border-color: var(--logo-blue); }

.mind-card .card-btn { border-color: rgba(124, 58, 237, 0.2); color: var(--logo-purple); }
.mind-card .card-btn:hover { background-color: var(--logo-purple); color: white; border-color: var(--logo-purple); }

/* Clinician Detail Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-card {
  background-color: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-lg);
  max-width: 640px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: modalSlideUp 0.3s ease-out;
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background-color: var(--bg-base);
  border: 1px solid var(--border-glass);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.15rem;
  font-weight: bold;
  color: var(--text-muted);
  transition: all 0.3s ease;
}

.modal-close:hover {
  background-color: rgba(220, 38, 38, 0.08);
  color: var(--logo-red);
}

.modal-header {
  padding: 2.25rem 2.25rem 1.25rem;
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  gap: var(--space-md);
  align-items: center;
}

.modal-header .doctor-avatar {
  width: 80px;
  height: 80px;
  font-size: 1.65rem;
  margin-bottom: 0;
}

.modal-header-text h3 {
  font-size: 1.65rem;
}

.modal-body {
  padding: 2.25rem;
}

.modal-section {
  margin-bottom: var(--space-md);
}

.modal-section h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
  border-left: 3px solid var(--logo-blue);
  padding-left: 0.5rem;
}

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

.modal-section ul {
  list-style: none;
  font-size: 0.95rem;
}

.modal-section ul li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.modal-section ul li::before {
  content: '✓';
  color: var(--accent-emerald);
  font-weight: bold;
}

/* ==========================================================================
   Image Gallery / Widescreen Carousel
   ========================================================================== */
.gallery {
  background-color: var(--bg-base);
}

.carousel-container {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-glass);
}

.carousel-slides {
  display: flex;
  transition: transform 0.5s ease-in-out;
  height: 480px;
}

.carousel-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: var(--space-md);
  background: linear-gradient(transparent, rgba(15, 23, 42, 0.8));
  color: white;
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--text-dark);
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.carousel-btn:hover {
  background-color: white;
  color: var(--logo-blue);
}

.carousel-btn.prev { left: 1.25rem; }
.carousel-btn.next { right: 1.25rem; }

/* ==========================================================================
   Contact Section & Appointment Form
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-lg);
  align-items: stretch;
}

.booking-form-box {
  background-color: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-glass);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

.booking-form-box h3 {
  font-size: 1.65rem;
  margin-bottom: var(--space-xs);
}

.booking-form-box p {
  font-size: 0.92rem;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 0.35rem;
}

.form-control {
  width: 100%;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(148, 163, 184, 0.3);
  background-color: var(--bg-base);
  color: var(--text-dark);
  transition: all 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--logo-blue);
  background-color: white;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.contact-info-box {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-details {
  list-style: none;
  margin-bottom: var(--space-md);
}

.contact-details li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.contact-details-icon {
  width: 40px;
  height: 40px;
  background-color: rgba(37, 99, 235, 0.06);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--logo-blue);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-details-text h4 {
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}

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

.map-container {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-glass);
  flex-grow: 1;
  min-height: 250px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background-color: var(--text-dark);
  color: #94a3b8;
  padding: var(--space-lg) 0 2rem;
  border-top: 4px solid var(--logo-blue);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.footer-logo {
  font-family: 'Outfit', sans-serif;
  color: white;
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-xs);
}

.footer-col h4 {
  color: white;
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
}

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

.footer-col ul li {
  margin-bottom: 0.65rem;
}

.footer-col ul li a {
  text-decoration: none;
  color: #94a3b8;
  transition: color 0.3s ease;
  font-size: 0.9rem;
}

.footer-col ul li a:hover {
  color: white;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background-color: var(--logo-blue);
  color: white;
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.85rem;
}

/* ==========================================================================
   Floating Widgets (WhatsApp & AI Chatbot)
   ========================================================================== */
.floating-widgets {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 1500;
}

/* Round WhatsApp button */
.whatsapp-widget {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.whatsapp-widget svg {
  width: 28px;
  height: 28px;
  fill: white;
}

.whatsapp-widget:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
}

/* Pulse animation */
.whatsapp-widget::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
  animation: waPulse 1.8s infinite;
}

/* AI Chatbot Assist Widget */
.chatbot-widget {
  position: relative;
}

.chatbot-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--logo-blue), var(--logo-purple));
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: white;
  font-size: 1.35rem;
}

.chatbot-btn:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
}

/* Conversational Chat Box Layout */
.chatbot-window {
  position: fixed;
  bottom: 96px;
  right: 24px;
  width: 380px;
  height: 500px;
  background-color: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-lg);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 1600;
  animation: modalSlideUp 0.3s ease-out;
}

.chatbot-header {
  background: linear-gradient(135deg, var(--logo-blue), var(--logo-purple));
  color: white;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chatbot-header-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.chatbot-avatar-small {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.85rem;
}

.chatbot-header-text h4 {
  color: white;
  font-size: 0.95rem;
}

.chatbot-header-text span {
  font-size: 0.72rem;
  opacity: 0.8;
  display: block;
}

.chatbot-close {
  background: transparent;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 1.1rem;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.chatbot-close:hover {
  opacity: 1;
}

.chatbot-messages {
  flex-grow: 1;
  padding: 1.25rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background-color: var(--bg-base);
}

.chat-bubble {
  max-width: 80%;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.4;
}

.chat-bubble.bot {
  background-color: white;
  color: var(--text-dark);
  align-self: flex-start;
  border-bottom-left-radius: 2px;
  box-shadow: var(--shadow-sm);
}

.chat-bubble.user {
  background-color: var(--logo-blue);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}

.chatbot-input-area {
  padding: 0.85rem;
  background-color: white;
  border-top: 1px solid var(--border-glass);
  display: flex;
  gap: 0.5rem;
}

.chatbot-input {
  flex-grow: 1;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(148, 163, 184, 0.3);
  outline: none;
  transition: border-color 0.2s;
}

.chatbot-input:focus {
  border-color: var(--logo-blue);
}

.chatbot-send-btn {
  background-color: var(--logo-blue);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s;
}

.chatbot-send-btn:hover {
  background-color: var(--logo-blue-light);
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes waPulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
  70% { box-shadow: 0 0 0 12px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ==========================================================================
   Media Queries & Responsiveness
   ========================================================================== */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-md);
  }

  .hero-text h1 {
    font-size: 2.85rem;
  }

  .hero-text p.lead {
    margin: 0 auto var(--space-md);
  }

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

  .hero-image-container img {
    height: 320px;
  }

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

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

@media (max-width: 768px) {
  .nav-menu {
    display: none; /* In production: a toggleable mobile drawer */
  }
  
  .nav-toggle {
    display: flex;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

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

  .carousel-slides {
    height: 320px;
  }

  .chatbot-window {
    width: calc(100vw - 32px);
    right: 16px;
    left: 16px;
  }
}
