/*
 * ======================================================================
 * Envazi.com Stylesheet
 * ======================================================================
 */

/* 1. CSS Variables (The "Brand") */
:root {
    --primary-color: #ff4200;
    --primary-hover: #e03900;
    --dark-color: #232323;
    --light-color: #f7f8fa;
    --white-color: #ffffff;
    --text-color: #313131;
    --border-color: #dee2e6;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
    --border-radius: 8px;
    --font-main: 'Roboto', sans-serif;
}

/* 2. Base & Typography */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--white-color);
    -webkit-font-smoothing: antialiased;
}
/* Stops body from scrolling when modal is open */
body.modal-open {
    overflow: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--dark-color);
    line-height: 1.3;
    margin-bottom: 1rem;
}
h1 { font-size: clamp(2.5rem, 5vw, 3.75rem); }
h2 { font-size: clamp(2rem, 4vw, 3.125rem); text-align: center; }
h3 { font-size: 24px; line-height: 38px; font-weight: 300; }
p { margin-bottom: 1rem; }
a { color: var(--primary-color); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--primary-hover); }
img, canvas { max-width: 100%; height: auto; }
ul { list-style: none; }

/* 3. Layout & Utility */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.container.small { max-width: 800px; }
.content-section { padding: 6rem 0; }
.bg-light { background-color: var(--light-color); }
.bg-dark { background-color: var(--dark-color); color: var(--light-color); }
.bg-dark h2, .bg-dark h3, .bg-dark p { color: var(--white-color); }
.section-intro { font-size: 1.25rem; color: var(--text-color); text-align: center; max-width: 700px; margin: 0 auto 3rem auto; }
.bg-dark .section-intro { color: #ccc; }

/* 4. Buttons (CTAs) */
.cta-primary, .cta-secondary, .cta-nav {
    display: inline-block;
    padding: 0.8rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}
.cta-primary { background-color: var(--primary-color); color: var(--white-color); }
.cta-primary:hover { background-color: var(--primary-hover); color: var(--white-color); transform: translateY(-3px); box-shadow: 0 4px 15px rgba(255, 66, 0, 0.3); }
.cta-secondary { background-color: transparent; color: var(--dark-color); border-color: var(--border-color); }
.cta-secondary:hover { background-color: var(--dark-color); color: var(--white-color); border-color: var(--dark-color); }
.bg-dark .cta-secondary, #hero .cta-secondary { color: var(--white-color); border-color: rgba(255, 255, 255, 0.5); }
.bg-dark .cta-secondary:hover, #hero .cta-secondary:hover { background-color: var(--white-color); color: var(--dark-color); border-color: var(--white-color); }
.cta-group { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
#hero .cta-group { justify-content: flex-start; }
@media (max-width: 768px) { #hero .cta-group { justify-content: center; } }

/* 5. Header & Navigation */
.main-header { background-color: var(--white-color); border-bottom: 1px solid var(--border-color); padding: 1rem 0; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); }
.main-nav { display: flex; justify-content: space-between; align-items: center; }
.logo img { height: 40px; width: auto; transition: transform 0.3s ease; }
.logo img:hover { transform: scale(1.05); }
.nav-menu { display: flex; align-items: center; gap: 1.5rem; }
.nav-menu li a { font-weight: 600; color: var(--text-color); font-size: 1rem; }
.nav-menu li a:hover { color: var(--primary-color); }
.cta-nav { background: var(--primary-color); color: var(--white-color) !important; padding: 0.5rem 1rem; }
.cta-nav:hover { background: var(--primary-hover); color: var(--white-color); }
.mobile-nav-toggle { display: none; font-size: 1.5rem; background: none; border: none; color: var(--dark-color); cursor: pointer; }

/* 6. Section Specifics */
/* --- Hero --- */
.hero-section { color: var(--white-color); padding: 8rem 0; min-height: 80vh; display: flex; align-items: center; }
.hero-content { max-width: 800px; }
.hero-section h1 { color: var(--white-color); margin-bottom: 1.5rem; }
.hero-section .sub-headline { font-size: 1.25rem; color: rgba(255, 255, 255, 0.85); line-height: 1.8; }
@media (max-width: 768px) { .hero-section { padding: 5rem 0; text-align: center; } }

/* --- Solution (Service Grid) --- */
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; margin-top: 4rem; }
.service-card { background: var(--white-color); padding: 2.5rem; border-radius: var(--border-radius); box-shadow: var(--card-shadow); transition: all 0.3s ease; border-top: 4px solid var(--primary-color); }
.service-card:hover { transform: translateY(-8px); box-shadow: var(--card-shadow-hover); }
.card-icon { font-size: 3rem; color: var(--primary-color); margin-bottom: 1.5rem; }

/* --- Process --- */
.process-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; margin-top: 4rem; }
.process-chart { background: var(--light-color); padding: 2rem; border-radius: var(--border-radius); box-shadow: var(--card-shadow); }
.timeline { list-style: none; position: relative; padding-left: 3rem; }
.timeline::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--primary-color); opacity: 0.2; }
.timeline li { position: relative; margin-bottom: 2rem; }
.timeline li::before { content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; left: -3rem; top: 0; width: 32px; height: 32px; background: var(--primary-color); color: var(--white-color); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; }
.timeline li strong { font-size: 1.25rem; display: block; margin-bottom: 0.25rem; }

