/* Market Share SEO: hand-built replacement for the Duda export.
   Same look (Sora, dark hero with network background, green pills), no Duda runtime. */

:root {
  --ink: #000000;
  --muted: rgba(0, 0, 0, .5);
  --dark: #161616;
  --green: #4bca78;
  --green-dark: #3db866;
  --line: #d9d9d9;
  --wrap: 1214px;
  --header-h: 86px;
}

* { box-sizing: border-box; }

html {
  scroll-padding-top: calc(var(--header-h) + 16px);
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font: 400 16px/1.65 "Sora", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0 0 .6em; line-height: 1.35; font-weight: 700; }
h2 { font-size: 27px; }
h3 { font-size: 24px; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 20px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 41px; padding: 10px 34px;
  border-radius: 50px; border: 0;
  font: 700 16px/1.2 "Sora", system-ui, sans-serif;
  text-decoration: none; text-align: center; cursor: pointer;
  background: var(--green); color: #fff;
  transition: background-color .15s ease, transform .08s ease;
}
.btn:hover { background: var(--green-dark); }
.btn:active { transform: translateY(1px); }
.btn:disabled { background: #aaa; cursor: not-allowed; }
.btn-row { display: flex; justify-content: center; padding-block: 28px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--dark);
}
.nav {
  height: var(--header-h);
  display: flex; align-items: center; gap: 12px;
}
.brand { display: block; flex: none; }
.brand img { width: 169px; height: auto; }

.nav-links {
  list-style: none; margin: 0 0 0 auto; padding: 0;
  display: flex; align-items: center; gap: 4px;
}
.nav-links a {
  display: block; padding: 8px 16px;
  color: #fff; text-decoration: none; font-size: 16px;
}
.nav-links a:hover { color: var(--green); }
.nav-links .nav-cta a {
  margin-left: 22px; min-width: 220px; padding: 15px 28px; text-align: center;
  background: var(--green); color: #fff; border-radius: 50px; font-weight: 700;
}
.nav-links .nav-cta a:hover { background: var(--green-dark); color: #fff; }

.burger {
  display: none; margin-left: auto;
  width: 44px; height: 44px; padding: 0;
  background: transparent; border: 0; cursor: pointer;
  align-items: center; justify-content: center;
}
.burger span, .burger span::before, .burger span::after {
  display: block; width: 26px; height: 2px; background: #fff;
  transition: transform .2s ease, background-color .2s ease;
}
.burger span { position: relative; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -8px; }
.burger span::after { top: 8px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-8px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  position: relative; color: #fff;
  background: var(--dark) url("/images/bg.jpg") center / cover no-repeat;
  padding-block: 64px 96px;
}
.hero::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .5); }
.hero .wrap { position: relative; }
.hero-grid {
  display: grid; grid-template-columns: 1fr 360px; gap: 64px;
  align-items: center; min-height: 600px;
}
.hero h1 { font-size: clamp(34px, 3.4vw, 48px); line-height: 1.38; max-width: 580px; margin-bottom: 64px; }
.hero .tagline { font-size: 18px; font-weight: 700; line-height: 1.5; max-width: 600px; margin: 0; }

.audit-card {
  background: #fff; color: var(--ink);
  border-radius: 6px; padding: 30px 30px 32px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}
