/* =========================================================
   CompanionReviewHub Help Center
   File: assets/css/help-center.css
========================================================= */

/* ==========================
   PAGE VARIABLES
========================== */

:root{
    --help-primary:#d97706;
    --help-primary-dark:#b45309;
    --help-primary-soft:#fff7ed;
    --help-secondary:#111827;
    --help-text:#334155;
    --help-muted:#64748b;
    --help-border:#e5e7eb;
    --help-surface:#ffffff;
    --help-background:#f8fafc;
    --help-success:#16a34a;
    --help-radius:24px;
    --help-shadow:0 18px 50px rgba(15,23,42,.09);
    --help-shadow-hover:0 24px 60px rgba(15,23,42,.14);
    --help-transition:.3s ease;
}

/* ==========================
   GLOBAL PAGE SAFETY
========================== */

html{
    scroll-behavior:smooth;
    scroll-padding-top:110px;
}

body{
    overflow-x:hidden;
}

.help-hero,
.help-search-section,
.help-section,
.help-navigation-section,
.help-notice-section,
.help-cta-section{
    position:relative;
}

.help-hero *,
.help-search-section *,
.help-section *,
.help-navigation-section *,
.help-notice-section *,
.help-cta-section *{
    box-sizing:border-box;
}

.help-hero .container,
.help-search-section .container,
.help-section .container,
.help-navigation-section .container,
.help-notice-section .container,
.help-cta-section .container{
    width:90%;
    max-width:1200px;
    margin:0 auto;
}

/* ==========================
   HERO
========================== */

.help-hero{
    min-height:620px;
    padding:175px 0 100px;
    display:flex;
    align-items:center;
    background:
        linear-gradient(
            135deg,
            rgba(15,23,42,.94),
            rgba(120,53,15,.88)
        ),
        url("../images/hero/hero.png");
    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;
    color:#ffffff;
    text-align:center;
}

.help-hero::after{
    content:"";
    position:absolute;
    inset:0;
    background:
        radial-gradient(
            circle at 20% 20%,
            rgba(251,191,36,.15),
            transparent 35%
        );
    pointer-events:none;
}

.help-hero-content{
    position:relative;
    z-index:2;
    max-width:900px;
    margin:0 auto;
}

.help-badge{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:10px 18px;
    margin-bottom:22px;
    border:1px solid rgba(255,255,255,.3);
    border-radius:999px;
    background:rgba(255,255,255,.12);
    color:#fef3c7;
    font-size:.86rem;
    font-weight:800;
    letter-spacing:1.4px;
    text-transform:uppercase;
    backdrop-filter:blur(10px);
}

.help-hero h1{
    max-width:850px;
    margin:0 auto 24px;
    color:#ffffff;
    font-size:clamp(2.5rem,6vw,4.7rem);
    line-height:1.08;
    letter-spacing:-.04em;
}

.help-hero p{
    max-width:760px;
    margin:0 auto;
    color:#e2e8f0;
    font-size:1.08rem;
    line-height:1.85;
}

.help-hero-actions{
    display:flex;
    justify-content:center;
    align-items:center;
    flex-wrap:wrap;
    gap:14px;
    margin-top:34px;
}

.help-hero-actions .primary-btn,
.help-notice-actions .primary-btn,
.help-cta-actions .primary-btn{
    margin:0;
}

.help-secondary-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:52px;
    padding:14px 26px;
    margin:0;
    border:1px solid rgba(255,255,255,.45);
    border-radius:999px;
    background:transparent;
    color:#ffffff !important;
    font-weight:800;
    text-decoration:none;
    transition:var(--help-transition);
}

.help-secondary-btn:hover{
    background:#ffffff;
    color:var(--help-secondary) !important;
    transform:translateY(-2px);
}

/* ==========================
   HELP SEARCH
========================== */

.help-search-section{
    z-index:5;
    padding:0 0 55px;
    margin-top:-62px;
}

