/* _common.css */

body {
    font-family: Arial, sans-serif;
    margin: 0;
    line-height: 1.6;
    background-color: #f8f9fa;
    color: #212529; /* Default dark gray for body text */
}

.hero-banner {
    width: 100%;
    height: 400px;
    overflow: hidden;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* background-image: url("/images/modified_banner.png"); */ /* Disabled image banner */
    max-width: 1200px; /* Limit width on larger screens */
    margin-left: auto;
    margin-right: auto;
}

/* Consolidated header styles */
header {
    background-color: #212529; /* Dark charcoal for a modern, professional look */
    color: #ffffff; /* Default text color for header content */
    padding: 20px; /* Add some padding */
    text-align: center;
    /* margin-bottom is now handled by the nav element */
}

/* Styles for the logo image within the header */
.header-logo {
    max-height: 70px; /* Adjust as needed for your logo's height */
    width: auto; /* Maintain aspect ratio */
    max-width: 100%; /* Ensure responsiveness */
    /* Removed display: block and margin: 0 auto; as flex container handles alignment */
}

/* New class for the flex container holding logo and title */
.header-top-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px; /* Space between logo and text */
    flex-wrap: wrap; /* Allow items to wrap on smaller screens */
    margin-bottom: 10px; /* Space below the logo and title row */
}

header h1 {
    font-size: 2.4em;
    font-weight: bold;
    margin-bottom: 0; /* Keep this as it's within the flex item */
    color: #ffffff; /* White for company name */
}

header .motto {
    font-size: 1.3em;
    color: #ffffff; /* White for motto */
    font-style: normal;
    margin-top: 0.5em;
    margin-bottom: 10px; /* Space below motto */
}

header .service-area {
    margin-bottom: 25px;
    font-size: 1.1em;
}

/* Removed .main-content-wrapper > header as its styles are moved to `header` directly */
h1 {
    color: #212529;
    font-size: 2.8em;
    font-weight: bold;
    margin-bottom: 0.2em;
} /* General H1 for page titles - this will be overridden by `header h1` */

.motto {
    font-style: normal;
    color: #0056b3;
    margin-top: 0;
    margin-bottom: 5px;
    font-size: 1.4em;
} /* This seems to be a duplicate/override, ensure one definition is primary */

.service-area {
    color: #495057;
    margin-bottom: 20px;
    font-size: 1em;
}

.container {
    padding: 0 15px;
}

/* Ensure the container within the header centers its content */
header .container {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers items horizontally in a column flex container */
}

.main-content-wrapper { /* Moved from index.html and contact.html for consistency */
    padding: 20px;
}

/* Consolidated nav styles */
nav {
    background-color: #212529; /* Match the header's new dark background */
    padding: 10px 20px; /* Add padding for spacing */
    text-align: center;
    margin-bottom: 30px; /* This now creates the space below the nav bar */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* Optional: add a subtle shadow */
}

nav ul {
    list-style-type: none; /* Removes the bullet points */
    padding: 0;
    margin: 0;
}

nav ul li {
    display: inline-block; /* Displays the navigation items horizontally */
    margin: 0 5px; /* Adds a small space between each navigation item */
}

nav a {
    /* margin is now handled by the li element */
    text-decoration: none;
    color: #ffffff; /* White for nav links */
    padding: 8px 15px; /* Creates a larger, button-like clickable area */
    border-radius: 5px; /* Adds rounded corners for a modern look */
    transition: background-color 0.2s ease-in-out; /* Smooth hover effect */
}

nav a:hover {
    text-decoration: none; /* Keeps the look clean on hover */
    background-color: #004a99; /* A slightly darker blue for the hover state */
    color: #ffffff;
}

h2 {
    color: #343a40;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 5px;
} /* Consistent H2 color */

.services, .pricing {
    margin-bottom: 30px;
}

.plan {
    border: 1px solid #ddd;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 5px;
}

