/*
 Theme Name:   Hello Elementor Child
 Template:     hello-elementor
 Author:       chutnasko
 Version:      1.1.0
*/

/**
 * 1. HEADER STABILITY & HEIGHT
 */

/* Force a stable, lower height for the header to prevent jumps */
header.sticky-header {
    height: 80px !important;
    min-height: 80px !important;
    display: flex !important;
    align-items: center !important;
    background-color: #ffffff !important;
    transition: none !important;
}

/* Ensure inner containers don't add extra height or jumps */
header.sticky-header .elementor-container {
    min-height: 80px !important;
    height: 80px !important;
    transition: none !important;
    display: flex !important;
    align-items: center !important;
}

/* Stabilize the inner section */
header.sticky-header .elementor-inner-section {
    padding: 0 !important;
    margin: 0 !important;
}

/* Sticky state appearance */
header.sticky-header.elementor-sticky--effects {
    box-shadow: 0 2px 10px rgba(0,0,0,0.05) !important;
}

/**
 * 2. KONTAKT BUTTON STYLING
 */

.elementor-nav-menu .menu-item-24548 a {
    background-color: #87493E !important;
    color: #ffffff !important;
    padding: 10px 25px !important;
    border-radius: 5px !important;
    font-weight: bold !important;
    margin-left: 12px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    line-height: 1 !important;
    text-decoration: none !important;
    transition: background-color 0.2s ease !important;
}

.elementor-nav-menu .menu-item-24548 a:hover {
    background-color: #051145 !important;
    color: #ffffff !important;
}

/* Force remove Elementor underline pointers */
.elementor-nav-menu .menu-item-24548 a:before,
.elementor-nav-menu .menu-item-24548 a:after {
    display: none !important;
}

/**
 * 3. MOBILE REFINEMENTS
 */

@media (max-width: 1024px) {
    /* Stabilize mobile header height */
    header.sticky-header {
        height: auto !important;
        min-height: 70px !important;
    }

    header.sticky-header .elementor-container {
        height: auto !important;
        min-height: 70px !important;
        padding: 0 15px !important; /* Space from edges */
    }

    /* Center the mobile menu items */
    .elementor-nav-menu--main {
        text-align: center !important;
    }

    /* Button spacing on mobile - prevent touching edges */
    .elementor-nav-menu .menu-item-24548 a {
        margin: 15px 20px !important; /* Proper space from top and sides */
        display: flex !important;
        width: auto !important;
    }
}

/**
 * 4. CTA BOX & SECTION FULL CONTAINER WIDTH STRETCH (1240px)
 */
.cta-box {
    max-width: 1240px !important;
    width: 100% !important;
}

/**
 * 5. GOOGLE REVIEWS CAROUSEL & GRID STYLING
 */
.gr-scf-section,
.gr-grid-section {
    max-width: 1240px !important;
    width: 100% !important;
    margin: 30px auto !important;
    padding: 0 15px !important;
    box-sizing: border-box !important;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}
.gr-scf-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 14px !important;
    padding: 18px 26px !important;
    margin-bottom: 24px !important;
    box-shadow: 0 2px 10px rgba(10, 18, 68, 0.03) !important;
    flex-wrap: wrap !important;
    gap: 15px !important;
}
.gr-scf-actions {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    flex-wrap: wrap !important;
}
.gr-scf-btn--all {
    background: #87493E !important;
    color: #ffffff !important;
}
.gr-scf-btn--all:hover {
    background: #6e392f !important;
}
.gr-scf-badge {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
}
.gr-scf-glogo {
    width: 46px !important;
    height: 46px !important;
    background: #f8fafc !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid #edf2f7 !important;
}
.gr-scf-meta {
    display: flex !important;
    flex-direction: column !important;
    gap: 3px !important;
}
.gr-scf-stars {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}
.gr-scf-score {
    font-weight: 800 !important;
    font-size: 1.35rem !important;
    color: #0A1244 !important;
}
.gr-scf-star-icons {
    color: #f59e0b !important;
    font-size: 1.2rem !important;
    letter-spacing: 2px !important;
}
.gr-scf-count {
    font-size: 0.88rem !important;
    color: #64748b !important;
}
.gr-scf-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: #0A1244 !important;
    color: #ffffff !important;
    padding: 11px 22px !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    font-size: 0.85rem !important;
    text-decoration: none !important;
    transition: background 0.2s ease, transform 0.1s ease !important;
}
.gr-scf-btn:hover {
    background: #1a2568 !important;
    transform: translateY(-1px) !important;
}
.gr-scf-carousel-wrap {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
}
.gr-scf-carousel {
    display: flex !important;
    gap: 20px !important;
    overflow-x: auto !important;
    scroll-behavior: smooth !important;
    padding: 8px 4px 18px !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    cursor: grab !important;
    user-select: none !important;
}
.gr-scf-carousel.grabbing {
    cursor: grabbing !important;
    scroll-behavior: auto !important;
}
.gr-scf-carousel::-webkit-scrollbar {
    display: none !important;
}
.gr-scf-card {
    flex: 0 0 calc(33.333% - 14px) !important;
    min-width: 320px !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 14px !important;
    padding: 24px !important;
    box-shadow: 0 2px 8px rgba(10, 18, 68, 0.04) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    box-sizing: border-box !important;
}
.gr-scf-card__top {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 14px !important;
    margin-bottom: 14px !important;
    width: 100% !important;
}
.gr-scf-avatar {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    max-width: 44px !important;
    max-height: 44px !important;
    border-radius: 50% !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 1.15rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
    line-height: 1 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}