.help-search-box{
    display:grid;
    grid-template-columns:minmax(220px,.85fr) minmax(300px,1.5fr);
    align-items:center;
    gap:32px;
    padding:34px;
    border:1px solid rgba(229,231,235,.9);
    border-radius:28px;
    background:rgba(255,255,255,.97);
    box-shadow:var(--help-shadow);
    backdrop-filter:blur(14px);
}

.help-search-box > div:first-child span{
    display:inline-block;
    margin-bottom:7px;
    color:var(--help-primary);
    font-size:.78rem;
    font-weight:800;
    letter-spacing:1.5px;
    text-transform:uppercase;
}

.help-search-box h2{
    color:var(--help-secondary);
    font-size:clamp(1.4rem,3vw,2rem);
    line-height:1.25;
}

.help-search-field{
    display:flex;
    align-items:stretch;
    gap:10px;
    min-width:0;
}

.help-search-field input{
    min-width:0;
    flex:1;
    min-height:54px;
    padding:14px 17px;
    border:1px solid var(--help-border);
    border-radius:15px;
    background:#ffffff;
    color:var(--help-secondary);
    font-size:.98rem;
    outline:none;
    transition:var(--help-transition);
}

.help-search-field input:focus{
    border-color:var(--help-primary);
    box-shadow:0 0 0 4px rgba(217,119,6,.12);
}

.help-search-field button{
    flex:0 0 auto;
    min-height:54px;
    padding:14px 22px;
    border:0;
    border-radius:15px;
    background:var(--help-primary);
    color:#ffffff;
    font-weight:800;
    cursor:pointer;
    transition:var(--help-transition);
}

.help-search-field button:hover{
    background:var(--help-primary-dark);
    transform:translateY(-2px);
}

.help-search-status{
    grid-column:1 / -1;
    min-height:24px;
    margin:0;
    color:var(--help-muted);
    text-align:center;
    font-size:.92rem;
    font-weight:600;
}

/* ==========================
   COMMON SECTION HEADINGS
========================== */

.help-section,
.help-navigation-section,
.help-notice-section,
.help-cta-section{
    padding:90px 0;
}

.help-section{
    background:var(--help-background);
}

.help-section-heading{
    max-width:760px;
    margin:0 auto 48px;
    text-align:center;
}

.help-section-heading > span{
    display:inline-block;
    margin-bottom:12px;
    color:var(--help-primary);
    font-size:.8rem;
    font-weight:800;
    letter-spacing:1.7px;
    text-transform:uppercase;
}

.help-section-heading h2{
    margin-bottom:15px;
    color:var(--help-secondary);
    font-size:clamp(2rem,4vw,3.2rem);
    line-height:1.18;
    letter-spacing:-.03em;
}

.help-section-heading p{
    max-width:680px;
    margin:0 auto;
    color:var(--help-muted);
    font-size:1rem;
    line-height:1.8;
}

/* ==========================
   QUICK START STEPS
========================== */

.steps-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:24px;
}

.step-card{
    position:relative;
    min-width:0;
    padding:30px;
    border:1px solid var(--help-border);
    border-radius:var(--help-radius);
    background:var(--help-surface);
    box-shadow:0 10px 35px rgba(15,23,42,.06);
    transition:var(--help-transition);
}

.step-card:hover{
    transform:translateY(-7px);
    border-color:#fed7aa;
    box-shadow:var(--help-shadow-hover);
}

.step-number{
    display:flex;
    align-items:center;
    justify-content:center;
    width:50px;
    height:50px;
    margin-bottom:20px;
    border-radius:16px;
    background:var(--help-primary-soft);
    color:var(--help-primary-dark);
    font-size:1.1rem;
    font-weight:900;
}

.step-card h3{
    margin-bottom:12px;
    color:var(--help-secondary);
    font-size:1.18rem;
    line-height:1.35;
}

.step-card p{
    margin:0;
    color:var(--help-muted);
    font-size:.95rem;
    line-height:1.75;
}

/* ==========================
   TOPIC NAVIGATION
========================== */

