/* --- General Body & Layout (Applies to all pages) --- */
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa; /* Light grey background */
    color: #343a40; /* Dark grey text */
    line-height: 1.6;
}

h1, h2, h3 {
    color: #FF6433; /* Primary blue for headings */
    margin-bottom: 15px;
}

main {
    max-width: 1200px;
    margin: 30px auto;
    padding: 25px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.07);
}

/* --- Header & Navigation (Applies to all pages) --- */
.main-header {
    background-color: #FF6433; /* Dark grey header */
    color: #ffffff;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.navbar .logo a {
    color: #ffffff;
    font-size: 1.8em;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease;
}

.navbar .logo a:hover {
    color: #007bff; /* Blue hover for logo */
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.1em;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    display: block;
    margin-top: 5px;
    right: 0;
    background: #007bff; /* Blue underline */
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
    left: 0;
    background: #007bff;
}
.nav-links a:hover {
    color: #007bff;
}


/* --- Hero Section (Home Page Specific) --- */
.hero-section {
    text-align: center;
    padding: 40px 20px;
    background-color: #e2f0ff; /* Very light blue background */
    border-radius: 8px;
    margin-bottom: 40px;
    box-shadow: inset 0 0 15px rgba(0,0,0,0.05);
}

.hero-content {
    display: flex;
    flex-direction: column; /* Stack image and text by default */
    align-items: center;
    gap: 30px;
}

.company-hero-photo {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
    object-fit: cover; /* Ensures image covers its area well */
    width: 100%; /* Take full width on small screens */
    max-height: 400px; /* Limit max height */
}

.hero-text {
    max-width: 800px;
}

.hero-text h1 {
    font-size: 3em;
    margin-bottom: 15px;
    color: #FF6433; /* Slightly darker blue */
}

.hero-text .tagline {
    font-size: 1.5em;
    color: #555;
    margin-bottom: 25px;
    font-style: italic;
}

.hero-text p {
    font-size: 1.1em;
    margin-bottom: 30px;
}

.cta-button {
    display: inline-block;
    background-color: #007bff; /* Primary blue button */
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.cta-button:hover {
    background-color: #0056b3; /* Darker blue on hover */
    transform: translateY(-2px);
}

/* --- About Us Preview (Home Page Specific) --- */
.about-us-preview {
    text-align: center;
    padding: 30px 20px;
    margin-bottom: 40px;
    border-bottom: 1px solid #eee;
}

.about-us-preview h2 {
    font-size: 2.2em;
    margin-bottom: 20px;
}

.about-us-preview p {
    font-size: 1em;
    max-width: 800px;
    margin: 0 auto 25px auto;
}

.secondary-button {
    display: inline-block;
    background-color: #6c757d; /* Grey button */
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1em;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.secondary-button:hover {
    background-color: #5a6268; /* Darker grey on hover */
    transform: translateY(-2px);
}


/* --- Social Media Section (Home Page Specific) --- */
.social-media-home {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.social-media-home h2 {
    font-size: 2em;
    margin-bottom: 25px;
}

.social-links-home {
    display: flex;
    justify-content: center;
    gap: 25px; /* Space between icons */
    flex-wrap: wrap;
}

.social-icon-home {
    display: inline-block;
    width: 50px;
    height: 50px;
    line-height: 50px;
    color: white; /* Text color */
    border-radius: 50%;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9em;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    text-align: center;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* Specific background colors for home social icons */
.social-icon-home.facebook-home { background-color: #3b5998; }
.social-icon-home.twitter-home { background-color: #1da1f2; }
.social-icon-home.linkedin-home { background-color: #0077b5; }
.social-icon-home.instagram-home { background-color: #e4405f; }

.social-icon-home:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25);
    /* For specific hover effects if you want: */
    /* background-color: darken(color, 10%); */
}


/* --- Footer (Applies to all pages) --- */
footer {
    text-align: center;
    padding: 25px;
    background-color: #FF6433; /* Dark grey footer */
    color: #ffffff;
    margin-top: 40px;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
}

/* --- Responsive Design --- */
@media (min-width: 769px) {
    /* For larger screens, align hero text and image side-by-side */
    .hero-content {
        flex-direction: row; /* Horizontal layout for image and text */
        text-align: left;
        align-items: center; /* Vertically align items */
        gap: 50px;
    }
    .company-hero-photo {
        max-width: 50%; /* Image takes half width */
        margin: 0; /* Remove centered margin */
    }
    .hero-text {
        text-align: left;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column; /* Stack logo and nav links */
        padding: 15px;
    }
    .nav-links {
        margin-top: 15px;
        flex-wrap: wrap; /* Allow nav items to wrap */
        justify-content: center;
    }
    .nav-links li {
        margin: 0 15px 10px 15px; /* Adjust spacing for stacked links */
    }

    .main {
        margin: 20px;
        padding: 20px;
    }

    .hero-text h1 {
        font-size: 2.2em;
    }
    .hero-text .tagline {
        font-size: 1.2em;
    }
    .cta-button {
        padding: 12px 25px;
        font-size: 1em;
    }
    .about-us-preview h2,
    .social-media-home h2 {
        font-size: 1.8em;
    }
    .social-icon-home {
        width: 45px;
        height: 45px;
        line-height: 45px;
        font-size: 0.8em;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 1.8em;
    }
    .hero-text .tagline {
        font-size: 1em;
    }
    .social-links-home {
        gap: 15px; /* Smaller gap for very small screens */
    }
}

/* Common elements from previous pages for consistent styling */
/* Tables and Contact Forms might be on services.html and contact.html respectively,
   but these general styles ensure consistency. You would combine all your CSS
   into this one style.css file. */

/* Example of adding table styling if it was in the same style.css */
/*
.table-container {
    overflow-x: auto;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
}
table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
}
table th, table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}
table th {
    background-color: #007bff;
    color: white;
}
table tbody tr:nth-child(even) { background-color: #f9f9f9; }
table tbody tr:hover { background-color: #f1f1f1; }

@media screen and (max-width: 768px) {
    table, thead, tbody, th, td, tr { display: block; }
    thead tr { position: absolute; top: -9999px; left: -9999px; }
    table tr { border: 1px solid #ddd; margin-bottom: 15px; border-radius: 5px; }
    table td {
        border: none; border-bottom: 1px solid #eee; position: relative;
        padding-left: 50%; text-align: right;
    }
    table td:before {
        content: attr(data-label); position: absolute; left: 10px; width: 45%;
        padding-right: 10px; white-space: nowrap; text-align: left;
        font-weight: bold; color: #555;
    }
}

.form-group label { display: block; margin-bottom: 8px; font-weight: bold; }
.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;
}
button[type="submit"] {
    display: block; width: 100%; padding: 15px; background-color: #007bff; color: white;
    border: none; border-radius: 5px; cursor: pointer;
}
*/