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

html {
    scroll-behavior: smooth;
}

body {
    font-family: sans-serif; /* Placeholder font */
    line-height: 1.6;
    color: #333;
}

main section {
    padding: 4rem 2rem; /* Add padding to sections */
}

main section:nth-child(even) {
    /* Remove alternating background for now, can add back later */
    /* background-color: #f4f4f4; */ 
}

h1, h2, h3 {
    margin-bottom: 1rem;
}

/* --- REMOVE OLD HERO STYLES --- */
/*
#hero { ... }
.hero-column { ... }
.hero-left { ... }
.hero-right { ... }
.hero-content { ... }
.hero-logo { ... }
.cta-button { ... }
#threejs-container { ... }
@media (min-width: 992px) { ... }
*/

/* --- NEW HERO SECTION STYLING (v4 - Compact) --- */
#hero {
    display: flex;
    flex-direction: column; /* Mobile default */
    /* Remove min-height */
    padding: 4rem 2rem; /* Adjusted padding for mobile */
    text-align: center; /* Mobile default */
    background-color: #f8f9fa; /* Light background */
    color: #343a40;
    /* Add a bottom border for separation */
    border-bottom: 1px solid #dee2e6;
}

.hero-column {
    width: 100%;
}

.hero-logo {
    max-width: 150px; /* Slightly smaller default logo */
    height: auto;
    margin: 0 auto 1.5rem auto; /* Mobile centering */
    /* background-color: white; */ /* Remove temporary background */
}

/* General text styling within hero */
#hero h1 {
    font-size: 2.8rem; /* Adjust size */
    color: #212529;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

#hero h2 {
    font-size: 1.5rem; /* Adjust size */
    font-weight: 300;
    color: #495057;
    margin-bottom: 1rem;
}

#hero .tagline { /* Remove this? Not in new HTML */
    font-size: 1.1rem; /* Adjust size */
    color: #6c757d;
    margin-bottom: 1.5rem;
}

#hero .about-intro {
    font-size: 1rem;
    max-width: 650px; /* Keep constraint for readability */
    margin: 0 auto 2rem auto; /* Centering for mobile */
    line-height: 1.7;
}

/* Button Container */
.hero-cta-container {
    margin-bottom: 2rem; /* Space before logos */
}

/* Adjust button styles slightly */
.cta-button {
    display: inline-block;
    padding: 10px 20px; /* Slightly smaller padding */
    background-color: #212529; /* Changed to dark gray/black */
    color: #ffffff; /* White text */
    font-size: 0.95rem; /* Slightly smaller font */
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
    border: 2px solid #212529; /* Match background */
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    margin: 0.5rem 0.5rem; /* Add spacing between buttons */
}

.cta-button:hover, .cta-button:focus {
    background-color: #495057; /* Slightly lighter gray on hover */
    border-color: #495057;
    color: #ffffff;
    outline: none;
}

/* Secondary button style */
.cta-button.secondary {
    background-color: transparent;
    border-color: #212529; /* Dark gray/black border */
    color: #212529; /* Dark gray/black text */
}

.cta-button.secondary:hover, .cta-button.secondary:focus {
    background-color: #212529; /* Dark gray/black background on hover */
    border-color: #212529;
    color: #ffffff; /* White text on hover */
}

/* Placeholder for client logos */
.hero-clients {
    margin-top: 2rem;
    border-top: 1px solid #e9ecef;
    padding-top: 1.5rem;
}

.hero-clients p {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.client-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
}

/* Style for actual client logo images */
.client-logo {
    max-height: 100px; /* Increased logo height further */
    max-width: 180px; /* Increased max width */
    height: auto;
    width: auto;
    object-fit: contain;
    /* Removed grayscale and opacity */
    /* filter: grayscale(100%); */ 
    /* opacity: 0.7; */ 
    /* transition: filter 0.3s ease, opacity 0.3s ease; */ /* Removed transition */
}

/* Remove hover effect */
/*
.client-logo:hover {
    filter: grayscale(0%); 
    opacity: 1;
}
*/

