/**
 * MH MEDICAL CENTRE - UI COMPONENTS CSS
 */

/* ==========================================================================
   1. SITE HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.05);
  z-index: var(--z-header);
  transition: box-shadow var(--transition-fast);
}

.site-header.is-scrolled {
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
  gap: 1rem;
}

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

.brand-logo-wrap {
  width: 46px;
  height: 46px;
  background-color: #ffffff;
  border: 1.5px solid rgba(15, 118, 110, 0.2);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
  flex-shrink: 0;
  overflow: hidden;
}

.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.brand-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
  box-shadow: var(--shadow-xs);
}

.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.01em;
  line-height: 1.2;
  white-space: nowrap;
}

.brand-location {
  font-size: 0.72rem;
  color: var(--text-light);
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
}

/* Nav Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0.35rem 0.25rem;
  position: relative;
  text-decoration: none;
  white-space: nowrap;
  display: inline-block;
}

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

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

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.header-actions .btn {
  padding: 0.35rem 0.65rem;
  font-size: 0.775rem;
  font-weight: 600;
  white-space: nowrap;
  border-radius: var(--radius-sm);
}

.header-actions .btn-primary {
  padding: 0.35rem 0.7rem;
  font-size: 0.775rem;
}

/* Language Toggle Switch */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  background-color: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 2px;
}

.lang-btn {
  background: transparent;
  border: none;
  font-size: var(--font-size-xs);
  font-weight: 700;
  color: var(--text-muted);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lang-btn.active {
  background-color: #ffffff;
  color: var(--primary);
  box-shadow: var(--shadow-xs);
}

/* Mobile Nav Toggle Button */
.nav-toggle-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.5rem;
  cursor: pointer;
  color: var(--text-main);
}

/* ==========================================================================
   2. HERO SECTION
   ========================================================================== */
.hero-section {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
  background: linear-gradient(180deg, var(--bg-surface) 0%, #ffffff 100%);
  border-bottom: 1px solid var(--border-subtle);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-title {
  margin-bottom: 1.25rem;
  font-size: clamp(2.1rem, 4.2vw, 3.1rem);
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.hero-description {
  font-size: var(--font-size-lg);
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  line-height: 1.6;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.75rem;
}

.hero-quick-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
  width: 100%;
}

.hero-quick-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--text-muted);
}

.hero-quick-link:hover {
  color: var(--primary);
}

.hero-media-wrap {
  position: relative;
}

.hero-image-card {
  background-color: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-base);
}

.hero-image-card:hover {
  transform: translateY(-2px);
}

.hero-image-badge {
  position: absolute;
  bottom: -15px;
  left: 20px;
  background-color: #ffffff;
  border: 1px solid var(--border-subtle);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.badge-pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--accent-green);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.2);
}

.hero-image-badge-text strong {
  display: block;
  font-size: var(--font-size-sm);
  color: var(--text-main);
}

.hero-image-badge-text span {
  font-size: var(--font-size-xs);
  color: var(--text-light);
}

/* ==========================================================================
   3. TRUST STRIP
   ========================================================================== */
.trust-strip {
  background-color: #ffffff;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
}

