/* =========================================================
   Strategic Direct — site stylesheet
   Rebuilt to match the live strategicdirect.com (Squarespace) design:
   colors, fonts, and layout patterns captured directly from the site.
   ========================================================= */

:root {
  --navy: #00476b;        /* primary navy — headings, hero background */
  --navy-deep: #073e6b;   /* button fill / darker overlay navy */
  --footer-bg: #051520;   /* near-black navy — footer only */
  --page-bg: #eaeaee;     /* light lavender-gray page background (not pure white) */
  --white: #ffffff;
  --ink: #1c2530;
  --muted: #4a5568;
  --border: #d8dbe3;
  --radius: 8px;
  --max-width: 1160px;
  --shadow: 0 4px 18px rgba(0, 33, 61, 0.08);
  font-size: 16px;
}

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

body {
  margin: 0;
  font-family: "Mulish", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--page-bg);
  line-height: 1.65;
  font-weight: 500;
}

img { max-width: 100%; display: block; }
a { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; }

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

h1, h2, h3, h4 {
  font-family: "Archivo Black", "Mulish", sans-serif;
  font-weight: 400;
  color: var(--navy);
  line-height: 1.15;
}
h2 { font-size: 1.9rem; margin: 0 0 20px; }
h3 { font-size: 1.2rem; margin: 0 0 12px; }

/* ---------- Header / Nav ---------- */
.site-header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand img { height: 42px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 30px; }

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
  align-items: center;
}

.main-nav > ul > li { position: relative; }

/* Invisible hover "bridge" over the visual gap between the nav label and
   its dropdown -- without this, moving the cursor straight down from the
   label crosses a dead zone (the gap left by the dropdown's margin-top)
   and the menu closes before the cursor reaches it. This pseudo-element
   is absolutely positioned, so it doesn't affect layout or interact with
   the flex row's own vertical centering the way padding tricks would. */
.has-dropdown::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 14px;
}

.main-nav a {
  color: var(--ink);
  font-weight: 700;
  font-size: 1rem;
}

.main-nav a:hover { color: var(--navy); text-decoration: none; }

/* The solid "Contact" button keeps knockout white text on every page,
   even though it's inside .main-nav (whose `a` rule above would otherwise
   win on specificity and darken it). */
.main-nav a.nav-cta,
.main-nav a.nav-cta:hover { color: #fff; }

.has-dropdown > .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 8px;
  min-width: 240px;
  list-style: none;
  margin: 12px 0 0;
}

.has-dropdown:hover > .dropdown,
.has-dropdown:focus-within > .dropdown { display: block; }

.dropdown li a {
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--ink);
}
.dropdown li a:hover { background: var(--page-bg); }