.audit-card h2 { font-size: 30px; line-height: 1.3; margin: 0 0 6px; }
.audit-card .note { font-size: 14px; line-height: 1.6; color: var(--muted); margin-bottom: 20px; }
.audit-card .note strong { color: rgba(0, 0, 0, .6); }
.audit-card form { display: grid; gap: 12px; padding-inline: 16px; }
.audit-card input, .audit-card textarea {
  width: 100%; padding: 8px 10px;
  border: 1px solid #b5b5b5; border-radius: 2px;
  font: 14px/1.4 "Sora", system-ui, sans-serif; color: var(--ink);
}
.audit-card textarea { min-height: 72px; resize: vertical; }
.audit-card textarea::placeholder { font-style: italic; }
.audit-card input:focus, .audit-card textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(75, 202, 120, .2); }
.audit-card .btn { justify-self: center; min-width: 220px; margin-top: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.status-msg { display: none; margin: 4px 0 0; padding: 10px 12px; border-radius: 6px; font-size: 14px; line-height: 1.5; }
.status-msg.success { display: block; background: #ecfdf5; color: #065f46; }
.status-msg.error { display: block; background: #fef2f2; color: #991b1b; }

/* ---------- founder ---------- */
.founder { padding-block: 44px 56px; }
.founder-grid { display: grid; grid-template-columns: max-content 1fr; gap: 56px; align-items: start; }
.founder h2 { font-size: 32px; line-height: 1.38; margin-bottom: 24px; }
.portrait { border-radius: 50%; width: 100%; max-width: 336px; aspect-ratio: 1; object-fit: cover; }
.founder-copy { font-size: 18px; line-height: 1.66; padding-top: 4px; }
.founder-copy a { color: #463939; }

/* ---------- specialty icons ---------- */
.specialty {
  display: grid; grid-template-columns: 1fr 2fr; gap: 40px;
  padding-block: 40px;
}
.specialty h2 { margin: 0; }
.icon-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px 40px; }
.icon-card { display: block; text-decoration: none; }
.icon-card svg { width: auto; height: 120px; max-width: 100%; fill: var(--ink); display: block; margin: 0 0 28px; }
.icon-card span { display: block; font-size: 16px; }
.icon-card:hover span { color: var(--green-dark); text-decoration: underline; }

.prime { padding-block: 40px 24px; }
.prime h2 { margin-bottom: 40px; }

/* ---------- alternating service rows ---------- */
.row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  align-items: center; padding-block: 28px;
}
.row h3 { margin-bottom: 30px; }
.row p { margin: 0; }
.row img { margin-inline: auto; }
/* let grid columns shrink below their images' intrinsic width on narrow screens */
.hero-grid > *, .founder-grid > *, .specialty > *, .row > *, .reviews > *, .quotes > * { min-width: 0; }
.row.wide-media { grid-template-columns: 1.33fr 1fr; }

/* ---------- testimonials ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding-block: 24px 28px; }
.stars { width: 100%; max-width: 400px; height: auto; fill: var(--ink); display: block; margin-bottom: 20px; }
.review-name { font-weight: 600; margin: 0; }
.review-role { font-weight: 600; margin: 0 0 18px; }
.review-quote { font-size: 18px; line-height: 1.5; font-style: italic; margin: 0; }

.veterans { padding-block: 8px 40px; }
.veterans h2 { font-size: 16px; margin-bottom: 24px; }
.quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 0; align-items: start; }

/* ---------- faq ---------- */
.faq { padding-block: 32px 64px; }
.faq h2 { margin-bottom: 40px; }
.faq h3 { font-size: 27px; margin: 36px 0 20px; }

/* ---------- footer ---------- */
.site-footer { padding-block: 48px 40px; border-top: 1px solid #eee; }
.site-footer h2 { margin: 0; }
.foot-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.foot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding-block: 36px 28px; font-size: 14px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-grid a { text-decoration: none; }
.foot-grid a:hover { color: var(--green-dark); text-decoration: underline; }
.address { margin: 0; }
.copyright { border-top: 1px solid #888; padding-top: 16px; font-size: 14px; }
.copyright p { margin: 0 0 8px; }

/* ---------- interior pages ---------- */
.page-title { padding-block: 56px 8px; }
.page-title h1 { font-size: clamp(30px, 3.4vw, 42px); margin: 0; }
.prose { max-width: 900px; padding-bottom: 48px; }
.prose h2 { font-size: 22px; margin-top: 1.8em; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .burger { display: flex; }
  .nav-links {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    margin: 0; padding: 8px 20px 24px;
    background: var(--dark);
    box-shadow: 0 12px 24px rgba(0, 0, 0, .3);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
  }
  .nav-links.open { opacity: 1; visibility: visible; transform: none; }
  .nav-links a { padding: 14px 4px; font-size: 18px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
  .nav-links .nav-cta a { margin: 16px 0 0; min-width: 0; border-bottom: 0; }
  .hero-grid { grid-template-columns: 1fr 340px; gap: 40px; }
}

@media (max-width: 860px) {
  .hero-grid, .founder-grid, .specialty, .row, .row.wide-media, .reviews { grid-template-columns: 1fr; }
  .hero-grid { min-height: 0; gap: 36px; }
  .hero h1 { margin-bottom: 20px; }
  .audit-card { max-width: 460px; }
  .row { gap: 20px; }
  .row > .row-media { order: -1; }
  .row h3 { margin-bottom: 14px; }
  .portrait { max-width: 216px; }
  .reviews { gap: 36px; }
  .stars { max-width: 240px; }
}

@media (max-width: 560px) {
  :root { --header-h: 72px; }
  h2 { font-size: 24px; }
  h3, .faq h3 { font-size: 21px; }
  .brand img { width: 140px; }
  .hero { padding-block: 40px 56px; }
  .audit-card { padding: 24px 18px; }
  .audit-card h2 { font-size: 26px; }
  .audit-card form { padding-inline: 0; }
  .founder h2 { font-size: 26px; }
  .founder-copy { font-size: 16px; }
  .icon-grid { gap: 36px 20px; }
  .icon-card svg { height: 80px; margin-bottom: 16px; }
  .quotes { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .foot-cta .btn { width: 100%; }
}
