/* ===================================
   NITROCOMPRESS - ROCKET THEME
   Cel-shaded graphic novel design
   =================================== */

/* CSS Variables - Rocket Theme */
:root {
    /* Rocket color palette */
    --rocket-blue: #0EA5E9;
    --rocket-blue-dark: #0284C7;
    --rocket-orange: #F97316;
    --rocket-orange-dark: #EA580C;
    --rocket-purple: #1E1B4B;
    --rocket-cyan: #06B6D4;
    --rocket-green: #84CC16;
    
    /* Shoelace overrides */
    --sl-color-primary-600: #0EA5E9;
    --sl-color-primary-700: #0284C7;
    --sl-font-sans: 'Inter', -apple-system, system-ui, sans-serif;
    --sl-border-radius-medium: 4px;
    --sl-border-radius-large: 8px;

    /* Custom tokens */
    --max-width: 1280px;
    --color-text: #0f172a;
    --color-text-muted: #475569;
    --color-text-light: #64748b;
    --color-bg: #ffffff;
    --color-surface: #f8fafc;
    
    /* Cel-shaded borders */
    --outline-thick: 4px solid #000000;
    --outline-medium: 3px solid #000000;
    --outline-thin: 2px solid #000000;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Accessibility: Skip to main content link */
/* Screen reader only text */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Base Typography - Bold comic style */
body {
    font-family: 'Inter', -apple-system, system-ui, sans-serif;
    background: #ffffff;
    color: #0f172a;
    line-height: 1.7;
    font-size: 16px;
}

main {
    flex: 1;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: #0f172a;
    text-transform: uppercase;
}

h1 {
    font-size: clamp(3rem, 7vw, 5rem);
}

h2 {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--rocket-blue);
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 600;
}

a:hover {
    color: var(--rocket-orange);
}

/* Navigation - Cel-shaded with bold outline */
nav {    background: #ffffff;    border-bottom: 2px solid #000000;    padding: 1.5rem 2rem;    position: sticky;    top: 0;    z-index: 100;    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.1);    transition: padding 0.3s ease, box-shadow 0.3s ease;}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {    font-family: 'Space Grotesk', sans-serif;    font-size: 24px;    font-weight: 900;    letter-spacing: -0.02em;    color: var(--rocket-blue);    text-decoration: none;    text-transform: uppercase;    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.1);    transition: font-size 0.3s ease;}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    list-style: none;
}

.nav-links li {
    list-style: none;
}

.nav-links a {    color: #0f172a;    text-decoration: none;    font-weight: 700;    font-size: 15px;    transition: all 0.2s ease, font-size 0.3s ease;    letter-spacing: -0.01em;    text-transform: uppercase;}

.nav-links a:hover {
    color: var(--rocket-orange);
    transform: translateY(-2px);
}

/* Mobile menu toggle button */
/* Scrolled state - compact header */nav.scrolled {    padding: 0.35rem 2rem;    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);}nav.scrolled .brand {    font-size: 15px;}nav.scrolled .nav-links a {    font-size: 13px;}nav.scrolled .nav-menu li a {    font-size: 13px;}nav.scrolled .btn-primary-nav {    font-size: 13px;    padding: 0.5rem 1rem;    border: none;}
.navbar-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: var(--outline-medium);
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
}

.navbar-toggle span {
    display: block;
    width: 24px;
    height: 3px;
    background: #0f172a;
    transition: all 0.3s;
}

/* Hero - Rocket background with overlay */
.hero {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.92) 0%, rgba(6, 182, 212, 0.88) 100%), 
                url('/static/img/hero-rocket.jpg') center center / cover no-repeat;
    padding: 8rem 2rem 8rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: var(--outline-thick);
}

.hero h1 {
    margin-bottom: 1.5rem;
    color: #ffffff;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4),
                 4px 4px 16px rgba(0, 0, 0, 0.2);
}

.hero p {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    color: #ffffff;
    margin-bottom: 3rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    font-weight: 600;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.4),
                 2px 2px 12px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #ffffff;
    max-width: 700px;
    margin: 1.5rem auto;
    font-weight: 600;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.4),
                 2px 2px 12px rgba(0, 0, 0, 0.2);
}

.hero sl-button {
    font-weight: 700;
}

