/* ==========================================================================
   PREMIUM DESIGN SYSTEM & VARIABLES
   ========================================================================== */
:root {
  --primary: #2563EB;
  --secondary: #0891B2;
  --accent: #38BDF8;

  --dark-base: #0F172A;
  --dark-surface: #1E293B;
  --text-main: #334155;
  --text-muted: #64748B;

  --bg-main: #F8FAFC;
  --bg-soft: #F1F5F9;

  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.5);

  --gradient-brand: linear-gradient(135deg, #2563EB 0%, #06B6D4 100%);
  --gradient-glow: linear-gradient(135deg, #3B82F6 0%, #22D3EE 100%);

  --shadow-sm: 0 4px 6px -1px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 10px 25px -3px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 40px -5px rgba(15, 23, 42, 0.12);
  --shadow-glow: 0 10px 30px rgba(59, 130, 246, 0.25);

  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;

  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

h1,
h2,
h3,
h4 {
  font-family: 'Outfit', sans-serif;
  color: var(--dark-base);
  line-height: 1.2;
  font-weight: 700;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  width: 100%;
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
    /* Extremely narrow screens need smaller padding to prevent squeeze */
  }
}

.section {
  padding: 120px 0;
  position: relative;
}

.text-center {
  text-align: center;
}

/* ==========================================================================
   TYPOGRAPHY & GRADIENTS
   ========================================================================== */
.gradient-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.gradient-glow {
  text-shadow: 0 10px 40px rgba(59, 130, 246, 0.25);
}

.premium-heading {
  font-size: 3.2rem;
  letter-spacing: -1.2px;
  margin-bottom: 20px;
}

.sub-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 2px;
  margin-bottom: 16px;
  font-family: 'Outfit', sans-serif;
}

.sub-label.badge-centered {
  background: #E0F2FE;
  padding: 8px 16px;
  border-radius: 50px;
  margin: 0 auto 20px auto;
}

.section-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 50px;
}

.center-desc {
  margin: 0 auto 50px auto;
}

/* ==========================================================================
   SPA VIEWS
   ========================================================================== */
.page-view {
  display: none;
  opacity: 0;
}

.page-view.active {
  display: block;
  animation: pageFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes pageFadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   GLASSMORPHIC NAVBAR
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--glass-border);
  padding: 18px 0;
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-brand-img {
  max-height: 55px;
  max-width: 180px;
  width: auto;
  object-fit: contain;

  /* Softens the logo appearance */
  border-radius: 12px;
  filter: drop-shadow(0 4px 10px rgba(37, 99, 235, 0.2));
  transition: transform 0.3s ease, filter 0.3s ease;
}

.nav-brand-img:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 8px 15px rgba(37, 99, 235, 0.4));
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--dark-base);
  letter-spacing: -0.5px;
}

.logo-subtitle {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 40px;
}

.nav-item {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-muted);
  position: relative;
  padding: 8px 0;
}

.nav-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--gradient-brand);
  border-radius: 4px;
  transition: var(--transition);
}

.nav-item:hover,
.nav-item.active {
  color: var(--dark-base);
}

.nav-item.active::after {
  width: 100%;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-primary {
  background: var(--gradient-brand);
  color: #fff;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

.btn-secondary {
  background: #fff;
  color: var(--dark-base);
  border: 1px solid #E2E8F0;
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--bg-soft);
  transform: translateY(-3px);
  border-color: var(--accent);
}

.btn-emergency {
  background: var(--dark-base);
  color: #fff;
  padding: 12px 24px;
  font-size: 0.95rem;
}

.btn-emergency i {
  color: var(--accent);
}

.btn-emergency:hover {
  background: var(--primary);
  transform: scale(1.05);
  color: #fff;
}

.btn-block {
  width: 100%;
  justify-content: center;
}

.btn-large {
  padding: 18px 32px;
  font-size: 1.1rem;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  padding: 80px 0 120px 0;
  position: relative;
  background: radial-gradient(circle at top right, #E0F2FE 0%, #F8FAFC 50%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
}

.glass-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 0.9rem;
  color: var(--dark-base);
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.badge-star {
  color: #F59E0B;
  font-size: 1.2rem;
}

.hero-headline {
  font-size: 4rem;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
}

.hero-subtext {
  font-size: 1.25rem;
  margin-bottom: 40px;
  color: var(--text-muted);
}

.hero-cta-group {
  display: flex;
  gap: 20px;
  margin-bottom: 48px;
}

.hero-highlights {
  display: flex;
  gap: 28px;
  border-top: 1px solid #E2E8F0;
  padding-top: 32px;
}

.h-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--dark-base);
}

