/* ==========================================================================
   MEDICAL CUSCO - CSS DESIGN SYSTEM & UI/UX STYLING (BRAND COLOR SCHEME)
   ========================================================================== */

:root {
  /* Brand Colors from logo.png */
  --brand-red: #e1251b;        /* Pure vibrant logo red */
  --brand-red-dark: #b91c1c;   /* Crimson logo shade for active/hover */
  --brand-red-light: #fef2f2;  /* Soft wash red for highlight background */
  
  /* Primary Slate Colors */
  --navy-deep: #0b132b;
  --navy-medium: #151d33;
  --navy-light: #2c3a57;
  
  --white: #ffffff;
  --gray-bg: #f8fafc;
  --gray-light: #f1f5f9;
  --gray-border: #e2e8f0;
  
  --text-dark: #0f172a;
  --text-muted: #475569;
  --text-light: #94a3b8;
  
  /* Fonts */
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  
  /* Spacings */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 12px 24px -6px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 24px 48px -12px rgba(15, 23, 42, 0.12);
  --shadow-primary: 0 10px 25px -5px rgba(225, 37, 27, 0.25);
  --shadow-wa: 0 12px 32px rgba(37, 211, 102, 0.3);
  
  /* Transitions */
  --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
}

/* Language Visibility Toggles */
html.lang-en .lang-es { display: none !important; }
html.lang-es .lang-en { display: none !important; }

/* Reset and Global Elements */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  color: var(--text-dark);
  background-color: var(--white);
  scroll-behavior: smooth;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

img {
  max-width: 100%;
  display: block;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--gray-bg);
}
::-webkit-scrollbar-thumb {
  background: var(--navy-light);
  border-radius: var(--radius-sm);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--brand-red);
}

/* Grid & Layout Containers */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Dynamic Animation Reveal Rules */
.reveal {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   NAVBAR (Dark & Glassmorphic for logo.png integration)
   ========================================================================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: rgba(11, 19, 43, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 85px;
  transition: var(--transition-smooth);
}

/* Navbar shadow on scroll trigger */
.navbar-scrolled {
  height: 75px;
  box-shadow: var(--shadow-md);
  background: rgba(11, 19, 43, 0.98);
}

.nav-logo {
  display: flex;
  align-items: center;
}

.logo-img-file {
  height: 52px;
  display: block;
  object-fit: contain;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 36px;
}

.nav-links a {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  position: relative;
  padding: 8px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2.5px;
  background-color: var(--brand-red);
  border-radius: 2px;
  transition: var(--transition-fast);
}

.nav-links a:hover {
  color: var(--white);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

/* Bilingual switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  padding: 6px 12px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
}

.globe-icon {
  color: rgba(255, 255, 255, 0.5);
  margin-right: 2px;
}

.lang {
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: var(--transition-fast);
}

.lang:hover {
  color: var(--white);
}

.lang.active {
  color: var(--white);
  background: var(--brand-red);
}

.lang-sep {
  color: rgba(255, 255, 255, 0.3);
  font-weight: 400;
}

/* Phone Nav Call Button */
.btn-nav-call {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 50px;
  background: rgba(225, 37, 27, 0.1);
  color: var(--white);
  font-weight: 700;
  font-size: 14px;
  border: 1.5px solid var(--brand-red);
}

.btn-nav-call:hover {
  background: var(--brand-red);
  color: var(--white);
  box-shadow: var(--shadow-primary);
}

/* Hamburger toggle */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 1000;
}

.hamburger span {
  width: 26px;
  height: 2.5px;
  background: var(--white);
  display: block;
  border-radius: 2px;
  transition: var(--transition-fast);
}

/* Hamburger active transformation */
.hamburger.open span:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
}


/* ==========================================================================
   HERO SECTION (Visual Impact Layout)
   ========================================================================== */

.hero {
  min-height: 100vh;
  position: relative;
  background: url('https://images.unsplash.com/photo-1584516150909-c43483ee7932?w=1400&q=80') center/cover no-repeat;
  display: flex;
  align-items: center;
  padding-top: 100px;
  color: var(--white);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(11, 19, 43, 0.92) 0%, rgba(11, 19, 43, 0.8) 50%, rgba(225, 37, 27, 0.25) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  padding: 60px 40px;
  margin-left: 5%;
}