.help-navigation-section{
    background:#ffffff;
}

.help-topic-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:16px;
}

.help-topic-grid a{
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:62px;
    padding:15px 18px;
    border:1px solid var(--help-border);
    border-radius:16px;
    background:#ffffff;
    color:var(--help-secondary);
    text-align:center;
    font-weight:800;
    text-decoration:none;
    box-shadow:0 8px 25px rgba(15,23,42,.05);
    transition:var(--help-transition);
}

.help-topic-grid a:hover{
    border-color:#fdba74;
    background:var(--help-primary-soft);
    color:var(--help-primary-dark);
    transform:translateY(-3px);
}

/* ==========================
   FAQ CATEGORY
========================== */

.faq-section{
    padding-top:100px;
}

.faq-category{
    scroll-margin-top:115px;
    margin-bottom:52px;
}

.faq-category:last-child{
    margin-bottom:0;
}

.faq-category-heading{
    display:flex;
    align-items:center;
    gap:20px;
    margin-bottom:20px;
}

.faq-category-heading > span{
    display:flex;
    align-items:center;
    justify-content:center;
    flex:0 0 52px;
    width:52px;
    height:52px;
    border-radius:17px;
    background:var(--help-primary);
    color:#ffffff;
    font-weight:900;
}

.faq-category-heading h2{
    margin-bottom:4px;
    color:var(--help-secondary);
    font-size:clamp(1.45rem,3vw,2rem);
    line-height:1.25;
}

.faq-category-heading p{
    margin:0;
    color:var(--help-muted);
    line-height:1.6;
}

.faq-list{
    display:grid;
    gap:14px;
}

.faq-item{
    overflow:hidden;
    border:1px solid var(--help-border);
    border-radius:18px;
    background:#ffffff;
    box-shadow:0 8px 25px rgba(15,23,42,.045);
    transition:var(--help-transition);
}

.faq-item:hover{
    border-color:#fed7aa;
}

.faq-item.active{
    border-color:#fdba74;
    box-shadow:0 16px 40px rgba(15,23,42,.08);
}

.faq-question{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    width:100%;
    min-height:68px;
    padding:20px 22px;
    border:0;
    background:#ffffff;
    color:var(--help-secondary);
    text-align:left;
    font-size:1rem;
    font-weight:800;
    line-height:1.45;
    cursor:pointer;
}

.faq-question > span:first-child{
    min-width:0;
}

.faq-icon{
    display:flex;
    align-items:center;
    justify-content:center;
    flex:0 0 34px;
    width:34px;
    height:34px;
    border-radius:50%;
    background:var(--help-primary-soft);
    color:var(--help-primary-dark);
    font-size:1.2rem;
    font-weight:700;
    transition:transform .3s ease, background .3s ease, color .3s ease;
}

.faq-item.active .faq-icon{
    transform:rotate(45deg);
    background:var(--help-primary);
    color:#ffffff;
}

.faq-answer{
    display:grid;
    grid-template-rows:0fr;
    padding:0 22px;
    opacity:0;
    visibility:hidden;
    transition:
        grid-template-rows .35s ease,
        padding .35s ease,
        opacity .25s ease,
        visibility .25s ease;
}

.faq-answer > *{
    overflow:hidden;
}

.faq-item.active .faq-answer{
    grid-template-rows:1fr;
    padding:0 22px 23px;
    opacity:1;
    visibility:visible;
}

.faq-answer p{
    margin:0 0 13px;
    color:var(--help-text);
    font-size:.96rem;
    line-height:1.82;
}

.faq-answer p:last-child{
    margin-bottom:0;
}

.answer-actions{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-top:16px;
}

.answer-actions a{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:42px;
    padding:10px 16px;
    border-radius:999px;
    background:var(--help-primary-soft);
    color:var(--help-primary-dark);
    font-size:.88rem;
    font-weight:800;
    text-decoration:none;
    transition:var(--help-transition);
}

