/* =============================================================
   COMPONENTS.CSS — Navbar · Hero · Trust · Services · Stats
                    Why · Coverage · Emergency · FAQ · Blog
                    Contact · Footer · Modal · Float · StickyBar
   Elite Care Ambulance — elitecare-ambulance.com
   ============================================================= */

/* ===== NAVBAR ===== */
.nav {
  position: fixed;
  top: 0; right: 0; left: 0;
  height: 68px;
  background: rgba(4, 17, 30, 0);
  border-bottom: 1px solid transparent;
  z-index: 1000;
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition:
    background 0.35s var(--ease),
    border-color 0.35s var(--ease),
    height 0.3s var(--ease);
  will-change: background;
}

.nav.scrolled {
  background: rgba(4, 17, 30, 0.96);
  border-color: rgba(255, 255, 255, 0.07);
  height: 60px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--white);
  font-family: var(--fn);
  font-weight: 900;
}

.brand-logo {
  width: 40px; height: 40px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand-logo img { width: 100%; height: 100%; object-fit: cover; }
.brand-logo-fallback { font-size: 1.3rem; }

.brand-name { font-size: 1rem; line-height: 1.2; }
.brand-name em { color: var(--gold); font-style: normal; }
.brand-sub { font-size: 0.68rem; color: rgba(255,255,255,0.38); font-weight: 400; font-family: var(--fb); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-family: var(--fn);
  font-size: 0.82rem;
  font-weight: 600;
  transition: color 0.2s;
  position: relative;
  padding-bottom: 2px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; right: 0; left: 0;
  height: 1.5px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s var(--ease);
}

.nav-links a:hover { color: #fff; }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-cta {
  background: var(--red) !important;
  color: #fff !important;
  padding: 9px 18px;
  border-radius: var(--r8);
  font-weight: 800 !important;
  transition: all 0.25s var(--ease) !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover {
  background: var(--red-d) !important;
  transform: translateY(-1px) !important;
  box-shadow: var(--sh-red) !important;
}

.live-dot {
  width: 7px; height: 7px;
  background: #22C55E;
  border-radius: 50%;
  animation: pulse 1.8s ease-in-out infinite;
}

/* ===== HERO ===== */
.hero {
  min-height: 100svh;
  position: relative;
  display: flex;
  align-items: center;
  padding: 100px 5% 80px;
  background: var(--navy);
  overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; overflow: hidden; }

.hero-mesh {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 800px 600px at 80% 40%, rgba(225,29,72,0.1) 0%, transparent 65%),
    radial-gradient(ellipse 500px 400px at 5% 80%, rgba(201,168,76,0.05) 0%, transparent 60%);
}

.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.016) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.016) 1px, transparent 1px);
  background-size: 56px 56px;
}

.hero-ambulance {
  position: absolute;
  left: -4%; bottom: 0;
  width: clamp(300px, 45vw, 660px);
  opacity: 0.08;
  pointer-events: none;
  user-select: none;
}
.hero-ambulance img { width: 100%; height: auto; display: block; }

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 660px;
  animation: heroIn 0.9s var(--ease) both;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(225,29,72,0.12);
  border: 1px solid rgba(225,29,72,0.28);
  color: #FCA5A5;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--fn);
  letter-spacing: 0.04em;
  margin-bottom: 24px;
  animation: heroIn 0.9s 0.1s var(--ease) both;
}

.hero h1 {
  font-family: var(--fn);
  font-size: clamp(1.85rem, 4.2vw, 3rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.22;
  margin-bottom: 20px;
  animation: heroIn 0.9s 0.2s var(--ease) both;
}
.hero h1 .accent { color: var(--red); }

.hero-desc {
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  color: rgba(255, 255, 255, 0.56);
  line-height: 1.9;
  margin-bottom: 36px;
  max-width: 540px;
  animation: heroIn 0.9s 0.3s var(--ease) both;
}
.hero-desc strong { color: rgba(255,255,255,0.82); }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 52px;
  animation: heroIn 0.9s 0.4s var(--ease) both;
}