.gr-scf-author {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: flex-start !important;
    gap: 2px !important;
}
.gr-scf-author__name {
    font-weight: 700 !important;
    font-size: 1rem !important;
    color: #0A1244 !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    line-height: 1.2 !important;
    margin: 0 !important;
}
.gr-scf-card__stars {
    color: #f59e0b !important;
    font-size: 1.05rem !important;
    margin-top: 2px !important;
    letter-spacing: 1.5px !important;
    line-height: 1 !important;
}
.gr-scf-card__text {
    font-size: 0.92rem !important;
    line-height: 1.65 !important;
    color: #334155 !important;
    margin: 0 !important;
    flex: 1 !important;
}
.gr-scf-nav {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 42px !important;
    height: 42px !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12) !important;
    color: #0A1244 !important;
    font-size: 1.4rem !important;
    font-weight: bold !important;
    cursor: pointer !important;
    z-index: 5 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background 0.2s, color 0.2s !important;
}
.gr-scf-nav:hover {
    background: #0A1244 !important;
    color: #ffffff !important;
}
.gr-scf-nav--prev { left: -16px !important; }
.gr-scf-nav--next { right: -16px !important; }

.gr-grid-container {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 24px !important;
}
.gr-grid-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
    box-sizing: border-box !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 14px !important;
    padding: 24px !important;
    box-shadow: 0 2px 8px rgba(10, 18, 68, 0.04) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
}

@media (max-width: 992px) {
    .gr-grid-container { grid-template-columns: repeat(2, 1fr) !important; }
    .gr-scf-card { flex: 0 0 calc(50% - 10px) !important; min-width: 280px !important; }
    .gr-scf-nav--prev { left: -6px !important; }
    .gr-scf-nav--next { right: -6px !important; }
}
@media (max-width: 600px) {
    .gr-grid-container { grid-template-columns: 1fr !important; }
    .gr-scf-card { flex: 0 0 88% !important; min-width: 260px !important; }
    .gr-scf-header { flex-direction: column !important; align-items: flex-start !important; }
    .gr-scf-btn { width: 100% !important; justify-content: center !important; }
}

.gr-grid-card.gr-grid-card--hidden {
    display: none !important;
}

/**
 * 7. REVIEW CARDS EQUAL HEIGHT & LINE CLAMP (ZOBRAZIŤ VIAC)
 */
.gr-grid-container {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 24px !important;
    align-items: stretch !important;
}

.gr-scf-card, .gr-grid-card {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    height: 100% !important;
}

.gr-scf-card__text {
    font-size: 0.92rem !important;
    line-height: 1.65 !important;
    color: #334155 !important;
    margin: 0 0 8px 0 !important;
    flex: 1 !important;
    transition: all 0.2s ease !important;
}

.gr-scf-card__text.gr-text--clamped {
    display: -webkit-box !important;
    -webkit-line-clamp: 6 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.gr-scf-more-btn {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin-top: 8px !important;
    color: #87493E !important;
    font-weight: 700 !important;
    font-size: 0.85rem !important;
    cursor: pointer !important;
    display: inline-block !important;
    text-decoration: underline !important;
    align-self: flex-start !important;
}

.gr-scf-more-btn:hover {
    color: #0A1244 !important;
}

/**
 * HIDE GOOGLE RECAPTCHA V3 BADGE
 */
.grecaptcha-badge {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}
