:root {
    --navy: #133952;
    --red: #b32229;
    --red-dark: #951a21;
    --ink: #111111;
    --text: #6e6e6e;
    --muted: #e6e6e6;
    --footer: #848484;
    --white: #ffffff;
    --shell: 1140px;
    --display: "Reem Kufi Ink", sans-serif;
    --body: "REM", sans-serif;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    margin: 0;
    color: var(--text);
    background: var(--white);
    font-family: var(--body);
    font-size: 16px;
    font-weight: 300;
    line-height: 1.55;
}

body,
button,
input,
textarea { font-family: var(--body); }

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

a { color: inherit; text-decoration: none; }

p { margin: 0 0 1rem; }

h1,
h2,
h3 {
    margin: 0;
    color: var(--ink);
    font-family: var(--display);
    font-weight: 400;
    line-height: 1.13;
}

h1 { font-size: clamp(2.4rem, 5vw, 4.7rem); }
h2 { font-size: clamp(2rem, 3vw, 2.85rem); }
h3 { font-size: 1.18rem; }

.page-shell {
    width: min(calc(100% - 48px), var(--shell));
    margin-inline: auto;
}

.skip-link {
    position: fixed;
    z-index: 1000;
    top: 8px;
    left: 8px;
    padding: .65rem 1rem;
    color: var(--white);
    background: var(--navy);
    transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-header {
    position: sticky;
    z-index: 100;
    top: 0;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 1px 0 rgba(19, 57, 82, .08);
}

.header-inner {
    display: grid;
    grid-template-columns: 110px 1fr auto;
    align-items: center;
    width: min(calc(100% - 48px), var(--shell));
    min-height: 104px;
    margin-inline: auto;
    gap: 2.25rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    width: 80px;
    height: 84px;
    overflow: hidden;
}

.brand img {
    width: 100%;
    height: auto;
}

.primary-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(1.2rem, 2.6vw, 2.75rem);
    color: var(--ink);
    font-weight: 500;
}

.primary-nav a {
    position: relative;
    padding: .75rem 0;
}

.primary-nav a:not(.header-phone)::after {
    position: absolute;
    right: 0;
    bottom: 4px;
    left: 0;
    height: 2px;
    background: var(--red);
    content: "";
    transform: scaleX(0);
    transition: transform .2s ease;
}

.primary-nav a:hover::after,
.primary-nav a:focus-visible::after { transform: scaleX(1); }

.header-phone {
    padding: .72rem 1rem !important;
    color: var(--white);
    background: var(--red);
    font-weight: 600;
}

.header-phone:hover,
.header-phone:focus-visible,
.button:hover,
.button:focus-visible { background: var(--red-dark); }

.social-links {
    display: flex;
    gap: .42rem;
}

.social-links a {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    color: var(--white);
    background: var(--navy);
    border-radius: 50%;
    font-size: .83rem;
    font-weight: 700;
}

.social-links svg {
    width: 15px;
    height: 15px;
    stroke-width: 2;
}

.menu-toggle { display: none; }

.hero {
    position: relative;
    display: grid;
    min-height: 560px;
    place-items: center;
    color: var(--white);
    background: linear-gradient(rgba(19, 57, 82, .46), rgba(19, 57, 82, .46)), url("../images/garage-door-5.webp") center / cover no-repeat;
    animation: hero-movement 15s ease-in-out infinite alternate;
}

@keyframes hero-movement {
    from { background-position: 50% 47%; }
    to { background-position: 50% 53%; }
}

.hero-content {
    max-width: 980px;
    padding: 5rem 0 9rem;
    text-align: center;
}

.hero h1 { color: var(--white); }

.hero-content > p:not(.eyebrow) {
    max-width: 930px;
    margin: 1.3rem auto 1.8rem;
    font-size: 1.08rem;
}

.eyebrow {
    margin-bottom: .8rem;
    color: var(--red);
    font-size: 1rem;
    font-weight: 600;
}

.eyebrow-light { color: var(--white); }

.button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: .75rem 1.8rem;
    border: 0;
    border-radius: 0;
    color: var(--white);
    background: var(--red);
    cursor: pointer;
    font-size: .98rem;
    font-weight: 600;
    box-shadow: 0 0 0 rgba(179, 34, 41, 0);
    transition: background .3s ease, color .3s ease, transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s ease;
}

.button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(179, 34, 41, .24);
}

.estimate-form .button:hover,
.estimate-form .button:focus-visible {
    background: var(--navy);
    box-shadow: 0 10px 24px rgba(19, 57, 82, .22);
}

.about-intro { padding-bottom: 1.8rem; }

