/* =========================================================
   CONTACTS PAGE
========================================================= */

:root {
    --contacts-green: #246d34;
    --contacts-green-dark: #154923;
    --contacts-green-deep: #0f3d1e;

    --contacts-paper: #fbf8f0;
    --contacts-cream: #f1ecdf;
    --contacts-cream-2: #ece6d7;

    --contacts-text: #22251f;
    --contacts-muted: #686b65;

    --contacts-border:
        rgba(38, 93, 46, 0.14);

    --contacts-shadow:
        0 1.6rem 4rem
        rgba(38, 47, 34, 0.10);
}


/* =========================================================
   PAGE
========================================================= */

.contacts-page {
    position: relative;

    overflow: hidden;

    color: var(--contacts-text);

    background:
        linear-gradient(
            180deg,
            #faf8f2 0%,
            #f4f0e6 100%
        );
}


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


.contacts-page img {
    max-width: 100%;
}


.contacts-page figure {
    margin: 0;
}


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

.contacts-script {
    margin: 0;

    color: var(--contacts-green);

    font-family:
        "Segoe Script",
        "Brush Script MT",
        cursive;

    font-size:
        clamp(1rem, 1.15vw, 1.25rem);

    line-height: 1.3;
}


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

.contacts-hero {
    position: relative;

    min-height:
        clamp(38rem, 50vw, 52rem);

    overflow: hidden;

    background:
        radial-gradient(
            circle at 84% 19%,
            rgba(201, 219, 139, 0.16),
            transparent 29%
        ),
        radial-gradient(
            circle at 15% 84%,
            rgba(51, 118, 58, 0.08),
            transparent 28%
        ),
        linear-gradient(
            135deg,
            #f7f3ea 0%,
            #fffdf8 52%,
            #f0f3e7 100%
        );
}


.contacts-hero-inner {
    width: 100%;

    min-height:
        clamp(38rem, 50vw, 52rem);

    display: grid;

    grid-template-columns:
        minmax(22rem, 0.78fr)
        minmax(34rem, 1.22fr);

    align-items: stretch;
}


/* =========================================================
   LEFT HERO TEXT
========================================================= */

.contacts-hero-copy {
    position: relative;

    z-index: 5;

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

    padding:
        clamp(3rem, 5vw, 5.5rem)
        clamp(2rem, 4.5vw, 5rem);

    background:
        linear-gradient(
            90deg,
            rgba(250, 247, 239, 1) 0%,
            rgba(250, 247, 239, 0.97) 80%,
            rgba(250, 247, 239, 0.25) 100%
        );
}


.contacts-hero-copy .contacts-script {
    margin-bottom: 0.7rem;

    color: #304d32;

    font-size:
        clamp(1rem, 1.15vw, 1.25rem);

    letter-spacing: 0.08em;

    text-transform: uppercase;

    transform: rotate(-2deg);
}


.contacts-hero-title {
    max-width: 9ch;

    margin: 0;

    color: #20231f;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size:
        clamp(4rem, 6.5vw, 7rem);

    font-weight: 700;

    line-height: 0.86;

    letter-spacing: -0.065em;
}


.contacts-hero-title em {
    display: block;

    margin-top: 0.15em;

    color: var(--contacts-green);

    font-style: italic;
    font-weight: 500;
}


/* handwritten underline */

.contacts-hero-line {
    width:
        min(90%, 27rem);

    height: 1.6rem;

    margin:
        0.5rem
        0
        1.8rem;

    border-top:
        2px solid
        rgba(34, 80, 39, 0.75);

    border-radius: 50%;

    transform: rotate(-1deg);
}


.contacts-hero-description {
    max-width: 39ch;

    margin: 0;

    color: #555b54;

    font-size:
        clamp(0.95rem, 1.05vw, 1.05rem);

    line-height: 1.75;
}


/* =========================================================
   DECORATIVE LINE
========================================================= */

.contacts-hero-flourish {
    position: absolute;

    left: 0;
    right: -7rem;
    bottom: 0;

    height:
        clamp(6rem, 10vw, 10rem);

    color:
        rgba(45, 93, 49, 0.72);

    pointer-events: none;
}


.contacts-hero-flourish svg {
    width: 100%;
    height: 100%;
}


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

.contacts-hero-visual {
    position: relative;

    min-width: 0;

    min-height:
        clamp(38rem, 50vw, 52rem);
}


/* =========================================================
   MAIN PHOTO
========================================================= */

