
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,400;1,400&display=swap');


/* =========================================
   01. GLOBAL SETTINGS
========================================= */

:root {
    --ink: #292d29;
    --cream: #f4f1eb;
    --gold: #a88b68;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font-family: 'DM Sans', sans-serif;
}

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

button,
input,
textarea {
    font: inherit;
}


/* =========================================
   02. HEADER & NAVIGATION
========================================= */

header {
    position: absolute;
    z-index: 3;
    top: 0;
    width: 100%;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 7%;
    color: white;
}

/* =========================================
   MADISON LOGO - HEADER & FOOTER
========================================= */

.logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.logo img {
    display: block;
    width: 260px;
    height: auto;
}

nav {
    display: flex;
    gap: 35px;
}

nav a,
.eyebrow,
small,
.cta,
button,
.project-link {
    font-size: 11px;
    letter-spacing: 2px;
    font-weight: 700;
}

/* Larger header navigation text */

header nav a {
    font-size: 16px;
    letter-spacing: 2px;
    font-weight: 700;
}

.mobile {
    display: none;
}


/* =========================================
   03. HERO SECTION
========================================= */

.hero {
    height: 90vh;
    min-height: 680px;

    background:
        linear-gradient(
            90deg,
            rgba(15, 22, 22, 0.77),
            rgba(15, 22, 22, 0.16)
        ),
        #696158 url('images/hero.webp') center/cover;

    display: flex;
    align-items: center;
    color: white;
}

.hero-inner {
    margin-left: 10%;
    max-width: 780px;
}

.hero h1,
h2 {
    font: 400 clamp(44px, 6vw, 90px)/1.13
        'Playfair Display', Georgia, serif;

    letter-spacing: -2px;
}

.hero h1 {
    margin: 24px 0;
}

.hero p {
    max-width: 560px;
    line-height: 1.85;
}


/* =========================================
   04. BUTTONS & CALL TO ACTION
========================================= */

.cta {
    display: inline-block;
    border: 1px solid currentColor;
    padding: 20px 28px;
    margin-top: 24px;
}

.cta:hover {
    background: white;
    color: #292d29;
}


/* =========================================
   05. COMPANY STATISTICS
========================================= */

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 65px 7%;
    background: #2a302d;
    color: white;
    text-align: center;
}

.stats div {
    border-right: 1px solid #59605a;
}

.stats div:last-child {
    border: 0;
}

.stats strong {
    display: block;
    font: 400 65px 'Playfair Display', serif;
}

.stats small {
    display: block;
    margin-top: 12px;
}


/* =========================================
   06. GENERAL SECTIONS
========================================= */

.section {
    padding: 110px 7%;
}

.section h2 {
    margin: 20px 0 50px;
}

.eyebrow {
    color: var(--gold);
}

.hero .eyebrow {
    color: #ddd;
}


/* =========================================
   07. ABOUT SECTION
========================================= */

.about {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
}

.about h2 {
    margin-top: 0;
}

.about p {
    font-size: 16px;
    line-height: 2;
    max-width: 780px;
    color: #62635e;
}


/* =========================================
   08. LEADERSHIP SECTION
========================================= */

.leaders {
    background: #e8e3d9;
}

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

.portrait {
    width: 280px;
    height: 280px;

    border-radius: 50%;
    border: 3px solid #D0C6BA;

    background-color: #b8b5ae;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;

    margin: 0 auto 25px;
}

.people-grid small {
    display: block;
    color: var(--gold);
    margin-top: 22px;
}

.people-grid h3 {
    letter-spacing: 1px;
    font-size: 18px;
}


/* =========================================
   09. EXPERTISE SECTION
========================================= */

.expertise {
    background: #faf8f4;
}

.service {
    display: grid;
    grid-template-columns: 65px 1fr 1.25fr;
    gap: 30px;
    border-top: 1px solid #c7c5be;
    padding: 35px 0;
}

.service:last-child {
    border-bottom: 1px solid #c7c5be;
}

