/* =========================================================
   FONT
========================================================== */

@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&display=swap");


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

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

html {
    scroll-behavior: smooth;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    font-weight: var(--font-weight-regular);
    color: var(--text-primary);
    background: var(--white);

    line-height: 1.5;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.menu-open {
    overflow: hidden;
}


/* =========================================================
   BASIC ELEMENTS
========================================================== */

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

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

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

button {
    border: 0;
    background: none;
    cursor: pointer;
}

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


/* =========================================================
   TYPOGRAPHY
========================================================== */

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

h1,
h2,
h3,
h4 {
    line-height: 1.08;
}

h1 {
    font-size: clamp(3.25rem, 5.4vw, 5.7rem);
    font-weight: var(--font-weight-black);
    letter-spacing: -0.045em;
}

h2 {
    font-size: clamp(2rem, 3vw, 3.4rem);
    font-weight: var(--font-weight-bold);
    letter-spacing: -0.035em;
}

h3 {
    font-size: clamp(1.4rem, 2vw, 2rem);
    font-weight: var(--font-weight-bold);
}

p {
    font-size: 1rem;
    line-height: 1.6;
}


/* =========================================================
   CONTAINERS
========================================================== */

.container {
    width: min(
        calc(100% - (var(--container-padding) * 2)),
        var(--container-width)
    );

    margin-inline: auto;
}


/* =========================================================
   SECTIONS
========================================================== */

section {
    position: relative;
}

.section-padding {
    padding-block: var(--section-padding);
}


/* =========================================================
   EYEBROW
========================================================== */

.eyebrow {
    margin-bottom: 18px;

    font-size: 0.78rem;
    font-weight: var(--font-weight-bold);

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

.eyebrow.green {
    color: var(--solar-green-active);
}


/* =========================================================
   BUTTONS
========================================================== */

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

    min-height: 52px;

    padding: 0 26px;

    border-radius: var(--radius-pill);

    font-size: 0.92rem;
    font-weight: var(--font-weight-bold);

    transition:
        transform var(--transition-fast),
        box-shadow var(--transition-fast),
        background-color var(--transition-fast),
        border-color var(--transition-fast);
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}


/* Primary blue */

.btn-primary {
    color: var(--white);
    background: var(--crev-blue);

    box-shadow:
        0 8px 22px rgba(42, 53, 123, 0.24);
}

.btn-primary:hover {
    background: #1F2966;

    box-shadow:
        0 12px 28px rgba(42, 53, 123, 0.3);
}


/* Green */

.btn-green {
    color: var(--solar-night);
    background: var(--solar-green);
}

.btn-green:hover {
    background: var(--solar-green-active);
}


/* Outline */

.btn-outline {
    color: var(--crev-blue);

    border: 2px solid var(--crev-blue);

    background:
        rgba(255, 255, 255, 0.75);

    backdrop-filter: blur(6px);
}

.btn-outline:hover {
    color: var(--white);
    background: var(--crev-blue);
}


/* Light */

.btn-light {
    color: var(--crev-blue);
    background: var(--white);

    box-shadow: var(--shadow-sm);
}


/* =========================================================
   TEXT LINKS
========================================================== */

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    color: var(--crev-blue);

    font-size: 0.9rem;
    font-weight: var(--font-weight-bold);

    transition:
        color var(--transition-fast),
        gap var(--transition-fast);
}

.text-link:hover {
    gap: 12px;
    color: var(--solar-green-active);
}


/* =========================================================
   UTILITY
========================================================== */

.text-green {
    color: var(--solar-green);
}

.text-blue {
    color: var(--crev-blue);
}

.bg-dark {
    color: var(--white);
    background: var(--solar-night);
}

.bg-light {
    background: var(--off-white);
}


/* =========================================================
   ACCESSIBILITY
========================================================== */

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--solar-green);
    outline-offset: 4px;
}


/* =========================================================
   SELECTION
========================================================== */

::selection {
    color: var(--solar-night);
    background: var(--solar-green);
}