/*
 * Boss Cleaning: one landing page, English and Spanish.
 * Colors come from the logo (navy, teal, mint) and the eco badge.
 * Phone first: the base rules are for phones; wider screens are added in the
 * min-width blocks at the end. "Reduce motion" turns off smooth scrolling and
 * hover movement.
 */

/* ==================== Tokens ==================== */
:root {
    --navy-900: #022b3f;
    --navy: #003a55;          /* logo */
    --teal: #007b98;          /* logo */
    --teal-700: #00627a;
    --mint: #2ac79a;          /* logo */
    --mint-600: #1fae86;
    --mint-100: #d6f5ea;
    --mint-50: #effbf7;
    --ink: #13293a;
    --muted: #4c6272;
    --line: #dbe6ea;
    --soft: #f3f8f9;
    --star: #f5b301;
    --error: #c62828;
    --success: #17734c;
    --radius: 18px;
    --shadow: 0 1px 2px rgb(2 43 63 / 6%), 0 8px 24px rgb(2 43 63 / 8%);
    --shadow-lg: 0 2px 6px rgb(2 43 63 / 8%), 0 24px 48px rgb(2 43 63 / 14%);
    --gutter: 16px;
    --header: 68px;
    --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

/* ==================== Base ==================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header) + 12px); }
@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}
body {
    margin: 0;
    background: #fff;
    color: var(--ink);
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.6;
    overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
picture { display: contents; }
h1, h2, h3 { margin: 0; color: var(--navy-900); line-height: 1.15; }
h1, h2 { font-family: var(--serif); font-weight: 700; letter-spacing: -.01em; text-wrap: balance; }
h3 { font-size: 19px; font-weight: 700; line-height: 1.3; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--teal-700); }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
blockquote, figure { margin: 0; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.sr-only {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
    position: absolute; left: 12px; top: -60px; z-index: 100;
    padding: 10px 16px; border-radius: 8px; background: var(--navy); color: #fff; font-weight: 700;
}
.skip-link:focus { top: 12px; color: #fff; }
.icon { flex: none; }

/* ==================== Buttons ==================== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 48px; padding: 12px 22px;
    border: 2px solid transparent; border-radius: 999px;
    font: 700 16px/1.2 var(--sans); text-align: center; text-decoration: none;
    cursor: pointer;
    transition: background-color .2s, border-color .2s, color .2s, box-shadow .2s, transform .2s;
}
.btn--primary { background: var(--mint); color: var(--navy-900); box-shadow: 0 6px 18px rgb(42 199 154 / 35%); }
.btn--primary:hover { background: var(--mint-600); color: var(--navy-900); }
.btn--primary:disabled { background: #9fd9c6; box-shadow: none; cursor: default; }
.btn--dark { background: var(--navy); color: #fff; }
.btn--dark:hover { background: var(--navy-900); color: #fff; }
.btn--outline { border-color: var(--navy); color: var(--navy); background: #fff; }
.btn--outline:hover { background: var(--navy); color: #fff; }
.btn--sm { min-height: 42px; padding: 8px 16px; font-size: 15px; }
.btn--lg { min-height: 56px; padding: 14px 28px; font-size: 17px; }
.btn--block { width: 100%; }
@media (prefers-reduced-motion: no-preference) {
    .btn--primary:not(:disabled):hover { transform: translateY(-1px); }
}

/* ==================== Header ==================== */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgb(255 255 255 / 94%);
    border-bottom: 1px solid var(--line);
    backdrop-filter: saturate(1.4) blur(10px);
    -webkit-backdrop-filter: saturate(1.4) blur(10px);
}
.site-header__inner { display: flex; align-items: center; gap: 12px; height: var(--header); }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; color: var(--navy-900); text-decoration: none; }
.brand img { width: 44px; height: auto; }
.brand__text { display: grid; line-height: 1.1; }
.brand__name { font: 700 19px/1.1 var(--serif); white-space: nowrap; }
.brand__tag { display: none; color: var(--teal-700); font-size: 12.5px; font-weight: 500; letter-spacing: .02em; white-space: nowrap; }
.brand:hover { color: var(--navy-900); }

