/* A1 of Michigan: coming-soon site
   Colors sampled from the client's print proofs. */

:root {
    --navy-950: #071430;
    --navy-900: #0A1B3F;
    --navy-700: #163066;
    --blue: #1446A8;
    --red: #D7322B;
    --green: #86C847;
    --green-hover: #9AD65C;
    --green-ink: #2F5A0E;
    --orange: #F7AE38;
    --ink: #12151B;
    --text: #1F2430;
    --muted: #5A6273;
    --line: #E3E6EC;
    --paper: #F4F5F8;
    --on-dark: #C9D3EA;
    --white: #FFFFFF;

    --display: "Oswald", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
    --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --radius: 10px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--body);
    font-size: 1rem;
    line-height: 1.55;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--blue); }
a[href^="tel:"] { white-space: nowrap; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--orange);
    outline-offset: 2px;
}

h1, h2, h3 {
    font-family: var(--display);
    font-weight: 700;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    margin: 0;
}

p { margin: 0; }

.wrap {
    width: min(1120px, 100% - 32px);
    margin-inline: auto;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 10;
    padding: 10px 16px;
    background: var(--ink);
    color: var(--white);
    border-radius: 6px;
    text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Flag stripe + header ---------- */

.flag-stripe {
    height: 6px;
    background:
        linear-gradient(90deg, var(--navy-900) 0 22%, transparent 22%),
        repeating-linear-gradient(90deg, var(--red) 0 30px, var(--white) 30px 42px);
}

.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 68px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--ink);
    min-width: 0;
}

.brand-badge { width: 56px; height: auto; flex: none; }

.brand-name {
    font-family: var(--display);
    font-weight: 600;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.brand-a1 { color: var(--blue); font-weight: 700; }

.brand-style-text .brand-name { font-size: 1.35rem; }
.brand-style-text .brand-a1 {
    color: var(--white);
    background: var(--blue);
    padding: 0 0.3em;
    margin-right: 0.15em;
    border-radius: 4px;
    box-shadow: inset 0 -3px 0 var(--red);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.site-nav a {
    font-family: var(--display);
    font-weight: 500;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-decoration: none;
    color: var(--text);
    padding: 8px 10px;
    border-radius: 6px;
}

.site-nav a:hover { color: var(--blue); }
.site-nav a[aria-current="page"] { color: var(--blue); box-shadow: inset 0 -3px 0 var(--red); border-radius: 0; }

.site-nav a:first-child { display: none; }

.site-nav .nav-phone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-left: 4px;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 999px;
    background: var(--green);
    color: var(--ink);
    font-weight: 600;
}
.site-nav .nav-phone:hover { background: var(--green-hover); color: var(--ink); }
.nav-phone span { display: none; }

.icon { width: 20px; height: 20px; fill: currentColor; flex: none; }

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 26px;
    border-radius: 6px;
    border: 2px solid transparent;
    font-family: var(--display);
    font-weight: 600;
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-primary { background: var(--green); color: var(--ink); }
.btn-primary:hover { background: var(--green-hover); }

.btn-ghost { border-color: rgba(255, 255, 255, 0.55); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.08); }

.btn-ghost-dark { border-color: var(--navy-700); color: var(--navy-700); }
.btn-ghost-dark:hover { background: var(--navy-700); color: var(--white); }

.btn-block { width: 100%; }

/* ---------- Dark sections ---------- */

.hero,
.page-hero,
.cta-band {
    color: var(--white);
    background:
        radial-gradient(900px 420px at 50% -10%, rgba(45, 99, 211, 0.45), transparent 65%),
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0 2px, transparent 2px 22px),
        linear-gradient(180deg, var(--navy-900), var(--navy-950));
}

.hero { padding: 40px 0 64px; text-align: center; }

.hero-inner { display: flex; flex-direction: column; align-items: center; }

.hero-mark {
    width: min(380px, 88vw);
    margin-bottom: 20px;
    filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.45));
}

