:root {
  --navy: #0d1660;
  --navy-2: #1a2a8c;
  --ink: #16181d;
  --ink-2: #4a4f5a;
  --line: #e4e2dc;
  --paper: #ffffff;
  --sand: #f6f4ef;
  --accent: #c8a15a;
  --radius: 14px;
  --wrap: 1180px;
  --shadow: 0 10px 30px rgba(13, 22, 96, .08);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.65 Inter, system-ui, sans-serif; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--navy-2); }
h1, h2, h3 { font-family: Archivo, Inter, sans-serif; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.12rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.narrow { max-width: 760px; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 600; color: #e9dcc0; margin-bottom: .9em; }
.eyebrow a { color: inherit; }
.eyebrow.dark { color: var(--navy-2); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .9em 1.5em; border-radius: 999px; background: var(--navy); color: #fff; font-weight: 600; text-decoration: none; border: 2px solid var(--navy); cursor: pointer; font-size: 1rem; transition: transform .15s, background .15s; }
.btn:hover { background: var(--navy-2); border-color: var(--navy-2); transform: translateY(-1px); }
.btn-sm { padding: .55em 1.1em; font-size: .92rem; }
.btn-block { width: 100%; }
.btn-light { background: #fff; color: var(--navy); border-color: #fff; }
.btn-light:hover { background: var(--sand); border-color: var(--sand); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-ghost-light:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-outline { background: transparent; color: var(--navy); }
.btn-outline:hover { color: #fff; }
.link-arrow { font-weight: 600; color: var(--navy-2); text-decoration: none; }
.link-arrow::after { content: " →"; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand img { height: 44px; width: auto; }
.main-nav { display: flex; gap: 26px; margin-left: auto; }
.main-nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .96rem; }
.main-nav a:hover, .main-nav a[aria-current] { color: var(--navy-2); }
.header-cta { display: flex; align-items: center; gap: 14px; }
.phone-link { font-weight: 600; color: var(--ink); text-decoration: none; white-space: nowrap; }
.nav-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); margin: 7px 8px; }

/* hero */
.hero, .page-hero { position: relative; color: #fff; min-height: min(86vh, 760px); display: flex; align-items: flex-end; overflow: hidden; }
.page-hero { min-height: 520px; }
.page-hero.short { min-height: 400px; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,12,40,.15) 0%, rgba(8,12,40,.55) 55%, rgba(8,12,40,.85) 100%); }
.hero-inner { position: relative; padding: 120px 0 56px; }
.hero h1, .page-hero h1 { max-width: 19ch; }
.page-hero h1 { max-width: 22ch; font-size: clamp(2rem, 4.2vw, 3.2rem); }
.hero-sub { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 56ch; color: #eef0f7; }
.hero-sub a { color: #fff; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.trust-row { list-style: none; padding: 22px 0 0; margin: 34px 0 0; display: flex; flex-wrap: wrap; gap: 14px 34px; border-top: 1px solid rgba(255,255,255,.25); font-size: .95rem; color: #dfe3f2; }
.trust-row strong { color: #fff; }

/* sections */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-alt { background: var(--sand); }
.section-dark { background: var(--navy); color: #fff; }
.section-dark p { color: #d4d9f0; }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head.row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; }
.section-head p { color: var(--ink-2); font-size: 1.06rem; }
.section-dark .section-head p { color: #d4d9f0; }
.lead-text { font-size: 1.15rem; color: var(--ink-2); }

/* service cards */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.svc-card { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); text-decoration: none; color: inherit; transition: box-shadow .2s, transform .2s; }
.svc-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.svc-card img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.svc-card-body { padding: 22px 22px 26px; }
.svc-card-body p { color: var(--ink-2); font-size: .97rem; }

/* split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.split-media img { border-radius: var(--radius); width: 100%; object-fit: cover; }
.owner-img { aspect-ratio: 4/5; max-height: 640px; object-position: top; background: #e9e9ea; }
.why-list, .feature-grid, .cred-grid { list-style: none; padding: 0; margin: 26px 0; }
.why-list { display: grid; gap: 18px; }
.why-list li { padding-left: 20px; border-left: 3px solid var(--accent); }
.why-list p, .feature-grid p, .cred-grid p { color: var(--ink-2); margin: 0; font-size: .97rem; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.feature-grid li, .cred-grid li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.cred-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.g-item { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; cursor: zoom-in; }
.proj-group + .proj-group { margin-top: 64px; }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(5,8,25,.92); display: grid; place-items: center; padding: 24px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 90vh; width: auto; border-radius: 8px; }
.lightbox button { position: absolute; top: 14px; right: 18px; font-size: 2.4rem; color: #fff; background: none; border: 0; cursor: pointer; }

/* steps */
.steps, .timeline { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.timeline { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); counter-reset: s; }
.steps li, .timeline li { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); padding: 24px; }
.steps span { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: var(--navy); font-weight: 800; margin-bottom: 14px; }
.timeline li::before { counter-increment: s; content: counter(s, decimal-leading-zero); display: block; font-family: Archivo; font-weight: 800; color: var(--accent); margin-bottom: 8px; }
.steps p, .timeline p { margin: 0; font-size: .95rem; }

/* reviews */
.reviews { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.review-slot { background: var(--sand); border-radius: var(--radius); padding: 40px; text-align: center; border: 1px dashed #cfc8b8; }
.stars { color: var(--accent); font-size: 1.6rem; letter-spacing: .1em; }
.review-placeholder { color: var(--ink-2); margin: 10px 0 0; }

/* towns */
.towns { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.towns li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: .92rem; }

/* form */
.form-card { background: #fff; border-radius: var(--radius); padding: clamp(22px, 3vw, 34px); box-shadow: var(--shadow); border: 1px solid var(--line); }
.lead-form { display: grid; gap: 14px; }
.lead-form label { display: grid; gap: 6px; font-weight: 600; font-size: .9rem; }
.lead-form input, .lead-form select, .lead-form textarea { font: inherit; font-weight: 400; padding: .75em .85em; border: 1px solid #cfd2da; border-radius: 10px; background: #fff; width: 100%; color: var(--ink); }
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus { outline: 2px solid var(--navy-2); outline-offset: 1px; border-color: transparent; }
.lead-form .invalid { border-color: #c0392b; background: #fff7f6; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { margin: 0; font-size: .93rem; min-height: 1.2em; }
.form-note.err { color: #b03a2e; }
.form-note.ok { color: #1e7a46; font-weight: 600; }
.form-fine { font-size: .78rem; color: var(--ink-2); margin: 0; }
.form-done { text-align: center; padding: 30px 10px; }
.form-done h3 { font-size: 1.4rem; }

/* faq */
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; position: relative; padding-right: 28px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: -2px; font-size: 1.4rem; color: var(--navy-2); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-2); margin: 10px 0 0; }

/* contact page */
.contact-page h1 { font-size: clamp(2rem, 4vw, 3rem); }
.contact-points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 18px; }
.contact-points strong { display: block; font-family: Archivo; }

/* final cta + footer */
.final-cta { background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; padding: 64px 0; }
.final-cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; }
.final-cta p { color: #d9def3; margin: 0; }
.final-cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.site-footer { background: #0a0f3d; color: #c6cbe2; padding: 64px 0 28px; font-size: .95rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer h3 { color: #fff; font-size: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-logo { background: #fff; padding: 8px 10px; border-radius: 8px; margin-bottom: 16px; height: auto; }
.licenses { font-size: .85rem; color: #9aa1c4; }
.footer-phone { font-size: 1.2rem; font-weight: 700; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 22px; font-size: .85rem; color: #8b92b8; }
.mobile-call { display: none; }

/* responsive */
@media (max-width: 1000px) {
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .phone-link { display: none; }
}
@media (max-width: 820px) {
  .main-nav { position: absolute; top: 72px; left: 0; right: 0; background: #fff; flex-direction: column; gap: 0; padding: 8px 16px 16px; border-bottom: 1px solid var(--line); display: none; }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: block; }
  .header-cta { margin-left: auto; }
  .split, .reviews { grid-template-columns: 1fr; }
  .cred-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 10px; }
}
@media (max-width: 600px) {
  .svc-grid, .steps { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .header-cta .btn-sm { display: none; }
  .brand img { height: 38px; }
  .hero { min-height: 92vh; }
  .hero-inner { padding: 100px 0 40px; }
  .trust-row { gap: 10px 22px; font-size: .88rem; }
  .mobile-call { display: block; position: fixed; left: 16px; right: 16px; bottom: 14px; z-index: 60; text-align: center; background: var(--navy); color: #fff; font-weight: 700; padding: 14px; border-radius: 999px; text-decoration: none; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
  .site-footer { padding-bottom: 90px; }
}

/* estrutura v2 (referência Bay State Remodeling) */
.hero-trust { margin: 26px 0 0; font-size: .92rem; color: #dfe3f2; letter-spacing: .01em; }
.cred-strip { background: #fff; border-bottom: 1px solid var(--line); }
.cred-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 28px; padding: 20px 0; font-size: .93rem; color: var(--ink-2); }
.cred-row a { color: var(--ink-2); text-decoration: none; }
.cred-row strong { color: var(--ink); }
.num { display: block; font-family: Archivo; font-weight: 800; color: var(--accent); font-size: .95rem; margin-bottom: 6px; }
.proj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.proj-card { margin: 0; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.proj-card img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.proj-card figcaption { padding: 16px 18px 20px; display: grid; gap: 4px; }
.proj-card figcaption span { color: var(--ink-2); font-size: .93rem; }
.steps-5 { grid-template-columns: repeat(5, 1fr); }
.check-list { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 10px; }
.check-list li { padding-left: 30px; position: relative; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--navy); color: #fff; font-size: .75rem; display: grid; place-items: center; margin-top: 3px; }
.form-intro { color: var(--ink-2); margin: -4px 0 18px; }
@media (max-width: 1000px) { .steps-5 { grid-template-columns: 1fr 1fr; } .proj-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .steps-5, .proj-grid { grid-template-columns: 1fr; } .cred-row { justify-content: flex-start; } }

/* formulário em 3 passos (referência West Shore Home) */
.steps-form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps-form fieldset[hidden] { display: none; }
.steps-form legend { font-family: Archivo; font-weight: 700; font-size: 1.2rem; margin-bottom: 4px; padding: 0; }
.step-help { color: var(--ink-2); font-size: .92rem; margin: -6px 0 0; }
.step-count { display: flex; align-items: center; gap: 12px; margin: 0 0 4px; font-size: .82rem; color: var(--ink-2); }
.step-bar { flex: 1; height: 6px; background: var(--sand); border-radius: 99px; overflow: hidden; }
.step-bar i { display: block; height: 100%; width: 33%; background: var(--navy); transition: width .25s; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; border-radius: 12px; }
.choices.invalid { outline: 2px solid #c0392b; outline-offset: 4px; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; }
.choice span { display: block; padding: 14px 14px; border: 1.5px solid #cfd2da; border-radius: 10px; font-weight: 600; font-size: .95rem; text-align: center; transition: border-color .15s, background .15s; }
.choice input:checked + span { border-color: var(--navy); background: #eef0fb; color: var(--navy); }
.choice input:focus-visible + span { outline: 2px solid var(--navy-2); outline-offset: 2px; }
.choice:hover span { border-color: var(--navy-2); }
.lead-form label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .86rem; color: var(--ink-2); }
.lead-form label.check input { width: auto; margin-top: 3px; }
.step-nav { display: flex; gap: 10px; }
.step-nav .btn { flex: 1; }
.step-nav .btn[hidden] { display: none; }
@media (max-width: 600px) { .choices { grid-template-columns: 1fr; } }
