:root {
    --ink: #252621;
    --ink-soft: #34362f;
    --olive: #626755;
    --olive-dark: #444839;

    --stone: #d6c9b3;
    --stone-light: #ebe5d9;

    --paper: #f8f6f0;
    --white: #fdfcf9;

    --line: #d9d5cc;
    --muted: #77786f;

    --serif: "Libre Baskerville", Georgia, serif;
    --sans: "DM Sans", Arial, sans-serif;

    --container: 1180px;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    line-height: 1.6;
}


img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}


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


button,
input,
textarea,
select {
    font: inherit;
}


.container {
    width: min(90%, var(--container));
    margin: 0 auto;
}


.section {
    padding: 88px 0;
}


.eyebrow {
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: .17em;
    font-size: .68rem;
    font-weight: 700;
}


.eyebrow.dark {
    color: var(--olive);
}


h1,
h2,
h3 {
    font-family: var(--serif);
    font-weight: 400;
    line-height: 1.12;
}


h1 {
    font-size: clamp(2.5rem, 4.6vw, 4.3rem);
}


h2 {
    font-size: clamp(1.9rem, 3.4vw, 3rem);
}


h1 span,
h2 span {
    display: block;
}


.button {
    min-height: 55px;
    padding: 0 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    font-size: .78rem;
    font-weight: 700;
    transition: .25s ease;
}


.button-primary {
    background: var(--stone);
    color: var(--ink);
}


.button-primary:hover {
    background: var(--stone-light);
    transform: translateY(-2px);
}


.button-outline {
    color: white;
    border-color: rgba(255,255,255,.55);
}


.button-outline:hover {
    background: white;
    color: var(--ink);
}


/* HEADER */


.site-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 20;
    color: white;
    border-bottom: 1px solid rgba(255,255,255,.2);
}


.nav-container {
    min-height: 92px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}


.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}


.logo-mark {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid currentColor;
    font-family: var(--serif);
    font-size: 1.2rem;
}


.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}


.logo-text strong {
    font-size: .95rem;
    letter-spacing: .06em;
}


.logo-text small {
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: .2em;
    font-size: .5rem;
    opacity: .65;
}


.main-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}


.main-nav a {
    font-size: .76rem;
    font-weight: 600;
}


.nav-cta {
    padding: 13px 19px;
    border: 1px solid rgba(255,255,255,.6);
}


.menu-toggle {
    display: none;
    padding: 10px;
    background: none;
    border: 0;
}


.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    margin: 5px 0;
    background: white;
}


/* HERO */


.hero {
    min-height: 620px;
    position: relative;
    display: flex;
    align-items: center;
    color: white;
    overflow: hidden;
}


.hero-image {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(35,37,31,.94),
            rgba(35,37,31,.66) 48%,
            rgba(35,37,31,.18)
        ),
        url("images/hero.jpg") center / cover no-repeat;

    background-color: var(--ink);
}


.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(30,32,27,.12);
}


.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding-top: 90px;
}


.hero-text {
    max-width: 570px;
    margin: 30px 0 38px;
    color: rgba(255,255,255,.82);
    font-size: 1rem;
}


.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}


.hero-bottom {
    position: absolute;
    z-index: 2;
    bottom: 0;
    left: 0;
    width: 100%;
    border-top: 1px solid rgba(255,255,255,.2);
}


.hero-bottom-inner {
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}


.hero-bottom span {
    font-size: .64rem;
    text-transform: uppercase;
    letter-spacing: .11em;
    opacity: .65;
}


/* INTRO */


.intro {
    background: var(--stone-light);
}


.intro-grid {
    display: grid;
    grid-template-columns: 80px 1.3fr .8fr;
    gap: 36px;
    align-items: end;
}


.intro-number {
    align-self: start;
    color: var(--olive);
    font-size: .7rem;
    font-weight: 700;
}


.intro-copy {
    max-width: 440px;
}


.intro-copy p {
    color: var(--muted);
}


.text-link {
    display: inline-flex;
    gap: 12px;
    margin-top: 26px;
    font-size: .78rem;
    font-weight: 700;
}


.text-link span {
    transition: .2s ease;
}


.text-link:hover span {
    transform: translate(4px,-3px);
}


/* SERVICES */


.services {
    background: var(--white);
}


.section-heading {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 90px;
    align-items: end;
    margin-bottom: 65px;
}


.section-heading > p {
    color: var(--muted);
    max-width: 420px;
}


.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}


.service-card {
    position: relative;
    min-height: 260px;
    padding: 28px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    transition: .25s ease;
}


.service-card:hover {
    background: var(--ink);
    color: white;
}


.service-number {
    position: absolute;
    top: 24px;
    right: 26px;
    color: var(--olive);
    font-size: .63rem;
    font-weight: 700;
}


.service-card:hover .service-number {
    color: var(--stone);
}


.service-icon {
    width: 42px;
    height: 42px;
    margin-bottom: 26px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    color: var(--olive);
    font-size: 1.05rem;
}


.service-card:hover .service-icon {
    border-color: rgba(255,255,255,.3);
    color: var(--stone);
}


.service-card h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}


.service-card p {
    color: var(--muted);
    font-size: .8rem;
    max-width: 280px;
}


.service-card:hover p {
    color: rgba(255,255,255,.65);
}


.service-card a {
    position: absolute;
    bottom: 26px;
    left: 28px;
    font-size: .68rem;
    font-weight: 700;
}


/* FEATURE */


.feature {
    background: var(--stone-light);
}


.feature-grid {
    display: grid;
    grid-template-columns: 1fr .9fr;
    gap: 90px;
    align-items: center;
}


.feature-image {
    height: 460px;
    position: relative;
    overflow: hidden;
    min-width: 0;
}


.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