.hero-wordmark {
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(2.2rem, 9vw, 3.6rem);
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 26px;
    padding-bottom: 14px;
    border-bottom: 5px solid transparent;
    border-image: linear-gradient(90deg, var(--red) 0 33%, var(--white) 33% 67%, var(--blue) 67%) 1;
}
.hero-wordmark span {
    display: inline-block;
    color: var(--white);
    background: var(--blue);
    padding: 0 0.25em;
    border-radius: 6px;
    box-shadow: inset 0 -6px 0 var(--red);
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border: 1px solid rgba(134, 200, 71, 0.5);
    border-radius: 999px;
    background: rgba(134, 200, 71, 0.12);
    color: #D6F2B6;
    font-family: var(--display);
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.pill::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
}

.hero h1 {
    font-size: clamp(2rem, 7vw, 3.5rem);
    margin: 18px 0 12px;
    max-width: 16ch;
}

.hero-lead {
    color: var(--on-dark);
    font-size: 1.125rem;
    max-width: 36ch;
}

.hero-phone {
    display: block;
    margin: 18px 0 24px;
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(2.5rem, 12vw, 5.25rem);
    line-height: 1;
    letter-spacing: 0.01em;
    color: var(--white);
    text-decoration: none;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}
.hero-phone:hover { color: var(--green); }

.hero-actions,
.cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

/* ---------- Services ---------- */

.services { background: var(--paper); padding: 56px 0 64px; }

.section-title {
    font-size: clamp(1.8rem, 5vw, 2.4rem);
    text-align: center;
    color: var(--ink);
    margin-bottom: 32px;
}
.section-title::after {
    content: "";
    display: block;
    width: 72px;
    height: 5px;
    margin: 12px auto 0;
    background: linear-gradient(90deg, var(--red) 0 50%, var(--blue) 50%);
    border-radius: 3px;
}

.service-grid { display: grid; gap: 20px; }

