/* =========================================
   BASE — shared reset, header, footer
   Used by: services, work, contact,
            and the three service detail pages
========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    color: #111111;
    background: #ffffff;
    line-height: 1.5;
}

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

button {
    font: inherit;
}

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

.container {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
}


/* =========================================
   HEADER
========================================= */

header {
    width: 100%;
    height: 64.5px;
    border-bottom: 1px solid #eeeeee;
    background: #ffffff;

    position: sticky;
    top: 0;
    z-index: 20;
}

header > div {
    width: 100%;
    max-width: 1080px;
    height: 100%;
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

header > div > a {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.2px;
}

header nav {
    display: flex;
    align-items: center;
    gap: 40.5px;
}

header nav a {
    font-size: 13.5px;
    color: #666666;
    transition: color 0.2s ease;
}

header nav a:hover {
    color: #111111;
}

header nav a[aria-current="page"] {
    color: #111111;
    font-weight: 600;
}

header button {
    display: none;
}


/* =========================================
   SHARED PAGE PIECES
========================================= */

main {
    background: #ffffff;
}

.page {
    padding: 111px 0 117px;
}

.page-title {
    font-size: 55.5px;
    line-height: 1;
    letter-spacing: -2.7px;
    font-weight: 700;
    margin-bottom: 18px;
}

.page-sub {
    max-width: 645px;
    margin-bottom: 51px;

    font-size: 16.5px;
    line-height: 1.55;
    color: #777777;
}

.back-link {
    display: inline-block;
    margin-bottom: 21px;

    font-size: 13.5px;
    color: #0070d9;
}

.back-link:hover {
    text-decoration: underline;
}


/* Buttons (pill, Apple style) */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    height: 54px;
    padding: 0 28.5px;

    border-radius: 30px;
    border: 1px solid #dfe3e7;
    background: #ffffff;
    color: #222222;

    font-size: 15px;
    font-weight: 600;

    transition: all 0.2s ease;
}

.btn:hover {
    background: #f7f7f7;
}

.btn-dark {
    background: #111111;
    color: #ffffff;
    border-color: #111111;
}

.btn-dark:hover {
    background: #333333;
    border-color: #333333;
}

.btn-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
}

header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);

    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
/* Bottom CTA band */

.cta {
    background: #f5f6f8;
    border-top: 1px solid #e7e8ea;
    border-bottom: 1px solid #e7e8ea;

    padding: 72px 30px;

    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.cta h2 {
    max-width: 645px;
    margin-bottom: 12px;

    font-size: 30px;
    line-height: 1.1;
    letter-spacing: -0.8px;
}

.cta p {
    max-width: 585px;
    margin-bottom: 28.5px;

    font-size: 13.5px;
    line-height: 1.45;
    color: #777777;
}


/* =========================================
   FOOTER
========================================= */

footer {
    width: 100%;
    background: #f5f6f8;
    border-top: 1px solid #e7e8ea;
}

footer > div:first-child {
    width: 100%;
    max-width: 1080px;
    min-height: 280.5px;
    margin: 0 auto;
    padding: 63px 0 52.5px;

    display: grid;
    grid-template-columns: 1.55fr 0.85fr 1.1fr 0.8fr;
    column-gap: 64.5px;
}

footer > div:first-child > div:first-child > p:first-child {
    margin-bottom: 10.5px;

    color: #202020;
    font-size: 13.5px;
    font-weight: 700;
}

footer > div:first-child > div:first-child > p:last-child {
    max-width: 255px;

    color: #69727d;
    font-size: 13.5px;
    line-height: 1.55;
}

footer > div:first-child > div:not(:first-child) > p:first-child {
    margin-bottom: 13.5px;

    color: #90969d;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
}

footer ul {
    list-style: none;
}

footer li {
    margin-bottom: 7.5px;
}

footer li a {
    color: #69727d;
    font-size: 13.5px;
    line-height: 1.4;

    transition: color 0.2s ease;
}

footer li a:hover {
    color: #111111;
}

footer > div:last-child {
    width: 100%;
    min-height: 55.5px;
    border-top: 1px solid #e3e5e7;
}

footer > div:last-child > div {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding-top: 16.5px;

    color: #747c85;
    font-size: 12px;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 1120px) {

    header > div,
    .container,
    footer > div:first-child,
    footer > div:last-child > div {
        padding-left: 37.5px;
        padding-right: 37.5px;
    }
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 900px) {

    header {
        height: 72px;
    }

    header > div {
        padding: 0 27px;
    }

    header nav {
        display: none;

        position: absolute;
        top: 72px;
        left: 0;
        right: 0;

        flex-direction: column;
        align-items: stretch;
        gap: 0;

        padding: 6px 27px 18px;

        background: #ffffff;
        border-bottom: 1px solid #eeeeee;
    }

    header nav.open {
        display: flex;
    }

    header nav a {
        padding: 15px 0;
        font-size: 16.5px;
        border-bottom: 1px solid #f1f1f1;
    }

    header button {
        display: block;

        padding: 7.5px 15px;

        background: #ffffff;
        border: 1px solid #dedede;
        border-radius: 22.5px;

        color: #444444;
        font-size: 13.5px;
    }

    .page {
        padding: 78px 0 87px;
    }

    .page-title {
        font-size: 48px;
        letter-spacing: -2.2px;
    }

    footer > div:first-child {
        min-height: auto;
        padding: 52.5px 30px;

        grid-template-columns: 1fr 1fr;
        gap: 45px 30px;
    }

    footer > div:first-child > div:first-child {
        grid-column: 1 / -1;
    }

    footer > div:last-child > div {
        padding: 18px 30px;
    }
}


/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 560px) {

    .container {
        padding-left: 25.5px;
        padding-right: 25.5px;
    }

    .page-title {
        font-size: 43.5px;
    }

    footer > div:first-child {
        grid-template-columns: 1fr;
    }
}


/* =========================================
   RESPONSIVE POLISH
========================================= */

.container {
    padding-left: 24px;
    padding-right: 24px;
}

@media (max-width: 1120px) {

    header > div {
        padding-left: 24px;
        padding-right: 24px;
    }
}
