:root {
    --brand-paper: #fbf8f5;
    --brand-panel: #f8f8f8;
    --brand-ink: #050505;
    --brand-red: #f62a49;
    --brand-muted: #686868;
    --brand-line: rgba(5, 5, 5, 0.18);
    --brand-title: "Alata", sans-serif;
    --brand-copy: "Roboto Slab", serif;
    --brand-width: 1230px;
}

* { box-sizing: border-box; }

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

body {
    margin: 0;
    background: var(--brand-paper);
    color: var(--brand-ink);
    font-family: var(--brand-copy);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

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

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
    outline: 2px solid var(--brand-red);
    outline-offset: 4px;
}

.site-skip-link {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 100;
    padding: 10px 14px;
    background: var(--brand-ink);
    color: #fff;
    transform: translateY(-160%);
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(251, 248, 245, 0.96);
    border-bottom: 1px solid transparent;
    backdrop-filter: blur(12px);
}

.site-header-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: min(100% - 48px, var(--brand-width));
    min-height: 102px;
    margin: 0 auto;
}

.site-desktop-nav {
    display: flex;
    gap: 28px;
    justify-self: start;
}

.site-desktop-nav a,
.site-footer nav a {
    font-family: var(--brand-title);
    font-size: 15px;
    font-weight: 400;
}

.site-desktop-nav a:hover,
.site-footer nav a:hover,
.brand-text-link:hover { color: var(--brand-red); }

.site-logo-link { grid-column: 2; justify-self: center; }
.site-logo { width: 200px; height: auto; }

.site-header-button,
.site-button {
    display: inline-flex;
    min-width: 170px;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 4px;
    background: var(--brand-red);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: background-color 120ms ease, transform 120ms ease;
}

.site-header-button { justify-self: end; }
.site-header-button:hover,
.site-button:hover { background: #d90000; transform: translateY(-1px); }
.site-mobile-menu { display: none; }

.brand-hero {
    position: relative;
    display: grid;
    min-height: calc(100svh - 102px);
    place-items: center;
    overflow: hidden;
    padding: clamp(80px, 9vw, 126px) 24px;
    background: var(--brand-ink);
    text-align: center;
}

.brand-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(0, 0, 0, 0.18);
    pointer-events: none;
}

.brand-hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand-hero-copy {
    position: relative;
    z-index: 2;
    max-width: 860px;
    margin: 0 auto;
    padding: clamp(34px, 5vw, 62px);
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 4px;
    background: rgba(251, 248, 245, 0.78);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.16);
    backdrop-filter: blur(10px);
}

.brand-eyebrow {
    margin: 0 0 18px;
    color: var(--brand-red);
    font-family: var(--brand-title);
    font-size: 14px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

h1, h2, h3 {
    margin: 0;
    font-family: var(--brand-title);
    font-weight: 400;
    line-height: 1.12;
}

.brand-hero h1 { font-size: clamp(48px, 6vw, 70px); }

.brand-hero-copy > p:not(.brand-eyebrow) {
    max-width: 650px;
    margin: 26px auto 0;
    font-size: clamp(18px, 2vw, 22px);
    font-weight: 300;
}

.brand-hero .site-button {
    min-width: 205px;
    min-height: 58px;
    margin-top: 34px;
    padding: 0 28px;
    font-size: 18px;
}

.brand-services,
.brand-products {
    width: min(100% - 30px, var(--brand-width));
    margin: 0 auto;
    padding: clamp(84px, 9vw, 122px) 0;
}

.brand-products {
    background: #fff;
    box-shadow: 0 0 0 100vmax #fff;
    clip-path: inset(0 -100vmax);
}

.brand-section-heading {
    max-width: 700px;
    margin: 0 auto 52px;
    text-align: center;
}

.brand-section-heading h2,
.brand-contact h2 { font-size: clamp(38px, 4.5vw, 51px); }

.brand-section-heading > p:last-child {
    max-width: 640px;
    margin: 20px auto 0;
    font-weight: 300;
}

.brand-service-grid,
.brand-product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
}

.brand-service-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.brand-service-image {
    display: block;
    height: 380px;
    overflow: hidden;
}

.brand-service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 300ms ease;
}

.brand-service-image:hover img { transform: scale(1.025); }
.brand-service-item h3 { margin-top: 24px; font-size: 26px; }
.brand-service-item p { margin: 12px 0 0; color: var(--brand-muted); font-weight: 300; }

