/* =============================================================================
   AP Tax & Multiservices — Landing page
   Brand: navy primary (#1e3a6e) + gold accent (#cda434), matching the logo.
   Self-contained, responsive, no external dependencies.
   ========================================================================== */

:root {
  --brand: #1e3a6e;
  --brand-600: #16294f;
  --brand-700: #0f1f3d;
  --brand-050: #eef2f9;
  --ink: #16264a;
  --ink-soft: #3a4a6b;
  --muted: #6b7896;
  --gold: #cda434;
  --gold-600: #a8841c;
  --gold-bright: #ecc94b;
  --accent: var(--gold);
  --accent-600: var(--gold-600);
  --success: #1f9d57;
  --bg: #f4f6fb;
  --surface: #ffffff;
  --surface-2: #f8fafd;
  --line: rgba(22, 38, 74, 0.10);
  --line-strong: rgba(22, 38, 74, 0.16);
  --shadow-sm: 0 2px 8px rgba(22, 38, 74, 0.06);
  --shadow-md: 0 12px 32px rgba(22, 38, 74, 0.10);
  --shadow-lg: 0 30px 70px rgba(15, 31, 61, 0.22);
  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1180px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  overflow-x: clip; /* guard against any transformed/absolute element forcing horizontal scroll on mobile */
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; color: var(--ink); }
p { margin: 0; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--gold-600);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--gold); border-radius: 2px; }
.section { padding: 96px 0; }
.section-head { max-width: 660px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin: 14px 0 12px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: inherit; font-size: 0.98rem; font-weight: 650;
  padding: 13px 24px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-700) 100%);
  box-shadow: 0 10px 24px rgba(30, 58, 110, 0.30);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(30, 58, 110, 0.42); }
