/* =========================================================
   EW DESIGN HOUSE
   Main Styles
   ========================================================= */

:root {
    --cream: #f5f0e8;
    --warm-white: #faf7f1;
    --brown: #4a3427;
    --dark-brown: #2d211b;
    --sage: #68715d;
    --tan: #b59a7b;
    --black: #211c18;

    --serif: "Cormorant Garamond", Georgia, serif;
    --sans: "DM Sans", Arial, sans-serif;
    --script: "Parisienne", cursive;
}


/* =========================
   RESET
   ========================= */

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

html {
    scroll-behavior: smooth;
}

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

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

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


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

.site-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 20;

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

    padding: 28px 6vw;
    color: white;
}


/* EW LOGO */

.brand {
    display: flex;
    align-items: center;
    gap: 13px;
}

.brand-mark {
    width: 48px;
    height: 48px;

    border: 1px solid rgba(255,255,255,.75);
    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    font-family: var(--serif);
    font-size: 20px;
    letter-spacing: -3px;

    position: relative;
}

.brand-mark::before {
    content: "❧";

    position: absolute;
    top: -14px;
    right: -8px;

    font-size: 18px;
    transform: rotate(25deg);
}

.brand-mark .slash {
    margin: 0 1px;
    font-size: 17px;
}

.brand-name {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.brand-name span {
    font-family: var(--serif);
    font-size: 20px;
    letter-spacing: 2px;
}

.brand-name small {
    margin-top: 5px;
    font-size: 8px;
    letter-spacing: 2px;
}


/* NAV */

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

    font-size: 13px;
}

.nav a {
    transition: opacity .3s ease;
}

.nav a:hover {
    opacity: .65;
}

.nav-button {
    border: 1px solid rgba(255,255,255,.7);
    padding: 11px 18px;
}


/* =========================
   HERO
   ========================= */

.hero {
    min-height: 100vh;
    position: relative;

    display: flex;
    align-items: center;

    overflow: hidden;

    background: #6e675f;
}

.hero-image {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    filter: saturate(.72) contrast(.92);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;

    background:
        linear-gradient(
            90deg,
            rgba(31,25,21,.68) 0%,
            rgba(31,25,21,.38) 42%,
            rgba(31,25,21,.08) 75%
        );
}

.hero-content {
    position: relative;
    z-index: 2;

    width: min(760px, 88%);

    margin-left: 8vw;
    padding-top: 80px;

    color: white;
}

.eyebrow {
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hero h1 {
    max-width: 760px;

    font-family: var(--serif);
    font-size: clamp(65px, 8vw, 125px);
    font-weight: 400;

    line-height: .84;
    letter-spacing: -3px;
}

.hero h1 span {
    font-family: var(--script);
    font-weight: 400;
    font-size: 1.05em;
    letter-spacing: 0;
}

.hero-text {
    max-width: 480px;

    margin-top: 32px;

    font-size: 16px;
    line-height: 1.7;
}


/* HERO BUTTONS */

.hero-buttons {
    display: flex;
    gap: 14px;

    margin-top: 34px;
}

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

    padding: 14px 24px;

    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;

    transition: all .3s ease;
}

.button-dark {
    background: var(--dark-brown);
    color: white;
}

.button-dark:hover {
    background: var(--brown);
    transform: translateY(-2px);
}

.button-light {
    border: 1px solid rgba(255,255,255,.7);
    color: white;
}

.button-light:hover {
    background: white;
    color: var(--brown);
}


/* LITTLE VINE */

.hero-vine {
    position: absolute;
    right: 10%;
    bottom: 16%;

    z-index: 3;

    display: flex;
    gap: 8px;

    color: white;
    font-size: 24px;

    transform: rotate(-12deg);
}

.hero-vine span:nth-child(2) {
    transform: translateY(-8px) rotate(15deg);
}

.hero-vine span:nth-child(3) {
    transform: translateY(5px) rotate(-20deg);
}


/* =========================
   INTRO
   ========================= */

.intro {
    padding: 150px 10vw;

    text-align: center;

    background: var(--cream);
}

.script {
    font-family: var(--script);
    font-size: 38px;
    color: var(--sage);
}