.service {
    background: var(--white);
    border: 1px solid var(--line);
    border-top: 6px solid var(--blue);
    border-radius: var(--radius);
    padding: 26px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.service h3 { font-size: 1.6rem; color: var(--ink); }
.service-lead { font-weight: 600; font-size: 1.08rem; color: var(--text); }

.service ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.service li { position: relative; padding-left: 28px; }
.service li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 0.3em;
    width: 7px;
    height: 13px;
    border: solid var(--blue);
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

.service-link {
    margin-top: auto;
    padding-top: 6px;
    font-weight: 700;
    text-decoration: none;
    color: var(--blue);
}
.service-link::after { content: " \2192"; }
.service-link:hover { text-decoration: underline; }

.service--concrete { border-top-color: var(--orange); }
.service--concrete li::before { border-color: #C9811A; }

.service--roof {
    border: 0;
    background:
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.07) 0 2px, transparent 2px 20px),
        linear-gradient(135deg, #8FD04E, #6CAE34);
    color: var(--ink);
    padding: 30px 26px;
}
.service--roof h3 { font-size: clamp(2rem, 7vw, 2.8rem); }
.service--roof .service-lead { font-size: 1.3rem; color: var(--ink); }
.service--roof li { font-weight: 600; }
.service--roof li::before { border-color: var(--ink); }
.service--roof .service-link { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

.service-tag {
    align-self: flex-start;
    justify-self: start;
    padding: 4px 10px;
    border-radius: 4px;
    background: var(--ink);
    color: var(--green);
    font-family: var(--display);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ---------- CTA band ---------- */

.cta-band { padding: 48px 0; }
.cta-inner { display: flex; flex-direction: column; gap: 22px; text-align: center; }
.cta-band h2 { font-size: clamp(1.8rem, 5vw, 2.4rem); }
.cta-band p { color: var(--on-dark); margin-top: 6px; }

/* ---------- Contact page ---------- */

.page-hero { padding: 44px 0; }
.page-hero h1 { font-size: clamp(2.2rem, 7vw, 3.2rem); }
.page-hero p { color: var(--on-dark); margin-top: 8px; font-size: 1.1rem; }

.contact { background: var(--paper); padding: 40px 0 64px; }

.contact-grid { display: grid; gap: 20px; }

.contact-info,
.form-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px 22px;
}

.info-block + .info-block {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.info-block h2 {
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin-bottom: 6px;
}

.info-phone {
    display: inline-block;
    font-family: var(--display);
    font-weight: 700;
    font-size: 2rem;
    line-height: 1.1;
    color: var(--blue);
    text-decoration: none;
    margin-bottom: 4px;
}
.info-phone:hover { color: var(--red); }

.info-email { overflow-wrap: anywhere; font-weight: 600; }

.info-services { margin: 0; padding-left: 18px; }

.form-card h2 { font-size: 1.7rem; color: var(--ink); }
.form-intro { color: var(--muted); margin: 6px 0 20px; }

.field { margin-bottom: 16px; }

.field label {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 6px;
}

.optional { font-weight: 400; color: var(--muted); }

.field input,
.field select,
.field textarea {
    width: 100%;
    font: inherit;
    font-size: 1rem;
    color: var(--text);
    background: var(--white);
    padding: 12px 14px;
    border: 1.5px solid #C5CCD8;
    border-radius: 8px;
}

.field textarea { resize: vertical; min-height: 130px; }

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(20, 70, 168, 0.18);
}

.has-error input,
.has-error textarea { border-color: #B3261E; }

.field-error { color: #B3261E; font-size: 0.9rem; margin-top: 6px; }

.field-row { display: grid; gap: 0 16px; }

.alert {
    background: #FDECEA;
    border: 1px solid #F5C2BD;
    color: #8C1D18;
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 18px;
}

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

.thanks { text-align: center; padding: 28px 4px; display: grid; gap: 14px; justify-items: center; }
.thanks h2 { color: var(--green-ink); font-size: 2rem; }

/* ---------- Footer ---------- */

.site-footer {
    background: var(--navy-950);
    color: #AEB8D0;
    padding: 40px 0 20px;
    font-size: 0.95rem;
}

.footer-inner { display: grid; gap: 24px; }

.footer-name {
    font-family: var(--display);
    font-weight: 700;
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--white);
    margin-bottom: 4px;
}

.footer-contact { display: grid; gap: 6px; justify-items: start; }
.footer-contact a { color: #DCE3F2; overflow-wrap: anywhere; }

.footer-phone {
    font-family: var(--display);
    font-weight: 700;
    font-size: 1.7rem;
    text-decoration: none;
    color: var(--white) !important;
}

.footer-legal {
    margin-top: 28px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
}

/* ---------- Larger screens ---------- */

@media (min-width: 640px) {
    .site-nav a:first-child { display: inline-block; }
    .site-nav .nav-phone { width: auto; padding: 0 16px; }
    .nav-phone span { display: inline; }
    .brand-badge { width: 64px; }
    .brand-name { font-size: 1.35rem; }
    .field-row { grid-template-columns: 1fr 1fr; }
    .contact-info,
    .form-card { padding: 30px; }
}

@media (min-width: 880px) {
    .hero { padding: 48px 0 80px; }

    .service-grid { grid-template-columns: 1fr 1fr; gap: 24px; }

    .service--roof {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: 1.15fr 1fr;
        grid-template-rows: auto auto auto 1fr;
        column-gap: 40px;
        row-gap: 12px;
        padding: 40px 44px;
    }
    .service--roof > :not(ul) { grid-column: 1; }
    .service--roof ul { grid-column: 2; grid-row: 1 / span 4; align-self: center; font-size: 1.1rem; gap: 12px; }

    .cta-inner { flex-direction: row; align-items: center; justify-content: space-between; text-align: left; }

    .contact-grid { grid-template-columns: 340px 1fr; align-items: start; gap: 28px; }

    .footer-inner { grid-template-columns: 1fr auto; align-items: start; }
    .footer-contact { justify-items: end; text-align: right; }
}
