@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&display=swap');

:root {
    --primary-color: #0A2463; /* Deep Blue */
    --secondary-color: #3E92CC; /* Lighter Blue/Teal */
    --accent-color: #D89B0B; /* Muted Gold/Orange */
    --text-color-dark: #333333;
    --text-color-light: #FFFFFF;
    --background-gradient: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    line-height: 1.7;
    color: var(--text-color-dark);
    background: var(--background-gradient);
}

header {
    background-color: var(--primary-color);
    color: var(--text-color-light);
    padding: 1.5em 0; /* Increased padding */
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 10px; /* Added padding for small screens */
}

nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex; /* For better alignment control */
    flex-direction: column; /* Stack vertically on mobile */
    align-items: center; /* Center items on mobile */
}

nav ul li {
    display: block;
    margin: 10px 0;
}

nav ul li a {
    color: var(--text-color-light);
    text-decoration: none;
    padding: 12px 20px; /* Increased padding */
    display: block;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

nav ul li a:hover,
nav ul li a.active { /* Style for active link */
    background-color: var(--secondary-color);
    color: var(--text-color-light);
}

.hidden-section {
    display: none !important; /* Important to override other display properties */
}

section {
    padding: 40px 20px; /* Base padding */
    text-align: center;
    /* min-height: calc(100vh - 200px); remove or adjust if causing issues with hidden sections */
    display: flex; /* Keep flex for layout when visible */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%; /* Ensure sections take full width if needed */
    box-sizing: border-box; /* Include padding in width/height */
}

#home {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://images.unsplash.com/photo-1552664730-d307ca884978?auto=format&fit=crop&w=1200&q=80');
    background-size: cover;
    background-position: center;
    color: var(--text-color-light); /* Ensure text is light on dark background */
    /* min-height: calc(100vh - 200px); */ /* Remove or adjust for home section if it takes full viewport height */
    min-height: 80vh; /* Make hero section take a good portion of the viewport */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#home h1 {
    font-size: 2.8em;
    margin-bottom: 20px; /* Increased margin */
    color: var(--text-color-light); /* Ensure h1 is light */
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7); /* Add text shadow for better readability */
}

#home p {
    font-size: 1.3em;
    max-width: 700px; /* Slightly wider for new text */
    margin-bottom: 30px; /* Increased margin */
    color: var(--text-color-light); /* Ensure p is light */
    text-shadow: 1px 1px 2px rgba(0,0,0,0.6); /* Add text shadow for better readability */
}

/* Home Services Teaser Section */
#home-services-teaser {
    padding: 60px 20px;
    text-align: center;
    background-color: #f4f7f6; /* A light, neutral background for this section */
}

.section-heading-light {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.section-subtitle-light {
    font-size: 1.2em;
    color: #555;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.services-teaser-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto 40px auto; /* Bottom margin before CTA */
}

.service-teaser-card {
    background-color: var(--text-color-light);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.07);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-teaser-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.1);
}

.service-teaser-icon {
    font-size: 2.8em;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.service-teaser-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.5em;
}

.service-teaser-card p {
    font-size: 1em;
    line-height: 1.7;
    color: #555;
}

.services-teaser-cta {
    margin-top: 20px; /* Add some space above this CTA specifically */
}

.cta-button {
    background-color: var(--accent-color);
    color: var(--text-color-light);
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    display: inline-block; /* To allow margin and padding */
    margin-top: 20px;
}

.cta-button:hover {
    background-color: #bf880a; /* Darker accent */
}

#about {
     /* Example: Add a background image */
    /* background-image: url('path/to/your/about-image.jpg'); */
    /* background-size: cover; */
    /* background-position: center; */
    /* color: var(--text-color-light); */ /* Adjust text color if image is dark */
    padding-top: 60px; 
    padding-bottom: 60px; 
}

#about h2 {
    margin-bottom: 15px;
}

