/* ==========================================================================
   XAll Marketing — Landing page styles
   Built on the design-system tokens (styles.css → tokens/*). Visual source of
   truth: xall-design-system. Colors are locked: navy only in hero + final CTA,
   green only on the primary CTA, electric blue for accents, light everywhere else.
   ========================================================================== */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--t-body-size);
  line-height: var(--t-body-lh);
  color: var(--text-body);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: rgba(0,102,255,0.16); }
img { max-width: 100%; display: block; }
a { color: var(--text-link); }

/* ---------- Layout ---------- */
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--pad-desktop); }
.section { position: relative; padding: 112px 0; }
.section.alt { background: var(--bg-light); }
.section-head { max-width: 62ch; margin: 0 0 48px; }
.eyebrow {
  font-family: var(--font-display); font-weight: var(--fw-bold);
  font-size: var(--t-eyebrow-size); letter-spacing: var(--t-eyebrow-ls);
  text-transform: uppercase; color: var(--blue-600); margin: 0 0 14px;
}
.section-title {
  font-family: var(--font-display); font-weight: var(--fw-extrabold);
  font-size: var(--t-section-size); line-height: var(--t-section-lh);
  letter-spacing: var(--t-section-ls); color: var(--text-heading); margin: 0 0 18px;
}
.lead { font-size: var(--t-bodylg-size); line-height: var(--t-bodylg-lh); color: var(--text-muted); margin: 0; }
.muted { color: var(--text-muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-display); font-weight: var(--fw-bold);
  font-size: var(--t-button-size); letter-spacing: var(--t-button-ls); line-height: 1;
  cursor: pointer; border-radius: var(--radius-md); border: 0; padding: 16px 26px;
  min-height: 52px; text-decoration: none; white-space: nowrap;
  transition: transform var(--dur-fast) var(--ease-out), background var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out), color var(--dur-base);
}
.btn i, .btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--green-500); color: var(--navy-900); box-shadow: var(--shadow-cta); }
.btn-primary:hover { background: var(--green-600); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:focus-visible { outline: 3px solid rgba(0,217,126,0.45); outline-offset: 2px; }
.btn-secondary { background: var(--white); color: var(--navy-900); border: 1.5px solid var(--border-strong); box-shadow: var(--shadow-xs); }
.btn-secondary:hover { border-color: var(--blue-600); color: var(--blue-700); }
.btn-secondary:focus-visible { outline: 3px solid rgba(0,102,255,0.4); outline-offset: 2px; }
.btn-secondary.on-dark { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.32); box-shadow: none; }
.btn-secondary.on-dark:hover { border-color: var(--white); background: rgba(255,255,255,0.06); color: var(--white); }
.btn-block { width: 100%; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.86); backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; gap: 24px; height: 78px; }
.brand { display: flex; align-items: center; gap: 13px; text-decoration: none; margin-right: auto; }
.brand .logo {
  position: relative; width: 46px; height: 46px; border-radius: 13px;
  background: linear-gradient(155deg, #16324F 0%, #0A1628 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.10);
  display: grid; place-items: center; color: var(--green-500);
  font-family: var(--font-display); font-weight: 800; font-size: 25px; letter-spacing: -0.02em; flex: none;
}
.brand .logo::after {
  content: ""; position: absolute; bottom: -2px; right: -2px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--green-500); border: 2.5px solid var(--white);
}
.brand .bn { font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: -0.015em; color: var(--navy-900); white-space: nowrap; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a {
  font-family: var(--font-display); font-weight: var(--fw-semibold); font-size: 15.5px;
  color: var(--ink-700); text-decoration: none; white-space: nowrap; transition: color var(--dur-base);
}
.nav-links a:hover { color: var(--blue-600); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav .btn { padding: 11px 18px; min-height: 0; font-size: 15px; }
.nav-phone { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--navy-900); text-decoration: none; }
.nav-phone i { width: 16px; height: 16px; color: var(--blue-600); }

/* ---------- Hero (navy — allowed dark area 1 of 2) — cinematic full-bleed ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: center;
  min-height: clamp(560px, 80vh, 780px);
  background: var(--navy-900);
}
/* Full-bleed background media layer (image now; <video> can drop in — see HTML). */
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media-img, .hero-media-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
/* Dark navy overlay: deepest on the left for headline legibility, lighter toward
   the right so the photo reads; extra darkening top/bottom for premium depth. */
.hero-overlay {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(10,22,40,0.93) 0%, rgba(10,22,40,0.84) 30%, rgba(10,22,40,0.58) 62%, rgba(10,22,40,0.40) 100%),
    linear-gradient(180deg, rgba(10,22,40,0.40) 0%, rgba(10,22,40,0) 26%, rgba(10,22,40,0) 64%, rgba(10,22,40,0.42) 100%);
}
.hero .container { position: relative; z-index: 2; width: 100%; }
.hero-inner { max-width: 640px; color: #fff; padding: 56px 0; }
/* Kept off green so the green CTA stays the only "go" signal (per locked rule). */
.hero .kicker {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-display); font-weight: 700; font-size: 13px;
  letter-spacing: 0.14em; text-transform: uppercase; color: #fff;
  margin-bottom: 22px; padding: 7px 14px 7px 12px; border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.16);
}
.hero .kicker::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--blue-600); box-shadow: 0 0 0 3px rgba(0,102,255,0.30); }
.hero h1 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(38px, 5.9vw, 62px); line-height: 1.03; letter-spacing: -0.025em; margin: 0 0 20px;
  text-shadow: 0 2px 24px rgba(10,22,40,0.45);
}
.hero .subhead { font-size: 19px; line-height: 1.55; color: rgba(255,255,255,0.86); margin: 0 0 32px; max-width: 46ch; text-shadow: 0 1px 16px rgba(10,22,40,0.35); }
.hero .cta-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.hero .cta-micro { display: flex; align-items: flex-start; gap: 8px; margin: 22px 0 0; font-size: 14.5px; line-height: 1.55; color: rgba(255,255,255,0.72); max-width: 46ch; }
.hero .cta-micro i { width: 16px; height: 16px; color: var(--blue-600); flex: none; margin-top: 2px; }