.hero sl-button::part(base) {
    font-size: 1.1rem;
    padding: 1rem 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.hero sl-button[variant=primary]::part(base) {
    background: var(--rocket-orange);
    border: none;
    color: white;
}

.hero sl-button[variant=default]::part(base) {
    background: #ffffff;
    border: none;
    color: #0f172a;
}
.hero-buttons {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Container */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 7rem 2rem;
}

.section-title {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--rocket-purple);
}

.section-subtitle {
    text-align: center;
    font-size: 1.125rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto 4rem;
    line-height: 1.6;
}

/* Service Cards - Comic book panels with bold outlines */
.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: #ffffff;
    border: var(--outline-thick);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translate(-4px, -4px);
    box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.15);
}

.service-card h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--rocket-blue);
}

.service-card sl-icon {
    font-size: 1.5rem;
}

.service-card ul {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.service-card ul li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-weight: 500;
}

.service-card ul li:before {
    content: 🚀;
    position: absolute;
    left: 0;
    font-size: 0.9rem;
}

/* Buttons - Bold comic style */
.btn-primary-nav {    background: var(--rocket-orange);    color: white !important;    padding: 0.75rem 1.5rem;    border-radius: 6px;    border: var(--outline-medium);    font-weight: 900;    text-transform: uppercase;    letter-spacing: 0.02em;    transition: all 0.2s ease, font-size 0.3s ease, padding 0.3s ease;    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.2);}

.btn-primary-nav:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.3);
    background: var(--rocket-orange-dark);
}

/* Flash Messages */
.flash-container {
    padding: 2rem 0 0;
}

.flash-container .container {
    padding: 0 2rem;
}

.flash-container sl-alert {
    margin-bottom: 1rem;
    border: var(--outline-medium);
}

/* CTA Section - Rocket flame gradient */
.cta-section {
    background: linear-gradient(135deg, var(--rocket-orange) 0%, var(--rocket-orange-dark) 100%);
    color: white;
    padding: 7rem 2rem;
    border-top: var(--outline-thick);
    border-bottom: var(--outline-thick);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 25px 25px;
    pointer-events: none;
}

.cta-section h2,
.cta-section p {
    color: white;
    position: relative;
    z-index: 1;
}

/* Footer - Deep space theme */
footer {
    background: var(--rocket-purple);
    color: #94a3b8;
    padding: 4rem 2rem 2rem;
    margin-top: 0;
    border-top: var(--outline-thick);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 800;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col ul li a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 500;
}

.footer-col ul li a:hover {
    color: var(--rocket-cyan);
}

.footer-bottom {
    border-top: 2px solid rgba(148, 163, 184, 0.2);
    padding-top: 2rem;
    text-align: center;
    color: #64748b;
}

/* Mobile Navigation */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-menu li a {    color: #0f172a;    text-decoration: none;    font-weight: 700;    transition: color 0.2s ease, font-size 0.3s ease;    text-transform: uppercase;}

.nav-menu li a:hover {
    color: var(--rocket-orange);
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        padding: 5rem 1.5rem;
    }
    
    h1 {
        font-size: 2.5rem;
    }

    .container {
        padding: 4rem 1.5rem;
    }

    .nav-links, .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        border-top: var(--outline-thick);
        box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.1);
    }

    .nav-links.active, .nav-menu.active {
        display: flex;
    }

    .navbar-toggle {
        display: flex;
    }

    .navbar-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .navbar-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .navbar-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
/* Shrink header more aggressively on mobile */    nav.scrolled {        padding: 0.25rem 1rem;    }        nav.scrolled .brand {        font-size: 14px;    }        nav.scrolled .nav-links a,    nav.scrolled .nav-menu li a {        font-size: 12px;    }        nav.scrolled .btn-primary-nav {        font-size: 12px;        padding: 0.4rem 0.8rem;
        border: none;    }
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .service-cards {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* Hero Stats - Better visibility */
.hero-stats {
    display: flex;
    gap: 3rem;
    justify-content: center;
    margin-top: 4rem;
    flex-wrap: wrap;
}

.hero-stats .stat {
    text-align: center;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 1.5rem 2rem;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    min-width: 200px;
}

.hero-stats .stat strong {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4),
                 4px 4px 16px rgba(0, 0, 0, 0.2);
}

.hero-stats .stat span {
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
}
