/* ==========================================================
   SHARPLINE — CONTACT US PAGE
   Extends the navy & gold theme from style.css
========================================================== */

body.contact-page main {
    margin: 0;
}

body.contact-page {
    background: var(--sp-navy-950);
}


/* ==========================================================
   SHARED HELPERS
========================================================== */

.sp-container {
    width: min(var(--sp-container-width), var(--sp-container-max));
    margin: 0 auto;
}

.sp-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: var(--sp-gold-light);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.sp-eyebrow i {
    font-size: 10px;
    color: var(--sp-gold);
}

.sp-contact-main h2 {
    color: var(--sp-navy-950);
    font-family: var(--sp-serif);
    font-size: 42px;
    font-weight: 600;
    line-height: 1.15;
}

.sp-section {
    position: relative;
    padding: 100px 0;
}

.sp-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


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

.sp-page-banner {
    position: relative;
    height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--sp-navy-950);
}

.sp-page-banner-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.02);
}

.sp-page-banner-overlay {
    position: absolute;
    inset: 0;

    background:
        radial-gradient(circle at 50% 30%,
            rgba(9, 26, 43, 0.05),
            rgba(3, 13, 24, 0.45) 72%),
        linear-gradient(180deg,
            rgba(3, 13, 24, 0.15) 0%,
            rgba(3, 13, 24, 0.35) 55%,
            rgba(3, 13, 24, 0.75) 100%);
}

.sp-page-banner-content {
    position: relative;
    z-index: 2;
    padding-top: 82px;
    text-align: center;
}

.sp-page-banner-content h1 {
    margin-bottom: 16px;
    color: var(--sp-heading);
    font-family: var(--sp-serif);
    font-size: 54px;
    font-weight: 600;
    animation: sp-banner-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.sp-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--sp-muted);
    font-size: 13px;
    font-weight: 500;
    animation: sp-banner-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

.sp-breadcrumb a {
    color: var(--sp-text);
    transition: color 0.3s ease;
}

.sp-breadcrumb a:hover {
    color: var(--sp-gold-light);
}

.sp-breadcrumb i {
    font-size: 9px;
    color: var(--sp-gold);
}

.sp-breadcrumb span {
    color: var(--sp-gold-light);
}

@keyframes sp-banner-rise {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ==========================================================
   DARK BUTTON
========================================================== */

.sp-btn-dark {
    min-width: 180px;
    height: 50px;
    padding: 0 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, #0d1c2b 0%, #041321 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 3px;
    color: var(--sp-heading);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.sp-btn-dark::before {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 70%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 209, 112, 0.35),
            transparent);
    transform: skewX(-20deg);
    transition: left 0.65s ease;
}

.sp-btn-dark:hover::before {
    left: 150%;
}

.sp-btn-dark:hover {
    transform: translateY(-2px);
    border-color: rgba(217, 166, 59, 0.5);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.32);
}

.sp-btn-dark i {
    font-size: 12px;
    color: var(--sp-gold-light);
    transition: transform 0.3s ease;
}

.sp-btn-dark:hover i {
    transform: translateX(4px);
}


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

.sp-contact-info-section {
    background: var(--sp-navy-950);
    position: relative;
    overflow: hidden;
}

.sp-contact-info-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(217, 166, 59, 0.06), transparent 45%),
        radial-gradient(circle at 85% 80%, rgba(217, 166, 59, 0.05), transparent 45%);
    pointer-events: none;
}

.sp-contact-title {
    position: relative;
    z-index: 1;
    max-width: 640px;
    margin: 0 auto 50px;
    text-align: center;
}

.sp-contact-title h2 {
    color: var(--sp-heading);
}

.sp-contact-info-grid {
    position: relative;
    z-index: 1;
}

.sp-contact-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.sp-contact-info-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 30px 28px;
    border-radius: 8px;
    background: linear-gradient(160deg, var(--sp-navy-900) 0%, var(--sp-navy-850) 100%);
    border: 1px solid var(--sp-border-light);
    box-shadow: 0 20px 40px rgba(3, 13, 24, 0.12);
    transition: transform 0.5s ease, box-shadow 0.5s ease, border-color 0.5s ease;
}

.sp-contact-info-card:hover {
    transform: translateY(-6px);
    border-color: rgba(217, 166, 59, 0.4);
    box-shadow: 0 30px 55px rgba(3, 13, 24, 0.2);
}

.sp-contact-info-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: linear-gradient(160deg, rgba(217, 166, 59, 0.16), rgba(217, 166, 59, 0.05));
    color: var(--sp-gold-light);
    font-size: 19px;
    transition: transform 0.4s ease, background 0.4s ease;
}

.sp-contact-info-card:hover .sp-contact-info-icon {
    transform: scale(1.08) rotate(-6deg);
    background: linear-gradient(160deg, rgba(217, 166, 59, 0.3), rgba(217, 166, 59, 0.1));
}

.sp-contact-info-text h3 {
    margin-bottom: 6px;
    color: var(--sp-heading);
    font-family: var(--sp-serif);
    font-size: 19px;
    font-weight: 600;
}

.sp-contact-info-text p {
    margin: 0;
    color: var(--sp-text);
    font-size: 14px;
    line-height: 1.6;
}

.sp-contact-info-text a {
    color: var(--sp-text);
    transition: color 0.3s ease;
}

.sp-contact-info-text a:hover {
    color: var(--sp-gold-light);
}


/* ==========================================================
   FORM + MAP SECTION
   Single unified card — map bleeds into a dark glass form
   panel, floating labels, gradient CTA.
========================================================== */

.sp-contact-visit-section {
    padding: 0 0 110px;
    background: var(--sp-navy-950);
}

