/* =========================================================
   JUST NUTS - CONTACT PAGE
   Responsive / Desktop + Mobile
========================================================= */

:root {
    --contact-brown: #603e18;
    --contact-dark: #24170d;
    --contact-gold: #b5852c;
    --contact-gold-light: #d8b36b;
    --contact-cream: #f7f2e9;
    --contact-text: #514940;
    --contact-white: #ffffff;
    --brand-justnuts: #f2ea28;
    --jn-brown: #603e18;
}


/* =========================================================
   RESET
========================================================= */

.contact-page,
.contact-page * {
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.contact-page {
    width: 100%;
    overflow: hidden;
    color: var(--contact-text);
    background: #fff;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.contact-page img {
    display: block;
    max-width: 100%;
}

.contact-page h1,
.contact-page h2,
.contact-page h3,
.contact-page p {
    margin-top: 0;
}


/* =========================================================
   HERO
========================================================= */

.contact-hero {
    position: relative;

    min-height: 590px;

    padding: 110px 0 80px;

    display: flex;
    align-items: center;

    background: var(--contact-cream);

    overflow: hidden;
}

.contact-hero-content {
    position: relative;
    z-index: 5;

    max-width: 850px;

    margin: 0 auto;

    text-align: center;
}

.contact-hero .section-number {
    display: block;

    margin-bottom: 12px;

    color: var(--contact-gold);

    font-size: 13px;
    font-weight: 700;

    letter-spacing: .2em;
}

.contact-hero .eyebrow {
    display: block;

    margin-bottom: 18px;

    color: var(--contact-gold);

    font-size: 12px;
    font-weight: 700;

    letter-spacing: .22em;

    text-transform: uppercase;
}

.contact-hero h1 {
    margin-bottom: 0;

    color: var(--contact-brown);

    font-size: clamp(58px, 8vw, 100px);

    font-weight: 400;

    line-height: .95;

    letter-spacing: -.055em;
}

.contact-hero h1 strong {
    font-weight: 700;
}

.contact-hero p {
    max-width: 620px;

    margin: 32px auto 0;

    color: var(--contact-text);

    font-size: 17px;

    line-height: 1.8;
}


/* =========================================================
   HERO DECORATION
========================================================= */

.contact-shape {
    position: absolute;

    border-radius: 50%;

    pointer-events: none;
}

.contact-shape-1 {
    width: 250px;
    height: 250px;

    left: -120px;
    top: 80px;

    background: #f4ea28;

    opacity: .9;
}

.contact-shape-2 {
    width: 90px;
    height: 90px;

    right: 12%;
    top: 70px;

    background: #f4ea28;
}

.contact-dots {
    position: absolute;

    width: 150px;
    height: 150px;

    left: 8%;
    bottom: 45px;

    background-image:
        radial-gradient(
            var(--contact-gold) 1.2px,
            transparent 1.2px
        );

    background-size: 14px 14px;

    opacity: .25;
}

.contact-hero-circle {
    position: absolute;

    width: 500px;
    height: 500px;

    right: -230px;
    bottom: -330px;

    border: 1px solid rgba(181, 133, 44, .25);

    border-radius: 50%;
}


/* =========================================================
   CONTACT SECTION
========================================================= */

.contact-section {
    padding: 120px 0;

    background: #fff;
}


/* =========================================================
   CONTACT INFO
========================================================= */

.contact-info {
    max-width: 520px;
}

.contact-info .eyebrow {
    display: block;

    margin-bottom: 18px;

    color: var(--contact-gold);

    font-size: 12px;
    font-weight: 700;

    letter-spacing: .22em;
}

.contact-info h2 {
    margin-bottom: 30px;

    color: var(--contact-brown);

    font-size: clamp(45px, 5vw, 68px);

    font-weight: 500;

    line-height: .98;

    letter-spacing: -.045em;
}

.contact-info h2 span {
    color: var(--contact-gold);
}

.contact-intro {
    max-width: 500px;

    margin-bottom: 42px;

    color: #70675e;

    font-size: 16px;

    line-height: 1.9;
}


/* =========================================================
   CONTACT ITEMS
========================================================= */

.contact-item {
    display: flex;

    align-items: center;

    gap: 18px;

    padding: 20px 0;

    border-bottom: 1px solid rgba(96, 62, 24, .12);

    color: inherit;

    text-decoration: none;

    transition:
        padding-left .3s ease,
        color .3s ease;
}

.contact-item:hover {
    padding-left: 8px;

    color: var(--contact-gold);
}

.contact-icon {
    width: 50px;
    height: 50px;

    flex: 0 0 50px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: var(--contact-cream);

    color: var(--contact-gold);

    font-size: 18px;
}

.contact-item small {
    display: block;

    margin-bottom: 4px;

    color: #9a9085;

    font-size: 10px;
    font-weight: 700;

    letter-spacing: .18em;
}

.contact-item strong {
    display: block;

    color: var(--contact-brown);

    font-size: 15px;

    font-weight: 600;
}

.contact-note {
    margin-top: 45px;

    padding-left: 20px;

    border-left: 2px solid var(--contact-gold);
}

.contact-note span {
    color: var(--contact-brown);

    font-size: 12px;
    font-weight: 700;

    letter-spacing: .15em;
}

.contact-note p {
    margin-top: 5px;

    color: #91877d;

    font-size: 12px;

    letter-spacing: .08em;
}


/* =========================================================
   FORM CARD
========================================================= */

.contact-form-card {
    position: relative;

    padding: 55px;

    background: var(--contact-cream);

    border-radius: 4px;

    overflow: hidden;
}

.form-number {
    position: absolute;

    top: 25px;
    right: 30px;

    color: rgba(96, 62, 24, .12);

    font-size: 60px;

    font-weight: 700;
}

.contact-form-card h3 {
    position: relative;

    margin-bottom: 12px;

    color: var(--contact-brown);

    font-size: 34px;

    font-weight: 500;

    letter-spacing: -.03em;
}

.contact-form-card > p {
    position: relative;

    margin-bottom: 38px;

    color: #766d63;

    font-size: 14px;

    line-height: 1.7;
}


/* =========================================================
   FORM ELEMENTS
========================================================= */

.contact-form-card label {
    display: block;

    margin-bottom: 9px;

    color: var(--contact-brown);

    font-size: 11px;
    font-weight: 700;

    letter-spacing: .12em;

    text-transform: uppercase;
}

.contact-form-card input,
.contact-form-card textarea {
    width: 100%;

    padding: 14px 0;

    background: transparent;

    border: 0;

    border-bottom: 1px solid rgba(96, 62, 24, .25);

    border-radius: 0;

    outline: none;

    color: var(--contact-brown);

    font-family: inherit;

    font-size: 15px;

    transition:
        border-color .25s ease,
        padding-left .25s ease;
}

.contact-form-card textarea {
    min-height: 130px;

    resize: vertical;
}

.contact-form-card input::placeholder,
.contact-form-card textarea::placeholder {
    color: #a49a8f;
}

.contact-form-card input:focus,
.contact-form-card textarea:focus {
    border-color: var(--contact-gold);

    padding-left: 5px;
}


/* =========================================================
   SUBMIT BUTTON
========================================================= */

.contact-submit {
    display: inline-flex;

    align-items: center;

    gap: 14px;

    padding: 15px 24px;

    border: 0;

    background: var(--contact-brown);

    color: #fff;

    font-family: inherit;

    font-size: 13px;

    font-weight: 600;

    cursor: pointer;

    transition:
        gap .3s ease,
        background .3s ease,
        transform .3s ease;
}

.contact-submit:hover {
    gap: 20px;

    background: var(--contact-gold);

    transform: translateY(-2px);
}


/* =========================================================
   CTA
========================================================= */

.contact-cta {
    position: relative;

    padding: 130px 0;

    background: var(--contact-brown);

    overflow: hidden;
}

.contact-cta-content {
    position: relative;

    z-index: 2;

    max-width: 800px;
}

.contact-cta .eyebrow {
    display: block;

    margin-bottom: 18px;

    color: var(--contact-gold-light);

    font-size: 12px;
    font-weight: 700;

    letter-spacing: .22em;
}

.contact-cta h2 {
    margin-bottom: 28px;

    color: #f5e8d3;

    font-size: clamp(50px, 6vw, 78px);

    font-weight: 500;

    line-height: .98;

    letter-spacing: -.045em;
}

.contact-cta h2 span {
    color: var(--contact-gold-light);
}

.contact-cta p {
    max-width: 570px;

    margin-bottom: 35px;

    color: rgba(255,255,255,.75);

    font-size: 16px;

    line-height: 1.9;
}

.contact-button {
    display: inline-flex;

    align-items: center;

    gap: 14px;

    padding: 14px 22px;

    background: var(--brand-justnuts);

    color: var(--contact-dark);

    text-decoration: none;

    font-size: 13px;

    font-weight: 600;

    transition: .3s ease;
}

.contact-button:hover {
    gap: 20px;

    background: var(--contact-gold-light);

    color: var(--contact-brown);
}

.contact-cta-circle {
    position: absolute;

    width: 620px;
    height: 620px;

    right: -270px;
    top: 50%;

    transform: translateY(-50%);

    border: 1px solid rgba(216,179,107,.22);

    border-radius: 50%;
}


/* =========================================================
   SCROLL ANIMATIONS
========================================================= */

.reveal,
.reveal-left,
.reveal-right {
    opacity: 0;

    transition:
        opacity .8s ease,
        transform .8s ease;
}

.reveal {
    transform: translateY(45px);
}

.reveal-left {
    transform: translateX(-60px);
}

.reveal-right {
    transform: translateX(60px);
}

.reveal.show,
.reveal-left.show,
.reveal-right.show {
    opacity: 1;

    transform: translate(0, 0);
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 991.98px) {

    .contact-hero {
        min-height: 520px;

        padding-top: 90px;
    }

    .contact-section {
        padding: 90px 0;
    }

    .contact-form-card {
        padding: 40px;
    }

    .contact-cta {
        padding: 100px 0;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767.98px) {

    .contact-hero {
        min-height: 480px;

        padding:
            65px 20px
            60px;
    }

    .contact-hero h1 {
        font-size: clamp(48px, 13vw, 62px);
    }

    .contact-hero p {
        margin-top: 25px;

        font-size: 15px;

        line-height: 1.75;
    }

    .contact-shape-1 {
        width: 150px;
        height: 150px;

        left: -90px;
        top: 90px;
    }

    .contact-shape-2 {
        width: 55px;
        height: 55px;

        right: 7%;
        top: 70px;
    }

    .contact-dots {
        width: 90px;
        height: 90px;

        left: 3%;
        bottom: 45px;

        background-size: 11px 11px;
    }

    .contact-hero-circle {
        width: 300px;
        height: 300px;

        right: -180px;
        bottom: -200px;
    }


    /* CONTACT */

    .contact-section {
        padding: 70px 20px;
    }

    .contact-info {
        max-width: none;
    }

    .contact-info h2 {
        font-size: clamp(42px, 11vw, 55px);

        margin-bottom: 22px;
    }

    .contact-intro {
        font-size: 15px;

        line-height: 1.8;

        margin-bottom: 30px;
    }

    .contact-item {
        gap: 14px;

        padding: 16px 0;
    }

    .contact-icon {
        width: 44px;
        height: 44px;

        flex-basis: 44px;

        font-size: 16px;
    }

    .contact-item strong {
        font-size: 13px;
    }

    .contact-note {
        margin-top: 30px;
    }


    /* FORM */

    .contact-form-card {
        padding: 35px 22px;
    }

    .form-number {
        top: 18px;
        right: 20px;

        font-size: 45px;
    }

    .contact-form-card h3 {
        font-size: 28px;
    }

    .contact-form-card > p {
        margin-bottom: 30px;
    }


    /* CTA */

    .contact-cta {
        padding: 80px 20px;
    }

    .contact-cta h2 {
        font-size: clamp(45px, 12vw, 58px);
    }

    .contact-cta p {
        font-size: 15px;
    }

    .contact-cta-circle {
        width: 350px;
        height: 350px;

        right: -200px;
    }


    /* MOBILE ANIMATION */

    .reveal-left,
    .reveal-right {
        transform: translateY(30px);
    }

}


/* =========================================================
   VERY SMALL PHONES
========================================================= */

@media (max-width: 380px) {

    .contact-hero {
        padding-left: 15px;
        padding-right: 15px;
    }

    .contact-section {
        padding-left: 15px;
        padding-right: 15px;
    }

    .contact-form-card {
        padding: 30px 18px;
    }

    .contact-hero h1 {
        font-size: 45px;
    }

}

.form-success {
    display: none;
    align-items: flex-start;
    gap: 12px;
    margin-top: 20px;
    padding: 16px 18px;
    border-radius: 10px;
    background: #f7f2e9;
    color: #603e18;
    border: 1px solid #d8b36b;
}

.form-success i {
    font-size: 22px;
    margin-top: 2px;
}

.form-success strong {
    display: block;
    font-size: 16px;
    margin-bottom: 3px;
}

.form-success p {
    margin: 0;
    font-size: 14px;
}