/* ===========================================================
   Herrera Contractors — Homepage styles
   Navy #0A1F5C / Orange #F7941D — family-owned, Central FL
   =========================================================== */

:root {
  --navy:        #0A1F5C;
  --navy-900:    #06143d;
  --navy-800:    #0a1f5c;
  --navy-700:    #142a73;
  --navy-600:    #213a8f;
  --orange:      #F7941D;
  --orange-600:  #e07f06;
  --orange-100:  #fdecd2;

  --paper:       #F7F5F1;
  --paper-2:     #efece6;
  --white:       #ffffff;
  --ink:         #11193a;
  --body:        #444a5e;
  --muted:       #7b8197;
  --line:        #e4e0d8;
  --line-on-navy: rgba(255,255,255,0.14);

  --shadow-sm: 0 1px 2px rgba(10,31,92,0.06), 0 2px 8px rgba(10,31,92,0.05);
  --shadow-md: 0 6px 18px rgba(10,31,92,0.10), 0 2px 6px rgba(10,31,92,0.06);
  --shadow-lg: 0 24px 60px rgba(6,20,61,0.22);

  --r-sm: 6px;
  --r:    10px;
  --r-lg: 16px;

  --maxw: 1200px;
  --gut: clamp(20px, 5vw, 64px);

  --head: "Oswald", "Arial Narrow", sans-serif;
  --sans: "Source Sans 3", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--body);
  background: var(--paper);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1,h2,h3,h4 {
  font-family: var(--head);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gut); }
.section { padding-block: clamp(40px, 5vw, 76px); }

/* ---------- utility tags ---------- */
.eyebrow {
  font-family: var(--head);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--orange-600);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--orange);
  display: inline-block;
}
.eyebrow.on-navy { color: var(--orange); }
.lede { font-size: 1.18rem; color: var(--body); max-width: 56ch; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--head);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  font-size: 1.02rem;
  padding: 15px 28px;
  border-radius: var(--r-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--orange); color: #2a1500; box-shadow: 0 6px 18px rgba(247,148,29,0.34); }
