/* ============================================================
   247 Call Agent — Shared site styles
   Dark-mode aesthetic: navy / blue / green
   Fonts: Space Grotesk (headings) + Inter (body)
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:   #0A0F1E;
  --navy2:  #111827;
  --blue:   #2D6CFF;
  --blue-l: #5589FF;
  --green:  #00E87A;
  --white:  #FFFFFF;
  --grey:   #97A1B4;   /* slightly lighter than original #8892A4 for better contrast (WCAG) */
  --grey-l: #D1D8E5;
  --card:   #141C30;
  --radius: 12px;
  --ease:   cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h:  64px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--navy);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', sans-serif;
  line-height: 1.15;
}

img, svg {
  max-width: 100%;
}

img {
  height: auto;
  display: block;
}

/* Accessible focus states */
a:focus-visible,
button:focus-visible,
.nav-cta:focus-visible {
  outline: 2px solid var(--blue-l);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Skip link for keyboard / screen-reader users */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 200;
  background: var(--blue);
  color: var(--white);
  padding: 0.6rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; }

/* ── NAV ───────────────────────────────────────────── */
nav.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.05rem 5%;
  background: rgba(10,15,30,0.85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.logo span { color: var(--blue); }
.logo svg { width: 22px; height: 22px; }

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

.nav-links a {
  color: var(--grey-l);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s var(--ease);
}
.nav-links a:hover { color: var(--white); }

.nav-cta {
  background: var(--blue);
  color: var(--white) !important;
  padding: 0.5rem 1.2rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.2s var(--ease), transform 0.15s var(--ease);
}
.nav-cta:hover { background: var(--blue-l) !important; color: var(--white) !important; transform: translateY(-1px); }

/* Hamburger button — hidden on desktop */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav-toggle:hover { border-color: rgba(255,255,255,0.35); background: rgba(255,255,255,0.04); }
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile backdrop */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5,8,18,0.6);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
  z-index: 99;
}
.nav-backdrop.open { opacity: 1; visibility: visible; }

/* ── BUTTONS ───────────────────────────────────────── */
.btn-primary {
  background: var(--blue);
  color: var(--white);
  padding: 0.85rem 2rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  min-height: 44px;
  box-shadow: 0 6px 18px -8px rgba(45,108,255,0.6);
  transition: background 0.2s var(--ease), transform 0.15s var(--ease), box-shadow 0.2s var(--ease);
}
.btn-primary:hover { background: var(--blue-l); transform: translateY(-2px); box-shadow: 0 10px 26px -8px rgba(45,108,255,0.75); }
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: transparent;
  color: var(--white);
  padding: 0.85rem 2rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.2);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  min-height: 44px;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), transform 0.15s var(--ease);
}
.btn-secondary:hover { border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.05); transform: translateY(-2px); }

/* ── LIVE BADGE ────────────────────────────────────── */
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0,232,122,0.1);
  border: 1px solid rgba(0,232,122,0.3);
  border-radius: 100px;
  padding: 0.35rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--green);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.live-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(0,232,122,0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(0,232,122,0.5); }
  50%       { opacity: 0.5; transform: scale(0.75); box-shadow: 0 0 0 6px rgba(0,232,122,0); }
}

/* ── ICON CHIPS (SVG replacements for emoji) ───────── */
.icon-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border-radius: 12px;
  background: rgba(45,108,255,0.12);
  border: 1px solid rgba(45,108,255,0.25);
  color: var(--blue-l);
  margin-bottom: 0.9rem;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.icon-chip svg { width: 24px; height: 24px; stroke-width: 1.8; }
.icon-chip.green { background: rgba(0,232,122,0.1); border-color: rgba(0,232,122,0.25); color: var(--green); }

/* ── FOOTER ────────────────────────────────────────── */
footer.site-footer {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 2.5rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
footer.site-footer p { color: var(--grey); font-size: 0.85rem; }
footer.site-footer a { color: var(--grey); text-decoration: none; font-size: 0.85rem; transition: color 0.2s var(--ease); }
footer.site-footer a:hover { color: var(--white); }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; justify-content: center; }

