/* --- 1. Variables and Global Reset --- */
:root {
    --color-navy: #19366d; /* Deep Navy Blue (Hero/Accent) */
    --color-blue-accent: #007bff; /* Bright Blue Accent (CTA/Icons) */
    --color-text-dark: #1f2937; /* Dark Gray for headings */
    --color-text-gray: #6b7280; /* Subtitle/Body text */
    --color-bg-light: #ffffff;
    --font-primary: 'Inter', sans-serif;
}

* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
    scroll-behavior: smooth; 
}
body { 
    font-family: var(--font-primary); 
    line-height: 1.7; 
    color: var(--color-text-dark); 
    background-color: #f8f9fa; 
}
.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 20px; 
}
h2 { 
    font-size: 2.5rem; 
    font-weight: 800; 
    margin-bottom: 10px; 
    color: var(--color-text-dark); 
}
.section-subtitle { 
    font-size: 1.15rem; 
    color: var(--color-text-gray); 
    margin-bottom: 50px; 
    max-width: 800px; 
    margin-left: auto; 
    margin-right: auto; 
}
section { 
    padding: 80px 0; 
    text-align: center; 
}

/* --- 2. Header and Navigation --- */
.main-header { 
    background-color: var(--color-bg-light); 
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
}
.nav-content { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    height: 80px; 
}
.logo-group {
    display: flex;
    align-items: center;
    gap: 10px; /* Space between logo image and text */
}
.site-logo {
    height: 30px; 
    width: 30px;
    border-radius: 8px; 
    object-fit: contain; 
}
.logo { 
    font-size: 1.5rem; 
    font-weight: 700; 
    color: var(--color-navy); 
}
.logo span { 
    color: var(--color-blue-accent); 
}
/* Desktop Navigation Styling */
nav a { 
    color: var(--color-text-dark); 
    text-decoration: none; 
    margin-left: 30px; 
    font-weight: 500; 
    transition: color 0.3s; 
}
nav a:hover { 
    color: var(--color-blue-accent); 
}
.cta-button-nav { 
    background-color: var(--color-navy); 
    color: white !important; 
    padding: 10px 20px; 
    border-radius: 6px; 
    transition: background-color 0.3s; 
}
.cta-button-nav:hover { 
    background-color: #0c1a33; /* Darker navy */
}
.menu-toggle { 
    display: none; /* Hidden by default, shown on mobile */
    font-size: 1.5rem; 
    cursor: pointer; 
    color: var(--color-navy);
} 

/* --- 3. Hero Section --- */
#hero { 
    background-color: var(--color-navy); 
    color: #f5f5f5; 
    padding: 100px 0; 
    text-align: center; 
}
#hero h1 { 
    font-size: 3.5rem; 
    font-weight: 900; 
    margin-bottom: 10px; 
    line-height: 1.1; 
}
#hero h1 span { 
    color: rgba(255, 255, 255, 0.5); 
}
#hero p { 
    font-size: 1.25rem; 
    max-width: 700px; 
    margin: 0 auto 40px; 
    color: rgba(255, 255, 255, 0.8); 
}
.hero-btns {
    margin-bottom: 80px;
}
.hero-btns a { 
    text-decoration: none; 
    padding: 15px 30px; 
    border-radius: 6px; 
    font-weight: 600; 
    display: inline-block; 
    margin: 10px; /* Increased margin for better mobile touch target */
    transition: background-color 0.3s, transform 0.3s; 
}
.hero-btns .btn-primary { 
    background-color: white; 
    color: var(--color-navy); 
    border: 1px solid white; 
}
.hero-btns .btn-secondary { 
    background-color: transparent; 
    color: white; 
    border: 1px solid white; 
}
.stats-block { 
    display: flex; 
    justify-content: center; 
    gap: 80px; 
    margin-top: 80px; 
}
.stat-item {
    padding: 10px; /* Added padding to stat item */
}
.stat-item i {
    font-size: 1.8rem;
    color: var(--color-blue-accent);
    margin-bottom: 5px;
}
.stat-item .number { 
    font-size: 2.25rem; 
    font-weight: 800; 
    display: block; 
}
.stat-item .label { 
    font-weight: 500; 
    color: rgba(255, 255, 255, 0.7); 
}

/* --- 4. Services Grid --- */
.services-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px; 
    margin-top: 40px; 
}
.service-card { 
    background: var(--color-bg-light); 
    text-align: left; 
    padding: 40px; 
    border-radius: 12px; 
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.05); 
    transition: box-shadow 0.3s, transform 0.3s; 
    border: 1px solid #f0f0f0;
}
.service-card:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); 
}
.service-card .icon-box { 
    background-color: var(--color-navy); 
    color: white; 
    width: 50px; 
    height: 50px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    border-radius: 8px; 
    font-size: 1.5rem; 
    margin-bottom: 15px; 
}
.service-card h3 { 
    font-size: 1.2rem; 
    font-weight: 700; 
    margin-bottom: 10px; 
}
.service-card p { 
    color: var(--color-text-gray); 
    font-size: 0.95rem; 
}

