﻿/* =========================================================
   SAN AI & MECHATRONICS
   FAQ PAGE STYLES
   File: css/faqs.css
   ========================================================= */

.faq-page {
    --faq-navy: #031126;
    --faq-navy-light: #061A3A;
    --faq-blue: #087ED1;
    --faq-blue-bright: #129BEF;
    --faq-cyan: #45D9FF;
    --faq-muted: #68778C;

    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 88px 24px 100px;
    color: var(--faq-navy);
    background:
        radial-gradient(circle at 8% 10%,
            rgba(8,126,209,.055), transparent 30%),
        radial-gradient(circle at 95% 70%,
            rgba(69,217,255,.07), transparent 28%),
        #F7FAFD;
    font-family: "Space Grotesk", sans-serif;
}

.faq-page *,
.faq-page *::before,
.faq-page *::after {
    box-sizing: border-box;
}

.faq-page a {
    overflow-wrap: anywhere;
}

/* Subtle technical grid */

.faq-page::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    opacity: .22;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(8,126,209,.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(8,126,209,.045) 1px, transparent 1px);
    background-size: 42px 42px;
    -webkit-mask-image: linear-gradient(to bottom, #000, transparent 75%);
    mask-image: linear-gradient(to bottom, #000, transparent 75%);
}

/* =========================================================
   PAGE HEADING
   ========================================================= */

.faq-heading {
    position: relative;
    max-width: 850px;
    margin: 0 auto 48px;
    text-align: center;
}

.faq-eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
    color: var(--faq-blue);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2.5px;
    line-height: 1.6;
}

.faq-eyebrow span {
    display: inline-block;
    width: 30px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(
        90deg,
        var(--faq-blue),
        var(--faq-cyan)
    );
}