.h-icon {
  color: var(--primary);
  font-size: 1.3rem;
}

/* Image Wrapping */
.hero-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 600px;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.hero-image-wrapper:hover .hero-img {
  transform: scale(1.05);
}

.floating-glass-card {
  position: absolute;
  bottom: 30px;
  left: -20px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  padding: 24px 32px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  max-width: 320px;
}

@media (min-width: 1024px) {
  .hero-image-wrapper {
    margin-left: 20px;
    overflow: visible;
  }

  .hero-img {
    border-radius: var(--radius-lg);
  }

  .floating-glass-card {
    left: -40px;
  }
}

.doc-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #E0F2FE;
  color: var(--primary);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.floating-glass-card h3 {
  font-size: 1.6rem;
  margin-bottom: 4px;
}

.doc-qual {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.doc-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.doc-specs .tag {
  background: #fff;
  border: 1px solid #E2E8F0;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-main);
}

/* ==========================================================================
   FACILITY / WHY US SECTION
   ========================================================================== */
.premium-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
}

.layout-image {
  position: relative;
  height: 100%;
  min-height: 500px;
}

.rounded-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.experience-badge {
  position: absolute;
  bottom: 40px;
  right: -30px;
  background: var(--dark-base);
  color: #fff;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 8px solid var(--bg-main);
}

.exp-number {
  font-size: 2.5rem;
  font-weight: 800;
  font-family: 'Outfit';
  color: var(--accent);
  line-height: 1;
}

