/* =========================================================
   BRAINFRAME TECHNOLOGIES — CONTACT PAGE CSS
   Requires:
   - variables.css
   - reset.css
   - typography.css
   - header.css
   - footer.css
========================================================= */


/* =========================================================
   HERO SECTION (EXACT MATCH TO HOME HERO)
========================================================= */

.hero-section {
    position: relative;
    min-height: 480px;
    overflow: hidden;
    background-color: #0B0B0B;
    color: var(--color-white);
    isolation: isolate;
    padding-top: 80px;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: -3;
    overflow: hidden;
}

.hero-background img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;

    opacity: 0;
    transform: scale(1.03);

    -webkit-mask-image: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.10) 0%,
        rgba(0, 0, 0, 0.10) 30%,
        rgba(0, 0, 0, 0.35) 45%,
        rgba(0, 0, 0, 0.65) 65%,
        rgba(0, 0, 0, 0.85) 82%,
        rgba(0, 0, 0, 1) 100%
    );

    mask-image: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.10) 0%,
        rgba(0, 0, 0, 0.10) 30%,
        rgba(0, 0, 0, 0.35) 45%,
        rgba(0, 0, 0, 0.65) 65%,
        rgba(0, 0, 0, 0.85) 82%,
        rgba(0, 0, 0, 1) 100%
    );

    transition:
        opacity 1.5s ease,
        transform 2s ease;
}

.hero-section.is-visible .hero-background img {
    opacity: 1;
    transform: scale(1);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: -2;

    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.30) 0%,
        rgba(0, 0, 0, 0.20) 30%,
        rgba(0, 0, 0, 0.08) 60%,
        rgba(0, 0, 0, 0) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 62px;
    padding-bottom: 42px;
}

.hero-eyebrow {
    margin-bottom: 12px;
    color: var(--brand-red);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero-title {
    margin: 0;
    max-width: 650px;

    color: var(--color-white);
    font-family: "Fjalla One", sans-serif;
    font-size: clamp(42px, 4.2vw, 68px);
    font-weight: 400;
    line-height: 0.98;

    opacity: 0;
    transform: translateY(18px);

    transition:
        opacity 0.9s ease,
        transform 0.9s ease;
}

.hero-section.is-visible .hero-title {
    opacity: 1;
    transform: translateY(0);
}

.hero-description {
    max-width: 560px;
    margin-top: 20px;
    margin-bottom: 0;

    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    line-height: 1.55;

    opacity: 0;
    transform: translateY(14px);

    transition:
        opacity 0.9s ease 0.15s,
        transform 0.9s ease 0.15s;
}

.hero-section.is-visible .hero-description {
    opacity: 1;
    transform: translateY(0);
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 26px;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    min-height: 42px;
    padding: 10px 18px;

    border: 1px solid transparent;
    border-radius: 2px;

    text-decoration: none;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

.hero-btn .material-symbols-outlined {
    font-size: 15px;
}

.hero-btn-primary {
    background-color: var(--brand-red);
    color: var(--color-white);
    border-color: var(--brand-red);
}

.hero-btn-primary:hover {
    background-color: #C90606;
    border-color: #C90606;
    color: var(--color-white);
}

.hero-btn-secondary {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
    color: var(--color-white);
}

.hero-btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.16);
}


/* =========================================================
   HERO METRICS
========================================================= */

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 50px;
}

.metric-card {
    position: relative;
    min-height: 125px;
    padding: 18px;

    background-color: rgba(15, 15, 15, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.04);

    overflow: hidden;
    z-index: 3;
}

.metric-card-2 {
    transform: translateX(calc(-100% - 14px));
    z-index: 2;
}

.metric-card-3 {
    transform: translateX(calc(-200% - 28px));
    z-index: 1;
}

