/* ============================================
   Nouvelle Alexandrie - Dark Theme
   Flag colors: Purple + Gold on dark backgrounds
   ============================================ */

:root {
    /* Primary Colors */
    --primary-purple: #6b1d8e;
    --primary-purple-dark: #4a0e5c;
    --primary-purple-light: #8a3daa;
    --primary-gold: #D4AF37;
    --primary-gold-light: #e6c65a;

    /* Backgrounds */
    --bg-deep: #1a1a2e;
    --bg-card: #16213e;
    --bg-elevated: #202040;
    --bg-surface: #1e1e38;

    /* Text */
    --text-primary: #e8e8e8;
    --text-muted: #a0a0b0;
    --text-white: #ffffff;

    /* Links */
    --link-color: #b388d9;
    --link-hover: #d4b0f0;

    /* Borders & Accents */
    --border-subtle: rgba(107, 29, 142, 0.3);
    --border-medium: rgba(107, 29, 142, 0.5);

    /* Shadows */
    --shadow-soft: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 30px rgba(107, 29, 142, 0.2);

    /* Spacing */
    --section-padding: 4rem 2rem;
    --card-padding: 2rem;
    --max-width: 1200px;
}

/* ============================================
   Accessibility
   ============================================ */

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-purple);
    color: var(--text-white);
    padding: 8px 16px;
    z-index: 100;
    text-decoration: none;
    font-weight: bold;
}

.skip-link:focus {
    top: 0;
}

/* Back Navigation (used by ai-use-policy.html) */
.back-nav {
    background: var(--bg-deep);
    padding: 0.75rem 2rem;
}

.back-nav a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
}

.back-nav a:hover {
    text-decoration: underline;
}

/* ============================================
   Site Navigation
   ============================================ */

.site-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--bg-deep);
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 56px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid var(--border-subtle);
}

.site-nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-white);
}

.site-nav-brand img {
    height: 36px;
    width: auto;
}

.site-nav-brand span {
    font-family: Georgia, serif;
    font-size: 1.1rem;
    font-weight: normal;
}

.site-nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.site-nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.site-nav-links a:hover {
    background: rgba(255, 255, 255, 0.08);
}

.site-nav-links .nav-join {
    background: var(--primary-gold);
    color: #1a1a2e;
    font-weight: 600;
    margin-left: 0.5rem;
}

.site-nav-links .nav-join:hover {
    background: var(--primary-gold-light);
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

@media (max-width: 768px) {
    .site-nav {
        padding: 0 1rem;
    }

    .site-nav-brand span {
        font-size: 0.95rem;
    }

    .nav-toggle {
        display: block;
    }

    .site-nav-links {
        display: none;
        position: absolute;
        top: 56px;
        left: 0;
        right: 0;
        background: var(--bg-deep);
        flex-direction: column;
        padding: 1rem;
        gap: 0.5rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
        border-bottom: 1px solid var(--border-subtle);
    }

    .site-nav-links.active {
        display: flex;
    }

    .site-nav-links a {
        width: 100%;
        text-align: center;
        padding: 0.75rem 1rem;
    }

    .site-nav-links .nav-join {
        margin-left: 0;
        margin-top: 0.5rem;
    }
}

/* ============================================
   Base Styles
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-deep);
}

h1, h2, h3 {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-weight: normal;
    line-height: 1.3;
}

a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

ul {
    list-style: none;
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
    background: linear-gradient(135deg, var(--primary-purple-dark) 0%, var(--bg-deep) 60%, var(--bg-card) 100%);
    padding: 4rem 2rem 5rem;
    text-align: center;
    border-bottom: 2px solid var(--border-subtle);
}

.hero-content {
    max-width: var(--max-width);
    margin: 0 auto;
}

.coat-of-arms {
    width: 200px;
    height: auto;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 20px rgba(107, 29, 142, 0.4)) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
}

.hero h1 {
    font-size: 2.75rem;
    color: var(--text-white);
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
}

.tagline {
    font-size: 1.3rem;
    color: var(--primary-gold);
    max-width: 600px;
    margin: 0 auto 1rem;
}

.national-motto {
    font-family: Georgia, serif;
    font-size: 1.1rem;
    color: var(--text-muted);
    margin: 0.5rem auto 2rem;
    letter-spacing: 0.05em;
}

/* ============================================
   CTA Buttons
   ============================================ */

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.cta-button.primary {
    background-color: var(--primary-gold);
    color: #1a1a2e;
    border: 2px solid var(--primary-gold);
}

.cta-button.primary:hover {
    background-color: var(--primary-gold-light);
    border-color: var(--primary-gold-light);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.3);
}

