/* 1. Global Reset & Typography */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background-color: #ffffff;
    color: #333;
}

/* Common element to center and limit content width */
.container {
    max-width: 1200px;
    width: 90%;
    margin: auto;
    padding: 20px 0;
}

/* Styling for primary actions - Deep Navy Blue */
.btn {
    display: inline-block;
    background: #192C6B; /* BRAND COLOR: Deep Navy Blue */
    color: #fff;
    padding: 10px 20px;
    margin-top: 10px;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.btn:hover {
    background: #101e4a;
}

/* Secondary Button (used in the hero section) */
.btn-secondary {
    display: inline-block;
    color: #192C6B; /* BRAND COLOR: Deep Navy Blue */
    border: 2px solid #192C6B;
    background: transparent;
    padding: 10px 20px;
    margin-top: 10px;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
    margin-left: 10px;
}

.btn-secondary:hover {
    background: #192C6B;
    color: #ffffff;
}

/* Read More Link (used in inner sections) */
.read-more {
    display: inline-block;
    color: #192C6B; /* BRAND COLOR: Deep Navy Blue */
    text-decoration: none;
    font-weight: bold;
    margin-top: 10px;
}

/* 2. Navigation Bar (Mobile-First Approach) */
.navbar {
    background: #192C6B;
    color: #fff;
    padding: 10px 5%;
    min-height: 80px; /* Logo Fix: Ensure bar is tall enough */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar a {
    color: #fff;
    text-decoration: none;
}

/* Logo Fix: Set proportional size */
.navbar .logo img {
    height: 60px; /* Set to 60px to fit 80px bar well */
    width: auto;
    vertical-align: middle;
}

/* Base state for links: Hidden off-screen (Mobile View) */
.nav-links {
    list-style: none;
    padding-left: 0;

    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: -250px; /* Hidden state */
    width: 250px;
    height: 100vh;
    background: #192C6B;
    padding: 80px 20px 20px;
    transition: right 0.3s ease;
    z-index: 1000;
}

/* Hamburger Icon - Show on Mobile */
.menu-toggle {
    font-size: 28px;
    cursor: pointer;
    display: block;
    color: #fff;
    z-index: 1001;
}

/* Class to display the menu when the button is clicked */
.nav-links.active {
    right: 0;
}

/* Style the list items inside the mobile menu */
.nav-links li {
    width: 100%;
    margin: 15px 0; /* Vertical margin for mobile stacking */
}


/* 3. Section Styling & Brand Background Colors */
.hero {
    background: #FFF8DC; /* BRAND COLOR: Lighter Sunny Yellow */
    padding: 80px 0;
    text-align: left;
}

.content-section {
    padding: 60px 0;
}

/* BRAND COLOR: Baby Pink Background for Sections 2 and Contact */
.grey-bg, .contact-bg {
    background-color: #FCE7F1;
}

/* BRAND COLOR: Dark Mauve/Brown for Section 3 (Custom Design) */
.custom-bg {
    background-color: #7b5e68;
    color: #ffffff;
}

/* Services Section Background Color */
#services {
    background-color: #FFF8DC; /* Setting background to Lighter Sunny Yellow */
    padding: 60px 0;
}

/* Ensure links/buttons are visible on the custom-bg */
.custom-bg a {
    color: #e9ecef;
}


/* 4. Footer */
footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 10px 0; /* REDUCED PADDING: Makes the footer banner smaller */
}

/* 5. Contact Form Styling (Cleaned for modern 2-column look) */

/* Use Flexbox for the row containing Name and Email */
.form-row {
    display: flex;
    gap: 20px; /* Space between the Name and Email inputs */
    margin-bottom: 20px;
}

.input-group {
    /* Ensures inputs are full width of their container */
    flex: 1;
    margin-bottom: 0;
}

/* Base style for all form inputs/textareas */
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    width: 100%;
    padding: 15px 12px; /* Increased padding for clean look */
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 8px; /* Rounded corners */
    font-size: 16px;
    background-color: #f9f9f9;
}

.contact-form label {
    font-size: 14px;
    color: #555;
    margin-bottom: 5px;
}

.contact-form button.btn {
    width: 100%; /* Make the button full width */
    margin-top: 25px;
}

