/* Version: 2.1 - Mobile fixes applied 2025-11-21 */
/* Header height variable - will be set dynamically by JavaScript */
:root {
  --header-h: 0px; /* Initial value, updated by JS to actual header height */
}

/* Force spacer off in case it ever slips back in */
#header-space { 
  display: none !important; 
  height: 0 !important; 
  background: transparent !important; 
}

/* Smooth scroll/anchor behavior so section tops aren't hidden */
html { 
  scroll-padding-top: var(--header-h); 
}

[id] { 
  scroll-margin-top: var(--header-h); 
}

/* Base Styles - Universal Cinzel Font Application */
/* Single, global offset for the fixed header */
body {
  font-family: 'Cinzel', serif !important;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  overflow-y: auto !important;
  /* Ensure body doesn't have transforms or positioning that breaks fixed header */
  position: relative;
  transform: none !important;
}

/* Ensure html doesn't have anything that breaks fixed positioning */
html {
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
}

/* Ensure main content starts below header */
#main-content {
  position: relative;
  z-index: 0;
  padding-top: 0;
  margin-top: 0;
}

/* Force Cinzel font on ALL text elements */
*, *::before, *::after {
  font-family: 'Cinzel', serif !important;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Cinzel', serif !important;
}

p, span, div, a, li, ul, ol, blockquote, td, th {
  font-family: 'Cinzel', serif !important;
}

input, textarea, button, select {
  font-family: 'Cinzel', serif !important;
}

label, .form-field label {
  font-family: 'Cinzel', serif !important;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Ensure the header really is fixed */
#header-outer {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 1000 !important;
  padding: 15px 0;
  transition: all 0.3s ease;
  background: transparent !important;
  backdrop-filter: none !important;
  box-sizing: border-box;
  transform: none !important;
  will-change: auto;
  box-shadow: none !important;
}

#header-outer.scrolled {
  background: rgba(0, 0, 0, 0.95) !important;
  backdrop-filter: blur(20px) !important;
  padding: 10px 0;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1) !important;
}

#header-outer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-left: 40px; /* Move logo further left */
}

#logo {
  margin-right: auto; /* Push logo to the left */
}

#logo img {
  max-height: 63px; /* 30% smaller than 90px */
  width: auto;
  transition: all 0.3s ease;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

#header-outer.scrolled #logo img {
  max-height: 49px; /* 30% smaller than 70px */
  filter: none;
}

.header-phone {
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 18px;
  transition: all 0.3s ease;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

#header-outer.scrolled .header-phone {
  text-shadow: none;
}

.header-phone:hover {
  color: #4aa4eb;
}

/* Video Hero Section - Two-column layout with video background */
/* Hero sits directly under the fixed header, offset by padding-top */
.video-hero-section {
  position: relative !important;
  margin-top: 0 !important;
  padding-top: var(--header-h); /* Offset content under fixed header */
  /* Fill the full viewport */
  min-height: 100vh !important;
  height: auto !important;
  overflow: hidden;
  display: flex !important;
  align-items: center;
  width: 100% !important;
  z-index: 1;
  box-sizing: border-box !important;
  flex-shrink: 0; /* Prevent flex collapse */
}

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

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

.video-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0.4) 100%);
  z-index: 1;
}

.video-hero-centered {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 40px;
}

.video-hero-title {
  font-size: 5em;
  font-weight: 700;
  line-height: 0.9;
  margin-bottom: 30px;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
  color: white !important;
}

.video-hero-subtitle {
  font-size: 1.8em;
  font-weight: 400;
  margin-bottom: 40px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  line-height: 1.3;
  color: white !important;
}

/* CTA Box with blue gradient background and texture */
.cta-box {
  background: 
    linear-gradient(135deg, rgba(255, 255, 255, 0.1) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.1) 75%, transparent 75%, transparent),
    linear-gradient(135deg, rgba(28, 150, 237, 0.95) 0%, rgba(41, 128, 185, 0.9) 25%, rgba(52, 152, 219, 0.92) 50%, rgba(41, 128, 185, 0.9) 75%, rgba(28, 150, 237, 0.95) 100%);
  background-size: 40px 40px, 100% 100%;
  padding: 40px 35px;
  border-radius: 20px;
  margin-top: 10px;
  margin-bottom: 60px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  position: relative;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
              radial-gradient(circle at 80% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  border-radius: 20px;
  pointer-events: none;
}

.cta-special-offer {
  font-size: 3.2em;
  font-weight: 700;
  color: #FF8C00;
  margin-bottom: 25px;
  text-align: center;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: nowrap;
}

