/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */
:root {
  /* Color Palette (Aligned with Simons Eye Hospital Logo: Blue, Cyan, Green) */
  --color-hero-left: #D7F5F8;        /* Soft pastel cyan matching logo cyan */
  --color-hero-right: #00B0C4;       /* Dominant logo bright cyan/teal */
  --color-dark-slate: #082F37;       /* Deep dark blue-teal, highly readable */
  --color-dark-slate-rgb: 8, 47, 55; /* RGB form of dark slate for shadows */
  --color-teal-accent: #0090CC;      /* Dominant logo blue for main CTAs */
  --color-teal-light: #E0F7FA;       /* Light cyan tint for badges */
  --color-white: #FFFFFF;
  --color-gray-light: #F2FAFB;       /* Very light grey-cyan background */
  --color-text-body: #3F5C62;        /* Slate gray-blue body copy */
  --color-text-muted: #75969E;       /* Muted blue-gray */
  --color-green-accent: #4CBC48;     /* Dominant logo green for highlights */

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Transitions & Shadows */
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-sm: 0 4px 6px -1px rgba(8, 47, 55, 0.05), 0 2px 4px -1px rgba(8, 47, 55, 0.03);
  --shadow-md: 0 10px 25px -5px rgba(8, 47, 55, 0.08), 0 8px 10px -6px rgba(8, 47, 55, 0.05);
  --shadow-lg: 0 20px 40px -10px rgba(8, 47, 55, 0.12), 0 10px 15px -8px rgba(8, 47, 55, 0.08);
  --shadow-premium: 0 30px 60px -15px rgba(8, 47, 55, 0.18);
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
  --border-radius-pill: 100px;
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--color-text-body);
  background-color: var(--color-white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-dark-slate);
  font-weight: 700;
  line-height: 1.25;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   BUTTONS & ACCENTS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: var(--border-radius-pill);
  transition: var(--transition-smooth);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background-color: var(--color-dark-slate);
  color: var(--color-white);
}

.btn-primary:hover {
  background-color: var(--color-teal-accent);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(42, 106, 87, 0.2);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-dark-slate);
  border-color: rgba(26, 59, 50, 0.2);
}

.btn-secondary:hover {
  background-color: rgba(26, 59, 50, 0.05);
  border-color: var(--color-dark-slate);
  transform: translateY(-2px);
}

.btn-nav-cta {
  background-color: var(--color-hero-right);
  color: var(--color-white);
  padding: 8px 20px;
  font-size: 0.85rem;
}

.btn-nav-cta:hover {
  background-color: var(--color-dark-slate);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(103, 197, 176, 0.3);
}

.btn-primary-outline {
  background-color: transparent;
  border-color: var(--color-hero-right);
  color: var(--color-teal-accent);
  padding: 8px 20px;
  font-size: 0.85rem;
}

.btn-primary-outline:hover {
  background-color: var(--color-hero-right);
  color: var(--color-white);
}

.btn-block {
  display: flex;
  width: 100%;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--color-teal-light);
  color: var(--color-teal-accent);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.8rem;
  padding: 6px 16px;
  border-radius: var(--border-radius-pill);
  margin-bottom: 12px;
  border: 1px solid rgba(103, 197, 176, 0.3);
}

.badge-light {
  background-color: rgba(255, 255, 255, 0.2);
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.3);
}

/* ==========================================================================
   NAVIGATION HEADER
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  pointer-events: none; /* Let clicks pass through container gaps */
}

.navbar-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px;
}

.navbar {
  pointer-events: auto; /* Re-enable pointer events on nav itself */
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--color-white);
  border: 2px solid var(--color-hero-right);
  border-radius: var(--border-radius-pill);
  padding: 12px 32px;
  box-shadow: var(--shadow-md);
  transition: var(--transition-smooth);
}

/* Scrolled state applied via JS */
.navbar.scrolled {
  padding: 8px 24px;
  box-shadow: var(--shadow-lg);
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  transform: translateY(-5px); /* tightens layout slightly */
}

.nav-brand {
  display: flex;
  align-items: center;
}

