/* ========================================
   1. ROOT & GLOBAL RESET
======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
@view-transition {
    navigation: auto;
}
:root {
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-right: env(safe-area-inset-right, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --safe-left: env(safe-area-inset-left, 0px);

    --bg-black: #000;
    --bg-dark-red: #210202;

    --red: #e30000;
    --bright-red: #ff0000;
    --dark-red: #cc0000;
    --muted-red: #aa0000;

    --font-main:
        "Helvetica World",
        "Helvetica Neue",
        Helvetica,
        Arial,
        sans-serif;
}

html {
    width: 100%;
    min-height: 100%;
    background: var(--bg-black);
    scroll-behavior: smooth;
}

html::-webkit-scrollbar {
    display: none;
}

body {
    width: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background: var(--bg-dark-red);
    color: #fff;
}

body.loaded {
    overflow-y: auto !important;
}

main {
    width: 100%;
    min-width: 100%;
}

img {
    max-width: 100%;
    height: auto;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
    user-select: none;
    -webkit-user-select: none;
}

/* ========================================
   2. PAGE BASE & HERO
======================================== */
.faq-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    min-height: 100vh;
    margin: 5vh 0 0 0;
    background: var(--bg-dark-red);
}

.faq-hero {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin: 0 0 30px;
    background-image: url("Assets/website2.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    height: 25svh;
}

.hero-logo-img {
    max-width: 60%;
    max-height: 50%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(227, 0, 0, 0.5));
}

.faq-subnote {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--bright-red);
    font-family: var(--font-main);
    font-size: 8px;
    font-weight: bolder;
    margin: 0 auto 25px;
    text-align: center;
    padding: 0 5vw;
}

.faq-subnote-icon {
    height: 1.2em;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}

/* ========================================
   3. NAVIGATION
======================================== */
.section-nav {
    position: fixed;
    left: 50%;
    /* Fallback for standard browsers, followed by safe area inset for notched mobile screens */
    bottom: 2.5%;

    display: flex;
    flex-direction: row;
    gap: clamp(12px, 3vw, 25px);

    padding: 1.5vh 1.5vw;

    background: #1413137d;
    border-radius: 50px;

    opacity: 0;
    visibility: hidden;

    transform: translateX(-50%);

    transition:
        opacity 0.8s ease,
        visibility 0.8s ease;

    z-index: 1000;
}

.section-nav.show {
    opacity: 1;
    visibility: visible;
}

.section-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(38px, 8vw, 55px);
    height: clamp(38px, 8vw, 55px);
    color: #aaa2a2;
    font-size: clamp(16px, 3.5vw, 22px);
    text-decoration: none;
    transition: 0.3s ease;
}

.section-nav a.active {
    color: var(--red);
    transform: scale(1.2);
}

.section-nav i {
    font-size: 18px;
}

/* ========================================
   4. SECTION HEADER
======================================== */
.section-header {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 5dvh;
    padding: max(10px, var(--safe-top)) 4vw 10px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s ease;
    pointer-events: auto;
    z-index: 999;
}

.section-header-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-header-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 10px;
    color: var(--red);
    font-family: var(--font-main);
    font-size: 10px;
    font-weight: bold;
    line-height: 0.9;
}

.section-header-brand img {
    width: auto;
    height: 100%;
}

.section-header-nav {
    display: none;
}

/* ========================================
   5. COMMON TYPOGRAPHY & HEADERS
======================================== */
.block-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    margin-bottom: 16px;
    width: 100%;
    color: var(--bright-red);
    text-transform: uppercase;
}

.block-title {
    margin: 0;
    color: var(--bright-red);
    font-family: var(--font-main);
    font-size: clamp(1.5rem, 1.8vw, 1.8rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.block-icon {
    font-size: clamp(1.2rem, 1.8vw, 1.8rem);
    color: var(--bright-red);
    flex-shrink: 0;
}

/* ========================================
   6. CONTENT WRAPPER & SECTIONS (Mobile Stack)
======================================== */
.faq-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2vh;
    width: 95%;
    padding: 0 5vw 40px;
}

.faq-section {
    width: 100%;
    max-width: 95%;
    display: flex;
    flex-direction: column;
}

.section-divider {
    width: 100%;
    max-width: 90vw;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--red), transparent);
    margin: 10px 0;
}

/* ========================================
   7. ACCORDION / COLLAPSIBLE STYLES
======================================== */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.faq-item {
    border-bottom: 1px solid rgba(227, 0, 0, 0.3);
    padding-bottom: 10px;
    transition: border-color 0.1s ease;
}