/* --- Results --- */
.results-list { margin-top: 3rem; text-align: left; max-width: 600px; margin-left: auto; margin-right: auto; }
.results-list li { font-size: 1.25rem; margin-bottom: 1rem; display: flex; align-items: center; gap: 0.75rem; }
.results-list .fa-check-circle { color: var(--primary-color); font-size: 1.5rem; }
.progress-visual { margin-top: 4rem; }
.progress-visual p { font-size: 1.1rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; opacity: 0.8; }
.progress-visual p span { color: var(--primary-color); font-weight: 800; margin: 0 0.5rem; }
.progress-bar { width: 100%; height: 12px; background: rgba(255, 255, 255, 0.2); border-radius: 10px; overflow: hidden; margin-top: 1rem; }
.progress-bar-inner { height: 100%; width: 100%; background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-hover) 100%); border-radius: 10px; animation: loadProgress 3s ease-out forwards; }
@keyframes loadProgress { from { transform: translateX(-100%); } to { transform: translateX(0); } }

/* --- Final CTA --- */
.cta-section { text-align: center; }
.cta-section .sub-headline { font-size: 1.25rem; }

/* * ======================================================================
 * NEW: POP-UP MODAL STYLES
 * ======================================================================
 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 2000;
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--white-color);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 800px; /* Wider modal for more fields */
    max-height: 90vh; /* Max height */
    overflow-y: auto; /* Scrollable if content overflows */
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}
.modal-overlay.active .modal-content {
    transform: scale(1);
}
.modal-content h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.modal-content p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    color: #555;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2.5rem;
    font-weight: 300;
    color: #999;
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
}
.modal-close:hover {
    color: var(--dark-color);
}

/* Modal Form Styles */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}
#contactForm {
    text-align: left;
}
#contactForm .form-group {
    margin-bottom: 0; /* Gaps handled by grid */
}
#contactForm label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}
#contactForm .form-group input,
#contactForm .form-group textarea {
    width: 100%;
    padding: 0.9rem;
    border: 1px solid var(--border-color);
    background: var(--light-color);
    border-radius: var(--border-radius);
    color: var(--text-color);
    font-family: var(--font-main);
    font-size: 1rem;
}
#contactForm .form-group input:focus,
#contactForm .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 66, 0, 0.25);
}
/* Full-width for textarea */
#contactForm .form-group:has(textarea) {
    grid-column: 1 / -1;
}

span.required {
    color: var(--primary-color);
    font-weight: 700;
}
p.required-note {
    font-size: 0.9rem;
    color: #777;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

#contactForm button[type="submit"] {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
}

#form-message {
    margin-top: 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
}
#form-message.success { color: #28a745; }
#form-message.error { color: #dc3545; }


/*
 * ======================================================================
 * UPDATED: FOOTER STYLES
 * ======================================================================
 */
.main-footer {
    background: var(--dark-color);
    color: #ccc;
    padding: 5rem 0 2rem 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr; /* Updated 3-column layout */
    gap: 3rem;
    margin-bottom: 3rem;
}
.main-footer h3 {
    color: var(--white-color);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}
.footer-logo {
    height: 35px;
    width: auto;
    margin-bottom: 0.5rem;
}
.footer-links ul li {
    margin-bottom: 0.75rem;
}
.footer-links ul li a {
    color: #ccc;
}
.footer-links ul li a:hover {
    color: var(--white-color);
    text-decoration: underline;
}
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
}

/* 7. Responsive Design */
@media (max-width: 992px) {
    .process-wrapper { grid-template-columns: 1fr; }
    .process-chart { margin-top: 3rem; }
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2.5rem; }
    .content-section { padding: 4rem 0; }
    .hero-section { text-align: center; }

    /* Mobile Nav */
    .nav-menu { display: none; position: absolute; top: 67px; left: 0; right: 0; background: var(--white-color); flex-direction: column; padding: 1rem 0; box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1); border-top: 1px solid var(--border-color); }
    .nav-menu.active { display: flex; }
    .nav-menu li { width: 100%; text-align: center; }
    .nav-menu li a { display: block; padding: 1rem; }
    .cta-nav { width: 90%; margin: 0.5rem auto; }
    .mobile-nav-toggle { display: block; }

    .service-grid { grid-template-columns: 1fr; }
    
    /* Responsive Modal Form */
    .form-grid {
        grid-template-columns: 1fr; /* Stack fields on mobile */
        gap: 1rem;
    }

    /* Responsive Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-about, .footer-links {
        margin-bottom: 2rem;
    }
}