/* Global Styles */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    color: #333; /* Dark gray for text */
    background-color: #fff; /* White background */
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600; /* Semi-bold for headings */
    margin-top: 0;
}

h2 { /* Section headings */
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 40px;
    color: #000; /* Black for section titles */
}

p {
    margin-bottom: 20px;
}

a {
    text-decoration: none;
    color: #007BFF; /* Example accent color - muted blue, can be changed */
}

a:hover {
    text-decoration: underline;
}

section {
    padding: 60px 0; /* Adjusted padding, no horizontal padding here */
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Accent Colors - placeholders, can be refined */
:root {
    --pastel-accent1: #B0AACB; /* Updated: Soft Desaturated Lavender */
    --pastel-accent2: #E0E0E0; /* Soft Gray */
    --dark-text: #333333;
    --light-text: #ffffff;
    --background-light: #ffffff;
    --background-dark: #222222;
    --button-hover-darken: 10%;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

/* Hero Section */
#hero {
    background-color: var(--pastel-accent1); /* ACCENT COLOR BACKGROUND */
    color: var(--light-text); /* Light text for contrast */
    height: 100vh; /* Full viewport height */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    box-sizing: border-box; /* Include padding in height calculation */
}

#hero .logo {
    max-width: 200px; /* Adjust as needed */
    margin-bottom: 30px;
}

#hero h1 {
    font-size: 3em; /* Large tagline */
    margin-bottom: 30px;
    color: var(--light-text); /* WAS: #000; White text on pastel background */
    max-width: 800px;
}

#hero .cta-button {
    background-color: #000000; /* Black background */
    color: var(--light-text); /* White text */
    padding: 15px 30px;
    border-radius: 50px; /* Pill-shaped */
    font-weight: 600;
    font-size: 1.1em;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

#hero .cta-button:hover {
    background-color: #333333; /* Dark gray on hover */
    color: var(--light-text); /* Keep text white */
    transform: translateY(-3px);
    text-decoration: none;
}

/* About Section */
#about {
    background-color: #f9f9f9; /* Very light grey or pastel tint */
}

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

#about p {
    text-align: left; /* Or center if preferred */
    font-size: 1.1em;
    line-height: 1.8;
}

#about p strong {
    color: var(--pastel-accent1); /* Highlight keywords with accent */
}

/* Services Section */
#services {
    background-color: var(--background-light);
}

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

.service-item {
    background-color: #fff; /* Card background */
    padding: 30px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.service-icon {
    width: 60px; /* Uniform icon size container */
    height: 60px;
    margin: 0 auto 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon i {
    font-size: 48px; /* Size of the Phosphor icon */
    color: var(--pastel-accent1); /* ACCENT COLOR FOR ICONS */
}

.service-item h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #000;
}

.service-item p {
    font-size: 1em;
    color: #555; /* Slightly lighter text for description */
}

/* "Our Work Ethic" Visual Section */
#ethic {
    background-color: var(--pastel-accent1); /* ACCENT COLOR BACKGROUND */
}

.ethic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px; /* Slightly smaller gap for images */
}

.ethic-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden; /* Ensures image stays within rounded corners */
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ethic-item:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.ethic-item img {
    width: 100%;
    height: 250px; /* Consistent height for images */
    object-fit: cover; /* Crop images to fit */
    display: block;
}

.ethic-item figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent overlay */
    color: var(--light-text);
    padding: 15px;
    text-align: center;
    font-size: 1.2em;
    font-weight: 600;
    box-sizing: border-box;
    transition: background-color 0.3s ease;
}

.ethic-item:hover figcaption {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Contact Section */
#contact {
    background-color: var(--background-light);
}

#contact p {
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 30px;
}

#contact form {
    max-width: 700px;
    margin: 0 auto;
    display: grid;
    gap: 20px;
}

#contact label {
    font-weight: 600;
    margin-bottom: 5px; /* Spacing between label and input */
    display: block; /* Ensure label is above input */
}

#contact input[type="text"],
#contact input[type="email"],
#contact textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    font-size: 1em;
    transition: border-color 0.3s ease;
}