/* Breathing indicator dot */
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-red);
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(225, 37, 27, 0.7);
  animation: breathe 2s infinite;
}

.pulse-dot.red {
  background: var(--brand-red);
  box-shadow: 0 0 0 0 rgba(225, 37, 27, 0.7);
  animation: breathe 2s infinite;
}

@keyframes breathe {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(225, 37, 27, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(225, 37, 27, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(225, 37, 27, 0); }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
}

.hero h1 {
  font-size: clamp(38px, 5.5vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  font-family: var(--font-sans);
  letter-spacing: -1px;
}

.hero h1 span {
  color: var(--brand-red);
  background: linear-gradient(to right, #ff6b6b, var(--brand-red));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.6;
  margin-bottom: 40px;
  color: rgba(255, 255, 255, 0.85);
  max-width: 680px;
  font-weight: 400;
}

.hero-btns {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

/* Premium Buttons Styling */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: 2px solid transparent;
}

.btn-dark {
  background: var(--brand-red);
  color: var(--white);
  box-shadow: var(--shadow-primary);
}

.btn-dark:hover {
  background: var(--brand-red-dark);
  transform: translateY(-3px);
  box-shadow: 0 15px 30px -10px rgba(225, 37, 27, 0.4);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.1);
  border: 2.5px solid var(--white);
  color: var(--white);
  backdrop-filter: blur(5px);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--navy-deep);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.btn-light-outline {
  background: transparent;
  color: var(--white);
  border: 2.5px solid rgba(255, 255, 255, 0.35);
}

.btn-light-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
  transform: translateY(-3px);
}

.hero-features {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 24px;
  max-width: 780px;
}

.hero-features span {
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  gap: 8px;
}

.check-svg {
  color: var(--brand-red);
  flex-shrink: 0;
}

/* Floating Indicator at bottom */
.hero-scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  z-index: 2;
  transition: var(--transition-fast);
}

.hero-scroll-indicator svg {
  animation: float-down 2s infinite;
}

.hero-scroll-indicator:hover {
  color: var(--white);
}

@keyframes float-down {
  0% { transform: translateY(0); }
  50% { transform: translateY(6px); }
  100% { transform: translateY(0); }
}


/* ==========================================================================
   HOW IT WORKS (Two-Column Interactive Scroll)
   ========================================================================== */

.how-it-works {
  padding: 120px 0;
  background: var(--white);
}

.how-it-works .container {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 80px;
  align-items: start;
}

/* Left Column Sticky Panel */
.hiw-left {
  position: sticky;
  top: 130px;
}

.hiw-left h2 {
  font-size: clamp(34px, 4.5vw, 48px);
  font-weight: 900;
  line-height: 1.1;
  color: var(--navy-deep);
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.hiw-left p {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.7;
}

.divider {
  border: none;
  border-top: 3px solid var(--brand-red);
  margin: 30px 0;
  width: 80px;
  border-radius: 2px;
}

.hiw-side-card {
  background: var(--gray-bg);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-md);
  padding: 28px;
  margin-top: 40px;
}

.badge-mini {
  display: inline-block;
  background: var(--brand-red-light);
  color: var(--brand-red-dark);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.hiw-side-card h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy-deep);
  margin-bottom: 8px;
}