.hero-stats {
  display: flex;
  gap: 0;
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 32px;
  flex-wrap: wrap;
  animation: heroIn 0.9s 0.5s var(--ease) both;
}

.hstat { padding: 0 36px 0 0; }
.hstat:not(:last-child) { border-left: 1px solid rgba(255,255,255,0.07); margin-left: 36px; }
.hstat-val { font-family: var(--fn); font-size: 1.9rem; font-weight: 900; color: #fff; line-height: 1; }
.hstat-val b { color: var(--red); }
.hstat-lbl { font-size: 0.7rem; color: rgba(255,255,255,0.38); margin-top: 5px; }

/* ===== TRUST BAR ===== */
.trust {
  background: var(--red);
  padding: 16px 5%;
  overflow: hidden;
}

.trust-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 22px;
  color: #fff;
  font-family: var(--fn);
  font-size: 0.84rem;
  font-weight: 700;
  opacity: 0;
  animation: fadeUp 0.5s var(--ease) forwards;
}

/* stagger trust items via nth-child on odd (actual items skip dividers) */
.trust-item:nth-child(1)  { animation-delay: 0.1s; }
.trust-item:nth-child(3)  { animation-delay: 0.2s; }
.trust-item:nth-child(5)  { animation-delay: 0.3s; }
.trust-item:nth-child(7)  { animation-delay: 0.4s; }
.trust-item:nth-child(9)  { animation-delay: 0.5s; }

.trust-div { width: 1px; height: 18px; background: rgba(255,255,255,0.2); }

/* ===== SERVICES ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--g200);
  border-radius: var(--r20);
  padding: 32px 26px;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0; left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--red-d));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--sh-md);
  border-color: var(--red-brd);
}
.service-card:hover::after { transform: scaleX(1); }

.service-icon {
  width: 56px; height: 56px;
  background: var(--red-bg);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 18px;
  transition: transform 0.3s var(--ease);
}
.service-card:hover .service-icon { transform: scale(1.1) rotate(-4deg); }

.service-badge {
  position: absolute;
  top: 18px; left: 18px;
  background: var(--navy);
  color: rgba(255,255,255,0.85);
  font-size: 0.66rem;
  font-weight: 700;
  font-family: var(--fn);
  padding: 4px 10px;
  border-radius: 50px;
  letter-spacing: 0.03em;
}

.service-card h3 { font-family: var(--fn); font-size: 1.05rem; font-weight: 800; color: var(--g800); margin-bottom: 8px; }
.service-card p  { color: var(--g600); font-size: 0.85rem; line-height: 1.82; }

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 14px;
  color: var(--red);
  font-family: var(--fn);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: gap 0.25s var(--ease);
}
.service-card:hover .service-link { gap: 10px; }

/* ===== STATS ===== */
.stats-section {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 100%);
  padding: 72px 5%;
  position: relative;
  overflow: hidden;
}
.stats-section::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 600px 400px at 50% 50%, rgba(225,29,72,0.07) 0%, transparent 65%);
  pointer-events: none;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  position: relative;
  z-index: 1;
}

.stat-item {
  text-align: center;
  padding: 32px 20px;
  border-left: 1px solid rgba(255,255,255,0.06);
}
.stat-item:first-child { border-left: none; }

.stat-number {
  font-family: var(--fn);
  font-size: 2.6rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-number .accent { color: var(--red); }
.stat-label { color: rgba(255,255,255,0.4); font-size: 0.8rem; }

/* ===== WHY US ===== */
.why-section { background: var(--off); padding: 88px 5%; }

.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }

.why-text .chip { margin-bottom: 14px; }
.why-text h2 { font-family: var(--fn); font-size: clamp(1.6rem, 2.8vw, 2.2rem); font-weight: 900; color: var(--g800); margin-bottom: 12px; line-height: 1.3; }
.why-text h2 .accent { color: var(--red); }
.why-text p { color: var(--g600); font-size: 0.95rem; line-height: 1.9; margin-bottom: 18px; }

.why-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  padding: 13px 26px;
  border-radius: var(--r8);
  font-family: var(--fn);
  font-weight: 800;
  font-size: 0.9rem;
  transition: all 0.25s var(--ease);
  min-height: 48px;
}
.why-cta:hover { background: var(--red-d); transform: translateY(-2px); box-shadow: var(--sh-red); }

.why-feats { display: flex; flex-direction: column; gap: 14px; }

.why-feat {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--white);
  border: 1px solid var(--g200);
  border-radius: var(--r14);
  padding: 20px 18px;
  transition: all 0.28s var(--ease);
}
.why-feat:hover { box-shadow: var(--sh-md); transform: translateX(-4px); border-color: var(--red-brd); }

.feat-icon {
  width: 44px; height: 44px; min-width: 44px;
  background: var(--red-bg);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  transition: transform 0.3s var(--ease);
}
.why-feat:hover .feat-icon { transform: scale(1.1) rotate(-5deg); }

.why-feat h4 { font-family: var(--fn); font-weight: 800; font-size: 0.93rem; color: var(--g800); margin-bottom: 3px; }
.why-feat p  { color: var(--g600); font-size: 0.82rem; line-height: 1.72; }

/* ===== COVERAGE ===== */
.coverage-section {
  background: linear-gradient(150deg, var(--navy) 0%, #060F1C 100%);
  padding: 88px 5%;
  position: relative;
  overflow: hidden;
}
.coverage-section::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 700px 500px at 50% 100%, rgba(225,29,72,0.06) 0%, transparent 65%);
  pointer-events: none;
}

.coverage-section .chip   { background: rgba(225,29,72,0.14); color: #FCA5A5; border-color: rgba(225,29,72,0.2); }
.coverage-section h2      { color: #fff; }
.coverage-section .section-desc { color: rgba(255,255,255,0.45); }

.coverage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  position: relative;
  z-index: 1;
}

.coverage-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--r14);
  padding: 26px 16px;
  text-align: center;
  transition: all 0.28s var(--ease);
  cursor: default;
}
.coverage-card:hover { background: rgba(225,29,72,0.1); border-color: rgba(225,29,72,0.28); transform: translateY(-4px); }

.coverage-card .ci { font-size: 1.8rem; display: block; margin-bottom: 9px; transition: transform 0.3s var(--ease); }
.coverage-card:hover .ci { transform: scale(1.12); }

.coverage-card h4 { font-family: var(--fn); font-weight: 800; color: #fff; font-size: 0.9rem; margin-bottom: 3px; }
.coverage-card p  { color: rgba(255,255,255,0.35); font-size: 0.72rem; }
.coverage-card.featured { background: rgba(225,29,72,0.1); border-color: rgba(225,29,72,0.25); }

.cov-note { text-align: center; margin-top: 28px; position: relative; z-index: 1; color: rgba(255,255,255,0.28); font-size: 0.78rem; }

/* ===== EMERGENCY CTA ===== */
.emergency-cta {
  background: linear-gradient(135deg, #7F1D1D 0%, var(--red-d) 45%, var(--red) 100%);
  padding: 88px 5%;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.emergency-cta::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle 600px at 50% 50%, rgba(255,255,255,0.05) 0%, transparent 70%);
  pointer-events: none;
}

.emg-rings { position: absolute; inset: 0; pointer-events: none; }
.emg-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.05);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: ringOut 4s ease-out infinite;
}
.emg-ring:nth-child(1) { width: 280px; height: 280px; animation-delay: 0s; }
.emg-ring:nth-child(2) { width: 480px; height: 480px; animation-delay: 1.3s; }
.emg-ring:nth-child(3) { width: 680px; height: 680px; animation-delay: 2.6s; }