.image-label {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    background: rgba(35,37,31,.82);
    color: white;
    text-transform: uppercase;
    letter-spacing: .1em;
    font-size: .58rem;
}


.feature-controls {
    display: flex;
    justify-content: flex-start;
    gap: .6rem;
    margin-top: 1rem;
    padding-top: .2rem;
}


.feature-control {
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--white);
    color: var(--ink);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .04em;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(35,37,31,.08);
    transition: all .2s ease;
}


.feature-control.is-active,
.feature-control:hover {
    background: var(--ink);
    border-color: var(--ink);
    color: white;
}


.feature-content > p:not(.eyebrow) {
    max-width: 480px;
    margin-top: 20px;
    color: var(--muted);
}


.feature-points {
    margin-top: 36px;
    border-top: 1px solid var(--line);
}


.feature-points div {
    display: flex;
    gap: 26px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}


.feature-points strong {
    color: var(--olive);
    font-size: .65rem;
}


.feature-points span {
    font-size: .78rem;
    font-weight: 700;
}


/* WORK */


.work {
    background: var(--white);
}


.work-heading {
    display: grid;
    grid-template-columns: 1fr .6fr;
    gap: 80px;
    align-items: end;
    margin-bottom: 60px;
}


.work-heading > p {
    color: var(--muted);
    max-width: 350px;
}


.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 280px;
    gap: 12px;
}


.gallery-item {
    position: relative;
    overflow: hidden;
    min-height: 0;
}


.gallery-large {
    grid-row: span 2;
}


.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}


.gallery-item:hover img {
    transform: scale(1.04);
}


.gallery-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 55%, rgba(0,0,0,.6));
}


.gallery-item figcaption {
    position: absolute;
    z-index: 2;
    left: 20px;
    bottom: 18px;
    display: flex;
    flex-direction: column;
    color: white;
    font-size: .8rem;
    font-weight: 600;
}


.gallery-item figcaption span {
    margin-bottom: 3px;
    font-size: .6rem;
    opacity: .65;
}


/* CONTACT */


.contact {
    background: var(--olive-dark);
    color: white;
}


.contact-grid {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 110px;
}


.contact-intro > p:not(.eyebrow) {
    max-width: 450px;
    margin-top: 25px;
    color: rgba(255,255,255,.62);
}


.contact-details {
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}


.contact-details a {
    display: flex;
    flex-direction: column;
    font-size: .95rem;
    font-weight: 600;
}


.contact-details small {
    margin-bottom: 3px;
    color: rgba(255,255,255,.4);
    font-size: .6rem;
    text-transform: uppercase;
    letter-spacing: .14em;
}


.quote-form {
    padding: 45px;
    background: var(--white);
    color: var(--ink);
}


.form-header {
    display: flex;
    justify-content: space-between;
    padding-bottom: 25px;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--line);
}


.form-header span {
    color: var(--olive);
    font-size: .65rem;
}


.form-header p {
    font-family: var(--serif);
    font-size: 1.15rem;
}


.quote-form label {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 19px;
    font-size: .68rem;
    font-weight: 700;
}


.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}


.quote-form input,
.quote-form textarea,
.quote-form select {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--line);
    background: white;
    color: var(--ink);
    outline: none;
}


.quote-form input:focus,
.quote-form textarea:focus,
.quote-form select:focus {
    border-color: var(--olive);
}


.quote-form textarea {
    resize: vertical;
}


.quote-form .button {
    width: 100%;
    border: none;
    cursor: pointer;
}


.form-note {
    margin-top: 12px;
    text-align: center;
    color: var(--muted);
    font-size: .62rem;
}


/* FOOTER */


.site-footer {
    background: #1b1d18;
    color: white;
    padding: 75px 0 25px;
}


.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.3fr;
    gap: 80px;
}


.footer-brand p {
    max-width: 310px;
    margin-top: 20px;
    color: rgba(255,255,255,.45);
    font-size: .8rem;
}


.footer-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
}


.footer-column h4 {
    margin-bottom: 10px;
    font-size: .65rem;
    text-transform: uppercase;
    letter-spacing: .13em;
}


.footer-column a {
    color: rgba(255,255,255,.5);
    font-size: .75rem;
}


.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 60px;
    padding-top: 22px;
    border-top: 1px solid rgba(255,255,255,.1);
    color: rgba(255,255,255,.3);
    font-size: .6rem;
}


/* RESPONSIVE */


@media (max-width: 900px) {

    .section {
        padding: 68px 0;
    }

    .main-nav {
        display: none;
    }

    .main-nav.mobile-open {
        display: flex;
        position: absolute;
        top: 92px;
        left: 0;
        width: 100%;
        padding: 25px;
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        background: var(--olive-dark);
    }

    .menu-toggle {
        display: block;
    }

    .hero {
        min-height: 560px;
    }

    .hero-bottom-inner {
        display: none;
    }

    .intro-grid,
    .section-heading,
    .feature-grid,
    .work-heading,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .intro-number {
        display: none;
    }

    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature-image {
        height: 420px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}


@media (max-width: 600px) {

    .section {
        padding: 56px 0;
    }

    .hero {
        min-height: 540px;
        align-items: flex-start;
    }

    .hero-content {
        padding-top: 110px;
    }

    h1 {
        font-size: clamp(2.2rem, 12vw, 3rem);
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .button {
        width: 100%;
    }

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

    .service-card {
        min-height: auto;
    }

    .feature-image {
        height: 320px;
    }

    .gallery {
        grid-template-columns: 1fr;
        grid-auto-rows: 260px;
    }

    .gallery-large {
        grid-row: span 1;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .quote-form {
        padding: 25px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-brand {
        grid-column: auto;
    }

    .footer-bottom {
        flex-direction: column;
    }

}