/* =========================================================
   THE OCEANS POST
   CONTACT PAGE
========================================================= */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family:
        Arial,
        Helvetica,
        sans-serif;

    background: #f6f7f9;
    color: #111827;
    line-height: 1.6;
}


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

.contact-header {
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    width: min(1200px, 92%);
    min-height: 76px;
    margin: auto;

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


/* LOGO */

.contact-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.contact-logo img {
    display: block;
    width: 155px;
    max-width: 100%;
    height: auto;
}


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

.main-navigation {
    display: flex;
    align-items: center;
    gap: 26px;
}

.main-navigation a {
    position: relative;

    color: #111827;
    text-decoration: none;

    font-size: 14px;
    font-weight: 600;

    padding: 10px 0;

    transition:
        color 0.25s ease;
}

.main-navigation a::after {
    content: "";

    position: absolute;
    left: 0;
    bottom: 2px;

    width: 0;
    height: 2px;

    background: #111827;

    transition:
        width 0.25s ease;
}

.main-navigation a:hover {
    color: #555;
}

.main-navigation a:hover::after {
    width: 100%;
}


/* =========================================================
   HAMBURGER BUTTON
========================================================= */

.menu-toggle {
    display: none;

    width: 44px;
    height: 44px;

    border: 1px solid #e5e7eb;
    border-radius: 8px;

    background: #ffffff;

    cursor: pointer;

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

    flex-direction: column;

    gap: 5px;

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

.menu-toggle:hover {
    background: #f3f4f6;
}

.menu-toggle span {
    display: block;

    width: 21px;
    height: 2px;

    background: #111827;

    border-radius: 10px;

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


/* HAMBURGER -> X */

.menu-toggle.active span:nth-child(1) {
    transform:
        translateY(7px)
        rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform:
        translateY(-7px)
        rotate(-45deg);
}


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

.contact-hero {
    padding: 100px 20px 90px;

    background:
        linear-gradient(
            135deg,
            #ffffff 0%,
            #f4f6f8 100%
        );

    border-bottom: 1px solid #e5e7eb;
}

.contact-hero-inner {
    width: min(900px, 92%);
    margin: auto;

    text-align: center;

    opacity: 0;
    transform: translateY(25px);

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

.contact-hero-inner.visible {
    opacity: 1;
    transform: translateY(0);
}

.eyebrow,
.section-label {
    display: inline-block;

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 2px;

    color: #6b7280;
}

.contact-hero h1 {
    margin-top: 12px;

    font-size: clamp(40px, 6vw, 68px);
    line-height: 1.05;

    letter-spacing: -2px;

    color: #111827;
}

.contact-hero p {
    max-width: 650px;

    margin: 22px auto 0;

    color: #6b7280;

    font-size: 18px;
}


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

.contact-section {
    padding: 90px 20px;
}

.contact-grid {
    width: min(1150px, 92%);
    margin: auto;

    display: grid;

    grid-template-columns:
        minmax(0, 0.9fr)
        minmax(0, 1.1fr);

    gap: 70px;

    align-items: start;
}


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

.contact-info {
    opacity: 0;
    transform: translateX(-30px);

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

.contact-info.visible {
    opacity: 1;
    transform: translateX(0);
}

.contact-info h2 {
    margin-top: 12px;

    font-size: clamp(32px, 4vw, 48px);

    line-height: 1.1;

    letter-spacing: -1.5px;
}

.contact-intro {
    margin-top: 20px;

    color: #6b7280;

    font-size: 16px;

    max-width: 520px;
}


/* INFO LIST */

.info-list {
    margin-top: 42px;

    display: flex;
    flex-direction: column;

    gap: 25px;
}

.info-item {
    display: flex;
    gap: 17px;

    padding-bottom: 24px;

    border-bottom: 1px solid #e5e7eb;
}

.info-icon {
    flex-shrink: 0;

    width: 42px;
    height: 42px;

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

    border-radius: 50%;

    background: #111827;
    color: #ffffff;

    font-weight: bold;
}

.info-item h3 {
    font-size: 16px;

    margin-bottom: 5px;
}

.info-item p {
    color: #6b7280;

    font-size: 14px;
}


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

.contact-card {
    background: #ffffff;

    padding: 42px;

    border:
        1px solid #e5e7eb;

    border-radius: 18px;

    box-shadow:
        0 15px 45px rgba(0, 0, 0, 0.07);

    opacity: 0;
    transform: translateX(30px);

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

.contact-card.visible {
    opacity: 1;
    transform: translateX(0);
}

.form-header {
    margin-bottom: 28px;
}

.form-header h2 {
    font-size: 28px;

    letter-spacing: -0.5px;
}

.form-header p {
    margin-top: 7px;

    color: #6b7280;

    font-size: 14px;
}


/* =========================================================
   MESSAGES
========================================================= */

.message {
    padding: 13px 15px;

    margin-bottom: 20px;

    border-radius: 8px;

    font-size: 14px;
}

.message-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.message-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}


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

.form-group {
    margin-bottom: 21px;
}

.form-group label {
    display: block;

    margin-bottom: 8px;

    font-size: 14px;
    font-weight: 700;

    color: #374151;
}

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

    padding: 14px 15px;

    border:
        1px solid #d1d5db;

    border-radius: 9px;

    background: #ffffff;

    color: #111827;

    font-family: inherit;

    font-size: 15px;

    outline: none;

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

.form-group input:focus,
.form-group textarea:focus {
    border-color: #111827;

    box-shadow:
        0 0 0 3px
        rgba(17, 24, 39, 0.08);
}

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


/* =========================================================
   SUBMIT BUTTON
========================================================= */

.submit-button {
    width: 100%;

    border: none;

    border-radius: 9px;

    padding: 15px 20px;

    background: #111827;
    color: #ffffff;

    font-size: 15px;
    font-weight: 700;

    cursor: pointer;

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

    gap: 10px;

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

.submit-button:hover {
    background: #000000;

    transform:
        translateY(-2px);
}

.button-arrow {
    transition:
        transform 0.25s ease;
}

.submit-button:hover .button-arrow {
    transform:
        translateX(5px);
}

.form-note {
    margin-top: 15px;

    color: #9ca3af;

    font-size: 12px;

    text-align: center;
}


/* =========================================================
   CTA
========================================================= */

.contact-cta {
    padding: 70px 20px;

    background: #111827;

    color: #ffffff;

    opacity: 0;
    transform: translateY(30px);

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

.contact-cta.visible {
    opacity: 1;
    transform: translateY(0);
}

.cta-inner {
    width: min(1150px, 92%);
    margin: auto;

    display: flex;

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

    gap: 30px;
}

.contact-cta .section-label {
    color: #9ca3af;
}

.contact-cta h2 {
    margin-top: 8px;

    font-size: clamp(28px, 4vw, 42px);

    letter-spacing: -1px;
}

.cta-button {
    display: inline-block;

    padding: 13px 21px;

    background: #ffffff;
    color: #111827;

    border-radius: 8px;

    text-decoration: none;

    font-size: 14px;
    font-weight: 700;

    transition:
        transform 0.25s ease;
}

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



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

@media (max-width: 900px) {

    .main-navigation {
        gap: 15px;
    }

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

        gap: 50px;
    }

}


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

@media (max-width: 768px) {

    .header-container {
        min-height: 68px;
    }

    .contact-logo img {
        width: 135px;
    }


    /* SHOW HAMBURGER */
    .menu-toggle {
        display: flex;
    }


    /* MOBILE NAVIGATION */
    .main-navigation {
        position: absolute;

        top: 68px;
        left: 0;
        right: 0;

        width: 100%;

        background: #ffffff;

        border-top: 1px solid #e5e7eb;

        border-bottom: 1px solid #e5e7eb;

        padding: 10px 20px 20px;

        display: flex;

        flex-direction: column;

        align-items: stretch;

        gap: 0;

        max-height: 0;

        overflow: hidden;

        opacity: 0;

        transform: translateY(-10px);

        pointer-events: none;

        transition: max-height 0.35s ease,
        opacity 0.25s ease,
        transform 0.25s ease;
    }


    .main-navigation.active {
        max-height: 600px;

        opacity: 1;

        transform: translateY(0);

        pointer-events: auto;
    }


    .main-navigation a {
        padding: 14px 5px;

        border-bottom: 1px solid #f0f0f0;

        font-size: 15px;
    }

    .main-navigation a:last-child {
        border-bottom: none;
    }

    .main-navigation a::after {
        display: none;
    }


    /* HERO */
    .contact-hero {
        padding: 70px 20px;
    }

    .contact-hero h1 {
        letter-spacing: -1px;
    }

    .contact-hero p {
        font-size: 16px;
    }


    /* CONTACT */
    .contact-section {
        padding: 60px 20px;
    }

    .contact-grid {
        width: 100%;
    }

    .contact-info h2 {
        font-size: 34px;
    }

    .contact-card {
        padding: 25px 20px;

        border-radius: 14px;
    }


    /* CTA */
    .cta-inner {
        flex-direction: column;

        align-items: flex-start;
    }

    .cta-button {
        width: 100%;

        text-align: center;
    }


    /* =========================================================
       SMALL PHONES
    ========================================================= */
    @media (max-width: 400px) {

        .contact-logo img {
            width: 120px;
        }

        .contact-hero {
            padding: 55px 15px;
        }

        .contact-section {
            padding: 45px 15px;
        }

        .contact-card {
            padding: 22px 16px;
        }
    }
}