.contacts-main-photo {
    position: absolute;

    inset:
        0
        0
        7rem
        0;

    overflow: hidden;
}


.contacts-main-photo::after {
    content: "";

    position: absolute;
    inset: 0;

    pointer-events: none;

    background:
        linear-gradient(
            90deg,
            rgba(249, 246, 238, 0.75) 0%,
            rgba(249, 246, 238, 0.15) 14%,
            transparent 30%
        );
}


.contacts-main-photo img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    object-position: center;

    filter:
        saturate(0.93)
        contrast(0.98);
}


/* =========================================================
   POLAROIDS
========================================================= */

.contacts-polaroid {
    position: absolute;

    z-index: 6;

    padding:
        0.55rem
        0.55rem
        3.4rem;

    background: #fff;

    box-shadow:
        0 1.3rem 3rem
        rgba(42, 43, 33, 0.18);

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
}


.contacts-polaroid:hover {
    box-shadow:
        0 1.8rem 4rem
        rgba(42, 43, 33, 0.23);
}


.contacts-polaroid img {
    width: 100%;

    display: block;

    object-fit: cover;
}


.contacts-polaroid figcaption {
    position: absolute;

    left: 1rem;
    right: 1rem;
    bottom: 0.75rem;

    color: #315c39;

    font-family:
        "Segoe Script",
        "Brush Script MT",
        cursive;

    font-size:
        clamp(0.7rem, 0.85vw, 0.85rem);

    line-height: 1.35;

    text-align: center;
}


/* tape */

.contacts-polaroid-tape {
    position: absolute;

    z-index: 2;

    width: 4.6rem;
    height: 1rem;

    top: -0.55rem;
    left: 50%;

    transform:
        translateX(-50%)
        rotate(-2deg);

    background:
        rgba(221, 202, 163, 0.82);

    box-shadow:
        0 0.2rem 0.4rem
        rgba(88, 72, 43, 0.05);
}


/* child */

.contacts-polaroid-child {
    width:
        clamp(11.5rem, 15.5vw, 15.5rem);

    left: -7%;
    top: 17%;

    transform: rotate(-4deg);
}


.contacts-polaroid-child:hover {
    transform:
        rotate(-2deg)
        translateY(-0.3rem);
}


.contacts-polaroid-child img {
    aspect-ratio: 4 / 5;
}


/* heart */

.contacts-polaroid-heart {
    width:
        clamp(10rem, 13.5vw, 13.5rem);

    left: 23%;
    bottom: 8%;

    transform: rotate(4deg);
}


.contacts-polaroid-heart:hover {
    transform:
        rotate(2deg)
        translateY(-0.3rem);
}


.contacts-polaroid-heart img {
    aspect-ratio: 1 / 1;
}


/* =========================================================
   STATS PAPER
========================================================= */

.contacts-hero-stats {
    position: absolute;

    z-index: 5;

    right: 2.5%;
    bottom: 3%;

    width:
        min(64%, 34rem);

    min-height: 8.6rem;

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    color: white;

    background:
        linear-gradient(
            135deg,
            #164c28,
            #216437
        );

    box-shadow:
        0 1.3rem 3rem
        rgba(25, 66, 31, 0.18);

    clip-path:
        polygon(
            0 2%,
            100% 0,
            99% 94%,
            93% 98%,
            87% 96%,
            79% 100%,
            71% 96%,
            63% 100%,
            55% 97%,
            47% 100%,
            39% 96%,
            30% 100%,
            22% 96%,
            14% 99%,
            7% 95%,
            0 97%
        );
}


.contacts-hero-stats > div {
    position: relative;

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

    padding:
        1.1rem
        1rem
        1.4rem;

    text-align: center;
}


.contacts-hero-stats > div:not(:last-child)::after {
    content: "";

    position: absolute;

    top: 20%;
    right: 0;

    width: 1px;
    height: 60%;

    background:
        rgba(255, 255, 255, 0.18);
}


.contacts-stat-icon {
    margin-bottom: 0.4rem;

    color:
        rgba(255, 255, 255, 0.8);

    font-size: 1.5rem;
}


.contacts-hero-stats strong {
    color: #fff;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size:
        clamp(1.6rem, 2.2vw, 2.15rem);

    line-height: 1;
}


.contacts-hero-stats small {
    margin-top: 0.5rem;

    color:
        rgba(255, 255, 255, 0.72);

    font-size: 0.67rem;

    line-height: 1.4;
}