#about .section-subtitle {
    margin-bottom: 40px;
    font-size: 1.2em;
    color: #555;
}

.about-content {
    display: flex;
    flex-direction: column; /* Ensures image is on top of text */
    align-items: center;
    gap: 40px; 
    width: 100%;
    max-width: 900px; /* Adjusted max-width for a single column layout */
    margin: 0 auto; 
}

.about-text {
    /* flex: 1.5; */ /* Not needed for single column */
    text-align: left;
    width: 100%; /* Ensure text takes full width available in the column */
}

.about-text h3 {
    font-size: 1.6em;
    color: var(--primary-color);
    margin-top: 25px;
    margin-bottom: 10px;
    position: relative;
    padding-bottom: 5px;
    text-align: center; /* Center the h3 text */
}

.about-text h3::after { /* Subtle underline for headings */
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%; /* Center the underline */
    transform: translateX(-50%); /* Adjust for exact centering */
    width: 50px;
    height: 3px;
    background-color: var(--accent-color);
}

.about-text p {
    font-size: 1.05em;
    line-height: 1.8;
    margin-bottom: 15px;
    color: #444; /* Slightly darker for better readability */
}

.core-values-list {
    list-style: none;
    padding-left: 0;
    margin-top: 15px;
}

.core-values-list li {
    font-size: 1.05em;
    margin-bottom: 15px; 
    display: flex;
    align-items: center; 
    color: #444;
    line-height: 1.6; 
}

.core-values-list li strong {
    display: inline-block; /* Helps in managing spacing around it */
    margin-right: 0.4em; /* Ensures a visual space, adjust value as needed */
}

.core-values-list .fas {
    color: var(--secondary-color);
    margin-right: 12px; /* Slightly increased space next to icon */
    /* margin-top: 4px; */ /* Removed as align-items: center should handle this */
    font-size: 1.1em;
    flex-shrink: 0; /* Prevent icon from shrinking if text is long */
}

.about-image {
    /* flex: 1; */ /* Not needed for single column */
    max-width: 600px; /* Allow image to be a bit wider if it's on its own row */
    text-align: center; 
    align-self: center; 
    width: 100%; /* Make image responsive within its container */
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 10px; 
    box-shadow: 0 8px 25px rgba(0,0,0,0.15); 
}

.image-caption {
    font-size: 0.9em;
    color: #666;
    margin-top: 15px;
    font-style: italic;
}

#services ul {
    list-style-type: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap; /* Allow items to wrap */
    justify-content: center;
    gap: 20px; /* Space between items */
}

#services li {
    /* background-color: var(--secondary-color);
    color: var(--text-color-light);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    flex-basis: calc(50% - 20px); 
    max-width: 300px;
    transition: transform 0.3s ease; */
    /* Styles moved to .service-card */
}

#services li:hover {
    /* transform: translateY(-5px); */
    /* Styles moved to .service-card */
}

#contact {
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    margin: 20px;
    max-width: 900px;
}

#contact p {
    font-size: 1.1em;
}

footer {
    background-color: var(--primary-color);
    color: var(--text-color-light);
    text-align: center;
    padding: 25px 0; /* Increased padding */
    width: 100%;
}

.logo {
    font-size: 2em; /* Increased logo size */
    font-weight: bold;
    margin-bottom: 15px; /* Adjusted margin */
    color: var(--accent-color); /* Use accent for logo */
}

section h2 {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 10px; /* Reduced margin */
}

.section-subtitle {
    font-size: 1.1em;
    color: #555;
    margin-bottom: 30px; /* Increased margin */
    max-width: 700px;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Responsive grid */
    gap: 30px; /* Spacing between cards */
    width: 100%;
    max-width: 1200px; /* Max width for the grid */
    margin-top: 20px;
}

.service-card {
    background-color: var(--text-color-light); /* White background for cards */
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.12);
}

