/* Main CSS */
* {
    box-sizing: border-box;
}

/* Variables */
:root {
    --color-primary: #FDE103;
    /* Yellow */
    --color-text: #000000;
    --color-text-light: #666666;
    --font-family-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    --footer-bg: #fff;
    --footer-border: #EAEAEA;
}

body {
    margin: 0;
    font-family: var(--font-family-base);
    color: var(--color-text);
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
    /* Global reset for likely scenarios */
    padding: 0;
    margin: 0;
}

/* Header Structure */
.site-header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Logo */
.site-branding .custom-logo {
    max-height: 50px;
    width: auto;
    display: block;
}

.site-title {
    font-size: 24px;
    margin: 0;
    font-weight: bold;
}

/* Navigation */
.main-navigation ul {
    display: flex;
    gap: 30px;
}

.main-navigation a {
    color: var(--color-text);
    font-weight: 500;
    font-size: 16px;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s;
}

.main-navigation a:hover,
.main-navigation .current-menu-item a {
    border-bottom-color: var(--color-primary);
    color: #000;
}

/* CTA Button */
.header-cta .btn-cta {
    background-color: var(--color-primary);
    color: #000;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 14px;
    transition: opacity 0.3s;
    display: inline-block;
}

.header-cta .btn-cta:hover {
    opacity: 0.9;
}

.mobile-menu-toggle {
    display: none;
}

/* Mobile Icons */
.mobile-menu-toggle svg,
.mobile-menu-close svg {
    width: 24px;
    height: 24px;
    display: block;
}

/* Hide Mobile Elements on Desktop */
.mobile-menu-close,
.mobile-menu-cta {
    display: none;
}

/* Footer Structure */
.site-footer {
    background-color: var(--footer-bg);
    padding-top: 20px;
    margin-top: 50px;
    color: #1a1a1a;
}

.site-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Top Section: Widgets */
.footer-widgets {
    display: flex;
    /* Changed from grid to flex for better distribution if needed, but grid is safer */
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 20px;
}

.footer-column .footer-heading {
    font-size: 12px;
    color: #000;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 25px;
    margin-top: 0;
}

.footer-column ul li {
    margin-bottom: 15px;
    line-height: 1.4;
}

.footer-column ul li a {
    color: #666;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-column ul li a:hover {
    color: #000;
}

/* Bottom Bar */
.site-footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-top: 1px solid var(--footer-border);
}

.site-footer-bottom .site-branding {
    flex: 0 0 25%;
    max-width: 25%;
}

.site-copyright {
    flex: 0 0 50%;
    max-width: 50%;
    text-align: center;
    color: #666;
    font-size: 13px;
}

.footer-socials {
    flex: 0 0 25%;
    max-width: 25%;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

.footer-socials .social-icon {
    width: 36px;
    height: 36px;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    transition: all 0.2s;
    font-size: 14px;
    text-decoration: none;
}

.footer-socials .social-icon:hover {
    border-color: #000;
    color: #000;
    background-color: #f9f9f9;
}

.footer-socials .social-icon i {
    /* Dashicons alignment fix if needed */
    line-height: 1;
}

/* Mobile Responsive */
/* Mobile Responsive */
@media (max-width: 992px) {

    /* Tablet and Mobile */
    .mobile-menu-toggle {
        display: block;
        /* Show toggle */
    }

    .main-navigation {
        position: fixed;
        top: 0;
        left: 0;
        width: 75%;
        max-width: 300px;
        height: 100vh;
        background-color: #fff;
        padding: 50px 20px 20px;
        /* Reduced top padding, close button handles space */
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        z-index: 1100;
        display: block !important;
        overflow-y: auto;
    }

    .mobile-menu-close {
        position: absolute;
        top: 20px;
        right: 20px;
        background: none;
        border: none;
        font-size: 24px;
        cursor: pointer;
        color: var(--color-text);
        z-index: 1001;
        /* Ensure above menu content */
        display: block;
    }

    .main-navigation.toggled {
        transform: translateX(0);
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.2);
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 20px;
        text-align: left;
        padding-left: 10px;
        /* 10Px margin/padding as requested */
        margin-top: 20px;
    }

    .main-navigation li {
        width: 100%;
    }

    /* Mobile Menu Buttons Styling */
    .mobile-menu-cta {
        display: flex;
        flex-direction: column;
        gap: 15px;
        /* Space between buttons */
        margin-top: 30px;
        padding-left: 10px;
    }

    .mobile-menu-cta .btn-cta {
        display: block;
        width: 100%;
        text-align: center;
        background-color: var(--color-primary);
        /* Button Background */
        color: #000;
        padding: 12px;
        border-radius: 4px;
        /* Slightly nicer look than pill for full width? Or keep pill */
        border-radius: 50px;
        font-weight: bold;
        text-decoration: none;
    }

    .mobile-menu-cta .btn-secondary {
        background-color: #000;
        /* Distinct background for secondary */
        color: #fff;
    }

    .footer-widgets {
        grid-template-columns: repeat(2, 1fr);
        /* 2 Columns for Tablet */
    }
}