/* ── SCROLL REVEAL ANIMATIONS ──────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
.reveal.in-view { opacity: 1; transform: none; }
.reveal.delay-1 { transition-delay: 0.08s; }
.reveal.delay-2 { transition-delay: 0.16s; }
.reveal.delay-3 { transition-delay: 0.24s; }

/* ── FAQ ACCORDION ─────────────────────────────────── */
.faq-item {
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.faq-q {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--white);
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  transition: color 0.2s var(--ease);
}
.faq-q:hover { color: var(--blue-l); }
.faq-icon {
  flex-shrink: 0;
  width: 22px; height: 22px;
  position: relative;
  transition: transform 0.3s var(--ease);
}
.faq-icon::before, .faq-icon::after {
  content: '';
  position: absolute;
  background: var(--blue);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), background 0.2s var(--ease);
}
.faq-icon::before { top: 50%; left: 3px; right: 3px; height: 2px; transform: translateY(-50%); }
.faq-icon::after  { left: 50%; top: 3px; bottom: 3px; width: 2px; transform: translateX(-50%); }
.faq-item.open .faq-icon::after { transform: translateX(-50%) scaleY(0); }
.faq-a {
  color: var(--grey-l);
  font-size: 0.93rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease), opacity 0.3s var(--ease), padding 0.35s var(--ease);
  opacity: 0;
}
.faq-item.open .faq-a { max-height: 320px; opacity: 1; padding-bottom: 1.25rem; }

/* ── RESPONSIVE ────────────────────────────────────── */

/* Tablet */
@media (max-width: 1024px) {
  section { padding-left: 6%; padding-right: 6%; }
}

/* Mobile / hamburger */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    padding: calc(var(--nav-h) + 1.5rem) 1.75rem 2rem;
    background: rgba(13,19,38,0.98);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-left: 1px solid rgba(255,255,255,0.08);
    box-shadow: -20px 0 50px -20px rgba(0,0,0,0.6);
    transform: translateX(105%);
    transition: transform 0.35s var(--ease);
    z-index: 101;
    overflow-y: auto;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    width: 100%;
    padding: 0.85rem 0.25rem;
    font-size: 1.05rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }
  .nav-links .nav-cta {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 0.75rem;
    padding: 0.85rem 1rem;
    font-size: 1rem;
    border-bottom: none;
  }

  footer.site-footer { flex-direction: column; text-align: center; }
}

/* Small phones */
@media (max-width: 480px) {
  .btn-group { width: 100%; }
  .btn-primary, .btn-secondary { width: 100%; }
}

/* ── REDUCED MOTION ────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .live-dot { animation: none; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}



/* ============================================================
   POPUP MODAL + SWIPEONE FORM
   ============================================================ */
body.so-modal-lock { overflow: hidden; }
.so-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.so-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(5, 8, 18, 0.72);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  opacity: 0;
  visibility: hidden;
  overflow-y: auto;
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
}
.so-modal-overlay.open { opacity: 1; visibility: visible; }

.so-modal-dialog {
  position: relative;
  width: 100%;
  max-width: 540px;
  margin: auto;
  background: #ffffff;
  border-radius: 16px;
  padding: 2.25rem;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6);
  transform: translateY(18px) scale(0.97);
  opacity: 0;
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}
.so-modal-overlay.open .so-modal-dialog { transform: none; opacity: 1; }

.so-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  border: none;
  border-radius: 50%;
  color: #4b5563;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}
.so-modal-close:hover { background: #e5e7eb; color: #111827; transform: rotate(90deg); }
.so-modal-close:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; }
.so-modal-close svg { width: 18px; height: 18px; }

