/* Dynasty Builders Service Pros — landing page styles
   Palette is pulled from the logo: deep navy field, water blue, mold green
   (used sparingly as an accent), on a near-black brand base. */

:root {
  --ink: #05080e;
  --navy: #0a1829;
  --navy-2: #0f2440;
  --navy-3: #16335a;
  --blue: #2f8ae3;
  --blue-600: #1f70c6;
  --blue-50: #eaf3fd;
  --aqua: #8dccf7;
  --green: #a4c83c;
  --paper: #f5f7fa;
  --white: #ffffff;
  --text: #0b1322;
  --muted: #566173;
  --line: #e2e7ee;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(5, 8, 14, .06), 0 12px 32px -12px rgba(5, 8, 14, .18);
  --header-h: 84px;
  --wrap: 1180px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue-600); }
h1, h2, h3 { line-height: 1.08; letter-spacing: -0.025em; margin: 0 0 .5em; font-weight: 800; }
h2 { font-size: clamp(30px, 4.2vw, 48px); }
h3 { font-size: 20px; letter-spacing: -0.015em; line-height: 1.25; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--white); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--aqua); outline-offset: 2px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue-600); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); max-width: 680px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 22px; border-radius: 999px; border: 0;
  font: 700 16px/1 var(--font); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: var(--white); box-shadow: 0 8px 20px -8px rgba(47, 138, 227, .7); }
.btn-primary:hover { background: var(--blue-600); }
.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { background: var(--blue-50); }
.btn-ghost { background: rgba(255, 255, 255, .08); color: var(--white); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }
.btn-ghost:hover { background: rgba(255, 255, 255, .14); }
.btn-block { width: 100%; }

/* ---------- sticky header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s ease;
}
.site-header.scrolled { box-shadow: 0 10px 30px -20px rgba(5, 8, 14, .35); }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 70px; width: auto; }
.header-nav { display: flex; gap: 26px; margin-left: 12px; }
.header-nav a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; }
.header-nav a:hover { color: var(--text); }
.header-cta { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.header-phone { display: flex; flex-direction: column; align-items: flex-end; color: var(--text); text-decoration: none; line-height: 1.15; }
.header-phone small { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #4a7410; display: flex; align-items: center; gap: 6px; }
.header-phone strong { font-size: 20px; letter-spacing: -.01em; }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(164, 200, 60, .7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(164, 200, 60, 0); } 100% { box-shadow: 0 0 0 0 rgba(164, 200, 60, 0); } }
.header-call-icon { display: none; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--white);
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(47, 138, 227, .35), transparent 60%),
    radial-gradient(700px 480px at -10% 110%, rgba(164, 200, 60, .12), transparent 60%),
    linear-gradient(180deg, var(--navy) 0%, var(--ink) 100%);
  padding: 72px 0 88px;
}
.hero::after {
  /* faint water-line texture */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: repeating-linear-gradient(115deg, rgba(141, 204, 247, .04) 0 1px, transparent 1px 22px);
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: start; }
.hero .eyebrow { color: var(--aqua); }
.hero h1 { font-size: clamp(38px, 5.6vw, 66px); margin-bottom: 20px; }
.hero h1 span { color: var(--aqua); }
.hero .lead { color: rgba(255, 255, 255, .78); margin-bottom: 26px; }
.hero-points { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 12px; }
.hero-points li { display: flex; gap: 12px; align-items: flex-start; font-size: 17px; color: rgba(255, 255, 255, .92); }
.hero-points svg { width: 22px; height: 22px; flex: none; color: var(--green); margin-top: 2px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 34px; }
.badges { display: flex; flex-wrap: wrap; gap: 10px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  font-size: 13.5px; font-weight: 600; color: rgba(255, 255, 255, .9);
  background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
}
.badge svg { width: 16px; height: 16px; color: var(--aqua); }