/* --- Desktop Two-Column Layout for Hero (v4 - Compact) --- */
@media (min-width: 992px) {
    #hero {
        flex-direction: row;
        text-align: left;
        justify-content: space-between;
        align-items: flex-start; /* Align tops of columns */
        padding: 6rem 5%; /* Adjusted padding */
    }

    .hero-column {
        padding: 0 2rem;
    }

    .hero-left {
        flex: 0 0 30%; /* Smaller logo column */
        display: flex;
        justify-content: center;
        align-items: flex-start; /* Align logo to top */
        padding-top: 1rem; /* Add padding to align better */
    }

    .hero-right {
        flex: 1 1 70%; /* Larger text column */
        max-width: none; /* Remove max width constraint from previous attempt */
    }

    .hero-logo {
        max-width: 200px; /* Adjust desktop logo size */
        margin: 0;
    }

    #hero .about-intro {
        margin-left: 0; /* Align left */
        margin-right: 0;
        max-width: 600px; /* Re-apply constraint */
    }

    .hero-cta-container {
         text-align: left; /* Align buttons left */
    }
     .client-logos {
        justify-content: flex-start; /* Align logos left */
    }
}


/* --- Services Section Styling --- */
#services {
    background-color: #f9f9f9; /* Light background for contrast */
}

.services-grid {
    display: grid;
    /* Adjust columns based on screen size */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 2rem; /* Spacing between cards */
    margin-top: 2rem; /* Space below the section title */
}

.service-card {
    background-color: #ffffff;
    padding: 2rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 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(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

/* Style for Font Awesome icons */
.service-card .icon-fa {
    margin-bottom: 1rem; /* Space below icon */
    color: #212529; /* Changed to dark gray/black */
}

.service-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.service-card p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
}

/* --- Contact Form Styling --- */
#contact {
    background-color: #f8f9fa; /* Match hero background */
    padding: 4rem 2rem;
}

#contact h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #212529;
}

#contact form {
    max-width: 700px; /* Slightly wider */
    margin: 0 auto;
    background-color: #ffffff; /* White background for the form card */
    padding: 2.5rem; /* More padding */
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

#contact label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    font-size: 0.9rem;
    color: #495057;
}

#contact input[type="text"],
#contact input[type="email"],
#contact textarea {
    width: 100%;
    padding: 0.8rem 1rem; /* Adjust padding */
    margin-bottom: 1.5rem; /* More space below inputs */
    border: 1px solid #ced4da; /* Lighter border */
    border-radius: 4px;
    font-size: 1rem;
    line-height: 1.5;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

#contact input[type="text"]:focus,
#contact input[type="email"]:focus,
#contact textarea:focus {
    border-color: #495057; /* Darker border on focus */
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(33, 37, 41, 0.25); /* Subtle focus shadow */
}

#contact textarea {
    min-height: 120px; /* Taller textarea */
    resize: vertical; /* Allow vertical resize */
}

#contact button {
    /* Use existing .cta-button styles, but center it */
    display: block; /* Make it block to use margin auto */
    width: fit-content; /* Adjust width to content */
    margin: 1rem auto 0 auto; /* Center the button */
    /* Inherits colors from .cta-button */
}

/* Footer Styling */
footer {
    text-align: center;
    padding: 2rem;
    background-color: #333;
    color: #fff;
    margin-top: auto; /* Push footer down if content is short */
}

footer p {
    margin-bottom: 0.5rem;
}

footer a {
    color: #eee;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Hide Honeypot Field */
.honeypot-field {
    position: absolute;
    left: -5000px; /* Move off-screen */
}

/* Form Status Message Styling */
.form-status-message {
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
}

.form-status-message.success {
    background-color: #d4edda; /* Light green */
    color: #155724; /* Dark green */
    border: 1px solid #c3e6cb;
}

.form-status-message.error {
    background-color: #f8d7da; /* Light red */
    color: #721c24; /* Dark red */
    border: 1px solid #f5c6cb;
} 