.cta-button.secondary {
    background-color: var(--primary-purple);
    color: var(--text-white);
    border: 2px solid var(--primary-purple);
}

.cta-button.secondary:hover {
    background-color: var(--primary-purple-light);
    border-color: var(--primary-purple-light);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(107, 29, 142, 0.3);
}

.cta-button.tertiary {
    background-color: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-medium);
}

.cta-button.tertiary:hover {
    background-color: rgba(107, 29, 142, 0.2);
    border-color: var(--primary-purple);
    color: var(--text-white);
    text-decoration: none;
    transform: translateY(-2px);
}

/* Hero Buttons */
.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

/* Social Links in Hero */
.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    border: 2px solid var(--border-subtle);
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--primary-purple);
    color: var(--text-white);
    border-color: var(--primary-purple);
    transform: translateY(-2px);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

/* ============================================
   Quality / Community Proof Banner
   ============================================ */

.quality-banner {
    background: linear-gradient(90deg, var(--primary-purple) 0%, var(--primary-purple-dark) 100%);
    color: var(--text-white);
    padding: 1.5rem 2rem;
    text-align: center;
    max-width: 100%;
}

.quality-content {
    max-width: var(--max-width);
    margin: 0 auto;
}

.quality-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
}

.quality-content strong {
    color: var(--primary-gold);
}

/* ============================================
   Section Base Styles
   ============================================ */

section {
    padding: var(--section-padding);
    max-width: var(--max-width);
    margin: 0 auto;
}

section h2 {
    font-size: 2rem;
    color: var(--primary-gold);
    text-align: center;
    margin-bottom: 2.5rem;
}

/* ============================================
   About Section with Quick Facts
   ============================================ */

.about-section {
    background-color: var(--bg-card);
    padding: var(--section-padding);
    border-bottom: 1px solid var(--border-subtle);
}

.about-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    max-width: var(--max-width);
    margin: 0 auto;
    align-items: start;
}

.about-main h2 {
    font-size: 2rem;
    color: var(--primary-gold);
    margin-bottom: 1.5rem;
}

.about-main p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: var(--text-primary);
}

.about-main p a {
    color: var(--link-color);
}

.about-features {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.about-feature {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem;
    background: var(--bg-elevated);
    border-left: 3px solid var(--primary-purple);
}

.about-feature strong {
    color: var(--primary-gold);
}

.about-feature span {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.quick-facts {
    background: var(--bg-elevated);
    border: 2px solid var(--border-medium);
    border-radius: 8px;
    padding: 1.5rem;
}

.quick-facts-images {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-subtle);
}

.quick-facts-flag {
    height: 80px;
    width: auto;
    border-radius: 3px;
    border: 1px solid var(--border-medium);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.quick-facts-coa {
    height: 80px;
    width: auto;
    filter: drop-shadow(0 2px 6px rgba(107, 29, 142, 0.3));
}

.quick-facts h3 {
    font-size: 1.1rem;
    color: var(--primary-gold);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-subtle);
}

.quick-facts dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.5rem 1rem;
    font-size: 0.9rem;
}

.quick-facts dt {
    color: var(--text-muted);
    font-weight: normal;
}