.cta-btn {
  background: linear-gradient(135deg, #FF8C00 0%, #FF7500 50%, #E67E00 100%);
  color: white;
  padding: 18px 35px;
  border: 3px solid rgba(255, 255, 255, 0.4);
  border-radius: 12px;
  font-size: 1.2em;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 25px rgba(255, 140, 0, 0.6), 0 4px 15px rgba(255, 140, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  display: inline-block;
  text-align: center;
  position: relative;
  overflow: hidden;
  line-height: 1.3;
}

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

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

.cta-btn:hover {
  background: linear-gradient(135deg, #FF7500 0%, #E67E00 50%, #D66D00 100%);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 0 35px rgba(255, 140, 0, 0.8), 0 6px 20px rgba(255, 140, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  border-color: rgba(255, 255, 255, 0.6);
}

/* Form Section Header */
.form-section-header {
  font-size: 2.5em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: white;
}

/* Form Styling */
.appointment-form {
  background: rgba(247,247,247,0.95);
  max-width: 500px;
  margin: 0 auto;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  backdrop-filter: blur(10px);
}

.form-row {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
}

.form-field {
  flex: 1;
}

.form-field.full-width {
  width: 100%;
}

.form-field label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  color: #333;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s;
  box-sizing: border-box;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: #4aa4eb;
}

.submit-btn {
  width: 100%;
  background: linear-gradient(45deg, #4aa4eb 0%, #2980b9 100%);
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(74, 164, 235, 0.4);
}

.submit-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Section Styles */
.section {
  padding: 60px 0 !important;
  scroll-margin-top: 120px; /* Account for fixed header when scrolling to anchors */
  position: relative !important;
  display: block !important;
  width: 100% !important;
}

/* First section after hero - no special spacing needed since header-space handles it */
.video-hero-section + .section {
  padding-top: 60px !important; /* Normal section padding */
  margin-top: 0 !important;
  position: relative !important;
  z-index: 0 !important;
  display: block !important;
}

.section.gray-bg {
  background-color: #f7f7f7;
}

.section.form-section-bg {
  background: linear-gradient(rgba(180, 167, 116, 0.8), rgba(180, 167, 116, 0.8)), url('../assets/background_1.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: white;
}

.section.accent-bg {
  background: linear-gradient(rgba(180, 167, 116, 0.8), rgba(180, 167, 116, 0.8)), url('../assets/background_1.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: white;
}

.section-title {
  text-align: center;
  font-size: 2.5em;
  margin-bottom: 50px;
  color: #333;
}

.section.accent-bg .section-title {
  color: white;
  font-weight: 700;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

.service-item {
  text-align: center;
  padding: 30px 20px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.service-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.service-item img {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
}

.service-item h3 {
  color: #454545;
  margin-bottom: 15px;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.gallery-item img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Emergency Section */
.emergency-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.emergency-content h2 {
  color: #333;
  margin-bottom: 20px;
}

.emergency-content p {
  font-size: 20px;
  margin-bottom: 30px;
}

.phone-btn {
  display: inline-block;
  background: #4aa4eb;
  color: white;
  padding: 15px 30px;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: background-color 0.3s;
}

.phone-btn:hover {
  background: #2980b9;
}

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 40px;
}

.contact-info h3 {
  color: #333;
  margin-bottom: 20px;
}

.contact-info p {
  margin-bottom: 15px;
}

.contact-info strong {
  color: #333;
}

/* Footer */
#footer {
  background: #333;
  color: white;
  padding: 40px 0 20px;
  text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
  .video-hero-section {
    /* Keep top padding to account for fixed header, remove side padding */
    padding-top: var(--header-h) !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-bottom: 0 !important;
    margin: 0 !important;
  }
  
  /* First section after hero - add header height to padding */
  .video-hero-section + .section {
    padding-top: calc(60px + var(--header-h)) !important;
    margin-top: 0 !important;
  }
  
  /* Scroll margin uses CSS variable which adjusts for mobile */
  .section {
    scroll-margin-top: var(--header-h);
  }
  
  .video-hero-centered {
    padding: 0 20px;
  }
  
  .video-hero-title {
    font-size: 3em;
    margin-bottom: 20px;
  }
  
  .video-hero-subtitle {
    font-size: 1.4em;
    margin-bottom: 30px;
  }
  
  .cta-box {
    padding: 30px 25px;
  }
  
  .cta-special-offer {
    font-size: 2em;
  }
  
  .cta-buttons {
    flex-direction: column;
  }
  
  .cta-btn {
    width: 100%;
    padding: 16px 30px;
    font-size: 1.1em;
  }
  
  .form-header {
    font-size: 1.5em;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .emergency-section,
  .contact-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .form-row {
    flex-direction: column;
  }
  
  /* Mobile-specific header padding reduction */
  #header-outer {
    padding: 8px 0 !important;
  }
  
  #header-outer.scrolled {
    padding: 6px 0 !important;
  }
  
  #header-outer .container {
    padding: 0 15px;
    padding-left: 20px; /* Less left padding on mobile */
  }
  
  #header-outer.scrolled .container {
    padding: 0 15px;
    padding-left: 20px;
  }
  
  /* Mobile-specific header sizing to prevent phone number wrapping */
  #logo img {
    max-height: 45px !important; /* Smaller logo on mobile */
  }
  
  #header-outer.scrolled #logo img {
    max-height: 38px !important; /* Smaller scrolled logo on mobile */
  }
  
  .header-phone {
    font-size: 14px !important; /* Smaller phone number on mobile */
  }
  
  /* Mobile-specific video container for full-width display */
  .video-container {
    max-width: 100% !important;
    margin-left: -20px !important;
    margin-right: -20px !important;
    border-radius: 0 !important;
    margin-bottom: 30px !important;
  }
  
  .video-container video {
    border-radius: 0 !important;
  }
}

/* Popup Styles */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  animation: fadeIn 0.3s ease-in;
}