.site-nav { display: none; }
.site-nav ul { display: flex; gap: 4px; }
.site-nav a {
    display: block; padding: 8px 12px; border-radius: 8px;
    color: var(--ink); font-size: 15.5px; font-weight: 500; text-decoration: none;
}
.site-nav a:hover { background: var(--soft); color: var(--navy); }

/* EN | ES: two links styled as a switch; the current language is filled. */
.lang-toggle { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--soft); }
.lang-toggle a {
    display: grid; place-items: center; min-width: 38px; height: 32px; padding: 0 8px;
    border-radius: 999px; color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: .04em; text-decoration: none;
}
.lang-toggle a:hover { color: var(--navy); }
.lang-toggle a[aria-current] { background: var(--navy); color: #fff; }

.header-call { padding: 0; width: 42px; }
.header-call span { display: none; }
.header-quote { display: none; }

/* ==================== Shared section parts ==================== */
.section { padding: 64px 0; }
.section--soft { background: var(--soft); }
.section__head { max-width: 720px; margin: 0 auto 36px; text-align: center; }
.section__head h2 { font-size: clamp(30px, 6vw, 44px); }
.section__head p:not(.kicker) { margin-top: 14px; color: var(--muted); font-size: 18px; }
.kicker, .eyebrow {
    display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px;
    color: var(--teal-700); font-size: 13.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}
.eyebrow {
    padding: 6px 14px; border-radius: 999px; background: #fff; box-shadow: 0 1px 3px rgb(2 43 63 / 10%);
    letter-spacing: .04em; text-transform: none; font-size: 14px;
}
.eyebrow .icon { color: var(--mint-600); }

.stars { display: inline-flex; gap: 2px; color: var(--star); }

/* ==================== Hero ==================== */
.hero {
    position: relative; overflow: hidden;
    padding: 36px 0 56px;
    background:
        radial-gradient(60% 50% at 100% 0%, rgb(42 199 154 / 22%), transparent 70%),
        radial-gradient(45% 45% at 0% 55%, rgb(0 123 152 / 10%), transparent 70%),
        linear-gradient(180deg, var(--mint-50), #fff 92%);
}
.hero__inner { display: grid; gap: 40px; }
.hero h1 { font-size: clamp(40px, 11vw, 66px); line-height: 1.04; }
.hero h1 em { display: block; color: var(--teal); font-style: italic; font-weight: 600; }
.hero__text { max-width: 560px; margin-top: 18px; color: var(--muted); font-size: 18.5px; }
.hero__actions { display: grid; gap: 12px; margin-top: 28px; }
.hero__sms { margin-top: 14px; }
.hero__sms a { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.hero__trust { display: grid; gap: 8px; margin-top: 26px; color: var(--navy-900); font-size: 15.5px; font-weight: 500; }
.hero__trust li { display: flex; align-items: center; gap: 10px; }
.hero__trust .icon { color: var(--mint-600); }
.hero__trust .icon--star { color: var(--star); }

.hero__media { position: relative; padding: 0 0 46px; }
.hero__photo { overflow: hidden; border-radius: 24px; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 68%; }
.hero__badge {
    position: absolute; top: -18px; right: -6px; width: 92px; height: auto;
    filter: drop-shadow(0 6px 12px rgb(2 43 63 / 25%)); transform: rotate(8deg);
}
.hero__review {
    position: absolute; left: 12px; right: 12px; bottom: 0;
    display: grid; gap: 4px; max-width: 340px; padding: 14px 18px;
    border-radius: 16px; background: #fff; box-shadow: var(--shadow-lg);
}
.hero__review blockquote { color: var(--navy-900); font: italic 600 17px/1.35 var(--serif); }
.hero__review figcaption { color: var(--muted); font-size: 14px; }

/* ==================== Benefits ==================== */
.benefits { padding: 8px 0 56px; }
.benefits__list { display: grid; gap: 16px; }
.benefit {
    display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; align-content: start;
    padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
}
.benefit__icon {
    grid-row: span 2; display: grid; place-items: center; width: 52px; height: 52px;
    border-radius: 14px; background: var(--mint-100); color: var(--teal-700);
}
.benefit p { color: var(--muted); font-size: 15.5px; }

/* ==================== Services ==================== */
.services { display: grid; gap: 24px; }
.service {
    display: flex; flex-direction: column; overflow: hidden;
    border-radius: var(--radius); background: #fff; box-shadow: var(--shadow);
}
.service__photo { position: relative; aspect-ratio: 4 / 3; background: var(--line); }
.service__photo img { width: 100%; height: 100%; object-fit: cover; }
.service__tag {
    position: absolute; bottom: 14px; padding: 4px 12px; border-radius: 999px;
    color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.service__tag--before { left: 14px; background: rgb(2 43 63 / 78%); }
.service__tag--after { right: 14px; background: var(--teal); }
.service__body { display: flex; flex: 1; flex-direction: column; gap: 12px; padding: 24px 22px 26px; }
.service__body h3 { font: 700 25px/1.2 var(--serif); }
.service__text { color: var(--muted); }
.review--card { flex: 1; margin-top: 6px; padding: 16px 18px; border-left: 4px solid var(--mint); border-radius: 4px 12px 12px 4px; background: var(--mint-50); }
.review--card .stars { margin-bottom: 6px; }
.review--card blockquote { font-size: 15.5px; font-style: italic; }
.review--card figcaption { margin-top: 10px; color: var(--muted); font-size: 14px; }
.review figcaption strong { display: block; color: var(--navy-900); font-weight: 700; }
.service__cta { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; margin-top: 4px; font-weight: 700; text-decoration: none; }
.service__cta:hover { text-decoration: underline; }

/* ==================== Reviews (on the Nashua photo) ==================== */
/* A light navy tint, so the brick buildings show; a little darker at the top
   (behind the title) and the bottom. The cards carry their own dark
   background, so their text reads the same whatever the photo shows. */
.section--reviews {
    --reviews-tint: linear-gradient(180deg, rgb(2 43 63 / 62%) 0%, rgb(2 43 63 / 28%) 50%, rgb(2 43 63 / 52%) 100%);
    position: relative; color: #fff;
    background-color: var(--navy-900);
    background-image: var(--reviews-tint), url('/assets/images/nashua-900.webp');
    background-image:
        var(--reviews-tint),
        image-set(url('/assets/images/nashua-900.avif') type('image/avif'), url('/assets/images/nashua-900.webp') type('image/webp'));
    background-size: cover; background-position: center;
}
.section--reviews h2 { color: #fff; text-shadow: 0 2px 14px rgb(2 43 63 / 70%); }
.section--reviews .kicker {
    padding: 5px 12px; border-radius: 999px; background: rgb(2 43 63 / 75%); color: var(--mint);
}
.reviews { display: grid; gap: 18px; }
.review:not(.review--card) {
    display: grid; gap: 10px; align-content: start; padding: 26px 24px;
    border: 1px solid rgb(255 255 255 / 16%); border-radius: var(--radius);
    background: rgb(2 43 63 / 88%);
    box-shadow: 0 12px 32px rgb(2 43 63 / 35%);
}
.review:not(.review--card) > .icon--quote { color: var(--mint); }
.review:not(.review--card) blockquote { font-size: 17px; }
.review:not(.review--card) figcaption { color: rgb(255 255 255 / 75%); font-size: 14.5px; }
.review:not(.review--card) figcaption strong { color: #fff; }
.reviews__badge { width: 120px; height: auto; margin: 36px auto 0; filter: drop-shadow(0 2px 8px rgb(2 43 63 / 80%)); }

/* ==================== How it works ==================== */
.steps { display: grid; gap: 28px; counter-reset: step; }
.step { position: relative; display: grid; justify-items: center; gap: 10px; text-align: center; }
.step__number {
    display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 6px;
    border-radius: 50%; background: var(--mint-100); color: var(--navy-900);
    font: 700 28px/1 var(--serif); box-shadow: 0 0 0 8px var(--mint-50);
}
.step h3 { font-size: 20px; }
.step p { max-width: 320px; color: var(--muted); }
.step a { font-weight: 700; white-space: nowrap; }

/* ==================== Quote ==================== */
.section--quote { background: linear-gradient(180deg, var(--mint-50), #fff 70%); }
.quote { display: grid; gap: 32px; }
.quote__intro h2 { font-size: clamp(30px, 6vw, 44px); }
.quote__intro > p:not(.kicker) { margin-top: 14px; color: var(--muted); font-size: 18px; }
.contact-list { display: grid; gap: 10px; margin-top: 26px; }
.contact-list a {
    display: flex; align-items: center; gap: 14px; padding: 12px 16px;
    border: 1px solid var(--line); border-radius: 14px; background: #fff;
    color: var(--navy-900); font-size: 17px; font-weight: 700; text-decoration: none; overflow-wrap: anywhere;
    transition: border-color .2s, box-shadow .2s;
}
.contact-list a:hover { border-color: var(--mint); box-shadow: var(--shadow); color: var(--navy-900); }
.contact-list small { display: block; color: var(--muted); font-size: 13.5px; font-weight: 500; }
.contact-list__icon { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--navy); color: #fff; }
.quote__payments { display: flex; align-items: center; gap: 10px; margin-top: 22px; color: var(--muted); font-size: 15px; }
.quote__payments .icon { color: var(--teal); }

.form-card {
    padding: 24px 18px; border: 1px solid var(--line); border-radius: 22px;
    background: #fff; box-shadow: var(--shadow-lg);
}
.form { display: grid; gap: 18px; }
.form__row { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { color: var(--navy-900); font-size: 15px; font-weight: 700; }
.req { color: var(--teal-700); }
.field input,
.field textarea {
    width: 100%; padding: 12px 14px;
    border: 1.5px solid #c5d4da; border-radius: 12px; background: #fff;
    color: var(--ink); font: 16px/1.4 var(--sans);
    transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder,
.field textarea::placeholder { color: #7d909c; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus,
.field textarea:focus { border-color: var(--teal); outline: none; box-shadow: 0 0 0 4px rgb(0 123 152 / 18%); }
.field__error { color: var(--error); font-size: 14px; }
.field__error:empty { display: none; }
.field.has-error input,
.field.has-error textarea { border-color: var(--error); }
.field--turnstile { min-height: 65px; }
.form__note { color: var(--muted); font-size: 13.5px; text-align: center; }
.form-status { font-size: 16px; font-weight: 700; }
.form-status:empty { display: none; }
.form-status.is-error { color: var(--error); }
.form-status.is-success {
    padding: 14px 16px; border-radius: 12px; background: #e3f6ec; color: var(--success);
}
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ==================== 404 ==================== */
.not-found { text-align: center; }
.not-found .container { max-width: 640px; }
.not-found__code { color: var(--mint); font: 700 96px/1 var(--serif); }
.not-found h1 { margin-top: 8px; font-size: 40px; }
.not-found p:not(.not-found__code) { margin: 14px 0 28px; color: var(--muted); font-size: 18px; }

/* ==================== Footer ==================== */
.site-footer { padding: 48px 0 28px; background: var(--navy-900); color: rgb(255 255 255 / 80%); font-size: 15.5px; }
.site-footer__inner { display: grid; gap: 32px; }
.site-footer__brand { display: flex; align-items: center; gap: 16px; }
.site-footer__brand img { width: 72px; height: auto; }
.site-footer__tagline { color: #fff; font: italic 600 22px/1.25 var(--serif); }
.site-footer h2 { margin-bottom: 12px; color: #fff; font: 700 13.5px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.site-footer__contact ul { display: grid; gap: 10px; }
.site-footer__contact a { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.site-footer__contact a:hover { color: var(--mint); }
.site-footer__contact .icon { color: var(--mint); }
.site-footer__badges { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.site-footer__badges img { height: auto; }
.site-footer__badges img:first-child { width: 270px; }
.site-footer__badges img:last-child { width: 96px; }
.site-footer__legal { margin-top: 36px; padding-top: 22px; border-top: 1px solid rgb(255 255 255 / 14%); font-size: 13.5px; }

/* ==================== Phone action bar ==================== */
.action-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    background: rgb(255 255 255 / 96%); box-shadow: 0 -6px 20px rgb(2 43 63 / 14%);
    transition: transform .25s;
}
.action-bar a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 52px;
    border-radius: 12px; font-size: 13.5px; font-weight: 700; line-height: 1.1; text-decoration: none;
}
.action-bar__call { background: var(--navy); color: #fff; }
.action-bar__text { background: var(--teal); color: #fff; }
.action-bar__quote { background: var(--mint); color: var(--navy-900); }
.action-bar a:hover { filter: brightness(1.08); }
.action-bar__call:hover, .action-bar__text:hover { color: #fff; }
/* Hidden while the quote form is on screen (main.js), so it never covers the
   form's button or the keyboard. */
.action-bar.is-hidden { transform: translateY(110%); }
body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
@media (prefers-reduced-motion: reduce) {
    .action-bar { transition: none; }
}

/* ==================== Narrowest phones (320–359 px) ==================== */
@media (max-width: 359px) {
    .site-header__inner { gap: 8px; }
    .brand { gap: 8px; }
    .brand img { width: 38px; }
    .brand__name { font-size: 17px; }
    .btn--lg { padding-inline: 16px; }
}

/* ==================== Wider screens ==================== */
@media (min-width: 400px) {
    .header-call { width: auto; padding: 8px 14px; }
    .brand__tag { display: block; }
}

@media (min-width: 480px) {
    .action-bar a { flex-direction: row; gap: 8px; min-height: 48px; font-size: 15px; }
}

@media (min-width: 560px) {
    :root { --gutter: 24px; }
    .hero__actions { display: flex; flex-wrap: wrap; }
    .benefits__list { grid-template-columns: 1fr 1fr; }
    .benefit { grid-template-columns: 1fr; }
    .benefit__icon { grid-row: auto; margin-bottom: 10px; }
    .form__row { grid-template-columns: 1fr 1fr; }
    .form-card { padding: 32px 30px; }
    .hero__review { left: 20px; right: auto; }
}

@media (min-width: 760px) {
    :root { --header: 76px; }
    body { padding-bottom: 0; }
    .action-bar { display: none; }
    .section { padding: 88px 0; }
    .brand img { width: 52px; }
    .brand__name { font-size: 21px; }
    .header-call span { display: inline; }
    .header-quote { display: inline-flex; }
    .services { grid-template-columns: 1fr 1fr; gap: 28px; }
    .reviews { grid-template-columns: repeat(3, 1fr); }
    .steps { grid-template-columns: repeat(3, 1fr); }
    /* A dashed line joins the three numbers. */
    .step:not(:last-child)::after {
        content: ''; position: absolute; top: 32px; left: calc(50% + 48px); right: calc(-50% + 34px);
        border-top: 2px dashed var(--mint);
    }
    .section--reviews {
        background-image: var(--reviews-tint), url('/assets/images/nashua-1600.webp');
        background-image:
            var(--reviews-tint),
            image-set(url('/assets/images/nashua-1600.avif') type('image/avif'), url('/assets/images/nashua-1600.webp') type('image/webp'));
    }
    .site-footer__inner { grid-template-columns: 1.2fr 1fr 1fr; align-items: start; }
    .site-footer__badges { justify-content: flex-end; }
}

@media (min-width: 960px) {
    .hero { padding: 64px 0 88px; }
    .hero__inner { grid-template-columns: 1.05fr 1fr; align-items: center; gap: 56px; }
    .hero__photo { aspect-ratio: 1; }
    .hero__photo img { object-position: center; }
    .hero__media { padding: 0 0 0 24px; }
    .hero__badge { top: -26px; right: -18px; width: 118px; }
    .hero__review { left: -16px; bottom: 28px; }
    .benefits { padding: 0 0 72px; }
    .benefits__list { grid-template-columns: repeat(4, 1fr); }
    .quote { grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: start; }
    .quote__intro { position: sticky; top: calc(var(--header) + 32px); }
    .form-card { padding: 40px; }
}

@media (min-width: 1100px) {
    .site-nav { display: block; margin-right: 8px; }
    .site-header__inner { gap: 14px; }
}