.plan h3 {
    margin-top: 0;
    color: #0056b3;
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.pricing-table th, .pricing-table td {
    border: 1px solid #ddd;
    padding: 12px 15px;
    text-align: left;
}

.pricing-table th {
    background-color: #e9ecef;
    color: #000000;
    font-weight: bold;
} /* High contrast table header */

.pricing-table td {
    color: #212529;
} /* Dark text for table data */

.pricing-table .plan-name {
    font-size: 1.2em;
    color: #0056b3;
}

.pricing-table .price {
    font-size: 1.4em;
    font-weight: bold;
    color: #28a745;
}

.pricing-table .feature-label {
    font-weight: bold;
}

.pricing-table .check-mark {
    color: green;
    font-weight: bold;
}

.pricing-table .cross-mark {
    color: red;
}

.pricing-table tr:nth-child(even) {
    background-color: #fdfdfd;
}

.pricing-table tr:hover {
    background-color: #f1f1f1;
}

.pricing-table .highlight {
    background-color: #e7f3ff;
}

.pricing-table .highlight .plan-name {
    color: #004085;
}

.pricing-table .highlight .price {
    color: #0069d9;
}

.pricing-table .contact-btn {
    display: inline-block;
    padding: 8px 15px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    text-align: center;
}

.consultation-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #28a745;
    color: white;
    fill: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 1.1em;
    margin-top: 15px;
    margin-left: 5px;
    margin-right: 5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: inline-flex;
    align-items: center;
}

.consultation-btn:hover {
    background-color: #218838;
    transform: translateY(-2px);
}

.existing-client-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 1.1em;
    margin-top: 15px;
    margin-left: 5px;
    margin-right: 5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: inline-flex;
    align-items: center;
}

.existing-client-btn:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

/* Chatbot Callout Styles (moved from _footer.html) */
:root { --brand-navy:#002c6c; } /* Define brand color if not globally available */
.chat-callout {
    position: fixed;
    bottom: 100px; /* Adjust if it overlaps with your chat widget icon */
    right: 20px;
    z-index: 999;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    visibility: hidden;
    font-family: "Inter", "Arial", sans-serif;
}
.chat-callout.show {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}
.chat-callout-content {
    background-color: var(--brand-navy);
    color: white;
    padding: 12px 40px 12px 18px; /* Extra padding on right for close button */
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    position: relative;
    max-width: 240px;
    font-size: 0.95rem;
    line-height: 1.4;
}
.close-callout-btn {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.7;
    padding: 0 5px;
}
.close-callout-btn:hover { opacity: 1; }
.chat-callout-pointer {
    width: 0; height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid var(--brand-navy);
    position: absolute;
    bottom: -10px;
    right: 25px;
}

.cta-icon {
    margin-right: 8px;
    width: 1.2em;
    height: 1.2em;
}

ul {
    list-style-type: disc;
    margin-left: 20px;
}

.services ul li:hover {
    background-color: #f9f9f9;
    color: #0056b3;
    cursor: default;
}

.service-category .service-category-toggle {
    cursor: pointer;
    user-select: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
}

.service-category .toggle-icon {
    font-weight: bold;
    margin-left: 10px;
}

.service-category .service-details { /* Consolidated from index.html */
    display: none; /* Initially hidden */
    list-style-type: none; /* Remove bullets from the list of cards */
    padding-left: 0; /* Remove default padding for ul */
    margin-left: 0; /* Ensure no inherited margin */
    margin-top: 10px; /* Space above the first card */
}

@media (max-width: 768px) {
    .hero-banner {
        width: 100%;
        max-width: none;
        margin-left: 0;
        margin-right: 0;
    }

    h1 {
        font-size: 2.2em;
    }

    nav a {
        margin: 5px;
        display: inline-block;
    }

    .pricing-table {
        font-size: 0.9em;
    }

    .pricing-table th, .pricing-table td {
        padding: 8px 10px;
    }

    .consultation-btn {
        font-size: 1em;
        padding: 8px 15px;
    }

    .pricing-table thead {
        display: none;
    }

    .pricing-table, .pricing-table tbody, .pricing-table tr, .pricing-table td {
        display: block;
        width: 100%;
    }

    .pricing-table tr {
        margin-bottom: 15px;
        border: 1px solid #ddd;
        border-radius: 4px;
    }

    .pricing-table td {
        text-align: right;
        padding-left: 50%;
        position: relative;
        border-bottom: 1px solid #eee;
    }

    .pricing-table td:last-child {
        border-bottom: 0;
    }

    .pricing-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 10px;
        width: calc(50% - 20px);
        padding-right: 10px;
        text-align: left;
        font-weight: bold;
    }

    .pricing-table td.feature-label {
        display: none;
    }

    .pricing-table .contact-btn {
        padding: 6px 10px;
        font-size: 0.9em;
    }

    .pricing-table td.price, .pricing-table td.highlight {
        text-align: right;
    }
}