.btn-primary:hover { background: var(--orange-600); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(247,148,29,0.42); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-700); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; transform: translateY(-2px); }
.btn-ghost.on-navy { color:#fff; border-color: rgba(255,255,255,0.5); }
.btn-ghost.on-navy:hover { background:#fff; color: var(--navy); }
.btn-lg { padding: 18px 34px; font-size: 1.12rem; }

/* ---------- placeholder imagery ---------- */
.ph {
  position: relative;
  background-color: #dfdbd2;
  background-image: repeating-linear-gradient(
    -45deg, transparent 0 14px, rgba(10,31,92,0.05) 14px 28px);
  display: flex; align-items: center; justify-content: center;
  color: #6a6f80;
  overflow: hidden;
}
.ph::after {
  content: attr(data-label);
  font-family: "Source Code Pro", ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6a6f80;
  background: rgba(247,245,241,0.82);
  padding: 6px 12px;
  border-radius: 4px;
  border: 1px dashed #b7b2a6;
}
.ph.on-navy { background-color:#0d245f; background-image: repeating-linear-gradient(-45deg, transparent 0 14px, rgba(255,255,255,0.05) 14px 28px); }
.ph.on-navy::after { background: rgba(6,20,61,0.6); color:#9fb0e0; border-color: rgba(255,255,255,0.25); }

/* =========================================================
   UTILITY BAR
   ========================================================= */
.topbar {
  background: var(--navy-900);
  color: rgba(255,255,255,0.78);
  font-size: 0.86rem;
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 42px; }
.topbar a { color: rgba(255,255,255,0.78); }
.topbar a:hover { color: #fff; }
.topbar .tb-left { display: flex; gap: 26px; align-items: center; }
.topbar .tb-right { display: flex; gap: 18px; align-items: center; }
.topbar .tb-item { display: inline-flex; gap: 8px; align-items: center; }
.topbar svg { width: 15px; height: 15px; opacity: .8; }
.topbar .tb-tag { color: var(--orange); font-weight: 600; }
@media (max-width: 860px){ .topbar .tb-left .hide-sm { display:none; } }

/* =========================================================
   HEADER / NAV
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-md); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.brand { display: flex; align-items: center; gap: 13px; }
.brand .mark {
  width: 46px; height: 46px; border-radius: 9px;
  background: var(--navy);
  display: grid; place-items: center;
  position: relative;
  box-shadow: var(--shadow-sm);
}
.brand .mark::before {
  content:""; position:absolute; inset:0; border-radius:9px;
  border-top: 4px solid var(--orange);
}
.brand .mark span { font-family: var(--head); color:#fff; font-weight:700; font-size:1.5rem; letter-spacing:0.02em; }
.brand .bt { line-height: 1; }
.brand .bt b { font-family: var(--head); font-weight:600; text-transform:uppercase; color: var(--ink); font-size: 1.28rem; letter-spacing: 0.03em; display:block; }
.brand .bt small { font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); font-weight:600; }

/* real logo images */
.brand-logo { height: 50px; width: auto; display: block; }
.footer-brand { gap: 14px; }
.brand-logo-mark { height: 48px; width: auto; display: block; }
@media (max-width: 480px){ .brand-logo { height: 42px; } }

.menu { display: flex; align-items: center; gap: 4px; }
.menu a {
  font-family: var(--head);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
  font-size: 0.96rem;
  color: var(--ink);
  padding: 10px 16px;
  border-radius: 6px;
  position: relative;
}
.menu a::after {
  content:""; position:absolute; left:16px; right:16px; bottom:4px; height:2px;
  background: var(--orange); transform: scaleX(0); transform-origin:left; transition: transform .2s ease;
}
.menu a:hover { color: var(--navy); }
.menu a:hover::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: 16px; }
.nav-phone { display:flex; align-items:center; gap:9px; font-family:var(--head); font-weight:600; font-size:1.18rem; color:var(--navy); letter-spacing:0.02em; }
.nav-phone svg { width:20px; height:20px; color: var(--orange); }
.burger { display:none; background:none; border:none; cursor:pointer; padding:8px; }
.burger span { display:block; width:26px; height:2.5px; background:var(--navy); margin:5px 0; border-radius:2px; transition:.2s; }

@media (max-width: 1080px){
  .menu, .nav-phone { display: none; }
  .burger { display: block; }
}

/* mobile drawer */
.drawer { position: fixed; inset:0; z-index:60; pointer-events:none; }
.drawer .scrim { position:absolute; inset:0; background:rgba(6,20,61,0.5); opacity:0; transition:.25s; }
.drawer .panel { position:absolute; top:0; right:0; bottom:0; width:min(82vw,340px); background:var(--white); transform:translateX(100%); transition:.28s ease; padding:28px 26px; box-shadow:var(--shadow-lg); display:flex; flex-direction:column; gap:6px; }
.drawer.open { pointer-events:auto; }
.drawer.open .scrim { opacity:1; }
.drawer.open .panel { transform:translateX(0); }
.drawer .panel a { font-family:var(--head); text-transform:uppercase; letter-spacing:0.04em; font-size:1.1rem; color:var(--ink); padding:13px 4px; border-bottom:1px solid var(--line); }
.drawer .panel .btn { margin-top:18px; }
.drawer .close { align-self:flex-end; background:none; border:none; font-size:2rem; line-height:1; color:var(--muted); cursor:pointer; margin-bottom:8px; }

/* =========================================================
   HERO
   ========================================================= */
.hero { position: relative; background: var(--navy); color: #fff; overflow:hidden; }
.hero .hero-bg { position:absolute; inset:0; }
.hero .hero-bg .ph { position:absolute; inset:0; width:100%; height:100%; }
.hero .hero-bg::after {
  content:""; position:absolute; inset:0;
  background: linear-gradient(105deg, var(--navy-900) 0%, rgba(10,31,92,0.96) 42%, rgba(10,31,92,0.62) 72%, rgba(10,31,92,0.42) 100%);
}
.hero .wrap { position: relative; z-index:2; display:grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px,5vw,72px); align-items:center; padding-block: clamp(56px, 8vw, 104px); }
.hero h1 { color:#fff; font-size: clamp(2.6rem, 5.4vw, 4.6rem); letter-spacing:0.005em; }
.hero h1 .hl { color: var(--orange); }
.hero .hero-sub { color: rgba(255,255,255,0.82); font-size:1.2rem; margin-top:22px; max-width: 50ch; }
.hero .hero-cta { display:flex; flex-wrap:wrap; gap:14px; margin-top:34px; }
.hero .hero-rating { display:flex; align-items:center; gap:14px; margin-top:30px; color:rgba(255,255,255,0.85); font-size:0.95rem; }
.stars { display:inline-flex; gap:2px; color: var(--orange); }
.stars svg { width:18px; height:18px; }

/* quote card in hero */
.quote-card {
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: 30px 30px 28px;
  color: var(--ink);
  border-top: 5px solid var(--orange);
}
.quote-card h3 { font-size:1.6rem; }
.quote-card .qc-sub { color: var(--body); font-size:0.98rem; margin-top:6px; margin-bottom:20px; }
.field { margin-bottom: 14px; }
.field label { display:block; font-size:0.78rem; font-weight:700; text-transform:uppercase; letter-spacing:0.06em; color:var(--muted); margin-bottom:6px; }
.field input, .field select, .field textarea {
  width:100%; padding:12px 14px; border:1.5px solid var(--line); border-radius:var(--r-sm);
  font-family:var(--sans); font-size:1rem; color:var(--ink); background:var(--white);
  transition:border-color .15s ease, box-shadow .15s ease;
}
.field select optgroup { font-family: var(--head); font-weight:600; text-transform:uppercase; letter-spacing:0.04em; color: var(--navy); font-size:0.92rem; }
.field select option { font-family: var(--sans); font-weight:400; text-transform:none; letter-spacing:normal; color: var(--ink); padding-left:8px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline:none; border-color:var(--orange); box-shadow:0 0 0 3px rgba(247,148,29,0.18);
}
.field.err input, .field.err select { border-color:#d6443a; }
.field .msg { font-size:0.78rem; color:#d6443a; margin-top:5px; display:none; }
.field.err .msg { display:block; }
.quote-card .btn { width:100%; }
.quote-card .qc-fine { font-size:0.78rem; color:var(--muted); text-align:center; margin-top:12px; }
.form-success { display:none; text-align:center; padding:24px 8px; }
.form-success.show { display:block; }
.form-success .ck { width:62px; height:62px; border-radius:50%; background:var(--orange-100); color:var(--orange-600); display:grid; place-items:center; margin:0 auto 16px; }
.form-success .ck svg { width:30px; height:30px; }
.form-success h3 { font-size:1.5rem; }
.form-success p { margin-top:8px; color:var(--body); }

@media (max-width: 920px){
  .hero .wrap { grid-template-columns: 1fr; }
  .hero .hero-bg::after { background: linear-gradient(160deg, var(--navy-900) 0%, rgba(10,31,92,0.92) 60%, rgba(10,31,92,0.8) 100%); }
}

/* =========================================================
   TRUST STRIP
   ========================================================= */
.trust { background: var(--white); border-bottom:1px solid var(--line); }
.trust .wrap { display:grid; grid-template-columns: repeat(5,1fr); gap:0; }
.trust .ti { display:flex; align-items:center; gap:14px; padding:26px 24px; border-right:1px solid var(--line); }
.trust .ti:last-child { border-right:none; }
.trust .ti .ic { width:42px; height:42px; flex:none; border-radius:9px; background:var(--orange-100); color:var(--orange-600); display:grid; place-items:center; }
.trust .ti .ic svg { width:22px; height:22px; }
.trust .ti b { display:block; font-family:var(--head); text-transform:uppercase; font-size:1.05rem; color:var(--ink); line-height:1.1; }
.trust .ti span { font-size:0.84rem; color:var(--muted); }
@media (max-width: 980px){ .trust .wrap { grid-template-columns: repeat(2,1fr); } .trust .ti:nth-child(odd){border-right:1px solid var(--line);} .trust .ti{border-bottom:1px solid var(--line);} }
@media (max-width: 560px){ .trust .wrap { grid-template-columns:1fr; } .trust .ti{border-right:none !important;} }

/* =========================================================
   SECTION HEADERS
   ========================================================= */
.sec-head { max-width: 720px; margin-bottom: 52px; }
.sec-head.center { margin-inline:auto; text-align:center; }
.sec-head h2 { font-size: clamp(2rem, 4vw, 3.1rem); margin-top:16px; }
.sec-head p { margin-top:16px; font-size:1.12rem; }

/* =========================================================
   SERVICES
   ========================================================= */
.services .grid { display:grid; grid-template-columns: repeat(4,1fr); gap:24px; }
.svc {
  background:var(--white); border-radius:var(--r-lg); overflow:hidden;
  box-shadow:var(--shadow-sm); border:1px solid var(--line);
  display:flex; flex-direction:column;
  transition: transform .22s ease, box-shadow .22s ease;
}
.svc:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.svc .svc-img { height:180px; background-size:cover; background-position:center; background-repeat:no-repeat; }
.svc .svc-body { padding:24px 24px 26px; display:flex; flex-direction:column; flex:1; }
.svc .svc-ic { width:48px; height:48px; border-radius:10px; background:var(--navy); color:var(--orange); display:grid; place-items:center; margin:-48px 0 16px; position:relative; z-index:2; box-shadow:var(--shadow-md); }
.svc .svc-ic svg { width:24px; height:24px; }
.svc h3 { font-size:1.4rem; }
.svc p { margin-top:10px; font-size:0.98rem; flex:1; }
.svc .svc-link { margin-top:18px; font-family:var(--head); text-transform:uppercase; letter-spacing:0.05em; font-weight:600; color:var(--navy); font-size:0.92rem; display:inline-flex; align-items:center; gap:8px; }
.svc .svc-link svg { width:16px; height:16px; transition:transform .2s ease; }
.svc:hover .svc-link svg { transform: translateX(4px); }
.svc .svc-link { color: var(--orange-600); }
@media (max-width: 1080px){ .services .grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px){ .services .grid { grid-template-columns: 1fr; } }

/* =========================================================
   WHY US
   ========================================================= */
.why { background: var(--navy); color:#fff; position:relative; overflow:hidden; }
.why::before { content:""; position:absolute; top:-120px; right:-120px; width:380px; height:380px; border-radius:50%; background:radial-gradient(circle, rgba(247,148,29,0.16), transparent 70%); }
.why .wrap { position:relative; z-index:2; display:grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(36px,5vw,72px); align-items:center; }
.why h2 { color:#fff; font-size: clamp(2rem,4vw,3.1rem); margin-top:16px; }
.why .why-lede { color:rgba(255,255,255,0.82); margin-top:18px; font-size:1.12rem; }
.why .stats { display:grid; grid-template-columns: repeat(3,1fr); gap:18px; margin-top:34px; }
.why .stat { border-left:3px solid var(--orange); padding-left:16px; }
.why .stat b { font-family:var(--head); font-weight:600; font-size:2.6rem; color:#fff; display:block; line-height:1; }
.why .stat span { font-size:0.88rem; color:rgba(255,255,255,0.72); text-transform:uppercase; letter-spacing:0.05em; }
.why-list { display:grid; gap:16px; }
.why-list .row { display:flex; gap:16px; align-items:flex-start; background:rgba(255,255,255,0.05); border:1px solid var(--line-on-navy); border-radius:var(--r); padding:20px 22px; transition: background .2s ease; }
.why-list .row:hover { background: rgba(255,255,255,0.09); }
.why-list .ic { width:44px; height:44px; flex:none; border-radius:9px; background:var(--orange); color:var(--navy-900); display:grid; place-items:center; }
.why-list .ic svg { width:22px; height:22px; }
.why-list b { font-family:var(--head); text-transform:uppercase; font-size:1.15rem; color:#fff; }
.why-list p { color:rgba(255,255,255,0.74); margin-top:5px; font-size:0.96rem; }
@media (max-width: 920px){ .why .wrap{ grid-template-columns:1fr; } }

/* =========================================================
   PROJECTS GALLERY
   ========================================================= */
.filters { display:flex; flex-wrap:wrap; gap:10px; margin-bottom:34px; }
.filters button {
  font-family:var(--head); text-transform:uppercase; letter-spacing:0.05em; font-weight:500;
  font-size:0.92rem; padding:10px 20px; border-radius:999px; cursor:pointer;
  background:var(--white); border:1.5px solid var(--line); color:var(--ink);
  transition: all .18s ease;
}
.filters button:hover { border-color:var(--navy); }
.filters button.active { background:var(--navy); color:#fff; border-color:var(--navy); }
.gallery { display:grid; grid-template-columns: repeat(3,1fr); gap:20px; }
.proj { position:relative; border-radius:var(--r-lg); overflow:hidden; box-shadow:var(--shadow-sm); cursor:pointer; aspect-ratio: 4/3; }
.proj.hide { display:none; }
.proj .ph { width:100%; height:100%; }
.proj .proj-img { width:100%; height:100%; object-fit:cover; display:block; transform: scale(var(--zoom, 1)); transition: transform .4s ease; }
.proj:hover .proj-img { transform: scale(calc(var(--zoom, 1) * 1.04)); }

/* card that shows the FULL photo (contain) over a soft blurred fill */
.proj-fit { background: var(--navy-900); }
.proj-fit::before {
  content:""; position:absolute; inset:0;
  background-image: var(--fit-bg);
  background-size: cover; background-position: center;
  filter: blur(26px) brightness(0.55) saturate(1.1);
  transform: scale(1.18);
  z-index:0;
}
.proj-fit .proj-img { position:relative; z-index:1; object-fit: contain; }
.proj-fit:hover .proj-img { transform: scale(1); }
.proj .ov { position:absolute; inset:0; background:linear-gradient(to top, rgba(6,20,61,0.92) 0%, rgba(6,20,61,0.2) 55%, transparent 100%); display:flex; flex-direction:column; justify-content:flex-end; padding:22px; opacity:1; transition:.25s; }
.proj .ov .tag { align-self:flex-start; font-family:var(--head); text-transform:uppercase; letter-spacing:0.06em; font-size:0.72rem; font-weight:600; background:var(--orange); color:var(--navy-900); padding:5px 11px; border-radius:4px; margin-bottom:auto; }
.proj .ov b { font-family:var(--head); text-transform:uppercase; color:#fff; font-size:1.3rem; line-height:1.1; }
.proj .ov span { color:rgba(255,255,255,0.78); font-size:0.9rem; margin-top:4px; }
.proj:hover .ph { transform: scale(1.04); transition: transform .4s ease; }
.gallery-cta { text-align:center; margin-top:44px; }
@media (max-width: 980px){ .gallery { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px){ .gallery { grid-template-columns: 1fr; } }

/* =========================================================
   TESTIMONIALS
   ========================================================= */
.reviews { background: var(--paper-2); }
.rev-top { display:flex; align-items:flex-end; justify-content:space-between; gap:24px; margin-bottom:46px; flex-wrap:wrap; }
.google-badge { display:flex; align-items:center; gap:14px; background:var(--white); border:1px solid var(--line); border-radius:var(--r); padding:14px 20px; box-shadow:var(--shadow-sm); }
.google-badge .g { font-family:var(--head); font-size:1.7rem; font-weight:600; color:var(--ink); }
.google-badge .gr b { font-size:1.05rem; color:var(--ink); }
.google-badge .gr .stars svg { width:15px; height:15px; }
.google-badge .gr small { color:var(--muted); font-size:0.8rem; }
.rev-track-wrap { overflow:hidden; }
.rev-track { display:flex; gap:24px; transition: transform .45s cubic-bezier(.4,0,.2,1); }
.rev-card { background:var(--white); border-radius:var(--r-lg); padding:30px 30px 28px; box-shadow:var(--shadow-sm); border:1px solid var(--line); flex: 0 0 calc((100% - 48px)/3); display:flex; flex-direction:column; }
.rev-card .stars { margin-bottom:14px; }
.rev-card .stars svg { width:18px; height:18px; }
.rev-card .quote { color:var(--ink); font-size:1.05rem; line-height:1.55; flex:1; }
.rev-card .who { display:flex; align-items:center; gap:12px; margin-top:22px; padding-top:20px; border-top:1px solid var(--line); }
.rev-card .av { width:44px; height:44px; border-radius:50%; background:var(--navy); color:#fff; display:grid; place-items:center; font-family:var(--head); font-weight:600; font-size:1.1rem; flex:none; }
.rev-card .who b { display:block; color:var(--ink); font-size:1rem; font-family:var(--head); text-transform:uppercase; letter-spacing:0.02em; }
.rev-card .who span { font-size:0.85rem; color:var(--muted); }
.rev-nav { display:flex; gap:10px; }
.rev-nav button { width:48px; height:48px; border-radius:50%; border:1.5px solid var(--line); background:var(--white); color:var(--navy); cursor:pointer; display:grid; place-items:center; transition:.18s; }
.rev-nav button:hover { background:var(--navy); color:#fff; border-color:var(--navy); }
.rev-nav button svg { width:20px; height:20px; }
@media (max-width: 980px){ .rev-card { flex-basis: calc((100% - 24px)/2); } }
@media (max-width: 640px){ .rev-card { flex-basis: 100%; } }

/* =========================================================
   FINANCING
   ========================================================= */
.financing .wrap { display:grid; grid-template-columns: 1fr 1fr; gap: clamp(32px,5vw,64px); align-items:center; }
.fin-card { background: var(--navy); color:#fff; border-radius:var(--r-lg); padding: clamp(32px,4vw,52px); position:relative; overflow:hidden; }
.fin-card::after { content:""; position:absolute; right:-60px; bottom:-60px; width:220px; height:220px; border-radius:50%; background:rgba(247,148,29,0.14); }
.fin-card .eyebrow { position:relative; z-index:2; }
.fin-card h2 { color:#fff; font-size: clamp(2rem,3.6vw,2.9rem); margin-top:14px; position:relative; z-index:2; }
.fin-card .big { font-family:var(--head); font-size:3.4rem; color:var(--orange); line-height:1; margin:22px 0 6px; position:relative; z-index:2; }
.fin-card p { color:rgba(255,255,255,0.82); position:relative; z-index:2; }
.fin-card .btn { margin-top:26px; position:relative; z-index:2; }
.fin-points { display:grid; gap:18px; }
.fin-points .fp { display:flex; gap:16px; align-items:flex-start; }
.fin-points .fp .ic { width:46px; height:46px; flex:none; border-radius:10px; background:var(--orange-100); color:var(--orange-600); display:grid; place-items:center; }
.fin-points .fp .ic svg { width:23px; height:23px; }
.fin-points .fp b { font-family:var(--head); text-transform:uppercase; color:var(--ink); font-size:1.2rem; }
.fin-points .fp p { margin-top:5px; font-size:0.98rem; }
@media (max-width: 880px){ .financing .wrap { grid-template-columns:1fr; } }

/* =========================================================
   CTA BAND
   ========================================================= */
.cta-band { background: var(--orange); color: var(--navy-900); }
.cta-band .wrap { display:flex; align-items:center; justify-content:space-between; gap:32px; padding-block: clamp(44px,5vw,64px); flex-wrap:wrap; }
.cta-band h2 { color: var(--navy-900); font-size: clamp(1.9rem,3.6vw,2.8rem); }
.cta-band p { color: var(--navy-800); font-size:1.1rem; margin-top:8px; font-weight:600; }
.cta-band .cta-actions { display:flex; gap:14px; flex-wrap:wrap; }
.cta-band .btn-navy { box-shadow: 0 8px 22px rgba(6,20,61,0.28); }

/* =========================================================
   CONTACT
   ========================================================= */
.contact { background: var(--navy-900); color:#fff; }
.contact .wrap { display:grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(36px,5vw,72px); }
.contact h2 { color:#fff; font-size: clamp(2rem,4vw,3rem); margin-top:16px; }
.contact .c-lede { color:rgba(255,255,255,0.8); margin-top:18px; font-size:1.1rem; }
.contact-list { margin-top:34px; display:grid; gap:18px; }
.contact-list .ci { display:flex; gap:16px; align-items:center; }
.contact-list .ci .ic { width:48px; height:48px; flex:none; border-radius:10px; background:rgba(255,255,255,0.06); border:1px solid var(--line-on-navy); color:var(--orange); display:grid; place-items:center; }
.contact-list .ci .ic svg { width:22px; height:22px; }
.contact-list .ci span { display:block; font-size:0.8rem; text-transform:uppercase; letter-spacing:0.08em; color:rgba(255,255,255,0.55); }
.contact-list .ci b { font-size:1.15rem; color:#fff; font-family:var(--head); font-weight:500; }
.contact-form { background:var(--white); border-radius:var(--r-lg); padding: clamp(28px,3vw,40px); color:var(--ink); box-shadow:var(--shadow-lg); }
.contact-form h3 { font-size:1.7rem; }
.contact-form .cf-sub { color:var(--body); margin-top:6px; margin-bottom:22px; font-size:0.98rem; }
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.contact-form textarea { min-height:110px; resize:vertical; }
.contact-form .btn { width:100%; margin-top:6px; }
@media (max-width: 880px){ .contact .wrap{ grid-template-columns:1fr; } .form-row{ grid-template-columns:1fr; } }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: #050f2e; color: rgba(255,255,255,0.7); padding-block: 64px 0; }
.footer .cols { display:grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap:40px; padding-bottom:48px; border-bottom:1px solid var(--line-on-navy); }
.footer .brand .bt b { color:#fff; }
.footer .f-about { margin-top:18px; font-size:0.96rem; max-width:34ch; }
.footer .f-social { display:flex; gap:10px; margin-top:20px; }
.footer .f-social a { width:40px; height:40px; border-radius:9px; background:rgba(255,255,255,0.07); display:grid; place-items:center; color:#fff; transition:.18s; }
.footer .f-social a:hover { background:var(--orange); color:var(--navy-900); }
.footer .f-social svg { width:19px; height:19px; }
.footer h5 { font-family:var(--head); text-transform:uppercase; letter-spacing:0.06em; color:#fff; font-size:1.05rem; margin:0 0 18px; }
.footer ul { list-style:none; margin:0; padding:0; display:grid; gap:11px; }
.footer ul a { font-size:0.96rem; }
.footer ul a:hover { color:var(--orange); }
.footer .f-contact div { font-size:0.96rem; margin-bottom:12px; }
.footer .f-contact b { color:#fff; display:block; font-weight:600; }
.footer .legal { display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px; padding:24px 0 34px; font-size:0.86rem; color:rgba(255,255,255,0.5); }
.footer .legal a:hover { color:#fff; }
@media (max-width: 880px){ .footer .cols{ grid-template-columns:1fr 1fr; } }
@media (max-width: 520px){ .footer .cols{ grid-template-columns:1fr; } }

/* =========================================================
   SCROLL REVEAL
   ========================================================= */
.reveal { opacity:0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity:1; transform:none; }
.reveal.d1 { transition-delay:.08s; }
.reveal.d2 { transition-delay:.16s; }
.reveal.d3 { transition-delay:.24s; }
@media (prefers-reduced-motion: reduce){ .reveal{ opacity:1; transform:none; transition:none; } html{ scroll-behavior:auto; } }

/* =========================================================
   HERO CREDENTIAL LINE
   ========================================================= */
.hero-cred {
  display: inline-flex; align-items: center; gap: 9px;
  margin-top: 16px;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.82);
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.16);
  padding: 8px 15px;
  border-radius: 999px;
}
.hero-cred svg { width: 16px; height: 16px; color: var(--orange); flex: none; }
@media (max-width: 480px){ .hero-cred { font-size: 0.78rem; align-items: flex-start; } }

/* =========================================================
   ACCREDITATIONS STRIP
   ========================================================= */
.accred { background: var(--white); border-bottom: 1px solid var(--line); }
.accred .wrap { display: flex; align-items: center; gap: 28px; padding-block: 16px; flex-wrap: wrap; }
.accred-label {
  font-family: var(--head); text-transform: uppercase; letter-spacing: 0.1em;
  font-size: 0.74rem; font-weight: 600; color: var(--muted); flex: none;
}
.accred-list { display: flex; flex: 1; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 30px; }
.ab {
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent;
}
.ab svg { width: 14px; height: 14px; flex: none; color: var(--orange-600); }
.ab .ab-logo { height: 44px; width: auto; object-fit: contain; flex: none; display: block; }
@media (max-width: 560px){
  .accred .wrap { gap: 12px; }
  .accred-list { gap: 18px; }
  .ab .ab-logo { height: 34px; }
}

/* =========================================================
   VETERANS BANNER
   ========================================================= */
.vet-banner { background: var(--navy-900); border-top: 2px solid var(--orange); }
.vet-banner .wrap { display: flex; align-items: center; justify-content: center; gap: 14px; padding-block: 14px; text-align: center; }
.vet-banner .vet-flag { flex: none; width: 34px; height: 23px; border-radius: 2px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.4); display: block; }
.vet-banner .vet-flag svg { width: 100%; height: 100%; display: block; }
.vet-banner p { color: rgba(255,255,255,0.82); font-size: 1.14rem; letter-spacing: 0.01em; }
.vet-banner p strong { color: #fff; font-weight: 700; }
@media (max-width: 560px){ .vet-banner p { font-size: 1rem; } }

/* =========================================================
   SERVICE AREAS
   ========================================================= */
.areas { background: var(--white); }
.area-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.area-grid li {
  display: flex; align-items: center; gap: 11px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  padding: 16px 18px;
  font-family: var(--head); text-transform: uppercase; letter-spacing: 0.03em;
  font-weight: 500; font-size: 1.02rem; color: var(--ink);
  transition: border-color .18s ease, transform .18s ease, background .18s ease;
}
.area-grid li:hover { border-color: var(--navy); transform: translateY(-3px); background: var(--white); }
.area-grid li svg { width: 20px; height: 20px; flex: none; color: var(--orange-600); }
.area-note { text-align: center; margin-top: 36px; font-size: 1.1rem; color: var(--body); }
.area-note a { color: var(--orange-600); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.area-note a:hover { color: var(--navy); }
@media (max-width: 880px){ .area-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px){ .area-grid { grid-template-columns: repeat(2, 1fr); } .area-grid li { font-size: 0.92rem; } }

/* =========================================================
   HERO — redesigned (pill / headline / photo + stats / form)
   ========================================================= */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.hero .wrap { align-items: start; padding-block: clamp(40px, 5vw, 72px); }
.hero-text { display: flex; flex-direction: column; align-items: flex-start; }

.loc-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--head); text-transform: uppercase; letter-spacing: 0.05em;
  font-weight: 600; font-size: 0.84rem; color: var(--orange);
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.18);
  padding: 8px 16px; border-radius: 999px; white-space: nowrap;
}
.loc-pill svg { width: 15px; height: 15px; flex: none; }

.hero-text h1 { margin-top: 22px; }
.hero-photo {
  width: 100%; aspect-ratio: 16 / 9; margin-top: 32px;
  border-radius: var(--r-lg);
  border: 1px solid rgba(255,255,255,0.12);
  background-size: cover; background-position: center; background-repeat: no-repeat;
}
.hero-stats { display: flex; gap: clamp(24px, 4vw, 44px); margin-top: 30px; flex-wrap: wrap; }
.hero-stats .hs b {
  font-family: var(--head); font-weight: 600; font-size: 2.1rem;
  color: var(--orange); display: block; line-height: 1;
}
.hero-stats .hs span {
  font-size: 0.82rem; color: rgba(255,255,255,0.72);
  text-transform: uppercase; letter-spacing: 0.05em; margin-top: 4px; display: block;
}

/* form card tweaks to match the cleaner direction */
.hero .quote-card { border-top: none; }
.hero .quote-card .qc-fine { font-size: 0.92rem; }
.hero .quote-card .qc-fine a:hover { color: var(--orange-600) !important; }

@media (max-width: 920px){
  .hero-photo { aspect-ratio: 16 / 8; }
}

/* desktop: align the form card top with the headline (not the pill above it) */
@media (min-width: 921px){
  .hero .quote-card { margin-top: 61px; }
  .hero .wrap { align-items: stretch; }
  .hero-photo { flex: 1 1 0; aspect-ratio: auto; min-height: 240px; }
}@media (max-width: 480px){
  .hero-stats { gap: 22px; }
  .hero-stats .hs b { font-size: 1.7rem; }
}

/* stats inside the white form card */
.quote-card .hero-stats {
  margin-top: 22px; padding-top: 20px;
  border-top: 1px solid var(--line);
  gap: 8px; justify-content: space-between;
}
.quote-card .hero-stats .hs { text-align: center; flex: 1; }
.quote-card .hero-stats .hs b { font-size: 1.5rem; }
.quote-card .hero-stats .hs span { color: var(--muted); }

/* =========================================================
   BEFORE / AFTER SLIDER
   ========================================================= */
/* ---- coverflow carousel wrapper ---- */
.ba-carousel { position: relative; max-width: 1080px; margin: 0 auto 46px; padding: 0 8px; }
.bac-stage {
  position: relative;
  height: clamp(280px, 42vw, 520px);
  perspective: 1600px;
}
.bac-item {
  position: absolute; top: 50%; left: 50%;
  width: min(680px, 76%);
  transform: translate(-50%, -50%);
  transition: transform .5s cubic-bezier(.4,0,.2,1), opacity .5s ease, filter .5s ease;
  will-change: transform, opacity;
}
.bac-item .ba-slider { aspect-ratio: 3 / 2; box-shadow: var(--shadow-lg); }
.bac-title {
  text-align: center; margin-top: 14px;
  font-family: var(--head); text-transform: uppercase; letter-spacing: 0.03em;
  color: var(--ink); font-size: 1.02rem;
  transition: opacity .4s ease;
}
/* position classes set by JS */
.bac-item.is-active { z-index: 5; opacity: 1; }
.bac-item.is-prev  { transform: translate(-118%, -50%) scale(.8); z-index: 3; opacity: .55; filter: brightness(.7); }
.bac-item.is-next  { transform: translate(18%, -50%) scale(.8);  z-index: 3; opacity: .55; filter: brightness(.7); }
.bac-item.is-hidden { transform: translate(-50%, -50%) scale(.6); z-index: 1; opacity: 0; pointer-events: none; }
.bac-item.is-prev .ba-slider, .bac-item.is-next .ba-slider { cursor: pointer; }
.bac-item.is-prev .bac-title, .bac-item.is-next .bac-title { opacity: 0; }
/* only the active comparison accepts the drag */
.bac-item:not(.is-active) .ba-divider,
.bac-item:not(.is-active) .ba-handle { opacity: 0; }
.bac-item:not(.is-active) .ba-slider { pointer-events: none; }
.bac-item.is-prev .ba-slider, .bac-item.is-next .ba-slider { pointer-events: auto; }

.bac-arrow {
  position: absolute; top: clamp(140px, 21vw, 260px); transform: translateY(-50%);
  z-index: 10; width: 54px; height: 54px; border-radius: 50%;
  background: var(--navy); color: #fff; border: none; cursor: pointer;
  display: grid; place-items: center; box-shadow: var(--shadow-md);
  transition: background .18s ease, transform .18s ease;
}
.bac-arrow:hover { background: var(--orange); color: var(--navy-900); }
.bac-arrow svg { width: 24px; height: 24px; }
.bac-prev { left: -6px; }
.bac-next { right: -6px; }
.bac-dots { display: flex; justify-content: center; gap: 9px; margin-top: 22px; }
.bac-dots button {
  width: 10px; height: 10px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--line); padding: 0; transition: background .2s ease, transform .2s ease;
}
.bac-dots button.active { background: var(--orange); transform: scale(1.25); }

@media (max-width: 680px){
  .bac-item { width: 84%; }
  .bac-item.is-prev, .bac-item.is-next { opacity: 0; pointer-events: none; }
  .bac-arrow { width: 46px; height: 46px; }
  .bac-prev { left: -2px; } .bac-next { right: -2px; }
}

.ba-slider {
  position: relative; width: 100%; aspect-ratio: 3 / 2;
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-md);
  cursor: ew-resize; user-select: none; touch-action: none;
  --pos: 50%;
}
.ba-slider:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.ba-after, .ba-before { position: absolute; inset: 0; width: 100%; height: 100%; background-size: cover; background-position: center; background-repeat: no-repeat; }
.ba-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-label {
  position: absolute; top: 14px; z-index: 4;
  font-family: var(--head); text-transform: uppercase; letter-spacing: 0.08em;
  font-weight: 600; font-size: 0.8rem; padding: 6px 13px; border-radius: 6px;
  pointer-events: none;
}
.ba-label-before { left: 14px; background: var(--navy-900); color: #fff; }
.ba-label-after { right: 14px; background: var(--orange); color: var(--navy-900); }
.ba-divider {
  position: absolute; top: 0; bottom: 0; left: var(--pos);
  width: 3px; background: #fff; transform: translateX(-50%); z-index: 5;
  box-shadow: 0 0 0 1px rgba(6,20,61,0.10);
  pointer-events: none;
}
.ba-handle {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 46px; height: 46px; border-radius: 50%; background: #fff;
  display: grid; place-items: center; box-shadow: var(--shadow-md); color: var(--navy);
}
.ba-handle svg { width: 22px; height: 22px; }
.ba-cap { text-align: center; margin-top: 16px; color: var(--body); font-size: 0.96rem; }
.how { background: var(--white); }
.tri-head .d { color: var(--navy); }
.tri-head .m { color: #6f9bd6; }
.tri-head { white-space: nowrap; }
@media (max-width: 560px){ .tri-head { white-space: normal; } }
.how-steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, 1fr);
}
.how-step {
  position: relative;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 0 14px;
}
/* connector line — sits behind the number, runs to the next step */
.how-line {
  position: absolute;
  top: 33px;            /* center of the 66px number badge */
  left: 50%;
  width: 100%;
  height: 4px;
  background: var(--line);
  z-index: 0;
  border-radius: 2px;
  overflow: hidden;
}
.how-line::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .5s ease;
}
.how-num {
  position: relative; z-index: 2;
  width: 66px; height: 66px; border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-family: var(--head); font-weight: 600; font-size: 1.7rem;
  display: grid; place-items: center;
  box-shadow: 0 6px 16px rgba(10,31,92,0.22);
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), background .35s ease, box-shadow .35s ease;
}
.how-step b {
  font-family: var(--head); text-transform: uppercase; letter-spacing: 0.02em;
  color: var(--ink); font-size: 1.12rem; margin-top: 20px;
}
.how-desc { color: var(--body); font-size: 0.94rem; margin-top: 8px; max-width: 22ch; }

/* animated active / completed states (driven by JS adding classes) */
.how-step.active .how-num {
  background: var(--orange); color: var(--navy-900);
  transform: scale(1.12);
  box-shadow: 0 10px 26px rgba(247,148,29,0.5);
}
.how-step.done .how-num { background: var(--navy); }
.how-step.fill .how-line::after { transform: scaleX(1); }

@media (max-width: 860px){
  .how-steps { grid-template-columns: 1fr; gap: 0; max-width: 460px; margin-inline: auto; }
  .how-step { flex-direction: row; align-items: flex-start; text-align: left; gap: 20px; padding: 0 0 36px 0; }
  .how-step:last-child { padding-bottom: 0; }
  .how-step b { margin-top: 12px; }
  .how-desc { margin-top: 6px; max-width: none; }
  /* vertical connector on mobile */
  .how-line { top: 66px; left: 33px; width: 4px; height: 100%; }
  .how-line::after { transform-origin: top center; transform: scaleY(0); }
  .how-step.fill .how-line::after { transform: scaleY(1); }
  .how-step > b, .how-step > .how-desc { align-self: flex-start; }
  .how-step { display: grid; grid-template-columns: 66px 1fr; grid-template-rows: auto auto; column-gap: 20px; }
  .how-num { grid-row: 1 / span 2; }
}