.faq-item.is-active {
    border-bottom-color: rgba(255, 255, 255, 0.4);
}

.faq-item summary::-webkit-details-marker,
.faq-item summary::marker {
    display: none;
    content: "";
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: var(--font-main);
    font-size: clamp(11px, 1.5vw, 13px);
    font-weight: 700;
    line-height: 1.35;
    list-style: none;
    color: var(--bright-red);
    transition: color 0.1s ease;
    text-transform: uppercase;
}

.faq-question span {
    padding-right: 10px;
}

.faq-item.is-active .faq-question {
    color: #ffffff;
}

.faq-icon {
    font-size: 1rem;
    flex-shrink: 0;
    transition: transform 0.1s ease;
}

.faq-item.is-active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.3s ease, 
                margin-top 0.3s ease;
    font-family: var(--font-main);
    font-size: clamp(10px, 1.3vw, 12px);
    line-height: 1.45;
    color: var(--bright-red);
    padding-right: 10px;
}

.faq-item.is-active .faq-answer {
    margin-top: 8px;
}

.faq-answer strong {
    font-weight: 900;
}

/* ========================================
   8. FOOTER
======================================== */
.footer-black {
    position: static;
    z-index: 10;
    display: block;
    width: 100%;
    height: 15vh;
    background: var(--bg-dark-red);
}

/* ========================================
   9. PHONE LANDSCAPE
======================================== */
@media (orientation: landscape) and (max-height: 500px) {
    .section-header {
        height: 10vh;
        top: 0;
        position: fixed;
    }

    .faq-hero {
        height: 35svh;
        margin: 0 0 5vh;
    }

    .hero-logo-img {
        max-height: 70%;
        padding-top: 5vh;
    }

    .faq-section {
        max-width: 85dvw;
    }

    .section-nav {
        gap: 10px;
        bottom:5%;
    }

    .section-nav a {
        height: 5vh;
    }

    .section-nav i {
        font-size: 15px;
    }

    .section-divider {
        max-width: 90vw;
    }
}

/* ========================================
   10. TABLET PORTRAIT
======================================== */
@media (min-width: 768px) and (orientation: portrait) {
    .faq-section {
        max-width: 90%;
    }

    .faq-subnote{
            font-size: 0.8rem;
    }

    .section-nav{
        bottom:2.5%;
    }
}

/* ========================================
   11. TABLET LANDSCAPE & DESKTOP (3-Column Layout)
======================================== */
@media (min-width: 768px) and (orientation: landscape) and (min-height: 501px) {
    .section-header {
        top: 0;
        height: 7vh;
        position: fixed; /* Ensures top header remains floating on desktop */
    }

    .faq-page {
        margin: 0;
    }

    .faq-hero {
        height: 25svh;
            margin-top: 7vh;
    }

    .hero-logo-img {
        max-height: 60%;
    }

    .faq-content-wrapper {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: stretch;
        width: 90%;
        padding: 0 2vw 20px;
        margin: 0 auto;
        box-sizing: border-box;
    }

    .faq-section {
        flex: 1 1 calc(33.333% - 1vw);
        max-width: calc(33.333% - 1vw);
        display: flex;
        flex-direction: column;
        padding: 0;
        box-sizing: border-box;
    }

    .faq-subnote{
            font-size: 0.7rem;
    }

    .section-divider {
        flex: 0 0 1px;
        width: 1px;
        height: auto;
        min-height: 100%;
        margin: 0;
        background: linear-gradient(180deg, transparent, var(--red), transparent);
    }

    .footer-black {
        display: none;
    }
}

/* ========================================
   12. DESKTOP OVERRIDES
======================================== */
@media (orientation: landscape) and (min-width: 1024px) and (min-height: 501px) {
    .section-nav.show {
        display: none;
    }

    .section-header-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        height: 100%;
        padding: 0 2vw;
        box-sizing: border-box;
    }

    .section-header-brand {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        height: 100%;
        gap: 10px;
        color: var(--red);
        font-family: var(--font-main);
        font-size: 10px;
        font-weight: bold;
        line-height: 0.9;
    }

    .section-header-nav {
        display: flex;
        align-items: center;
        gap: 1.5vw;
    }

    .section-header-nav a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 3vw;
        height: 3vw;
        color: #aaa2a2;
        font-size: 1vw;
        text-decoration: none;
        transition: color 0.3s ease, transform 0.3s ease;
    }

    .section-header-nav a.active {
        color: var(--red);
        transform: scale(1.1);
    }
}