/* MatrixOps marketing site — Home page layout with Matrix Software Solutions palette.
   matrix-site.css styles Why Matrix / platform / story / contact (loaded before this file).
   These overrides keep the upper Home hero on a light page chrome. */

:root {
    --heading-color: #0A1628;
    --secondary-color: #111E35;
    --text-color: #0A1628;
    --bg-color: #F8FAFF;
    --bg-color-2: #EEF3FB;
    --btn-color: #2563EB;
    --zebra-white: #fff;
    --zebra-grey: #EEF3FB;
    --navy: #0A1628;
    --navy2: #111E35;
    --white: #F8FAFF;
    --muted: #94a3b8;
    --light: #CADCFC;
    --blue: #2563EB;
    --blue2: #3B82F6;
    --border: rgba(93, 140, 200, 0.15);
}

/* Undo matrix-site body chrome so the hero stays on the light WebsiteLayout page.
   Do not force color with !important — that bleeds into navy Matrix sections. */
body {
    background: #fff !important;
    color: #0A1628;
    font-family: "Gilroy", "Poppins", sans-serif !important;
    line-height: normal;
    font-size: inherit;
}

/* Full-bleed navy wrap for Why Matrix → contact (matches MatrixApp home) */
.matrixops-matrix-sections {
    font-family: 'Poppins', sans-serif;
    background: #0A1628 !important;
    color: #F8FAFF;
    line-height: 1.7;
    font-size: 14px;
}