.popup-content {
  background: white;
  padding: 40px;
  border-radius: 15px;
  text-align: center;
  max-width: 500px;
  margin: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  animation: slideIn 0.3s ease-out;
}

.popup-content .success-icon {
  font-size: 60px;
  color: #28a745;
  margin-bottom: 20px;
}

.popup-content h2 {
  color: #2c3e50;
  margin-bottom: 15px;
}

.popup-content p {
  color: #555;
  margin-bottom: 25px;
  line-height: 1.5;
}

.popup-btn {
  background: #28a745;
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
}

.popup-btn:hover {
  background: #218838;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideIn {
  from { transform: translateY(-50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Transcript Styles */
.transcript-container {
  background: #f9f9f9;
  border-radius: 10px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
}

.transcript-toggle {
  width: 100%;
  background: #fff;
  border: none;
  padding: 20px 25px;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  color: #333;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s, box-shadow 0.3s;
}

.transcript-toggle:hover {
  background: #f5f5f5;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.transcript-toggle:focus {
  outline: 2px solid #4aa4eb;
  outline-offset: 2px;
}

.toggle-icon {
  font-size: 14px;
  color: #666;
  transition: transform 0.3s ease;
}

.transcript-toggle.expanded .toggle-icon {
  transform: rotate(180deg);
}

.transcript-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.3s ease;
}

.transcript-content.expanded {
  max-height: 1000px;
  padding: 0 25px 25px 25px;
}

.transcript-text {
  background: white;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #e8e8e8;
}

.transcript-text p {
  margin-bottom: 15px;
  line-height: 1.7;
  color: #444;
}

.transcript-text p:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .transcript-toggle {
    padding: 15px 20px;
    font-size: 15px;
  }
  
  .transcript-content.expanded {
    padding: 0 20px 20px 20px;
  }
  
  .transcript-text {
    padding: 15px;
  }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

/* Text Alignment */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* Max Width Containers */
.max-w-800 { max-width: 800px; margin: 0 auto; }
.max-w-1000 { max-width: 1000px; margin: 0 auto; }
.max-w-1400 { max-width: 1400px; margin: 0 auto; }

/* Font Sizes */
.text-lg { font-size: 18px; }
.text-xl { font-size: 20px; }
.text-2xl { font-size: 25px; }
.text-3xl { font-size: 35px; }
.text-4xl { font-size: 45px; }

/* Spacing Utilities */
.mb-15 { margin-bottom: 15px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.mb-40 { margin-bottom: 40px; }
.mb-60 { margin-bottom: 60px; }
.mt-30 { margin-top: 30px; }
.mt-40 { margin-top: 40px; }

/* Display Utilities */
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.gap-40 { gap: 40px; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }

/* Line Height */
.leading-relaxed { line-height: 1.6; }
.leading-tight { line-height: 1.2; }
.leading-normal { line-height: 1.5; }

/* Color Utilities */
.text-muted { color: #979597; }
.text-dark { color: #333; }
.text-black { color: black; }

/* ============================================
   COMPONENT-SPECIFIC STYLES
   ============================================ */

/* Video Container */
.video-container {
  position: relative;
  max-width: 1000px;
  margin: 0 auto 30px auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.video-container video {
  width: 100%;
  height: auto;
  border-radius: 15px;
  background: #000;
}

/* Doctor Profile Section */
.doctor-image {
  width: 100%;
  max-width: 400px;
  border-radius: 10px;
}

.doctor-profile h2 {
  text-align: center;
  color: black;
}

/* Final CTA Section */
.final-cta-section {
  background: white;
  padding: 25px 0;
}

.final-cta-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.final-cta-text {
  flex: 1;
  min-width: 300px;
}

.final-cta-text h3 {
  color: black;
  font-size: 45px;
  line-height: 120%;
  text-align: center;
  margin: 0;
}

.final-cta-button {
  font-size: 25px;
  padding: 20px 30px;
}

/* Contact Info Section */
.contact-info-grid {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.contact-info-column {
  flex: 1;
  min-width: 250px;
}

.contact-info-section {
  margin-bottom: 30px;
}

.contact-hours-column {
  flex: 1;
  min-width: 200px;
}

/* Media Content Section */
.media-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.media-content p {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 30px;
}

.media-content a {
  font-weight: bold;
  color: white;
  text-decoration: underline;
}

.media-image-container {
  margin-top: 40px;
}

.media-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Iframe Container */
.iframe-container iframe {
  border: 0;
  border-radius: 10px;
}

/* Form Status Message */
#formStatus {
  display: none;
  margin-top: 15px;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
}
