/* ---------- ROOT + BASE ---------- */
:root {
  --bg: #f6f8fb;
  --surface: #eef1f6;
  --white: #ffffff;
  --bg-dark: #0c1f3c; /* primary navy */
  --accent: #f2a33b; /* warm brand gold */
  --text: #0e1a2a;
  --muted: #666666;
  --border: #e6eaed;
  --primary-soft: #e8edf5; /* pale navy-neutral for highlighted cards */
  --section-pad-desktop: 100px;
  --section-pad-mobile: 56px;
  --gap-title-lead: 16px;
  --gap-lead-content: 32px;
  --grid-gap: clamp(24px, 3vw, 32px);
  --card-pad: 30px;
  --radius: 8px;
  --max-w: 1200px;
  --font-sans: "Inter", sans-serif;
  --font-display: "Montserrat", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  padding-top: 56px; /* offset for fixed nav */
  font-size: 1rem;
}

h1, h2, h3 {
  line-height: 1.2;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--bg-dark);
}

h1 { font-size: clamp(2.25rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.35rem); }

a { text-decoration: none; color: inherit; }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }

/* ---------- ACCESSIBILITY ---------- */
:focus-visible {
  outline: 3px solid rgba(242, 163, 59, .75);
  outline-offset: 3px;
}

/* ---------- BUTTONS ---------- */
.btn-primary,
.btn-nav { cursor: pointer; }

.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #0e2a47;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  transition: .25s;
  box-shadow: 0 4px 14px rgba(242, 163, 59, .3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(242, 163, 59, .4);
}

.btn-nav {
  background: var(--accent);
  color: var(--bg-dark);
  padding: 10px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  transition: .25s;
}

.btn-nav:hover { transform: translateY(-1px); }

.btn--accent { background: var(--accent); color: var(--bg-dark); }

/* ---------- NAV ---------- */
.nav-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
  transition: transform .3s ease;
}

.nav-inner {
  max-width: var(--max-w);
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
}

.logo .nav__logo { height: 40px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a { font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--accent); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
}

.hamburger span {
  width: 24px;
  height: 3px;
  background: var(--text);
  border-radius: 2px;
  transition: .3s;
}

@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 56px; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .06);
    transform: translateY(-120%);
    transition: .3s;
    max-height: calc(100vh - 56px);
    overflow: auto;
  }

  .nav-links.open { transform: translateY(0); }
  .hamburger { display: flex; }

  /* better tap targets */
  .nav-links a { width: 100%; padding: 12px 8px; }
  .btn-nav { width: 100%; text-align: center; padding: 12px 16px; }
}

/* ---------- HERO ---------- */
  .hero {
    background: linear-gradient(140deg, #0d2040, #0a1833);
    color: var(--white);
    min-height: 65vh;
    display: flex;
    align-items: center;
    padding: 100px 20px;
    position: relative;
    overflow: hidden;
  }
  
  .hero--short { padding: 140px 20px 110px; }
  
  /* background image layer */
  .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("./hero-map-bg.png") center/cover no-repeat;
    background-color: rgba(12, 31, 60, .5);
    background-blend-mode: overlay;
    opacity: .18;
    z-index: 2;
  }
  
  /* overlay layer (you have .hero__overlay in HTML) */
  .hero__overlay {
    position: absolute;
    inset: 0;
    background:
      radial-gradient(80% 80% at 20% 20%, rgba(242,163,59,.18), transparent 60%),
      radial-gradient(70% 70% at 80% 10%, rgba(255,255,255,.10), transparent 55%);
    z-index: 3;
    pointer-events: none;
  }

  .hero__inner {
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 48px;
  align-items: center;
  width: 100%;
}

  .hero__content {
    max-width: 640px;
    padding: 60px 0;
    text-align: left;
    align-self: center;
  }

  .hero__visual-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

@media (max-width: 768px) {
  .hero { padding: 80px 20px; }
  .hero__content { padding: 40px 0; text-align: center; }
  .hero__visual-wrap { display: none; }
}

  .hero__visual {
    width: 100%;
    max-width: 520px;
    min-height: 360px;
    border-radius: var(--radius);
    background: url("./hero1.png") center/contain no-repeat;
  position: relative;
  overflow: hidden;
  align-self: center;
}

.hero--short .hero__visual { display: none; }

  .hero__caption {
    color: rgba(255, 255, 255, .82);
    font-size: 0.95rem;
    text-align: center;
    max-width: 420px;
  }
  
  .hero__headline {
    font-size: clamp(2.25rem, 4.5vw, 2.6rem);
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -.5px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, .35);
    font-family: var(--font-display);
    font-weight: 800;
    color: var(--white);
  }
  
  .hero__subheadline {
    font-size: clamp(1.15rem, 2vw, 1.3rem);
    font-weight: 500;
    line-height: 1.65;
    opacity: .9;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .3);
    margin-bottom: 30px;
  }
  
  .hero__cta { margin-top: 30px; }

/* ---------- HEADINGS / COPY ---------- */
.section-label {
  font-size: .84rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
  text-align: center;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: var(--gap-title-lead);
  text-align: center;
  color: var(--bg-dark);
}