.quick-facts dd {
    color: var(--text-primary);
    margin: 0;
}

.quick-facts dd a {
    color: var(--link-color);
    text-decoration: none;
}

.quick-facts dd a:hover {
    text-decoration: underline;
}

.facts-link {
    display: block;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-subtle);
    color: var(--primary-gold);
    text-decoration: none;
    font-size: 0.9rem;
}

.facts-link:hover {
    text-decoration: underline;
    color: var(--primary-gold-light);
}

@media (max-width: 900px) {
    .about-layout {
        grid-template-columns: 1fr;
    }

    .quick-facts {
        order: -1;
    }
}

/* ============================================
   Legacy Card Grid
   ============================================ */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: var(--max-width);
}

.card {
    background-color: var(--bg-elevated);
    border: 2px solid var(--border-subtle);
    border-radius: 8px;
    padding: var(--card-padding);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-purple);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-gold);
}

.card h3 {
    font-size: 1.25rem;
    color: var(--primary-gold);
    margin-bottom: 0.75rem;
}

.card p {
    color: var(--text-muted);
}

.card p strong {
    color: var(--text-primary);
}

/* ============================================
   Simulation Pace / How It Works Section
   ============================================ */

.simulation-pace {
    background: linear-gradient(135deg, var(--primary-purple-dark) 0%, var(--bg-deep) 100%);
    color: var(--text-white);
    max-width: 100%;
    padding: 3rem 2rem;
}

.simulation-pace h2 {
    color: var(--primary-gold);
    margin-bottom: 2rem;
}

.simulation-pace > * {
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
}

.pace-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.pace-main {
    max-width: 700px;
}

.pace-highlight {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
}

.pace-ratio {
    font-family: Georgia, serif;
    font-size: 2.5rem;
    color: var(--primary-gold);
    font-weight: normal;
    line-height: 1.2;
}

.pace-label {
    font-size: 1rem;
    opacity: 0.8;
    margin-top: 0.25rem;
}

.pace-main p {
    font-size: 1.05rem;
    line-height: 1.7;
    opacity: 0.95;
}

.pace-main strong {
    color: var(--primary-gold);
}

.pace-main a {
    color: var(--primary-gold-light);
}

.pace-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pace-item {
    background-color: rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.pace-value {
    font-family: Georgia, serif;
    font-size: 1.5rem;
    color: var(--primary-gold);
    font-weight: normal;
    min-width: 60px;
}

.pace-desc {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* ============================================
   How To Join Section
   ============================================ */

.how-to-join {
    background-color: var(--bg-card);
    max-width: 100%;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.how-to-join > * {
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
}

/* Vertical Steps Layout */
.steps-vertical {
    max-width: 800px;
    margin: 0 auto;
}

.step-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
}

.step-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 29px;
    top: 60px;
    bottom: -2rem;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-purple), var(--primary-gold));
}

.step-item .step-number {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--primary-gold-light) 100%);
    color: #1a1a2e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    font-family: Georgia, serif;
    position: relative;
    z-index: 1;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--primary-gold-light) 100%);
    color: #1a1a2e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1rem;
    font-family: Georgia, serif;
}

.step-content {
    flex: 1;
    padding-top: 0.5rem;
}

.step-content h3 {
    font-size: 1.25rem;
    color: var(--primary-gold);
    margin-bottom: 0.5rem;
}

