/* 
    SUNTEX NIGERIA ENTERPRISES - Mobile-First Stylesheet
    Color Scheme: Construction Orange (#FF7F00), Black (#000000), White (#FFFFFF)
*/

:root {
    --primary: #FF7F00;
    --primary-dark: #cc6600;
    --secondary: #000000;
    --accent: #FF9933;
    --text-light: #FFFFFF;
    --text-dark: #1A1A1A;
    --text-muted: #666666;
    --bg-light: #FFFFFF;
    --bg-grey: #F4F4F4;
    --bg-dark: #111111;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Fluid Spacing & Typography */
    --padding-mobile: 60px 0;
    --padding-desktop: 100px 0;
}

/* 1. RESET & BASE STYLES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.2;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

p {
    margin-bottom: 1.5rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 2. NAVIGATION (Mobile-First) */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo span { color: white; }

/* Mobile Menu Button */
.hamburger {
    position: relative;
    width: 30px;
    height: 20px;
    cursor: pointer;
    z-index: 2100;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background: white;
    border-radius: 4px;
    transition: var(--transition);
}

/* Mobile Menu Overlay */
.nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: var(--secondary);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    transition: 0.5s ease;
    z-index: 2050;
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
}

.nav-links.active {
    right: 0;
}

.nav-links a {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
}

.nav-links a.active, .nav-links a:hover {
    color: var(--primary);
}

.nav-cta {
    display: none; /* Hidden on small mobile */
}

/* Hamburger active state */
.hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* 3. HERO (Mobile-First) */
.hero {
    min-height: 100vh;
    padding-top: 70px;
    background: linear-gradient(rgba(0,0,0,0.75), rgba(0,0,0,0.75)), url('assets/images/suntex_hero_image_1775054789110.png') center/cover no-repeat;
    display: flex;
    align-items: center;
    color: white;
    text-align: center;
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    margin-bottom: 25px;
}

.hero h1 span { color: var(--primary); }

.hero p {
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto 40px;
    opacity: 0.9;
}

.hero-btns {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* 4. BUTTONS */
.btn {
    display: inline-block;
    padding: 16px 32px;
    border-radius: 4px;
    font-weight: 800;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    text-align: center;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 127, 0, 0.4);
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* 5. SECTIONS GENERAL */
section {
    padding: var(--padding-mobile);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: clamp(2rem, 5vw, 2.5rem);
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 4px;
    background: var(--primary);
}

/* 6. GRID LAYOUTS (Mobile-First) */
.services-grid, .gallery-grid, .footer-grid, .contact-grid, .service-detail-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.service-detail-card {
    margin-bottom: 60px;
}

.service-detail-img img {
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.service-detail-content h3 {
    color: var(--primary);
    margin-bottom: 15px;
}

.service-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 20px;
}

.service-features li {
    position: relative;
    padding-left: 25px;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

/* Service Card */
.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: left;
    border-left: 5px solid var(--primary);
}

.service-icon {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 25px;
}

/* Why Us Section */
.why-us {
    background: var(--bg-dark);
    color: white;
}

.why-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
}

.why-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.why-item-icon {
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

/* 7. FOOTER (Mobile-First) */
footer {
    background: #050505;
    color: white;
    padding: 60px 0 30px;
}

.footer-col h4 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 1.125rem;
}

.footer-links li { margin-bottom: 12px; }
.footer-links a:hover { color: var(--primary); padding-left: 8px; }

.footer-contact li {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid rgba(255,255,255,0.05);
    text-align: center;
    font-size: 13px;
    opacity: 0.5;
}

/* 8. GALLERY */
.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-overlay {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    padding: 25px;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    color: white;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    bottom: 0;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* 9. CONTACT FORM */
.contact-info-card {
    background: var(--bg-dark);
    color: white;
    padding: 40px;
    border-radius: 12px;
}

.contact-info-card h3 {
    margin-bottom: 25px;
    color: var(--primary);
}

.info-item {
    margin-bottom: 25px;
    display: flex;
    gap: 15px;
}

.info-icon {
    color: var(--primary);
    font-size: 20px;
    flex-shrink: 0;
}

.whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #25D366;
    color: white;
    padding: 15px;
    border-radius: 4px;
    font-weight: 700;
    margin-top: 25px;
}

.contact-form-side {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 700; }
.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 16px;
}

/* ===========================================
   MEDIA QUERIES (PROGRESSIVE ENHANCEMENT)
   =========================================== */

/* Tablet & Large Phone (min-width: 480px) */
@media (min-width: 480px) {
    .hero-btns {
        flex-direction: row;
        justify-content: center;
    }
    .btn { width: auto; }
}

/* Tablet Landscape / Large Tablet (min-width: 768px) */
@media (min-width: 768px) {
    section { padding: var(--padding-desktop); }
    
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    
    .why-grid { grid-template-columns: repeat(2, 1fr); align-items: center; }
    
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Desktop & Laptop (min-width: 1024px) */
@media (min-width: 1024px) {
    nav { height: 90px; }
    
    .hamburger { display: none; }
    
    .nav-links {
        position: static;
        width: auto;
        height: auto;
        background: transparent;
        flex-direction: row;
        gap: 40px;
        box-shadow: none;
        transition: none;
    }
    
    .nav-links a {
        font-size: 14px;
        font-weight: 600;
    }
    
    .nav-cta {
        display: block;
    }
    
    .hero { text-align: left; }
    .hero-btns { justify-content: flex-start; }
    
    .services-grid { grid-template-columns: repeat(3, 1fr); }
    
    .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.5fr; }
    
    .contact-grid { grid-template-columns: 1fr 1.5fr; gap: 60px; }
    
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
    
    .service-detail-card {
        display: grid;
        grid-template-columns: 1fr 1.2fr;
        gap: 60px;
        align-items: center;
    }
    
    .service-detail-card:nth-child(even) {
        direction: rtl;
    }
    
    .service-detail-card:nth-child(even) .service-detail-content {
        direction: ltr;
    }
}

/* Large Screens (min-width: 1240px) */
@media (min-width: 1440px) {
    body { font-size: 18px; }
}

/* 10. STATS SECTION */
.stats {
    background: var(--bg-light);
    padding: 60px 0;
    border-top: 1px solid #eee;
    text-align: center;
}

.stat-item h2 {
    color: var(--primary);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 10px;
}

.stat-item p {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    color: var(--text-muted);
}

@media (min-width: 768px) {
    .stats .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* 11. UTILITIES */
.bg-white { background-color: #ffffff; }
.text-left { text-align: left !important; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mt-40 { margin-top: 40px; }
.mb-20 { margin-bottom: 20px; }
.color-primary { color: var(--primary); }
.pb-10 { padding-bottom: 10px; }