.sp-contact-card {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(155deg, var(--sp-navy-900) 0%, var(--sp-navy-950) 100%);
    border: 1px solid rgba(217, 166, 59, 0.16);
    box-shadow: 0 40px 90px rgba(0, 0, 0, 0.45);
}

.sp-contact-card::before,
.sp-contact-card::after {
    content: "";
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.sp-contact-card::before {
    top: -160px;
    right: 15%;
    background: radial-gradient(circle, rgba(217, 166, 59, 0.14), transparent 70%);
}

.sp-contact-card::after {
    bottom: -180px;
    left: 5%;
    background: radial-gradient(circle, rgba(217, 166, 59, 0.08), transparent 70%);
}


/* MAP SIDE */

.sp-contact-card-map {
    position: relative;
    min-height: 620px;
}

.sp-contact-map {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}


/* FORM SIDE */

.sp-contact-card-form {
    position: relative;
    z-index: 1;
    padding: 64px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 1px solid rgba(217, 166, 59, 0.14);
}

.sp-contact-card-form>.sp-eyebrow {
    margin-bottom: 12px;
}

.sp-contact-card-form h3 {
    margin: 0 0 12px;
    color: var(--sp-heading);
    font-family: var(--sp-serif);
    font-size: 32px;
    font-weight: 600;
    line-height: 1.15;
}

.sp-contact-card-form>p {
    margin: 0 0 32px;
    color: var(--sp-muted);
    font-size: 14px;
    line-height: 1.7;
}

.sp-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.sp-field-group {
    position: relative;
    margin-bottom: 18px;
}

.sp-field-group input,
.sp-field-group textarea {
    width: 100%;
    padding: 24px 18px 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.035);
    color: var(--sp-heading);
    font-family: var(--sp-sans);
    font-size: 14px;
    transition: border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.sp-field-group textarea {
    resize: vertical;
    min-height: 96px;
    padding-top: 26px;
}

.sp-field-group label {
    position: absolute;
    left: 19px;
    top: 22px;
    color: #8b96a3;
    font-size: 14px;
    pointer-events: none;
    transition: top 0.25s ease, font-size 0.25s ease, color 0.25s ease;
}

.sp-field-group input:focus,
.sp-field-group textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--sp-gold);
    box-shadow: 0 0 0 3px rgba(217, 166, 59, 0.14);
}

.sp-field-group input:focus+label,
.sp-field-group input:not(:placeholder-shown)+label,
.sp-field-group textarea:focus+label,
.sp-field-group textarea:not(:placeholder-shown)+label {
    top: 9px;
    font-size: 10.5px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--sp-gold-light);
}

.sp-contact-submit-btn {
    width: 100%;
    height: 54px;
    margin-top: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, #d39a2c 0%, #edb943 55%, #e0a630 100%);
    color: #07131d;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
}

.sp-contact-submit-btn::before {
    content: "";
    position: absolute;
    top: -45%;
    left: -90%;
    width: 40%;
    height: 190%;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
    transform: rotate(20deg);
    transition: left 0.65s ease;
}

.sp-contact-submit-btn:hover {
    transform: translateY(-3px);
    filter: brightness(1.04);
    box-shadow: 0 16px 34px rgba(217, 166, 59, 0.28);
}

.sp-contact-submit-btn:hover::before {
    left: 145%;
}

.sp-contact-submit-btn i {
    font-size: 13px;
    transition: transform 0.3s ease;
}

.sp-contact-submit-btn:hover i {
    transform: translateX(4px);
}

.sp-form-status {
    margin: 14px 0 0;
    min-height: 18px;
    color: var(--sp-muted);
    font-size: 13px;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.sp-form-status.is-success {
    opacity: 1;
    transform: translateY(0);
    color: #4fd884;
    font-weight: 600;
}

.sp-form-status.is-error {
    opacity: 1;
    transform: translateY(0);
    color: #ef7a6a;
    font-weight: 600;
}



/* ==========================================================
   SCROLL REVEAL (matches site-wide behaviour)
========================================================== */

[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-reveal="left"] {
    transform: translateX(-30px);
}

[data-reveal="right"] {
    transform: translateX(30px);
}

[data-reveal].is-visible,
[data-reveal="left"].is-visible,
[data-reveal="right"].is-visible {
    opacity: 1;
    transform: translate(0, 0);
}

[data-reveal-group]>* {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-reveal-group].is-visible>* {
    opacity: 1;
    transform: translateY(0);
}

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

    [data-reveal],
    [data-reveal-group]>* {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}


/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width: 1024px) {

    .sp-contact-card {
        grid-template-columns: 1fr;
        border-radius: 20px;
    }

    .sp-contact-card-map {
        min-height: 320px;
    }

    .sp-contact-card-form {
        padding: 48px 40px;
        border-left: 0;
        border-top: 1px solid rgba(217, 166, 59, 0.14);
    }

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

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

    .sp-page-banner-content h1 {
        font-size: 42px;
    }
}

@media (max-width: 640px) {
    .sp-page-banner {
        height: 280px;
    }

    .sp-section {
        padding: 70px 0;
    }

    .sp-contact-card-form {
        padding: 36px 24px;
    }

    .sp-contact-card-form h3 {
        font-size: 24px;
    }

    .sp-field-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .sp-contact-card-map {
        min-height: 240px;
    }
}

/* Tame reveal slide on mobile — avoids the jittery
   "moving" feel of a horizontal slide on narrow screens */
@media (max-width: 768px) {
    [data-reveal="left"],
    [data-reveal="right"] {
        transform: translateY(18px);
    }
}
