:root {
    --ink: #101214;
    --body: #151d29;
    --red: #bf0808;
    --red-dark: #a90000;
    --rose: #fbf2f2;
    --frame: min(90%, 1280px);
}

html { scroll-behavior: smooth; }
body {
    color: var(--ink);
    background: #fff;
    font-family: "DM Sans", Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.43;
}

[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }
.frame { width: var(--frame); margin-inline: auto; }
.skip-link { position: fixed; z-index: 5; inset: 0 auto auto 1rem; padding: .65rem 1rem; color: #fff; background: var(--red-dark); transform: translateY(-115%); }
.skip-link:focus { transform: translateY(0); }
h1, h2, h3 { font-weight: 900; line-height: 1.07; letter-spacing: -.037em; }
h2 { font-size: clamp(1.65rem, 2.65vw, 2.3rem); }
h3 { font-size: clamp(1.13rem, 1.85vw, 1.47rem); }
.section-copy { color: var(--body); font-size: clamp(.81rem, 1.28vw, 1.06rem); line-height: 1.38; margin-top: .5rem; }
.eyebrow { display: inline-flex; align-items: center; gap: .4rem; color: var(--red-dark); font-size: .86rem; font-weight: 800; margin-bottom: .25rem; }
.eyebrow::before { content: ""; width: 1.7rem; height: 2px; background: var(--red); }
.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: .45rem;
    min-height: 2.35rem;
    padding: .55rem 1.15rem;
    border: 1px solid transparent;
    border-radius: .5rem;
    font-size: .86rem;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .18s, color .18s;
}
.button svg { width: 1rem; height: 1rem; flex: none; stroke-width: 2; }
.button-red { color: #fff; border-color: var(--red-dark); background: linear-gradient(122deg, #9e0000, #c40909 58%, #a70000); }
.button-red:hover { background: #8f0000; }
.button-outline { color: var(--body); border-color: #535d66; background: #ffffffa8; font-weight: 700; }
.button-outline:hover { background: #fff; color: var(--red-dark); }

.site-header { position: relative; z-index: 2; background: #fff; box-shadow: 0 2px 6px #10121409; }
.header-inner { min-height: 3.75rem; padding-inline: 1.1rem; gap: 1.15rem; }
.brand { flex: none; gap: .42rem; }
.brand-mark { position: relative; display: block; width: 3.4rem; aspect-ratio: 1.29; flex: none; }
.brand-mark::before, .brand-mark::after, .brand-mark span { content: ""; position: absolute; inset: 0; }
.brand-mark::before { background: #e42d2d; clip-path: polygon(48% 0,63% 0,77% 30%,57% 34%,53% 24%,22% 60%); }
.brand-mark::after { background: linear-gradient(135deg, #e42d2d 37%, #b80000 77%); clip-path: polygon(0 100%,18% 66%,48% 47%,77% 34%,99% 88%,77% 88%,63% 58%,36% 74%,29% 86%); }
.brand-mark span { background: #ff5b50; clip-path: polygon(18% 66%,48% 47%,77% 34%,46% 56%); }
.brand-type { display: grid; line-height: .86; letter-spacing: -.035em; font-weight: 900; }
.brand-type span:first-child { color: var(--red-dark); font-size: 1.45rem; }
.brand-type span:last-child { font-size: 1.17rem; }
.main-nav { display: flex; align-self: stretch; align-items: stretch; gap: clamp(.7rem, 2.55vw, 2.5rem); }
.main-nav a { position: relative; display: flex; align-items: center; font-size: .73rem; font-weight: 700; }
.main-nav a:hover { color: var(--red-dark); }
.header-quote { min-height: 2.05rem; padding-inline: .9rem; font-size: .73rem; }
.menu-toggle { min-width: 2.75rem; min-height: 2.75rem; display: grid; place-items: center; border: 1px solid #f0d6d6; border-radius: .5rem; color: var(--red-dark); cursor: pointer; }
.menu-toggle svg { width: 1.4rem; height: 1.4rem; }

.hero { background: linear-gradient(120deg, #eeeeef, #f4f4f5 37%, #e8e8eb 60%); }
.hero::before { position: absolute; inset: 0; content: ""; background: linear-gradient(116deg, transparent 42%, #e3e3e750 42.1%, #f9f9fa72 51%, transparent 51.1%); pointer-events: none; }
.hero-inner { min-height: clamp(20rem, 31.2vw, 29rem); display: flex; align-items: center; padding: 1.7rem clamp(0rem, 2.8vw, 2.35rem); pointer-events: none; }
.hero-copy { width: 49%; pointer-events: auto; }
.hero-photo { position: absolute; inset: 0 0 0 43%; background: url("images/hero-flanges.webp") center / 100% 100% no-repeat; clip-path: polygon(26% 0, 100% 0, 100% 100%, 0 100%); border-radius: 0 0 0 1.9rem; }
.hero-stripe { position: absolute; z-index: 1; inset: auto 0 0 auto; width: clamp(4.8rem, 8vw, 7.5rem); height: 45%; background: linear-gradient(121deg, #e42d2d, #a80000); clip-path: polygon(100% 0,100% 60%,53% 100%,0 100%); }
.hero-stripe::after { position: absolute; content: ""; inset: 0; background: #fff; clip-path: polygon(100% 51%,100% 63%,69% 100%,56% 100%); }
.hero-label { display: inline-block; padding: .1rem .68rem; border-radius: .35rem; background: #f4e3e5; color: var(--red-dark); font-size: .86rem; font-weight: 800; }
.hero h1 { margin-top: .48rem; font-size: clamp(2.15rem, 3.95vw, 4.05rem); line-height: .99; }
.hero h1 span { display: block; color: var(--red-dark); }
.hero-summary { margin-top: .67rem; max-width: 23rem; font-size: clamp(.83rem, 1.29vw, 1.12rem); line-height: 1.33; color: var(--body); }
.hero-actions { gap: .75rem; margin-top: .85rem; }

.about { background: radial-gradient(ellipse at 63% 43%, #fff 0%, #f5f5f5 74%); }
.about-inner { grid-template-columns: 39% 1fr; gap: 5.5%; padding-block: clamp(1.55rem, 2.9vw, 2.55rem); }
.about-photo { aspect-ratio: 1.95; border-radius: .9rem; background: #292929; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
.about-photo::before { position: absolute; content: ""; inset: 0 auto auto 0; width: 17%; height: 55%; background: linear-gradient(120deg, #aa0000, #e02626); clip-path: polygon(0 0, 100% 0, 0 100%); }
.about-copy { max-width: 24rem; }
.about-mark { z-index: -1; position: absolute; right: 1.5%; bottom: 10%; width: clamp(8rem, 18vw, 18rem); opacity: .038; }
.about-promise { gap: .85rem; margin-top: clamp(.85rem, 2.2vw, 1.5rem); font-size: .86rem; }
.about-promise svg { width: 2.65rem; height: 2.65rem; color: var(--red); }

.services { padding: 1rem 0 1.55rem; background: linear-gradient(135deg, #fff, #fafafa 70%, #fff); }
.service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 3.25vw, 2.75rem); padding-inline: 1rem; margin-top: 1.25rem; }
.service-card { padding: .38rem; background: #fff; border-radius: 1.05rem; box-shadow: 0 2px 12px #12182613; }
.service-card img { display: block; width: 100%; aspect-ratio: 3 / 1; height: auto; object-fit: cover; object-position: center 46%; border-radius: .8rem; background: #eee; }
.service-card-body { padding: .95rem 1.18rem .78rem; }
.service-card-body p { margin-top: .43rem; color: var(--body); font-size: clamp(.81rem, 1.29vw, 1.04rem); line-height: 1.25; }
.service-icon { position: absolute; display: grid; place-items: center; width: 3.9rem; height: 3.45rem; top: -2.45rem; left: .53rem; border-radius: 50% 50% 35% 35%; color: var(--red); background: #fff; }
.service-icon svg { width: 2.22rem; height: 2.22rem; }

.applications { background: #fbf3f3; }
.applications-inner { grid-template-columns: minmax(19rem, .74fr) 1fr; gap: 1.2rem; padding-block: clamp(1.3rem, 2.26vw, 2.1rem); }
.applications h2, .benefits h2 { font-size: clamp(1.5rem, 2.45vw, 2.12rem); }
.application-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(.4rem, 1.2vw, 1rem); text-align: center; }
.application-grid li { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .39rem; min-height: 5.45rem; padding: .5rem .19rem; border-radius: .75rem; background: #fff9; box-shadow: 0 3px 7px #3823260c; font-size: clamp(.69rem, 1.15vw, .9rem); line-height: 1.2; font-weight: 600; }
.application-grid svg, .benefit-icon svg { width: 2.05rem; height: 2.05rem; color: var(--red); }

.benefits { padding-block: 1rem 1.65rem; background: linear-gradient(141deg, #fff, #fafafa); }
.benefit-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); margin-top: 1rem; }
.benefit-grid li { position: relative; display: flex; flex-direction: column; align-items: center; gap: .25rem; font-size: .86rem; line-height: 1.16; }
.benefit-grid li + li::before { position: absolute; content: ""; width: 1px; top: 20%; bottom: 0; left: 0; background: #e5e6e9; }
.benefit-icon { display: grid; place-items: center; width: 3.5rem; height: 2.9rem; border-radius: .75rem; background: var(--rose); }

.contact { background: linear-gradient(130deg, #f8f5f5 26%, #fffafa 75%); }
.contact::before { content: ""; position: absolute; z-index: -1; inset: 0; background: #f6e7e8; clip-path: polygon(53% 0, 100% 0, 100% 100%, 33% 100%); opacity: .48; }
.contact::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(135deg, #b80000 51%, #d92323 90%, #a80000); clip-path: polygon(97.6% 0,100% 0,100% 100%,42.5% 100%,56% 38%,89% 38%); }
.contact-inner { grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: clamp(1.75rem, 4vw, 4rem); padding: clamp(2.5rem, 5vw, 4.25rem) clamp(0rem, 2.7vw, 2.35rem); }
.contact-copy .section-copy { max-width: 23rem; font-size: .97rem; }
.contact-details { gap: .55rem; margin-top: 1.15rem; font-size: .92rem; font-style: normal; font-weight: 700; }
.contact-details > * { display: flex; align-items: flex-start; gap: .75rem; width: fit-content; max-width: 100%; min-height: 2rem; }
.contact-details a:hover { text-decoration: underline; }
.contact-details svg { color: var(--red); width: 1.45rem; height: 1.45rem; flex: none; }

.quote-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.2rem;
    padding: clamp(1.25rem, 2.6vw, 2.1rem);
    background: linear-gradient(130deg, #fcfcfc, #fff);
    border-radius: .9rem;
    box-shadow: 0 3px 18px #22202d20;
    color: var(--body);
}
.quote-form label { display: grid; align-content: start; gap: .4rem; min-width: 0; }
.field-label { font-size: .89rem; font-weight: 700; }
.field-label > span { color: var(--red-dark); }
.quote-form :where(input:not([type="hidden"]), select, textarea) {
    display: block;
    width: 100%;
    min-height: 2.875rem;
    padding: .65rem .8rem;
    border: 1px solid #9ca4ae;
    border-radius: .42rem;
    background: #fff;
    font-size: 1rem;
    line-height: 1.3;
}
.quote-form select:invalid { color: #535d66; }
.quote-form select { appearance: none; padding-right: 2.25rem; }
.select-field svg { position: absolute; pointer-events: none; top: 50%; right: .8rem; width: 1rem; height: 1rem; transform: translateY(-50%); stroke-width: 2; }
.quote-form textarea { min-height: 6.5rem; resize: vertical; }
.message-field, .form-status { grid-column: 1 / -1; }
.form-status { font-size: .9rem; font-weight: 700; padding: .65rem .75rem; border-radius: .32rem; }
.form-success { color: #174e35; background: #e6f5ed; }
.form-error { color: #8a0000; background: #fce7e7; }
.quote-form .button { justify-self: start; min-height: 2.875rem; padding-inline: 1.2rem; font-size: .9rem; }

.site-footer { background: #fff; border-top: 1px solid #f0e8e8; }
.footer-inner { grid-template-columns: auto minmax(0, 1fr) auto; gap: 1rem clamp(1rem, 3vw, 3rem); padding: 1.6rem .45rem; }
.site-footer .brand-mark { width: 3rem; }
.site-footer .brand-type span:first-child { font-size: 1.23rem; }
.site-footer .brand-type span:last-child { font-size: 1rem; }
.footer-nav { justify-content: center; gap: .15rem clamp(.15rem, 1vw, .85rem); }
.footer-nav a { display: flex; align-items: center; min-height: 2.75rem; padding-inline: .3rem; font-size: .86rem; font-weight: 600; }
.footer-nav a:hover { color: var(--red-dark); text-decoration: underline; }
.footer-location { gap: .5rem; font-size: .86rem; font-weight: 600; }
.footer-location svg { width: 1.15rem; height: 1.15rem; color: var(--red); flex: none; }

.contact-details span { overflow-wrap: anywhere; }
.contact-hours { display: grid; gap: .5rem; margin-top: 1rem; color: var(--body); font-size: .9rem; }
.contact-hours h3 { font-size: .95rem; letter-spacing: 0; }
.contact-hours dl { display: grid; gap: .25rem; }
.contact-hours dl > div { display: flex; flex-wrap: wrap; gap: .15rem .65rem; }
.contact-hours dt { min-width: 7.75rem; font-weight: 700; }
.contact-hours dd { font-variant-numeric: tabular-nums; }
.location-section { padding-block: clamp(1.75rem, 4vw, 3.5rem); background: #faf8f8; }
.location-header { gap: .75rem 1.25rem; margin-bottom: 1rem; }
.location-header .button { min-height: 2.75rem; white-space: normal; }
.location-map { display: block; width: 100%; height: clamp(17.5rem, 38vw, 25rem); border: 1px solid #ded9d9; border-radius: .9rem; background: #fff; }
.footer-location:hover { color: var(--red-dark); text-decoration: underline; }
.footer-bottom { border-top: 1px solid #f0e8e8; padding: .95rem .45rem; font-size: .84rem; color: #535d66; }
.footer-bottom-inner { gap: .6rem 1.5rem; }
.footer-credit a { color: var(--body); font-weight: 700; }
.footer-credit a:hover { color: var(--red-dark); text-decoration: underline; }

@media (min-width: 1350px) {
    .header-inner { min-height: 4.6rem; }
    .service-grid { margin-block: 1.55rem .45rem; }
    .services, .benefits { padding-block: 1.55rem 2.2rem; }
}

@media (max-width: 1000px) {
    .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-nav { grid-column: 1 / -1; grid-row: 2; }
    .footer-location { justify-self: end; }
}

@media (max-width: 900px) {
    .header-inner { padding-inline: 0; gap: .7rem; }
    .main-nav { gap: .95rem; }
    .applications-inner { grid-template-columns: minmax(13.75rem, .66fr) 1fr; }
    .service-card-body { padding-inline: .7rem; }
}

@media (max-width: 767px) {
    :root { --frame: min(90%, 40rem); }
    .header-inner { min-height: 4rem; flex-wrap: wrap; }
    .menu-toggle { margin-left: auto; }
    .main-nav { order: 4; width: 100%; flex-wrap: wrap; gap: 0 .95rem; padding-bottom: .6rem; }
    .main-nav a { min-height: 2.75rem; font-size: .88rem; }
    .header-quote { min-height: 2.75rem; }
    .hero-inner { min-height: 0; padding: 1.8rem 0 0; display: block; }
    .hero-copy { width: 100%; padding-bottom: 1.55rem; }
    .hero-photo { position: relative; inset: auto; height: clamp(11.5rem, 51vw, 19rem); clip-path: polygon(13% 0, 100% 0, 100% 100%, 0 100%); order: 2; margin-left: 5%; }
    .hero { display: flex; flex-direction: column; }
    .hero-stripe { height: 7rem; }
    .hero h1 { font-size: clamp(2.05rem, 7.5vw, 3.5rem); }
    .hero-summary, .section-copy, .service-card-body p { font-size: .94rem; }
    .button { min-height: 2.75rem; }
    .about-inner { grid-template-columns: 1fr; gap: 1rem; padding-block: 1.6rem; }
    .about-photo { aspect-ratio: 1.9; }
    .about-copy { max-width: 32rem; }
    .services, .benefits { padding-block: 1.6rem; }
    .service-grid { grid-template-columns: 1fr; padding: 0; gap: 1.15rem; }
    .service-card-body { padding-inline: .9rem; }
    .service-card img { aspect-ratio: 3.25 / 1; }
    .applications-inner { grid-template-columns: 1fr; padding-block: 1.55rem; gap: .9rem; }
    .application-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
    .application-grid li { font-size: .78rem; }
    .benefit-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 1rem; }
    .benefit-grid li:nth-child(4)::before { display: none; }
    .contact-inner { grid-template-columns: 1fr; gap: 1.5rem; padding: 2.4rem 0; }
    .contact::after { clip-path: polygon(100% 54%, 100% 100%, 24% 100%); }
    .footer-inner { grid-template-columns: 1fr; justify-items: center; padding: 1.6rem 0; gap: .65rem; }
    .footer-nav { display: grid; grid-column: auto; grid-row: auto; grid-template-columns: repeat(3, minmax(0, 1fr)); width: min(100%, 22rem); gap: .15rem .45rem; }
    .footer-nav a { justify-content: center; }
    .footer-location { justify-self: center; }
    .footer-bottom-inner { justify-content: center; text-align: center; gap: .35rem; }
}

@media (max-width: 424px) {
    .quote-form { grid-template-columns: 1fr; }
    .header-quote { padding-inline: .65rem; }
    .brand-mark { width: 2.8rem; }
    .brand-type span:first-child { font-size: 1.2rem; }
    .brand-type span:last-child { font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .button { transition: none; }
}