@media (max-width: 768px) {

    /* Header Mobile Layout: Icon (10%) | Logo (30%) | Gap (20%) | Button (40%) */
    .site-header-inner {
        flex-wrap: nowrap;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        padding: 5px 0;
    }

    /* 1. Menu Icon: 10% */
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        background: none;
        border: none;
        font-size: 24px;
        cursor: pointer;
        color: var(--color-text);

        order: 1;
        flex: 0 0 10%;
        /* Strict 10% */
        width: 10%;
        max-width: 10%;
        margin: 0;
        padding: 10px;
        min-height: 44px;
        min-width: 44px;
    }

    /* 2. Logo: 30% */
    .site-branding {
        order: 2;
        flex: 0 0 30%;
        /* Strict 30% */
        width: 30%;
        max-width: 30%;
        margin: 0;
        display: flex;
        align-items: center;
        overflow: hidden;
    }

    .site-branding img,
    .site-branding .site-title {
        max-width: 100%;
        height: auto;
    }

    /* 3. Button: 40% + 20% Gap */
    /* Gap is achieved via margin-left */
    /* We use margin-left: auto or specific %? User said Gap 20%. */
    /* Icon(10) + Logo(30) = 40. Remaining 60. Button 40. Gap 20. */
    .header-cta {
        display: block;
        order: 3;
        flex: 0 0 40%;
        /* Strict 40% */
        width: 40%;
        max-width: 40%;
        margin-left: 20%;
    }

    .mobile-menu-cta {
        display: flex;
        /* Show on Mobile */
    }

    .header-cta a:not(.btn-secondary) {
        font-size: 13px;
        padding: 8px 0;
        width: 100%;
        text-align: center;
        display: block;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .header-cta .btn-secondary {
        display: none;
    }

    /* Footer Mobile Accordion style */
    /* Footer Mobile Accordion style */
    .footer-widgets {
        display: flex;
        align-content: center;
        justify-content: space-evenly;
        align-items: flex-start;
        flex-direction: column;
        gap: 0;
        text-align: left;
    }

    .footer-column {
        border-bottom: 1px solid #eee !important;
        /* Force border */
        padding: 0;
        width: 100%;
        /* Ensure full width */
    }

    .footer-heading {
        margin: 0;
        margin-bottom: 0;
        padding: 15px 10px;
        /* Improve touch area padding */
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .footer-heading::after {
        content: '+';
        font-size: 18px;
        font-weight: 400;
        transition: transform 0.3s;
    }

    .footer-column.active .footer-heading::after {
        transform: rotate(45deg);
    }

    .footer-column ul,
    .footer-column .footer-menu {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
        margin: 0;
        padding-bottom: 0;
    }

    .footer-column.active ul,
    .footer-column.active .footer-menu {
        max-height: 500px;
        /* Arbitrary large height */
        padding-bottom: 20px;
        padding-left: 10px;
        /* Indent content */
        padding-right: 10px;
    }

    .site-footer-bottom {
        flex-direction: column;
        gap: 0;
        text-align: center;
        padding-top: 30px;
    }

    /* Reset width percentages for mobile stack */
    .site-footer-bottom .site-branding,
    .site-copyright,
    .footer-socials {
        flex: 1 1 auto;
        max-width: 100%;
        justify-content: center;
    }

    .site-copyright {
        order: 2;
    }

    .footer-socials {
        order: 3;
    }

    .site-branding {
        order: 1;
        margin-bottom: 0;
    }
}

@media (max-width: 480px) {
    .footer-widgets {
        grid-template-columns: 1fr;
    }
}

/* Modal Styling */
.modal-overlay {
    display: none;
    /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 450px;
    position: relative;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.modal-content h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 22px;
    text-align: center;
    color: #000;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    font-size: 14px;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    /* Important for padding */
}

.form-group input:disabled {
    background-color: #f5f5f5;
    color: #666;
}

.btn-submit {
    width: 100%;
    background-color: var(--color-primary);
    color: #000;
    padding: 12px;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    font-size: 16px;
    transition: opacity 0.3s;
}

.btn-submit:hover {
    opacity: 0.9;
}

.btn-submit:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

#form-status {
    text-align: center;
    margin-top: 10px;
    font-size: 14px;
}