.about-card {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: .95fr 1.05fr;
    gap: 4rem;
    margin-top: -100px;
    padding: 2.75rem 3rem;
    color: var(--white);
    background: var(--red);
}

.about-card h2 { color: var(--white); }
.about-card p:last-child { margin: 0; }

.trust-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 1.6rem;
    padding: 0;
    color: #525252;
    list-style: none;
    text-align: center;
}

.trust-strip li { font-size: .93rem; }

.trust-strip svg {
    width: 15px;
    height: 15px;
    margin-right: .5rem;
    color: #777;
    vertical-align: -2px;
}

.navy-section {
    color: var(--white);
    background: var(--navy);
}

.navy-section h2 { color: var(--white); }

.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: clamp(3rem, 7vw, 7rem);
    padding-block: 5.5rem;
}

.copy-block > p:last-of-type { margin-bottom: 0; }

.section-image {
    width: 100%;
    height: 390px;
    object-fit: cover;
    transition: transform .65s cubic-bezier(.2, .8, .2, 1), box-shadow .65s ease;
}

.section-image:hover {
    transform: translateY(-7px);
    box-shadow: 0 20px 38px rgba(0, 0, 0, .18);
}

.specialties .section-image { height: 435px; }

.specialty-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    margin-top: 1.65rem;
}

.specialty-grid h3 { margin-bottom: .35rem; }
.specialty-grid p { margin: 0; font-size: .93rem; }

.legacy {
    padding: 5.5rem 0;
    text-align: center;
}

.legacy-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 1.65rem 0 1.5rem;
}

.legacy-gallery img {
    width: 100%;
    height: 205px;
    object-fit: cover;
    transition: transform .6s cubic-bezier(.2, .8, .2, 1), filter .6s ease;
}

.legacy-gallery img:hover { transform: translateY(-6px) scale(1.015); filter: saturate(1.08); }

.legacy .page-shell > p:last-child {
    max-width: 1080px;
    margin: 0 auto;
}

.estimate { padding: 5.5rem 0; }

.estimate-grid {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: clamp(3rem, 7vw, 7rem);
}

.estimate-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 1.5rem;
}

.form-field label {
    display: block;
    margin-bottom: .2rem;
    color: #7a7a7a;
    font-size: .88rem;
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: .5rem .15rem;
    border: 0;
    border-bottom: 1px solid #a9a9a9;
    border-radius: 0;
    outline: none;
    color: var(--ink);
    background: transparent;
    font-size: 1rem;
}

.form-field input:focus,
.form-field textarea:focus { border-bottom-color: var(--red); box-shadow: 0 1px 0 var(--red); }

.form-message { grid-column: 1 / -1; }
.estimate-form .button { justify-self: start; }

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

.form-notice {
    margin-bottom: 1.25rem;
    padding: .8rem 1rem;
    border-left: 4px solid;
    font-size: .94rem;
}