.brand-logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
  display: block;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-dark-slate);
  position: relative;
  padding: 4px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-hero-right);
  transition: var(--transition-smooth);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: var(--color-teal-accent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 101;
}

.nav-toggle .bar {
  width: 100%;
  height: 2.5px;
  background-color: var(--color-dark-slate);
  border-radius: 2px;
  transition: var(--transition-smooth);
}

/* ==========================================================================
   HERO SECTION (SPLIT BACKGROUND)
   ========================================================================== */
.hero-section {
  display: flex;
  height: 100vh;
  min-height: 500px;
  max-height: 600px;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.hero-split {
  width: 50%;
  display: flex;
  align-items: center;
  box-sizing: border-box;
}

.hero-left {
  background-color: var(--color-hero-left);
  padding: 110px 6% 30px 8%;
  justify-content: flex-start;
  position: relative;
}

.hero-right {
  background-color: var(--color-hero-right);
  padding: 110px 8% 30px 6%;
  justify-content: flex-end;
  position: relative;
}

.hero-bg-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  width: 100%;
  max-width: 440px;
  z-index: 2;
  position: relative;
}

.hero-left-content h1 {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--color-dark-slate);
  line-height: 1.15;
  margin-bottom: 12px;
}

.hero-left-content h1 .text-highlight {
  color: var(--color-teal-accent);
  position: relative;
}

.hero-left-content p {
  font-size: 1rem;
  color: var(--color-text-body);
  margin-bottom: 24px;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Right content cards stack */
.hero-right-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.glass-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--border-radius-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-md);
  transition: var(--transition-smooth);
}

.glass-card:hover {
  transform: translateY(-5px) scale(1.02);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-lg);
}

/* Hero Image Slider (Smaller & Positioned Bottom-Right) */
.hero-slider {
  width: 220px;
  height: 290px;
  position: relative;
  top: 65px;
  left: 100px;
  overflow: hidden;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-premium);
  border: 4px solid var(--color-white);
  background-color: var(--color-white);
  z-index: 5;
  margin: 0;
}




.slider-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.slide.active {
  opacity: 1;
  z-index: 2;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: calc(var(--border-radius-lg) - 4px);
}

.slider-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: var(--transition-smooth);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.dot.active {
  background-color: var(--color-white);
  width: 20px;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Centered Phoropter Image */
.hero-image-wrapper {
  position: absolute;
  left: 50%;
  top: 54%;
  transform: translate(-50%, -50%);
  z-index: 1;
  width: 32vw;
  max-width: 380px;
  min-width: 250px;
  pointer-events: none; /* allow clicks to fall through to background if necessary */
  filter: drop-shadow(0 30px 60px rgba(26, 59, 50, 0.22));
  animation: float 6s ease-in-out infinite;
}

.hero-image-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  height: 90%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0) 70%);
  z-index: -1;
  opacity: 0.85;
}

.hero-image {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Custom Float Animation */
@keyframes float {
  0% {
    transform: translate(-50%, -50%) translateY(0px) rotate(0deg);
  }
  50% {
    transform: translate(-50%, -50%) translateY(-15px) rotate(1deg);
  }
  100% {
    transform: translate(-50%, -50%) translateY(0px) rotate(0deg);
  }
}

.icon-pulse {
  animation: pulse 2.5s infinite ease-in-out;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.8; }
}

/* Hero Statistics (Far Right of Hero Section) */
.hero-stats-vertical {
  position: absolute;
  right: 24px;
  top: 55%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 20;
}


.vstat {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius-md);
  padding: 10px 16px;
  min-width: 130px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.vstat:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateX(5px);
}

.vstat-num {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-white);
  line-height: 1.2;
}

.vstat-num .acc {
  color: var(--color-teal-light);
}

.vstat-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 1px;
}

.emergency-btn {
  border-color: rgba(76, 188, 72, 0.4) !important;
  color: var(--color-green-accent) !important;
}

.emergency-btn:hover {
  background-color: rgba(76, 188, 72, 0.1) !important;
}