.exp-text {
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.2;
  text-transform: uppercase;
  margin-top: 4px;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.feature-item {
  display: flex;
  gap: 20px;
}

.dark-icon {
  width: 64px;
  height: 64px;
  background: var(--dark-surface);
  color: #fff;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
  transition: var(--transition);
}

.feature-item:hover .dark-icon {
  background: var(--primary);
  transform: scale(1.1) rotate(5deg);
  box-shadow: var(--shadow-glow);
}

.feature-text h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.feature-text p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ==========================================================================
   DYNAMIC STATS
   ========================================================================== */
.gradient-bg {
  background: var(--gradient-brand);
  color: #fff;
}

.padding-large {
  padding: 80px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-item {
  padding: 20px;
}

.stat-number-wrapper {
  display: flex;
  align-items: baseline;
  justify-content: center;
  margin-bottom: 12px;
}

.stat-number {
  font-size: 4rem;
  color: #fff;
  line-height: 1;
}

.stat-plus {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
}

.stat-item p {
  font-weight: 600;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ==========================================================================
   CAROUSEL
   ========================================================================== */
.bg-soft {
  background: var(--bg-soft);
}

.carousel-container {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 50px 30px;
  position: relative;
}

.review-viewport {
  overflow: hidden;
  width: 100%;
}

.review-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.review-card {
  min-width: 100%;
  padding: 0 40px;
  text-align: center;
}

.review-header {
  margin-bottom: 24px;
}

.review-author h4 {
  font-size: 1.5rem;
}

.review-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.condition-badge {
  display: inline-block;
  background: #E0F2FE;
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 10px;
}

.review-stars {
  color: #F59E0B;
  font-size: 1.4rem;
  margin-bottom: 24px;
  letter-spacing: 2px;
}

.review-text {
  font-size: 1.25rem;
  color: var(--dark-base);
  font-style: italic;
  line-height: 1.8;
}

.carousel-btn {
  background: var(--bg-main);
  border: 1px solid #E2E8F0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--text-main);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.carousel-btn:hover {
  background: var(--dark-base);
  color: #fff;
  transform: scale(1.1);
  border-color: transparent;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #CBD5E1;
  cursor: pointer;
  transition: var(--transition);
}

.dot.active {
  background: var(--primary);
  width: 32px;
  border-radius: 12px;
}

/* ==========================================================================
   ACCORDION
   ========================================================================== */
.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover {
  box-shadow: var(--shadow-sm);
  border-color: #CBD5E1;
}

.faq-question {
  width: 100%;
  padding: 24px 32px;
  background: none;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.15rem;
  font-weight: 700;
  font-family: 'Outfit';
  color: var(--dark-base);
  cursor: pointer;
  text-align: left;
}

.faq-toggle {
  font-size: 1.4rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.faq-item.open {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.faq-item.open .faq-question {
  color: var(--primary);
}

.faq-item.open .faq-toggle {
  transform: rotate(45deg);
  color: var(--primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  padding: 0 32px;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding-bottom: 24px;
}

.faq-answer p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ==========================================================================
   SERVICES VIEW
   ========================================================================== */
.page-hero {
  padding: 100px 0 60px 0;
  border-bottom: 1px solid #E2E8F0;
}

.premium-grid {
  display: grid;
  gap: 32px;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.service-category {
  margin-bottom: 80px;
}

.category-title {
  font-size: 2rem;
  margin-bottom: 40px;
  color: var(--dark-surface);
  display: inline-block;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--primary);
}

.glass-card {
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-md);
  padding: 40px 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-brand);
  opacity: 0;
  transition: var(--transition);
}

.glass-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

.glass-card:hover::before {
  opacity: 1;
}

.service-icon {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 24px;
  transition: var(--transition);
}

.glass-card:hover .service-icon {
  transform: scale(1.1);
  color: var(--secondary);
}

.glass-card h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.glass-card p {
  color: var(--text-muted);
}

.hue-shift {
  background: var(--dark-surface);
  color: #fff;
  border: none;
}

.hue-shift h3 {
  color: #fff;
}

.hue-shift p {
  color: #94A3B8;
}

.hue-shift .service-icon {
  color: var(--accent);
}

/* ==========================================================================
   CONTACT VIEW & FORMS
   ========================================================================== */
.contact-layout {
  gap: 64px;
}

.contact-info-card,
.appointment-form-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 48px;
}

.card-glass-header {
  margin-bottom: 40px;
}

.card-glass-header h3 {
  font-size: 2.2rem;
}

.card-glass-header p {
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
  margin-top: 8px;
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 40px;
}

.info-row {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.icon-box {
  width: 56px;
  height: 56px;
  background: #F1F5F9;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--primary);
  flex-shrink: 0;
}

.info-text strong {
  display: block;
  font-size: 1.1rem;
  color: var(--dark-base);
  margin-bottom: 4px;
}

.info-text p {
  color: var(--text-muted);
  line-height: 1.5;
}

.phone-link {
  color: var(--primary);
  font-size: 1.25rem;
  font-weight: 700;
}

.premium-box {
  background: var(--gradient-brand);
  color: #fff;
  padding: 24px;
  border-radius: var(--radius-sm);
}

.premium-box h4 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.premium-box p {
  font-size: 0.95rem;
  line-height: 1.6;
}

.appointment-form-card h3 {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.form-desc {
  color: var(--text-muted);
  margin-bottom: 40px;
}

.form-group {
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
  margin-bottom: 10px;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrapper i {
  position: absolute;
  left: 20px;
  font-size: 1.4rem;
  color: #94A3B8;
  transition: var(--transition);
}

.input-wrapper.textarea-wrapper i {
  top: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 16px 20px 16px 56px;
  /* Space for icon */
  border: 1.5px solid #E2E8F0;
  border-radius: var(--radius-sm);
  font-size: 1.05rem;
  color: var(--dark-base);
  background: var(--bg-main);
  outline: none;
  font-family: 'Inter', sans-serif;
  transition: var(--transition);
}

.form-group input[type="datetime-local"] {
  padding: 16px 20px;
}

.form-group select {
  appearance: none;
  cursor: pointer;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.form-group input:focus+i,
.form-group select:focus+i,
.form-group textarea:focus+i,
.input-wrapper:focus-within i {
  color: var(--primary);
}


.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.premium-checkbox {
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
}

.premium-checkbox input {
  width: 22px;
  height: 22px;
  accent-color: var(--primary);
  cursor: pointer;
}

.premium-checkbox label {
  margin-bottom: 0;
  cursor: pointer;
}

.error-msg {
  color: #EF4444;
  font-size: 0.85rem;
  margin-top: 8px;
  display: none;
  font-weight: 500;
}

.form-group.error input,
.form-group.error select {
  border-color: #EF4444;
  background: #FEF2F2;
}

.form-group.error i {
  color: #EF4444;
}

.form-group.error .error-msg {
  display: block;
}

/* ==========================================================================
   FOOTER & PRELOADER & GALLERY & FLOATING ACTIONS
   ========================================================================== */
.footer {
  background: var(--dark-base);
  color: #fff;
  padding: 80px 0 0 0;
  margin-top: 100px;
}

.premium-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-logo {
  font-family: 'Outfit';
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand-img {
  max-height: 42px;
  max-width: 160px;
  width: auto;
  object-fit: contain;
  border-radius: 8px;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.3));
}

.footer-desc {
  color: #94A3B8;
  margin-bottom: 24px;
  line-height: 1.6;
}

.footer-socials {
  display: flex;
  gap: 16px;
}

.footer-socials a {
  width: 40px;
  height: 40px;
  background: var(--dark-surface);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  transition: var(--transition);
}

.footer-socials a:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

.footer-col h4 {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 24px;
}

.links-col nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.links-col a {
  color: #94A3B8;
  font-size: 0.95rem;
}

.links-col a:hover {
  color: var(--accent);
  padding-left: 5px;
}

.contact-col .f-info {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  color: #94A3B8;
  font-size: 0.95rem;
}

.contact-col .f-info i {
  color: var(--accent);
  font-size: 1.2rem;
  margin-top: 2px;
}

.footer-bottom {
  background: #0B1120;
  padding: 24px 0;
  text-align: center;
}

.copyright {
  color: #64748B;
  font-size: 0.85rem;
}

/* GALLERY PAGE */
.gallery-grid {
  gap: 20px;
}

.gallery-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: var(--radius-md);
  transition: transform 0.5s ease;
  cursor: pointer;
}

.gallery-img:hover {
  transform: scale(1.03);
}

/* PRELOADER */
.preloader-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 320px;
  height: 320px;
}

.glass-rings {
  position: absolute;
  width: 100%;
  height: 100%;
}

.ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 20px rgba(37, 99, 235, 0.1), 0 0 30px rgba(37, 99, 235, 0.15);
}

.ring1 {
  width: 240px;
  height: 240px;
  border-left: 2px solid var(--accent);
  border-right: 2px solid rgba(255, 255, 255, 0.05);
  animation: spin 3s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite;
}

.ring2 {
  width: 300px;
  height: 300px;
  border-top: 3px solid var(--primary);
  border-bottom: 2px solid transparent;
  animation: spin-reverse 4s linear infinite;
  opacity: 0.7;
}

.ring3 {
  width: 360px;
  height: 360px;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  animation: spin 6s ease-in-out infinite;
}

@keyframes spin {
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes spin-reverse {
  100% {
    transform: translate(-50%, -50%) rotate(-360deg);
  }
}

.preloader-content-inner {
  text-align: center;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--bg-main);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.shimmer-wrapper {
  position: relative;
  display: inline-block;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 15px;
  filter: drop-shadow(0 4px 15px rgba(255, 255, 255, 0.1));
}

.shimmer-img {
  max-height: 85px;
  max-width: 260px;
  object-fit: contain;
  display: block;
}

.shimmer-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: skewX(-20deg);
  animation: shimmer-sweep 2.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes shimmer-sweep {
  0% {
    left: -150%;
  }

  45% {
    left: 150%;
  }

  100% {
    left: 150%;
  }
}

.preloader-text {
  font-family: 'Outfit';
  font-size: 5rem;
  font-weight: 800;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
  margin-bottom: 20px;
  text-align: center;
}

.preloader-bar {
  width: 150px;
  height: 4px;
  background: #E2E8F0;
  border-radius: 4px;
  overflow: hidden;
  margin: 0 auto;
}

.preloader-progress {
  width: 100%;
  height: 100%;
  background: var(--gradient-brand);
  transform-origin: left;
  animation: loading-bar 1.5s ease-in-out infinite alternate;
}

@keyframes loading-bar {
  0% {
    transform: scaleX(0.1);
  }

  100% {
    transform: scaleX(1);
  }
}

/* FLOATING ACTIONS */
.floating-actions {
  position: fixed;
  right: 32px;
  bottom: 120px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 9000;
}

.fab {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: #fff;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  text-decoration: none;
}

.fab:hover {
  color: #fff;
  transform: translateY(-5px) scale(1.1);
}

.fab-whatsapp {
  background: #25D366;
}

.fab-whatsapp:hover {
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
}

.fab-call {
  background: var(--gradient-brand);
}

.fab-call:hover {
  box-shadow: var(--shadow-glow);
}

/* ==========================================================================
   TOAST
   ========================================================================== */
.toast {
  position: fixed;
  bottom: 32px;
  right: 32px;
  background: var(--dark-surface);
  color: #fff;
  padding: 20px 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 20px;
  z-index: 9999;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
}

.toast.hidden {
  opacity: 0;
  transform: translateY(100px) scale(0.9);
  pointer-events: none;
}

.toast-icon {
  width: 44px;
  height: 44px;
  background: #10B981;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #fff;
}

/* ==========================================================================
   DARK MODE
   ========================================================================== */
body.dark-mode {
  --bg-main: #020617;
  --bg-soft: #0F172A;
  --text-main: #CBD5E1;
  --text-muted: #94A3B8;
  --dark-base: #F8FAFC;
  --dark-surface: #1E293B;
}

body.dark-mode .hero-section {
  background: radial-gradient(circle at top right, #1E293B 0%, #020617 50%);
}

body.dark-mode .gradient-bg {
  background: linear-gradient(135deg, #1E40AF 0%, #164E63 100%);
}

body.dark-mode .bg-soft {
  background: #0F172A;
}

body.dark-mode .experience-badge {
  border-color: #020617;
}

body.dark-mode .doc-badge,
body.dark-mode .glass-badge {
  background: rgba(30, 41, 59, 0.8);
  border-color: rgba(255, 255, 255, 0.1);
  color: #E2E8F0;
}

body.dark-mode .floating-glass-card {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode p {
  color: #94A3B8;
}

body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode .nav-item {
  color: #F8FAFC;
}

body.dark-mode .nav-item.active {
  color: var(--primary);
}

body.dark-mode .glass-card,
body.dark-mode .contact-info-card,
body.dark-mode .appointment-form-card,
body.dark-mode .faq-item,
body.dark-mode .carousel-container {
  background: #111827;
  border-color: #334155;
  color: #E2E8F0;
}

body.dark-mode .glass-bg,
body.dark-mode .navbar {
  background: rgba(15, 23, 42, 0.8) !important;
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .btn-secondary {
  background: var(--dark-surface);
  color: #E2E8F0;
  border-color: #334155;
}

body.dark-mode .faq-question {
  color: #F8FAFC;
}

body.dark-mode input,
body.dark-mode select,
body.dark-mode textarea {
  background: #0F172A;
  color: #F8FAFC;
  border-color: #334155;
}

body.dark-mode .theme-toggle {
  color: #F8FAFC;
  border-color: #334155;
}

.theme-toggle {
  background: transparent;
  border: 1px solid #E2E8F0;
  color: var(--text-main);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.4rem;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.theme-toggle:hover {
  background: var(--bg-soft);
  transform: rotate(15deg);
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
.premium-shadow {
  box-shadow: var(--shadow-md);
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-12px);
  }

  100% {
    transform: translateY(0px);
  }
}

.float-animation {
  animation: float 6s ease-in-out infinite;
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {

  .hero-grid,
  .premium-layout,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .floating-glass-card {
    position: relative;
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: none;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    border-top: none;
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
}

/* DESKTOP HIDES MOBILE BUTTONS */
.mobile-menu-btn,
.close-menu-btn {
  display: none;
}

@media (max-width: 768px) {
  .navbar {
    padding: 12px 0;
  }

  .nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    font-size: 1.8rem;
    color: var(--dark-base);
    cursor: pointer;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    transform: translateX(100%);
    width: 260px;
    height: 100vh;
    background: var(--bg-main);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    flex-direction: column;
    padding: 60px 30px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1050;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
  }

  .nav-links.nav-open {
    transform: translateX(0);
  }

  .close-menu-btn {
    display: block;
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--dark-base);
    cursor: pointer;
  }

  .nav-item {
    font-size: 1.25rem;
    padding: 15px 0;
    width: 100%;
    display: block;
  }

  .nav-item::after {
    display: none;
    /* Disable underline effect on mobile block layout */
  }

  .btn-emergency {
    display: none;
    /* Hide large call button on tiny screens */
  }

  .hero-headline {
    font-size: 2.5rem;
  }

  .hero-subtext {
    font-size: 1.1rem;
  }

  .hero-highlights {
    flex-wrap: wrap;
    /* Fix alignment cutoffs */
    gap: 16px;
  }

  .grid-2,
  .grid-3,
  .form-grid-2,
  .gallery-grid,
  .zones-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Carousel Mobile Overrides */
  .carousel-container {
    padding: 30px 10px;
  }

  .carousel-btn {
    display: none;
    /* Hide heavy side arrows forcing narrow widths on small screens, rely on swipe */
  }

  .review-card {
    padding: 0 10px;
  }

  .review-text {
    font-size: 1.05rem;
    line-height: 1.5;
    display: -webkit-box;
    /* Limit length on mobile */
    -webkit-line-clamp: 6;
    line-clamp: 6;
    /* Standard property for cross-browser compat */
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .review-author h4 {
    font-size: 1.25rem;
  }

  .premium-footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .footer-socials {
    justify-content: center;
  }

  .contact-col .f-info {
    justify-content: center;
    text-align: center;
  }

  .floating-actions {
    right: 15px;
    bottom: 15px;
  }

  .fab {
    width: 50px;
    height: 50px;
    font-size: 1.6rem;
  }
}

/* ==========================================================================
   GALLERY STYLES OVERRIDE
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 30px;
  align-items: center;
  justify-items: center;
}

.gallery-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.gallery-img:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

/* ==========================================================================
   INTERACTIVE BODY ZONES
   ========================================================================== */
.interactive-zones {
  padding: 80px 0;
}

.zones-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: 30px;
  margin-top: 50px;
}

.zone-card {
  perspective: 1000px;
  height: 280px;
}

.zone-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
  cursor: pointer;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.zone-card:hover .zone-inner {
  transform: rotateY(180deg);
  box-shadow: var(--shadow-glow);
}

.zone-front,
.zone-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 30px;
  border-radius: var(--radius-md);
  text-align: center;
}

.zone-front {
  background: rgba(255, 255, 255, 0.8);
}

.zone-icon {
  font-size: 4rem;
  color: var(--primary);
  margin-bottom: 20px;
}

.zone-back {
  background: var(--gradient-brand);
  color: white;
  transform: rotateY(180deg);
}

.zone-back h3 {
  color: white;
  margin-bottom: 10px;
}

.zone-back p {
  font-size: 0.95rem;
  margin-bottom: 15px;
  opacity: 0.9;
}

.zone-back ul {
  text-align: left;
  width: 100%;
}

.zone-back ul li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 8px;
}

/* ==========================================================================
   RECOVERY JOURNEY TIMELINE
   ========================================================================== */
.timeline-section {
  padding: 100px 0;
}

.timeline-container {
  position: relative;
  max-width: 800px;
  margin: 60px auto 0;
}

.timeline-line {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--primary), var(--accent));
  border-radius: 4px;
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 20px 40px;
  margin-bottom: 40px;
}

.timeline-item.left {
  left: 0;
  text-align: right;
}

.timeline-item.right {
  left: 50%;
  text-align: left;
}

.timeline-dot {
  position: absolute;
  top: 30px;
  width: 40px;
  height: 40px;
  background: var(--dark-base);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  z-index: 2;
  box-shadow: var(--shadow-sm);
  border: 4px solid var(--bg-soft);
}

.timeline-item.left .timeline-dot {
  right: -20px;
}

.timeline-item.right .timeline-dot {
  left: -20px;
}

.timeline-content {
  padding: 30px;
  transition: transform 0.3s ease;
}

.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-glow);
}

.timeline-content h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.timeline-item.left .timeline-content h3 {
  justify-content: flex-end;
}

.timeline-item.right .timeline-content h3 {
  justify-content: flex-start;
}

@media (max-width: 768px) {
  .timeline-line {
    left: 30px;
  }

  .timeline-item {
    width: 100%;
    left: 0 !important;
    padding: 20px 0 20px 80px;
    text-align: left !important;
  }

  .timeline-item.left .timeline-dot,
  .timeline-item.right .timeline-dot {
    left: 10px;
    right: auto;
  }

  .timeline-item.left .timeline-content h3,
  .timeline-item.right .timeline-content h3 {
    justify-content: flex-start;
  }
}

/* ==========================================================================
   PREMIUM ENHANCEMENTS (DARK MODE, SCROLL BAR, WHATSAPP RIPPLE, FORM UX)
   ========================================================================== */

/* 1. DARK MODE VARIABLES & OVERRIDES */
body.dark-mode {
  --bg-main: #0F172A;
  --bg-soft: #1E293B;
  --text-main: #CBD5E1;
  --text-muted: #94A3B8;
  --dark-base: #F8FAFC;
  --dark-surface: #334155;
  --glass-bg: rgba(15, 23, 42, 0.75);
  --glass-border: rgba(255, 255, 255, 0.08);
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 25px -3px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 40px -5px rgba(0, 0, 0, 0.5);
}

body.dark-mode .zone-front {
  background: rgba(30, 41, 59, 0.85);
}

body.dark-mode .carousel-container,
body.dark-mode .faq-item,
body.dark-mode .glass-card {
  background: var(--dark-surface);
  border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .btn-emergency {
  background: var(--primary);
  color: #fff;
}

body.dark-mode .btn-emergency i {
  color: #fff;
  /* Ensure icon is explicitly visible */
}

/* Fix for form inputs in dark mode */
body.dark-mode .appointment-form-card {
  background: var(--bg-soft);
}

body.dark-mode input,
body.dark-mode select,
body.dark-mode textarea {
  background: var(--dark-surface);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.15);
}

body.dark-mode input:focus,
body.dark-mode select:focus,
body.dark-mode textarea:focus {
  background: var(--bg-main);
  border-color: var(--primary);
  color: #fff;
}

body.dark-mode .input-wrapper i {
  color: var(--text-muted);
}

body.dark-mode select option {
  background: var(--dark-surface);
  color: #fff;
}

/* 2. SCROLL PROGRESS BAR */
.scroll-progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: transparent;
  z-index: 9999;
}

.scroll-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--gradient-brand);
  transition: width 0.1s ease-out;
  border-bottom-right-radius: 4px;
  border-top-right-radius: 4px;
}