.brand-text-link {
    display: inline-block;
    margin-top: 16px;
    color: var(--brand-red);
    font-family: var(--brand-title);
    font-size: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.brand-statement {
    display: grid;
    min-height: 390px;
    place-items: center;
    padding: 70px 24px;
    background: var(--brand-panel);
    text-align: center;
}

.brand-statement p {
    margin: 0;
    font-family: var(--brand-title);
    font-size: clamp(42px, 5vw, 64px);
    line-height: 1.22;
}

.brand-product-grid article {
    padding: 26px 0;
    border-top: 1px solid var(--brand-line);
}

.brand-product-grid article > span { color: var(--brand-red); font-size: 13px; }
.brand-product-grid h3 { margin-top: 28px; font-size: 25px; }
.brand-product-grid p { margin: 12px 0 0; color: var(--brand-muted); font-weight: 300; }

.brand-testimonials {
    overflow: hidden;
    padding: clamp(76px, 8vw, 108px) 0;
    background: var(--brand-ink);
    color: #fff;
}

.brand-testimonial-heading {
    display: flex;
    width: min(100% - 48px, var(--brand-width));
    align-items: end;
    justify-content: space-between;
    gap: 30px;
    margin: 0 auto 46px;
}

.brand-testimonial-heading h2 {
    max-width: 700px;
    font-size: clamp(38px, 4.5vw, 52px);
}

.brand-testimonial-window {
    overflow: hidden;
    padding-left: max(24px, calc((100vw - var(--brand-width)) / 2));
}

.brand-testimonial-track {
    display: flex;
    width: max-content;
    will-change: transform;
}

.brand-testimonial-group {
    display: flex;
    gap: 24px;
    padding-right: 24px;
}

.brand-testimonial-card {
    display: flex;
    width: clamp(290px, 32vw, 410px);
    min-width: clamp(290px, 32vw, 410px);
    min-height: 245px;
    flex: none;
    flex-direction: column;
    justify-content: space-between;
    margin: 0;
    padding: clamp(28px, 4vw, 40px);
    border-top: 3px solid var(--brand-red);
    background: var(--brand-paper);
    color: var(--brand-ink);
}

.brand-testimonial-card > p {
    margin: 0;
    font-size: clamp(18px, 1.7vw, 21px);
    font-weight: 300;
    line-height: 1.55;
}

.brand-testimonial-card footer { margin-top: 28px; }
.brand-testimonial-card cite { font-family: var(--brand-title); font-style: normal; }

.brand-contact {
    display: grid;
    grid-template-columns: minmax(0, 970px);
    justify-content: center;
    gap: 44px;
    /*padding: clamp(80px, 9vw, 10px) max(24px, calc((100vw - var(--brand-width)) / 2));*/
    background: var(--brand-paper);
}

.brand-contact-intro { max-width: 720px; }
.contact-page {
    min-height: calc(100vh - 102px);
    padding: clamp(64px, 8vw, 100px) max(24px, calc((100vw - var(--brand-width)) / 2));
}
.contact-page .brand-contact-intro h1 { font-size: clamp(48px, 5.5vw, 70px); }

.brand-contact-intro > p:not(.brand-eyebrow) { margin: 22px 0 0; color: var(--brand-muted); }

.brand-contact address {
    display: grid;
    gap: 8px;
    margin-top: 34px;
    font-style: normal;
}

.brand-contact address a { text-decoration: underline; text-underline-offset: 4px; }

.brand-contact-embed { width: 100%; min-width: 0; }

.site-footer { padding: 70px 24px 22px; background: var(--brand-panel); }

.site-footer-inner {
    display: grid;
    grid-template-columns: 1.6fr 0.7fr 1fr;
    gap: 60px;
    width: min(100%, var(--brand-width));
    margin: 0 auto;
}

.site-footer-logo img { width: min(100%, 280px); }
.site-footer nav,
.site-footer-contact { display: grid; align-content: start; gap: 9px; }
.site-footer-contact { font-size: 14px; }
.site-copyright { width: min(100%, var(--brand-width)); margin: 64px auto 0; color: var(--brand-muted); font-size: 12px; }

/* Service detail pages */
.service-hero {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    align-items: stretch;
    width: min(100% - 30px, var(--brand-width));
    min-height: 570px;
    margin: 34px auto 0;
}

.service-hero-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: clamp(48px, 6vw, 84px);
    background: #fff;
}

.service-hero h1 { max-width: 650px; font-size: clamp(48px, 5.5vw, 70px); }
.service-hero-copy > p:not(.brand-eyebrow) { max-width: 610px; margin: 24px 0 0; color: var(--brand-muted); font-size: 19px; font-weight: 300; }
.service-hero-actions { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; margin-top: 32px; }
.service-back-link { font-family: var(--brand-title); font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; }
.service-back-link:hover { color: var(--brand-red); }
.service-hero-image { min-height: 480px; overflow: hidden; }
.service-hero-image img { width: 100%; height: 100%; object-fit: cover; }

