/* ==========================================================================
   Home RePEAR | HomeRePEAR.com
   Brand tokens, base styles, components, responsive rules.
   ========================================================================== */

:root {
  --navy: #073b66;
  --deep: #04283f;
  --green: #58a928;
  --green-text: #3b7a1d;   /* pear green darkened for small text on light backgrounds (AA) */
  --green-ink: #092f1e;    /* text on pear-green fills */
  --green-light: #a8e676;  /* accents on dark navy */
  --ink: #13232f;
  --muted: #5c6972;
  --wash: #f2f7f3;
  --line: #dce5e0;
  --control: #7f8f88;      /* form control borders (3:1 non-text contrast) */
  --error: #b42318;
  --shadow: 0 20px 55px rgba(4, 40, 63, .14);
  --header-h: 86px;
}

/* Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body { margin: 0; color: var(--ink); background: #fff; font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; line-height: 1.6; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.shell { width: min(1180px, calc(100% - 40px)); margin: auto; }

:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 4px; }
.quote :focus-visible, .promise :focus-visible, .hero :focus-visible, .final-cta :focus-visible { outline-color: var(--green-light); }
.quote-form :focus-visible { outline-color: var(--navy); }

.skip-link { position: fixed; top: -80px; left: 16px; background: #fff; color: var(--navy); font-weight: 800; padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { top: 16px; }

/* Header and navigation -------------------------------------------------- */
.site-header { height: var(--header-h); position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); border-bottom: 1px solid #dfe8e2; backdrop-filter: blur(14px); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 32px; }
.logo-link { width: 230px; flex-shrink: 0; }
.logo-link img { width: 100%; height: 70px; object-fit: contain; object-position: left; }
.desktop-nav { margin-left: auto; display: flex; gap: 24px; font-weight: 750; font-size: .92rem; }
.desktop-nav a { padding: 6px 0; }
.desktop-nav a:hover { color: var(--green-text); }

