/* ========================================
   STORM WITHIN
   CONTACT PAGE
======================================== */

:root {
    --lemon: #F7E493;
    --ruby: #570300;
    --green: #B9C29A;
    --cream: #FFFDF6;

    --text: #570300;

    --max-width: 1200px;
}


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

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


html {
    scroll-behavior: smooth;
}


body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: var(--lemon);
    color: var(--text);
    line-height: 1.65;
}


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


a {
    color: inherit;
}


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


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


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

h1,
h2 {
    font-weight: 800;
    line-height: 1.05;
}


h1 {
    font-size: clamp(3rem, 7vw, 6.25rem);
    letter-spacing: -0.05em;
    margin-bottom: 2rem;
}


h2 {
    font-size: clamp(2.2rem, 5vw, 4.2rem);
    letter-spacing: -0.04em;
    margin-bottom: 2rem;
}


p {
    font-size: 1.1rem;
    margin-bottom: 1.3rem;
}


.eyebrow {
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    margin-bottom: 1.4rem;
}


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

.site-header {
    background-color: var(--ruby);
    color: var(--lemon);
    padding: 1rem 0;
}


.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
}


.logo-link {
    display: block;
    flex-shrink: 0;
}


.site-logo {
    width: clamp(120px, 18vw, 220px);
    height: auto;
    object-fit: contain;
}


/* ========================================
   NAVIGATION
======================================== */

.main-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: clamp(0.8rem, 2vw, 2rem);
}


.main-nav a {
    position: relative;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 700;
}


.main-nav a::after {
    content: "";
    position: absolute;

    left: 0;
    bottom: -6px;

    width: 0;
    height: 2px;

    background-color: var(--lemon);

    transition: width 0.25s ease;
}


.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}


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

.contact-hero {
    padding: 7rem 0;
}


.hero-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1.25fr)
        minmax(320px, 0.75fr);

    gap: clamp(3rem, 5vw, 5rem);

    align-items: stretch;
}


.hero-content {
    min-width: 0;
    max-width: 760px;

    container-type: inline-size;
}


.contact-hero h1 {
    font-size: clamp(3rem, 10cqi, 6.25rem);
    line-height: 1.02;
}


.hero-intro {
    font-size: clamp(1.2rem, 2vw, 1.45rem);
}


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

.hero-card {
    width: 100%;
    min-width: 0;

    background-color: var(--green);

    border-radius: 0 100px 0 100px;

    padding: clamp(2rem, 5vw, 4rem);

    display: flex;
    flex-direction: column;
    justify-content: center;

    container-type: inline-size;
}


.hero-card-small {
    font-size: clamp(0.75rem, 2.5cqi, 1rem);

    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.16em;

    margin-bottom: 2rem;
}


.hero-card-big {
    font-size: clamp(2.2rem, 9.5cqi, 5rem);

    font-weight: 800;

    line-height: 1.08;
    letter-spacing: -0.035em;

    margin: 0;
}


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

.contact-section {
    background-color: var(--cream);
    padding: 8rem 0;
}


.contact-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 0.8fr)
        minmax(0, 1.2fr);

    gap: clamp(3rem, 7vw, 7rem);

    align-items: start;
}


.contact-intro {
    max-width: 520px;
}


/* ========================================
   PRIVACY NOTE
======================================== */

.privacy-note {
    margin-top: 3rem;

    padding: 2rem;

    background-color: var(--green);

    border-radius: 0 45px 0 45px;
}


.privacy-note strong {
    display: block;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}


.privacy-note p {
    font-size: 0.95rem;
}


/* ========================================
   FORM
======================================== */

.form-wrapper {
    width: 100%;
}


.contact-form {
    display: grid;
    gap: 1.7rem;
}


.form-group {
    display: grid;
    gap: 0.6rem;
}


.form-group label {
    font-weight: 800;
}


.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;

    border: 2px solid var(--ruby);

    background-color: var(--cream);
    color: var(--ruby);

    padding: 1rem 1.1rem;

    border-radius: 18px;

    outline: none;

    transition:
        background-color 0.2s ease,
        box-shadow 0.2s ease;
}


.form-group textarea {
    resize: vertical;
    min-height: 180px;
}


.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    background-color: var(--lemon);

    box-shadow: 0 0 0 4px rgba(87, 3, 0, 0.12);
}


/* ========================================
   CHECKBOX
======================================== */

.form-check {
    display: grid;

    grid-template-columns: auto 1fr;

    gap: 0.8rem;

    align-items: start;
}


.form-check input {
    width: 20px;
    height: 20px;
    margin-top: 0.25rem;

    accent-color: var(--ruby);
}


.form-check label {
    font-size: 0.95rem;
}


.form-check a {
    font-weight: 800;
    text-underline-offset: 4px;
}


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

.button {
    display: inline-block;

    border: 0;

    padding: 1rem 1.7rem;

    border-radius: 100px;

    text-decoration: none;
    font-weight: 800;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}


.button:hover {
    transform: translateY(-3px);
    opacity: 0.88;
}


.button-primary {
    justify-self: start;

    background-color: var(--ruby);
    color: var(--lemon);
}


.button-secondary {
    margin-top: 1rem;

    background-color: var(--lemon);
    color: var(--ruby);
}


/* ========================================
   ELSEWHERE
======================================== */

.elsewhere-section {
    background-color: var(--ruby);
    color: var(--lemon);

    padding: 8rem 0;

    text-align: center;
}


.elsewhere-inner {
    max-width: 800px;
}


.elsewhere-inner p {
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}


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

.site-footer {
    background-color: var(--lemon);
    color: var(--ruby);

    padding: 4rem 0;
}


.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;

    text-align: center;
}


.footer-logo-link {
    margin-bottom: 2rem;
}


.footer-logo {
    width: clamp(130px, 20vw, 230px);
}


.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;

    gap: 1rem 2rem;

    margin-top: 1.5rem;
}


.footer-nav a {
    font-size: 0.9rem;
    font-weight: 700;
}


.copyright {
    margin-top: 2rem;

    font-size: 0.85rem;
    opacity: 0.7;
}


/* ========================================
   TABLET
======================================== */

@media (max-width: 900px) {

    .header-inner {
        flex-direction: column;
        gap: 1.3rem;
    }


    .main-nav {
        justify-content: center;
    }


    .site-logo {
        width: clamp(140px, 30vw, 200px);
    }


    .hero-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }


    .hero-card {
        max-width: 650px;
        border-radius: 0 80px 0 80px;
    }

}


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

@media (max-width: 600px) {

    .container {
        width: min(88%, var(--max-width));
    }


    .contact-hero,
    .contact-section,
    .elsewhere-section {
        padding: 5rem 0;
    }


    .site-logo {
        width: min(55vw, 180px);
    }


    .main-nav {
        gap: 0.6rem 1rem;
    }


    .main-nav a {
        font-size: 0.82rem;
    }


    .contact-hero h1 {
        font-size: clamp(2.75rem, 12cqi, 4.5rem);
    }


    .hero-card {
        padding: 2rem;
        border-radius: 0 55px 0 55px;
    }


    .privacy-note {
        padding: 1.5rem;
        border-radius: 0 35px 0 35px;
    }


    .button-primary {
        width: 100%;
        text-align: center;
    }


    .footer-nav {
        flex-direction: column;
        gap: 0.7rem;
    }

}