/**
 * Main Component Styles
 * File: assets/css/main.css
 * 
 * This file contains component-specific styles that augment the global design system.
 * It adheres to the strict B&W Minimalist aesthetic.
 */

:root {
    --container-max: 1280px;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */
.site-header {
    background: #fff !important;
    border-bottom: 1px solid #000;
    padding: 25px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 2000;
    transition: var(--transition-smooth);
}

.site-header.scrolled {
    background: #000 !important;
    padding: 15px 0;
    border-bottom: none;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-menu > li > a {
    color: #000;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: 10px 15px;
    transition: var(--transition-smooth);
}

.site-header.scrolled .nav-menu > li > a {
    color: #fff;
}

.nav-menu > li > a:hover {
    color: var(--color-accent);
}

/* ============================================================
   FORMS: PREMIUM B&W
   ============================================================ */
.minimal-form input,
.minimal-form select,
.minimal-form textarea {
    width: 100%;
    background: #fff !important;
    border: 1px solid #000 !important;
    border-radius: 0 !important;
    padding: 16px 20px !important;
    font-size: 15px !important;
    color: #000 !important;
    transition: all 0.3s ease;
}

.minimal-form label {
    display: block;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 11px;
    margin-bottom: 10px;
    color: #000;
}

.minimal-form input:focus,
.minimal-form select:focus,
.minimal-form textarea:focus {
    outline: none;
    border-color: var(--color-accent) !important;
    box-shadow: 0 0 0 4px rgba(255,107,0,0.1);
}

/* ============================================================
   GRID & LAYOUT
   ============================================================ */
.section-padding { padding: 120px 0; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px; }

/* ============================================================
   MOBILE RESPONSIVENESS PATCH
   ============================================================ */
@media (max-width: 991px) {
    .grid-2, .grid-3 { grid-template-columns: 1fr; gap: 60px; }
}

@media (max-width: 768px) {
    /* Header Scalability */
    .site-header { padding: 15px 0 !important; }
    .site-logo span:first-child { font-size: 20px !important; }
    
    /* Hero Section Fixes */
    .hero-section { 
        padding-top: 150px !important; /* Clearing Fixed Header + Topbar */
        min-height: auto !important;
        padding-bottom: 80px !important;
    }
    
    .hero-inner {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
    }
    
    .hero-content {
        max-width: 100% !important;
        margin-bottom: 60px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }
    
    .hero-headline {
        font-size: 2.5rem !important;
        line-height: 1.2 !important;
        margin-bottom: 20px !important;
    }
    
    .hero-subtext {
        font-size: 1rem !important;
        margin-inline: auto !important;
    }

    .hero-actions {
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    /* Layout Grids Stacking (Comprehensive) */
    .paths-grid, 
    .services-grid, 
    .guarantees-grid,
    .testimonials-grid,
    .blog-grid,
    .footer-grid,
    .fra-cta-inner {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
        display: grid !important;
    }
    
    /* Form Stack Fixes */
    .minimal-form > div[style*="display: grid"],
    .form-row {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    .fra-form-card {
        padding: 40px 25px !important;
    }

    /* Footer Alignment */
    .site-footer {
        padding-top: 80px !important;
        text-align: center !important;
    }
    
    .footer-brand, 
    .footer-col {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }
    
    .footer-logo {
        align-items: center !important;
        margin-bottom: 20px;
    }
    
    .footer-brand p {
        margin-inline: auto !important;
    }
    
    .footer-contact-info {
        margin-top: 20px !important;
    }
    
    .footer-bar .container {
        flex-direction: column !important;
        gap: 20px !important;
    }

    .footer-legal {
        justify-content: center !important;
    }

    /* Global Edge Padding & Section Scale */
    .section, 
    .section-padding,
    .hero-section,
    .site-footer {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    .section { padding-block: 80px !important; }
    .section--lg { padding-block: 100px !important; }
}

@media (max-width: 480px) {
    .hero-headline {
        font-size: 2rem !important;
    }
    
    .hero-section {
        padding-top: 130px !important;
    }
}

/* ============================================================
   UTILITIES
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.grayscale-hover {
    filter: grayscale(1);
    transition: all 0.5s ease;
}

.grayscale-hover:hover {
    filter: grayscale(0);
}
