/* Dark Theme Variables */
:root {
    --primary-bg: #18184c;
    --secondary-bg: #1e2050;
    /* Slightly lighter blue for sections */
    --card-bg: #242866;
    --accent-color: #f39f22;
    --text-primary: #FFFFFF;
    --text-primary-inverse: #0f172a;
    /* Dark text for white header */
    --text-secondary: #94A3B8;
    --border-color: #3d3d6b;
    --gradient-blue: linear-gradient(135deg, #18184c 0%, #242866 100%);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--primary-bg);
    padding-top: 90px;
    /* Add padding to account for fixed header */
}

/* Header Styles are now in header.css */

/* Hero Section - PRIMARY BG (Deep Blue) */
.hero {
    padding: 4rem 2rem 5rem;
    background-color: var(--primary-bg);
    overflow: hidden;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    background: var(--accent-color);
    color: #1a202c;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2rem;
    /* Increased margin */
}

.hero h1 {
    font-size: 4rem;
    /* Larger title */
    font-weight: 800;
    color: white;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    color: var(--text-secondary);
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 90%;
    line-height: 1.6;
}

.highlight-text {
    color: var(--accent-color);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    /* Increased margin */
    display: block;
    font-weight: 500;
}

.cta-btn {
    background: var(--accent-color);
    color: #1a202c;
    padding: 1.1rem 2.5rem;
    /* Larger button */
    border-radius: 50px;
    /* Fully rounded */
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(245, 158, 11, 0.2);
    /* Lighter orange on hover */
    background: #fbbf24;
}


.hero-image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

/* Update this block to fix the 5th image size */
.hero-image-grid .grid-item:nth-child(5) {
    grid-column: 1 / span 2;
    justify-self: center;
    /* Set this to 50% (or the same width as the grid columns) */
    width: calc(50% - 0.75rem);
}

.grid-item {
    border-radius: 20px;
    overflow: hidden;
    /* This ensures a consistent shape regardless of image size */
    aspect-ratio: 4 / 3;
    position: relative;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    background-color: #1e293b;
    /* Fallback background color */
}

.grid-item img {
    width: 100%;
    height: 100%;
    /* This is critical: it crops the image to fit the box perfectly */
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
    display: block;
}

.grid-item:hover img {
    transform: scale(1.05);
    /* Zoom effect */
}



/* Why Choose Us Section - SECONDARY BG (Different Blue) */
.why-choose {
    padding: 2.5rem 2rem;
    /* Reduced padding */
    background-color: var(--secondary-bg);
    /* Use secondary, lighter blue */
    position: relative;
}

/* Diagonal divider effect (optional, or just distinct color) */
/* .why-choose::before { ... } */

.why-choose-container {
    max-width: 1400px;
    /* Match hero width */
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    /* Larger section title */
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3 Columns for benefits on desktop looks cleaner usually */
    gap: 1rem;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    /* Align icon to top */
    gap: 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    /* Subtle card bg for benefits */
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.check-icon {
    color: var(--accent-color);
    background: rgba(245, 158, 11, 0.1);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    border: 1px solid var(--accent-color);
}

.benefit-content h3 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.benefit-content p {
    color: var(--text-secondary);
    font-size: 1rem;
}


/* Services Section - PRIMARY BG again for contrast */
.services {
    padding: 4rem 2rem;
    background: var(--primary-bg);
}

.services-container {
    max-width: 1400px;
    /* Match hero width */
    margin: 0 auto;
}

.services-header {
    text-align: center;
    margin-bottom: 3rem;
}

.services-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-top: 1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    /* Improved responsiveness */
    gap: 0.8rem;
}

.service-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 0 0 1.5rem 0;
    /* Remove top/side padding for image */
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    overflow: hidden;
    /* Ensure image doesn't overflow corners */
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    padding: 0 1.5rem;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex-grow: 1;
    padding: 0 1.5rem;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-color);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
}