/* ---------- lead form card ---------- */
.lead-card {
  background: var(--white); color: var(--text); border-radius: 22px; padding: 30px;
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .06);
}
.lead-card h2 { font-size: 26px; margin-bottom: 6px; }
.lead-card .sub { color: var(--muted); font-size: 15px; margin-bottom: 20px; }
.lead-form { display: grid; gap: 12px; }
.lead-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; color: var(--text); }
.field label .opt { color: var(--muted); font-weight: 500; }
.lead-form input, .lead-form select, .lead-form textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--paper); color: var(--text);
  font: 500 16px/1.3 var(--font); transition: border-color .15s, background .15s, box-shadow .15s;
}
.lead-form textarea { min-height: 84px; resize: vertical; }
.lead-form select {
  appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23566173' stroke-width='2' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus {
  outline: none; border-color: var(--blue); background: var(--white); box-shadow: 0 0 0 4px rgba(47, 138, 227, .15);
}
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; }
.chips span {
  display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--paper); font-size: 14.5px; font-weight: 600; cursor: pointer;
}
.chips input:checked + span { background: var(--blue-50); border-color: var(--blue); color: var(--blue-600); }
.chips input:focus-visible + span { outline: 3px solid var(--aqua); outline-offset: 2px; }
.fineprint { font-size: 12px; color: var(--muted); line-height: 1.45; margin: 2px 0 0; }
.lead-card .or-call { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; font-size: 14.5px; color: var(--muted); }
.lead-card .or-call a { font-weight: 700; color: var(--text); text-decoration: none; }
.lc-success { display: none; text-align: center; padding: 24px 6px; }
.lc-success.show { display: block; }
.lc-success .check { width: 60px; height: 60px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-50); color: var(--blue); }
.lc-success .check svg { width: 30px; height: 30px; }
.lead-form.hide { display: none; }

