/* ===========================================================
   Apex Brokers & Consultants — marketing site
   Design tokens derived from the brand mark: deep navy ascent
   peak + mid-blue gradient + slate growth bars.
   =========================================================== */

:root {
  --navy-950: #070f22;
  --navy-900: #0b1b38;
  --navy-800: #14284f;
  --navy-700: #1c3866;
  --blue-600: #2354c9;
  --blue-500: #2f6fe0;
  --blue-400: #5b8ff0;
  --slate-600: #4b5b76;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-200: #e2e8f0;
  --slate-100: #eef2f7;
  --slate-50: #f7f9fc;
  --white: #ffffff;

  --ink: #111a2e;
  --ink-soft: #4b5568;
  --bg: var(--white);
  --bg-alt: var(--slate-50);

  --radius-lg: 1.25rem;
  --radius-md: 0.75rem;
  --radius-sm: 0.5rem;

  --shadow-sm: 0 1px 2px rgba(11, 27, 56, 0.06);
  --shadow-md: 0 8px 24px rgba(11, 27, 56, 0.08);
  --shadow-lg: 0 24px 64px rgba(11, 27, 56, 0.14);

  --font-display: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 72rem;
}

/* ---------- reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }

.wrap {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy-900);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 200;
}
.skip-link:focus { left: 0; }

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin: 0 0 0.75rem;
}
.eyebrow-light { color: var(--blue-400); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--blue-600);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--navy-800); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-ghost {
  background: transparent;
  color: var(--navy-900);
  border-color: var(--slate-200);
}
.btn-ghost:hover { border-color: var(--blue-500); color: var(--blue-600); }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--slate-200);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-block: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  margin-right: auto;
}
.brand-mark { width: 2.25rem; height: 2.25rem; flex-shrink: 0; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.0625rem;
  color: var(--navy-900);
  white-space: nowrap;
}
.brand-name-light { font-weight: 500; color: var(--slate-600); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.site-nav a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--ink-soft);
  transition: color 0.15s ease;
}
.site-nav a:hover { color: var(--navy-900); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  background: var(--white);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 1.125rem;
  height: 2px;
  margin-inline: auto;
  background: var(--navy-900);
  transition: transform 0.2s ease, opacity 0.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;
  overflow: hidden;
  background: linear-gradient(180deg, var(--slate-50) 0%, var(--white) 60%);
}
.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.9;
}
.hero-backdrop svg { width: 100%; height: 100%; }
.peak { opacity: 0.5; }
.peak-1 { fill: var(--slate-100); }
.peak-2 { fill: var(--blue-400); opacity: 0.08; }

.hero-inner {
  position: relative;
  z-index: 1;
  padding-block: 6.5rem 5.5rem;
  max-width: 46rem;
}
.hero h1 {
  font-size: clamp(2.25rem, 4.2vw, 3.4rem);
  font-weight: 800;
  color: var(--navy-900);
  margin-bottom: 1.25rem;
}
.hero-lead {
  font-size: 1.125rem;
  color: var(--ink-soft);
  max-width: 38rem;
  margin-bottom: 2.25rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.75rem;
}
.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
}
.hero-points li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy-800);
}
.hero-points .dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--blue-500);
  flex-shrink: 0;
}

/* ---------- sections (generic) ---------- */
.section { padding-block: 5.5rem; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 40rem; margin-bottom: 3rem; }
.section-head h2 {
  font-size: clamp(1.75rem, 2.8vw, 2.25rem);
  color: var(--navy-900);
  font-weight: 800;
}