.intro h2,
.section-heading h2,
.about h2,
.contact h2 {
    margin-top: 10px;

    font-family: var(--serif);
    font-size: clamp(48px, 6vw, 82px);
    font-weight: 400;

    line-height: .95;
}

.intro h2 em,
.section-heading h2 span,
.about h2 span,
.contact h2 span {
    font-family: var(--script);
    font-style: normal;
    color: var(--sage);
}

.intro > p:last-child {
    max-width: 620px;

    margin: 30px auto 0;

    color: #75685d;
    font-size: 16px;
}


/* =========================
   SERVICES
   ========================= */

.services {
    padding: 120px 8vw;

    background: var(--warm-white);
}

.section-heading {
    margin-bottom: 70px;
}

.section-heading h2 {
    max-width: 720px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;

    background: #d9d0c4;
}

.service-card {
    min-height: 330px;

    padding: 45px;

    background: var(--warm-white);

    transition: transform .3s ease;
}

.service-card:hover {
    transform: translateY(-6px);
}

.service-number {
    font-family: var(--serif);
    font-size: 15px;
    color: var(--sage);
}

.service-card h3 {
    margin-top: 70px;

    font-family: var(--serif);
    font-size: 34px;
    font-weight: 500;
}

.service-card p {
    margin-top: 15px;

    color: #75685d;
    font-size: 14px;
}


/* =========================
   WORK
   ========================= */

.work {
    padding: 140px 8vw;
    background: var(--cream);
}

.work-feature {
    display: grid;
    grid-template-columns: 1.3fr .7fr;
    gap: 80px;

    align-items: center;
}

.work-image {
    height: 650px;
    overflow: hidden;
}

.work-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.work-info h3 {
    margin-top: 15px;

    font-family: var(--serif);
    font-size: 56px;
    font-weight: 400;
    line-height: 1;
}

.work-info > p:not(.script) {
    margin-top: 25px;

    color: #75685d;
    font-size: 15px;
    line-height: 1.8;
}

.text-link {
    display: inline-block;

    margin-top: 30px;

    padding-bottom: 6px;

    border-bottom: 1px solid var(--brown);

    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}


/* =========================
   ABOUT
   ========================= */

.about {
    min-height: 650px;

    display: flex;
    align-items: center;

    padding: 120px 12vw;

    background: var(--brown);
    color: var(--warm-white);
}

.about-content {
    max-width: 760px;
}

.about h2 {
    margin-bottom: 35px;
}

.about-content > p:not(.script) {
    max-width: 650px;

    margin-top: 18px;

    color: #ddd2c6;
    font-size: 16px;
}


/* =========================
   CONTACT
   ========================= */

.contact {
    padding: 150px 8vw;

    text-align: center;

    background: var(--warm-white);
}

.contact h2 {
    max-width: 850px;

    margin: 15px auto 40px;
}

.contact .button {
    background: var(--brown);
    color: white;
}


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

footer {
    padding: 40px 7vw;

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

    background: var(--dark-brown);
    color: var(--warm-white);

    font-size: 11px;
}

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

.footer-brand .brand-mark {
    width: 38px;
    height: 38px;

    font-size: 16px;
}

.footer-brand strong {
    display: block;

    font-family: var(--serif);
    font-size: 15px;
    letter-spacing: 2px;
}

.footer-brand small {
    display: block;

    margin-top: 3px;

    color: #b9aca0;
    font-size: 8px;
    letter-spacing: 1px;
}


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

@media (max-width: 800px) {

    .site-header {
        padding: 22px 6vw;
    }

    .nav {
        display: none;
    }

    .hero-content {
        margin-left: 7vw;
        padding-top: 100px;
    }

    .hero h1 {
        font-size: clamp(55px, 15vw, 85px);
        letter-spacing: -2px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: flex-start;
    }

    .intro,
    .services,
    .work,
    .contact {
        padding: 90px 7vw;
    }

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

    .work-feature {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .work-image {
        height: 500px;
    }

    .work-info h3 {
        font-size: 48px;
    }

    .about {
        padding: 90px 7vw;
    }

    footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
}