/* Global Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #ffffff;
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    background-color: #f4f4f4;
    border-bottom: 1px solid #ddd;
    z-index: 1000;
    box-shadow: none;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    height: 64px;
    /* Approximate Toolbar height */
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    height: 50px;
    margin-right: 10px;
    padding: 5px 0;
}

.desktop-nav {
    display: none;
    gap: 24px;
}

.nav-link {
    color: #333;
    font-weight: bold;
    font-size: 16px;
    text-transform: none;
    padding: 6px 8px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.nav-link:hover {
    background-color: rgba(0, 0, 0, 0.04);
}

.cta-button {
    display: none;
    background-color: #333;
    color: white;
    padding: 8px 22px;
    border-radius: 20px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #007000;
}

.mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

/* Responsive Header */
@media (min-width: 900px) {
    .desktop-nav {
        display: flex;
    }

    .cta-button {
        display: block;
    }

    .mobile-menu-btn {
        display: none;
    }
}

/* Mobile Drawer */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 100%;
    z-index: 1100;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.3s, opacity 0.3s;
}

.mobile-drawer.open {
    visibility: visible;
    opacity: 1;
}

.drawer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.drawer-content {
    position: absolute;
    top: 0;
    right: -250px;
    /* Hidden initially */
    width: 250px;
    height: 100%;
    background-color: #fff;
    padding: 16px;
    z-index: 2;
    transition: right 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
}

.mobile-drawer.open .drawer-content {
    right: 0;
}

.close-drawer-btn {
    align-self: flex-end;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
}

.mobile-nav-link {
    padding: 12px 16px;
    color: #333;
    font-weight: 500;
    border-radius: 4px;
}

.mobile-nav-link:hover {
    background-color: rgba(0, 0, 0, 0.04);
}

/* Main Content */
main {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Hero Section */
.hero-section {
    background-color: #18a85d;
    color: #fff;
    padding: 120px 20px;
    text-align: center;
    border-radius: 16px;
    margin-bottom: 40px;
}

.hero-subtitle {
    font-weight: bold;
    color: black;
    font-size: 2.125rem;
    /* h4 */
    margin-bottom: 10px;
}

.hero-title {
    color: black;
    font-size: 3.75rem;
    /* h2 */
    margin-top: 10px;
    font-weight: 300;
    /* Default h2 weight in MUI is usually lighter, but let's check */
}

/* About Section */
.about-section {
    padding: 40px 20px;
    text-align: center;
}

.section-title {
    font-weight: bold;
    font-size: 2.125rem;
    /* h4 */
    margin-bottom: 10px;
}

.about-text {
    color: #333;
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
    font-size: 1rem;
}

/* Testimonials Section */
.testimonials-section {
    padding: 40px 20px;
    text-align: center;
}

.testimonials-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
}

.testimonial-card {
    width: 500px;
    display: flex;
    background-color: #FFF0C8;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden;
}

.testimonial-card:hover {
    transform: scale(1.05);
    box-shadow: 0px 8px 12px rgba(0, 0, 0, 0.2);
}

.card-image-placeholder {
    width: 40px;
    background-color: #ccc;
    flex-shrink: 0;
}

.card-content {
    padding: 20px;
    flex: 1;
    text-align: left;
}

.card-title {
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 1.25rem;
    /* h6 */
}

.card-text {
    color: #333;
    font-size: 0.875rem;
    /* body2 */
}

/* Footer Text Section */
.footer-text-section {
    padding: 20px 20px;
    text-align: center;
}

.footer-quote {
    font-weight: bold;
    color: #333;
    font-size: 2.125rem;
    /* h4 */
}

.footer-divider {
    margin: 20px 0;
    height: 2px;
    background-color: #ddd;
    border: none;
}

