/* =========================================
   CORE VARIABLES & TYPOGRAPHY
========================================= */
:root {
    --primary-red: #d31124;
    --primary-black: #000000;
    --bg-white: #ffffff;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-white);
    color: var(--primary-black);
    line-height: 1.6;
}

h1, h2, h3 { font-family: var(--font-heading); font-weight: 600; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
.container { max-width: 1200px; margin: 0 auto; padding: 40px 20px; }
.text-red { color: var(--primary-red); }

/* =========================================
   NAVIGATION & HEADER
========================================= */
.navbar { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 30px 5%; /* Increased top/bottom padding for breathing room */
    border-bottom: 1px solid #eaeaea; 
    background: var(--bg-white); 
    position: relative; 
    z-index: 100; 
}
.site-logo { max-height: 60px; width: auto; }
.nav-links { display: flex; gap: 30px; align-items: center; font-weight: bold; }
.nav-links a:hover { color: var(--primary-red); }

.hamburger { display: none; cursor: pointer; width: 30px; height: 21px; flex-direction: column; justify-content: space-between; }
.hamburger span { display: block; height: 3px; width: 100%; background-color: var(--primary-black); transition: 0.3s; }

/* =========================================
   BUTTONS
========================================= */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 14px 32px;
    font-family: var(--font-body);
    border: 2px solid var(--primary-red);
    cursor: pointer;
    transition: 0.3s;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.9rem;
    text-align: center;
}
.btn-primary { background: var(--primary-red); color: var(--bg-white); }
.btn-secondary { background: transparent; color: var(--primary-black); border-color: var(--primary-black); }
.btn-primary:hover { background: transparent; color: var(--primary-red); }
.btn-secondary:hover { background: var(--primary-red); color: white; border-color: var(--primary-red); }
.btn-pill { border-radius: 50px; width: 100%; margin-top: 20px; }