.step-content p {
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.step-content .step-button {
    margin-top: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

.step-note {
    font-size: 0.9rem;
    font-style: italic;
    color: var(--text-muted);
    background-color: var(--bg-elevated);
    padding: 0.75rem 1rem;
    border-left: 3px solid var(--primary-purple);
    margin-top: 0.5rem;
}

.sub-steps {
    list-style: decimal;
    margin-left: 1.5rem;
    margin-top: 0.5rem;
    margin-bottom: 0.75rem;
}

.sub-steps li {
    padding: 0.25rem 0;
    color: var(--text-muted);
}

.sub-steps li a {
    color: var(--link-color);
}

/* Join Section Layout with Discord Widget */
.join-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 3rem;
    align-items: start;
}

.discord-widget-container {
    position: sticky;
    top: 2rem;
    background-color: var(--bg-elevated);
    border: 2px solid var(--border-medium);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
}

.discord-widget-container h3 {
    font-family: Georgia, serif;
    font-size: 1.1rem;
    color: var(--primary-gold);
    margin-bottom: 1rem;
    font-weight: normal;
}

.discord-widget-container iframe {
    border-radius: 6px;
    max-width: 100%;
}

.widget-fallback {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.75rem;
}

.widget-fallback a {
    color: var(--link-color);
}

.getting-started-link {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-subtle);
}

.getting-started-link p {
    color: var(--text-muted);
}

.getting-started-link a {
    color: var(--link-color);
}

.section-intro {
    text-align: center;
    color: var(--text-muted);
    max-width: 700px;
    margin: -1rem auto 2.5rem;
}

/* ============================================
   About Micras Section
   ============================================ */

.about-micras {
    background-color: var(--bg-surface);
    max-width: 100%;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.about-micras > * {
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
}

/* Compact Micras Layout */
.micras-compact {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 2rem;
    max-width: var(--max-width);
    margin: 0 auto;
    align-items: center;
}

.micras-map-compact {
    margin: 0;
}

.micras-map-compact img {
    width: 100%;
    height: auto;
    border: 2px solid var(--border-medium);
    border-radius: 6px;
    box-shadow: var(--shadow-glow);
}

.micras-map-compact figcaption {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
}

.micras-info p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: var(--text-primary);
}

.micras-info p a {
    color: var(--link-color);
}

.micras-links-compact {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.micras-links-compact a {
    color: var(--primary-gold);
    text-decoration: none;
    font-weight: 500;
}

.micras-links-compact a:hover {
    text-decoration: underline;
    color: var(--primary-gold-light);
}

@media (max-width: 768px) {
    .micras-compact {
        grid-template-columns: 1fr;
    }

    .micras-map-compact {
        max-width: 300px;
        margin: 0 auto;
    }
}

/* ============================================
   Community Rules Section
   ============================================ */

.community-rules {
    background-color: var(--bg-deep);
}

.rules-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.rules-card {
    background-color: var(--bg-card);
    border: 2px solid var(--border-subtle);
    border-radius: 8px;
    padding: 1.5rem;
    transition: border-color 0.2s ease;
}

.rules-card:hover {
    border-color: var(--primary-purple);
}

.rules-icon {
    font-size: 2rem;
    color: var(--primary-gold);
    margin-bottom: 0.75rem;
}

.rules-card h3 {
    font-size: 1.1rem;
    color: var(--primary-gold);
    margin-bottom: 0.75rem;
}

.rules-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.rules-list {
    margin-bottom: 1rem;
}

.rules-list li {
    padding: 0.4rem 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    padding-left: 0.5rem;
    border-left: 2px solid var(--primary-purple);
    margin-bottom: 0.5rem;
}

.rules-list li a {
    color: var(--link-color);
}

.rules-link {
    display: inline-block;
    font-size: 0.9rem;
    color: var(--primary-gold);
    font-weight: 600;
}

.rules-link:hover {
    color: var(--primary-gold-light);
}

.rules-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-subtle);
}

.rules-footer p {
    color: var(--text-muted);
}

.rules-footer a {
    color: var(--link-color);
}

/* ============================================
   Learn More / Explore Section
   ============================================ */

.learn-more {
    background-color: var(--bg-card);
}

.link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.link-card {
    display: block;
    background-color: var(--bg-elevated);
    border: 2px solid var(--border-subtle);
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.2s ease;
    text-decoration: none;
}

.link-card:hover {
    border-color: var(--primary-purple);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
    text-decoration: none;
}

