/* ── EBC Design System ──────────────────────────────────── */
:root {
    --navy: #1a2744;
    --navy-light: #243456;
    --navy-dark: #0f1a2e;
    --burgundy: #8b1a2b;
    --burgundy-light: #a82040;
    --burgundy-dark: #6d1522;
    --cream: #f5f0eb;
    --white: #ffffff;
    --gray-100: #f7f8fa;
    --gray-200: #e8eaed;
    --gray-300: #cdd1d8;
    --gray-400: #9aa1ad;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --surface: #1e293b;
    --surface-light: #273349;
    --surface-card: #1e2a3f;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #3b82f6;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.3), 0 2px 4px -2px rgba(0,0,0,0.2);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.4), 0 4px 6px -4px rgba(0,0,0,0.3);
    --transition: 0.2s ease;
}

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
    background: var(--navy-dark);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--burgundy-light); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--cream); }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }

/* ── Typography ────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 { font-family: 'Playfair Display', 'Georgia', serif; font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

/* ── Layout ────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-sm { gap: 8px; }
.gap-md { gap: 16px; }
.gap-lg { gap: 24px; }
.text-center { text-align: center; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mt-2 { margin-top: 16px; }

/* ── Navbar ────────────────────────────────────────────── */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(15, 26, 46, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 0 24px;
    height: 72px;
}
.navbar .container { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.navbar-logo img { height: 48px; }
.navbar-links { display: flex; align-items: center; gap: 32px; }
.navbar-links a { color: var(--text-secondary); font-size: 0.95rem; font-weight: 500; letter-spacing: 0.02em; text-transform: uppercase; }
.navbar-links a:hover, .navbar-links a.active { color: var(--white); }
.navbar-cta {
    background: var(--burgundy);
    color: var(--white) !important;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    transition: all var(--transition);
}
.navbar-cta:hover { background: var(--burgundy-light); color: var(--white) !important; transform: translateY(-1px); }
.navbar-toggle { display: none; background: none; border: none; color: var(--text-primary); font-size: 1.5rem; cursor: pointer; }

/* ── Hero ──────────────────────────────────────────────── */
.hero {
    min-height: 100vh;
    display: flex; align-items: center;
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, var(--navy-light) 100%);
    position: relative; overflow: hidden;
    padding-top: 72px;
}
.hero::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(139,26,43,0.15) 0%, transparent 60%),
                radial-gradient(circle at 70% 80%, rgba(26,39,68,0.5) 0%, transparent 50%);
}
.hero-content { position: relative; z-index: 1; max-width: 700px; }
.hero-badge {
    display: inline-block;
    background: rgba(139,26,43,0.2);
    border: 1px solid rgba(139,26,43,0.4);
    color: var(--burgundy-light);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 24px;
}
.hero h1 { margin-bottom: 24px; }
.hero h1 span { color: var(--burgundy-light); }
.hero p { font-size: 1.15rem; color: var(--text-secondary); margin-bottom: 36px; max-width: 560px; }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

/* ── Buttons ───────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.btn-primary { background: var(--burgundy); color: var(--white); }
.btn-primary:hover { background: var(--burgundy-light); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-secondary { background: rgba(255,255,255,0.08); color: var(--text-primary); border: 1px solid rgba(255,255,255,0.15); }
.btn-secondary:hover { background: rgba(255,255,255,0.15); color: var(--white); }
.btn-success { background: var(--success); color: var(--white); }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-block { width: 100%; justify-content: center; }
.btn-icon { width: 40px; height: 40px; padding: 0; justify-content: center; border-radius: 50%; }

/* ── Cards ─────────────────────────────────────────────── */
.card {
    background: var(--surface-card);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius);
    padding: 24px;
    transition: all var(--transition);
}
.card:hover { border-color: rgba(139,26,43,0.3); box-shadow: var(--shadow); }
.card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.card-title { font-family: 'DM Sans', sans-serif; font-weight: 600; font-size: 1rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.8rem; }
.card-value { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 700; color: var(--white); }