.answer-actions a:hover{
    background:var(--help-primary);
    color:#ffffff;
    transform:translateY(-2px);
}

/* ==========================
   IMPORTANT NOTICE
========================== */

.help-notice-section{
    background:#fff7ed;
}

.help-notice-box{
    max-width:940px;
    margin:0 auto;
    padding:48px;
    border:1px solid #fed7aa;
    border-left:7px solid var(--help-primary);
    border-radius:28px;
    background:#ffffff;
    box-shadow:var(--help-shadow);
}

.help-notice-box > span{
    display:inline-block;
    margin-bottom:14px;
    padding:8px 14px;
    border-radius:999px;
    background:#ffedd5;
    color:#9a3412;
    font-size:.78rem;
    font-weight:900;
    letter-spacing:1.3px;
    text-transform:uppercase;
}

.help-notice-box h2{
    margin-bottom:16px;
    color:var(--help-secondary);
    font-size:clamp(1.8rem,4vw,2.8rem);
    line-height:1.2;
}

.help-notice-box p{
    margin-bottom:13px;
    color:var(--help-text);
    line-height:1.85;
}

.help-notice-actions{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
    margin-top:24px;
}

.help-notice-actions .help-secondary-btn{
    border-color:#d97706;
    color:#92400e !important;
}

.help-notice-actions .help-secondary-btn:hover{
    background:#d97706;
    color:#ffffff !important;
}

/* ==========================
   CTA
========================== */

.help-cta-section{
    background:#0f172a;
    color:#ffffff;
}

.help-cta-box{
    max-width:860px;
    margin:0 auto;
    text-align:center;
}

.help-cta-box > span{
    display:inline-block;
    margin-bottom:12px;
    color:#fbbf24;
    font-size:.8rem;
    font-weight:900;
    letter-spacing:1.5px;
    text-transform:uppercase;
}

.help-cta-box h2{
    margin-bottom:16px;
    color:#ffffff;
    font-size:clamp(2rem,4vw,3.2rem);
    line-height:1.2;
}

.help-cta-box p{
    max-width:650px;
    margin:0 auto;
    color:#cbd5e1;
    line-height:1.8;
}

.help-cta-actions{
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap:12px;
    margin-top:28px;
}

/* ==========================
   FOOTER SAFETY
========================== */

.footer .footer-links{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    flex-wrap:wrap;
    gap:12px;
}

.footer .footer-links a{
    margin:0;
}

/* ==========================
   BACK TO TOP
========================== */

.back-to-top{
    position:fixed;
    right:22px;
    bottom:22px;
    z-index:900;
    display:flex;
    align-items:center;
    justify-content:center;
    width:46px;
    height:46px;
    border-radius:50%;
    background:var(--help-primary);
    color:#ffffff;
    text-decoration:none;
    box-shadow:0 14px 30px rgba(217,119,6,.3);
    transition:var(--help-transition);
}

.back-to-top:hover{
    background:var(--help-primary-dark);
    transform:translateY(-3px);
}

/* ==========================
   DARK MODE
========================== */

body.dark-mode{
    --help-secondary:#f8fafc;
    --help-text:#cbd5e1;
    --help-muted:#94a3b8;
    --help-border:#334155;
    --help-surface:#0f172a;
    --help-background:#020617;
    background:#020617;
    color:#f8fafc;
}

.dark-mode .help-search-section,
.dark-mode .help-section,
.dark-mode .help-navigation-section{
    background:#020617;
}

.dark-mode .help-search-box{
    border-color:#334155;
    background:rgba(15,23,42,.97);
    box-shadow:0 20px 55px rgba(0,0,0,.42);
}

.dark-mode .help-search-box h2,
.dark-mode .help-section-heading h2,
.dark-mode .step-card h3,
.dark-mode .faq-category-heading h2{
    color:#f8fafc;
}

.dark-mode .help-search-field input{
    border-color:#334155;
    background:#111827;
    color:#f8fafc;
}

.dark-mode .help-search-field input::placeholder{
    color:#94a3b8;
}