.service > span {
    color: var(--gold);
}

.service h3 {
    font: 400 29px 'Playfair Display', serif;
    margin: 0;
}

.service p {
    line-height: 1.85;
    color: #656760;
    margin: 0;
}


/* =========================================
   10. PROJECTS SECTION
========================================= */

.projects {
    background: #e8e3da;
}

.project-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 55px 28px;
}

.project-grid article:first-child {
    grid-column: span 2;
}

.project-image {
    height: 330px;
    background: #b4afa5 center/cover;
}

.project-grid article:first-child .project-image {
    height: 490px;
}

.project-grid h3 {
    font: 400 26px 'Playfair Display', serif;
    margin: 20px 0 5px;
}

.project-grid p {
    color: #646660;
}

.project-link {
    display: inline-block;
    border-bottom: 1px solid #777;
    padding-bottom: 8px;
    margin-top: 12px;
    color: #555;
}

.coming {
    font-size: 13px;
    color: #777;
    margin-top: 40px;
}

.dark {
    color: #333;
}


/* =========================================
   11. AFFILIATED COMPANIES
========================================= */

.partners {
    background: #f8f6f1;
}

.partners > div {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.partners strong {
    font: 500 17px Georgia, serif;
    text-align: center;
    padding: 25px 10px;
    border: 1px solid #d9d4cb;
}


/* =========================================
   12. CONTACT SECTION
========================================= */

.contact {
    background: #303631;
    color: white;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10%;
}

.contact form {
    display: flex;
    flex-direction: column;
    gap: 23px;
}

.contact label {
    font-size: 11px;
    letter-spacing: 2px;
}

.contact input,
.contact textarea {
    display: block;
    background: transparent;
    border: 0;
    border-bottom: 1px solid #949a93;
    color: white;
    width: 100%;
    padding: 16px 0;
    outline: none;
}

.contact button {
    background: #eee9e0;
    color: #242924;
    border: 0;
    padding: 20px;
    cursor: pointer;
}


/* =========================================
   13. FOOTER
========================================= */

footer {
    background: #202521;
    color: white;
    padding: 55px 7%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

footer small {
    font-size: 9px;
    color: #a8aaa6;
}


/* =========================================
   14. MOBILE RESPONSIVE DESIGN
   Screens 800px and smaller
========================================= */

@media (max-width: 800px) {

    /* Header */

    header {
        height: 75px;
    }

    /* Mobile Logo */

    .logo img {
        width: 190px;
    }

    .mobile {
        display: block;
        border: 0;
        background: transparent;
        color: white;
        font-size: 26px;
    }

    header nav {
        display: none;
        position: absolute;
        top: 75px;
        left: 0;
        right: 0;
        background: #292e2b;
        padding: 30px;
        flex-direction: column;
    }

    header nav.shown {
        display: flex;
    }


    /* Hero */

    .hero {
        min-height: 650px;
    }

    .hero-inner {
        margin: 0 7%;
    }

    .hero h1 {
        font-size: 50px;
    }


    /* General Sections */

    .section {
        padding: 70px 7%;
    }


    /* Statistics */

    .stats {
        padding: 40px 5%;
    }

    .stats strong {
        font-size: 35px;
    }

    .stats small {
        font-size: 8px;
    }


    /* About & Contact */

    .about,
    .contact {
        grid-template-columns: 1fr;
        gap: 20px;
    }


    /* Leadership */

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



    /* Expertise */

    .service {
        grid-template-columns: 35px 1fr;
        gap: 12px;
    }

    .service p {
        grid-column: 2;
    }


    /* Projects */

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

    .project-grid article:first-child {
        grid-column: auto;
    }

    .project-grid article:first-child .project-image,
    .project-image {
        height: 300px;
    }


    /* Affiliated Companies */

    .partners > div {
        grid-template-columns: 1fr 1fr;
    }


    /* Footer */

    footer {
        flex-direction: column;
    }

    footer nav {
        flex-wrap: wrap;
        justify-content: center;
    }

}