/* ── Feature cards ─────────────────────────────────────── */
.feature-card {
    background: var(--surface-card);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius);
    padding: 32px;
    text-align: center;
    transition: all 0.3s ease;
}
.feature-card:hover { transform: translateY(-4px); border-color: var(--burgundy); box-shadow: var(--shadow-lg); }
.feature-icon {
    width: 64px; height: 64px;
    background: rgba(139,26,43,0.15);
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
}
.feature-card h3 { margin-bottom: 12px; font-family: 'DM Sans', sans-serif; font-size: 1.1rem; }
.feature-card p { color: var(--text-secondary); font-size: 0.95rem; }

/* ── Stats bar ─────────────────────────────────────────── */
.stats-bar {
    background: var(--navy);
    border-top: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 48px 0;
}
.stat-item { text-align: center; }
.stat-number { font-family: 'Playfair Display', serif; font-size: 2.5rem; font-weight: 700; color: var(--burgundy-light); }
.stat-label { color: var(--text-secondary); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.1em; margin-top: 4px; }

/* ── Team ──────────────────────────────────────────────── */
.team-card { text-align: center; }
.team-photo {
    width: 180px; height: 180px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 16px;
    border: 3px solid var(--burgundy);
}
.team-card h3 { margin-bottom: 4px; font-family: 'DM Sans', sans-serif; }
.team-card .role { color: var(--burgundy-light); font-size: 0.9rem; margin-bottom: 12px; }
.team-socials { display: flex; justify-content: center; gap: 12px; }
.team-socials a { color: var(--text-muted); font-size: 1.2rem; }
.team-socials a:hover { color: var(--burgundy-light); }

/* ── Testimonials ──────────────────────────────────────── */
.testimonial-card {
    background: var(--surface-card);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius);
    padding: 32px;
    position: relative;
}
.testimonial-card::before {
    content: '\201C';
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    color: var(--burgundy);
    position: absolute; top: 16px; left: 24px; line-height: 1;
}
.testimonial-text { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.7; margin-bottom: 20px; padding-top: 24px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.testimonial-name { font-weight: 600; }
.testimonial-title { font-size: 0.85rem; color: var(--text-muted); }

/* ── Section headers ───────────────────────────────────── */
.section-header { text-align: center; max-width: 600px; margin: 0 auto 48px; }
.section-header .label { color: var(--burgundy-light); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.85rem; font-weight: 600; margin-bottom: 8px; }
.section-header h2 { margin-bottom: 16px; }
.section-header p { color: var(--text-secondary); }

/* ── CTA section ───────────────────────────────────────── */
.cta-section {
    background: linear-gradient(135deg, var(--burgundy-dark), var(--burgundy));
    border-radius: var(--radius-lg);
    padding: 64px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(255,255,255,0.1), transparent 50%);
}
.cta-section h2, .cta-section p { position: relative; z-index: 1; }
.cta-section p { color: rgba(255,255,255,0.8); margin-bottom: 32px; }
.cta-section .btn { position: relative; z-index: 1; }

/* ── Footer ────────────────────────────────────────────── */
.footer {
    background: var(--navy-dark);
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 48px 0 24px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 32px; }
.footer-brand img { height: 40px; margin-bottom: 16px; }
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; max-width: 300px; }
.footer h4 { font-family: 'DM Sans', sans-serif; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-secondary); margin-bottom: 16px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: var(--text-muted); font-size: 0.9rem; }
.footer-links a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.06); padding-top: 24px; text-align: center; color: var(--text-muted); font-size: 0.85rem; }

/* ══════════════════════════════════════════════════════════
   PORTAL STYLES
   ══════════════════════════════════════════════════════════ */