/* ==========================================================================
   SECTION COMMON HEADER
   ========================================================================== */
.section-header {
  max-width: 600px;
  margin-bottom: 60px;
}

.section-header.align-center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-subtitle {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-hero-right);
  margin-bottom: 12px;
}

.section-subtitle.light-text {
  color: var(--color-hero-left);
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.section-header h2.light-text {
  color: var(--color-white);
}

.section-header p {
  font-size: 1.1rem;
  color: var(--color-text-body);
}

.section-header p.light-text-op {
  color: rgba(255, 255, 255, 0.8);
}

/* ==========================================================================
   TRUST SECTION (Four Decades of Legacy)
   ========================================================================== */
.trust-section {
  padding: 120px 0;
  background-color: var(--color-gray-light);
}

.trust-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.trust-stat-card {
  background-color: var(--color-white);
  border: 1px solid rgba(103, 197, 176, 0.15);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.trust-stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: var(--color-hero-right);
  transform: scaleX(0);
  transform-origin: center;
  transition: var(--transition-smooth);
}

.trust-stat-card:hover::before {
  transform: scaleX(1);
}

.trust-stat-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.trust-stat-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: var(--color-teal-light);
  color: var(--color-teal-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 24px;
  transition: var(--transition-smooth);
}

.trust-stat-card:hover .trust-stat-icon {
  background-color: var(--color-hero-right);
  color: var(--color-white);
  transform: scale(1.1);
}

.trust-stat-value {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--color-dark-slate);
  line-height: 1.1;
  margin-bottom: 8px;
}

.trust-stat-value span {
  font-size: 2rem;
  color: var(--color-hero-right);
}

.trust-stat-label {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ==========================================================================
   SERVICES SECTION (DARK ACCENT)
   ========================================================================== */
.services-section {
  padding: 120px 0;
  background-color: var(--color-dark-slate);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.service-item {
  display: flex;
  gap: 24px;
  padding: 30px;
  border-radius: var(--border-radius-lg);
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition-smooth);
}

.service-item:hover {
  background-color: rgba(255, 255, 255, 0.06);
  border-color: rgba(103, 197, 176, 0.3);
  transform: translateX(5px);
}

.service-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: rgba(103, 197, 176, 0.2);
  color: var(--color-hero-right);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  transition: var(--transition-smooth);
}

.service-item:hover .service-icon {
  background-color: var(--color-hero-right);
  color: var(--color-dark-slate);
}

.service-content h3 {
  color: var(--color-white);
  font-size: 1.25rem;
  margin-bottom: 8px;
  font-weight: 600;
}

.service-content p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

.service-tag {
  display: inline-block;
  margin-top: 10px;
  background-color: rgba(0, 176, 196, 0.15);
  color: var(--color-hero-right);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: var(--border-radius-pill);
  border: 1px solid rgba(0, 176, 196, 0.25);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* NABH badge in footer */
.f-nabh {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(0, 176, 196, 0.1);
  border: 1px solid rgba(0, 176, 196, 0.25);
  border-radius: 50px;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-hero-right);
  margin-top: 8px;
  margin-bottom: 16px;
}
.f-nabh i {
  color: var(--color-green-accent);
}

/* Emergency CTA in footer */
.f-emergency {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: rgba(76, 188, 72, 0.08);
  border: 1px solid rgba(76, 188, 72, 0.2);
  border-radius: var(--border-radius-md);
  margin-bottom: 18px;
  text-decoration: none;
  transition: var(--transition-smooth);
}
.f-emergency:hover {
  background: rgba(76, 188, 72, 0.15);
  border-color: rgba(76, 188, 72, 0.35);
  transform: translateY(-2px);
}
.f-emg-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  flex-shrink: 0;
  background: rgba(76, 188, 72, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-green-accent);
  font-size: 0.85rem;
}
.f-emg-text strong {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-green-accent);
}
.f-emg-text span {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
}

/* ==========================================================================
   TESTIMONIALS SECTION
   ========================================================================== */