.form-notice.success { border-color: #2d7b52; background: #edf8f1; color: #225d3e; }
.form-notice.error { border-color: var(--red); background: #fff1f2; color: #7f151a; }
.form-notice a { text-decoration: underline; }

.contact-section {
    padding: 5.5rem 0 3.5rem;
    color: var(--white);
    background: var(--footer);
}

.contact-section > .page-shell > .eyebrow,
.contact-section > .page-shell > h2 { text-align: center; }
.contact-section h2,
.contact-section h3 { color: var(--white); }

.map-wrap {
    height: 350px;
    margin: 1.5rem 0 2.25rem;
    overflow: hidden;
    background: #d4d4d4;
}

.map-wrap iframe { width: 100%; height: 100%; border: 0; }

.footer-columns {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 4rem;
}

.footer-columns section,
.contact-list li,
.contact-list a { min-width: 0; }

.footer-columns h3 {
    margin-bottom: .75rem;
    font-size: 1.75rem;
}

.footer-columns ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-columns li {
    margin: .5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, .25);
    font-size: .93rem;
}

.footer-columns a {
    display: block;
    padding-bottom: .45rem;
}

.footer-columns a:hover,
.footer-columns a:focus-visible { color: #fff; text-decoration: underline; }

.contact-list li {
    display: grid;
    grid-template-columns: 20px 1fr;
    gap: .35rem;
    padding-bottom: .45rem;
    border: 0;
}

.contact-list a {
    display: inline;
    max-width: 100%;
    padding: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.contact-list address { font-style: normal; }
.contact-list svg {
    width: 15px;
    height: 15px;
    margin-top: .2rem;
    color: var(--white);
}

.reveal-item {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .75s ease var(--reveal-delay, 0ms), transform .85s cubic-bezier(.2, .8, .2, 1) var(--reveal-delay, 0ms);
}

.reveal-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.about-hero {
    min-height: 515px;
    background-image: linear-gradient(rgba(19, 57, 82, .52), rgba(19, 57, 82, .52)), url("../images/garage-door-1-1.jpg");
}

.about-hero .hero-content { padding-bottom: 8rem; }

.about-story-card { grid-template-columns: .9fr 1.1fr; }

.why-us { padding: 5.5rem 0; }

.why-heading {
    max-width: 900px;
    margin: 0 auto 2.2rem;
    text-align: center;
}

.why-heading > p:last-child { margin: 1.1rem 0 0; }

.about-gallery {
    margin-bottom: 3.5rem;
}

.values-title {
    margin-bottom: 1.7rem;
    color: var(--white);
    text-align: center;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border-top: 1px solid rgba(255, 255, 255, .22);
    border-left: 1px solid rgba(255, 255, 255, .22);
}

.value-item {
    padding: 1.6rem 1.8rem;
    border-right: 1px solid rgba(255, 255, 255, .22);
    border-bottom: 1px solid rgba(255, 255, 255, .22);
}

.value-item h4 {
    display: flex;
    align-items: center;
    gap: .7rem;
    margin: 0 0 .55rem;
    color: var(--white);
    font-family: var(--body);
    font-size: 1.02rem;
    font-weight: 600;
}

.value-item h4 svg {
    width: 18px;
    height: 18px;
    color: var(--white);
}

.value-item p { margin: 0; }

.partner-copy {
    max-width: 900px;
    margin: 3rem auto 0;
    text-align: center;
}

.partner-copy h3 {
    margin-bottom: 1rem;
    color: var(--white);
    font-size: clamp(1.6rem, 2.6vw, 2.3rem);
}

.services-hero {
    min-height: 540px;
    background-image: linear-gradient(rgba(19, 57, 82, .58), rgba(19, 57, 82, .58)), url("../images/modern-steel.jpg");
}

.contact-hero {
    min-height: 520px;
    background-image: linear-gradient(rgba(19, 57, 82, .58), rgba(19, 57, 82, .58)), url("../images/garage-door-11.webp");
}

.service-intro { background: var(--white); }

.service-intro .button { margin-top: .6rem; }

.solutions-section { padding: 5.5rem 0; }

.section-heading {
    max-width: 900px;
    margin: 0 auto 2.5rem;
    text-align: center;
}

.section-heading > p:last-child { margin: 1rem 0 0; }

.service-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin: 0;
    padding: 0;
    border-top: 1px solid rgba(255, 255, 255, .22);
    border-left: 1px solid rgba(255, 255, 255, .22);
    list-style: none;
}

.service-list li {
    display: flex;
    min-height: 112px;
    align-items: center;
    gap: .85rem;
    padding: 1.2rem 1.35rem;
    border-right: 1px solid rgba(255, 255, 255, .22);
    border-bottom: 1px solid rgba(255, 255, 255, .22);
    color: var(--white);
    font-weight: 500;
    transition: background .3s ease, transform .3s ease;
}

.service-list li:hover {
    z-index: 1;
    background: rgba(255, 255, 255, .08);
    transform: translateY(-3px);
}

.service-list svg {
    width: 21px;
    min-width: 21px;
    height: 21px;
    color: var(--white);
}

.care-section { padding: 5.5rem 0; }

.care-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: clamp(3rem, 7vw, 7rem);
}

.care-tips-wrap { margin-top: 4rem; }

.care-tips-wrap > h3,
.care-closing h3 {
    font-size: clamp(1.65rem, 2.6vw, 2.3rem);
}

.care-tips-wrap > h3 { margin-bottom: 1.5rem; text-align: center; }

.care-tips {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border-top: 1px solid #d5d5d5;
    border-left: 1px solid #d5d5d5;
}

.care-tips article {
    padding: 1.35rem 1.5rem;
    border-right: 1px solid #d5d5d5;
    border-bottom: 1px solid #d5d5d5;
}

.care-tips h4 {
    margin: 0 0 .35rem;
    color: var(--red);
    font-size: 1rem;
}

.care-tips p { margin: 0; }

.care-closing {
    max-width: 850px;
    margin: 3rem auto 0;
    text-align: center;
}

.care-closing h3 { margin-bottom: .8rem; }

.contact-estimate { padding-block: 6rem; }

.contact-quick-links {
    display: grid;
    gap: .8rem;
    margin-top: 1.75rem;
}

.contact-quick-links a {
    display: flex;
    align-items: center;
    gap: .9rem;
    padding: .85rem 1rem;
    border-left: 3px solid var(--red);
    background: #f4f4f4;
    transition: transform .3s ease, background .3s ease;
}

.contact-quick-links a:hover,
.contact-quick-links a:focus-visible {
    background: var(--muted);
    transform: translateX(5px);
}

.contact-quick-links svg {
    width: 21px;
    height: 21px;
    color: var(--red);
}

.contact-quick-links strong { color: var(--ink); font-weight: 600; }

.site-footer {
    padding: 1.1rem 24px;
    color: var(--white);
    background: var(--red);
    text-align: center;
}

.site-footer p { margin: 0; font-size: .85rem; }
.site-footer a:hover,
.site-footer a:focus-visible { text-decoration: underline; }

:focus-visible { outline: 3px solid #f2bd42; outline-offset: 3px; }

@media (max-width: 1020px) {
    .header-inner {
        grid-template-columns: 112px 1fr auto;
        min-height: 96px;
    }

    .brand { width: 80px; height: 84px; }
    .social-links { display: none; }
    .primary-nav { justify-content: flex-end; gap: 1.2rem; font-size: .93rem; }
    .split-section { gap: 3rem; }
    .section-image { height: 340px; }
}

@media (max-width: 800px) {
    html { scroll-padding-top: 76px; }

    .page-shell,
    .header-inner { width: min(calc(100% - 32px), var(--shell)); }

    .header-inner {
        position: relative;
        grid-template-columns: 1fr auto;
        min-height: 76px;
    }

    .brand { width: 60px; height: 64px; }

    .menu-toggle {
        display: grid;
        width: 46px;
        height: 42px;
        padding: 9px 0 9px 14px;
        border: 0;
        place-content: center;
        justify-self: end;
        justify-items: end;
        text-align: end;
        gap: 5px;
        color: var(--navy);
        background: transparent;
        cursor: pointer;
    }

    .menu-toggle span:not(.sr-only) {
        width: 27px;
        height: 1px;
        background: currentColor;
        transition: transform .25s ease, width .25s ease, opacity .25s ease;
    }

    .menu-toggle span:nth-child(2) { width: 21px; }

    .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
    .menu-toggle[aria-expanded="true"] span:nth-child(2) { width: 0; opacity: 0; }
    .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

    .primary-nav {
        position: absolute;
        top: 76px;
        right: -16px;
        left: -16px;
        display: none;
        align-items: stretch;
        padding: .75rem 1rem 1.25rem;
        background: var(--white);
        box-shadow: 0 10px 20px rgba(0, 0, 0, .13);
        flex-direction: column;
        gap: 0;
    }

    .primary-nav.is-open { display: flex; }
    .primary-nav a { padding: .7rem .5rem; }
    .header-phone { margin-top: .45rem; text-align: center; }

    .hero { min-height: 530px; }
    .hero-content { padding: 4.5rem 0 7rem; }
    .hero h1 br { display: none; }

    .about-card {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: -65px;
        padding: 2rem;
    }

    .about-card h2 br { display: none; }

    .trust-strip { grid-template-columns: 1fr 1fr; gap: 1rem; }

    .split-section,
    .estimate-grid { grid-template-columns: 1fr; }

    .split-section { padding-block: 4rem; }
    .split-reverse .section-image { order: 2; }
    .split-reverse .copy-block { order: 1; }
    .section-image,
    .specialties .section-image { height: min(58vw, 420px); }

    .legacy { padding: 4rem 0; }
    .legacy-gallery { grid-template-columns: 1fr; }
    .legacy-gallery img { height: min(48vw, 280px); }

    .about-hero { min-height: 470px; }
    .about-story-card { grid-template-columns: 1fr; }
    .values-grid { grid-template-columns: 1fr; }
    .service-list { grid-template-columns: repeat(2, 1fr); }
    .care-layout { grid-template-columns: 1fr; gap: 2.5rem; }

    .estimate { padding: 4rem 0; }
    .footer-columns { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
    .footer-columns section:first-child { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
    body { font-size: 15px; }
    .page-shell { width: min(calc(100% - 28px), var(--shell)); }
    .hero { min-height: 510px; }
    .hero-content { padding-top: 3.5rem; }
    .trust-strip { grid-template-columns: 1fr; text-align: left; }
    .specialty-grid,
    .estimate-form,
    .footer-columns { grid-template-columns: 1fr; }
    .footer-columns section:first-child { grid-column: auto; }
    .about-card { padding: 1.5rem; }
    .map-wrap { height: 300px; }
    .services-hero,
    .contact-hero { min-height: 500px; }
    .service-list,
    .care-tips { grid-template-columns: 1fr; }
    .service-list li { min-height: 88px; }
    .site-footer span { display: none; }
    .site-footer a { display: block; margin-top: .3rem; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
    .reveal-item { opacity: 1; transform: none; }
}