.link-card h3 {
    font-size: 1.1rem;
    color: var(--primary-gold);
    margin-bottom: 0.5rem;
}

.link-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ============================================
   Simple Footer (used by sub-pages like AI policy)
   ============================================ */

.footer {
    background: var(--primary-purple-dark);
    color: var(--text-primary);
    padding: 2rem;
    text-align: center;
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
}

.footer-links {
    opacity: 0.8;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--primary-gold);
}

.footer-links a:hover {
    color: var(--primary-gold-light);
}

.footer-copyright {
    margin-top: 1rem;
    font-size: 0.85rem;
    opacity: 0.6;
}

/* ============================================
   Footer (Government Portal Style)
   ============================================ */

.footer-gov {
    background: var(--primary-purple-dark);
    color: var(--text-primary);
    padding: 0;
}

.footer-gov-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2.5rem 2rem 1.5rem;
}

.footer-gov-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    margin-bottom: 1.5rem;
}

.footer-gov-brand img {
    width: 50px;
    height: auto;
}

.footer-gov-brand strong {
    display: block;
    font-family: Georgia, serif;
    font-size: 1.1rem;
    font-weight: normal;
    color: var(--text-white);
}

.footer-motto {
    display: block;
    font-size: 0.85rem;
    color: var(--primary-gold);
    margin-top: 0.25rem;
}

.footer-gov-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    margin-bottom: 1.5rem;
}

.footer-link-column h4 {
    font-family: Georgia, serif;
    font-size: 0.9rem;
    font-weight: normal;
    color: var(--primary-gold);
    margin-bottom: 0.75rem;
}

.footer-link-column a {
    display: block;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.85rem;
    padding: 0.25rem 0;
    opacity: 0.8;
}

.footer-link-column a:hover {
    opacity: 1;
    text-decoration: underline;
    color: var(--text-white);
}

.footer-gov-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-gov-bottom .footer-social {
    display: flex;
    gap: 0.75rem;
    margin: 0;
}

.footer-gov-bottom .footer-social a {
    color: var(--text-primary);
    opacity: 0.7;
    transition: opacity 0.2s;
}

.footer-gov-bottom .footer-social a:hover {
    opacity: 1;
}

.footer-gov-bottom .footer-copyright {
    margin: 0;
    font-size: 0.8rem;
    opacity: 0.6;
}

.footer-gov-bottom .footer-copyright a {
    color: var(--primary-gold);
}

@media (max-width: 768px) {
    .footer-gov-links {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-gov-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
    :root {
        --section-padding: 3rem 1.5rem;
        --card-padding: 1.5rem;
    }

    .hero {
        padding: 3rem 1.5rem 4rem;
    }

    .coat-of-arms {
        width: 160px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .tagline {
        font-size: 1.1rem;
    }

    section h2 {
        font-size: 1.75rem;
    }

    .pace-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .pace-ratio {
        font-size: 2rem;
    }

    .pace-details {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .pace-item {
        flex: 1;
        min-width: 140px;
    }

    .rules-grid {
        grid-template-columns: 1fr;
    }

    .join-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .discord-widget-container {
        position: static;
        order: -1;
    }

    .discord-widget-container iframe {
        width: 100%;
        max-width: 350px;
        height: 400px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .cta-button {
        width: 100%;
        max-width: 280px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.75rem;
    }

    .tagline {
        font-size: 1rem;
    }

    .cta-button {
        padding: 0.875rem 2rem;
        font-size: 1rem;
        width: 100%;
        text-align: center;
    }

    .card-grid,
    .link-grid {
        grid-template-columns: 1fr;
    }

    section h2 {
        font-size: 1.5rem;
    }
}

/* ============================================
   Accessibility
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* Focus states for keyboard navigation */
a:focus,
.cta-button:focus {
    outline: 3px solid var(--primary-gold);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .card,
    .link-card,
    .rules-card {
        border-width: 3px;
    }
}