.hiw-side-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Right Column Steps Scroll */
.hiw-right {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.hiw-step {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 28px;
  align-items: start;
  background: var(--white);
  padding: 10px;
}

.step-num {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  background: var(--brand-red);
  color: var(--white);
  box-shadow: var(--shadow-primary);
  flex-shrink: 0;
}

.step-content h3 {
  font-size: 24px;
  font-weight: 800;
  color: var(--navy-deep);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.step-content p {
  color: var(--text-muted);
  font-size: 15.5px;
  line-height: 1.7;
  margin-bottom: 24px;
}

.step-img-wrapper {
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.step-img {
  width: 100%;
  height: 290px;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.hiw-step:hover .step-img {
  transform: scale(1.04);
}


/* ==========================================================================
   CONDITIONS SECTION (Premium Interactive Cards)
   ========================================================================== */

.conditions {
  padding: 120px 0;
  background: var(--gray-bg);
}

.conditions-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 60px;
  gap: 40px;
}

.sub-badge {
  display: inline-block;
  color: var(--brand-red);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.conditions-header h2 {
  font-size: clamp(34px, 4.5vw, 44px);
  font-weight: 900;
  line-height: 1.1;
  color: var(--navy-deep);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
  max-width: 620px;
}

.conditions-header p {
  color: var(--text-muted);
  font-size: 16px;
  max-width: 520px;
}

.pulse-icon-wrapper {
  background: var(--white);
  padding: 16px;
  border-radius: 50%;
  box-shadow: var(--shadow-md);
}

.pulse-svg {
  stroke-dasharray: 100;
  animation: draw-pulse 5s linear infinite;
}

@keyframes draw-pulse {
  0% { stroke-dashoffset: 200; }
  100% { stroke-dashoffset: 0; }
}

/* Cards Grid */
.conditions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.condition-card {
  background: var(--white);
  padding: 36px 30px;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-border);
  border-left: 5px solid var(--brand-red);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.condition-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-left-color: var(--navy-light);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  gap: 12px;
}

.card-top h3 {
  font-size: 19px;
  font-weight: 800;
  color: var(--navy-deep);
  line-height: 1.3;
  letter-spacing: -0.2px;
}

.card-icon-arrow {
  font-size: 18px;
  color: var(--text-light);
  transition: var(--transition-fast);
}

.condition-card:hover .card-icon-arrow {
  color: var(--brand-red);
  transform: translateX(4px);
}

.condition-card > p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 24px;
}

.symptoms-label {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--navy-light);
  margin-bottom: 8px;
  border-bottom: 1px solid var(--gray-light);
  padding-bottom: 6px;
}

.symptoms {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.6;
}


/* ==========================================================================
   BENEFITS SECTION (Premium Grid & Photography Layer)
   ========================================================================== */

.benefits {
  padding: 120px 0;
  background: var(--white);
}

.benefits-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
}

/* Image Column Overlay Panel */
.benefits-img-col {
  position: relative;
}

.benefits-photo {
  width: 100%;
  height: 600px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.benefits-card-overlay {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.bco-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--brand-red);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.benefits-card-overlay h3 {
  font-size: 22px;
  font-weight: 900;
  color: var(--navy-deep);
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}

.benefits-card-overlay p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Right Column Features Checklist */
.benefits-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.benefit-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.benefit-check {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand-red-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.benefit-item h4 {
  font-size: 19px;
  font-weight: 800;
  color: var(--navy-deep);
  margin-bottom: 6px;
  letter-spacing: -0.2px;
}

.benefit-item p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}


/* ==========================================================================
   INSURANCE REIMBURSEMENT (Parallax Dark Block)
   ========================================================================== */

.insurance {
  position: relative;
  background: linear-gradient(rgba(11, 19, 43, 0.88), rgba(11, 19, 43, 0.82)), url('https://images.unsplash.com/photo-1450101499163-c8848c66ca85?w=1400&q=80') center/cover;
  padding: 130px 40px;
  text-align: center;
  color: var(--white);
}

.insurance-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, transparent 20%, var(--navy-deep) 110%);
  z-index: 1;
  pointer-events: none;
}

.ins-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin: 0 auto;
}

.ins-check-big {
  width: 64px;
  height: 64px;
  border: 2.5px solid var(--brand-red);
  background: rgba(225, 37, 27, 0.1);
  color: var(--brand-red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
}

.ins-content h2 {
  font-size: clamp(34px, 4.5vw, 46px);
  font-weight: 800;
  margin-bottom: 24px;
  letter-spacing: -0.5px;
}

.ins-content p {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
}


/* ==========================================================================
   TESTIMONIALS (Glowing Cards & Avatars)
   ========================================================================== */

.testimonials {
  padding: 120px 0;
  background: var(--white);
}

.testimonials-header {
  text-align: center;
  margin-bottom: 60px;
}

.testimonials-header h2 {
  font-size: clamp(34px, 4.5vw, 44px);
  font-weight: 900;
  color: var(--navy-deep);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.test-subtitle {
  color: var(--text-muted);
  font-size: 16px;
  font-weight: 500;
}

/* Grids Masonry-Style */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}

.test-card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-md);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.test-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(225, 37, 27, 0.2);
}