.faq-heading h1 {
    margin: 0 0 20px;
    color: var(--faq-navy);
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(36px, 4.5vw, 54px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -1.5px;
}

.faq-heading h1 span {
    background: linear-gradient(
        90deg,
        var(--faq-blue),
        var(--faq-blue-bright),
        #0B9DCA
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.faq-heading > p {
    max-width: 680px;
    margin: 0 auto;
    color: var(--faq-muted);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.85;
}

/* =========================================================
   FAQ LIST
   ========================================================= */

.faq-content {
    position: relative;
    max-width: 940px;
    margin: 0 auto;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.faq-item {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(8,126,209,.12);
    border-radius: 15px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 8px 28px rgba(3,17,38,.035);
    transition:
        border-color .3s ease,
        box-shadow .35s ease,
        transform .35s ease;
}

.faq-item:hover {
    border-color: rgba(8,126,209,.35);
    box-shadow:
        0 10px 30px rgba(3,17,38,.055),
        0 0 18px rgba(18,155,239,.08);
}

.faq-item.active {
    border-color: rgba(8,126,209,.42);
    box-shadow:
        0 14px 38px rgba(3,17,38,.065),
        0 0 22px rgba(18,155,239,.08);
}

.faq-item h2 {
    margin: 0;
    font-size: inherit;
    line-height: inherit;
}

/* Question button */

.faq-question {
    display: flex;
    align-items: center;
    gap: 17px;
    width: 100%;
    min-height: 82px;
    padding: 20px 24px;
    border: 0;
    border-radius: 0;
    outline: none;
    background: transparent;
    color: var(--faq-navy);
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
}

.faq-question:focus-visible {
    outline: 2px solid var(--faq-blue);
    outline-offset: -4px;
    border-radius: 12px;
}

/* Question number */

.faq-number {
    display: flex;
    flex: 0 0 40px;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(8,126,209,.13);
    border-radius: 11px;
    background: #F0F7FD;
    color: var(--faq-blue);
    font-size: 12px;
    font-weight: 800;
    transition:
        color .3s ease,
        background .3s ease,
        box-shadow .3s ease,
        transform .3s ease;
}

.faq-question:hover .faq-number,
.faq-item.active .faq-number {
    border-color: transparent;
    background: linear-gradient(
        135deg,
        var(--faq-blue),
        var(--faq-blue-bright)
    );
    color: #FFFFFF;
    box-shadow: 0 6px 18px rgba(8,126,209,.2);
}

/* Question text */

.faq-question-text {
    flex: 1;
    min-width: 0;
    color: var(--faq-navy);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.65;
    transition: color .25s ease;
}

.faq-question:hover .faq-question-text,
.faq-item.active .faq-question-text {
    color: var(--faq-blue);
}

/* Plus and minus icon */

.faq-toggle {
    position: relative;
    display: flex;
    flex: 0 0 34px;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(8,126,209,.2);
    border-radius: 50%;
    background: #FFFFFF;
    color: var(--faq-blue);
    transition:
        transform .35s ease,
        color .3s ease,
        background .3s ease,
        border-color .3s ease,
        box-shadow .3s ease;
}

.faq-toggle::before,
.faq-toggle span {
    position: absolute;
    display: block;
    width: 12px;
    height: 2px;
    border-radius: 3px;
    background: currentColor;
    content: "";
}

.faq-toggle span {
    transform: rotate(90deg);
    transition: transform .35s ease;
}

.faq-question:hover .faq-toggle,
.faq-item.active .faq-toggle {
    border-color: var(--faq-blue);
    box-shadow: 0 0 15px rgba(18,155,239,.15);
}

.faq-item.active .faq-toggle {
    transform: rotate(180deg);
    background: linear-gradient(
        135deg,
        var(--faq-blue),
        var(--faq-blue-bright)
    );
    color: #FFFFFF;
}

.faq-item.active .faq-toggle span {
    transform: rotate(0deg);
}

/* =========================================================
   ACCORDION ANSWERS
   ========================================================= */

.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition:
        grid-template-rows .42s cubic-bezier(.22,1,.36,1);
}

.faq-item.active .faq-answer {
    grid-template-rows: 1fr;
}

.faq-answer-inner {
    min-height: 0;
    overflow: hidden;
    padding: 0 27px 0 81px;
    opacity: 0;
    transform: translateY(-5px);
    transition:
        padding .38s ease,
        opacity .28s ease,
        transform .38s ease;
}

.faq-item.active .faq-answer-inner {
    padding-top: 0;
    padding-bottom: 24px;
    opacity: 1;
    transform: translateY(0);
}

.faq-answer-inner p {
    margin: 0;
    padding-top: 18px;
    border-top: 1px solid rgba(8,126,209,.11);
    color: var(--faq-muted);
    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.9;
}

.faq-answer-inner a {
    color: var(--faq-blue);
    font-weight: 600;
    text-decoration: none;
    overflow-wrap: anywhere;
    transition: color .25s ease, text-shadow .25s ease;
}

.faq-answer-inner a:hover {
    color: #0565A8;
    text-decoration: underline;
    text-shadow: 0 0 12px rgba(18,155,239,.15);
}

/* =========================================================
   CONTACT CARD
   ========================================================= */

.faq-contact-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 38px;
    padding: 27px 30px;
    overflow: hidden;
    border: 1px solid rgba(8,126,209,.15);
    border-radius: 18px;
    background:
        radial-gradient(
            circle at 0% 50%,
            rgba(18,155,239,.09),
            transparent 48%
        ),
        #FFFFFF;
    box-shadow: 0 12px 35px rgba(3,17,38,.045);
    transition:
        border-color .3s ease,
        box-shadow .35s ease;
}

.faq-contact-card:hover {
    border-color: rgba(8,126,209,.35);
    box-shadow:
        0 16px 42px rgba(3,17,38,.07),
        0 0 20px rgba(18,155,239,.07);
}

.faq-contact-icon {
    display: flex;
    flex: 0 0 52px;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 15px;
    background: linear-gradient(
        135deg,
        var(--faq-blue),
        var(--faq-blue-bright)
    );
    color: #FFFFFF;
    font-size: 25px;
    font-weight: 700;
    box-shadow: 0 9px 24px rgba(8,126,209,.18);
}

.faq-contact-copy {
    flex: 1;
    min-width: 0;
}

.faq-contact-copy h2 {
    margin: 0 0 6px;
    color: var(--faq-navy);
    font-family: "Space Grotesk", sans-serif;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.4;
}

.faq-contact-copy p {
    margin: 0;
    color: var(--faq-muted);
    font-size: 13px;
    line-height: 1.7;
}

.faq-contact-button {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 47px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 50px;
    background: linear-gradient(
        135deg,
        var(--faq-blue),
        var(--faq-blue-bright)
    );
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(8,126,209,.2);
    transition:
        transform .3s ease,
        box-shadow .3s ease,
        background .3s ease;
}

.faq-contact-button:hover {
    transform: translateY(-3px);
    background: linear-gradient(
        135deg,
        var(--faq-navy-light),
        var(--faq-blue)
    );
    color: #FFFFFF;
    box-shadow: 0 15px 32px rgba(8,126,209,.28);
}

.faq-contact-button span {
    font-size: 17px;
    transition: transform .3s ease;
}

.faq-contact-button:hover span {
    transform: translate(3px,-3px);
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 768px) {
    .faq-page {
        padding: 68px 18px 76px;
    }

    .faq-heading {
        margin-bottom: 35px;
    }

    .faq-heading h1 {
        font-size: clamp(33px, 6vw, 44px);
        letter-spacing: -.8px;
    }

    .faq-heading > p {
        font-size: 14px;
    }

    .faq-question {
        gap: 13px;
        min-height: 74px;
        padding: 17px;
    }

    .faq-number {
        flex-basis: 35px;
        width: 35px;
        height: 35px;
    }

    .faq-question-text {
        font-size: 14px;
    }

    .faq-answer-inner {
        padding-right: 18px;
        padding-left: 65px;
    }

    .faq-item.active .faq-answer-inner {
        padding-bottom: 20px;
    }

    .faq-answer-inner p {
        font-size: 13px;
        line-height: 1.85;
    }

    .faq-contact-card {
        gap: 15px;
        padding: 22px;
    }

    .faq-contact-copy h2 {
        font-size: 17px;
    }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 520px) {
    .faq-page {
        padding: 48px 13px 55px;
    }

    .faq-eyebrow {
        gap: 8px;
        margin-bottom: 16px;
        font-size: 9px;
        letter-spacing: 1.7px;
    }

    .faq-eyebrow span {
        width: 22px;
    }

    .faq-heading h1 {
        font-size: 32px;
        line-height: 1.2;
        letter-spacing: -.6px;
    }

    .faq-heading > p {
        font-size: 13px;
        line-height: 1.75;
    }

    .faq-list {
        gap: 10px;
    }

    .faq-item {
        border-radius: 12px;
    }

    .faq-question {
        gap: 10px;
        min-height: 68px;
        padding: 14px 11px;
    }

    .faq-number {
        flex-basis: 29px;
        width: 29px;
        height: 29px;
        border-radius: 8px;
        font-size: 10px;
    }

    .faq-question-text {
        font-size: 12.5px;
        line-height: 1.55;
    }

    .faq-toggle {
        flex-basis: 27px;
        width: 27px;
        height: 27px;
    }

    .faq-toggle::before,
    .faq-toggle span {
        width: 10px;
    }

    .faq-answer-inner {
        padding-right: 13px;
        padding-left: 50px;
    }

    .faq-item.active .faq-answer-inner {
        padding-bottom: 17px;
    }

    .faq-answer-inner p {
        padding-top: 13px;
        font-size: 12.5px;
        line-height: 1.8;
    }

    .faq-contact-card {
        display: grid;
        grid-template-columns: 44px minmax(0, 1fr);
        gap: 13px;
        margin-top: 25px;
        padding: 18px 15px;
    }

    .faq-contact-icon {
        grid-row: 1;
        width: 44px;
        height: 44px;
        border-radius: 12px;
    }

    .faq-contact-copy h2 {
        font-size: 15px;
    }

    .faq-contact-copy p {
        font-size: 12px;
    }

    .faq-contact-button {
        grid-column: 1 / -1;
        width: 100%;
        min-height: 45px;
    }
}

/* =========================================================
   ACCESSIBILITY
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
    .faq-page *,
    .faq-page *::before,
    .faq-page *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}