/* =========================================================
   CONTACTS + FORM AREA
========================================================= */

.contacts-main-section {
    position: relative;

    padding:
        0
        clamp(2rem, 4vw, 4rem)
        clamp(6rem, 8vw, 8rem);

    background:
        linear-gradient(
            180deg,
            #f8f5ed,
            #f4f0e7
        );
}


.contacts-main-grid {
    position: relative;

    width: 100%;

    display: grid;

    grid-template-columns:
        minmax(23rem, 0.83fr)
        minmax(30rem, 1.17fr);

    gap:
        clamp(1.7rem, 2.8vw, 2.8rem);

    align-items: stretch;
}


/* =========================================================
   LEFT CONTACT PANEL
========================================================= */

.contacts-information {
    overflow: hidden;

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

    border:
        1px solid
        rgba(50, 98, 52, 0.13);

    border-radius:
        2rem;

    box-shadow:
        0 1.2rem 3rem
        rgba(43, 47, 34, 0.04);

    backdrop-filter: blur(10px);
}


.contact-card {
    position: relative;

    min-height: 10rem;

    display: grid;

    grid-template-columns:
        auto
        minmax(0, 1fr)
        auto;

    align-items: center;

    gap:
        clamp(1.3rem, 2vw, 2rem);

    padding:
        clamp(1.7rem, 2.5vw, 2.5rem)
        clamp(1.6rem, 2.4vw, 2.4rem);

    transition:
        background 0.3s ease;
}


.contact-card:not(:last-child) {
    border-bottom:
        1px solid
        rgba(49, 99, 51, 0.13);
}


.contact-card:hover {
    background:
        rgba(255, 255, 255, 0.58);
}


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

.contact-card-icon {
    width:
        clamp(3.5rem, 4.2vw, 4.3rem);

    height:
        clamp(3.5rem, 4.2vw, 4.3rem);

    flex-shrink: 0;

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

    color: #fff;

    background:
        linear-gradient(
            145deg,
            #194f2a,
            #2b793a
        );

    border-radius: 50%;

    box-shadow:
        0 0.7rem 1.5rem
        rgba(33, 95, 42, 0.15);
}


.contact-card-icon svg {
    width: 1.55rem;
    height: 1.55rem;
}


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

.contact-card-label {
    display: block;

    margin-bottom: 0.3rem;

    color: #34733e;

    font-size: 0.72rem;
    font-weight: 700;
}


.contact-card-content > a,
.contact-card-content address {
    color: #1f231f;

    font-family:

        "Times New Roman",
        serif;

    font-size:
        clamp(1.4rem, 2vw, 2rem);

    font-style: normal;
    font-weight: 700;

    line-height: 1.06;

    text-decoration: none;
}


.contact-card-content > a {
    transition: color 0.25s ease;
}


.contact-card-content > a:hover {
    color: var(--contacts-green);
}


.contact-card-content p {
    max-width: 36ch;

    margin:
        0.6rem
        0
        0;

    color: #656a63;

    font-size: 0.78rem;

    line-height: 1.55;
}


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

.contact-card-arrow {
    width: 2.8rem;
    height: 2.8rem;

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

    color: #276d35;

    font-size: 1.8rem;

    text-decoration: none;

    border-radius: 50%;

    transition:
        background 0.3s ease,
        transform 0.3s ease;
}


.contact-card-arrow:hover {
    background:
        rgba(40, 111, 54, 0.08);

    transform: translateX(0.2rem);
}


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

.contact-form-wrapper {
    position: relative;

    overflow: hidden;

    padding:
        clamp(2.2rem, 3.8vw, 3.8rem);

    background:
        radial-gradient(
            circle at 86% 15%,
            rgba(195, 212, 153, 0.18),
            transparent 26%
        ),
        linear-gradient(
            145deg,
            rgba(242, 238, 225, 0.96),
            rgba(250, 247, 239, 0.96)
        );

    border:
        1px solid
        rgba(46, 94, 48, 0.13);

    border-radius: 2rem;

    box-shadow:
        0 1.2rem 3rem
        rgba(44, 47, 35, 0.05);
}


/* decorative leaf feel */

.contact-form-wrapper::after {
    content: "⌁";

    position: absolute;

    right: 2.5rem;
    bottom: 1.4rem;

    color:
        rgba(47, 101, 51, 0.16);

    font-size: 7rem;

    line-height: 1;

    transform: rotate(-12deg);

    pointer-events: none;
}


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