.stars {
  color: #fbbf24;
  font-size: 17px;
  margin-bottom: 20px;
  letter-spacing: 3px;
}

.test-card p {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 28px;
}

.test-author {
  display: flex;
  align-items: center;
  gap: 14px;
  border-top: 1px solid var(--gray-light);
  padding-top: 18px;
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-red) 0%, var(--navy-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 17px;
  color: var(--white);
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.test-author strong {
  display: block;
  font-size: 14.5px;
  color: var(--navy-deep);
  font-weight: 700;
}

.test-author span {
  font-size: 12px;
  color: var(--text-light);
  font-weight: 600;
}


/* ==========================================================================
   FAQ SECTION (Smooth Height Accordions)
   ========================================================================== */

.faq {
  padding: 120px 0;
  background: var(--gray-bg);
}

.faq-inner {
  max-width: 860px;
  margin: 0 auto;
}

.faq-header {
  text-align: center;
  margin-bottom: 60px;
}

.faq-header h2 {
  font-size: clamp(34px, 4.5vw, 44px);
  font-weight: 900;
  color: var(--navy-deep);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.faq-subtitle {
  color: var(--text-muted);
  font-size: 16px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-smooth);
  overflow: hidden;
}

.faq-item:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(225, 37, 27, 0.2);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 30px;
  font-size: 16.5px;
  font-weight: 700;
  color: var(--navy-deep);
}

.faq-icon {
  font-size: 24px;
  color: var(--text-light);
  font-weight: 300;
  transition: var(--transition-fast);
}

.faq-item.open {
  border-color: var(--brand-red);
  box-shadow: var(--shadow-md);
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  color: var(--brand-red);
}

.faq-answer {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.4s ease-out;
  padding: 0 30px;
}

.faq-item.open .faq-answer {
  max-height: 500px;
  opacity: 1;
  padding-bottom: 24px;
}

.faq-answer p {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.7;
}


/* ==========================================================================
   EMERGENCY CTA BLOCK (Deep Urgency)
   ========================================================================== */

.emergency {
  padding: 100px 24px;
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy-medium) 100%);
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.emergency::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(225, 37, 27, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.emg-inner {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.emg-badge {
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  padding: 8px 18px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.emergency h2 {
  font-size: clamp(32px, 4.5vw, 46px);
  font-weight: 900;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}

.emg-desc {
  font-size: 16.5px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 38px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.emg-btns {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.emg-btns .btn-dark {
  background: var(--brand-red);
}

.emg-btns .btn-dark:hover {
  background: var(--brand-red-dark);
  box-shadow: 0 12px 28px rgba(225, 37, 27, 0.4);
}


/* ==========================================================================
   FOOTER (High Quality Elements)
   ========================================================================== */

.footer {
  background: var(--white);
  padding: 80px 24px 0;
  border-top: 1px solid var(--gray-border);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 50px;
  border-bottom: 1px solid var(--gray-border);
  align-items: start;
}

.footer-logo {
  font-size: 18px;
  font-weight: 950;
  letter-spacing: 3px;
  color: var(--navy-deep);
  margin-bottom: 14px;
}

.footer-col p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 320px;
}

.footer-center {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-dark);
  font-size: 15px;
  font-weight: 700;
}

.footer-icon-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gray-bg);
  border: 1px solid var(--gray-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-red);
}

.footer-right {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.footer-contact-link {
  display: flex;
  flex-direction: column;
}

.footer-contact-link strong {
  font-size: 16.5px;
  color: var(--navy-deep);
  font-weight: 800;
  transition: var(--transition-fast);
}

.footer-contact-link:hover strong {
  color: var(--brand-red);
}

.footer-contact-link span {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 2px;
}

.footer-bottom {
  padding: 30px 0;
  text-align: center;
  font-size: 13.5px;
  color: var(--text-light);
  font-weight: 500;
}


/* ==========================================================================
   FLOATING WHATSAPP CHAT WIDGET
   ========================================================================== */

.whatsapp-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
}

/* Circular Floating Button */
.wa-floating-btn {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background-color: #25d366;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-wa);
  position: relative;
  transition: var(--transition-smooth);
  animation: pulse-wa 2s infinite;
}

.wa-floating-btn svg {
  width: 32px;
  height: 32px;
}

.wa-floating-btn:hover {
  transform: scale(1.1) rotate(8deg);
  background-color: #20ba5a;
}

/* Badge for unread */
.wa-badge-unread {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--brand-red);
  color: var(--white);
  font-size: 11px;
  font-weight: 800;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--white);
  box-shadow: var(--shadow-sm);
}

