/* ============================================================
   Advance Safety Partners LLC — Global Styles
   Pure CSS. No frameworks. Built to pair with Alpine.js later.
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Brand */
  --navy-900: #0a1f33;
  --navy-800: #0e2a44;
  --navy-700: #143655;
  --navy-600: #1d4a72;
  --amber-500: #e8772e;   /* safety accent */
  --amber-400: #f2913f;
  --amber-100: #fbe6d4;

  /* Neutrals */
  --ink: #16202b;
  --slate-700: #36465a;
  --slate-500: #5b6878;
  --slate-400: #8593a3;
  --line: #e3e7ec;
  --line-soft: #eef1f4;
  --surface: #ffffff;
  --bg: #f6f8fa;
  --bg-warm: #f3f5f8;

  /* Type */
  --font-head: "Archivo", system-ui, sans-serif;
  --font-body: "Barlow", system-ui, sans-serif;

  /* Layout */
  --maxw: 1120px;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(14, 42, 68, 0.06);
  --shadow-md: 0 14px 40px -18px rgba(14, 42, 68, 0.30);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--navy-600);
  text-decoration: none;
  transition: color 0.18s ease;
}

a:hover {
  color: var(--amber-500);
}

h1,
h2,
h3 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.018em;
  color: var(--navy-800);
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0 0 1.1rem;
  text-wrap: pretty;
}

/* ---------- Lucide inline icon sizing ---------- */
.icon {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  flex: none;
}

.icon-sm { width: 17px; height: 17px; }
.icon-lg { width: 28px; height: 28px; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 28px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber-500);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--amber-500);
  border-radius: 2px;
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
}

.brand:hover { color: inherit; }

.brand__mark {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(150deg, var(--navy-700), var(--navy-900));
  box-shadow: var(--shadow-sm);
  flex: none;
}

.brand__mark .icon { width: 24px; height: 24px; stroke: var(--amber-400); }

.brand__name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.06rem;
  letter-spacing: -0.01em;
  color: var(--navy-800);
  line-height: 1.05;
}

.brand__sub {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--slate-400);
}

.header-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--slate-700);
}

.header-meta .icon { color: var(--amber-500); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--navy-800) 0%, var(--navy-900) 70%);
  color: #fff;
}

.hero::before {
  /* faint road/grid texture */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(120% 90% at 78% 12%, #000 0%, transparent 72%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  top: -180px;
  right: -160px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(232, 119, 46, 0.22), transparent 62%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  padding: 92px 0 104px;
  max-width: 760px;
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.4rem, 5.2vw, 3.9rem);
  margin: 22px 0 0;
}

.hero h1 .accent { color: var(--amber-400); }

.hero__lead {
  font-size: clamp(1.08rem, 1.8vw, 1.28rem);
  color: #c4d2e0;
  margin: 22px 0 0;
  max-width: 600px;
}

.hero__tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 34px 0 0;
}

.hero__tags li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  font-size: 0.88rem;
  font-weight: 500;
  color: #d7e2ee;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}

.hero__tags .icon { color: var(--amber-400); }

.hero .eyebrow { color: var(--amber-400); }
.hero .eyebrow::before { background: var(--amber-400); }

/* ============================================================
   Intro / about band
   ============================================================ */
.section {
  padding: 84px 0;
}

.section--tight { padding: 64px 0; }

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

.about__lead {
  font-size: 1.32rem;
  line-height: 1.5;
  color: var(--navy-800);
  font-weight: 500;
}

.about__body p {
  color: var(--slate-700);
}

.pillars {
  display: grid;
  gap: 18px;
}

.pillar {
  display: flex;
  gap: 16px;
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.pillar__icon {
  width: 46px;
  height: 46px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  flex: none;
  color: var(--navy-700);
  background: var(--amber-100);
}

.pillar__icon .icon { color: var(--amber-500); }

.pillar h3 {
  font-size: 1.08rem;
  margin-bottom: 4px;
}

.pillar p {
  margin: 0;
  font-size: 0.96rem;
  color: var(--slate-500);
  line-height: 1.55;
}

/* ============================================================
   Contact band
   ============================================================ */
.contact {
  background: var(--bg-warm);
  border-top: 1px solid var(--line);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}

.contact h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}

.contact__note {
  color: var(--slate-700);
  margin-top: 14px;
  max-width: 460px;
}

.contact-cards {
  display: grid;
  gap: 14px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.contact-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex: none;
  color: #fff;
  background: linear-gradient(150deg, var(--navy-700), var(--navy-900));
}

.contact-card__icon .icon { stroke: var(--amber-400); }

.contact-card__label {
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--slate-400);
  margin: 0 0 2px;
}

.contact-card__value {
  font-size: 1.04rem;
  font-weight: 600;
  color: var(--navy-800);
  margin: 0;
  line-height: 1.35;
}