/* Optional: overlay icon or remove it. I will remove the icon circle from HTML, so I'll remove the style here or keep it unused. */
.service-icon-circle {
    display: none;
    /* Hide if still present */
}

.learn-more-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    /* Subtle button bg */
    color: var(--accent-color);
    /* Accent text */
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.learn-more-btn:hover {
    background: var(--accent-color);
    color: #1a202c;
}

/* Rating Section */
.rating-section-wrapper {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.rating-box {
    border: 1px solid var(--accent-color);
    border-radius: 12px;
    padding: 1.5rem;
    background: transparent;
    /* Transparent as per design might look good */
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

/* Testimonials / Reviews */
/* Testimonials styles moved to reviews.css */

.rating-star-icon {
    color: var(--accent-color);
    /* Orange star */
    font-size: 2.5rem;
    background: rgba(245, 158, 11, 0.2);
    /* Light orange circle backing? */
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.rating-text {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
}

.rating-sub {
    display: block;
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-secondary);
}


/* Footer - DARKER/SECONDARY BG */
footer {
    background: var(--secondary-bg);
    /* Same dark bg */
    border-top: 1px solid var(--border-color);
    padding: 4rem 2rem 2rem;
    margin-top: 0;
    /* Remove margin as section padding handles it */
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    /* Adjust columns */
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-column h3,
.footer-column h4 {
    /* Handling potential h4 usage */
    color: white;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-column h3.logo-text {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.25rem;
    color: #f39f22;
    /* For the brand name */
    margin-bottom: 1rem;
}

.footer-column h3.logo-text img {
    border-radius: 6px;
}


.footer-column p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column li {
    margin-bottom: 0.8rem;
}

.footer-column a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: var(--accent-color);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Responsive Design Improvements */

/* Tablet & Smaller Laptops (1024px) */
@media (max-width: 1024px) {
    /* Header container adjustments moved to header.css */

    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .hero-subtitle {
        margin: 0 auto 1.5rem;
    }

    .hero-image-grid {
        max-width: 600px;
        margin: 0 auto;
    }

    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2 columns for benefits */
        gap: 1.5rem;
    }
}

/* Mobile & Tablet Portrait (768px) */
@media (max-width: 768px) {
     /* 3. Container for Phone + Exit (Side-by-Side) */
    .menu-header-actions {
        display: flex !important;
        align-items: center !important;
        gap: 15px !important; /* Space between phone and X */
    }

    /* 4. Fix the Exit Button */
    .menu-exit-btn {
        background: #f5f5f5 !important;
        border: none !important;
        border-radius: 8px !important;
        width: 35px !important;
        height: 35px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 22px !important;
        color: #333 !important;
        cursor: pointer !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    /* Header adjustments are in header.css */
    /* Hero adjustments */
    .hero {
        padding: 3rem 1.25rem 4rem;
    }

    .hero-container {
        grid-template-columns: 1fr;
        /* Stack hero */
        gap: 4rem;
        text-align: center;
    }

    .hero-subtitle {
        margin: 0 auto 2rem;
    }

    .badge {
        margin: 0 auto 1.5rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-image-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        max-width: 100%;
    }

    .hero-image-grid .grid-item:nth-child(5) {
        width: calc(50% - 0.375rem);
        /* Same width as other items (100% - 0.75rem gap) / 2 */
        max-width: none;
        grid-column: 1 / -1;
        margin: 0 auto;
    }

    /* Benefits adjustments */
    .benefits-grid {
        grid-template-columns: 1fr;
        /* Stack benefits */
        gap: 1.5rem;
    }

    /* Services adjustments */
    .services-grid {
        grid-template-columns: 1fr;
        /* Stack services */
        max-width: 500px;
        margin: 0 auto;
    }

    /* Footer adjustments */
    .footer-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
        /* Center footer on mobile */
    }
}

/* Small Mobile (480px) */
@media (max-width: 480px) {
    /* Header adjustments moved to header.css */

    .hero {
        padding-top: 3rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.75rem;
        margin-bottom: 3rem;
    }
}