/* Trust row — navy strip integral to the hero area */
.trust { position: relative; z-index: 1; background: var(--navy-800); border-top: 1px solid rgba(255,255,255,0.09); }
.trust .row { display: flex; align-items: stretch; }
.trust .item { flex: 1; display: flex; align-items: center; gap: 13px; padding: 22px 26px; color: #fff; font-size: 15px; font-weight: 600; border-left: 1px solid rgba(255,255,255,0.08); }
.trust .item:first-child { border-left: 0; padding-left: 0; }
.trust .item .ck { width: 32px; height: 32px; border-radius: 10px; background: rgba(0,217,126,0.16); display: grid; place-items: center; flex: none; }
.trust .item .ck i { width: 16px; height: 16px; color: var(--green-500); stroke-width: 3; }

/* ---------- Problem / empathy ---------- */
.problem .prose { max-width: 60ch; }
.problem .prose p { font-size: 19px; line-height: 1.6; color: var(--ink-700); margin: 0 0 18px; }
.problem .prose p:last-child { margin-bottom: 0; }
.problem .prose strong { color: var(--text-heading); font-weight: 700; }

/* ---------- Service cards ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--grid-gap); }
.card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 30px 28px; box-shadow: var(--shadow-sm);
  transition: box-shadow var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card .icon-tile { width: 52px; height: 52px; border-radius: 13px; background: var(--blue-100); display: grid; place-items: center; margin-bottom: 18px; }
.card .icon-tile i { width: 26px; height: 26px; color: var(--blue-600); }
.card h3 { font-family: var(--font-display); font-weight: 700; font-size: var(--t-cardtitle-size); line-height: var(--t-cardtitle-lh); margin: 0 0 10px; color: var(--text-heading); }
.card p { margin: 0; font-size: 16px; line-height: 1.62; color: var(--text-muted); }

/* ---------- Process timeline ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; position: relative; }
.steps::before { content: ""; position: absolute; top: 30px; left: 16%; right: 16%; height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--blue-600), rgba(0,102,255,0.35)); }
.step { position: relative; margin-top: 30px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 46px 28px 30px; box-shadow: var(--shadow-xs); }
.section.alt .step { background: var(--bg-light); }
.step .num { position: absolute; top: -30px; left: 28px; width: 60px; height: 60px; border-radius: 50%; background: var(--blue-600); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 24px; box-shadow: 0 8px 18px rgba(0,102,255,0.32), 0 0 0 6px var(--bg-light); }
.step .seb { font-family: var(--font-display); font-weight: 700; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue-600); margin-bottom: 8px; }
.step h3 { font-family: var(--font-display); font-weight: 700; font-size: 19px; margin: 0 0 8px; color: var(--text-heading); }
.step p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--text-muted); }

/* ---------- Why work with us ---------- */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.reason { display: flex; gap: 16px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px 26px; box-shadow: var(--shadow-xs); }
.reason .ic { width: 44px; height: 44px; border-radius: 11px; background: var(--blue-100); display: grid; place-items: center; flex: none; }
.reason .ic i { width: 22px; height: 22px; color: var(--blue-600); }
.reason h3 { font-family: var(--font-display); font-weight: 700; font-size: 17px; margin: 2px 0 6px; color: var(--text-heading); }
.reason p { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--text-muted); }
.center-cta { margin-top: 44px; display: flex; justify-content: center; }