/* 3. WHATSAPP RIPPLE PULSE */
.fab-whatsapp {
  position: relative;
  background: #25D366;
}

.fab-whatsapp::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background: rgba(37, 211, 102, 0.5);
  /* WhatsApp Green */
  border-radius: 50%;
  z-index: -1;
  animation: pulse-ripple 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-ripple {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.8;
  }

  100% {
    transform: translate(-50%, -50%) scale(1.6);
    opacity: 0;
  }
}

/* 4. FORM VALIDATION SUCCESS EFFECTS */
.form-group.success .input-wrapper {
  border-color: #10B981;
}

.form-group.success .input-wrapper i {
  color: #10B981;
}

.btn.loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}

.btn.loading::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  top: calc(50% - 10px);
  left: calc(50% - 10px);
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* 5. PARALLAX CLASSES */
.parallax-el {
  transition: transform 0.1s ease-out;
  will-change: transform;
}

/* 6. FLOATING ACTION BUTTONS BASELINE */
.floating-actions {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex !important;
  flex-direction: column;
  gap: 15px;
  z-index: 1000;
}

.fab {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  color: white;
  font-size: 1.6rem;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease;
  text-decoration: none;
}

.fab i {
  color: white;
}

.fab:hover {
  transform: scale(1.1);
}

.fab-call {
  background: var(--dark-surface);
}