/* ============================================
   Static Pages - Code Blue Training

   Shared layout for content-heavy static pages:
   contact, FAQ, CAPCE accreditation, privacy,
   terms, cookie preferences. Uses the same dark
   surface system as the rest of the marketing
   pages so the visual language stays consistent.
   ============================================ */

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

.static-hero {
    position: relative;
    background-color: var(--color-midnight-950);
    padding-block: var(--space-16) var(--space-12);
    overflow: hidden;
}

.static-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("/static/images/patterns/Code_Blue_Training_Pattern_Update_5-02.66f68157fc33.png");
    background-size: 400px;
    background-repeat: repeat;
    opacity: 0.06;
    pointer-events: none;
}

.static-hero::after {
    content: '';
    position: absolute;
    top: 30%;
    left: -10%;
    width: 50%;
    height: 60%;
    background: radial-gradient(ellipse, rgba(193, 0, 0, 0.30) 0%, transparent 70%);
    pointer-events: none;
}

.static-hero__content {
    position: relative;
    z-index: 1;
    max-width: 56rem;
    margin-inline: auto;
    text-align: center;
}

.static-hero__title {
    font-family: var(--font-display);
    font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
    line-height: var(--leading-tight);
    color: var(--color-white);
    margin-block-end: var(--space-4);
}

.static-hero__title-gradient {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.static-hero__subtitle {
    font-size: var(--text-lg);
    color: var(--color-slate-300);
    line-height: var(--leading-relaxed);
    max-width: 44rem;
    margin-inline: auto;
}

/* ===== STATIC SECTION ===== */

.static-section {
    background-color: var(--surface-dark);
    padding-block: var(--space-16);
}

.static-content {
    max-width: 48rem;
    margin-inline: auto;
}

.static-content__lead {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-5);
    margin-block-end: var(--space-12);
    padding-block-end: var(--space-10);
    border-bottom: 1px solid var(--color-midnight-700);
}

.static-content__logo {
    height: 56px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.static-content__lead p {
    font-size: var(--text-lg);
    color: var(--color-slate-300);
    line-height: var(--leading-relaxed);
    max-width: none;
}

.static-content__sections {
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
}

.static-content__section h2 {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    color: var(--color-white);
    margin-block-end: var(--space-3);
}

.static-content__section p {
    font-family: var(--font-reading);
    font-size: var(--text-base);
    color: var(--color-slate-300);
    line-height: var(--leading-relaxed);
    margin-block-end: var(--space-3);
    max-width: none;
}

.static-content__section ul {
    list-style: disc;
    padding-inline-start: var(--space-6);
    color: var(--color-slate-300);
    line-height: var(--leading-relaxed);
}

.static-content__section ul li {
    margin-block-end: var(--space-2);
}

.static-content__section a {
    color: var(--color-cb-blue-400);
    text-decoration: underline;
    transition: color var(--duration-fast) var(--ease-default);
}

.static-content__section a:hover {
    color: var(--color-white);
}

/* ===== LEGAL NOTICE BANNER ===== */

.legal-notice {
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: var(--radius-md);
    padding: var(--space-4) var(--space-5);
    color: var(--color-slate-200);
    margin-block-end: var(--space-8);
    line-height: var(--leading-relaxed);
}

.legal-notice strong {
    color: var(--neon-gold);
}

.legal-notice a {
    color: var(--color-cb-blue-400);
    text-decoration: underline;
}

.legal-meta {
    color: var(--color-slate-500);
    font-size: var(--text-sm);
    font-style: italic;
}

/* ===== CONTACT PAGE LAYOUT ===== */

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-12);
}

@media (max-width: 64em) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

.contact-info__card {
    background: var(--color-midnight-800);
    border: 1px solid var(--color-midnight-700);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    transition: border-color var(--duration-fast) var(--ease-default),
                box-shadow var(--duration-fast) var(--ease-default);
}

.contact-info__card:hover {
    border-color: var(--color-cb-blue);
    box-shadow: 0 0 30px rgba(68, 120, 204, 0.15);
}

.contact-info__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: rgba(68, 120, 204, 0.1);
    border: 1px solid rgba(68, 120, 204, 0.25);
    color: var(--color-cb-blue-400);
    margin-block-end: var(--space-4);
}

.contact-info__title {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    color: var(--color-white);
    margin-block-end: var(--space-2);
}

.contact-info__text {
    color: var(--color-slate-400);
    font-size: var(--text-sm);
    margin-block-end: var(--space-3);
    max-width: none;
}

.contact-info__link {
    color: var(--color-cb-blue-400);
    font-weight: var(--weight-semibold);
    text-decoration: none;
    transition: color var(--duration-fast) var(--ease-default);
}

.contact-info__link:hover {
    color: var(--color-white);
}

.contact-form-wrap {
    background: var(--color-midnight-800);
    border: 1px solid var(--color-midnight-700);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
}

.contact-form__heading {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    color: var(--color-white);
    margin-block-end: var(--space-2);
}

.contact-form__lead {
    color: var(--color-slate-400);
    margin-block-end: var(--space-6);
    max-width: none;
}

.contact-form__success {
    text-align: center;
    padding: var(--space-8) var(--space-4);
    color: var(--color-slate-200);
}

.contact-form__success svg {
    color: var(--neon-emerald);
    margin-block-end: var(--space-3);
}

.contact-form__success h3 {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    color: var(--color-white);
    margin-block-end: var(--space-3);
}

.contact-form__success p {
    color: var(--color-slate-300);
    max-width: 32ch;
    margin-inline: auto;
}

.contact-form__error {
    text-align: center;
    padding: var(--space-6);
    color: var(--color-cb-red-400);
}

.contact-form__error p {
    margin-block-end: var(--space-4);
    max-width: none;
}

/* ===== FAQ PAGE ===== */

.faq-categories {
    display: flex;
    flex-direction: column;
    gap: var(--space-12);
    max-width: 56rem;
    margin-inline: auto;
}

.faq-category__title {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    color: var(--color-white);
    margin-block-end: var(--space-5);
    padding-block-end: var(--space-3);
    border-bottom: 1px solid var(--color-midnight-700);
}

.faq-category__items {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.faq-item {
    background: var(--color-midnight-800);
    border: 1px solid var(--color-midnight-700);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color var(--duration-fast) var(--ease-default);
}

.faq-item:hover {
    border-color: var(--color-midnight-600);
}

.faq-item__trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    padding: var(--space-5) var(--space-6);
    background: none;
    border: none;
    cursor: pointer;
    text-align: start;
    color: var(--color-white);
    font-family: var(--font-display);
    font-size: var(--text-base);
    font-weight: var(--weight-semibold);
}

.faq-item__chevron {
    flex-shrink: 0;
    color: var(--color-slate-400);
    transition: transform var(--duration-fast) var(--ease-default);
}

.faq-item__chevron--open {
    transform: rotate(180deg);
}

.faq-item__answer {
    padding: 0 var(--space-6) var(--space-5);
}

.faq-item__answer p {
    color: var(--color-slate-400);
    line-height: var(--leading-relaxed);
    max-width: none;
    margin: 0;
}

.faq-cta {
    text-align: center;
    margin-block-start: var(--space-16);
    padding-block-start: var(--space-10);
    border-top: 1px solid var(--color-midnight-700);
}

.faq-cta p {
    color: var(--color-slate-300);
    margin-block-end: var(--space-4);
}

/* ===== SECTION BLENDING ===== */
/* 950 → 900: hero fades into the lighter section */
.static-hero::after {
    /* keep the radial glow as the only ::after — no blend needed
       because static-section is the next dark surface and the
       transition is naturally subtle */
}
