/* =====================================================
   PHILLY SECURITY ACADEMY - PREMIUM SITE STYLES
   ===================================================== */

:root {
    --primary: #0a2540;
    --primary-dark: #081a2f;
    --accent: #bda05d;
    --accent-hover: #dfc17b;
    --bg-light: #f4f6f9;
    --bg-soft: #eef2f7;
    --white: #ffffff;
    --text-dark: #1f2937;
    --text-medium: #4b5563;
    --text-light: #cbd5e1;
    --border: #e5e7eb;
    --success: #2e7d32;
    --success-bg: #e8f5e9;
    --error: #b71c1c;
    --error-bg: #fef2f2;
    --warning: #856404;
    --warning-bg: #fff3cd;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.08);
    --radius: 8px;
}

/* ---------- GLOBAL ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg-light);
    color: var(--text-dark);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
}

h1, h2, h3, h4 {
    letter-spacing: -0.02em;
}

p {
    color: var(--text-medium);
}

/* ---------- NAVBAR ---------- */
.navbar {
    background: #051424;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    position: relative;
    z-index: 20;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: 0.2px;
    white-space: nowrap;
}

.nav-logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 18px;
    align-items: center;
    flex-wrap: wrap;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.95rem;
    opacity: 0.96;
    transition: color 0.15s ease, opacity 0.15s ease;
}

.nav-links a:hover {
    color: var(--accent);
    opacity: 1;
}