/* =========================================
   HERO SLIDER
========================================= */
.hero-slider { position: relative; height: 70vh; min-height: 500px; overflow: hidden; background-color: var(--primary-black); }
.slide { 
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; 
    opacity: 0; transition: opacity 1s ease-in-out; 
    background-size: cover; background-position: center; 
    display: flex; align-items: center; justify-content: center; 
    text-align: center; color: var(--bg-white); 
}
.slide::after { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.6); z-index: 1; }
.slide.active { opacity: 1; z-index: 2; }
.hero-content { position: relative; z-index: 3; max-width: 900px; padding: 0 20px; }
.hero-content h1 { font-size: 4rem; margin-bottom: 10px; line-height: 1.1; text-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.hero-content p { font-size: 1.5rem; margin-bottom: 30px; }

/* =========================================
   MINI ABOUT
========================================= */
.mini-about { padding: 80px 20px; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-image-wrapper { position: relative; padding-right: 30px; padding-bottom: 30px; }
.about-bg-shape { position: absolute; bottom: 0; right: 0; width: 80%; height: 80%; background: #f4f4f4; z-index: -1; border-radius: 8px; }
.about-img-main { width: 100%; height: auto; border-radius: 8px; box-shadow: 0 15px 35px rgba(0,0,0,0.1); display: block; background: #333; }
.experience-badge { position: absolute; top: 30px; left: -30px; background: var(--primary-black); color: var(--bg-white); padding: 20px; text-align: center; border-radius: 8px; box-shadow: 0 10px 20px rgba(211, 17, 36, 0.2); border-bottom: 3px solid var(--primary-red); }
.badge-number { display: block; font-size: 2rem; font-family: var(--font-heading); font-weight: bold; color: var(--primary-red); }
.badge-text { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; }
.section-subtitle { color: var(--primary-red); text-transform: uppercase; letter-spacing: 2px; font-size: 0.9rem; margin-bottom: 10px; font-family: var(--font-body); }
.about-text-content h2 { font-size: 2.8rem; line-height: 1.2; margin-bottom: 25px; }
.lead-text { font-size: 1.15rem; font-weight: 600; margin-bottom: 20px; color: #333; }

/* =========================================
   SERVICES MATRIX
========================================= */
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-size: 2.5rem; margin-bottom: 10px; }
.accent-line { height: 2px; width: 60px; background-color: var(--primary-red); margin: 0 auto; }

.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px; margin-bottom: 60px; padding-top: 40px; }
.service-card { background: var(--bg-white); border: 1px solid #eaeaea; border-radius: 12px; padding: 50px 30px 40px; text-align: center; transition: all 0.4s ease; position: relative; box-shadow: 0 5px 15px rgba(0,0,0,0.03); display: flex; flex-direction: column;}
.service-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.08); border-color: var(--primary-red); }
.featured-card { border-color: var(--primary-red); box-shadow: 0 15px 35px rgba(211, 17, 36, 0.05); }

.card-icon-wrapper { position: absolute; top: -40px; left: 50%; transform: translateX(-50%); background: var(--bg-white); width: 80px; height: 80px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 25px rgba(0,0,0,0.1); border: 2px solid #f9f9f9; }
.custom-icon { width: 40px; height: 40px; }
.popular-badge { position: absolute; top: 15px; right: -30px; background: var(--primary-red); color: white; font-size: 0.75rem; font-weight: bold; text-transform: uppercase; padding: 5px 30px; transform: rotate(45deg); letter-spacing: 1px; z-index: 2; }
.service-desc { color: #666; font-size: 0.95rem; margin: 15px 0 25px; min-height: 70px; }
.service-features { list-style: none; margin: 20px 0 30px; padding: 0; text-align: left; border-top: 1px solid #eee; padding-top: 20px; flex-grow: 1;}
.service-features li { margin-bottom: 10px; font-size: 0.95rem; position: relative; padding-left: 25px; }
.service-features li::before { content: '✓'; position: absolute; left: 0; color: var(--primary-red); font-weight: bold; }

/* =========================================
   CTA SECTION
========================================= */
.cta-section { position: relative; background-image: url('../img/site/cta-bg.jpg'); background-color: var(--primary-black); background-size: cover; background-position: center; background-attachment: fixed; padding: 100px 20px; text-align: center; color: var(--bg-white); }
.cta-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.85); z-index: 1; }
.cta-content { position: relative; z-index: 2; }
.cta-content h2 { font-size: 3rem; margin-bottom: 20px; }
.cta-content p { font-size: 1.2rem; max-width: 700px; margin: 0 auto 40px; color: #cccccc; }
.btn-large { padding: 15px 35px; font-size: 1.1rem; }
.btn-light { border-color: var(--bg-white); color: var(--bg-white); }
.btn-light:hover { background: var(--bg-white); color: var(--primary-black); }
.cta-actions { display: flex; justify-content: center; gap: 20px; }

/* =========================================
   NEWS & BLOG GRID
========================================= */
.news-section { padding-bottom: 80px; }
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.news-card { border: 1px solid #eaeaea; transition: 0.3s; }
.news-card:hover { box-shadow: 0 10px 25px rgba(0,0,0,0.05); }
.news-img { height: 220px; background-size: cover; background-position: center; background-color: #ddd; }
.news-content { padding: 25px; }
.news-date { font-size: 0.8rem; color: var(--primary-red); text-transform: uppercase; letter-spacing: 1px; display: block; margin-bottom: 10px; }
.news-content h3 { font-size: 1.3rem; margin-bottom: 15px; }
.read-more { font-weight: bold; color: var(--primary-black); font-size: 0.9rem; border-bottom: 1px solid transparent; transition: 0.3s; }
.read-more:hover { color: var(--primary-red); border-color: var(--primary-red); }

/* =========================================
   PORTFOLIO GRID & PAGINATION
========================================= */
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; }
.client-card { border: 1px solid #eee; padding: 30px; text-align: center; transition: all 0.3s ease; display: flex; align-items: center; justify-content: center; height: 200px; }
.client-card:hover { border-color: var(--primary-red); transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.05); }
.client-card img { max-width: 100%; max-height: 100%; object-fit: contain; }
.pagination { display: flex; justify-content: center; align-items: center; margin-top: 50px; gap: 20px; font-family: var(--font-heading); font-size: 1.2rem;}
.pagination a { color: var(--primary-red); transition: 0.2s; }
.pagination a:hover { color: var(--primary-black); }

/* =========================================
   ENTERPRISE FOOTER
========================================= */
.enterprise-footer { background-color: #0a0a0a; color: #ffffff; padding: 80px 0 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 50px; padding-bottom: 50px; }
.footer-col h4 { font-size: 1.2rem; margin-bottom: 25px; position: relative; padding-bottom: 10px; }
.footer-col h4::after { content: ''; position: absolute; left: 0; bottom: 0; width: 30px; height: 2px; background: var(--primary-red); }
.footer-col p { color: #aaaaaa; font-size: 0.95rem; margin-bottom: 20px; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { color: #aaaaaa; transition: 0.3s; font-size: 0.95rem; }
.footer-col ul li a:hover { color: var(--bg-white); padding-left: 5px; }
.brand-col .footer-logo { max-height: 50px; margin-bottom: 20px; filter: brightness(0) invert(1); }
.social-links a { display: inline-block; width: 40px; height: 40px; line-height: 40px; text-align: center; border: 1px solid #333; border-radius: 50%; margin-right: 10px; color: #aaaaaa; transition: 0.3s; }
.social-links a:hover { background: var(--primary-red); color: white; border-color: var(--primary-red); }
.footer-form { display: flex; margin-top: 15px; }
.footer-form input { flex: 1; padding: 12px 15px; border: 1px solid #333; background: #111; color: white; font-family: var(--font-body); }
.footer-form input:focus { outline: none; border-color: var(--primary-red); }
.footer-form button { border-radius: 0; }
.footer-bottom { background: #000000; text-align: center; padding: 20px; color: #666; font-size: 0.85rem; border-top: 1px solid #1a1a1a; }

/* =========================================
   COOKIE BANNER
========================================= */
.cookie-banner { position: fixed; bottom: 0; left: 0; width: 100%; background: var(--primary-black); color: white; padding: 20px; text-align: center; display: none; z-index: 1000; border-top: 3px solid var(--primary-red); }

/* =========================================
   MOBILE RESPONSIVENESS
========================================= */

/* =========================================
   HAMBURGER TO "X" ANIMATION
========================================= */
.hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

@media (max-width: 992px) {
    .about-grid { grid-template-columns: 1fr; }
    .experience-badge { left: 10px; top: 10px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .cta-actions { flex-direction: column; }
    .hero-content h1 { font-size: 3rem; }
}

@media (max-width: 768px) {
    /* Keep navbar compact on mobile */
    .navbar { 
        padding: 15px 5%; 
    }
    
    /* Mobile Dropdown Menu */
    .nav-links { 
        display: none; 
        flex-direction: column; 
        width: 100%; 
        position: absolute; 
        top: 70px; 
        left: 0; 
        background: var(--bg-white); 
        padding: 20px 0; 
        text-align: center; 
        border-bottom: 1px solid #eee; 
        z-index: 99; 
    }
    
    .nav-links.active { 
        display: flex; 
    }
    
    .hamburger { 
        display: flex; 
    }
    
    /* Content Adjustments */
    .mini-about { 
        flex-direction: column; 
    }
    
    .hero-content h1 { 
        font-size: 2.2rem; 
    }
    
    /* Footer Adjustments */
    .footer-grid { 
        grid-template-columns: 1fr; 
        text-align: center; 
    }
    
    .footer-col h4::after { 
        left: 50%; 
        transform: translateX(-50%); 
    }
    
    .social-links a { 
        margin: 0 5px; 
    }
}