/* ── Portal Layout ─────────────────────────────────────── */
.portal-layout { display: flex; min-height: 100vh; padding-top: 72px; }
.portal-sidebar {
    width: 260px; min-height: calc(100vh - 72px);
    background: var(--navy-dark);
    border-right: 1px solid rgba(255,255,255,0.06);
    padding: 24px 0;
    position: fixed; top: 72px; left: 0; bottom: 0;
    overflow-y: auto;
}
.portal-main { flex: 1; margin-left: 260px; padding: 32px; background: var(--navy); min-height: calc(100vh - 72px); }
.sidebar-section { padding: 0 16px; margin-bottom: 24px; }
.sidebar-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); padding: 0 12px; margin-bottom: 8px; }
.sidebar-link {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 12px;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    transition: all var(--transition);
}
.sidebar-link:hover { background: rgba(255,255,255,0.05); color: var(--white); }
.sidebar-link.active { background: rgba(139,26,43,0.2); color: var(--burgundy-light); }
.sidebar-link svg, .sidebar-link .icon { width: 20px; text-align: center; }

/* ── Quick Actions ─────────────────────────────────────── */
.quick-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 32px; }
.action-card {
    background: var(--surface-card);
    border: 2px solid rgba(255,255,255,0.06);
    border-radius: var(--radius);
    padding: 28px 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-primary);
}
.action-card:hover { transform: translateY(-4px); border-color: var(--burgundy); box-shadow: var(--shadow-lg); color: var(--white); }
.action-icon {
    width: 56px; height: 56px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.5rem;
}
.action-card:nth-child(1) .action-icon { background: rgba(59,130,246,0.15); color: #3b82f6; }
.action-card:nth-child(2) .action-icon { background: rgba(16,185,129,0.15); color: #10b981; }
.action-card:nth-child(3) .action-icon { background: rgba(245,158,11,0.15); color: #f59e0b; }
.action-card:nth-child(4) .action-icon { background: rgba(139,26,43,0.15); color: var(--burgundy-light); }
.action-card h3 { font-family: 'DM Sans', sans-serif; font-size: 1rem; margin-bottom: 4px; }
.action-card p { color: var(--text-muted); font-size: 0.85rem; }

/* ── Forms ─────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block; margin-bottom: 6px;
    font-size: 0.85rem; font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.form-control {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 1rem;
    transition: border-color var(--transition);
}
.form-control:focus { outline: none; border-color: var(--burgundy); background: rgba(255,255,255,0.08); }
.form-control::placeholder { color: var(--text-muted); }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
select.form-control option { background: var(--navy); color: var(--text-primary); }
textarea.form-control { min-height: 100px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-card { background: var(--surface-card); border: 1px solid rgba(255,255,255,0.06); border-radius: var(--radius); padding: 32px; max-width: 600px; }

/* ── Flash messages ────────────────────────────────────── */
.flash { padding: 12px 20px; border-radius: var(--radius-sm); margin-bottom: 20px; font-size: 0.9rem; }
.flash-success { background: rgba(16,185,129,0.15); border: 1px solid rgba(16,185,129,0.3); color: #6ee7b7; }
.flash-error { background: rgba(239,68,68,0.15); border: 1px solid rgba(239,68,68,0.3); color: #fca5a5; }
.flash-warning { background: rgba(245,158,11,0.15); border: 1px solid rgba(245,158,11,0.3); color: #fcd34d; }
.flash-info { background: rgba(59,130,246,0.15); border: 1px solid rgba(59,130,246,0.3); color: #93c5fd; }

/* ── Tables ────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; padding: 12px 16px; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); border-bottom: 1px solid rgba(255,255,255,0.1); }
td { padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,0.04); color: var(--text-secondary); font-size: 0.9rem; }
tr:hover td { background: rgba(255,255,255,0.02); }
.badge { display: inline-block; padding: 4px 10px; border-radius: 100px; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; }
.badge-green { background: rgba(16,185,129,0.15); color: #10b981; }
.badge-red { background: rgba(239,68,68,0.15); color: #ef4444; }
.badge-blue { background: rgba(59,130,246,0.15); color: #3b82f6; }
.badge-amber { background: rgba(245,158,11,0.15); color: #f59e0b; }

/* ── Directory cards ───────────────────────────────────── */
.directory-card {
    background: var(--surface-card);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    gap: 20px;
    transition: all var(--transition);
}
.directory-card:hover { border-color: rgba(139,26,43,0.3); }
.directory-logo {
    width: 80px; height: 80px;
    border-radius: var(--radius-sm);
    object-fit: contain;
    background: rgba(255,255,255,0.05);
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted); font-size: 2rem;
}
.directory-info h3 { font-family: 'DM Sans', sans-serif; font-size: 1.1rem; margin-bottom: 2px; }
.directory-info .biz-name { color: var(--burgundy-light); font-size: 0.9rem; margin-bottom: 8px; }
.directory-info .biz-desc { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 12px; }
.directory-contact { display: flex; gap: 16px; flex-wrap: wrap; }
.directory-contact a { color: var(--text-muted); font-size: 0.85rem; display: flex; align-items: center; gap: 4px; }
.directory-contact a:hover { color: var(--burgundy-light); }

/* ── Scorecard ─────────────────────────────────────────── */
.scorecard-row { display: grid; grid-template-columns: 200px repeat(6, 1fr); gap: 8px; align-items: center; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.04); }
.scorecard-row.header { font-size: 0.75rem; text-transform: uppercase; color: var(--text-muted); letter-spacing: 0.05em; font-weight: 600; }
.scorecard-name { font-weight: 600; }
.scorecard-val { text-align: center; color: var(--text-secondary); }
.scorecard-val.highlight { color: var(--success); font-weight: 600; }

/* ── Login page ────────────────────────────────────────── */
.login-page {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--navy-dark), var(--navy));
    padding: 24px;
}
.login-card {
    background: var(--surface-card);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-lg);
    padding: 48px;
    width: 100%;
    max-width: 420px;
    text-align: center;
}
.login-card img { height: 60px; margin: 0 auto 32px; }
.login-card h2 { margin-bottom: 8px; }
.login-card .subtitle { color: var(--text-muted); margin-bottom: 32px; }

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 768px) {
    .navbar-links { display: none; }
    .navbar-toggle { display: block; }
    .navbar-links.open { 
        display: flex; flex-direction: column; 
        position: absolute; top: 72px; left: 0; right: 0;
        background: var(--navy-dark); padding: 24px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    .hero { padding: 120px 0 60px; }
    .hero-buttons { flex-direction: column; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .portal-sidebar { display: none; }
    .portal-main { margin-left: 0; }
    .portal-sidebar.open { display: block; position: fixed; z-index: 50; width: 260px; }
    .quick-actions { grid-template-columns: 1fr 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .cta-section { padding: 40px 24px; }
    .scorecard-row { grid-template-columns: 1fr; text-align: center; }
    .directory-card { flex-direction: column; }
    .stats-bar .grid-4 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
    .quick-actions { grid-template-columns: 1fr; }
    .stats-bar .grid-4 { grid-template-columns: 1fr; }
}

/* ── Animations ────────────────────────────────────────── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-in { animation: fadeInUp 0.6s ease forwards; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* ── Upcoming Events (public) ──────────────────────────── */
.event-card { display: flex; gap: 20px; align-items: flex-start; }
.event-date-box {
    flex-shrink: 0; width: 64px; text-align: center;
    background: var(--burgundy); border-radius: var(--radius-sm); padding: 8px;
}
.event-date-box .month { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; }
.event-date-box .day { font-size: 1.5rem; font-weight: 700; }

/* ── Announcement cards ────────────────────────────────── */
.announcement-card { padding: 20px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.announcement-card:last-child { border-bottom: none; }
.announcement-meta { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 4px; }
.announcement-card h3 { font-family: 'DM Sans', sans-serif; font-size: 1rem; margin-bottom: 8px; }
.announcement-card p { color: var(--text-secondary); font-size: 0.9rem; }
.pin-badge { display: inline-block; background: rgba(245,158,11,0.15); color: #f59e0b; font-size: 0.7rem; padding: 2px 8px; border-radius: 100px; margin-left: 8px; }