.contact-card__value a { color: inherit; }
.contact-card__value a:hover { color: var(--amber-500); }

.contact-card__value .ph {
  color: var(--slate-400);
  font-weight: 500;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--navy-900);
  color: #aebccb;
  padding: 56px 0 30px;
}

.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.footer__brand {
  max-width: 360px;
}

.footer__brand .brand__name { color: #fff; }
.footer__brand .brand__mark { box-shadow: none; }

.footer__brand p {
  margin: 16px 0 0;
  font-size: 0.94rem;
  color: #8a9bac;
  line-height: 1.6;
}

.footer__col h4 {
  font-family: var(--font-head);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6f8194;
  margin: 0 0 16px;
  font-weight: 600;
}

.footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 11px;
}

.footer__links a {
  color: #c2cfdc;
  font-size: 0.96rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer__links a:hover { color: var(--amber-400); }
.footer__links .icon { color: #56697d; }
.footer__links a:hover .icon { color: var(--amber-400); }

.footer__address {
  font-style: normal;
  color: #8a9bac;
  font-size: 0.95rem;
  line-height: 1.7;
}

.footer__address a { color: #c2cfdc; }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 24px;
  font-size: 0.86rem;
  color: #6f8194;
}

.footer__legal-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.footer__legal-links a {
  color: #8a9bac;
  font-weight: 500;
}

.footer__legal-links a:hover { color: var(--amber-400); }

/* ============================================================
   Legal pages (Privacy / SMS)
   ============================================================ */
.legal-hero {
  background: linear-gradient(160deg, var(--navy-800), var(--navy-900));
  color: #fff;
  padding: 64px 0 56px;
}

.legal-hero .eyebrow { color: var(--amber-400); }
.legal-hero .eyebrow::before { background: var(--amber-400); }

.legal-hero h1 {
  color: #fff;
  font-size: clamp(2rem, 4vw, 2.9rem);
  margin-top: 16px;
}

.legal-hero__meta {
  margin: 18px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  color: #b7c6d6;
  font-size: 0.95rem;
}

.legal-hero__meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.legal-hero__meta .icon { color: var(--amber-400); }

.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.9rem;
  color: #9fb1c3;
  margin-bottom: 22px;
}

.breadcrumb a { color: #c2cfdc; }
.breadcrumb a:hover { color: var(--amber-400); }

.legal-body {
  padding: 64px 0 90px;
}

.legal-wrap {
  max-width: 820px;
  margin-inline: auto;
}

.legal-intro {
  font-size: 1.16rem;
  line-height: 1.6;
  color: var(--slate-700);
  padding-bottom: 28px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.legal-section {
  padding: 30px 0;
  border-bottom: 1px solid var(--line-soft);
}

.legal-section:last-child { border-bottom: 0; }

.legal-section h2 {
  font-size: 1.34rem;
  margin-bottom: 14px;
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.legal-section h2 .num {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--amber-500);
  flex: none;
}

.legal-section p {
  color: var(--slate-700);
}

.legal-section p:last-child { margin-bottom: 0; }

.legal-list {
  margin: 0 0 1.1rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}

.legal-list li {
  position: relative;
  padding-left: 26px;
  color: var(--slate-700);
}

.legal-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 11px;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--amber-500);
  transform: rotate(45deg);
}

.callout {
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  margin: 6px 0 1.1rem;
  background: var(--amber-100);
  border: 1px solid #f4d4ba;
  border-radius: var(--radius-sm);
  color: #7a4517;
}

.callout .icon { color: var(--amber-500); margin-top: 2px; }
.callout p { margin: 0; color: #7a4517; font-weight: 500; }

.msg-example {
  margin: 6px 0 1.1rem;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--navy-700);
  border-radius: var(--radius-sm);
  font-size: 0.98rem;
  color: var(--slate-700);
  box-shadow: var(--shadow-sm);
}

.msg-example strong {
  display: block;
  font-family: var(--font-head);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate-400);
  margin-bottom: 8px;
}

.legal-contact {
  margin-top: 8px;
  padding: 22px 24px;
  background: var(--bg-warm);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  line-height: 1.7;
  color: var(--slate-700);
}

.legal-contact strong { color: var(--navy-800); font-family: var(--font-head); }
.legal-contact a { font-weight: 600; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 860px) {
  body { font-size: 16px; }

  .header-meta { display: none; }

  .about__grid,
  .contact__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero__inner { padding: 72px 0 80px; }
  .section { padding: 64px 0; }

  .footer__top { gap: 32px; }
}

@media (max-width: 560px) {
  .container { padding-inline: 20px; }
  .site-header__inner { height: 66px; }
  .brand__mark { width: 40px; height: 40px; }
  .legal-section h2 { font-size: 1.18rem; }
}