.hero-section.metrics-visible .metric-card-2 {
    transform: translateX(0);

    transition:
        transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-section.metrics-visible .metric-card-3 {
    transform: translateX(0);

    transition:
        transform 1.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.metric-accent {
    position: absolute;
    top: 14px;
    left: 18px;

    width: 3px;
    height: 9px;

    background-color: var(--brand-red);
}

.metric-content {
    padding-left: 8px;
}

.metric-number {
    display: flex;
    align-items: baseline;

    color: var(--color-white);
    font-family: "Fjalla One", sans-serif;
    font-size: clamp(30px, 3vw, 42px);
    line-height: 1;
}

.metric-suffix {
    margin-left: 2px;
    color: var(--brand-red);
    font-size: 22px;
}

.metric-heading {
    margin-top: 8px;
    margin-bottom: 0;

    color: var(--color-white);
    font-family: "Fjalla One", sans-serif;
    font-size: clamp(15px, 1.5vw, 21px);
    font-weight: 400;
}

.metric-description {
    max-width: 260px;
    margin: 7px 0 0;

    color: rgba(255, 255, 255, 0.78);
    font-size: clamp(9px, 0.9vw, 13px);
    line-height: 1.45;

    opacity: 0;
}

.metric-card.revealed .metric-description {
    opacity: 1;

    transition:
        opacity 0.5s ease;
}


/* =========================================================
   CONTACT FORM & INFO SECTION
========================================================= */

.contact-section {
    position: relative;
    padding-top: 92px;
    padding-bottom: 96px;
    background-color: var(--color-white, #FFFFFF);
}

.contact-eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;

    margin: 0 0 10px;

    color: var(--brand-red);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.contact-eyebrow span {
    display: inline-block;
    width: 4px;
    height: 10px;
    background-color: var(--brand-red);
}

.contact-title {
    margin: 0;
    color: var(--color-charcoal, #171717);
    font-family: "Fjalla One", sans-serif;
    font-size: clamp(36px, 3.5vw, 48px);
    font-weight: 400;
    line-height: 1;
}

.contact-description {
    margin-top: 18px;
    margin-bottom: 36px;
    color: #67615E;
    font-size: 15px;
    line-height: 1.7;
}

.contact-details-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.contact-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-detail-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(225, 7, 7, 0.08);
    color: var(--brand-red);
}

.contact-detail-icon .material-symbols-outlined {
    font-size: 22px;
}

.contact-detail-text h3 {
    margin: 0 0 4px;
    color: var(--color-charcoal, #171717);
    font-family: "Fjalla One", sans-serif;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0.05em;
}

.contact-detail-text p {
    margin: 0;
    color: #715F59;
    font-size: 13px;
    line-height: 1.55;
}


/* =========================================================
   GOOGLE MAPS EMBED BOX
========================================================= */

.map-box-container {
    background-color: var(--services-card-background, #F7F5F4);
    border: 1px solid rgba(23, 23, 23, 0.08);
    padding: 12px;
}

.map-box-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    padding-left: 4px;
    color: var(--color-charcoal, #171717);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.map-box-header .material-symbols-outlined {
    font-size: 16px;
    color: var(--brand-red);
}

.map-wrapper {
    width: 100%;
    overflow: hidden;
    line-height: 0;
    background-color: #E5E3DF;
}

.map-wrapper iframe {
    width: 100%;
    height: 220px;
    border: none;
    filter: grayscale(0.2) contrast(1.05);
}


/* =========================================================
   CONTACT FORM
========================================================= */

.contact-form-card {
    padding: 40px;
    background-color: var(--services-card-background, #F7F5F4);
    border: 1px solid rgba(23, 23, 23, 0.05);
}

.form-title {
    margin: 0 0 6px;
    color: var(--color-charcoal, #171717);
    font-family: "Fjalla One", sans-serif;
    font-size: 24px;
    font-weight: 400;
}

.form-subtitle {
    margin: 0 0 28px;
    color: #77706D;
    font-size: 12px;
}

.form-label {
    display: block;
    margin-bottom: 6px;
    color: var(--color-charcoal, #171717);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.form-control,
.form-select {
    border-radius: 0;
    border: 1px solid rgba(23, 23, 23, 0.15);
    padding: 12px 14px;
    font-size: 13px;
    background-color: var(--color-white, #FFFFFF);
    color: var(--color-charcoal, #171717);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--brand-red);
    box-shadow: 0 0 0 0.2rem rgba(225, 7, 7, 0.15);
    outline: none;
}

.submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 50px;
    padding: 12px 24px;
    background-color: var(--brand-red);
    color: var(--color-white, #FFFFFF);
    border: none;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.submit-btn:hover {
    background-color: #C90606;
    transform: translateY(-2px);
}

.submit-btn .material-symbols-outlined {
    font-size: 16px;
}

.submit-btn:disabled {
    background-color: #7a7a7a;
    cursor: not-allowed;
    transform: none;
}


/* =========================================================
   FORM STATUS MESSAGES
   ========================================================= */

.form-status {
    display: none;
    margin-top: 16px;
    padding: 14px 16px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.6;
}

.form-status.is-visible {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.form-status.is-success {
    background-color: rgba(0, 166, 81, 0.10);
    border-left: 3px solid #00A651;
    color: #04663A;
}

.form-status.is-error {
    background-color: rgba(225, 7, 7, 0.08);
    border-left: 3px solid var(--brand-red, #E10707);
    color: #8F0505;
}

.form-status .material-symbols-outlined {
    font-size: 18px;
    flex-shrink: 0;
}

.form-status__body {
    display: block;
    text-transform: none;
    letter-spacing: 0.02em;
    font-weight: 500;
}

.form-status__errors {
    display: block;
    margin-top: 8px;
    padding-left: 18px;
    text-transform: none;
    letter-spacing: 0.02em;
    font-weight: 500;
}

.form-control.is-invalid,
.form-select.is-invalid {
    border-color: var(--brand-red, #E10707);
}


/* Honeypot - must stay hidden but focusable by naive bots */
.hp-field {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}


/* =========================================================
   RESPONSIVE BREAKPOINTS
========================================================= */

@media (max-width: 991.98px) {
    .hero-content {
        padding-top: 50px;
    }

    .hero-title {
        font-size: clamp(40px, 8vw, 58px);
    }

    .hero-metrics {
        margin-top: 40px;
    }

    .contact-section {
        padding-top: 72px;
        padding-bottom: 76px;
    }

    .contact-form-card {
        padding: 30px;
    }

    .map-box-container {
        margin-top: 32px !important;
    }
}

@media (max-width: 767.98px) {
    .hero-content {
        padding-top: 44px;
        padding-bottom: 32px;
    }

    .hero-title {
        font-size: clamp(38px, 11vw, 52px);
        line-height: 1;
    }

    .hero-description {
        max-width: 100%;
        font-size: 12px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .hero-btn {
        width: 100%;
    }

    .hero-metrics {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-top: 36px;
    }

    .metric-card-2,
    .metric-card-3 {
        transform: translateX(-110%);
    }

    .hero-section.metrics-visible .metric-card-2,
    .hero-section.metrics-visible .metric-card-3 {
        transform: translateX(0);
        transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .contact-section {
        padding-top: 54px;
        padding-bottom: 58px;
    }

    .contact-form-card {
        padding: 20px 16px;
    }
}

@media (min-width: 1400px) {
    .hero-content {
        padding-top: 72px;
        padding-bottom: 50px;
    }

    .contact-section {
        padding-top: 110px;
        padding-bottom: 110px;
    }
}