.emergency-cta h2 {
  font-family: var(--fn);
  font-size: clamp(1.7rem, 3.8vw, 2.7rem);
  font-weight: 900;
  color: #fff;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}
.emergency-cta > p {
  color: rgba(255,255,255,0.76);
  font-size: 1rem;
  margin-bottom: 44px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}

.emg-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

/* ===== FAQ ACCORDION ===== */
.faq-section { padding: 88px 5%; background: var(--white); }

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--g200);
  border-radius: var(--r14);
  overflow: hidden;
  transition: border-color 0.25s var(--ease);
}
.faq-item.open { border-color: var(--red-brd); }

.faq-btn {
  width: 100%;
  text-align: right;
  padding: 18px 20px;
  background: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--fn);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--g800);
  transition: background 0.2s;
}
.faq-btn:hover { background: var(--off); }

.faq-chevron {
  width: 28px; height: 28px; min-width: 28px;
  border-radius: 50%;
  background: var(--g100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: var(--g600);
  transition: transform 0.3s var(--ease), background 0.2s;
}
.faq-item.open .faq-chevron { transform: rotate(180deg); background: var(--red-bg); color: var(--red); }

.faq-body { padding: 0 20px 18px; color: var(--g600); font-size: 0.88rem; line-height: 1.85; }
.faq-body[hidden] { display: none; }

/* ===== BLOG ===== */
.blog-section { padding: 88px 5%; background: var(--off); }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 20px;
}

.blog-card {
  background: var(--white);
  border: 1px solid var(--g200);
  border-radius: var(--r14);
  overflow: hidden;
  transition: all 0.28s var(--ease);
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); border-color: rgba(225,29,72,0.12); }

.blog-thumb {
  height: 156px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  position: relative;
  overflow: hidden;
}
.blog-thumb-bg { position: absolute; inset: 0; transition: transform 0.5s var(--ease); }
.blog-card:hover .blog-thumb-bg { transform: scale(1.05); }