footer {
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    border-top: 1px solid #ddd; /* Keep this border, it's subtle */
    background-color: #212529; /* Match the header's new dark background */
    color: #ffffff; /* White text for footer */
}

.promotion-banner { /* Styles for the promotion banner */
    background-color: #d1ecf1; /* Light cyan background */
    color: #0c5460; /* Dark cyan text */
    padding: .75rem 0; /* Padding top/bottom, container handles left/right */
    margin-bottom: 15px; /* Space above main content */
    border-top: 1px solid #b8daff; /* Light blue border */
    border-bottom: 1px solid #b8daff; /* Light blue border */
}

.header-call-us { /* Styles for the phone number in the header */
    text-align: center;
    font-size: 1.1em; /* Adjust as needed */
    font-weight: 500;
    color: #ffffff; /* Changed to white */
    margin-top: 5px; /* Space below motto */
    margin-bottom: 15px; /* Space above nav */
}

.header-call-us a {
    color: #ffffff; /* Consistent link color - changed to white */
    font-weight: bold;
    text-decoration: none;
}

/* --- Service Item & Accordion Styles (from index.html) --- */
.service-item {
    background-color: #ffffff; /* White background for cards */
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 12px; /* Space between cards */
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.service-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.service-item-link {
    font-weight: bold;
    font-size: 1.1em;
    color: #0056b3;
    text-decoration: none;
    display: block;
    margin-bottom: 5px;
}

.service-item-link:hover { text-decoration: underline; color: #003366; }

.service-item-description { font-size: 0.9em; color: #555; margin-top: 0; line-height: 1.5; }

.service-sub-details { list-style-type: disc; padding-left: 20px; margin-top: 8px; font-size: 0.9em; }

.service-sub-details li { margin-bottom: 5px; color: #444; }

/* Styling for Bootstrap accordion buttons to match your theme */
.accordion-button:not(.collapsed) {
    color: #000;
    background-color: #e9ecef;
}

.accordion-button:focus {
    box-shadow: none;
}

/* A reusable class for a centered content box with a card-like appearance */
.content-box {
    text-align: center;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    max-width: 600px;
    margin: 20px auto;
}

/* --- Service Detail Page Styles --- */
.service-detail h2 {
    color: #0056b3;
    border-bottom: 2px solid #0056b3;
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 1.8em;
}

.service-detail h3 {
    color: #555;
    margin-top: 30px;
}

.estimate-note {
    background-color: #f9f9f9;
    border-left: 4px solid #007bff;
    padding: 15px;
    margin-top: 20px;
    font-style: italic;
}

/* --- Contact Form Styles --- */
form.contact-form {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
}
.contact-form label { display: block; margin-bottom: 8px; font-weight: bold; }
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}
.contact-form textarea { resize: vertical; min-height: 150px; }
.contact-form button[type="submit"] {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
}
.contact-form button[type="submit"]:hover {
    background-color: #0056b3;
}
}