/* WQ Grid Widget */
.wq-grid-container {
    display: grid;
    /* Columns and gap are handled by Elementor controls via inline styles */
}

/* Equal Height Logic */
.wq-equal-height-yes .wq-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.wq-equal-height-yes .wq-card-content {
    flex-grow: 1;
}

/* Hover Effects */
.wq-hover-lift .wq-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wq-hover-lift .wq-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.wq-hover-shadow .wq-card {
    transition: box-shadow 0.3s ease;
}

.wq-hover-shadow .wq-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.wq-card {
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.wq-card-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.wq-card-content {
    padding: 20px;
    flex-grow: 1;
}

.wq-card-title {
    margin: 0 0 10px;
    font-size: 18px;
    color: var(--color-text);
}

.wq-card-description {
    font-size: 14px;
    color: var(--color-text-light);
    line-height: 1.5;
}

/* WQ Carousel Widget (Swiper Overrides) */
.elementor-swiper {
    position: relative;
}

.elementor-swiper .swiper-slide {
    height: auto;
    /* Ensure equal height slides */
}

.elementor-swiper-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.elementor-swiper-button:hover {
    background: #fff;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15);
}

.elementor-swiper-button-prev {
    left: 10px;
}

.elementor-swiper-button-next {
    right: 10px;
}

/* Arrows Outside */
.wq-arrows-outside .elementor-swiper-button-prev {
    left: -50px;
}

.wq-arrows-outside .elementor-swiper-button-next {
    right: -50px;
}

.swiper-pagination {
    position: relative;
    margin-top: 20px;
    text-align: center;
}

.swiper-pagination-bullet-active {
    background: var(--color-primary);
}

/* WQ Grid Widget */
.wq-grid-container {
    display: grid;
    /* Columns and gap are handled by Elementor controls via inline styles */
}

.wq-card {
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.wq-card-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.wq-card-content {
    padding: 20px;
    flex-grow: 1;
}

.wq-card-title {
    margin: 0 0 10px;
    font-size: 18px;
    color: var(--color-text);
}

.wq-card-description {
    font-size: 14px;
    color: var(--color-text-light);
    line-height: 1.5;
}

/* WQ Carousel Widget (Swiper Overrides) */
.elementor-swiper {
    position: relative;
}

.elementor-swiper .swiper-slide {
    height: auto;
    /* Ensure equal height slides */
}