.contact-form-heading {
    position: relative;

    z-index: 2;

    margin-bottom:
        clamp(2rem, 3vw, 3rem);
}


.contact-form-heading .contacts-script {
    margin-bottom: 0.5rem;
}


.contact-form-heading h2 {
    max-width: 12ch;

    margin: 0;

    color: #22251f;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size:
        clamp(2.8rem, 4vw, 4.2rem);

    line-height: 0.94;

    letter-spacing: -0.045em;
}


.contact-form-heading h2 span {
    position: relative;
}


.contact-form-heading h2 span::after {
    content: "";

    position: absolute;

    left: -2%;
    right: -2%;
    bottom: -0.18rem;

    height: 0.75rem;

    border-top:
        2px solid
        rgba(38, 92, 45, 0.65);

    border-radius: 50%;

    transform: rotate(-2deg);
}


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

.contact-form {
    position: relative;

    z-index: 2;

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap:
        1.2rem
        1.4rem;
}


.form-group {
    display: flex;
    flex-direction: column;

    gap: 0.5rem;
}


.form-group label {
    color: #2a2d29;

    font-size: 0.78rem;
    font-weight: 700;
}


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

    border:
        1px solid
        rgba(56, 78, 56, 0.12);

    outline: none;

    color: #31352f;

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

    border-radius: 0.9rem;

    font: inherit;

    font-size: 0.82rem;

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


.form-group input,
.form-group select {
    height: 3.3rem;

    padding:
        0
        1rem;
}


.form-group textarea {
    min-height: 8.2rem;

    padding: 1rem;

    resize: vertical;
}


.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #959991;
}


.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color:
        rgba(37, 111, 52, 0.42);

    background: #fff;

    box-shadow:
        0 0 0 4px
        rgba(44, 115, 54, 0.06);
}


/* select arrow */

.form-group select {
    appearance: none;

    background-image:
        linear-gradient(
            45deg,
            transparent 50%,
            #2b6034 50%
        ),
        linear-gradient(
            135deg,
            #2b6034 50%,
            transparent 50%
        );

    background-position:
        calc(100% - 18px) 50%,
        calc(100% - 13px) 50%;

    background-size:
        5px 5px,
        5px 5px;

    background-repeat: no-repeat;
}


/* MESSAGE GROUP */

.form-group:has(textarea) {
    grid-column: 2;
}


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

.contact-form-bottom {
    grid-column:
        1
        / 3;

    display: flex;
    align-items: center;

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

    margin-top: 0.4rem;
}


.contact-submit {
    min-width:
        clamp(14rem, 21vw, 20rem);

    min-height: 3.6rem;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 1rem;

    border: none;

    cursor: pointer;

    font: inherit;
}


.contact-submit span {
    font-size: 1.25rem;

    transition:
        transform 0.25s ease;
}


.contact-submit:hover span {
    transform:
        translate(0.2rem, -0.2rem);
}


.contact-form-note {
    position: relative;

    margin: 0;

    color: #355a3a;

    font-family:
        "Segoe Script",
        "Brush Script MT",
        cursive;

    font-size:
        clamp(0.8rem, 1vw, 1rem);

    line-height: 1.45;

    transform: rotate(-2deg);
}


.contact-form-note::before {
    content: "";

    position: absolute;

    width: 3.7rem;
    height: 2rem;

    left: -4.3rem;
    top: 0.1rem;

    border-top:
        1.5px solid
        #3d7044;

    border-radius: 50%;

    transform: rotate(14deg);
}


/* =========================================================
   LARGE DESKTOP
========================================================= */

@media (min-width: 96rem) {

    .contacts-hero-inner {
        grid-template-columns:
            39%
            61%;
    }


    .contacts-hero-copy {
        padding-left: 4.5vw;
    }


    .contacts-main-section {
        padding-left: 4vw;
        padding-right: 4vw;
    }

}


/* =========================================================
   LAPTOP
========================================================= */

@media (max-width: 78rem) {

    .contacts-hero-inner {
        grid-template-columns:
            minmax(20rem, 0.82fr)
            minmax(30rem, 1.18fr);
    }


    .contacts-hero-title {
        font-size:
            clamp(3.8rem, 6vw, 6rem);
    }


    .contacts-polaroid-child {
        left: -5%;
    }


    .contacts-hero-stats {
        width: 69%;
    }


    .contacts-main-grid {
        grid-template-columns:
            minmax(21rem, 0.82fr)
            minmax(27rem, 1.18fr);
    }


    .contact-card {
        padding:
            1.7rem
            1.5rem;
    }


    .contact-card-content > a,
    .contact-card-content address {
        font-size:
            clamp(1.2rem, 1.7vw, 1.7rem);
    }

}


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