.nav-cta { margin-left: 6px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--navy);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 24px;
  border-radius: var(--radius);
  font-family: "Archivo Black", sans-serif;
  font-weight: 400;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  border: 2px solid var(--navy-deep);
  color: var(--navy-deep);
  background: transparent;
  cursor: pointer;
}
.btn:hover { background: var(--navy-deep); color: #fff; text-decoration: none; }

.btn-solid { background: var(--navy-deep); color: #fff; border-color: var(--navy-deep); }
.btn-solid:hover { background: var(--navy); border-color: var(--navy); color: #fff; }

.btn-outline-light { border-color: #fff; color: #fff; background: transparent; }
.btn-outline-light:hover { background: #fff; color: var(--navy-deep); }

/* ---------- Hero (solid navy, left-aligned copy — home/about style) ---------- */
.hero {
  background: var(--navy);
  color: #fff;
  padding: 80px 0 120px;
  position: relative;
  overflow: hidden;
}
.hero h1 {
  color: #fff;
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  margin: 0 0 22px;
  max-width: 780px;
}
.hero p { font-size: 1.05rem; max-width: 620px; color: #e3ebf3; font-weight: 500; }
.hero .btn { margin-top: 14px; }

.wave-divider {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  line-height: 0;
  z-index: 2;
  pointer-events: none;
}
.wave-divider svg { width: 100%; height: 70px; display: block; }

/* ---------- Hero with photo background (centered — parking/contact/how-we-work style) --- */
.hero.with-image {
  padding: 0;
}
.hero.with-image .photo-wrap {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.hero.with-image .photo-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5);
}
.hero.with-image .hero-copy {
  position: relative;
  color: #fff;
  padding: 60px 24px;
  max-width: 760px;
}
.hero.with-image h1 { color: #fff; margin: 0 auto 18px; }
.hero.with-image p { margin: 0 auto 10px; color: #f0f3fa; }
.hero.with-image .btn { margin-top: 16px; }

/* ---------- Sections ---------- */
section { padding: 60px 0; position: relative; }
section.white { background: var(--white); }
section.navy { background: var(--navy); color: #fff; }
section.navy h2, section.navy h3 { color: #fff; }
section.navy p { color: #e3ebf3; }
/* a .card keeps dark-on-white text even inside a navy section */
section.navy .card, section.navy .card h2, section.navy .card h3, section.navy .card h4 { color: var(--navy); }
section.navy .card p { color: var(--ink); }

.lede { font-size: 1.08rem; color: var(--muted); max-width: 760px; }
.section-head { text-align: center; margin-bottom: 36px; }
.section-head .lede { margin: 0 auto; }
section.navy .section-head h2 { color: #fff; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 44px; align-items: center; }

/* Plain columns (no box) -- used for content sitting directly on a white
   or light section, matching the live site's "Our Strength/Success/
   Challenge" treatment: headline + copy, no card background. */
.col-plain h3 { margin-bottom: 10px; }
.col-plain p { color: var(--muted); }

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}

/* ---------- Logo strip (full color, like the live site) ---------- */
.logo-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 48px;
  padding: 28px 0 8px;
}
.logo-strip img {
  height: 40px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
}

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.team-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  text-align: left;
}
.team-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.team-card .team-body { padding: 22px; }
.team-card h3 { margin-bottom: 2px; font-size: 1.1rem; }
.team-card .role { color: var(--navy-deep); font-weight: 700; font-size: 0.85rem; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.03em; }
.team-card p:not(.role) { color: var(--muted); font-size: 0.95rem; }

/* ---------- Timeline / milestones ---------- */
.milestones { border-left: 3px solid rgba(255,255,255,0.25); padding-left: 24px; }
section:not(.navy) .milestones { border-left-color: #c9d3e0; }
.milestone { margin-bottom: 26px; position: relative; }
.milestone::before {
  content: "";
  position: absolute;
  left: -30px; top: 4px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--navy-deep);
}
section.navy .milestone::before { background: #fff; }
.milestone h4 { margin: 0 0 6px; font-family: "Archivo Black", sans-serif; font-weight: 400; font-size: 1rem; color: inherit; }
.milestone p { margin: 0; }

/* ---------- Testimonials ---------- */
.testimonial {
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.testimonial p.quote { font-style: italic; color: var(--ink); margin: 0 0 14px; }
.testimonial .attrib { font-weight: 700; color: var(--navy); font-size: 0.9rem; }
.testimonial .attrib span { display: block; font-weight: 500; color: var(--muted); }

/* ---------- Projects ---------- */
.project {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
  padding: 44px 0;
  border-bottom: 1px solid var(--border);
}
.project:last-child { border-bottom: none; }
.project img { border-radius: var(--radius); box-shadow: var(--shadow); }
.project.reverse .project-media { order: 2; }

/* ---------- Contact form ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
form.contact-form label {
  display: block;
  font-weight: 700;
  font-size: 0.85rem;
  margin: 16px 0 6px;
  color: var(--ink);
}
form.contact-form .name-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
form.contact-form input,
form.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
  background: var(--white);
}
form.contact-form textarea { min-height: 140px; resize: vertical; }
form.contact-form .btn { margin-top: 22px; }
.contact-info { color: var(--muted); }
.contact-info h3 { color: var(--navy); }
.contact-info .addr { margin-top: 18px; }

/* ---------- Footer (near-black, knockout text, wave lead-in) ---------- */
.site-footer {
  background: var(--footer-bg);
  color: #cfe0f0;
  padding: 90px 0 30px;
  margin-top: 0;
  position: relative;
}
.site-footer .wave-divider { bottom: auto; top: -69px; }
.site-footer .footer-top {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 24px;
}
.site-footer .footer-info { font-size: 0.95rem; line-height: 1.7; }
.site-footer .footer-info a { color: #cfe0f0; }
.site-footer .brand img { height: 36px; filter: brightness(0) invert(1); }
.site-footer nav ul { list-style: none; display: flex; gap: 22px; padding: 0; margin: 0; flex-wrap: wrap; }
.site-footer nav a { color: #cfe0f0; font-weight: 700; font-size: 0.82rem; letter-spacing: 0.03em; }
.site-footer nav a:hover { color: #fff; }
.site-footer .footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.8rem; color: #7d93ab;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .grid-3, .team-grid { grid-template-columns: 1fr; }
  .grid-2, .contact-layout, .project, form.contact-form .name-row { grid-template-columns: 1fr; }
  .project.reverse .project-media { order: 0; }

  .site-footer .footer-top { flex-direction: column; align-items: flex-start; text-align: left; }

  .nav-toggle { display: block; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    flex-direction: column; align-items: flex-start;
    padding: 16px 24px 24px;
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav > ul { flex-direction: column; gap: 4px; width: 100%; }
  .has-dropdown::after { display: none; }
  .has-dropdown > .dropdown {
    display: block; position: static; box-shadow: none; border: none;
    padding-left: 12px; margin: 0 0 6px;
  }
  .main-nav a { display: block; padding: 8px 0; }
  .nav-cta { margin-left: 0; margin-top: 10px; }
}
