/* ---------------------------------------------------------------------------
   Self-hosted fonts (latin subset). font-display: swap shows text immediately
   in a fallback font, then swaps in the real font when it has loaded.
--------------------------------------------------------------------------- */
@font-face {
    font-family: 'Chakra Petch';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/chakra-petch-700.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Karla';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/karla-400.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Karla';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/karla-600.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Karla';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/karla-700.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}/* =============================================================================
   ALPRATT EXTERIORS — STYLESHEET
   -----------------------------------------------------------------------------
   PALETTE (sampled from the logo)
     --navy-900  deepest shadow of the "A" bevel   (footer)
     --navy      dark blue of the wordmark         (hero, headings)
     --blue      cobalt face of the "A"            (accents, icons)
     --cta       slightly brighter cobalt          (buttons; white text = 5.9:1)
     --sky       highlight blue from the emblem    (small accents on dark)
     --silver    chrome orbit ring                 (text on dark, decoration)
     --steel     gray of the word "EXTERIORS"      (body copy)
   To change the button color site-wide, edit --cta and --cta-dark only.

   TYPE
     Chakra Petch (headings) — chamfered corners echo the wordmark
     Karla (body)            — plain, readable humanist sans

   LAYOUT IDEA
     Dark navy hero with a faint silver orbit ring; its bottom edge is cut to a
     single roof peak (same angle as the A). Below it, alternating white/tinted
     bands with one calm layout each. No drop-shadow cards; structure comes
     from rules and spacing.
============================================================================= */

:root {
    --navy-900: #041A45;
    --navy:     #08275F;
    --blue:     #0050B0;
    --cta:      #0A62C8;
    --cta-dark: #074C9E;
    --sky:      #5CB1F5;
    --silver:   #C8CED8;
    --steel:    #4E5766;
    --ink:      #101826;
    --bg:       #FFFFFF;
    --tint:     #F2F5FA;
    --line:     #DCE2EC;

    --wrap:     1180px;
    --radius:   8px;
    --header-h: 76px;
}

/* ------------------------------- Reset ------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: 'Karla', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--ink);
    background: var(--bg);
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 1em; }
h1, h2, h3 {
    margin: 0 0 .5em;
    font-family: 'Chakra Petch', 'Karla', sans-serif;
    font-weight: 700;
    line-height: 1.12;
    color: var(--navy);
}
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.2rem; }
[id] { scroll-margin-top: calc(var(--header-h) + 12px); }

:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }

.skip-link {
    position: absolute; left: -999px; top: 0; z-index: 100;
    background: var(--navy); color: #fff; padding: .7em 1em;
}
.skip-link:focus { left: 0; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .001ms !important; animation: none !important; }
}

/* ------------------------------ Layout helpers ---------------------------- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap--narrow { max-width: 760px; }
.center { text-align: center; }
.section { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.section--tint { background: var(--tint); }
.section--dark {
    background: linear-gradient(160deg, var(--navy-900), var(--navy));
    color: #DCE4F2;
}
.section--dark h2 { color: #fff; }
.section-title { text-align: center; max-width: 22ch; margin-left: auto; margin-right: auto; }
.section-lead { text-align: center; max-width: 60ch; margin: 0 auto 2.5rem; color: var(--steel); }
.section--dark .section-lead { color: #B9C6DE; }
.inline-link { color: var(--cta); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* -------------------------------- Buttons --------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: .8em 1.5em;
    font: 700 1rem/1.2 'Karla', sans-serif;
    border: 2px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn--primary { background: var(--cta); color: #fff; }
.btn--primary:hover { background: var(--cta-dark); }
.btn--outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--outline:hover { background: var(--navy); color: #fff; }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: var(--tint); }
.btn--lg { padding: 1em 1.8em; font-size: 1.1rem; }
.btn--block { width: 100%; }
.btn:disabled { opacity: .7; cursor: wait; }

/* ------------------------------ Top bar + header -------------------------- */
.topbar { background: var(--navy-900); color: #B9C6DE; font-size: .85rem; }
.topbar__inner {
    max-width: var(--wrap); margin: 0 auto; padding: 6px 24px;
    display: flex; justify-content: space-between; gap: 1rem;
}

.site-header {
    position: sticky; top: 0; z-index: 50;
    background: #fff;
    border-bottom: 1px solid var(--line);
}
.site-header__inner {
    max-width: var(--wrap); margin: 0 auto; padding: 0 24px;
    min-height: var(--header-h);
    display: flex; align-items: center; gap: 1.5rem;
}
.brand { flex-shrink: 0; display: block; }
.brand img { height: 46px; width: auto; }

.main-nav { display: flex; gap: 1.5rem; margin-left: auto; font-weight: 600; font-size: .95rem; }
.main-nav a { color: var(--navy); padding: 6px 0; border-bottom: 2px solid transparent; }
.main-nav a:hover { border-bottom-color: var(--blue); }

.header-cta { display: flex; align-items: center; gap: 1.1rem; flex-shrink: 0; }
.header-cta__phone {
    display: flex; align-items: center; gap: .45em;
    font: 700 1.15rem/1 'Chakra Petch', sans-serif;
    color: var(--navy);
}
.header-cta__phone svg { color: var(--blue); }
.header-cta__phone:hover { color: var(--cta); }

.nav-toggle {
    display: none; margin-left: auto;
    width: 44px; height: 44px; padding: 0;
    flex-direction: column; justify-content: center; align-items: center; gap: 5px;
    background: transparent; border: 0; cursor: pointer;
}
.nav-toggle span { display: block; width: 24px; height: 3px; background: var(--navy); border-radius: 2px; }

.mobile-nav { display: none; flex-direction: column; border-top: 1px solid var(--line); background: #fff; }
.mobile-nav a { padding: 14px 24px; border-bottom: 1px solid var(--line); font-weight: 600; color: var(--navy); }
.mobile-nav .mobile-nav__phone { color: var(--cta); }
.mobile-nav .btn { margin: 16px 24px; border-bottom: 2px solid transparent; color: #fff; }
.site-header.nav-open .mobile-nav { display: flex; }

/* ---------------------------------- Hero ----------------------------------- */
.hero {
    position: relative; overflow: hidden;
    padding: clamp(2.5rem, 5vw, 4.5rem) 0 clamp(6rem, 10vw, 9rem);
    color: #fff;
    background: linear-gradient(135deg, #031542 0%, var(--navy) 55%, #0B4A9E 100%);
}
.hero__orbit {
    position: absolute; right: -8%; top: -6%;
    width: min(980px, 95vw); height: auto;
    opacity: .9; pointer-events: none;
}
.hero__inner {
    position: relative; z-index: 1;
    max-width: var(--wrap); margin: 0 auto; padding: 0 24px;
    display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 4vw, 3.5rem);
    align-items: start;
}
.hero__headline {
    color: #fff;
    font-size: clamp(2.1rem, 3.8vw, 3.2rem);
    letter-spacing: -.01em;
    max-width: 18ch;
}
.hero__subhead { color: #C9D6EC; font-size: 1.15rem; max-width: 50ch; }

.hero__bullets { margin: 1.75rem 0; display: grid; gap: .8rem; }
.hero__bullets li { position: relative; padding-left: 1.6rem; color: #DCE6F6; }
.hero__bullets li::before {
    content: ''; position: absolute; left: 0; top: .5em;
    width: 10px; height: 10px;
    background: var(--sky);
    clip-path: polygon(50% 0, 100% 100%, 0 100%); /* tiny "A" peak instead of a bullet dot */
}
.hero__bullets strong { color: #fff; }

.hero__chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.chip {
    padding: .45em .95em; font-size: .9rem; font-weight: 600;
    border: 1px solid rgba(200, 206, 216, .4);
    border-radius: 999px; color: #E8EEF9;
}
.chip__stars { color: #F6C34A; letter-spacing: 1px; }

/* Roof peak at the bottom of the hero */
.roof-edge {
    position: absolute; left: 0; right: 0; bottom: -1px; z-index: 1;
    height: clamp(48px, 7vw, 110px);
    background: var(--bg);
    clip-path: polygon(0 100%, 50% 0, 100% 100%);
}

/* ---------------------------------- Form ----------------------------------- */
.quote-form {
    background: #fff; color: var(--ink);
    border-radius: 12px;
    padding: 1.6rem 1.6rem 1.4rem;
    box-shadow: 0 20px 50px rgba(2, 12, 40, .35);
}
.quote-form__banner {
    margin: -1.6rem -1.6rem 1.25rem;
    padding: .65em 1em;
    background: var(--navy);
    color: #fff; text-align: center; font-weight: 700; font-size: .9rem;
    border-radius: 12px 12px 0 0;
}
.quote-form__heading { font-size: 1.55rem; margin-bottom: .25rem; }
.quote-form__subtext { color: var(--steel); font-size: .95rem; margin-bottom: 1.2rem; }

.field { display: flex; flex-direction: column; gap: .3rem; margin-bottom: .95rem; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.field label { font-weight: 700; font-size: .9rem; color: var(--navy); }
.field__optional { font-weight: 400; color: var(--steel); }
.field input, .field select, .field textarea {
    width: 100%;
    font: inherit; font-size: 1rem; /* 16px+ prevents iOS zoom on focus */
    padding: .7em .8em;
    color: var(--ink); background: #fff;
    border: 1.5px solid #B9C4D6;
    border-radius: 6px;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none; border-color: var(--cta);
    box-shadow: 0 0 0 3px rgba(10, 98, 200, .2);
}
.field input:user-invalid, .field select:user-invalid { border-color: #C0392B; }

.quote-form__fine { margin: .8rem 0 0; font-size: .78rem; color: var(--steel); line-height: 1.45; }

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-alert {
    margin-bottom: 1rem; padding: .9em 1em;
    background: #FDECEA; border: 1px solid #F1B7B0; border-left-width: 4px;
    border-radius: 6px; color: #7A1F16; font-size: .92rem;
}
.form-alert ul { margin: .4em 0 0 1.1em; list-style: disc; }

/* -------------------------------- Services --------------------------------- */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.service {
    padding: 1.75rem; background: #fff;
    border: 1px solid var(--line); border-top: 4px solid var(--blue);
    border-radius: var(--radius);
    transition: border-color .15s ease;
}
.service:hover { border-color: var(--cta); }
.service__icon { width: 44px; height: 44px; color: var(--blue); margin-bottom: 1rem; }
.service p { color: var(--steel); font-size: .98rem; }
.service__link { color: var(--cta); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* --------------------------- Split (text + visual) -------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split--reverse .split__visual { order: 2; }
.split__visual svg { width: 100%; height: auto; border-radius: 14px; }
.split__lead { color: var(--steel); font-size: 1.08rem; }

.checklist { display: grid; gap: .75rem; margin: 1.4rem 0 1.8rem; }
.checklist li { position: relative; padding-left: 2rem; }
.checklist li::before {
    content: ''; position: absolute; left: 0; top: .15em;
    width: 1.25rem; height: 1.25rem; border-radius: 50%;
    background: var(--blue)
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3.2L15 6.8' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
        center / 100% no-repeat;
}

/* ------------------------------ Feature trio -------------------------------- */
.feature-trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: clamp(3rem, 6vw, 4.5rem); }
.feature { padding-top: 1.25rem; border-top: 3px solid var(--blue); }
.feature svg { width: 40px; height: 40px; color: var(--blue); margin-bottom: .8rem; }
.feature p { color: var(--steel); margin: 0; }

/* --------------------------------- Steps ------------------------------------ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; margin-top: 2.5rem; }
.steps--three { grid-template-columns: repeat(3, 1fr); text-align: left; margin: 3rem 0 2rem; }
.steps__num {
    display: grid; place-items: center;
    width: 42px; height: 42px; margin-bottom: .8rem;
    background: var(--navy); color: #fff; border-radius: 50%;
    font: 700 1.2rem/1 'Chakra Petch', sans-serif;
}
.steps p { color: var(--steel); font-size: .98rem; margin: 0; }

/* -------------------------------- Reviews ----------------------------------- */
.sample-note {
    max-width: 640px; margin: 0 auto 2rem; padding: .8em 1.1em;
    background: #FFF3CD; color: #5C4400;
    border-radius: 6px; font-size: .92rem; text-align: center;
}
.sample-note code { font-size: .9em; }
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2.5rem; }
.review { margin: 0; padding: 1.6rem; border: 1px solid rgba(200, 206, 216, .28); border-radius: var(--radius); }
.review__stars { color: #F6C34A; letter-spacing: 2px; margin-bottom: .6rem; }
.review blockquote { margin: 0; }
.review blockquote p { color: #E6EDF8; }
.review figcaption { color: #9FB2D3; font-size: .9rem; font-weight: 700; }

.badges { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 2.5rem; }
.badges li {
    padding: .5em 1.1em; font-weight: 700; font-size: .9rem;
    color: #fff; border: 1px solid var(--silver); border-radius: 999px;
}

/* ------------------------------ Service area -------------------------------- */
.towns { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin: 0 0 2rem; }
.towns li {
    padding: .45em 1em; font-weight: 700; font-size: .92rem;
    color: var(--navy); background: var(--tint); border: 1px solid var(--line); border-radius: 999px;
}

/* ------------------------------- CTA band + footer --------------------------- */
.cta-band { background: linear-gradient(100deg, var(--blue), #0A6FD6); color: #fff; padding: 3rem 0; }
.cta-band__inner {
    max-width: var(--wrap); margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin-bottom: .2rem; }
.cta-band p { margin: 0; color: #DCEBFF; }
.cta-band__actions { display: flex; flex-direction: column; align-items: flex-start; gap: .6rem; }
.cta-band__phone { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

.site-footer { background: var(--navy-900); color: #B3C0D8; padding: 3.5rem 0 1.5rem; }
.site-footer__inner {
    max-width: var(--wrap); margin: 0 auto; padding: 0 24px;
    display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem;
}
.site-footer h3 { color: #fff; font-size: 1.05rem; }
.site-footer ul { display: grid; gap: .55rem; }
.site-footer a:hover { color: #fff; }
.site-footer__brand img { height: 50px; width: auto; margin-bottom: 1rem; }
.site-footer__brand p { max-width: 36ch; font-size: .95rem; }
.site-footer__phone { font: 700 1.2rem/1 'Chakra Petch', sans-serif; color: #fff; }
.site-footer__bottom {
    max-width: var(--wrap); margin: 2.5rem auto 0; padding: 1.25rem 24px 0;
    border-top: 1px solid rgba(255, 255, 255, .12);
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem;
    font-size: .85rem;
}
.site-footer__bottom p { margin: 0; }

.mobile-call-bar {
    display: none;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: .95em 1em;
    align-items: center; justify-content: center; gap: .55em;
    background: var(--cta); color: #fff; font-weight: 700;
    box-shadow: 0 -4px 18px rgba(0, 0, 0, .2);
}

/* ------------------------------- Thank-you page ------------------------------ */
.thanks { padding-top: clamp(3rem, 7vw, 5rem); }
.thanks__emblem { height: 75px; width: auto; margin: 0 auto 1.25rem; }
.thanks h1 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }

/* ---------------------------------- Responsive ------------------------------- */
@media (max-width: 1020px) {
    .main-nav, .header-cta__button { display: none; }
    .nav-toggle { display: flex; }
    .header-cta { margin-left: auto; }
    .nav-toggle { margin-left: 0; }

    .hero__inner, .split { grid-template-columns: 1fr; }
    .split--reverse .split__visual { order: 0; }
    .hero__headline { max-width: 22ch; }

    .service-grid, .feature-trio, .review-grid { grid-template-columns: 1fr; }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .site-footer__inner { grid-template-columns: 1fr 1fr; }

    .mobile-call-bar { display: flex; }
    body { padding-bottom: 54px; } /* keep footer content clear of the call bar */
}

@media (max-width: 640px) {
    :root { --header-h: 64px; }
    .brand img { height: 36px; }
    .header-cta__phone span { display: none; } /* phone icon only; full number lives in the call bar */
    .topbar__inner { flex-direction: column; gap: 0; text-align: center; }
    .field-row { grid-template-columns: 1fr; gap: 0; }
    .steps, .steps--three { grid-template-columns: 1fr; }
    .site-footer__inner { grid-template-columns: 1fr; }
    .cta-band__inner { flex-direction: column; align-items: flex-start; }
}