.blog-thumb-1 { background: linear-gradient(135deg, #0C1C36, #1A3561); }
.blog-thumb-2 { background: linear-gradient(135deg, #1A0A0A, #4A1010); }
.blog-thumb-3 { background: linear-gradient(135deg, #0A1A12, #0F3D24); }
.blog-thumb span { position: relative; z-index: 1; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3)); }

.blog-body { padding: 20px 18px; }

.blog-cat {
  display: inline-block;
  background: var(--red-bg);
  color: var(--red);
  font-size: 0.67rem;
  font-weight: 700;
  font-family: var(--fn);
  padding: 3px 9px;
  border-radius: 50px;
  margin-bottom: 9px;
}

.blog-card h3 { font-family: var(--fn); font-size: 0.93rem; font-weight: 800; color: var(--g800); margin-bottom: 8px; line-height: 1.5; }
.blog-card p  { color: var(--g600); font-size: 0.82rem; line-height: 1.78; margin-bottom: 12px; }

.blog-read {
  color: var(--red);
  font-family: var(--fn);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: gap 0.25s var(--ease);
}
.blog-card:hover .blog-read { gap: 10px; }

/* ===== CONTACT ===== */
.contact-section { padding: 88px 5%; background: var(--white); }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.contact-card {
  background: var(--white);
  border-radius: var(--r14);
  padding: 24px 20px;
  border: 1px solid var(--g200);
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: all 0.28s var(--ease);
}
.contact-card:hover { box-shadow: var(--sh-md); transform: translateY(-3px); border-color: var(--red-brd); }

.contact-icon {
  width: 48px; height: 48px; min-width: 48px;
  background: var(--red-bg);
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  transition: transform 0.3s var(--ease);
}
.contact-card:hover .contact-icon { transform: scale(1.1) rotate(-5deg); }

.contact-label { font-family: var(--fn); font-weight: 700; font-size: 0.7rem; color: var(--g400); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }
.contact-val a,
.contact-val p { color: var(--g800); text-decoration: none; font-weight: 700; font-size: 0.95rem; font-family: var(--fn); display: block; transition: color 0.2s; }
.contact-val a:hover { color: var(--red); }
.contact-hint { color: var(--g400); font-size: 0.72rem; margin-top: 2px; }

/* ===== FOOTER ===== */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.45);
  padding: 56px 5% 32px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 52px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 24px;
}

.footer-brand-name {
  font-family: var(--fn);
  font-size: 1.05rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.fbrand-dot { width: 8px; height: 8px; background: var(--red); border-radius: 50%; animation: pulse 2s ease-in-out infinite; }

.footer-about { font-size: 0.8rem; line-height: 1.88; color: rgba(255,255,255,0.35); }

.footer-col h5 { font-family: var(--fn); font-weight: 800; color: #fff; font-size: 0.83rem; margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-col ul li a { color: rgba(255,255,255,0.38); text-decoration: none; font-size: 0.8rem; transition: color 0.2s; display: inline-flex; align-items: center; gap: 5px; }
.footer-col ul li a:hover { color: #fff; }

.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.footer-copy { font-size: 0.72rem; color: rgba(255,255,255,0.2); }
.footer-copy .gold { color: var(--gold); }
.footer-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.ftag { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); color: rgba(255,255,255,0.3); padding: 3px 11px; border-radius: 50px; font-size: 0.68rem; font-weight: 700; font-family: var(--fn); }

/* ===== EMERGENCY MODAL ===== */
.modal-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(4, 17, 30, 0.88);
  z-index: 2000;
  align-items: flex-end;
  justify-content: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.modal-overlay.open { display: flex; animation: modalFadeIn 0.2s ease; }

.modal-sheet {
  background: var(--white);
  border-radius: var(--r32) var(--r32) 0 0;
  width: 100%;
  max-width: 560px;
  padding: 28px 24px 40px;
  position: relative;
  animation: modalUp 0.38s var(--ease-spring);
  max-height: 90svh;
  overflow-y: auto;
}

.modal-handle { width: 36px; height: 4px; background: var(--g200); border-radius: 50px; margin: 0 auto 24px; }

.modal-close {
  position: absolute;
  top: 20px; left: 20px;
  width: 34px; height: 34px;
  background: var(--g100);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.2s;
  color: var(--g800);
}
.modal-close:hover { background: var(--g200); transform: scale(1.1); }

.modal-head { text-align: center; margin-bottom: 24px; }
.modal-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--red-bg);
  color: var(--red);
  padding: 5px 13px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--fn);
  margin-bottom: 10px;
}
.modal-head h3 { font-family: var(--fn); font-weight: 900; font-size: 1.2rem; color: var(--g800); margin-bottom: 5px; }
.modal-head p  { color: var(--g600); font-size: 0.85rem; }

.form-group { margin-bottom: 16px; }
.form-label { display: block; font-family: var(--fn); font-weight: 700; font-size: 0.82rem; color: #374151; margin-bottom: 6px; }
.form-input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--g200);
  border-radius: var(--r8);
  font-family: var(--fb);
  font-size: 0.93rem;
  color: var(--g800);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  direction: rtl;
}
.form-input:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(225,29,72,0.1); }

.loc-btn {
  width: 100%;
  padding: 13px;
  border: 1.5px dashed var(--red-brd);
  border-radius: var(--r8);
  background: var(--red-bg);
  cursor: pointer;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--fn);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--red);
  transition: all 0.22s var(--ease);
  margin-bottom: 6px;
}
.loc-btn:hover { background: rgba(225,29,72,0.12); border-color: rgba(225,29,72,0.4); transform: translateY(-1px); }
.loc-btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