.section-title.center { margin-left: auto; margin-right: auto; max-width: 800px; }
.section-title--invert { color: var(--white); }

.section-lead {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted);
  font-family: var(--font-sans);
  margin-bottom: var(--gap-lead-content);
}

.section-lead--invert { color: rgba(255, 255, 255, .85); }

.section-lead.center {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.text-center { text-align: center; }

/* ---------- SPACING SYSTEM ---------- */
.section,
.section-block,
.services,
.pain,
.process,
.deliverables,
.markets,
.about,
.contact {
  padding: var(--section-pad-desktop) 20px;
}

@media (max-width: 768px) {
  .section,
  .section-block,
  .services,
  .pain,
  .process,
  .deliverables,
  .markets,
  .about,
  .contact {
    padding: var(--section-pad-mobile) 20px;
  }
}

/* ---------- SERVICES ---------- */
.services { background: var(--white); }

.service-grid {
  max-width: var(--max-w);
  margin: var(--gap-lead-content) auto 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--grid-gap);
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--card-pad);
  transition: .25s;
  box-shadow: none;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, .04);
}

.icon-box {
  font-size: 0;
  margin-bottom: 16px;
  color: var(--accent);
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-box::before {
  content: "";
  width: 32px;
  height: 32px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24' fill='none' stroke='%23f2a33b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10'/><circle cx='12' cy='12' r='4'/><path d='M2 12h4m12 0h4M12 2v4m0 12v4m-7-9h14'/></svg>")
    center/contain no-repeat;
  display: inline-block;
}

.service-card h3 {
  margin: 0 0 12px;
  font-size: 1.25rem;
  font-family: var(--font-display);
  font-weight: 700;
}

.service-card p {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

/* ---------- MARKETS ---------- */
.markets { background: var(--white); }

.market-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--grid-gap);
  max-width: var(--max-w);
  margin: var(--gap-lead-content) auto 0;
}

.market-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--card-pad);
  text-align: center;
  transition: .25s;
  box-shadow: none;
}

.market-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, .04);
}

.card__icon svg {
  width: 32px;
  height: 32px;
  stroke: var(--accent);
  stroke-width: 2;
  fill: none;
  margin: 0 auto 16px;
}

.market-card h3 {
  font-size: 1.25rem;
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-weight: 700;
}

.market-card p {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

/* ---------- ABOUT ---------- */
.about { background: var(--white); }

/* (optional legacy metrics styling kept if you still use it elsewhere) */
.metric-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--grid-gap);
  margin: var(--gap-lead-content) 0;
}
.metric { text-align: center; }
.metric strong { display: block; font-size: 2.4rem; color: var(--accent); }
.metric span { font-size: 1rem; color: var(--muted); }

/* Trust row (centered) */
.trust-row {
  max-width: 800px;
  margin: 40px auto 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--grid-gap);
}

.trust-item {
  background: var(--primary-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
  transition: .25s;
  box-shadow: none;
}

.trust-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, .04);
}

.trust-item strong {
  display: block;
  font-size: 1.05rem;
  color: var(--bg-dark);
  margin-bottom: 6px;
  font-family: var(--font-display);
  font-weight: 800;
}

.trust-item span {
  display: block;
  color: var(--muted);
  font-size: .98rem;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .trust-row { grid-template-columns: 1fr; }
}

/* ---------- WHO WE WORK WITH / CLIENTS ---------- */
.section--white,
.clients { background: var(--white); }

.audience-grid {
  max-width: var(--max-w);
  margin: 40px auto 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--grid-gap);
}

.audience-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--card-pad);
  box-shadow: none;
  transition: .25s;
}

.audience-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, .04);
}

.audience-card h3 {
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--bg-dark);
}

.audience-card p {
  margin: 0;
  font-size: 0.98rem;
  color: var(--muted);
  line-height: 1.6;
}

.audience-icon {
  width: 32px;
  height: 32px;
  margin-bottom: 12px;
}

.audience-icon svg {
  width: 32px;
  height: 32px;
  stroke: var(--accent);
  stroke-width: 2;
  fill: none;
}

@media (max-width: 768px) {
  .audience-grid { grid-template-columns: 1fr; }
}

/* ---------- CONTACT ---------- */
.contact {
  background: var(--bg-dark);
  color: var(--white);
  text-align: center;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 600px;
  margin: 40px auto 0;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, .25);
  background: rgba(255, 255, 255, .05);
  color: var(--white);
  border-radius: var(--radius);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, .75);
}

.contact-form button { margin-top: 10px; }

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--bg-dark);
  color: #e9edf5;
  padding: 35px 20px;
  font-size: .9rem;
}

.footer__inner {
  max-width: var(--max-w);
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.footer__logo {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--white);
}

.footer__right a { margin-left: 20px; transition: color .2s; }
.footer__right a:hover { color: var(--accent); }

@media (max-width: 600px) {
  .footer__inner { flex-direction: column; align-items: flex-start; }
}
