/* ==========================================================================
   Unbranded Digital — Custom Footer
   Matches unbranded.digital footer style
   v1.2.5
   ========================================================================== */

/* --- Hide Astra's footer completely --- */
.site-footer,
.ast-footer-overlay {
    display: none !important;
}

/* --- Global page background tint --- */
body {
    background-color: #F3F8FF !important;
}

/* --- Reviews section (Trustindex) --- */
.ud-footer-reviews {
    background: #FFFFFF;
    padding: 56px 0;
    border-top: 1px solid rgba(33, 34, 82, 0.06);
}

.ud-footer-reviews-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Reviews section header --- */
.ud-footer-reviews-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 32px;
}

.ud-footer-reviews-header h2 {
    font-family: 'Safiro', sans-serif;
    font-weight: 700;
    font-size: 2rem;
    color: #212252;
    line-height: 1.2;
    margin: 0 0 12px;
}

.ud-footer-reviews-header p {
    font-family: 'Figtree', sans-serif;
    font-size: 1rem;
    color: rgba(33, 34, 82, 0.6);
    line-height: 1.6;
    margin: 0;
}

/* --- Footer CTA section (light blue to match unbranded.digital) --- */
.ud-footer-cta {
    background: #F3F8FF;
    padding: 72px 0;
}

.ud-footer-cta-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 60px;
}

.ud-footer-cta-left {
    flex: 1;
}

.ud-footer-cta-left h2 {
    font-family: 'Safiro', sans-serif;
    font-weight: 700;
    font-size: 2.4rem;
    line-height: 1.15;
    color: #212252;
    margin: 0;
}

.ud-footer-cta-left h2 em {
    color: #0565FF;
    font-style: normal;
}

.ud-footer-cta-right {
    flex: 0 0 380px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ud-footer-cta-right h3 {
    font-family: 'Safiro', sans-serif;
    font-weight: 600;
    font-size: 1.4rem;
    color: #212252;
    margin: 0;
}

.ud-footer-cta-right p {
    font-family: 'Figtree', sans-serif;
    font-size: 0.95rem;
    color: rgba(33, 34, 82, 0.6);
    line-height: 1.6;
    margin: 0;
}

.ud-footer-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #0565FF;
    color: #FFFFFF !important;
    border: 1.5px solid #0565FF;
    border-radius: 60px;
    padding: 14px 32px;
    font-family: 'Figtree', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
    width: fit-content;
}

.ud-footer-cta-btn:hover {
    background: #212252;
    border-color: #212252;
    color: #FFFFFF !important;
}

.ud-footer-cta-btn svg {
    transition: transform 0.3s ease;
}

.ud-footer-cta-btn:hover svg {
    transform: translateX(3px);
}

/* --- Main footer --- */
.ud-footer-main {
    background: #212252;
    padding: 56px 0 0;
}

.ud-footer-grid {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
}

/* Footer column headings */
.ud-footer-col h4 {
    font-family: 'Figtree', sans-serif;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #FFFFFF;
    margin: 0 0 24px;
}

/* Footer nav menus */
.ud-footer-col .menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 32px;
}

.ud-footer-col .menu li a {
    font-family: 'Figtree', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    transition: color 0.2s ease;
    line-height: 1.8;
}

.ud-footer-col .menu li a:hover {
    color: #FFFFFF;
}

/* Single column nav for quick links */
.ud-footer-col--single .menu {
    grid-template-columns: 1fr;
}

/* Get in touch column */
.ud-footer-contact-email {
    display: block;
    font-family: 'Figtree', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #FFFFFF !important;
    text-decoration: none;
    margin-bottom: 20px;
    transition: color 0.2s ease;
}

.ud-footer-contact-email:hover {
    color: #C1F162 !important;
}

/* Social icons */
.ud-footer-social {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
}

.ud-footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    text-decoration: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.ud-footer-social a:hover {
    transform: scale(1.1);
    opacity: 0.85;
}

.ud-footer-social a svg {
    display: block;
}

.ud-footer-social--fb  { background: #1877F2; }
.ud-footer-social--ig  { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.ud-footer-social--li  { background: #0A66C2; }

/* Address */
.ud-footer-address {
    font-family: 'Figtree', sans-serif;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.6;
    margin: 0;
}

/* --- Bottom bar --- */
.ud-footer-bottom {
    max-width: 1240px;
    margin: 48px auto 0;
    padding: 20px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.ud-footer-legal-text {
    font-family: 'Figtree', sans-serif;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    margin: 0;
}

.ud-footer-legal-links {
    display: flex;
    gap: 24px;
    align-items: center;
}

.ud-footer-legal-links a {
    font-family: 'Figtree', sans-serif;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    transition: color 0.2s ease;
}

.ud-footer-legal-links a:hover {
    color: rgba(255, 255, 255, 0.8);
}

.ud-footer-copyright {
    font-family: 'Figtree', sans-serif;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    margin: 0;
}


/* ===== Tablet ===== */
@media (max-width: 991px) {
    .ud-footer-cta-inner {
        flex-direction: column;
        gap: 40px;
        text-align: center;
        align-items: center;
    }

    .ud-footer-cta-right {
        flex: none;
        width: 100%;
        max-width: 480px;
        align-items: center;
        text-align: center;
    }

    .ud-footer-cta-left h2 {
        font-size: 2rem;
    }

    .ud-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px 32px;
    }

    .ud-footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .ud-footer-legal-links {
        justify-content: center;
    }
}

/* ===== Mobile ===== */
@media (max-width: 544px) {
    .ud-footer-cta {
        padding: 48px 0;
    }

    .ud-footer-cta-left h2 {
        font-size: 1.6rem;
    }

    .ud-footer-cta-right h3 {
        font-size: 1.15rem;
    }

    .ud-footer-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .ud-footer-col .menu {
        grid-template-columns: 1fr 1fr;
    }

    .ud-footer-main {
        padding: 40px 0 0;
    }

    .ud-footer-bottom {
        margin-top: 36px;
        padding: 16px 24px;
    }

    .ud-footer-legal-links {
        flex-wrap: wrap;
        gap: 12px 20px;
    }

    .ud-footer-reviews {
        padding: 40px 0;
    }
}

/* ==========================================================================
   WooCommerce Shop — 2-column product grid
   Overrides Astra list-style layout
   ========================================================================== */

/* Force grid layout, override list-style */
.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 32px !important;
    flex-wrap: unset !important;
}

/* Kill Astra clearfix pseudo-elements stealing grid cells */
.woocommerce ul.products::before,
.woocommerce ul.products::after {
    display: none !important;
    content: none !important;
}

/* Reset individual product from list-style flex to block */
.woocommerce ul.products li.product {
    display: block !important;
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Product image should be above text, not beside it */
.woocommerce ul.products li.product .astra-shop-thumbnail-wrap,
.woocommerce ul.products li.product .astra-shop-summary-wrap {
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
}

.woocommerce ul.products li.product .astra-shop-thumbnail-wrap img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 12px;
}

/* Tablet: 2 columns */
@media (max-width: 991px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 24px !important;
    }
}

/* Mobile: 1 column */
@media (max-width: 544px) {
    .woocommerce ul.products {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }
}