.menu-button { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--wash); padding: 10px; cursor: pointer; }
.menu-button span { display: block; height: 2px; background: var(--navy); margin: 5px; transition: transform .2s, opacity .2s; }
.menu-button[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-button[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-button[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-nav { position: absolute; top: var(--header-h); left: 0; right: 0; background: #fff; padding: 12px 20px 22px; box-shadow: var(--shadow); }
.mobile-nav a { display: block; padding: 12px; border-bottom: 1px solid var(--line); font-weight: 750; }

.icon { width: 18px; height: 18px; fill: currentColor; flex-shrink: 0; }
.header-phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 850; color: var(--navy); white-space: nowrap; padding: 8px 4px; }
.header-phone .icon { color: var(--green-text); }
.header-phone:hover { color: var(--green-text); }
.call-button { display: none; width: 44px; height: 44px; border-radius: 50%; background: var(--green); color: var(--green-ink); place-items: center; }
.call-button .icon { width: 20px; height: 20px; }

/* Buttons ---------------------------------------------------------------- */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 999px; padding: 15px 24px; background: var(--navy); color: #fff; font-weight: 850; cursor: pointer; box-shadow: 0 8px 24px rgba(7, 59, 102, .22); transition: .2s; }
.button:hover { transform: translateY(-2px); background: #0b4c80; }
.button--small { padding: 11px 18px; font-size: .9rem; }
.button--green { background: var(--green); color: var(--green-ink); box-shadow: none; }
.button--green:hover { background: #63b931; }
.button[disabled] { opacity: .7; cursor: progress; transform: none; }

/* Hero ------------------------------------------------------------------- */
.hero { min-height: 720px; position: relative; display: grid; align-items: center; overflow: hidden; background: var(--deep); color: #fff; }
.hero__image, .hero__shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__image { object-fit: cover; }
.hero__shade { background: linear-gradient(90deg, rgba(3, 29, 48, .98), rgba(3, 29, 48, .86) 34%, rgba(3, 29, 48, .24) 67%, transparent); }
.hero__content { position: relative; z-index: 2; padding: 60px 0; }
.hero__content > * { max-width: 650px; }
.eyebrow, .section-label { margin: 0 0 14px; text-transform: uppercase; letter-spacing: .16em; font-size: .76rem; font-weight: 850; color: var(--green-text); }
.eyebrow { color: var(--green-light); display: flex; align-items: center; gap: 10px; }
.eyebrow span { width: 28px; height: 2px; background: var(--green); }
h1, h2 { font-family: Georgia, "Times New Roman", serif; line-height: 1.04; letter-spacing: -.04em; margin-top: 0; }
h1 { font-size: clamp(3.4rem, 7vw, 6.5rem); margin-bottom: 24px; }
h1 em, h2 em { color: #9ce267; font-weight: 500; }
.hero__lede { font-size: 1.15rem; line-height: 1.75; color: #e7eef2; }
.hero__actions { display: flex; align-items: center; gap: 26px; }
.text-link { font-weight: 800; border-bottom: 1px solid #ffffff88; padding: 10px 2px; }
.trust-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; list-style: none; padding: 28px 0 0; margin: 38px 0 0; border-top: 1px solid #ffffff40; }
.trust-row strong, .trust-row span { display: block; }
.trust-row span { font-size: .82rem; color: #bdcbd4; }

/* Service finder --------------------------------------------------------- */
.service-finder { box-shadow: 0 -10px 40px rgba(4, 40, 63, .08); position: relative; z-index: 3; }
.finder-grid { padding: 32px 0; display: grid; grid-template-columns: 300px 1fr; gap: 45px; align-items: center; }
.finder-grid h2 { font: 800 1.4rem/1.2 Inter, ui-sans-serif, system-ui, sans-serif; letter-spacing: 0; margin: 0; }
.finder-grid .section-label { margin-bottom: 4px; }
.quick-picks { display: flex; gap: 8px; flex-wrap: wrap; }
.quick-picks button, .service-card button { border: 1px solid var(--control); background: #fff; color: var(--navy); font-weight: 800; border-radius: 999px; padding: 10px 15px; cursor: pointer; }
.quick-picks button:hover { background: var(--green); border-color: var(--green); color: var(--green-ink); }

/* Sections --------------------------------------------------------------- */
.section { padding: 102px 0; }
.section-heading { display: grid; grid-template-columns: 1.2fr .8fr; gap: 80px; align-items: end; margin-bottom: 46px; }
.section-heading h2, .promise h2, .coverage h2, .quote h2, .faq h2 { font-size: clamp(2.55rem, 5vw, 4.5rem); color: var(--navy); margin-bottom: 0; }
.section-heading > p, .coverage p { color: var(--muted); }
.single { grid-template-columns: 1fr; }

/* Services */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.service-card { min-height: 320px; padding: 28px; border: 1px solid var(--line); border-radius: 18px; display: flex; flex-direction: column; transition: .22s; }
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: #acd392; }
.service-card > b { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: #eaf5e4; color: var(--green-text); font-size: 1.4rem; }
.service-card h3 { margin: 30px 0 10px; font-size: 1.35rem; }
.service-card p { color: var(--muted); font-size: .95rem; }
.service-card button { margin-top: auto; align-self: flex-start; padding: 8px 0; border: 0; border-bottom: 1px solid currentColor; border-radius: 0; background: transparent; }
.service-card.feature { background: var(--navy); color: #fff; border-color: var(--navy); }
.service-card.feature p { color: #cbd9e3; }
.service-card.feature button { color: var(--green-light); }
.service-card.feature > b { background: var(--green); color: var(--green-ink); }

/* Promise */
.promise { background: var(--deep); color: #fff; }
.promise-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 95px; }
.promise h2 { color: #fff; }
.promise-grid > div:first-child > p:not(.section-label) { color: #bfd0da; }
.light { color: #9bdd6d; }
.promise-list { border-top: 1px solid #ffffff2e; }
.promise-list article { display: grid; grid-template-columns: 52px 1fr; gap: 18px; padding: 25px 0; border-bottom: 1px solid #ffffff2e; }
.promise-list article > span { font: 700 1.3rem Georgia, serif; color: #8fd45e; }
.promise-list h3 { margin: 0 0 6px; }
.promise-list p { margin: 0; color: #bfd0da; }

/* Process */
.process ol { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; list-style: none; padding: 0; margin: 0; }
.process li { padding: 30px; background: var(--wash); border-radius: 18px; border-top: 4px solid var(--green); }
.process li > span { font: 700 2.5rem Georgia, serif; color: #6d8a7c; }
.process h3 { margin: 18px 0 5px; line-height: 1.3; }
.process p { margin: 0; color: var(--muted); }

/* Coverage */
.coverage { background: #eef5f0; }
.coverage-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 65px; align-items: center; }
.city-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; padding: 0; list-style: none; }
.city-list li { padding: 8px 12px; background: #fff; border: 1px solid #d6e2da; border-radius: 999px; font-size: .8rem; font-weight: 750; color: #36505d; }
.coverage figure { margin: 0; background: #fff; padding: 12px; border-radius: 22px; box-shadow: var(--shadow); }
.coverage figure img { border-radius: 14px; width: 100%; }
.coverage figcaption { padding: 15px 10px 7px; font-weight: 800; color: var(--navy); }

/* Quote form ------------------------------------------------------------- */
.quote { background: var(--navy); color: #fff; }
.quote-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 75px; }
.quote h2 { color: #fff; }
.quote-grid > div > p:not(.section-label) { color: #c8d7df; }
.quote-points { display: grid; gap: 8px; color: var(--green-light); font-weight: 750; list-style: none; padding: 0; margin: 24px 0 0; }
.contact-card { margin-top: 32px; padding: 22px 24px; border: 1px solid #ffffff33; border-radius: 18px; background: #ffffff0f; }
.contact-card__title { margin: 0 0 6px; font-weight: 850; color: #fff; }
.contact-card__phone { display: block; font: 700 clamp(1.7rem, 3vw, 2.2rem)/1.15 Georgia, serif; color: var(--green-light); }
.contact-card__phone span { display: block; font: 700 .95rem/1.6 Inter, ui-sans-serif, system-ui, sans-serif; color: #fff; }
.contact-card__row { margin: 8px 0 0; color: #c8d7df; font-size: .92rem; }
.contact-card a:not(.contact-card__phone) { color: #fff; font-weight: 750; text-decoration: underline; text-underline-offset: 3px; }
.contact-card a:hover { color: var(--green-light); }
.quote-form { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; background: #fff; color: var(--ink); padding: 32px; border-radius: 22px; box-shadow: 0 22px 55px #0003; align-self: start; }
.wide, .form-button, .form-note, .form-status { grid-column: 1 / -1; }
.form-required { margin: 0; font-size: .82rem; color: var(--muted); }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label, .contact-group legend { font-size: .82rem; font-weight: 850; color: var(--navy); }
.optional { font-weight: 600; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; padding: 12px; border: 1px solid var(--control); border-radius: 10px; background: #fbfdfc; color: var(--ink); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--navy); outline-offset: 1px; border-color: var(--navy); }
.field [aria-invalid="true"] { border: 2px solid var(--error); background: #fff8f7; }
.field-error { margin: 0; color: var(--error); font-size: .82rem; font-weight: 700; }
.field-error::before { content: "⚠ "; }
.field-hint { margin: 0 0 10px; font-size: .82rem; color: var(--muted); }
.contact-group { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px 16px; margin: 0; min-width: 0; }
.contact-group legend { padding: 0 6px; }
.contact-group.has-error { border: 2px solid var(--error); }
.contact-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-group > .field-error { margin-top: 10px; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-button { width: 100%; }
.form-note { margin: 0; text-align: center; color: var(--muted); font-size: .8rem; }
.form-status { padding: 12px 14px; border-radius: 9px; text-align: center; font-weight: 750; }
.form-status.is-success { background: #eaf5e4; color: #205617; }
.form-status.is-error { background: #fdf0ef; color: var(--error); }

/* FAQ -------------------------------------------------------------------- */
.faq { display: grid; grid-template-columns: 360px 1fr; gap: 85px; }
.faq h2 { font-size: 3rem; }
.accordion { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 22px 0; font-weight: 850; color: var(--navy); cursor: pointer; }
summary::-webkit-details-marker { display: none; }
summary span { font-size: 1.4rem; line-height: 1; color: var(--green-text); transition: transform .2s; }
details[open] summary span { transform: rotate(45deg); }
details p { color: var(--muted); padding: 0 45px 22px 0; margin: 0; }

/* Final CTA and footer --------------------------------------------------- */
.final-cta { padding: 70px 0; background: #061f31; color: #fff; }
.final-cta .shell { display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.final-cta p { font-size: .7rem; letter-spacing: .14em; color: #95abb8; }
.final-cta h2 { font-size: clamp(2.8rem, 5vw, 4.8rem); margin: 0; }
footer { padding: 58px 0 22px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 48px; }
.footer-brand img { width: 280px; height: 104px; object-fit: contain; object-position: left; }
.footer-brand p, .footer-grid a { color: var(--muted); }
.footer-grid h2 { font: 800 .85rem/1.4 Inter, ui-sans-serif, system-ui, sans-serif; text-transform: uppercase; letter-spacing: .1em; color: var(--navy); margin: 0 0 14px; }
.footer-grid a { display: block; margin: 8px 0; font-size: .9rem; }
.footer-contact address { font-style: normal; }
.footer-contact a { color: var(--navy); font-weight: 750; }
.footer-contact .digits { font-weight: 500; color: var(--muted); }
.footer-address { display: block; margin-top: 12px; font-size: .9rem; color: var(--muted); line-height: 1.5; }
.footer-grid a:hover { color: var(--navy); text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 42px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .78rem; }

/* Responsive ------------------------------------------------------------- */
@media (max-width: 1180px) {
  .header-inner { gap: 22px; }
  .header-phone span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .header-phone { width: 40px; height: 40px; justify-content: center; border-radius: 50%; background: var(--wash); padding: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1060px) {
  .desktop-nav { gap: 18px; font-size: .88rem; }
  .process ol { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .desktop-nav, .header-inner > .button, .header-phone { display: none; }
  .menu-button { display: block; margin-left: 0; }
  .header-inner { gap: 10px; }
  .call-button { display: grid; margin-left: auto; }
  .hero__image { object-position: 64%; }
  .finder-grid, .section-heading, .promise-grid, .quote-grid { grid-template-columns: 1fr; gap: 34px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .coverage-grid { gap: 35px; }
  .faq { grid-template-columns: 280px 1fr; gap: 50px; }
  .section { padding: 78px 0; }
}
@media (max-width: 680px) {
  :root { --header-h: 74px; }
  .shell { width: min(100% - 28px, 1180px); }
  .logo-link { width: 180px; }
  .logo-link img { height: 58px; }
  .hero { min-height: 730px; align-items: end; }
  .hero__image { object-position: 70%; }
  .hero__shade { background: linear-gradient(0deg, rgba(3, 29, 48, .98), rgba(3, 29, 48, .78) 62%, rgba(3, 29, 48, .18)); }
  .hero__content { padding: 220px 0 34px; }
  h1 { font-size: 3.3rem; }
  .hero__lede { font-size: 1rem; }
  .hero__actions { flex-direction: column; align-items: flex-start; gap: 8px; }
  .trust-row { grid-template-columns: 1fr; gap: 10px; margin-top: 24px; padding-top: 18px; }
  .trust-row li { display: flex; gap: 10px; align-items: baseline; }
  .finder-grid { padding: 24px 0; }
  .quick-picks { display: grid; grid-template-columns: 1fr 1fr; }
  .service-grid, .process ol, .coverage-grid, .faq, .footer-grid, .contact-fields { grid-template-columns: 1fr; }
  .service-card { min-height: 275px; }
  .quote-form { grid-template-columns: 1fr; padding: 22px; }
  .field { grid-column: 1 / -1; }
  .section { padding: 62px 0; }
  .section-heading { margin-bottom: 30px; }
  .section-heading h2, .promise h2, .coverage h2, .quote h2 { font-size: 2.65rem; }
  .faq { gap: 24px; }
  .faq h2 { font-size: 2.5rem; }
  .final-cta .shell, .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-grid { gap: 32px; }
  .final-cta h2 { font-size: 3rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .button:hover, .service-card:hover { transform: none; }
}