/* --- 5. Why Choose EYJ Section --- */
#why-choose { 
    text-align: left; 
    padding: 80px 0; 
    background-color: white; 
}
.why-content { 
    display: grid; 
    grid-template-columns: 1.2fr 1fr; 
    gap: 80px; 
    align-items: center;
}
.why-text h2 { 
    margin-top: 0; 
    font-size: 3rem; 
}
.why-text p { 
    margin-bottom: 25px; 
    color: var(--color-text-dark); 
}
.feature-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 30px; 
}
.feature-item { 
    background: #f8f9fa; 
    padding: 25px; 
    border-radius: 8px; 
    border: 1px solid #e9ecef; 
}
.feature-item .icon-box { 
    background-color: var(--color-navy); 
    color: white; 
    width: 40px; 
    height: 40px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    border-radius: 6px; 
    font-size: 1.1rem; 
    margin-bottom: 10px; 
}
.feature-item h4 { 
    font-size: 1rem; 
    font-weight: 700; 
    margin-bottom: 5px; 
}
.feature-item p { 
    font-size: 0.9rem; 
    color: var(--color-text-gray); 
    line-height: 1.5; 
}

/* --- 6. Success Stories --- */
.success-grid { 
    display: grid; 
    grid-template-columns: repeat(2, 1fr); 
    gap: 30px; 
    margin-top: 40px; 
}
.story-card { 
    background: var(--color-bg-light); 
    text-align: left; 
    padding: 30px; 
    border-radius: 12px; 
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05); 
    border: 1px solid #eee; 
    transition: box-shadow 0.3s; 
}
.story-card:hover { 
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1); 
}
.story-card .card-header { 
    display: flex; 
    align-items: center; 
    margin-bottom: 10px; 
}
.story-card .card-header i { 
    color: var(--color-navy); 
    font-size: 1.2rem; 
    margin-right: 10px; 
}
.story-card h3 { 
    font-size: 1.35rem; 
    font-weight: 700; 
    color: var(--color-text-dark); 
    margin: 0; 
}
.story-card p { 
    color: var(--color-text-gray); 
    font-size: 1rem; 
}

/* --- 7. Contact Section --- */
#contact { 
    background-color: white; 
    padding-bottom: 100px; 
}
.contact-heading { 
    font-size: 3rem; 
    font-weight: 800; 
    margin-bottom: 10px; 
}
.contact-subtitle { 
    font-size: 1.15rem; 
    color: var(--color-text-gray); 
    margin-bottom: 50px; 
}

.contact-layout { 
    display: grid; 
    grid-template-columns: 1.8fr 1fr; 
    gap: 50px;
    text-align: left;
    margin-top: 50px;
}

/* Contact Form Styling */
.contact-form-block {
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
}
.contact-form-block h3 { 
    font-size: 1.5rem; 
    font-weight: 700; 
    margin-bottom: 5px; 
}
.contact-form-block .form-info { 
    font-size: 0.9rem; 
    color: var(--color-text-gray); 
    margin-bottom: 25px; 
}

.form-row { 
    display: flex; 
    gap: 20px; 
    margin-bottom: 20px; 
}
.form-group { 
    flex: 1; 
}
.form-group label { 
    display: none; 
} 
.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s;
}
.form-group textarea { 
    resize: vertical; 
    min-height: 150px; 
}
.form-group input:focus, .form-group textarea:focus { 
    border-color: var(--color-blue-accent); 
    outline: none; 
}
.submit-button {
    width: 100%;
    background-color: var(--color-navy); 
    color: white;
    padding: 15px;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s;
}
.submit-button:hover { 
    background-color: #0c1a33; 
}

/* Contact Info Styling */
.contact-info-block h3 { 
    font-size: 1.5rem; 
    font-weight: 700; 
    margin-bottom: 25px; 
}
.info-item { 
    display: flex; 
    align-items: center; 
    margin-bottom: 20px; 
}
.info-item .icon-box { 
    background-color: #e9f5ff; 
    color: var(--color-navy); 
    width: 40px; 
    height: 40px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    border-radius: 50%; 
    font-size: 1.1rem; 
    margin-right: 15px; 
}
.info-item .text { 
    font-weight: 500; 
}
.info-item a { 
    color: var(--color-text-dark); 
    text-decoration: none; 
}
.info-item a:hover { 
    color: var(--color-blue-accent); 
}

.cta-box {
    background-color: var(--color-navy);
    color: white;
    padding: 30px;
    border-radius: 12px;
    margin-top: 30px;
}
.cta-box h4 { 
    font-size: 1.2rem; 
    font-weight: 700; 
    margin-bottom: 10px; 
}
.cta-box p { 
    margin-bottom: 20px; 
    color: #ccc; 
}
.cta-box .btn-white { 
    background-color: white; 
    color: var(--color-navy); 
    padding: 10px 20px; 
    border-radius: 6px; 
    font-weight: 600; 
    text-decoration: none; 
    display: inline-block; 
    transition: background-color 0.3s; 
}
.cta-box .btn-white:hover { 
    background-color: #eee; 
}