/* ---------- trust strip ---------- */
.trust { background: var(--ink); color: var(--white); border-top: 1px solid rgba(255, 255, 255, .06); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { padding: 26px 22px; display: flex; gap: 14px; align-items: center; border-right: 1px solid rgba(255, 255, 255, .07); }
.trust-item:last-child { border-right: 0; }
.trust-item svg { width: 30px; height: 30px; color: var(--aqua); flex: none; }
.trust-item strong { display: block; font-size: 16px; }
.trust-item span { font-size: 13.5px; color: rgba(255, 255, 255, .6); }

/* ---------- sections ---------- */
.section { padding: 96px 0; }
.section.alt { background: var(--paper); }
.section.dark { background: linear-gradient(180deg, var(--navy) 0%, var(--ink) 100%); color: var(--white); }
.section.dark .lead { color: rgba(255, 255, 255, .72); }
.section.dark .eyebrow { color: var(--aqua); }
.section-head { max-width: 760px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }

/* quick answer (AEO) */
.answer-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: start; }
.answer-box {
  border-radius: var(--radius); padding: 30px 32px; background: var(--blue-50);
  border-left: 5px solid var(--blue);
}
.answer-box h2 { font-size: clamp(26px, 3vw, 34px); }
.answer-box p { font-size: 18px; margin: 0 0 12px; }
.answer-box p:last-child { margin: 0; }
.facts { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; background: var(--white); }
.facts h3 { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.facts dl { margin: 0; display: grid; gap: 12px; }
.facts dl div { display: grid; grid-template-columns: 112px 1fr; gap: 12px; font-size: 15px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.facts dl div:last-child { border-bottom: 0; padding-bottom: 0; }
.facts dt { color: var(--muted); font-weight: 500; }
.facts dd { margin: 0; font-weight: 600; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cards.four { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.section.alt .card { border-color: transparent; box-shadow: var(--shadow); }
.card .ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue-600); margin-bottom: 18px; }
.card .ico svg { width: 24px; height: 24px; }
.card p { color: var(--muted); font-size: 15.5px; margin: 0; }

/* signs checklist */
.signs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 28px; list-style: none; margin: 0; padding: 0; }
.signs li { display: flex; gap: 14px; padding: 18px 20px; border-radius: var(--radius-sm); background: var(--white); border: 1px solid var(--line); }
.signs svg { width: 22px; height: 22px; color: var(--blue); flex: none; margin-top: 2px; }
.signs strong { display: block; font-size: 16.5px; }
.signs span { color: var(--muted); font-size: 15px; }
.callout {
  margin-top: 36px; padding: 22px 26px; border-radius: var(--radius); display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  background: var(--ink); color: var(--white);
}
.callout p { margin: 0; font-size: 17px; max-width: 640px; }
.callout strong { color: var(--aqua); }

/* process */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.steps li {
  counter-increment: step; position: relative; padding: 30px 28px; border-radius: var(--radius);
  background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
}
.steps li::before {
  content: counter(step, decimal-leading-zero); display: block; font-size: 15px; font-weight: 800; letter-spacing: .06em;
  color: var(--green); margin-bottom: 16px;
}
.steps h3 { color: var(--white); }
.steps p { color: rgba(255, 255, 255, .68); font-size: 15.5px; margin: 0; }

/* why us split */
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.why-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.why-list li { display: flex; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.why-list li:last-child { border-bottom: 0; }
.why-list svg { width: 26px; height: 26px; color: var(--blue); flex: none; margin-top: 2px; }
.why-list strong { display: block; font-size: 17.5px; margin-bottom: 2px; }
.why-list span { color: var(--muted); font-size: 15.5px; }
.quote-card { position: sticky; top: calc(var(--header-h) + 24px); border-radius: 22px; padding: 36px; background: var(--ink); color: var(--white); }
.quote-card blockquote { margin: 0 0 22px; font-size: 22px; line-height: 1.4; letter-spacing: -.01em; font-weight: 600; }
.quote-card cite { font-style: normal; font-size: 14px; color: rgba(255, 255, 255, .6); }
.quote-card .btn { margin-top: 24px; }

/* insurance */
.ins-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.ins-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ins-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 16.5px; }
.ins-list svg { width: 22px; height: 22px; color: var(--green); flex: none; margin-top: 2px; }

/* service area */
.area-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.cities { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.cities li { padding: 10px 16px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-size: 15px; font-weight: 600; }
.cities li.hq { background: var(--ink); color: var(--white); border-color: var(--ink); }
.area-note { margin-top: 18px; color: var(--muted); font-size: 15px; }

/* faq */
.faq { max-width: 860px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 24px 44px 24px 0; position: relative;
  font-size: 18.5px; font-weight: 700; letter-spacing: -.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  background:
    linear-gradient(var(--blue), var(--blue)) center / 14px 2px no-repeat,
    linear-gradient(var(--blue), var(--blue)) center / 2px 14px no-repeat;
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .ans { padding: 0 0 24px; color: var(--muted); font-size: 16.5px; }
.faq .ans p:last-child { margin: 0; }

/* related services */
.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.related a {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 22px 24px;
  border-radius: var(--radius); background: var(--white); border: 1px solid var(--line);
  color: var(--text); text-decoration: none; font-weight: 700; font-size: 17px; transition: border-color .15s, transform .15s;
}
.related a:hover { border-color: var(--blue); transform: translateY(-2px); }
.related a span { display: block; font-weight: 500; font-size: 14px; color: var(--muted); margin-top: 2px; }
.related svg { width: 20px; height: 20px; color: var(--blue); flex: none; }

/* final cta */
.final-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.final-grid h2 { font-size: clamp(32px, 4.4vw, 54px); }
.big-phone { display: inline-flex; align-items: center; gap: 14px; margin-top: 10px; color: var(--white); text-decoration: none; font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; letter-spacing: -.02em; }
.big-phone svg { width: 34px; height: 34px; color: var(--green); }

/* footer */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .7); padding: 56px 0 36px; font-size: 15px; border-top: 1px solid rgba(255, 255, 255, .06); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
.site-footer img { height: 84px; width: auto; margin-bottom: 18px; padding: 10px 14px; background: var(--white); border-radius: 14px; }
.site-footer h3 { color: var(--white); font-size: 14px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .08); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 13px; color: rgba(255, 255, 255, .5); }

/* mobile sticky footer bar */
.mobile-bar { display: none; }

/* reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .pulse { animation: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .header-nav { display: none; }
  .cards.four { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .hero-grid, .answer-grid, .split, .ins-grid, .area-grid, .final-grid { grid-template-columns: 1fr; gap: 36px; }
  .quote-card { position: static; }
  .cards, .steps, .related { grid-template-columns: 1fr 1fr; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .trust-item:nth-child(2) { border-right: 0; }
  .trust-item:nth-child(-n+2) { border-bottom: 1px solid rgba(255, 255, 255, .07); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  :root { --header-h: 68px; }
  body { font-size: 16px; padding-bottom: 76px; }
  .wrap { padding: 0 16px; }
  .brand img { height: 56px; }
  .header-phone, .header-cta .btn-primary { display: none; }
  .header-call-icon {
    display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border-radius: 999px;
    background: var(--blue); color: var(--white); text-decoration: none; font-weight: 700; font-size: 15px;
  }
  .header-call-icon svg { width: 17px; height: 17px; }
  .hero { padding: 40px 0 56px; }
  .hero-actions { display: none; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 34px; }
  .cards, .cards.four, .steps, .related, .signs { grid-template-columns: 1fr; }
  .lead-card { padding: 24px 20px; border-radius: 18px; }
  .lead-form .row { grid-template-columns: 1fr; }
  .answer-box { padding: 24px 22px; }
  .facts dl div { grid-template-columns: 96px 1fr; }
  .trust-item { padding: 18px 12px; gap: 10px; }
  .trust-item svg { width: 24px; height: 24px; }
  .trust-item strong { font-size: 14.5px; }
  .trust-item span { font-size: 12.5px; }
  .footer-grid { grid-template-columns: 1fr; }
  .callout .btn { width: 100%; }

  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(5, 8, 14, .94);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid rgba(255, 255, 255, .1);
  }
  .mobile-bar { grid-template-columns: 1.15fr .85fr; }
  .mobile-bar .btn { min-height: 52px; font-size: 16px; padding: 0 10px; gap: 8px; white-space: nowrap; }
}
