/* ============================================
   LUSTYN 2025 - SAFETY PAGE
   Updated: February 7, 2026
   Following root design system
   ============================================ */

/* ============================================
   RESET & BASE
   ============================================ */

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

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

html, body {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-base);
    background: var(--bg-primary);
    color: var(--text-primary);
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

:focus-visible {
    outline: 2px solid var(--brand-accent);
    outline-offset: 2px;
}

/* ============================================
   MAIN CONTENT
   ============================================ */

.main-content {
    padding-block-start: 0;
}

/* ============================================
   SAFETY HERO
   ============================================ */

.safety-hero {
    position: relative;
    block-size: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-inline: var(--space-5);
    text-align: center;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

.safety-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-transparent);
    z-index: 1;
}

.safety-hero-content {
    position: relative;
    z-index: 2;
    max-inline-size: 800px;
    
    & h1 {
        font-size: clamp(var(--font-3xl), 8vw, var(--font-3-75xl));
        font-weight: var(--font-weight-semibold);
        line-height: var(--line-height-tight);
        margin-block-end: var(--space-6);
        color: var(--text-primary);
    }
    
    & p {
        font-size: clamp(var(--font-lg), 3vw, var(--font-xl));
        line-height: var(--line-height-normal);
        color: var(--text-muted);
    }
}

/* ============================================
   SAFETY CONTENT
   ============================================ */

.safety-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-10);
    max-inline-size: 320px;
    margin-inline: auto;
    padding-block: var(--space-12);
    text-align: left;
    inline-size: 100%;
}

.content-block {
    inline-size: 100%;
    
    & h2 {
        font-size: var(--font-2xl);
        font-weight: var(--font-weight-semibold);
        margin-block-end: var(--space-4);
        color: var(--text-primary);
    }
    
    & p {
        font-size: var(--font-lg);
        line-height: var(--line-height-normal);
        color: var(--text-muted);
        margin-block-end: var(--space-6);
    }
    
    & ul {
        list-style: none;
        padding: 0;
        margin: 0;
        
        & li {
            font-size: var(--font-base);
            line-height: var(--line-height-normal);
            color: var(--text-muted);
            margin-block-end: var(--space-3);
            padding-inline-start: var(--space-6);
            position: relative;
            
            &::before {
                content: '•';
                position: absolute;
                left: 0;
                color: var(--brand-primary);
                font-weight: var(--font-weight-bold);
            }
            
            & strong {
                color: var(--text-primary);
                font-weight: var(--font-weight-semibold);
            }
        }
    }
    
    & .inline-link {
        color: var(--link-color);
        text-decoration: none;
        font-weight: var(--font-weight-medium);
        
        &:hover {
            color: var(--link-hover-color);
            text-decoration: underline;
        }
    }
}

/* ============================================
   FOOTER
   ============================================ */

.landing-footer {
    background: var(--bg-primary);
    border-block-start: 1px solid var(--border-light);
    padding-block: var(--space-12);
    padding-inline: var(--space-5);
}

.footer-content {
    max-inline-size: 1200px;
    margin-inline: auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
    text-align: center;
    
    & img {
        inline-size: 48px;
        block-size: 48px;
        border-radius: var(--radius-lg);
    }
    
    & span {
        font-size: var(--font-2xl);
        font-weight: var(--font-weight-bold);
        color: var(--text-primary);
    }
}

.footer-tagline {
    font-size: var(--font-base);
    color: var(--text-muted);
    line-height: var(--line-height-normal);
    max-inline-size: 400px;
    margin-inline: auto;
    text-align: center;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
    max-inline-size: 400px;
    margin-inline: auto;
    
    & a {
        color: var(--link-color);
        text-decoration: none;
        font-size: var(--font-base);
        font-weight: var(--font-weight-medium);
        opacity: 0.7;
        transition: all var(--transition-fast);
        padding: var(--space-3);
        border-radius: var(--radius-md);
        text-align: center;
        
        &:hover {
            color: var(--link-hover-color);
            opacity: 1;
            background: var(--bg-hover);
        }
    }
}

.footer-copyright {
    font-size: var(--font-sm);
    color: var(--text-muted);
    padding-block-start: var(--space-8);
    border-block-start: 1px solid var(--border-light);
    text-align: center;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (min-width: 768px) {
    .safety-hero {
        min-block-size: 80vh;
        padding-block-start: calc(var(--header-logo-size) + var(--space-12) + var(--space-8));
        padding-inline: var(--space-10);
    }
    
    .safety-content {
        max-inline-size: 640px;
        padding-block: var(--space-12);
    }
    
    .content-block {
        
        & h2 {
            font-size: var(--font-2xl);
        }
        
        & p {
            font-size: var(--font-lg);
        }
    }
    
    .landing-footer {
        padding-inline: var(--space-10);
    }
    
    .footer-links {
        grid-template-columns: repeat(3, 1fr);
        max-inline-size: 600px;
    }
}

@media (min-width: 968px) {
    .footer-links {
        grid-template-columns: repeat(6, 1fr);
        max-inline-size: 800px;
    }
}

@media (min-width: 1200px) {
    .safety-content {
        max-inline-size: 800px;
    }
}

/* ============================================
   PERFORMANCE OPTIMIZATIONS
   ============================================ */

img[loading="lazy"] {
    content-visibility: auto;
}

img {
    max-inline-size: 100%;
    block-size: auto;
}