/* ---------- Simple plan ---------- */
.plan-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md); padding: 56px clamp(28px, 5vw, 64px); text-align: center; max-width: 820px; margin: 0 auto;
}
.plan-card .eyebrow { justify-content: center; }
.plan-card h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(28px, 4vw, 38px); line-height: 1.12; letter-spacing: -0.02em; color: var(--text-heading); margin: 0 0 18px; }
.plan-card p { font-size: 18px; line-height: 1.6; color: var(--text-muted); margin: 0 auto 28px; max-width: 58ch; }
.plan-card .support { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; font-size: 15px; font-weight: 600; color: var(--ink-700); }
.plan-card .support i { width: 16px; height: 16px; color: var(--blue-600); }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 12px; max-width: 820px; margin: 0 auto; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--white); overflow: hidden; transition: border-color var(--dur-base); box-shadow: var(--shadow-xs); }
.faq-item[open] { border-color: var(--blue-600); box-shadow: var(--shadow-sm); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px; min-height: 44px; font-family: var(--font-display); font-weight: 600; font-size: 18px; color: var(--text-heading); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .toggle { width: 28px; height: 28px; border-radius: 7px; background: var(--blue-50); display: grid; place-items: center; flex: none; transition: background var(--dur-base); }
.faq-item .toggle i { width: 17px; height: 17px; color: var(--blue-600); }
.faq-item[open] .toggle { background: var(--blue-600); }
.faq-item[open] .toggle i { color: #fff; }
.faq-item .toggle .minus { display: none; }
.faq-item[open] .toggle .plus { display: none; }
.faq-item[open] .toggle .minus { display: block; }
.faq-item .body { padding: 0 24px 24px; font-size: 16px; line-height: 1.72; color: var(--ink-700); max-width: 70ch; }
.faq-item .body a { color: var(--blue-600); font-weight: 600; }

/* ---------- Final CTA (navy — allowed dark area 2 of 2) ---------- */
.final-cta { background: var(--cta-band-bg); color: #fff; }
.final-cta .grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.final-cta .eyebrow { color: rgba(255,255,255,0.66); }
.final-cta h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(30px, 4.4vw, 42px); line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 14px; }
.final-cta .sub { font-size: 19px; line-height: 1.5; color: rgba(255,255,255,0.82); margin: 0 0 30px; max-width: 42ch; }
.final-cta .ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.final-cta .or-call { margin: 22px 0 0; font-size: 14px; color: rgba(255,255,255,0.6); }
.final-cta .or-call a { color: rgba(255,255,255,0.9); font-weight: 600; }

/* Backup form */
.form-card { background: var(--white); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow-lg); }
.form-card .fc-title { font-family: var(--font-display); font-weight: 700; font-size: 19px; margin: 0 0 4px; color: var(--text-heading); }
.form-card .fc-sub { font-size: 14px; color: var(--ink-500); margin: 0 0 20px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-family: var(--font-body); font-size: var(--t-label-size); font-weight: var(--fw-semibold); color: var(--ink-700); margin-bottom: 7px; }
.field .req { color: var(--blue-600); }
.field input, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: 15px; color: var(--text-body);
  padding: 13px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  background: var(--bg-light); transition: border-color var(--dur-base), background var(--dur-base), box-shadow var(--dur-base);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue-600); background: #fff; box-shadow: 0 0 0 3px rgba(0,102,255,0.12); }