/* Contact Information Side Card (Fix for Alignment & Mascot Positioning) */
.contact-info {
    padding: 20px;
    border-radius: 10px;
    background-color: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    position: relative; /* CRITICAL FIX: Allows absolute positioning of the mascot */
    min-height: 250px;
    overflow: hidden;
}

.contact-info h2 {
    text-align: left;
    margin-bottom: 30px;
}

/* Contact Detail Alignment Fix */
.contact-detail {
    margin-bottom: 25px;
    display: flex;
    align-items: flex-start; /* FIX: Align items to the top for neat stacking */
}

.contact-detail i {
    font-size: 20px;
    color: #192C6B;
    margin-right: 15px;
    width: 30px;
    text-align: center;
    padding-top: 3px; /* Align icon with the first line of text */
}

/* Mobile Stacking for Form */
@media (max-width: 600px) {
    .form-row {
        flex-direction: column; /* Stack name/email vertically */
        gap: 0;
    }
    .input-group {
        margin-bottom: 20px;
    }
}

/* 6. Image and Media Responsiveness */
.responsive-img {
    max-width: 100%;
    height: auto;
    display: block;
    width: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* Update image-side container styling */
.image-side {
    max-width: 100%;
    height: 100%;
}

/* Caterpillar Image Default State (Mobile-First) */
.contact-caterpillar {
    display: none; /* HIDE BY DEFAULT on mobile/tablet screens */
    height: auto;
    max-width: 360px; /* Base size for desktop */
    position: absolute;
    bottom: 10px;
    right: 50px;
    opacity: 1;
    z-index: 1;
}

/* 7. Typography and Component Polish */
h1 {
    font-size: 2.5em;
    margin-bottom: 0.5em;
}

h2 {
    font-size: 1.8em;
    margin-bottom: 1em;
}

.text-side ul {
    margin-bottom: 1.5em;  /* Matches your paragraph spacing */
    padding-left: 20px;    /* Indents the bullets */
}

.text-side li {
    margin-bottom: 0.8em;  /* Adds breathing room between bullet points */
}



/* 8. Services Grid Layout */
.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.services-grid {
    display: grid;
    /* Mobile-first: Default to 1 column on small screens */
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 20px 0;
}

.service-card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    text-align: center;
    height: 100%;
}

.service-card i {
    font-size: 40px;
    color: #192C6B;
    margin-bottom: 15px;
}

.service-card h3 {
    font-size: 1.2em;
    margin-bottom: 10px;
}


/* 9. Desktop/Tablet Responsiveness (FINAL MEDIA QUERY) */
@media (min-width: 768px) {

    /* HIDE HAMBURGER ICON */
    .menu-toggle {
        display: none !important;
    }

    /* RESTORE DESKTOP NAVIGATION LINKS */
     .nav-links {
        /* Essential: Overrides mobile positioning */
        position: static !important;
        right: auto !important;

        display: flex !important; /* FORCES HORIZONTAL DISPLAY */

        /* This fixes the spacing and link alignment */
        gap: 25px !important; /* Use gap for clean spacing */

        width: auto !important;
        height: auto !important;

        /* Reset visual styles */
        background: transparent !important;
        padding: 0 !important;
        flex-direction: row !important;
        z-index: auto !important;
    }

    .nav-links li {
        /* Removes all conflicting margin properties */
        margin: 0 !important;
    }

    /* Desktop Grid: Create the 4-column layout for Services */
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 25px;
    }

    /* CORE LAYOUT: Flexbox for alternating Content Blocks */
    .content-block .container {
        display: flex;
        align-items: center;
        gap: 80px;
        padding: 40px 0;
    }

    /* Column Widths (e.g., 60/40 split) */
    .text-side {
        flex: 1.5;
    }

    .image-side {
        flex: 1;
    }

    /* REVERSE LAYOUT: Image on the Left (Used for Section 3) */
    .reverse-layout .container {
        flex-direction: row-reverse;
    }

    /* Contact Section Layout (Side-by-side info and form) */
    .contact-section .container {
        display: flex;
        align-items: flex-start;
        gap: 60px;
    }

    .contact-info {
        flex: 1;
    }

    .form-wrapper {
        flex: 1;
    }

    /* Show the caterpillar image on desktop */
    .contact-caterpillar {
        display: block !important;
    }
}
