/* ---------- Design tokens ---------- */
:root {
  --navy-900: #0b1b33;
  --navy-800: #10233f;
  --navy-700: #16305a;
  --red-600: #dc2626;
  --red-700: #b91c1c;
  --gray-50: #f7f8fa;
  --gray-100: #eef0f3;
  --gray-200: #dfe3e8;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --white: #ffffff;

  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(11, 27, 51, 0.06), 0 1px 1px rgba(11, 27, 51, 0.04);
  --shadow-md: 0 12px 24px -8px rgba(11, 27, 51, 0.16);
  --shadow-lg: 0 24px 48px -12px rgba(11, 27, 51, 0.28);
  --container: 1160px;
  --header-h: 76px;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--gray-700);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, dt { color: var(--navy-900); font-weight: 800; line-height: 1.15; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 1000;
  background: var(--red-600); color: #fff; padding: .75em 1.25em; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-weight: 600; border-radius: 999px; border: 1.5px solid transparent;
  padding: .75em 1.4em; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: .55em 1.1em; font-size: .92rem; }
.btn-lg { padding: .95em 1.9em; font-size: 1.05rem; }
.btn-primary { background: var(--red-600); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--red-700); box-shadow: var(--shadow-md); }
.btn-ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.4); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: rgba(255,255,255,.18); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); border-color: var(--gray-200); }

.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--navy-900); color: #fff;
}
.logo-text { font-weight: 800; letter-spacing: .02em; color: var(--navy-900); font-size: 1.05rem; }
.logo-text .accent { color: var(--red-600); }

.main-nav { display: flex; gap: 32px; }
.main-nav a { font-weight: 600; font-size: .95rem; color: var(--navy-800); position: relative; padding: 4px 0; }
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--red-600); transform: scaleX(0); transform-origin: left; transition: transform .2s ease;
}
.main-nav a:hover::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; border-radius: 8px; border: 1px solid var(--gray-200);
  background: #fff; cursor: pointer;
}
.nav-toggle span { display: block; width: 18px; height: 2px; margin: 0 auto; background: var(--navy-900); transition: transform .2s ease, opacity .2s 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); }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 80% at 85% 15%, rgba(220,38,38,.35), transparent 60%),
    radial-gradient(70% 90% at 10% 100%, rgba(37,99,235,.25), transparent 60%),
    linear-gradient(135deg, var(--navy-900), var(--navy-700));
}
.hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.06' stroke-width='1'%3E%3Cpath d='M0 60h120M60 0v120'/%3E%3Ccircle cx='60' cy='60' r='40'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 120px 120px;
  opacity: .5;
}
.hero-inner { position: relative; padding: 120px 24px 90px; text-align: center; max-width: 820px; margin: 0 auto; }
.eyebrow {
  display: inline-block; font-weight: 700; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase;
  color: #fecaca; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); color: #fff; margin-bottom: .45em; }
.hero-lead { font-size: 1.15rem; color: rgba(255,255,255,.85); max-width: 620px; margin: 0 auto 2em; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 56px; }

.hero-stats { display: flex; justify-content: center; gap: 48px; margin: 0; flex-wrap: wrap; }
.hero-stats div { text-align: center; }
.hero-stats dt { color: #fff; font-size: 1.6rem; margin: 0; }
.hero-stats dd { margin: 2px 0 0; color: rgba(255,255,255,.7); font-size: .85rem; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--gray-50); }
.section-kicker {
  color: var(--red-600); font-weight: 700; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 10px;
}
.section-kicker.center { text-align: center; }
.section-head { max-width: 620px; margin-bottom: 48px; }
.section-head.light p.lead { color: rgba(255,255,255,.75); }
.section-head h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
.lead { font-size: 1.08rem; color: var(--gray-500); }

/* About */
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: start; }
.about-grid h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
.check-list { list-style: none; margin-top: 24px; display: grid; gap: 14px; }
.check-list li { position: relative; padding-left: 32px; font-weight: 500; color: var(--navy-800); }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--red-600);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/60% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/60% no-repeat;
}
.about-card {
  background: var(--navy-900); color: #fff; border-radius: var(--radius-lg);
  padding: 36px; box-shadow: var(--shadow-lg);
}
.about-card svg { color: var(--red-600); margin-bottom: 16px; }
.about-card h3 { color: #fff; }
.about-card p { color: rgba(255,255,255,.75); margin: 0; }

/* Services */
.grid { display: grid; gap: 24px; }
.services-grid { grid-template-columns: repeat(3, 1fr); }
.card {
  background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-md);
  padding: 28px; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 14px; margin-bottom: 18px;
  background: linear-gradient(135deg, #fee2e2, #fecaca); color: var(--red-600);
}
.card h3 { font-size: 1.1rem; margin-bottom: .4em; }
.card p { color: var(--gray-500); margin: 0; font-size: .95rem; }

/* Brands */
.brands { padding: 56px 0; }
.brand-row {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 36px;
  font-weight: 700; font-size: 1.15rem; color: var(--gray-500);
}
.brand-row span:hover { color: var(--navy-900); }

/* Contact */
.contact { background: var(--navy-900); color: #fff; }
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 40px; }
.contact-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-md); padding: 28px;
}
.contact-card svg { color: var(--red-600); margin-bottom: 14px; }
.contact-card h3 { color: #fff; font-size: 1.05rem; margin-bottom: .35em; }
.contact-card p { color: rgba(255,255,255,.8); margin: 0; }
.contact-card a:hover { color: var(--red-600); }

.map-wrap {
  border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,.12);
}
.map-wrap iframe { width: 100%; height: 340px; border: 0; display: block; }

/* Footer */
.site-footer { background: var(--navy-800); color: rgba(255,255,255,.6); padding: 24px 0; font-size: .88rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-inner a:hover { color: #fff; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .about-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .main-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--gray-200);
    flex-direction: column; gap: 0; padding: 8px 24px 18px;
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: transform .2s ease, opacity .2s ease;
  }
  .main-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid var(--gray-100); }
  .nav-toggle { display: flex; }
  .header-actions .btn-sm span { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .hero-inner { padding: 96px 20px 64px; }
  .hero-stats { gap: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card:hover { transform: none; }
}