@media (max-width: 64rem) {

    .contacts-hero-inner {
        grid-template-columns: 1fr;

        min-height: auto;
    }


    .contacts-hero-copy {
        min-height: 34rem;

        padding:
            4rem
            3rem
            7rem;

        background:
            linear-gradient(
                180deg,
                #f8f4eb 0%,
                #fbf8f0 100%
            );
    }


    .contacts-hero-title {
        max-width: 8ch;
    }


    .contacts-hero-visual {
        min-height: 39rem;
    }


    .contacts-main-photo {
        inset:
            0
            0
            7rem
            0;
    }


    .contacts-polaroid-child {
        left: 5%;
        top: 7%;
    }


    .contacts-polaroid-heart {
        left: 30%;
    }


    .contacts-hero-stats {
        right: 3%;
        width: 59%;
    }


    .contacts-main-grid {
        grid-template-columns: 1fr;
    }


    .contacts-information {
        order: 2;
    }


    .contact-form-wrapper {
        order: 1;
    }

}


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

@media (max-width: 48rem) {

    .contacts-hero-copy {
        padding:
            3.5rem
            1.5rem
            6.5rem;
    }


    .contacts-hero-title {
        font-size:
            clamp(3.6rem, 13vw, 5.5rem);
    }


    .contacts-hero-description {
        max-width: 34ch;
    }


    .contacts-hero-flourish {
        right: -2rem;
    }


    .contacts-hero-visual {
        min-height: 36rem;
    }


    .contacts-polaroid-child {
        width: 10rem;

        left: 3%;
    }


    .contacts-polaroid-heart {
        width: 9rem;

        left: 31%;
        bottom: 7%;
    }


    .contacts-hero-stats {
        width: 69%;

        right: 1rem;
    }


    .contacts-main-section {
        padding:
            0
            1rem
            5rem;
    }


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


    .form-group:has(textarea) {
        grid-column: auto;
    }


    .contact-form-bottom {
        grid-column: auto;

        align-items: flex-start;
        flex-direction: column;
    }


    .contact-form-note::before {
        display: none;
    }

}


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

@media (max-width: 36rem) {

    .contacts-hero-copy {
        min-height: 31rem;
    }


    .contacts-hero-copy .contacts-script {
        font-size: 0.82rem;
    }


    .contacts-hero-title {
        font-size:
            clamp(3.2rem, 15vw, 4.7rem);
    }


    .contacts-hero-line {
        width: 82%;
    }


    .contacts-hero-visual {
        min-height: 42rem;
    }


    .contacts-main-photo {
        inset:
            0
            0
            10.5rem
            0;
    }


    .contacts-main-photo img {
        object-position: 58% center;
    }


    .contacts-polaroid-child {
        width: 8.7rem;

        left: 0.7rem;
        top: 1rem;
    }


    .contacts-polaroid-heart {
        width: 8.2rem;

        left: auto;
        right: 0.7rem;
        bottom: 9.5rem;
    }


    .contacts-hero-stats {
        width:
            calc(100% - 1rem);

        right: 0.5rem;
        bottom: 0.5rem;

        min-height: 9rem;
    }


    .contacts-hero-stats strong {
        font-size: 1.3rem;
    }


    .contacts-hero-stats small {
        font-size: 0.58rem;
    }


    .contacts-stat-icon {
        font-size: 1.2rem;
    }


    .contacts-main-section {
        padding-top: 1rem;
    }


    .contact-card {
        grid-template-columns:
            auto
            minmax(0, 1fr);

        gap: 1rem;

        padding:
            1.5rem
            1.2rem;
    }


    .contact-card-arrow {
        display: none;
    }


    .contact-card-content > a,
    .contact-card-content address {
        font-size:
            clamp(1.25rem, 6vw, 1.65rem);
    }


    .contact-form-wrapper {
        padding:
            2rem
            1.3rem;
    }


    .contact-form-heading h2 {
        font-size:
            clamp(2.7rem, 12vw, 3.7rem);
    }


    .contact-submit {
        width: 100%;
    }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .contacts-polaroid,
    .contact-card-arrow,
    .contact-submit span,
    .contact-card,
    .contact-card-content > a {
        transition: none;
    }

}