/* ---------- about ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: start;
}
.about-copy h2 {
  font-size: clamp(1.75rem, 2.8vw, 2.25rem);
  color: var(--navy-900);
  font-weight: 800;
  margin-bottom: 1.25rem;
}
.about-copy p { color: var(--ink-soft); margin-bottom: 1rem; font-size: 1.03125rem; }
.about-copy p:last-child { margin-bottom: 0; }

.about-panel { display: grid; gap: 1.25rem; }
.about-panel-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}
.panel-icon {
  width: 2.25rem;
  height: 2.25rem;
  color: var(--blue-600);
  margin-bottom: 1rem;
}
.about-panel-card h3 {
  font-size: 1.0625rem;
  color: var(--navy-900);
  margin-bottom: 0.5rem;
}
.about-panel-card p { color: var(--ink-soft); font-size: 0.9375rem; }

/* ---------- services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.service-icon {
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--navy-900), var(--blue-600));
  color: var(--white);
  margin-bottom: 1.25rem;
}
.service-icon svg { width: 1.375rem; height: 1.375rem; }
.service-card h3 { font-size: 1.0625rem; color: var(--navy-900); margin-bottom: 0.625rem; }
.service-card p { color: var(--ink-soft); font-size: 0.9375rem; }

/* ---------- why us ---------- */
.why-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 4rem;
  align-items: start;
}
.why-head { margin-bottom: 0; }
.why-lead { color: var(--ink-soft); font-size: 1.03125rem; margin-top: 1rem; }
.why-list { display: grid; gap: 1.75rem; }
.why-list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.why-list svg {
  width: 1.375rem;
  height: 1.375rem;
  flex-shrink: 0;
  color: var(--white);
  background: var(--blue-600);
  border-radius: 50%;
  padding: 0.375rem;
  box-sizing: content-box;
  margin-top: 0.125rem;
}
.why-list h3 { font-size: 1.0625rem; color: var(--navy-900); margin-bottom: 0.25rem; }
.why-list p { color: var(--ink-soft); font-size: 0.9375rem; }

/* ---------- contact ---------- */
.section-dark {
  background: radial-gradient(ellipse at top left, var(--navy-800) 0%, var(--navy-950) 70%);
  color: var(--white);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
.contact-copy h2 {
  font-size: clamp(1.75rem, 2.8vw, 2.25rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1rem;
}
.contact-copy p { color: rgba(255, 255, 255, 0.68); font-size: 1.03125rem; max-width: 28rem; }

.contact-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 0.5rem;
  display: grid;
}
.contact-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.125rem 1.25rem;
  text-decoration: none;
  color: var(--white);
  border-radius: var(--radius-md);
  transition: background-color 0.15s ease;
}
a.contact-row:hover { background: rgba(255, 255, 255, 0.06); }
.contact-row-static { cursor: default; }
.contact-icon {
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(91, 143, 240, 0.16);
  color: var(--blue-400);
}
.contact-icon svg { width: 1.125rem; height: 1.125rem; }
.contact-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.5);
}
.contact-value { display: block; font-weight: 600; font-size: 1rem; margin-top: 0.125rem; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--navy-950);
  color: rgba(255, 255, 255, 0.72);
  padding-block: 3.5rem 0;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.brand-footer .brand-name { color: var(--white); }
.brand-footer .brand-name-light { color: rgba(255, 255, 255, 0.55); }
.footer-nav { display: flex; gap: 1.75rem; flex-wrap: wrap; }
.footer-nav a { text-decoration: none; font-size: 0.9375rem; color: rgba(255, 255, 255, 0.72); }
.footer-nav a:hover { color: var(--white); }
.footer-contact { display: flex; flex-direction: column; gap: 0.375rem; font-size: 0.9375rem; }
.footer-contact a { text-decoration: none; color: rgba(255, 255, 255, 0.72); }
.footer-contact a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  padding-block: 1.5rem;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
}
.footer-bottom a { color: rgba(255, 255, 255, 0.75); text-decoration: none; font-weight: 600; }
.footer-bottom a:hover { color: var(--white); text-decoration: underline; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .about-grid, .why-grid, .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .site-nav { display: none; }
  .header-cta { display: none; }
  .nav-toggle { display: flex; }

  .site-header.nav-open .site-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--slate-200);
    box-shadow: var(--shadow-md);
    padding: 0.5rem 1.5rem 1.25rem;
  }
  .site-header.nav-open .site-nav a {
    width: 100%;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--slate-100);
  }

  .hero-inner { padding-block: 4rem 3.5rem; }
  .section { padding-block: 3.5rem; }
  .services-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
}