.dark-mode .step-card,
.dark-mode .help-topic-grid a,
.dark-mode .faq-item,
.dark-mode .faq-question{
    border-color:#334155;
    background:#0f172a;
    color:#f8fafc;
}

.dark-mode .step-card{
    box-shadow:0 12px 35px rgba(0,0,0,.25);
}

.dark-mode .step-card:hover,
.dark-mode .faq-item.active{
    border-color:#d97706;
    box-shadow:0 18px 45px rgba(0,0,0,.36);
}

.dark-mode .step-number,
.dark-mode .faq-icon,
.dark-mode .answer-actions a{
    background:#1e293b;
    color:#fbbf24;
}

.dark-mode .help-topic-grid a:hover,
.dark-mode .answer-actions a:hover{
    border-color:#d97706;
    background:#d97706;
    color:#ffffff;
}

.dark-mode .faq-answer p{
    color:#cbd5e1;
}

.dark-mode .help-notice-section{
    background:#020617;
}

.dark-mode .help-notice-box{
    border-color:#334155;
    border-left-color:#d97706;
    background:#0f172a;
    box-shadow:0 20px 55px rgba(0,0,0,.38);
}

.dark-mode .help-notice-box h2{
    color:#f8fafc;
}

.dark-mode .help-notice-box p{
    color:#cbd5e1;
}

.dark-mode .help-notice-box > span{
    background:#1e293b;
    color:#fbbf24;
}

/* ==========================
   LARGE TABLETS
========================== */

@media(max-width:1100px){

    .steps-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    .help-topic-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    .help-search-box{
        grid-template-columns:1fr;
        gap:22px;
        text-align:center;
    }

}

/* ==========================
   TABLETS
========================== */

@media(max-width:820px){

    html{
        scroll-padding-top:95px;
    }

    .help-hero{
        min-height:560px;
        padding:145px 0 90px;
    }

    .help-search-section{
        margin-top:-45px;
        padding-bottom:35px;
    }

    .help-search-box{
        padding:28px;
        border-radius:22px;
    }

    .help-section,
    .help-navigation-section,
    .help-notice-section,
    .help-cta-section{
        padding:72px 0;
    }

    .help-section-heading{
        margin-bottom:38px;
    }

    .faq-category{
        margin-bottom:42px;
    }

    .help-notice-box{
        padding:38px 30px;
    }

}

/* ==========================
   MOBILE
========================== */

@media(max-width:640px){

    .help-hero .container,
    .help-search-section .container,
    .help-section .container,
    .help-navigation-section .container,
    .help-notice-section .container,
    .help-cta-section .container{
        width:92%;
    }

    .help-hero{
        min-height:auto;
        padding:125px 0 80px;
    }

    .help-badge{
        padding:8px 13px;
        font-size:.72rem;
        letter-spacing:1px;
    }

    .help-hero h1{
        font-size:2.35rem;
        line-height:1.12;
    }

    .help-hero p{
        font-size:.96rem;
        line-height:1.75;
    }

    .help-hero-actions,
    .help-notice-actions,
    .help-cta-actions{
        flex-direction:column;
        align-items:stretch;
        width:100%;
    }

    .help-hero-actions a,
    .help-notice-actions a,
    .help-cta-actions a{
        width:100%;
    }

    .help-search-section{
        margin-top:-32px;
    }

    .help-search-box{
        padding:22px 18px;
    }

    .help-search-field{
        flex-direction:column;
    }

    .help-search-field button{
        width:100%;
    }

    .steps-grid,
    .help-topic-grid{
        grid-template-columns:1fr;
    }

    .step-card{
        padding:24px 21px;
    }

    .help-section,
    .help-navigation-section,
    .help-notice-section,
    .help-cta-section{
        padding:58px 0;
    }

    .help-section-heading h2{
        font-size:1.9rem;
    }

    .faq-category-heading{
        align-items:flex-start;
        gap:14px;
    }

    .faq-category-heading > span{
        flex-basis:44px;
        width:44px;
        height:44px;
        border-radius:14px;
        font-size:.88rem;
    }

    .faq-category-heading h2{
        font-size:1.35rem;
    }

    .faq-category-heading p{
        font-size:.9rem;
    }

    .faq-question{
        min-height:64px;
        padding:18px 16px;
        gap:12px;
        font-size:.94rem;
    }

    .faq-icon{
        flex-basis:30px;
        width:30px;
        height:30px;
        font-size:1rem;
    }

    .faq-answer{
        padding:0 16px;
    }

    .faq-item.active .faq-answer{
        padding:0 16px 20px;
    }

    .faq-answer p{
        font-size:.91rem;
        line-height:1.75;
    }

    .answer-actions{
        flex-direction:column;
        align-items:stretch;
    }

    .answer-actions a{
        width:100%;
    }

    .help-notice-box{
        padding:28px 20px;
        border-radius:22px;
        border-left-width:5px;
    }

    .help-notice-box h2{
        font-size:1.75rem;
    }

    .footer .footer-links{
        justify-content:center;
    }

    .back-to-top{
        right:14px;
        bottom:14px;
        width:42px;
        height:42px;
    }

}