#contact input[type="text"]:focus,
#contact input[type="email"]:focus,
#contact textarea:focus {
    border-color: var(--pastel-accent1);
    outline: none;
    box-shadow: 0 0 5px rgba(var(--pastel-accent1), 0.5);
}

#contact textarea {
    resize: vertical; /* Allow vertical resize, not horizontal */
}

#contact button[type="submit"] {
    background-color: #000000; /* Black background */
    color: var(--light-text); /* White text */
    padding: 15px 30px;
    border: none;
    border-radius: 50px; /* Pill-shaped */
    font-weight: 600;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    justify-self: center; /* Center button in grid */
}

#contact button[type="submit"]:hover {
    background-color: #333333; /* Dark gray on hover */
    color: var(--light-text); /* Keep text white */
    transform: translateY(-3px);
}

#form-message {
    text-align: center;
    font-weight: bold;
}

/* Footer */
footer {
    background-color: var(--background-dark); /* Dark background for footer */
    color: var(--light-text);
    text-align: center;
    padding: 40px 20px;
    font-size: 0.9em;
}

footer p {
    margin-bottom: 10px;
    line-height: 1.5;
}

footer strong {
    color: var(--light-text); /* Ensure strong text is also light */
}

footer a {
    color: var(--pastel-accent1); /* Accent color for links in footer */
    text-decoration: underline;
}

footer a:hover {
    color: #85c2cb; /* Darken accent on hover */
    text-decoration: underline;
}

/* Responsive Design - Media Queries */

/* Tablets and larger phones */
@media (max-width: 992px) {
    .container {
        padding: 0 15px; /* Adjust container padding for tablets */
    }
    h2 {
        font-size: 2em;
    }

    #hero h1 {
        font-size: 2.5em;
    }

    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .ethic-grid {
         grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

/* Smaller tablets and mobile phones */
@media (max-width: 768px) {
    section {
        padding: 40px 0; /* Adjusted padding */
    }
    .container {
        padding: 0 10px; /* Adjust container padding for smaller tablets */
    }

    #hero {
        height: auto; /* Adjust height for smaller screens */
        min-height: 80vh;
        padding-top: 80px; /* More space at top */
        padding-bottom: 40px;
    }
    
    #hero .logo {
        max-width: 150px;
    }

    #hero h1 {
        font-size: 2em;
        margin-bottom: 25px;
    }

    #hero .cta-button {
        padding: 12px 25px;
        font-size: 1em;
    }

    .services-grid {
        grid-template-columns: 1fr; /* Stack service items */
    }

    .ethic-grid {
        grid-template-columns: 1fr; /* Stack ethic items */
    }
    
    .ethic-item img {
        height: 200px; /* Adjust image height for mobile */
    }

    #contact form {
        /* For smaller screens, ensure Name and Email stack if they were side-by-side */
        /* Current setup is already stacked, so this is fine */
    }
}

/* Small mobile phones */
@media (max-width: 480px) {
    .container {
        padding: 0 5px; /* Adjust container padding for small mobiles */
    }
    h2 {
        font-size: 1.8em;
        margin-bottom: 20px;
    }
    
    #hero h1 {
        font-size: 1.8em; /* Further reduce tagline size */
    }

    #hero .logo {
        max-width: 120px;
    }
    
    #about p {
        font-size: 1em;
    }

    .service-item {
        padding: 20px;
    }
    
    .service-item h3 {
        font-size: 1.3em;
    }

    #contact input[type="text"],
    #contact input[type="email"],
    #contact textarea {
        padding: 10px;
    }

    #contact button[type="submit"] {
        padding: 12px 20px;
        font-size: 1em;
    }
    
    footer {
        font-size: 0.8em;
        padding: 30px 15px;
    }
}

/* Animation Classes (to be triggered by JavaScript or CSS on scroll) */
.fade-in {
    opacity: 0;
    transition: opacity 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
}

.slide-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.slide-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Example of applying to sections - can be more granular */
/* These will be added by JS on scroll */
/*
#about, #services, #ethic, #contact {
    opacity: 0;
}
*/

/* New class for inner content container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px; /* Horizontal padding applied to container */
} 