.btn-accent {
  color: var(--brand-700);
  background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold) 100%);
  box-shadow: 0 10px 24px rgba(205, 164, 52, 0.34);
}
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(205, 164, 52, 0.46); }
.btn-ghost { color: var(--ink); background: var(--surface); border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--brand); color: var(--brand); }
.btn-light { color: var(--brand-700); background: #fff; }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(0,0,0,0.22); }
.btn-outline-light { color: #fff; border-color: rgba(255,255,255,0.4); background: rgba(255,255,255,0.06); }
.btn-outline-light:hover { background: rgba(255,255,255,0.14); transform: translateY(-2px); }

/* ---------- Navbar (light, always legible above the navy hero) ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s ease, background .2s ease;
}
.nav.scrolled { box-shadow: var(--shadow-sm); background: rgba(255,255,255,0.95); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo {
  position: relative; width: 54px; height: 54px; border-radius: 15px; overflow: hidden; flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(15, 31, 61, 0.28);
}
.brand-logo::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.16); }
.brand-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.brand-name { display: flex; flex-direction: column; line-height: 1.12; }
.brand-name strong { font-size: 1.2rem; font-weight: 800; color: var(--ink); letter-spacing: -0.015em; }
.brand-name strong em { font-style: normal; color: var(--gold-600); padding: 0 1px; }
.brand-name small { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.brand-on-dark .brand-name strong { color: #fff; }
.brand-on-dark .brand-name strong em { color: var(--gold-bright); }
.brand-on-dark .brand-name small { color: #8ea0c2; }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a { color: var(--ink-soft); font-weight: 550; font-size: 0.96rem; transition: color .15s ease; }
.nav-links a:hover { color: var(--brand); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-menu-cta, .nav-menu-login { display: none; } /* shown only inside the mobile dropdown */
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); border-radius: 2px; margin: 5px 0; transition: .25s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(205, 164, 52, 0.22), transparent 60%),
    radial-gradient(900px 600px at 0% 110%, rgba(30, 58, 110, 0.45), transparent 55%),
    linear-gradient(160deg, #0e1d3a 0%, #16294f 45%, #1e3a6e 100%);
  color: #fff;
  padding: 70px 0 110px;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: linear-gradient(180deg, rgba(0,0,0,0.5), transparent 70%);
}
.hero-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center;
}
.hero-pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 14px 7px 10px; border-radius: 999px; font-size: 0.82rem; font-weight: 600;
  background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.18); color: #e8eefb;
}
.hero-pill b { background: var(--gold); color: var(--brand-700); padding: 2px 9px; border-radius: 999px; font-size: 0.72rem; font-weight: 800; }
.hero h1 { color: #fff; font-size: clamp(2.3rem, 5vw, 3.7rem); margin: 22px 0 18px; font-weight: 800; }
.hero h1 .grad { background: linear-gradient(100deg, #f3d889, var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: 1.18rem; color: #cdd7ec; max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 32px 0 26px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 22px; color: #b9c5de; font-size: 0.9rem; }
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust svg { width: 17px; height: 17px; color: var(--gold-bright); }

/* Hero product mockup */
.mockup {
  position: relative; z-index: 2;
  background: rgba(255,255,255,0.97);
  border-radius: 20px; box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,0.6);
  padding: 16px; transform: perspective(1400px) rotateY(-9deg) rotateX(3deg);
  transition: transform .4s ease;
}
.mockup:hover { transform: perspective(1400px) rotateY(-4deg) rotateX(1deg); }
.mock-top { display: flex; align-items: center; gap: 7px; padding: 4px 6px 12px; }
.mock-top i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.mock-top i:nth-child(1){ background:#ff6058; } .mock-top i:nth-child(2){ background:#ffbd2e; } .mock-top i:nth-child(3){ background:#28c93f; }
.mock-top em { margin-left: auto; font-style: normal; font-size: 0.72rem; color: var(--muted); }
/* Hero "done-for-you" payroll summary card */
.mock-body { display: flex; flex-direction: column; gap: 14px; }
.pay-head { display: flex; align-items: center; justify-content: space-between; }
.pay-title { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); font-size: 0.92rem; }
.pay-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(31,157,87,0.14); }
.pay-filed { display: inline-flex; align-items: center; gap: 5px; font-size: 0.72rem; font-weight: 700; color: var(--success); background: rgba(31,157,87,0.10); border: 1px solid rgba(31,157,87,0.22); padding: 4px 10px; border-radius: 999px; }
.pay-filed svg { width: 12px; height: 12px; }
.pay-rows { background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 4px 16px; }
.pay-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); }
.pay-row:last-child { border-bottom: none; }
.pay-row span { color: var(--ink-soft); font-size: 0.9rem; }
.pay-row b { color: var(--ink); font-size: 1.02rem; font-weight: 700; }
.pay-row.net span { color: var(--ink); font-weight: 600; }
.pay-row.net b { color: var(--success); font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; }
.pay-foot { display: flex; align-items: center; gap: 12px; background: linear-gradient(180deg, var(--brand-050), #fff); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.pay-avatar { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; overflow: hidden; background: #fff; box-shadow: 0 2px 8px rgba(15,31,61,0.18), inset 0 0 0 1px rgba(22,38,74,0.08); }
.pay-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pay-by { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.pay-by b { color: var(--ink); font-size: 0.86rem; font-weight: 700; }
.pay-by span { color: var(--muted); font-size: 0.76rem; }
.pay-ok { width: 22px; height: 22px; color: var(--success); margin-left: auto; flex-shrink: 0; }
.mock-row { display:flex; align-items:center; justify-content:space-between; font-size:0.64rem; color:var(--muted); }

.float-badge {
  position: absolute; z-index: 3; background: #fff; border-radius: 14px; box-shadow: var(--shadow-md);
  padding: 11px 14px; display: flex; align-items: center; gap: 10px; font-size: 0.82rem; font-weight: 650; color: var(--ink);
}
.float-badge svg { width: 30px; height: 30px; padding: 6px; border-radius: 9px; color: #fff; }
.float-badge.b1 { bottom: -22px; left: -26px; }
.float-badge.b1 svg { background: linear-gradient(135deg, var(--success), #34d399); }
.float-badge.b2 { top: -20px; right: -18px; }
.float-badge.b2 svg { background: linear-gradient(135deg, var(--brand), var(--brand-700)); }

/* ---------- Trust strip ---------- */
.trustbar { background: var(--surface); border-bottom: 1px solid var(--line); }
.trustbar-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 26px; padding: 26px 0; }
.trust-item { display: flex; align-items: center; gap: 11px; color: var(--ink-soft); font-weight: 600; font-size: 0.95rem; }
.trust-item svg { width: 22px; height: 22px; color: var(--brand); }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.svc-card {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px; box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  overflow: hidden;
}
.svc-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--brand), var(--gold)); transform: scaleX(0); transform-origin: left; transition: transform .3s ease; }
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.svc-card:hover::before { transform: scaleX(1); }
.svc-icon { width: 56px; height: 56px; border-radius: 15px; display: grid; place-items: center; color: #fff; margin-bottom: 20px; }
.svc-icon svg { width: 28px; height: 28px; }
.svc-card.payroll .svc-icon,
.svc-card.acc-navy .svc-icon { background: linear-gradient(135deg, #2d4a86, #16294f); }
.svc-card.accounting .svc-icon,
.svc-card.acc-blue .svc-icon { background: linear-gradient(135deg, #3a72c4, #1e3a6e); }
.svc-card.tax .svc-icon,
.svc-card.acc-gold .svc-icon { background: linear-gradient(135deg, var(--gold-bright), var(--gold-600)); color: var(--brand-700); }
.svc-card h3 { font-size: 1.34rem; margin-bottom: 10px; }
.svc-card > p { color: var(--muted); margin-bottom: 18px; }
.svc-list { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-direction: column; gap: 10px; }
.svc-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.94rem; color: var(--ink-soft); }
.svc-list svg { width: 18px; height: 18px; color: var(--success); flex-shrink: 0; margin-top: 3px; }
.svc-link { display: inline-flex; align-items: center; gap: 7px; font-weight: 650; color: var(--brand); font-size: 0.94rem; }
.svc-link svg { width: 16px; height: 16px; transition: transform .2s ease; }
.svc-card:hover .svc-link svg { transform: translateX(4px); }

/* ---------- Features ---------- */
.features { background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%); }
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feat {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 26px 24px; transition: transform .2s ease, box-shadow .2s ease;
}
.feat:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feat-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-050); color: var(--brand); margin-bottom: 16px; }
.feat-icon svg { width: 23px; height: 23px; }
.feat h3 { font-size: 1.08rem; margin-bottom: 8px; }
.feat p { color: var(--muted); font-size: 0.93rem; }

/* ---------- More / full-firm services (centered benefit tiles) ---------- */
.more-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ms-card {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 30px 26px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.ms-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.ms-ic { width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center; flex-shrink: 0; color: #fff; }
.ms-ic svg { width: 24px; height: 24px; }
.ms-card:nth-child(odd) .ms-ic { background: linear-gradient(135deg, #2d4a86, #16294f); }
.ms-card:nth-child(even) .ms-ic { background: linear-gradient(135deg, var(--gold-bright), var(--gold-600)); color: var(--brand-700); }
.ms-body { display: flex; flex-direction: column; gap: 7px; }
.ms-body h3 { font-size: 1.08rem; margin: 0; line-height: 1.3; }
.ms-body p { color: var(--muted); font-size: 0.9rem; line-height: 1.55; }
.more-cta { text-align: center; margin-top: 40px; }
.more-cta .btn { margin: 0 6px; }
@media (max-width: 980px) { .more-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .more-grid { grid-template-columns: 1fr; gap: 14px; } }

/* ---------- About / Our Team ---------- */
.about-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 54px; align-items: center; }
.about-copy h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin: 14px 0 16px; }
.about-copy > p { color: var(--ink-soft); font-size: 1.04rem; margin-bottom: 16px; }
.about-values { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 13px 20px; }
.about-values li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.95rem; color: var(--ink-soft); font-weight: 550; }
.about-values svg { width: 18px; height: 18px; color: var(--success); flex-shrink: 0; margin-top: 3px; }

.about-card {
  position: relative; overflow: hidden; color: #fff; border-radius: 24px; padding: 40px;
  background: radial-gradient(600px 300px at 90% 0%, rgba(205,164,52,0.25), transparent 60%), linear-gradient(160deg, #0e1d3a, #1e3a6e);
  box-shadow: var(--shadow-lg);
}
.ac-logo { width: 60px; height: 60px; border-radius: 15px; overflow: hidden; box-shadow: 0 8px 20px rgba(0,0,0,0.3); margin-bottom: 22px; }
.ac-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ac-big { font-size: 2.7rem; font-weight: 800; line-height: 1; background: linear-gradient(100deg, #f3d889, var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ac-sub { color: #cdd7ec; font-weight: 600; margin-top: 6px; }
.ac-mission { margin-top: 22px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.14); color: #dbe3f2; font-size: 0.98rem; line-height: 1.6; }
.about-mini { display: flex; gap: 30px; margin-top: 24px; }
.about-mini b { display: block; font-size: 1.5rem; font-weight: 800; color: var(--gold-bright); }
.about-mini span { font-size: 0.78rem; color: #b9c5de; }

.team-head { text-align: center; max-width: 600px; margin: 72px auto 40px; }
.team-head h3 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: 10px; }
.team-head p { color: var(--muted); }
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.team-card { text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 30px 22px; transition: transform .2s ease, box-shadow .2s ease; }
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.team-avatar { width: 70px; height: 70px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center; color: #fff; }
.team-avatar svg { width: 32px; height: 32px; }
.team-card:nth-child(odd) .team-avatar { background: linear-gradient(135deg, #2d4a86, #16294f); }
.team-card:nth-child(even) .team-avatar { background: linear-gradient(135deg, var(--gold-bright), var(--gold-600)); color: var(--brand-700); }
.team-card h4 { font-size: 1.06rem; margin-bottom: 4px; }
.team-role { color: var(--gold-600); font-weight: 700; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 11px; }
.team-card p { color: var(--muted); font-size: 0.88rem; }
.team-avatar-photo { overflow: hidden; }
.team-avatar-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-avatar-mono { font-weight: 800; font-size: 1.5rem; letter-spacing: 0.02em; }
.team-links { display: flex; gap: 8px; justify-content: center; margin-top: 12px; }
.team-links a { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; color: var(--brand); background: var(--brand-050); transition: background .15s ease, color .15s ease; }
.team-links a:hover { background: var(--brand); color: #fff; }
.team-links svg { width: 16px; height: 16px; }

@media (max-width: 980px) {
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .about-values { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
}

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; max-width: 960px; margin: 0 auto; }
.step { position: relative; padding-top: 8px; }
.step-num {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; font-weight: 800; font-size: 1.1rem;
  color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-700)); margin-bottom: 16px; box-shadow: 0 8px 18px rgba(30,58,110,0.32);
}
.step h3 { font-size: 1.1rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.93rem; }
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 23px; left: 60px; right: -12px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 7px, transparent 7px 14px);
}

/* ---------- Security band ---------- */
.security { background: linear-gradient(160deg, #0e1d3a, #1e3a6e); color: #fff; border-radius: 28px; padding: 60px; margin: 0 24px; }
.security-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; max-width: var(--maxw); margin: 0 auto; }
.security h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 14px; }
.security > .security-grid > div > p { color: #cdd7ec; font-size: 1.05rem; margin-bottom: 24px; }
.sec-list { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.sec-item { display: flex; gap: 12px; align-items: flex-start; }
.sec-item svg { width: 24px; height: 24px; color: var(--gold-bright); flex-shrink: 0; }
.sec-item b { display: block; font-size: 0.98rem; }
.sec-item span { color: #b9c5de; font-size: 0.86rem; }
.sec-visual { display: grid; place-items: center; }
.sec-shield {
  width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, rgba(236,201,75,0.22), transparent 70%);
  display: grid; place-items: center;
}
.sec-shield svg { width: 110px; height: 110px; color: var(--gold-bright); filter: drop-shadow(0 10px 30px rgba(236,201,75,0.35)); }

/* ---------- Stats ---------- */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat .num { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; background: linear-gradient(135deg, var(--brand), var(--gold-600)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .lbl { color: var(--muted); font-weight: 600; margin-top: 4px; }

/* ---------- CTA band ---------- */
.cta {
  position: relative; overflow: hidden; text-align: center; color: #fff; border-radius: 28px; margin: 0 24px;
  padding: 72px 32px;
  background:
    radial-gradient(700px 360px at 80% 0%, rgba(205,164,52,0.30), transparent 60%),
    linear-gradient(150deg, var(--brand-700), var(--brand) 60%, #2d4a86);
}
.cta h2 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 14px; }
.cta p { color: #dbe3f2; font-size: 1.12rem; max-width: 560px; margin: 0 auto 30px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: 44px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 22px; padding-top: 6px; }
.ci-item { display: flex; gap: 14px; align-items: flex-start; }
.ci-ic { width: 46px; height: 46px; border-radius: 12px; background: var(--brand-050); color: var(--brand-700); display: grid; place-items: center; flex-shrink: 0; }
.ci-ic svg { width: 22px; height: 22px; }
.ci-item b { display: block; font-size: 0.82rem; color: var(--ink); margin-bottom: 3px; }
.ci-item a, .ci-item span { color: var(--muted); font-size: 0.95rem; }
.ci-item a:hover { color: var(--brand-700); }
.contact-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); position: relative; }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cf-field { display: flex; flex-direction: column; gap: 6px; font-size: 0.85rem; font-weight: 600; color: var(--ink-soft); margin-bottom: 16px; }
.cf-field input, .cf-field textarea { padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 10px; font: inherit; font-weight: 400; color: var(--ink); background: var(--surface-2); transition: border-color .15s ease, background .15s ease; }
/* 16px keeps iOS Safari from auto-zooming when a field is focused on phones */
.cf-field input, .cf-field select, .cf-field textarea { font-size: 16px; }
.cf-field input:focus, .cf-field textarea:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3px rgba(30,58,110,0.08); }
.cf-field textarea { resize: vertical; min-height: 110px; }
.cf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.cf-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.cf-foot .btn[disabled] { opacity: .6; cursor: default; transform: none; }
.cf-status { font-size: 0.9rem; font-weight: 600; }
.cf-status.ok { color: var(--success); }
.cf-status.err { color: #dc2626; }
@media (max-width: 880px) {
  .contact-grid { grid-template-columns: 1fr; gap: 30px; }
  .cf-row { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.footer { background: #0e1d3a; color: #b9c5de; padding: 64px 0 28px; margin-top: 96px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-about p { margin-top: 16px; font-size: 0.92rem; max-width: 300px; }
.footer-col h4 { color: #fff; font-size: 0.95rem; margin-bottom: 16px; }
.footer-col a, .footer-col p { display: block; color: #97a6c4; font-size: 0.9rem; margin-bottom: 10px; transition: color .15s ease; }
.footer-addr { margin-bottom: 14px; line-height: 1.5; }
.footer-col a:hover { color: var(--gold-bright); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; font-size: 0.84rem; color: #7385a8; }
.footer-bottom a { color: #7385a8; }
.footer-bottom a:hover { color: #fff; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 60px; }
  .mockup { transform: none; max-width: 520px; margin: 0 auto; }
  .mockup:hover { transform: none; }
  .security-grid { grid-template-columns: 1fr; gap: 32px; }
  .sec-visual { order: -1; }
  .services-grid, .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:not(:last-child)::after { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  /* Collapse to a hamburger menu (covers iPad portrait too); CTA moves into the menu. */
  .nav-links { display: none; }
  .nav-cta .btn-primary, .nav-login { display: none; }
  .nav-toggle { display: block; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; align-items: stretch; position: absolute; top: 76px; left: 0; right: 0;
    background: #fff; padding: 18px 22px 24px; gap: 16px; box-shadow: var(--shadow-md); border-top: 1px solid var(--line);
  }
  .nav.open .nav-links a { font-size: 1.05rem; }
  /* color:#fff — beat `.nav-links a` (which would otherwise paint this button's
     text dark on its dark background, making it invisible in the mobile menu). */
  .nav.open .nav-links .nav-menu-cta,
  .nav.open .nav-links .nav-menu-cta:hover { display: inline-flex; justify-content: center; font-size: 0.98rem; margin-top: 6px; color: #fff; }
  .nav.open .nav-links .nav-menu-login { display: block; text-align: center; color: var(--ink-soft); font-weight: 600; }
}
@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .brand-name small { display: block; font-size: 0.6rem; letter-spacing: 0.1em; }
  .brand-name strong { font-size: 1.08rem; white-space: nowrap; }
  .brand-logo { width: 46px; height: 46px; border-radius: 13px; }
  .services-grid, .feat-grid, .stats-grid, .footer-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .sec-list { grid-template-columns: 1fr; }
  .security, .cta { padding: 44px 24px; margin: 0 16px; }
  .trustbar-inner { justify-content: center; gap: 16px 26px; }
  .hero { padding: 54px 0 84px; }
  .float-badge.b1 { left: 2px; } .float-badge.b2 { right: 2px; }
  .hero-actions .btn { flex: 1; }
}
@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .hero h1 { font-size: 2.1rem; }
  .hero-sub { font-size: 1.06rem; }
  .section-head { margin-bottom: 40px; }
  .float-badge { font-size: 0.76rem; padding: 9px 11px; }
  .float-badge svg { width: 26px; height: 26px; }
  .security, .cta { margin: 0 12px; padding: 40px 20px; }
}

/* =============================================================================
   Marketing conversion sections — appended. Reuses existing design tokens.
   ========================================================================== */

/* Nav: client-login text link */
.nav-login { font-weight: 600; font-size: 0.92rem; color: var(--ink-soft); padding: 8px 6px; transition: color .15s ease; }
.nav-login:hover { color: var(--brand); }

/* Hero social-proof line */
.hero-social { display: flex; align-items: center; gap: 10px; margin-top: 22px; font-size: 0.92rem; color: var(--ink-soft); font-weight: 500; }
.hero-stars { color: var(--gold-bright); letter-spacing: 2px; font-size: 1rem; }

/* Contact form select — match inputs */
.cf-field select {
  padding: 12px 38px 12px 14px; border: 1px solid var(--line-strong); border-radius: 10px; font: inherit; font-weight: 400;
  color: var(--ink); background-color: var(--surface-2); transition: border-color .15s ease, background-color .15s ease;
  -webkit-appearance: none; appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b7896' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.cf-field select:focus { outline: none; border-color: var(--brand); background-color: #fff; box-shadow: 0 0 0 3px rgba(30,58,110,0.08); }

/* Industries strip */
.ind-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.ind-chip { display: inline-flex; align-items: center; gap: 9px; padding: 11px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; font-weight: 600; font-size: 0.92rem; color: var(--ink); box-shadow: var(--shadow-sm); transition: transform .15s ease, border-color .15s ease, color .15s ease; }
.ind-chip:hover { transform: translateY(-2px); border-color: var(--gold); color: var(--brand); }
.ind-chip svg { width: 18px; height: 18px; color: var(--gold-600); flex-shrink: 0; }

/* Testimonials */
.tm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tm-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 16px; transition: transform .2s ease, box-shadow .2s ease; }
.tm-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.tm-stars { color: var(--gold); letter-spacing: 3px; font-size: 1.05rem; }
.tm-quote { color: var(--ink-soft); font-size: 1.02rem; line-height: 1.65; flex: 1; }
.tm-quote::before { content: "\201C"; }
.tm-quote::after { content: "\201D"; }
.tm-who { display: flex; align-items: center; gap: 12px; }
.tm-avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-050); color: var(--brand); font-weight: 800; font-size: 0.95rem; flex-shrink: 0; }
.tm-who-name { min-width: 0; }
.tm-who-name b { display: block; color: var(--ink); font-size: 0.96rem; }
.tm-who-name span { display: block; color: var(--muted); font-size: 0.85rem; }
.tm-src { margin-left: auto; flex-shrink: 0; display: inline-flex; align-items: center; gap: 5px; font-size: 0.74rem; font-weight: 600; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); padding: 4px 9px; border-radius: 999px; }
.tm-src .g-logo { display: block; }
a.tm-src:hover { border-color: var(--line-strong); color: var(--ink); }

/* Google rating badge above the grid */
.tm-google { display: flex; align-items: center; gap: 12px; margin: 0 auto 36px; padding: 12px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow-sm); width: max-content; max-width: 100%; transition: transform .15s ease, box-shadow .15s ease; }
.tm-google[hidden] { display: none; }
.tm-google:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.tm-g-text { display: flex; flex-direction: column; line-height: 1.25; }
.tm-g-text b { color: var(--ink); font-size: 1.02rem; display: inline-flex; align-items: center; gap: 8px; }
.tm-g-stars { color: var(--gold); letter-spacing: 1px; font-size: 0.9rem; }
.tm-g-text small { color: var(--muted); font-size: 0.82rem; font-weight: 600; }

/* Packages / pricing */
.pkg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.pkg-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 28px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 6px; transition: transform .2s ease, box-shadow .2s ease; }
.pkg-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.pkg-card.popular { border-color: var(--gold); box-shadow: var(--shadow-md); }
.pkg-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, var(--gold-bright), var(--gold-600)); color: #2a2207; font-weight: 800; font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; padding: 6px 16px; border-radius: 999px; white-space: nowrap; box-shadow: 0 6px 16px rgba(205,164,52,0.4); }
.pkg-card h3 { font-size: 1.3rem; color: var(--brand); }
.pkg-tag { color: var(--muted); font-size: 0.92rem; margin-bottom: 12px; min-height: 42px; }
.pkg-list { list-style: none; margin: 0 0 24px; padding: 16px 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; flex: 1; }
.pkg-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.95rem; color: var(--ink-soft); }
.pkg-list svg { width: 18px; height: 18px; color: var(--success); flex-shrink: 0; margin-top: 2px; }
.pkg-card .btn { width: 100%; justify-content: center; }
.pkg-note { text-align: center; color: var(--muted); font-size: 0.92rem; margin-top: 32px; }

/* FAQ accordion (native <details>) */
.faq-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); overflow: hidden; }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; font-weight: 700; color: var(--ink); cursor: pointer; list-style: none; font-size: 1.02rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--brand); }
.faq-item[open] summary { color: var(--brand); }
.faq-ic { position: relative; width: 20px; height: 20px; flex-shrink: 0; }
.faq-ic::before, .faq-ic::after { content: ""; position: absolute; background: var(--gold-600); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.faq-ic::before { top: 9px; left: 2px; right: 2px; height: 2px; }
.faq-ic::after { left: 9px; top: 2px; bottom: 2px; width: 2px; }
.faq-item[open] .faq-ic::after { transform: scaleY(0); opacity: 0; }
.faq-a { padding: 0 24px 22px; color: var(--ink-soft); line-height: 1.7; font-size: 0.98rem; }

@media (max-width: 980px) {
  .tm-grid, .pkg-grid { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; }
}
@media (max-width: 720px) {
  .ind-chip { font-size: 0.86rem; padding: 9px 14px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   SECTION SURFACES — distinct, deliberate "bands" for a modern enterprise feel.
   The page alternates clean white and a soft cool tint, anchored by dark bands
   (the hero + the client-portal showcase) and the existing dark security card,
   so each section reads as its own defined block instead of one continuous
   light wash. White cards (services/features/team) pop against the tinted and
   dark bands. (Backgrounds set by id override the generic .section/.features.)
   ═══════════════════════════════════════════════════════════════════════════ */
.section { background: var(--surface); }

/* Soft tinted bands. Alternates with the default white sections; ordering kept
   so no two adjacent bands share a tone (see section order in index.html). */
#services,
#more,
#about,
#impact,
#faq {
  background: linear-gradient(180deg, #eff3fb 0%, #e6ecf7 100%);
}

/* Subtle hairline gives the alternating bands crisp definition. */
#industries, #services, #reviews, #pricing, #more,
#how, #about, #security, #impact, #faq, #contact {
  border-top: 1px solid rgba(22, 38, 74, 0.05);
}

/* Dark "premium" band — the client portal showcase. */
#platform {
  background:
    radial-gradient(900px 360px at 85% -15%, rgba(205, 164, 52, 0.16), transparent 60%),
    linear-gradient(165deg, #0e1d3a 0%, #1e3a6e 100%);
  color: #c4d0e6;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
#platform .section-head h2 { color: #ffffff; }
#platform .section-head p { color: #aab9d4; }
#platform .eyebrow { color: var(--gold-bright); }
#platform .eyebrow::before { background: var(--gold-bright); }
#platform .feat { border-color: transparent; box-shadow: 0 18px 40px rgba(8, 17, 34, 0.45); }
#platform .feat:hover { box-shadow: 0 26px 56px rgba(8, 17, 34, 0.55); }