/* ==========================
   SMALL PHONES
========================== */

@media(max-width:420px){

    .help-hero{
        padding-top:112px;
        padding-bottom:68px;
    }

    .help-hero h1{
        font-size:2rem;
    }

    .help-hero p{
        font-size:.91rem;
    }

    .help-search-section{
        margin-top:-24px;
    }

    .help-search-box{
        padding:20px 15px;
        border-radius:18px;
    }

    .help-search-box h2{
        font-size:1.35rem;
    }

    .help-search-field input,
    .help-search-field button{
        min-height:50px;
        border-radius:13px;
    }

    .step-card{
        border-radius:19px;
    }

    .step-number{
        width:45px;
        height:45px;
        border-radius:14px;
    }

    .help-topic-grid a{
        min-height:56px;
        font-size:.9rem;
    }

    .faq-category{
        margin-bottom:36px;
    }

    .faq-question{
        font-size:.89rem;
    }

    .help-notice-box h2,
    .help-cta-box h2{
        font-size:1.6rem;
    }

}

/* ==========================
   EXTRA-SMALL PHONES
========================== */

@media(max-width:340px){

    .help-hero .container,
    .help-search-section .container,
    .help-section .container,
    .help-navigation-section .container,
    .help-notice-section .container,
    .help-cta-section .container{
        width:94%;
    }

    .help-hero h1{
        font-size:1.75rem;
    }

    .faq-question{
        padding:16px 13px;
        font-size:.85rem;
    }

    .faq-answer{
        padding:0 13px;
    }

    .faq-item.active .faq-answer{
        padding:0 13px 18px;
    }

}

/* ==========================
   REDUCED MOTION
========================== */

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

    html{
        scroll-behavior:auto;
    }

    *,
    *::before,
    *::after{
        animation-duration:.01ms !important;
        animation-iteration-count:1 !important;
        transition-duration:.01ms !important;
        scroll-behavior:auto !important;
    }

}

/* ==========================
   PRINT
========================== */

@media print{

    .header,
    .mobile-menu,
    .mobile-overlay,
    .help-search-section,
    .help-hero-actions,
    .help-navigation-section,
    .help-notice-actions,
    .help-cta-section,
    .footer,
    .back-to-top{
        display:none !important;
    }

    .help-hero{
        min-height:auto;
        padding:30px 0;
        background:#ffffff;
        color:#000000;
    }

    .help-hero h1,
    .help-hero p,
    .help-badge{
        color:#000000;
    }

    .help-section{
        padding:20px 0;
        background:#ffffff;
    }

    .faq-answer{
        display:block;
        grid-template-rows:1fr;
        padding:0 20px 20px;
        opacity:1;
        visibility:visible;
    }

    .faq-icon{
        display:none;
    }

}