.trust-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trust-text h4 {
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

.trust-text p {
  font-size: var(--font-size-xs);
  color: var(--text-light);
  margin: 0;
}

/* ==========================================================================
   4. ABOUT SECTION
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}

.about-features {
  list-style: none;
  margin: 1.5rem 0 2rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.about-feature-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--text-main);
}

.about-feature-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: var(--accent-green-light);
  color: var(--accent-green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.about-media-card {
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background-color: #ffffff;
}

/* ==========================================================================
   5. DOCTOR PROFILE SECTION
   ========================================================================== */
.doctor-card {
  background-color: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 340px 1fr;
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
}

.doctor-photo-wrap {
  background-color: var(--bg-surface);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.doctor-photo-wrap img {
  width: 100%;
  max-width: 260px;
  height: 280px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

.doctor-photo-placeholder {
  width: 100%;
  height: 100%;
  min-height: 280px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--secondary-light) 0%, var(--bg-surface-subtle) 100%);
  border: 2px dashed var(--secondary-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
  color: var(--secondary-hover);
}

.doctor-info-content {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.doctor-name-title {
  font-size: var(--font-size-2xl);
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.doctor-credentials-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.25rem;
}

.doctor-bio {
  font-size: var(--font-size-base);
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.doctor-verification-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  background-color: var(--secondary-light);
  border: 1px solid var(--secondary-border);
  font-size: var(--font-size-xs);
  color: var(--secondary-hover);
  margin-bottom: 1.75rem;
}

/* ==========================================================================
   6. SERVICES GRID
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background-color: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-border);
}

.service-icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.service-card h3 {
  font-size: var(--font-size-lg);
  margin-bottom: 0.75rem;
}

.service-card p {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

/* ==========================================================================
   7. HOW IT WORKS (3 STEPS)
   ========================================================================== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  position: relative;
}

.step-card {
  background-color: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.75rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--primary);
  color: #ffffff;
  font-size: var(--font-size-lg);
  font-weight: 800;
  margin-bottom: 1.25rem;
}

.step-card h3 {
  font-size: var(--font-size-lg);
  margin-bottom: 0.65rem;
}

.step-card p {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
}

/* ==========================================================================
   8. GALLERY & VIDEO SECTION
   ========================================================================== */
.gallery-controls {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.gallery-tab {
  background-color: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 0.5rem 1.25rem;
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.gallery-tab:hover,
.gallery-tab.active {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  background-color: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.gallery-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.gallery-img-wrap {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: var(--bg-surface-subtle);
}

.gallery-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-base);
}

.gallery-item:hover .gallery-img-wrap img {
  transform: scale(1.03);
}

.gallery-info {
  padding: 1.25rem;
}

.gallery-info h4 {
  font-size: var(--font-size-base);
  margin-bottom: 0.25rem;
}

.gallery-info p {
  font-size: var(--font-size-xs);
  color: var(--text-light);
}

/* Video Showcase Section */
.video-section-wrap {
  max-width: 1100px;
  margin: 3.5rem auto 0;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.video-card {
  background-color: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

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

.video-media-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background-color: #0f172a;
  overflow: hidden;
}

.video-media-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.video-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  background-color: var(--primary-light);
  border: 1px solid var(--primary-border);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.65rem;
  align-self: flex-start;
}

.video-card-body h4 {
  font-size: 1.1rem;
  margin-bottom: 0.45rem;
}

.video-card-body p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.video-card-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   9. APPOINTMENT FORM SECTION
   ========================================================================== */
.appointment-form-card {
  background-color: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 1.75rem 2rem;
  max-width: 580px;
  margin: 0 auto;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}

.form-group-full {
  grid-column: 1 / -1;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.form-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-main);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  font-family: inherit;
  font-size: 0.875rem;
  color: var(--text-main);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12);
  background-color: #ffffff;
}

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

.form-privacy-notice {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.75rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  line-height: 1.4;
}

.form-privacy-notice svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.form-feedback {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  display: none;
}

.form-feedback.success {
  background-color: var(--accent-green-light);
  color: var(--accent-green-hover);
  border: 1px solid #bbf7d0;
}

.form-feedback.error {
  background-color: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

/* ==========================================================================
   10. LOCATION & DIRECTIONS SECTION
   ========================================================================== */
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 2.5rem;
  align-items: flex-start;
}

.location-info-card {
  background-color: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.location-detail-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.location-detail-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.location-detail-content h4 {
  font-size: var(--font-size-base);
  margin-bottom: 0.25rem;
}

.location-detail-content p {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  margin: 0;
}

.map-facade-card {
  background-color: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 100%;
  min-height: 380px;
  display: flex;
  flex-direction: column;
}

.map-preview-wrap {
  flex-grow: 1;
  background: linear-gradient(135deg, var(--secondary-light) 0%, var(--bg-surface-subtle) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
  border-bottom: 1px solid var(--border-subtle);
}

.map-preview-icon {
  color: var(--secondary);
  margin-bottom: 1rem;
}

.map-preview-wrap h4 {
  font-size: var(--font-size-lg);
  margin-bottom: 0.5rem;
}

.map-preview-wrap p {
  font-size: var(--font-size-sm);
  max-width: 340px;
  margin-bottom: 1.25rem;
}

.map-actions {
  padding: 1.25rem;
  background-color: #ffffff;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
}

/* ==========================================================================
   11. LOCAL SEO CONTEXT STRIP
   ========================================================================== */
.local-seo-box {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-top: 3rem;
}

.local-seo-box h3 {
  font-size: var(--font-size-lg);
  margin-bottom: 0.75rem;
}

.local-seo-box p {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
}

/* ==========================================================================
   12. FAQ ACCORDION
   ========================================================================== */
.faq-wrap {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background-color: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1.25rem 1.5rem;
  font-family: inherit;
  font-size: var(--font-size-base);
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: color var(--transition-fast);
}

.faq-question:hover {
  color: var(--primary);
}

.faq-chevron {
  transition: transform var(--transition-fast);
  flex-shrink: 0;
  color: var(--text-light);
}

.faq-question[aria-expanded="true"] .faq-chevron {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-answer {
  padding: 0 1.5rem 1.25rem;
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  border-top: 1px solid var(--border-subtle);
  padding-top: 1rem;
}

/* ==========================================================================
   13. CALL TO ACTION BANNER
   ========================================================================== */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, #064e3b 100%);
  color: #ffffff;
  border-radius: var(--radius-xl);
  padding: 3.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.cta-banner h2 {
  color: #ffffff;
  margin-bottom: 0.85rem;
}

.cta-banner p {
  color: #ccfbf1;
  font-size: var(--font-size-lg);
  max-width: 600px;
  margin: 0 auto 2rem;
}

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

/* ==========================================================================
   14. SITE FOOTER
   ========================================================================== */
.site-footer {
  background-color: var(--text-main);
  color: #94a3b8;
  padding-top: 4.5rem;
  padding-bottom: 2rem;
  margin-top: auto;
  border-top: 1px solid #1e293b;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.footer-brand-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  background-color: #ffffff;
  padding: 2px;
}

.footer-brand h3 {
  color: #ffffff;
  font-size: 1.25rem;
  margin: 0;
}

.footer-brand p {
  color: #94a3b8;
  font-size: var(--font-size-sm);
  margin-bottom: 1.25rem;
}

.footer-heading {
  color: #ffffff;
  font-size: var(--font-size-base);
  font-weight: 700;
  margin-bottom: 1.25rem;
}

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

.footer-links a {
  color: #cbd5e1;
  font-size: var(--font-size-sm);
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: var(--font-size-sm);
  color: #cbd5e1;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid #1e293b;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: center;
  font-size: var(--font-size-xs);
  color: #64748b;
}

.footer-disclaimer {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.5;
}

/* ==========================================================================
   15. FLOATING WHATSAPP & MOBILE BOTTOM BAR
   ========================================================================== */
.floating-whatsapp-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background-color: var(--accent-green);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.4);
  z-index: var(--z-floating);
  transition: transform var(--transition-fast), background-color var(--transition-fast);
  text-decoration: none;
}

.floating-whatsapp-btn:hover {
  transform: scale(1.08);
  background-color: var(--accent-green-hover);
  color: #ffffff;
}

.mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #ffffff;
  border-top: 1px solid var(--border-subtle);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.06);
  z-index: var(--z-bottom-bar);
  padding: 0.5rem 0.75rem;
}

.mobile-bottom-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.mobile-bar-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.45rem 0.25rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  line-height: 1.1;
}