.service-icon {
    font-size: 2.5em; /* Placeholder for icon styling */
    color: var(--accent-color);
    margin-bottom: 15px;
    /* Replace [ICON] with actual <img> or <i> tags for icons */
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.4em;
}

.service-card p {
    font-size: 0.95em;
    line-height: 1.6;
    color: #555; /* Slightly lighter text for description */
}

/* Contact Section */
#contact {
    background-color: transparent; /* Use body gradient */
    box-shadow: none; /* Remove previous shadow if any */
}
.contact-container {
    display: flex;
    flex-direction: column;
    gap: 40px; /* Space between details and form */
    width: 100%;
    max-width: 1000px; /* Max width for contact area */
    margin-top: 20px;
}

.contact-details, .contact-form {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.contact-details {
    text-align: left;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-size: 1.05em;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-icon {
    font-size: 1.5em; /* Placeholder for icon */
    color: var(--secondary-color);
    margin-right: 15px;
    width: 30px; /* Fixed width for alignment */
    text-align: center;
}

.contact-item p {
    margin: 0;
}

.contact-item a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--accent-color);
}

.contact-form h3 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #444;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
    font-size: 1em;
}

.form-group textarea {
    resize: vertical; /* Allow vertical resize */
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 2px rgba(62, 146, 204, 0.2);
}

#contact .cta-button { /* Specific styling for contact form button */
    width: 100%;
    padding: 15px;
    font-size: 1.1em;
}

/* Tablet and larger screens */
@media (min-width: 768px) {
    nav {
        flex-direction: row;
        justify-content: space-between;
        align-items: center; /* Vertically align items */
        padding: 0 30px; /* Increased padding */
    }

    nav ul {
        flex-direction: row; /* Horizontal layout for nav items */
    }

    nav ul li {
        display: inline-block; /* Ensure they are on the same line */
        margin: 0 15px; /* Spacing between nav items */
    }

    .logo {
        margin-bottom: 0;
    }

    section {
        padding: 60px 40px; /* Increased padding */
    }

    #home h1 {
        font-size: 3.5em;
    }

    #home p {
        font-size: 1.5em;
    }
    
    #services li {
        /* flex-basis: calc(25% - 20px); */
        /* Styles moved to .service-card */
    }

    .section-subtitle {
        font-size: 1.2em;
        margin-bottom: 40px;
    }

    /* About Us Section - Tablet */
    .about-content {
        /* flex-direction: row; */ /* Remove to keep column layout */
        align-items: center; /* Center items in the column */
        max-width: 900px; /* Maintain max-width */
    }
    .about-text {
        /* padding-right: 0; */
        text-align: center; /* Center text for a more balanced look when stacked */
    }
    .about-image {
        /* margin-top: 0; */ 
        /* max-width: 400px; */
        /* align-self: center; */
    }

    /* Services Section - Tablet */
     .services-grid {
        /* grid-template-columns: repeat(2, 1fr); Already handled by auto-fit */
    }

    /* Contact Section - Tablet */
    .contact-container {
        flex-direction: row; /* Side by side for details and form */
        align-items: flex-start; /* Align items to the top */
    }
    .contact-details, .contact-form {
        flex: 1; /* Each takes half the space */
    }
    #contact .cta-button {
        width: auto; /* Auto width for button on larger screens */
        padding: 12px 25px; /* Reset padding */
    }
}

/* Desktop screens */
@media (min-width: 1024px) {
    #home h1 {
        font-size: 4em;
    }

    #home p {
        font-size: 1.6em;
    }

    .logo {
        font-size: 2.2em;
    }

    /* About Us Section - Desktop */
    .about-content {
        max-width: 900px; /* Maintain max-width */
    }
    .about-text {
        /* padding-right: 0; */
    }
    .about-image {
        /* max-width: 500px; */ 
        /* align-self: center; */
    }

    /* Services Section - Desktop */
    .services-grid {
       /* grid-template-columns: repeat(3, 1fr); Already handled by auto-fit */
    }
} 