.matrixops-matrix-sections .contact-section {
    background: #0A1628 !important;
    color: #F8FAFF !important;
    --contact-surface-gradient: linear-gradient(165deg, rgba(59, 130, 246, 0.14) 0%, #1a3352 40%, #172d45 100%);
    --contact-surface-border: 1px solid rgba(59, 130, 246, 0.28);
    --contact-surface-shadow:
        0 0 0 1px rgba(147, 197, 253, 0.06),
        0 8px 32px rgba(8, 14, 24, 0.45),
        0 20px 48px rgba(10, 22, 40, 0.35),
        0 0 40px rgba(37, 99, 235, 0.12);
}

.matrixops-matrix-sections .contact-left h2,
.matrixops-matrix-sections .contact-demo-callout-copy h4 {
    color: #F8FAFF !important;
}

.matrixops-matrix-sections .contact-left > p,
.matrixops-matrix-sections .contact-demo-callout-copy p,
.matrixops-matrix-sections .form-note {
    color: #94a3b8 !important;
}

.matrixops-matrix-sections .contact-left > .section-label {
    color: #93C5FD !important;
}

.matrixops-matrix-sections .contact-detail,
.matrixops-matrix-sections .contact-detail a {
    color: #CADCFC !important;
}

.matrixops-matrix-sections .contact-demo-callout {
    background: linear-gradient(165deg, rgba(59, 130, 246, 0.11) 0%, #172e4a 40%, #152738 100%) !important;
    border: 1px solid rgba(59, 130, 246, 0.28) !important;
    box-shadow:
        0 0 0 1px rgba(147, 197, 253, 0.06),
        0 8px 32px rgba(8, 14, 24, 0.45),
        0 20px 48px rgba(10, 22, 40, 0.35),
        0 0 40px rgba(37, 99, 235, 0.12) !important;
}

.matrixops-matrix-sections .contact-form-wrap {
    background: linear-gradient(165deg, rgba(59, 130, 246, 0.14) 0%, #1a3352 40%, #172d45 100%) !important;
    border: 1px solid rgba(59, 130, 246, 0.28) !important;
    border-radius: 16px !important;
    padding: 36px !important;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(147, 197, 253, 0.06),
        0 8px 32px rgba(8, 14, 24, 0.45),
        0 20px 48px rgba(10, 22, 40, 0.35),
        0 0 40px rgba(37, 99, 235, 0.12) !important;
}

.matrixops-matrix-sections .contact-form-wrap::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #3B82F6 20%, #2563EB 50%, #3B82F6 80%, transparent);
    opacity: 0.9;
}

.matrixops-matrix-sections .contact-form-wrap label {
    display: block !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: .1em !important;
    text-transform: uppercase !important;
    color: #b8c9e0 !important;
    margin-bottom: 7px !important;
}

.matrixops-matrix-sections .contact-form-wrap input,
.matrixops-matrix-sections .contact-form-wrap textarea {
    width: 100% !important;
    box-sizing: border-box !important;
    background: #111e35 !important;
    border: 1px solid rgba(93, 140, 200, 0.15) !important;
    border-radius: 8px !important;
    padding: 12px 14px !important;
    color: #F8FAFF !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 14px !important;
    outline: none !important;
    box-shadow: none !important;
}

.matrixops-matrix-sections .contact-form-wrap input::placeholder,
.matrixops-matrix-sections .contact-form-wrap textarea::placeholder {
    color: rgba(186, 201, 220, 0.88) !important;
    opacity: 1 !important;
}

.matrixops-matrix-sections .contact-form-wrap input:focus,
.matrixops-matrix-sections .contact-form-wrap textarea:focus {
    background: #0f1a2e !important;
    border-color: rgba(37, 99, 235, 0.45) !important;
}

.matrixops-matrix-sections .form-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 14px !important;
    margin-bottom: 16px !important;
}

.matrixops-matrix-sections .form-group {
    margin-bottom: 16px !important;
}

.matrixops-matrix-sections .contact-form-wrap .btn-primary,
.matrixops-matrix-sections .contact-form-wrap .btn.btn-primary {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: 100% !important;
    background: #2563EB !important;
    background-image: none !important;
    border: 1px solid rgba(147, 197, 253, 0.42) !important;
    border-radius: 8px !important;
    padding: 14px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #fff !important;
    box-shadow:
        0 0 0 1px rgba(15, 26, 40, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        inset 0 -2px 0 rgba(15, 31, 61, 0.32),
        0 4px 16px rgba(37, 99, 235, 0.32) !important;
    position: relative;
    z-index: 1;
}

.matrixops-matrix-sections .contact-form-wrap .btn-primary::before,
.matrixops-matrix-sections .contact-form-wrap .btn-primary::after {
    display: none !important;
    content: none !important;
}

.matrixops-matrix-sections .contact-form-wrap .arrow-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.matrixops-matrix-sections .btn-primary {
    background-color: #2563EB !important;
    border-color: #2563EB !important;
    color: #fff !important;
}

.text-orange {
    color: #2563EB !important;
}

.btn-primary,
.user-auth .btn-primary,
a.btn-primary {
    background-color: #2563EB !important;
    border-color: #2563EB !important;
    color: #fff !important;
}

.btn-primary:hover,
.user-auth .btn-primary:hover,
a.btn-primary:hover {
    background-color: #1D4ED8 !important;
    border-color: #1D4ED8 !important;
    color: #fff !important;
}

.headline {
    color: #2563EB !important;
}

/* ── Hero banner: raise copy, widen text, push phone right ── */
.sec-hero-banner {
    margin-top: 100px;
    margin-bottom: 0 !important;
    position: relative;
    z-index: 2;
    overflow: visible;
}

.sec-hero-banner .row {
    align-items: flex-start;
}

.sec-hero-banner .cont-box.hero-content {
    padding-top: 48px !important;
    padding-bottom: 0 !important;
}

.sec-hero-banner .cont-box.hero-image {
    padding-top: 48px !important;
    padding-bottom: 0 !important;
    margin-top: 0;
}

/* Undo matrix-site .hero-heading bleed (center/white/Fraunces) on this banner */
.sec-hero-banner .hero-heading {
    font-family: "Gilroy", "Poppins", sans-serif !important;
    font-size: 35px !important;
    font-weight: 900 !important;
    line-height: 1.25 !important;
    letter-spacing: normal !important;
    color: #111E35 !important;
    text-align: left !important;
    text-transform: uppercase;
    margin: 0 0 15px !important;
    max-width: none !important;
}

.sec-hero-banner .hero-content .subtitle,
.sec-hero-banner .hero-content p {
    text-align: left;
}

.sec-hero-banner .hero-cta .btn,
.sec-hero-banner .hero-cta .btn-primary {
    min-width: 0 !important;
    width: auto !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 13px 28px !important;
    text-align: center;
    margin-right: 0;
}

.sec-hero-banner .hero-image {
    margin-right: -12%;
    text-align: right;
}

.sec-hero-banner .hero-image img {
    max-width: none;
    width: 108%;
    margin-top: 0;
    margin-left: auto;
    margin-right: -4%;
}

/* Stretch navy up to the fixed header so there’s no white band above it */
.sec-hero-banner .hero-image::before,
.sec-hero-banner .hero-image::after {
    top: -100px !important;
    height: calc(100% + 100px) !important;
}

.sec-hero-banner .hero-image::before {
    width: calc(100% - 80px);
    right: -8%;
}

@media (max-width: 991px) {
    .sec-hero-banner {
        margin-top: 90px;
        padding-top: 24px;
    }

    .sec-hero-banner .cont-box.hero-content {
        padding-top: 16px !important;
    }

    .sec-hero-banner .cont-box.hero-image {
        padding-top: 16px !important;
        margin-top: 0;
    }

    .sec-hero-banner .hero-image {
        margin-right: 0;
    }

    .sec-hero-banner .hero-image img {
        width: 250px;
        margin: 0 auto;
    }

    .sec-hero-banner .hero-image::before,
    .sec-hero-banner .hero-image::after {
        top: 0 !important;
        height: 100% !important;
    }

    .matrixops-pain-section {
        margin-top: 0;
        padding: 48px 0;
    }
}

/* Full-bleed pain band + white platform section (no card).
   Start flush with the bottom of the hero phone/hand. */
.matrixops-pain-section {
    background: #F6FBFF;
    margin-top: 0;
    padding: 72px 0;
    position: relative;
    z-index: 1;
}

.matrixops-platform-section {
    background: #fff;
    padding: 72px 0;
}

.matrixops-pain-section .heading-h2::after,
.matrixops-platform-section .heading-h2::after {
    display: none !important;
    content: none !important;
}

.matrixops-platform-section .matrixops-platform-subhead {
    font-size: 20px;
    font-weight: 600;
    line-height: 140%;
    color: #2563EB;
    margin: -8px 0 20px;
}

.matrixops-pain-section .matrixops-pain-media {
    width: 100%;
    height: auto;
    min-height: 0;
    display: block;
    border-radius: 16px;
    overflow: visible;
    align-self: center;
}

.matrixops-pain-section .matrixops-pain-media img {
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    border-radius: 16px;
}

.matrixops-platform-section .mbw-diagram img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    display: block;
}

@media (max-width: 767px) {
    .matrixops-pain-section,
    .matrixops-platform-section {
        padding: 48px 0;
    }

    .matrixops-pain-section .matrixops-pain-media {
        margin-top: 28px;
        min-height: 0;
        height: auto;
    }

    .matrixops-platform-section .mbw-diagram {
        margin-top: 28px;
        text-align: center;
    }
}

/* Podcast / interview video — sits above Our Story */
.matrixops-podcast-section {
    background: #0A1628;
    padding: 72px 0 64px;
    color: #F8FAFF;
}

.matrixops-podcast-inner {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

.matrixops-podcast-eyebrow {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #93C5FD;
    margin: 0 0 12px;
}

.matrixops-podcast-title {
    font-family: 'Fraunces', serif;
    font-size: clamp(28px, 3.5vw, 38px);
    font-weight: 500;
    color: #F8FAFF;
    margin: 0 0 14px;
    line-height: 1.2;
}

.matrixops-podcast-title::after {
    display: none !important;
    content: none !important;
}

.matrixops-podcast-lead {
    font-size: 16px;
    line-height: 1.7;
    color: #94a3b8;
    margin: 0 auto 36px;
    max-width: 560px;
}

.matrixops-podcast-player {
    max-width: 720px;
    margin: 0 auto;
}

.matrixops-video-embed {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(165deg, rgba(59, 130, 246, 0.18) 0%, #111E35 45%, #0A1628 100%);
    border: 1px solid rgba(59, 130, 246, 0.35);
    box-shadow:
        0 0 0 1px rgba(147, 197, 253, 0.06),
        0 16px 48px rgba(8, 14, 24, 0.55),
        0 0 40px rgba(37, 99, 235, 0.15);
}

.matrixops-video-embed iframe,
.matrixops-video-embed video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.matrixops-video-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 24px;
    cursor: default;
}

.matrixops-video-play {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2563EB;
    color: #fff;
    box-shadow:
        0 0 0 8px rgba(37, 99, 235, 0.2),
        0 8px 24px rgba(37, 99, 235, 0.45);
}

.matrixops-video-play svg {
    width: 28px;
    height: 28px;
    margin-left: 3px;
}

.matrixops-video-cta {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #F8FAFF;
    letter-spacing: 0.01em;
}

.matrixops-video-hint {
    margin: 0;
    font-size: 13px;
    color: #94a3b8;
}

@media (max-width: 767px) {
    .matrixops-podcast-section {
        padding: 48px 0;
    }

    .matrixops-video-play {
        width: 60px;
        height: 60px;
    }

    .matrixops-video-cta {
        font-size: 16px;
    }
}

/* Footer after navy sections */
.sec-footer {
    background: #0A1628;
    color: #F8FAFF;
}

@media (max-width: 600px) {
    .matrixops-matrix-sections .form-row {
        grid-template-columns: 1fr !important;
    }
}
