/* =========================================================
   AVERRA BUILD
   base.css
   ========================================================= */


/* ---------- GOOGLE FONT ---------- */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600&display=swap');


/* ---------- VARIABLES ---------- */

:root {
    --charcoal: #191817;
    --off-white: #EDE9E6;
    --copper: #8DBADC;

    /* Muted architectural blue */
    --blue: #315D73;
    --blue-light: #8DBADC;

    --white: #FFFFFF;

    --text-light: rgba(237, 233, 230, 0.92);
    --text-muted: rgba(237, 233, 230, 0.68);

    --border-light: rgba(237, 233, 230, 0.18);
    --border-dark: rgba(25, 24, 23, 0.16);

    --header-height: 110px;

    --page-padding: clamp(24px, 5vw, 80px);

    --max-width: 1600px;

    --transition: 300ms cubic-bezier(0.22, 1, 0.36, 1);
}


/* ---------- RESET ---------- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    background: var(--charcoal);
    color: var(--off-white);

    font-family: "Manrope", "Helvetica Neue", Arial, sans-serif;
    font-weight: 400;

    -webkit-font-smoothing: antialiased;
}

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

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

button {
    font: inherit;
}

h1,
h2,
h3,
h4,
p {
    margin-top: 0;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}


/* ---------- TYPOGRAPHY ---------- */

h1,
h2,
h3 {
    font-weight: 400;
    letter-spacing: -0.035em;
}

h1 {
    font-size: clamp(3.5rem, 8vw, 9rem);
    line-height: 0.92;
}

h2 {
    font-size: clamp(2.4rem, 5vw, 5.5rem);
    line-height: 1;
}

h3 {
    font-size: clamp(1.5rem, 2.5vw, 2.4rem);
}

p {
    font-size: clamp(1rem, 1.15vw, 1.15rem);
    line-height: 1.7;
}

.eyebrow {
    display: block;

    margin-bottom: 20px;

    color: var(--copper);

    font-size: 0.72rem;
    font-weight: 500;

    letter-spacing: 0.22em;
    text-transform: uppercase;
}


/* ---------- LAYOUT ---------- */

.container {
    width: 100%;
    max-width: var(--max-width);

    margin-inline: auto;

    padding-inline: var(--page-padding);
}

.section {
    padding-block: clamp(90px, 12vw, 180px);
}


/* ---------- HEADER ---------- */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;

    width: 100%;
    height: var(--header-height);

    transition:
        background var(--transition),
        backdrop-filter var(--transition),
        border-color var(--transition);
}

.header-inner {
    position: relative;

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

    width: 100%;
    height: 100%;

    padding-inline: var(--page-padding);
}


/* LOGO */

.site-logo {
    position: relative;
    left: auto;
    top: auto;

    z-index: 1002;

    transform: none;
}


.site-logo img {
    display: block;

    width: 250px;
    height: auto;
}


/* NAV */

.desktop-nav {
    margin-left: auto;
}


/* ---------- DESKTOP NAV ---------- */

.desktop-nav ul {
    display: flex;
    align-items: center;

    gap: clamp(24px, 3vw, 46px);
}

.desktop-nav a {
    position: relative;

    padding-block: 8px;

    font-size: 0.76rem;
    font-weight: 500;

    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.desktop-nav a::after {
    content: "";

    position: absolute;

    bottom: 0;
    left: 0;

    width: 0;
    height: 1px;

    background: var(--copper);

    transition: width var(--transition);
}

.desktop-nav a:hover::after {
    width: 100%;
}


/* ---------- BUTTONS ---------- */

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

    min-height: 50px;

    padding: 0 26px;

    border: 1px solid var(--copper);

    color: var(--off-white);

    font-size: 0.72rem;
    font-weight: 500;

    letter-spacing: 0.16em;
    text-transform: uppercase;

    transition:
        background var(--transition),
        color var(--transition);
}

.button:hover {
    background: var(--copper);
    color: var(--charcoal);
}

.button-blue {
    border-color: var(--blue);
}

.button-blue:hover {
    background: var(--blue);
    color: var(--off-white);
}


/* ---------- MOBILE MENU ---------- */

.menu-button {
    display: none;

    position: relative;
    z-index: 1002;

    width: 36px;
    height: 36px;

    padding: 0;

    border: 0;
    background: transparent;

    cursor: pointer;
}

.menu-button span {
    position: absolute;

    left: 4px;

    width: 28px;
    height: 1px;

    background: var(--off-white);

    transition: var(--transition);
}

.menu-button span:first-child {
    top: 13px;
}

.menu-button span:last-child {
    top: 22px;
}

.menu-button.open span:first-child {
    top: 18px;
    transform: rotate(45deg);
}

.menu-button.open span:last-child {
    top: 18px;
    transform: rotate(-45deg);
}

.mobile-nav {
    position: fixed;

    inset: 0;

    z-index: 1001;

    display: flex;
    align-items: center;

    padding: var(--page-padding);

    background: var(--charcoal);

    opacity: 0;
    visibility: hidden;

    transition:
        opacity var(--transition),
        visibility var(--transition);
}

.mobile-nav.open {
    opacity: 1;
    visibility: visible;
}

.mobile-nav ul {
    display: flex;
    flex-direction: column;

    gap: 24px;
}

.mobile-nav a {
    font-size: clamp(2.2rem, 10vw, 4rem);
    font-weight: 300;

    letter-spacing: -0.04em;
}


/* ---------- FOOTER ---------- */

.site-footer {
    border-top: 1px solid var(--border-light);

    padding: 60px var(--page-padding) 32px;
}

.footer-grid {
    display: grid;

    grid-template-columns: 2fr 1fr 1fr;

    gap: 60px;

    max-width: var(--max-width);

    margin: auto;
}

.footer-logo {
    width: 180px;
}

.footer-heading {
    margin-bottom: 16px;

    color: var(--copper);

    font-size: 0.7rem;

    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.footer-links {
    display: flex;
    flex-direction: column;

    gap: 10px;

    color: var(--text-muted);
}

.footer-bottom {
    max-width: var(--max-width);

    margin: 60px auto 0;

    padding-top: 24px;

    border-top: 1px solid var(--border-light);

    color: var(--text-muted);

    font-size: 0.7rem;

    letter-spacing: 0.08em;
}


/* ---------- SCROLL REVEAL ---------- */

.reveal {
    opacity: 0;

    transform: translateY(30px);

    transition:
        opacity 800ms ease,
        transform 800ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}


/* ---------- RESPONSIVE ---------- */

@media (max-width: 850px) {

    :root {
        --header-height: 74px;
    }

    .desktop-nav {
        display: none;
    }

    .menu-button {
        display: block;
    }

    .site-logo img {
        width: 155px;
    }

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

        gap: 45px;
    }
}