/* Footer */
.site-footer {
    background-color: #f4f4f4;
    padding: 20px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-left,
.footer-middle,
.footer-right {
    flex: 1;
    min-width: 300px;
    margin-bottom: 20px;
}

.footer-middle {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-right {
    text-align: right;
}

.footer-logo {
    height: 50px;
    margin-bottom: 10px;
}

.footer-address,
.footer-phone,
.footer-hours,
.footer-liability,
.footer-desc,
.footer-copyright {
    font-size: 0.875rem;
    /* body2 */
    color: #333;
    margin-bottom: 10px;
}

.footer-liability,
.footer-copyright {
    color: #666;
}

.footer-desc {
    font-weight: bold;
    font-size: 1rem;
    /* body1 */
}

.footer-divider-full {
    margin: 20px 0;
    background-color: #ddd;
    border: none;
    height: 1px;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.footer-nav a {
    font-size: 0.675rem;
    color: #333;
}

/* Animations */
.fade-in-up {
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

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

.delay-1 {
    transition-delay: 0.3s;
}

.delay-2 {
    transition-delay: 0.5s;
}

.delay-3 {
    transition-delay: 0.7s;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .testimonial-card {
        width: 100%;
    }

    .card-image-placeholder {
        width: 40px;
        height: 100%;
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-right {
        text-align: center;
    }
}

/* Contact Page Styles */
.contact-form-section {
    min-height: 60vh;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
}

.form-container {
    background-color: #e0e0e0;
    border-radius: 8px;
    padding: 30px;
    max-width: 600px;
    width: 100%;
}

.form-title {
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
    font-size: 1.25rem;
    /* h6 */
}

.form-group {
    margin-bottom: 15px;
}

.form-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    /* Default border */
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

.submit-btn {
    background-color: #18A85D;
    color: white;
    font-weight: bold;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-transform: none;
    transition: background-color 0.3s;
    width: 100%;
    /* Or auto if preferred */
    margin-top: 10px;
}

.submit-btn:hover {
    background-color: #005500;
}

.contact-info-section {
    text-align: center;
    margin-bottom: 40px;
}

.info-title {
    font-weight: bold;
    margin-bottom: 10px;
    padding: 20px;
    color: #333;
    font-size: 1.5rem;
    /* h5 */
}

.info-text {
    color: #333;
    line-height: 1.6;
}

.map-section {
    margin-top: 40px;
}

/* Services Page Styles */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    /* spacing={4} in MUI is usually 32px */
    margin-bottom: 40px;
}

.service-card {
    background-color: #FFF0C8;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    height: 100%;
    /* Match height */
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.5s ease, opacity 0.5s ease, box-shadow 0.3s;
}

.service-card:hover {
    transform: scale(1.05);
    box-shadow: 0px 8px 12px rgba(0, 0, 0, 0.2);
}

.service-title {
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 1.25rem;
    /* h6 */
}

.service-desc {
    color: #333;
    flex-grow: 1;
    font-size: 0.875rem;
    /* body2 */
}

/* Why Us Page Styles */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    /* Wider cards */
    gap: 32px;
    margin-bottom: 40px;
}

.team-card {
    background-color: #FFF0C8;
    border-radius: 8px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    height: 100%;
    display: flex;
    flex-direction: row;
    overflow: hidden;
    transition: transform 0.5s ease, opacity 0.5s ease, box-shadow 0.3s;
}

.team-card:hover {
    transform: scale(1.05);
    box-shadow: 0px 8px 12px rgba(0, 0, 0, 0.2);
}

.team-image {
    width: 150px;
    height: 100%;
    /* Cover full height */
    object-fit: cover;
    border-radius: 8px 0 0 8px;
    flex-shrink: 0;
}

.team-content {
    flex: 1;
    padding: 20px;
    text-align: left;
}

.team-name {
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 1.25rem;
    /* h6 */
}

.team-desc {
    color: #333;
    font-size: 0.875rem;
    /* body2 */
}

/* Blog Page Styles */
.blog-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.blog-card {
    display: flex;
    background-color: #FFF0C8;
    border-radius: 8px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    height: 150px;
    overflow: hidden;
    transition: transform 0.5s ease, opacity 0.5s ease, box-shadow 0.3s;
    cursor: pointer;
}

.blog-card:hover {
    transform: scale(1.02);
    box-shadow: 0px 8px 12px rgba(0, 0, 0, 0.2);
}

.blog-image-container {
    width: 150px;
    height: 100%;
    flex-shrink: 0;
}

.blog-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-content {
    flex: 1;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

.blog-title {
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 1.25rem;
    /* h6 */
}

.blog-excerpt {
    color: #333;
    font-size: 0.875rem;
    /* body2 */
}

/* Privacy Page Styles */
.privacy-content {
    padding: 40px 20px;
    text-align: left;
}

.privacy-text {
    color: #333;
    max-width: 800px;
    margin: 0 auto;
    font-size: 1rem;
    line-height: 1.8;
}

.privacy-text h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #18a85d;
}

.privacy-text p {
    margin-bottom: 15px;
}

.privacy-text ul {
    list-style-type: disc;
    padding-left: 30px;
    margin-bottom: 20px;
}

.privacy-text li {
    margin-bottom: 8px;
}

/* Responsive Adjustments for Team/Blog */
@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr;
    }

    .team-card {
        flex-direction: row;
        height: auto;
    }

    .team-image {
        width: 160px;
        height: auto;
        min-height: 180px;
        object-fit: cover;
        object-position: top;
        border-radius: 8px 0 0 8px;
    }

    .blog-card {
        flex-direction: column;
        height: auto;
    }

    .blog-image-container {
        width: 100%;
        height: 200px;
    }

    .blog-content {
        padding: 20px;
    }
}

/* Slider Styles */
.team-slider-section {
    position: relative;
    max-width: 1200px;
    /* Match main content max-width */
    margin: 0 auto 40px;
    padding: 0 40px;
    /* Space for buttons */
}

.slider-container {
    position: relative;
    height: 300px;
    /* Increased height for safety */
    overflow: hidden;
    /* Ensure no overflow */
}

.slider-track-container {
    height: 100%;
    overflow: hidden;
    position: relative;
}

.slider-track {
    padding: 0;
    margin: 0;
    list-style: none;
    position: relative;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.slider-slide {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50%;
    /* Show 2 items at a time */
    padding: 0 16px;
    /* Spacing between slides (32px gap equivalent) */
}

/* Reuse team-card styles but ensure they fit */
.slider-slide .team-card {
    width: 100%;
    height: 100%;
    margin: 0;
    flex-direction: row;
    /* Keep horizontal layout */
    align-items: stretch;
    /* Ensure full height */
}

.slider-slide .team-image {
    width: 150px;
    /* Match original width */
    height: 100%;
    border-radius: 8px 0 0 8px;
    object-fit: cover;
}

.slider-slide .team-content {
    padding: 20px;
    /* Match original padding */
    overflow: hidden;
    /* Prevent text overflow */
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.7);
    /* Semi-transparent background for visibility */
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #333;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.slider-btn:hover {
    background: #fff;
    color: #18a85d;
}

.prev-btn {
    left: 0;
    /* Inside the container or just on edge */
}

.next-btn {
    right: 0;
}

.slider-nav {
    display: flex;
    justify-content: center;
    padding: 20px 0;
}

.slider-dot {
    border: none;
    border-radius: 50%;
    width: 12px;
    height: 12px;
    background: #ccc;
    margin: 0 5px;
    cursor: pointer;
}

.slider-dot.current-slide {
    background: #18a85d;
}

/* Responsive Slider */
@media (max-width: 768px) {
    .team-slider-section {
        padding: 0 20px;
    }

    .slider-container {
        height: auto;
    }

    .slider-track-container {
        height: auto;
        min-height: 450px;
    }

    .slider-slide {
        position: absolute;
        width: 100%;
        /* Show 1 item on mobile */
        height: 100%;
        padding: 0;
    }

    .slider-slide .team-card {
        flex-direction: column;
        /* Stack on mobile */
    }

    .slider-slide .team-image {
        width: 100%;
        height: 200px;
        border-radius: 8px 8px 0 0;
    }

    .slider-btn {
        display: none;
        /* Hide arrows on mobile */
    }

    .slider-nav {
        margin-top: 10px;
    }
}

.is-hidden {
    display: none;
}

/* replace customgform */
.cgf__copy {
    display: none !important;
}

.cgf__btn {
    background-color: #18A85D !important;
    color: white !important;
    font-weight: bold !important;
    padding: 10px 20px !important;
    border: none !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    text-transform: none !important;
    transition: background-color 0.3s !important;
    width: 100% !important;
    margin-top: 10px !important;
}

.cgf-theme-base .cgf__container {
    padding: 0 !important;
    border: 0 !important;
}