/* ==========================================================================
   Kimaya Gynec & Fertility Center — Global Styles
   
   Project-level overrides and additions on top of the vendor theme.
   Component-specific styles live in their own component CSS files.
   ========================================================================== */

/* ── Prevent horizontal overflow from breaking sticky/fixed context ── */
html, body, .main-wrapper {
    overflow-x: clip;
}

/* Fallback for older browsers where overflow-x: clip is not supported */
@supports not (overflow-x: clip) {
    html, body, .main-wrapper {
        overflow-x: hidden;
    }
}

/* ── Global Overrides ── */
/* Utility: compact section spacing */
.section-sm {
    padding: 40px 0;
}

/* ── Sticky CTA Widget — Minimalist White Design ── */
.sticky-cta-widget {
    position: fixed;
    z-index: 1040;
    display: flex;
    background: #ffffff;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

.sticky-cta-widget .cta-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    background: transparent !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
}

.sticky-cta-widget .cta-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease;
}

.sticky-cta-widget .cta-label {
    font-weight: 600;
}

/* Hover state: scale the icon and add a soft background overlay */
.sticky-cta-widget .cta-item:hover {
    background: #F8FAFC !important;
}

.sticky-cta-widget .cta-item:hover .cta-icon {
    transform: scale(1.1);
}

/* Individual Brand/Theme Colors for Text & Icons */
.sticky-cta-widget .cta-whatsapp {
    color: #128C7E !important; /* Elegant WhatsApp Teal Green */
}
.sticky-cta-widget .cta-whatsapp .cta-icon i {
    color: #128C7E !important;
}

.sticky-cta-widget .cta-appointment {
    color: #6E3D68 !important; /* Theme 9 Purple */
}
.sticky-cta-widget .cta-appointment .cta-icon i {
    color: #6E3D68 !important;
}

.sticky-cta-widget .cta-maps {
    color: #1A73E8 !important; /* Google Maps Directions Blue */
}
.sticky-cta-widget .cta-maps .cta-icon i {
    color: #1A73E8 !important;
}

/* Desktop Viewport Layout: Right-aligned, vertically centered */
@media (min-width: 992px) {
    .sticky-cta-widget {
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        flex-direction: column;
        width: 96px;
        box-shadow: -4px 0 25px rgba(110, 61, 104, 0.08);
        border-top-left-radius: 16px;
        border-bottom-left-radius: 16px;
        border: 1px solid rgba(110, 61, 104, 0.08);
        border-right: none;
        padding: 6px 0;
    }

    .sticky-cta-widget .cta-item {
        padding: 16px 8px;
        width: 100%;
        gap: 6px;
    }

    .sticky-cta-widget .cta-icon i {
        font-size: 24px;
    }

    .sticky-cta-widget .cta-label {
        font-size: 11px;
        letter-spacing: -0.01em;
        line-height: 1.2;
    }
}

/* Mobile & Tablet Viewport Layout: Sticky Bottom Bar */
@media (max-width: 991.98px) {
    .sticky-cta-widget {
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        flex-direction: row;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
        border-top: 1px solid #E2E8F0;
        border-top-left-radius: 20px;
        border-top-right-radius: 20px;
        padding: 8px 10px;
        gap: 8px;
    }

    .sticky-cta-widget .cta-item {
        flex: 1;
        gap: 4px;
        padding: 8px 4px;
        border-radius: 12px !important; /* Subtle inner curved borders on hover overlay */
    }

    .sticky-cta-widget .cta-icon i {
        font-size: 22px !important;
    }

    .sticky-cta-widget .cta-label {
        font-size: 11px !important;
        font-weight: 600;
    }

    /* Shift scroll-to-top button up on mobile so it doesn't collide with the sticky bar */
    .progress-wrap {
        bottom: 84px !important;
        right: 20px !important;
    }

    /* Extra padding at bottom of wrapper so footer content remains viewable */
    .main-wrapper {
        padding-bottom: 80px;
    }
}

/* ── Reduce Extra Gaps (Section Padding Optimization) ── */
.section {
    padding: 50px 0 !important;
}

.section-sm {
    padding: 30px 0 !important;
}

@media (max-width: 991.98px) {
    .section {
        padding: 36px 0 !important;
    }
    
    .section-sm {
        padding: 20px 0 !important;
    }
}