@keyframes pulse-wa {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
  75% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Dialogue Prompt Bubble */
.wa-bubble-prompt {
  width: 310px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-border);
  overflow: hidden;
  display: none; /* Controlled by JS */
  transform: translateY(20px);
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.wa-bubble-prompt.show {
  display: block;
  transform: translateY(0);
  opacity: 1;
}

.wa-bubble-header {
  background: #075e54;
  color: var(--white);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

.wa-header-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.wa-header-info h5 {
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.2;
}

.wa-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #25d366;
  display: inline-block;
  margin-right: 2px;
}

.wa-header-info span {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
}

.wa-close-btn {
  position: absolute;
  top: 14px;
  right: 16px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 20px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.wa-close-btn:hover {
  color: var(--white);
}

.wa-bubble-body {
  padding: 20px;
  background: #efeae2;
  font-size: 13px;
  color: var(--text-dark);
  line-height: 1.5;
}

.wa-bubble-body p {
  background: var(--white);
  padding: 10px 14px;
  border-radius: 0 var(--radius-md) var(--radius-md) var(--radius-md);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.wa-bubble-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #25d366;
  color: var(--white);
  font-size: 13.5px;
  font-weight: 700;
  padding: 12px;
  text-align: center;
  transition: var(--transition-fast);
}

.wa-bubble-cta:hover {
  background: #20ba5a;
}


/* ==========================================================================
   RESPONSIVE DESIGN (Adaptive Grid Layouts)
   ========================================================================== */

@media (max-width: 1080px) {
  .navbar {
    padding: 0 24px;
  }
  .nav-links {
    gap: 24px;
  }
  .how-it-works .container,
  .benefits-inner {
    gap: 50px;
  }
}

@media (max-width: 960px) {
  /* Hamburger Menu Activation */
  .hamburger {
    display: flex;
  }
  
  .nav-links {
    position: absolute;
    top: 85px;
    left: 0;
    right: 0;
    background: var(--navy-deep);
    flex-direction: column;
    gap: 0;
    box-shadow: var(--shadow-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: var(--transition-smooth);
    padding: 0;
  }
  
  .nav-links.open {
    max-height: 400px;
    opacity: 1;
    padding: 20px 40px;
  }
  
  .nav-links li {
    width: 100%;
  }
  
  .nav-links a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  
  .nav-links li:last-child a {
    border-bottom: none;
  }

  .nav-actions {
    margin-right: 20px;
  }

  /* Two-column layout collapse */
  .how-it-works .container {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  
  .hiw-left {
    position: static;
  }
  
  .benefits-inner {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  
  .benefits-photo {
    height: 480px;
  }
}

@media (max-width: 768px) {
  .navbar {
    height: 75px;
  }
  .nav-links {
    top: 75px;
  }
  .hero-content {
    margin-left: 0;
    padding: 40px 20px;
  }
  
  .conditions-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  
  .pulse-icon-wrapper {
    align-self: flex-end;
  }
  
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .footer-center {
    justify-content: flex-start;
  }
  
  .whatsapp-widget {
    bottom: 20px;
    right: 20px;
  }
}

@media (max-width: 580px) {
  .nav-actions {
    display: none; /* Keep switcher inside menu on extreme small devices or swap */
  }
  
  .navbar.open-mobile-actions .nav-actions {
    display: flex;
  }
  
  .hero-btns {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
  
  .emg-btns {
    flex-direction: column;
    gap: 14px;
  }
  
  .hiw-step {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .step-num {
    width: 46px;
    height: 46px;
    font-size: 18px;
  }
  
  .step-img {
    height: 220px;
  }
  
  .benefits-photo {
    height: 380px;
  }
  
  .benefits-card-overlay {
    padding: 20px;
    left: 16px;
    right: 16px;
    bottom: 16px;
  }
}