.loc-status { font-size: 0.77rem; font-family: var(--fn); color: var(--g600); text-align: center; min-height: 18px; transition: all 0.2s; }
.loc-status.ok  { color: var(--green); }
.loc-status.err { color: var(--red); }

.loc-fallback {
  display: none;
  margin-top: 14px;
  padding: 14px;
  background: var(--off);
  border-radius: var(--r8);
  border: 1px solid var(--g200);
}
.loc-fallback p { font-family: var(--fn); font-size: 0.79rem; color: var(--g600); margin-bottom: 10px; font-weight: 700; }
.loc-fallback-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.submit-btn {
  width: 100%;
  padding: 15px;
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: var(--r8);
  cursor: pointer;
  font-family: var(--fn);
  font-weight: 800;
  font-size: 0.97rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.22s var(--ease);
  margin-top: 18px;
  min-height: 52px;
}
.submit-btn:hover { background: var(--red-d); transform: translateY(-1px); box-shadow: var(--sh-red); }

.modal-alts { display: flex; gap: 8px; margin-top: 12px; }
.modal-alt {
  flex: 1;
  padding: 11px;
  border-radius: var(--r8);
  text-decoration: none;
  font-family: var(--fn);
  font-weight: 700;
  font-size: 0.82rem;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s;
}
.modal-alt-call { background: var(--red-bg); color: var(--red); }
.modal-alt-call:hover { background: rgba(225,29,72,0.16); }
.modal-alt-wa { background: #F0FDF4; color: var(--green); }
.modal-alt-wa:hover { background: rgba(22,163,74,0.14); }

.modal-success { display: none; text-align: center; padding: 20px 0; }
.modal-success .si { font-size: 3rem; display: block; margin-bottom: 12px; }
.modal-success h4 { font-family: var(--fn); font-weight: 900; font-size: 1.15rem; color: var(--g800); margin-bottom: 7px; }
.modal-success p  { color: var(--g600); font-size: 0.85rem; margin-bottom: 20px; }

/* ===== FLOATING BUTTON ===== */
.float-btn {
  position: fixed;
  left: 20px; bottom: 88px;
  z-index: 998;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  padding: 13px 22px;
  border-radius: 50px;
  font-family: var(--fn);
  font-weight: 800;
  font-size: 0.85rem;
  box-shadow: var(--sh-red);
  transition: all 0.25s var(--ease);
  border: none;
  cursor: pointer;
  min-height: 48px;
  animation: floatGlow 3s ease-in-out infinite;
}
.float-btn:hover { transform: scale(1.06); background: var(--red-d); }

.float-pulse {
  width: 8px; height: 8px;
  background: rgba(255,255,255,0.88);
  border-radius: 50%;
  animation: pulse 1.3s ease-in-out infinite;
}

/* ===== STICKY BAR (mobile) ===== */
.sticky-bar {
  position: fixed;
  bottom: 0; right: 0; left: 0;
  background: var(--navy);
  border-top: 2px solid var(--red);
  z-index: 999;
  display: none;
  padding: 10px 12px;
  gap: 10px;
  /* iOS safe area */
  padding-bottom: max(10px, env(safe-area-inset-bottom));
}

.sticky-bar a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 12px 10px;
  border-radius: var(--r8);
  text-decoration: none;
  font-family: var(--fn);
  font-weight: 800;
  font-size: 0.83rem;
  transition: all 0.2s;
  min-height: 48px;
}
.sticky-call { background: var(--red); color: #fff; }
.sticky-call:hover { background: var(--red-d); }
.sticky-wa { background: var(--green); color: #fff; }
.sticky-wa:hover { background: #15803D; }
/* تنسيق وعاء الفيديو المخفي */
.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: none; /* هذا هو السطر الأهم لإخفائه في البداية */
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px); /* لمسة سينمائية ناعمة */
}

/* تنسيق زر الإغلاق */
.close-video {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}