.mobile-bar-btn-call {
  background-color: var(--secondary-light);
  color: var(--secondary-hover);
}

.mobile-bar-btn-whatsapp {
  background-color: var(--accent-green-light);
  color: var(--accent-green-hover);
}

.mobile-bar-btn-directions {
  background-color: var(--primary-light);
  color: var(--primary);
}

/* ==========================================================================
   16. APPOINTMENT POPUP MODAL
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-base), visibility var(--transition-base);
}

.modal-overlay[hidden] {
  display: none;
}

.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
  display: flex;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 1;
}

.modal-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 520px;
  max-height: 94vh;
  overflow-y: auto;
  transform: translateY(15px) scale(0.98);
  transition: transform var(--transition-base);
}

.modal-overlay.is-open .modal-container {
  transform: translateY(0) scale(1);
}

.modal-card {
  background-color: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 1.15rem 1.4rem;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-header-text {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-header-text .badge {
  margin-bottom: 0;
  padding: 0.15rem 0.5rem;
  font-size: 0.68rem;
}

.modal-header-text h3 {
  font-size: 1.15rem;
  margin: 0;
}

.modal-close-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background-color: var(--bg-surface-subtle);
  color: var(--text-main);
  border-color: var(--border-card);
}

/* Ultra-compact modal form layout */
.modal-card .form-grid {
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.modal-card .form-group {
  gap: 0.15rem;
}

.modal-card .form-label {
  font-size: 0.75rem;
  font-weight: 600;
}

.modal-card .form-input,
.modal-card .form-select {
  padding: 0.38rem 0.6rem;
  font-size: 0.8125rem;
  border-radius: var(--radius-sm);
}

.modal-card .form-privacy-notice {
  padding: 0.35rem 0.55rem;
  font-size: 0.6875rem;
  margin-bottom: 0.65rem;
  line-height: 1.35;
}

.modal-card .btn-whatsapp {
  padding: 0.48rem 0.9rem;
  font-size: 0.8125rem;
}