.so-modal-head { margin-bottom: 1.5rem; padding-right: 2.5rem; }
.so-modal-head h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #0A0F1E;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}
.so-modal-head p { color: #6b7280; font-size: 0.92rem; line-height: 1.5; }

/* Form layout */
.so-modal-form { font-family: 'Inter', system-ui, sans-serif; }
.so-grid { display: flex; flex-wrap: wrap; gap: 16px; }
.so-col-half { width: calc(50% - 8px); }
.so-col-full { width: 100%; }

.so-modal-form label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  margin-bottom: 5px;
}
.so-modal-form label .req { color: #ef4444; margin-left: 2px; }

.so-modal-form input,
.so-modal-form select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  color: #111827;
  background: #fff;
  box-sizing: border-box;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.so-modal-form input::placeholder { color: #9ca3af; }
.so-modal-form input:focus,
.so-modal-form select:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.so-phone-row { display: flex; gap: 8px; }
.so-phone-row select { width: 140px; flex-shrink: 0; }
.so-phone-row input { flex: 1; }

.so-submit {
  width: 100%;
  margin-top: 18px;
  padding: 12px 20px;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  min-height: 46px;
  transition: background 0.2s var(--ease), transform 0.15s var(--ease);
}
.so-submit:hover { background: #1d4ed8; transform: translateY(-1px); }
.so-submit:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }

.so-err { color: #ef4444; font-size: 13px; margin-top: 10px; }

/* Toast */
.so-toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px 24px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  max-width: 420px;
}
.so-toast.show { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.so-toast-icon {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: #dcfce7;
  color: #16a34a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.so-toast-msg { font-size: 14px; color: #374151; line-height: 1.4; }

/* Modal responsive */
@media (max-width: 540px) {
  .so-modal-dialog { padding: 1.75rem 1.25rem; border-radius: 14px; }
  .so-col-half { width: 100%; }
  .so-phone-row { flex-direction: column; }
  .so-phone-row select { width: 100%; }
  .so-modal-head h3 { font-size: 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  .so-modal-dialog { transition: opacity 0.2s; transform: none; }
  .so-modal-close:hover { transform: none; }
}



/* ============================================================
   HEADER PHONE NUMBER + LIVE AGENT INDICATOR
   ============================================================ */
.nav-actions { display: flex; align-items: center; gap: 1.75rem; }

.nav-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  padding: 0.4rem 0.9rem;
  border: 1px solid rgba(0, 232, 122, 0.28);
  border-radius: 999px;
  background: rgba(0, 232, 122, 0.07);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), transform 0.2s var(--ease);
}
.nav-phone:hover {
  border-color: rgba(0, 232, 122, 0.55);
  background: rgba(0, 232, 122, 0.12);
  transform: translateY(-1px);
}
.nav-phone:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.nav-phone-info { display: inline-flex; flex-direction: column; line-height: 1.15; }
.nav-phone-num {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--green);
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.live-tag {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--grey, #9aa3b2);
}

/* Pulsing green live dot */
.live-pip {
  position: relative;
  width: 9px;
  height: 9px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(0, 232, 122, 0.7);
  animation: navLivePulse 2s cubic-bezier(0.66, 0, 0, 1) infinite;
}
@keyframes navLivePulse {
  0%   { box-shadow: 0 0 0 0 rgba(0, 232, 122, 0.65); }
  70%  { box-shadow: 0 0 0 9px rgba(0, 232, 122, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 232, 122, 0); }
}

/* Mobile: keep the phone visible (menu links hide), simplify the badge */
@media (max-width: 768px) {
  .nav-actions { gap: 0; }
  .nav-phone { padding: 0.4rem 0.75rem; gap: 0.5rem; }
  .nav-phone-num { font-size: 0.82rem; }
  .live-tag { display: none; }
}
@media (max-width: 400px) {
  .nav-phone-num { font-size: 0.78rem; }
}

@media (prefers-reduced-motion: reduce) {
  .live-pip { animation: none; box-shadow: 0 0 0 3px rgba(0, 232, 122, 0.25); }
}