.service-content {
    width: min(100% - 40px, 970px);
    margin: 0 auto;
    padding: clamp(84px, 9vw, 120px) 0;
}

.service-content-heading { max-width: 760px; margin-bottom: 48px; }
.service-content-heading h2 { font-size: clamp(38px, 4.5vw, 50px); }
.service-content-heading p { margin: 20px 0 0; color: var(--brand-muted); font-weight: 300; }
.service-split { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }

.service-panel {
    padding: clamp(28px, 4vw, 44px);
    background: #fff;
    border-top: 3px solid var(--brand-red);
}

.service-panel h3,
.service-best h3 { font-size: 27px; }
.service-list { display: grid; gap: 13px; margin: 24px 0 0; padding: 0; list-style: none; }
.service-list li { position: relative; padding-left: 23px; color: var(--brand-muted); font-weight: 300; }
.service-list li::before { content: ""; position: absolute; top: 0.72em; left: 0; width: 7px; height: 7px; background: var(--brand-red); border-radius: 50%; }
.service-best { margin-top: 30px; padding: clamp(32px, 5vw, 56px); background: var(--brand-panel); }
.service-best .service-list { grid-template-columns: repeat(3, 1fr); gap: 28px; }
.service-best .service-list li { padding: 24px 0 0; border-top: 1px solid var(--brand-line); }
.service-best .service-list li::before { display: none; }
.service-best strong { display: block; margin-bottom: 5px; color: var(--brand-ink); font-family: var(--brand-title); font-weight: 400; }
.service-guidance { background: #fff; }

.service-cta {
    padding: clamp(82px, 9vw, 118px) 24px;
    background: var(--brand-panel);
    text-align: center;
}

.service-cta h2 { max-width: 760px; margin: 0 auto; font-size: clamp(38px, 4.5vw, 52px); }
.service-cta p { max-width: 600px; margin: 22px auto 0; color: var(--brand-muted); }
.service-cta .site-button { margin-top: 30px; }

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

    .site-header-inner {
        grid-template-columns: 1fr auto;
        width: min(100% - 32px, var(--brand-width));
        min-height: 82px;
    }

    .site-logo-link { grid-column: 1; justify-self: start; }
    .site-logo { width: 158px; }
    .site-desktop-nav,
    .site-header-button { display: none; }

    .site-mobile-menu { display: block; justify-self: end; }
    .site-mobile-menu summary { display: grid; gap: 5px; padding: 10px; list-style: none; cursor: pointer; }
    .site-mobile-menu summary::-webkit-details-marker { display: none; }
    .site-mobile-menu summary span { display: block; width: 25px; height: 2px; background: var(--brand-ink); }

    .site-mobile-menu nav {
        position: absolute;
        top: 100%;
        left: -16px;
        right: -16px;
        display: grid;
        padding: 26px 24px 32px;
        background: var(--brand-paper);
        border-top: 1px solid var(--brand-line);
        box-shadow: 0 18px 35px rgba(0, 0, 0, 0.08);
    }

    .site-mobile-menu nav a { padding: 11px 0; font-family: var(--brand-title); font-size: 22px; }

    .brand-hero { min-height: calc(100svh - 82px); }

    .brand-service-grid,
    .brand-product-grid,
    .brand-contact,
    .site-footer-inner,
    .service-hero,
    .service-split { grid-template-columns: 1fr; }

    .brand-service-grid { gap: 54px; }
    .brand-service-image { height: min(116vw, 520px); }
    .brand-testimonial-card { width: min(82vw, 340px); min-width: min(82vw, 340px); }
    .brand-contact { gap: 48px; }
    .site-footer-inner { gap: 40px; }
    .service-hero { width: 100%; margin-top: 0; }
    .service-hero-image { min-height: 430px; order: -1; }
    .service-best .service-list { grid-template-columns: 1fr; }
    .contact-page { min-height: calc(100vh - 82px); }
}

@media (max-width: 520px) {
    .brand-hero { padding-top: 64px; }
    .brand-hero h1 { font-size: 45px; }
    .brand-hero-copy { padding: 32px 22px; }
    .brand-services,
    .brand-products { width: min(100% - 40px, var(--brand-width)); }
    .site-button { width: 100%; }
    .brand-statement { min-height: 320px; }
    .brand-testimonial-heading { flex-direction: column; align-items: start; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: 0.01ms !important; }
    .brand-hero-video { display: none; }
    .brand-testimonial-window { overflow-x: auto; }
    .brand-testimonial-track { transform: none; }
}