.btn-accent {
    background: var(--accent);
    color: var(--primary) !important;
    padding: 9px 16px;
    border-radius: 6px;
    font-weight: 700;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.btn-accent:hover {
    background: var(--accent-hover);
}

/* ---------- HERO ---------- */
header {
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 84px 20px 72px;
    text-align: center;
    border-bottom: 5px solid var(--accent);
}

.badge {
    display: inline-block;
    background: rgba(189,160,93,0.14);
    color: #f4e6bf;
    border: 1px solid rgba(189,160,93,0.35);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

header h1 {
    margin: 0;
    font-size: 2.7rem;
    font-weight: 800;
    line-height: 1.15;
}

header p {
    margin: 18px auto 0;
    max-width: 700px;
    font-size: 1.06rem;
    color: var(--text-light);
}

.hero-buttons {
    margin-top: 34px;
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-subpoints {
    margin-top: 22px;
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    color: #dbe4f0;
    font-size: 0.95rem;
}

.hero-subpoints span {
    background: rgba(255,255,255,0.06);
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.08);
}

/* ---------- BUTTONS ---------- */
.submit-btn,
.launch-btn,
.secondary-btn {
    display: inline-block;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.submit-btn,
.launch-btn {
    background: var(--accent);
    color: var(--primary);
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

.submit-btn:hover,
.launch-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

.secondary-btn {
    background: rgba(255,255,255,0.08);
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.12);
}

.secondary-btn:hover {
    background: rgba(255,255,255,0.12);
}

.full-width-btn {
    width: 100%;
    text-align: center;
}

/* ---------- PAGE LAYOUT ---------- */
.container {
    max-width: 980px;
    margin: 40px auto;
    padding: 0 20px;
}

.section {
    margin-bottom: 34px;
}

.section-title {
    margin: 0 0 10px;
    font-size: 1.9rem;
    color: var(--primary);
}

.section-lead {
    margin: 0 0 20px;
    color: var(--text-medium);
    max-width: 760px;
}

/* ---------- PREMIUM GRID / CARDS ---------- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.three-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.content-card {
    background: var(--white);
    padding: 20px 22px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    margin-bottom: 18px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.content-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.content-card h2,
.content-card h3 {
    margin-top: 0;
    margin-bottom: 8px;
    color: var(--primary);
}

.content-card h2 {
    font-size: 1.2rem;
}

.content-card h3 {
    font-size: 1.08rem;
}

.content-card p {
    font-size: 0.96rem;
    margin: 6px 0;
}

.content-card ul {
    padding-left: 18px;
    margin: 10px 0;
}

.content-card ul li {
    margin-bottom: 6px;
    font-size: 0.95rem;
}

.icon-card {
    position: relative;
    overflow: hidden;
}

.icon-mark {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    font-weight: 700;
    background: rgba(10,37,64,0.08);
    color: var(--primary);
    margin-bottom: 12px;
}

.stat-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 18px;
}

.stat-box {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 18px;
    text-align: center;
}

.stat-box strong {
    display: block;
    font-size: 1.7rem;
    color: var(--primary);
    line-height: 1.1;
}

.stat-box span {
    font-size: 0.9rem;
    color: var(--text-medium);
}

/* ---------- SPLIT PANEL ---------- */
.premium-split {
    display: grid;
    grid-template-columns: 1.55fr 1fr;
    gap: 20px;
    align-items: start;
}

/* ---------- TRUST / HIGHLIGHT STRIP ---------- */
.trust-strip {
    background: var(--white);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius);
    padding: 16px 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.trust-pill {
    background: var(--bg-soft);
    border: 1px solid #dbe3ea;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 0.92rem;
    color: var(--primary);
    font-weight: 600;
}

/* ---------- FORM CARD ---------- */
.form-card {
    background: var(--primary);
    color: var(--white);
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

.form-card h3 {
    color: var(--accent);
    margin-top: 0;
    margin-bottom: 12px;
}

.form-card p {
    color: var(--text-light);
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 6px;
    color: var(--white);
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 11px 12px;
    border-radius: 6px;
    border: 1px solid transparent;
    background: #ffffff;
    color: var(--text-dark);
    font-size: 0.95rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(189,160,93,0.18);
}

/* ---------- FAQ ---------- */
.faq-list {
    display: grid;
    gap: 14px;
}

.faq-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 18px 20px;
}

.faq-item h3 {
    margin: 0 0 8px;
    font-size: 1.02rem;
    color: var(--primary);
}

.faq-item p {
    margin: 0;
}

/* ---------- CTA BAND ---------- */
.cta-band {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border-radius: var(--radius);
    padding: 28px 24px;
    box-shadow: var(--shadow-md);
    text-align: center;
}

.cta-band h2 {
    margin: 0 0 8px;
    color: var(--white);
}

.cta-band p {
    margin: 0 auto 18px;
    max-width: 720px;
    color: var(--text-light);
}

/* ---------- ALERTS ---------- */
.alert-error-box,
.alert-success-box,
.alert-warning {
    padding: 12px 14px;
    border-radius: 6px;
    margin-bottom: 18px;
    font-weight: 600;
    border-left: 4px solid transparent;
}

.alert-error-box {
    color: #991b1b;
    background: var(--error-bg);
    border-left-color: var(--error);
}

.alert-success-box {
    color: #065f46;
    background: #ecfdf5;
    border-left-color: var(--success);
}

.alert-warning {
    color: var(--warning);
    background: var(--warning-bg);
    border-left-color: #d39e00;
}

.text-red {
    color: #d32f2f;
}

.text-light {
    color: var(--text-light);
}

.mb-20 {
    margin-bottom: 20px;
}

.mt-20 {
    margin-top: 20px;
}

/* ---------- AUTH / PORTAL ---------- */
.portal-header {
    background: var(--primary);
    color: var(--white);
    padding: 30px 40px;
    text-align: center;
}

.portal-header h1 {
    margin: 0;
    font-size: 1.8rem;
}

.portal-header p {
    margin: 6px 0 0 0;
    color: var(--text-light);
}

.auth-shell {
    max-width: 520px;
    margin: 40px auto;
    padding: 0 20px;
}

.auth-card-light {
    background: var(--white);
    color: var(--text-dark);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.auth-title-dark {
    margin-top: 0;
    color: #1e293b;
    font-size: 1.25rem;
    margin-bottom: 18px;
}

.token-input {
    font-family: monospace;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.token-prefilled {
    background: #f8fafc;
}

/* ---------- QUIZ ---------- */
.quiz-shell {
    max-width: 850px;
    margin: 40px auto;
    padding: 0 20px;
}

.quiz-card {
    margin-bottom: 30px;
}

.quiz-title {
    margin-top: 0;
    color: var(--primary);
    font-size: 1.8rem;
    margin-bottom: 6px;
}

.quiz-subtitle {
    color: #718096;
    margin-bottom: 26px;
}

.question-block {
    margin-bottom: 28px;
    padding-bottom: 22px;
    border-bottom: 1px solid #edf2f7;
}

.scenario-badge {
    display: inline-block;
    background: #e2e8f0;
    color: #4a5568;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.question-text {
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 14px;
}

.option-label {
    display: flex;
    align-items: center;
    background: #f7fafc;
    padding: 14px 16px;

    border: 1px solid #edf2f7;
    border-radius: 6px;
    margin-bottom: 10px;
    cursor: pointer;
    color: #4a5568;
    transition: background 0.2s, border-color 0.2s;
}

.option-label:hover {
    background: #edf2f7;
    border-color: var(--primary);
}

.option-label input {
    margin-right: 14px;
    transform: scale(1.12);
}

.result-box {
    padding: 28px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 30px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.result-pass {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid #c8e6c9;
}

.result-fail {
    background: #ffebee;
    color: #d32f2f;
    border: 1px solid #ffcdd2;
}

/* ---------- FOOTER ---------- */
footer {
    text-align: center;
    padding: 30px;
    font-size: 0.9rem;
    color: #6b7280;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
    .premium-split,
    .feature-grid,
    .three-grid,
    .stat-strip {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 12px;
        padding: 15px 20px;
    }

    .nav-links {
        justify-content: center;
    }

    header {
        padding: 68px 18px 58px;
    }

    header h1 {
        font-size: 2.05rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .container {
        margin: 30px auto;
        padding: 0 16px;
    }

    .content-card,
    .form-card {
        padding: 18px;
    }
}