.field textarea { resize: vertical; min-height: 96px; }
.form-card .btn-primary { margin-top: 4px; }
.form-status { font-size: 13.5px; line-height: 1.5; margin: 14px 0 0; text-align: center; min-height: 1em; }
.form-status.is-error { color: #C53030; }
.form-status.is-ok { color: var(--green-600); }
.form-card .micro { font-size: 12px; color: var(--ink-400); text-align: center; margin: 12px 0 0; }

/* ---------- Footer (light — keeps navy reserved for hero + final CTA) ---------- */
.site-footer { background: var(--white); border-top: 1px solid var(--border); padding: 48px 0 36px; }
.footer-top { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 28px 48px; justify-content: space-between; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand .logo {
  position: relative; width: 38px; height: 38px; border-radius: 11px;
  background: linear-gradient(155deg, #16324F 0%, #0A1628 100%);
  display: grid; place-items: center; color: var(--green-500);
  font-family: var(--font-display); font-weight: 800; font-size: 20px; flex: none;
}
.footer-brand .fn { font-family: var(--font-display); font-weight: 800; font-size: 17px; color: var(--navy-900); }
.footer-brand .ft { font-size: 12px; color: var(--ink-500); margin-top: 2px; }
.footer-contact { display: flex; flex-direction: column; gap: 10px; }
.footer-contact a { display: inline-flex; align-items: center; gap: 9px; color: var(--ink-700); text-decoration: none; font-size: 15px; font-weight: 600; }
.footer-contact a:hover { color: var(--blue-600); }
.footer-contact a i { width: 17px; height: 17px; color: var(--blue-600); }
.footer-social { display: flex; gap: 12px; }
.footer-social a { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border); display: grid; place-items: center; color: var(--ink-700); transition: border-color var(--dur-base), color var(--dur-base); }
.footer-social a:hover { border-color: var(--blue-600); color: var(--blue-600); }
.footer-social svg { width: 19px; height: 19px; fill: currentColor; }
.footer-bottom { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; }
.footer-bottom p { margin: 0; font-size: 13px; color: var(--ink-500); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-nav a { font-size: 13px; color: var(--ink-500); text-decoration: none; }
.footer-nav a:hover { color: var(--blue-600); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .container { padding: 0 var(--pad-tablet); }
  .nav-phone { display: none; }   /* redundant with the CTA at narrower widths */
  .hero { min-height: clamp(520px, 72vh, 680px); }
}
@media (max-width: 880px) {
  .section { padding: 64px 0; }
  .container { padding: 0 var(--pad-mobile); }
  .nav-links, .nav-phone { display: none; }
  .cards-3, .why-grid, .final-cta .grid { grid-template-columns: 1fr; }

  /* Hero: full-bleed image stays as the background; copy sits over it.
     Overlay gets a vertical bias so the headline stays readable on small screens. */
  .hero { min-height: auto; }
  .hero-inner { max-width: none; padding: 64px 0 72px; }
  .hero h1 { font-size: 34px; }
  .hero-overlay {
    background: linear-gradient(180deg, rgba(10,22,40,0.68) 0%, rgba(10,22,40,0.54) 42%, rgba(10,22,40,0.82) 100%);
  }

  .trust .row { flex-direction: column; }
  .trust .item { border-left: 0; border-top: 1px solid rgba(255,255,255,0.08); padding-left: 0; }
  .trust .item:first-child { border-top: 0; }

  .steps { grid-template-columns: 1fr; gap: 40px; }
  .steps::before { display: none; }
  .step { margin-top: 36px; }

  .final-cta .grid { gap: 36px; }
  .section-title { font-size: 30px; }
}
@media (max-width: 480px) {
  .hero .cta-row .btn, .final-cta .ctas .btn { width: 100%; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