/* Status Messages */
.success, .error {
    padding: 15px;
    border-radius: 6px;
    text-align: center;
    font-weight: 600;
    margin-bottom: 20px;
}
.success { border: 1px solid #28a745; background-color: #d4edda; color: #155724; }
.error { border: 1px solid #dc3545; background-color: #f8d7da; color: #721c24; }

/* --- 8. Footer (and Social Icons) --- */
footer { 
    background-color: #212529; 
    color: #ddd; 
    padding: 30px 0; 
    font-size: 0.9rem; 
    text-align: center; 
}

.social-icons {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-icons a {
    color: #ddd;
    font-size: 1.1rem;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
    text-decoration: none;
}

.social-icons a:hover {
    color: var(--color-bg-light); 
    background-color: var(--color-blue-accent);
    border-color: var(--color-blue-accent);
}

.footer-links a {
    color: #999;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--color-blue-accent);
}

/* ================================================= */
/* --- 9. Mobile Responsiveness (Media Queries) --- */
/* ================================================= */

/* Tablet and smaller devices (Max-width 1024px) */
@media (max-width: 1024px) {
    
    /* General Adjustments */
    section { padding: 60px 0; }
    h2 { font-size: 2.2rem; }
    .section-subtitle { margin-bottom: 40px; }

    /* Services Grid: 3 columns -> 2 columns */
    .services-grid { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 20px; 
    }
    
    /* Why Choose Section: Stack content vertically */
    .why-content { 
        grid-template-columns: 1fr; 
        gap: 40px; 
    }
    .why-text h2 { 
        font-size: 2.5rem; 
    }

    /* Success Stories Grid: 2 columns -> 1 column */
    .success-grid { 
        grid-template-columns: 1fr; 
    }
    
    /* Contact Section: Stack content vertically */
    .contact-layout { 
        grid-template-columns: 1fr; 
        gap: 40px; 
    }
    .contact-form-block, .contact-info-block {
        padding: 30px;
    }
}

/* Mobile Devices (Max-width 768px) */
@media (max-width: 768px) {
    /* Hero Section */
    .hero-btns {
        display: flex;
        flex-direction: column; /* Forces them to stack */
        align-items: center;
    }
    .hero-btns a {
        width: 80%; /* Make buttons take up most of the screen */
        margin: 8px 0; /* CRITICAL FIX: Adds vertical margin (8px top/bottom, 0 left/right) */
    }
    
    /* Header & Navigation */
    .nav-content { height: 60px; }
    .desktop-nav { 
        display: none; /* Hide desktop navigation */
    }
    .menu-toggle { 
        display: block; /* Show hamburger icon */
    } 
    
    /* Mobile Menu ACTIVE state (Full-width dropdown) */
    .desktop-nav.mobile-menu-active {
        display: flex; /* Override desktop-nav:none */
        flex-direction: column;
        position: absolute;
        top: 60px; /* Below the header height (80px in desktop, 60px here) */
        left: 0;
        width: 100%; /* CRITICAL FIX: Make the menu full width */
        background-color: var(--color-bg-light);
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
        padding: 10px 0;
        z-index: 999;
    }
    
    .desktop-nav.mobile-menu-active a {
        padding: 15px 20px;
        border-bottom: 1px solid #eee;
        margin-left: 0;
        text-align: left;
    }
    
    /* Hero Section */
    #hero { padding: 80px 0 60px; }
    #hero h1 { 
        font-size: 2.2rem; 
    }
    #hero p { 
        font-size: 1rem; 
    }
    .hero-btns {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .hero-btns a {
        width: 80%; /* Make buttons take up most of the screen */
        margin: 8px 0;
    }
    
    /* Stats Block: Stack vertically or keep 3 columns small */
    .stats-block { 
        gap: 20px; 
        margin-top: 40px;
        flex-wrap: wrap; /* Allow wrapping if space is too tight */
    }
    .stat-item { 
        width: 30%; /* Keep 3 items but give less space */
    }
    .stat-item .number { 
        font-size: 1.5rem; 
    }
    .stat-item .label {
        font-size: 0.75rem;
    }
    
    /* Services Grid: 2 columns -> 1 column */
    .services-grid { 
        grid-template-columns: 1fr; 
    }

    /* Why Choose Section */
    .why-text h2 { 
        font-size: 2rem; 
    }
    .feature-grid { 
        grid-template-columns: 1fr; /* Stack features vertically */
    }
    
    /* Contact Form: Form rows stack (Name fields) */
    .form-row { 
        flex-direction: column; 
        gap: 0; 
    }
    .form-group {
        margin-bottom: 15px; /* Add spacing between stacked fields */
    }
    .contact-heading { 
        font-size: 2rem; 
    }
    .contact-subtitle {
        font-size: 1rem;
    }
    
    /* Footer */
    footer .container {
        display: flex;
        flex-direction: column-reverse;
        gap: 15px;
    }
    .footer-links a {
        display: block;
        margin: 5px 0;
    }
}