.testimonials-section {
  padding: 120px 0;
  background-image: url('bg.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
}

/* Add a semi-transparent overlay for better text readability */
.testimonials-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(242, 250, 251, 0.88); /* Matches --color-gray-light with opacity */
  z-index: 1;
}

.testimonials-section .container {
  position: relative;
  z-index: 2;
}

.testimonials-slider {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.testimonials-section .glass-card {
  background-color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(103, 197, 176, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.stars {
  color: #F5A623;
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.quote {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--color-dark-slate);
  margin-bottom: 24px;
  line-height: 1.6;
}

.author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--color-teal-light);
  color: var(--color-teal-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.author-info h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-dark-slate);
}

.author-info span {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* ==========================================================================
   OUR TEAM SECTION
   ========================================================================== */
.team-section {
  padding: 120px 0;
  background-color: var(--color-white);
}

.team-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 50px;
  padding: 0 20px;
}

.team-card {
  background-color: var(--color-gray-light);
  border: 1px solid rgba(103, 197, 176, 0.15);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  max-width: 300px;
  width: 100%;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.team-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-hero-right);
}

.team-photo-wrapper {
  width: 100%;
  height: 300px;
  background: linear-gradient(135deg, var(--color-teal-light) 0%, rgba(103, 197, 176, 0.4) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 3px solid var(--color-white);
  position: relative;
}

.team-photo {
  font-size: 8rem;
  color: var(--color-hero-right);
  transition: var(--transition-smooth);
  filter: drop-shadow(0 4px 10px rgba(8, 47, 55, 0.15));
}

.team-card:hover .team-photo {
  transform: scale(1.06);
  color: var(--color-teal-accent);
}

.team-info {
  padding: 24px;
  text-align: center;
}

.team-info h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-dark-slate);
  margin-bottom: 6px;
}

.team-dept {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-teal-accent);
  margin-bottom: 12px;
}

.team-location {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.team-location i {
  color: var(--color-hero-right);
}

/* ==========================================================================
   OUR BRANCHES SECTION
   ========================================================================== */
.branches-section {
  padding: 120px 0;
  background-color: var(--color-gray-light);
}

.branches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
  padding: 0 20px;
}

.branch-card {
  background-color: var(--color-white);
  border: 1px solid rgba(103, 197, 176, 0.15);
  border-radius: var(--border-radius-lg);
  padding: 30px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-height: 280px;
}

.branch-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-hero-right);
}

.branch-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: var(--color-teal-light);
  color: var(--color-hero-right);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.branch-card:hover .branch-icon {
  background-color: var(--color-hero-right);
  color: var(--color-white);
  transform: scale(1.05);
}

.branch-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-dark-slate);
  margin-bottom: 12px;
}

.branch-address {
  font-size: 0.9rem;
  color: var(--color-text-body);
  line-height: 1.5;
  margin-bottom: 20px;
  flex-grow: 1;
}

.btn-branch-link {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-teal-accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-smooth);
}

.btn-branch-link:hover {
  color: var(--color-hero-right);
  transform: translateX(4px);
}

/* ==========================================================================
   BOOKING APPOINTMENT SECTION
   ========================================================================== */
.booking-section {
  padding: 120px 0;
  background: linear-gradient(135deg, var(--color-hero-left) 0%, #FFFFFF 100%);
}

.booking-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: center;
}

.booking-info h2 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 20px;
}

.booking-info p {
  font-size: 1.1rem;
  margin-bottom: 30px;
}

.booking-benefits {
  margin-bottom: 40px;
}

.booking-benefits li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-weight: 500;
  color: var(--color-dark-slate);
}

.booking-benefits li i {
  color: var(--color-hero-right);
  font-size: 1.1rem;
}

.booking-contact-quick {
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact-quick-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--color-dark-slate);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.quick-title {
  display: block;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  font-weight: 600;
}

.quick-value {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-dark-slate);
}

.booking-form-card {
  padding: 40px;
  background-color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.booking-form-card h3 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 24px;
  text-align: center;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-dark-slate);
  margin-bottom: 6px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--border-radius-sm);
  border: 1.5px solid rgba(26, 59, 50, 0.15);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-dark-slate);
  background-color: var(--color-white);
  transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-hero-right);
  box-shadow: 0 0 0 4px rgba(103, 197, 176, 0.15);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ==========================================================================
   FOOTER SECTION
   ========================================================================== */
.footer {
  background-color: #0E221D;
  color: rgba(255, 255, 255, 0.7);
  padding: 80px 0 30px 0;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr 1.3fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-col h4 {
  color: var(--color-white);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.brand-col p {
  margin-top: 16px;
  margin-bottom: 24px;
  line-height: 1.6;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
}

.footer-logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
  display: block;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.social-links a:hover {
  background-color: var(--color-hero-right);
  color: var(--color-dark-slate);
  transform: translateY(-3px);
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a:hover {
  color: var(--color-hero-right);
  padding-left: 4px;
}

.footer-hours li {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.footer-hours .emergency {
  margin-top: 16px;
  color: var(--color-hero-right);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-address p {
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.footer-address i {
  color: var(--color-hero-right);
  margin-top: 4px;
}

.footer-address a:hover {
  color: var(--color-hero-right);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 30px;
  text-align: center;
  font-size: 0.85rem;
}

.footer-bottom a:hover {
  color: var(--color-hero-right);
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */

/* Large Tablets / Laptops */
@media (max-width: 1024px) {
  html {
    font-size: 15px;
  }
  
  .hero-left-content h1 {
    font-size: 3rem;
  }
  
  .hero-image-wrapper {
    width: 40vw;
  }
  
  .trust-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .testimonials-slider {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .booking-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

/* ==========================================================================
   RESPONSIVE — TABLET HAMBURGER ONLY (≤ 991px)
   Only fix: show hamburger, collapse nav menu. Desktop hero stays intact.
   ========================================================================== */
@media (max-width: 991px) {

  .nav-toggle { display: flex; }

  .nav-menu {
    position: fixed;
    top: 90px;
    left: 16px;
    right: 16px;
    background-color: var(--color-white);
    border: 2px solid var(--color-hero-right);
    border-radius: var(--border-radius-lg);
    flex-direction: column;
    padding: 28px 24px;
    gap: 18px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: var(--transition-smooth);
    z-index: 99;
  }

  .nav-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-toggle.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle.active .bar:nth-child(2) { opacity: 0; }
  .nav-toggle.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* ==========================================================================
   RESPONSIVE — MOBILE (≤ 768px)
   Hero becomes ONE unified section. All grids go single column.
   ========================================================================== */
@media (max-width: 768px) {

  html { font-size: 15px; }
  .navbar { padding: 10px 18px; }
  .brand-logo-img { height: 40px; }

  /* ────────────────────────────────────────────────────────────
     HERO — completely unified single block on mobile
  ──────────────────────────────────────────────────────────── */
  .hero-section {
    display: block;           /* kill flexbox split */
    height: auto;
    min-height: auto;
    max-height: none;
    overflow: hidden;
    background: var(--color-hero-right);
    padding: 100px 24px 48px 24px;
    text-align: center;
    position: relative;
    z-index: 1;
  }

  /* Show the right panel for its background pattern, but hide its inner content */
  .hero-right { 
    display: block !important; 
    position: absolute !important;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0; pointer-events: none;
  }
  .hero-right-content { display: none !important; }

  /* Show and position the equipment image in center with white vignette */
  .hero-image-wrapper { 
    display: block !important; 
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 120% !important;
    max-width: 500px !important;
    z-index: 0 !important;
    pointer-events: none;
  }

  .hero-image-wrapper::after {
    content: '';
    position: absolute;
    inset: -10%;
    background: radial-gradient(circle, transparent 50%, rgba(0,0,0,0.2) 80%, rgba(0,0,0,0.5) 100%);
    pointer-events: none;
    border-radius: 50%;
  }

  .hero-image {
    opacity: 0.5;
  }

  /* Left panel becomes the full-width hero block */
  .hero-left {
    width: 100%;
    background: transparent !important;
    padding: 0;
    display: block;
    text-align: center;
    justify-content: center;
  }

  .hero-bg-pattern.left-pattern { display: none; }

  .hero-content.hero-left-content {
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    position: relative;
    z-index: 2;
  }

  /* Badge */
  .badge {
    font-size: 0.7rem;
    padding: 6px 14px;
    white-space: normal;
    text-align: center;
    line-height: 1.5;
    margin-bottom: 18px;
  }

  /* Heading */
  .hero-left-content h1 {
    font-size: 2.4rem;
    color: var(--color-white);
    text-shadow: 0 2px 10px rgba(0,0,0,0.25);
    margin-bottom: 10px;
    line-height: 1.2;
  }

  .hero-left-content .text-highlight {
    color: var(--color-white);
    text-decoration: underline;
    text-decoration-color: rgba(255,255,255,0.6);
    text-underline-offset: 4px;
  }

  /* Paragraph — remove the forced line breaks */
  .hero-left-content p {
    font-size: 0.94rem;
    line-height: 1.6;
    margin-bottom: 22px;
    color: var(--color-white) !important;
    text-shadow: 0 1px 6px rgba(0,0,0,0.25);
    opacity: 0.95;
  }
  .hero-left-content p br { display: none; }

  /* CTA buttons */
  .hero-actions {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    gap: 12px;
    margin-bottom: 0;
  }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-actions .btn-secondary {
    background-color: var(--color-white);
    color: var(--color-hero-right);
    border: 1px solid var(--color-white);
  }

  /* Stats — 2×2 grid inside hero section */
  .hero-stats-vertical {
    position: static;
    transform: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 100%;
    max-width: 400px;
    margin: 32px auto 0 auto;
    padding: 0;
    background: none;
  }

  .vstat {
    background: rgba(255,255,255,0.25);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: var(--border-radius-sm);
    padding: 8px 6px;
    text-align: center;
    min-width: 0;
    max-width: none;
    flex: none;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .vstat-num {
    font-size: 1.1rem;
    color: var(--color-dark-slate);
  }
  .vstat-num .acc { color: var(--color-dark-slate); opacity: 0.7; }
  .vstat-label {
    font-size: 0.6rem;
    color: var(--color-dark-slate);
    opacity: 0.75;
  }

  /* ────────────────────────────────────────────────────────────
     ALL OTHER SECTIONS
  ──────────────────────────────────────────────────────────── */
  .trust-section,
  .services-section,
  .team-section,
  .testimonials-section,
  .branches-section,
  .booking-section { padding: 60px 0; }

  .section-header { margin-bottom: 32px; }
  .section-header h2 { font-size: 1.8rem; }
  .section-header p  { font-size: 0.95rem; }

  .trust-stats-grid     { grid-template-columns: 1fr; gap: 16px; }
  .trust-stat-card      { padding: 26px 20px; }

  .services-grid        { grid-template-columns: 1fr; gap: 14px; }
  .service-item         { flex-direction: column; gap: 12px; padding: 20px 16px; }

  .branches-grid        { grid-template-columns: 1fr; gap: 14px; }
  .branch-card          { padding: 20px 18px; }

  .team-grid            { grid-template-columns: 1fr 1fr; gap: 14px; }

  .testimonials-slider  { grid-template-columns: 1fr; gap: 18px; }

  .booking-wrapper      { flex-direction: column; gap: 28px; }
  .booking-info h2      { font-size: 1.8rem; }
  .booking-form-card    { padding: 24px 18px; }
  .form-row             { grid-template-columns: 1fr; }

  .footer-grid          { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom        { flex-direction: column; gap: 10px; text-align: center; align-items: center; }
}

/* ==========================================================================
   RESPONSIVE — EXTRA SMALL (≤ 400px)
   ========================================================================== */
@media (max-width: 400px) {
  .hero-section         { padding: 90px 18px 40px 18px; }
  .hero-left-content h1 { font-size: 2rem; }
  .team-grid            { grid-template-columns: 1fr; }
  .section-header h2    { font-size: 1.55rem; }
}


