/* assets/css/sections/bento.css */

.services-bento {
    padding: 100px 0;
    background-color: #F9FAFB;
}

.bento-header {
    margin-bottom: 50px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.badge-pill {
    background: #EBF3FF;
    color: #0056D2;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 12px;
    border-radius: 4px;
    margin-bottom: 16px;
}

.bento-header h2 {
    font-size: 3rem;
    color: #111827;
    margin-bottom: 10px;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: -1px;
}

/* --- GRID PRO HOMEPAGE --- */
.bento-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 24px;
    min-height: 520px;
    align-items: stretch; 
}

/* Karta */
.bento-card {
    border-radius: 24px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02); 
    border: 1px solid rgba(0,0,0,0.05);
    background: #fff;
}

.bento-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.1);
}

/* --- LEVÁ KARTA (MODRÁ) --- */
.bento-wrapper .hero-card {
    background: linear-gradient(135deg, #0056D2 0%, #003da8 100%);
    color: white;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    z-index: 1;
    box-shadow: 0 10px 30px -5px rgba(0, 86, 210, 0.3);
    height: 100%; 
    min-height: auto;
}

.bento-wrapper .card-bg-icon {
    position: absolute; bottom: -40px; right: -40px;
    font-size: 18rem; color: rgba(255,255,255,0.08);
    transform: rotate(-20deg); pointer-events: none; z-index: -1;
}

.bento-wrapper .hero-card-icon {
    width: 64px; height: 64px; background: white; border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    color: #0056D2; font-size: 1.8rem; margin-bottom: 24px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.bento-wrapper .hero-card h3 { 
    font-size: 2.1rem; 
    margin-bottom: 20px; 
    color: white; 
    line-height: 1.3; 
    font-weight: 800; 
    letter-spacing: -0.01em;
}

.bento-wrapper .hero-card p { 
    color: rgba(255,255,255,0.95); 
    font-size: 1.05rem; 
    margin-bottom: 32px; 
    max-width: 95%; 
    line-height: 1.6;
    font-weight: 500;
}

.bento-wrapper .hero-features li { 
    display: flex; align-items: center; gap: 12px; margin-bottom: 14px; 
    font-weight: 600; color: white; font-size: 1rem; 
}
.bento-wrapper .hero-features i { color: #FF5E00; }

.bento-wrapper .hero-footer { 
    display: flex; align-items: center; justify-content: space-between; 
    margin-top: auto; 
    border-top: 1px solid rgba(255,255,255,0.2); 
    padding-top: 25px; 
}

.price-value { font-size: 1.8rem; font-weight: 900; color: white; text-transform: uppercase; }
.price-label { color: rgba(255,255,255,0.8); font-size: 0.75rem; text-transform: uppercase; font-weight: 700; margin-bottom: 2px; display: block; }
.circle-btn { width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,0.2); color: white; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; border: 1px solid rgba(255,255,255,0.3); transition: all 0.3s ease; }
.bento-card:hover .circle-btn { background: white; color: #0056D2; transform: translateX(5px); }

/* --- PRAVÁ STRANA --- */
.bento-right-col { 
    display: flex; 
    flex-direction: column; 
    gap: 24px; 
    height: 100%; 
}

.wide-card, .small-card { padding: 24px; position: relative; overflow: hidden; }

/* Vodoznaky obecné */
.wide-card::after, .small-card::after {
    content: ''; position: absolute; bottom: -30px; right: -20px;
    font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: 9rem;
    pointer-events: none; z-index: 0; opacity: 0.05; transform: rotate(-15deg);
    transition: all 0.3s ease;
}

/* --- SPECIFICKÉ STYLY KARET (VYLEPŠENÉ) --- */

/* Horní široká (Frézování) */
.card-waste { border-left: 4px solid #FF5E00; }
.card-waste::after { content: '\f6d7'; color: #FF5E00; }
.card-waste:hover::after { opacity: 0.1; transform: rotate(0deg) scale(1.1); }

/* Dolní široká (Úniky) */
.card-plumber { border-left: 4px solid #0056d2; background: linear-gradient(to bottom right, #FFFFFF, #f0f7ff); }
.card-plumber::after { content: '\f0ad'; color: #0056d2; }
.card-plumber:hover::after { opacity: 0.1; transform: rotate(0deg) scale(1.1); }


/* --- PROSTŘEDNÍ ŘADA (Topení a Revize) - NOVÝ DESIGN --- */
.bento-split-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; flex: 1; }
.small-card { display: flex; flex-direction: column; justify-content: space-between; height: 100%; }

/* TOPENÍ - Oranžový akcent */
.card-heating {
    background: linear-gradient(to bottom right, #fff7ed, #ffffff); /* Jemný oranžový přechod */
    border: 2px solid #FF5E00; /* Výrazný oranžový okraj */
}
.card-heating .icon-box-soft {
    background: #FF5E00; /* Sytě oranžové pozadí ikony */
    color: white; /* Bílá ikona */
    box-shadow: 0 10px 20px -5px rgba(255, 94, 0, 0.3); /* Oranžová záře */
}
.card-heating .badge-mini { background: #ffedd5; color: #c2410c; } /* Oranžový odznak */
.card-heating::after { content: '\f06d'; color: #FF5E00; opacity: 0.08; } /* Oranžový vodoznak */


/* REVIZE - Azurový akcent */
.card-camera {
    background: #ffffff;
    border: 2px solid #06B6D4; /* Výrazný azurový okraj */
    box-shadow: 0 10px 30px -10px rgba(6, 182, 212, 0.2); /* Jemný azurový stín */
}
.card-camera .icon-box-soft {
    background: #ECFEFF; color: #06B6D4; /* Původní jemné barvy ikony */
    box-shadow: 0 5px 15px -3px rgba(6, 182, 212, 0.2);
}
.card-camera .badge-mini { background: #CCFBF1; color: #0F766E; } /* Azurový odznak */
.card-camera::after { content: '\f03d'; color: #06B6D4; opacity: 0.08; } /* Azurový vodoznak */


/* --- Společné prvky karet --- */
.card-content-flex { display: flex; align-items: center; gap: 20px; position: relative; z-index: 2; height: 100%; }

.icon-box-soft {
    width: 60px; height: 60px; border-radius: 18px;
    display: flex; align-items: center; justify-content: center; font-size: 1.6rem; flex-shrink: 0;
    transition: transform 0.3s ease;
}
.bento-card:hover .icon-box-soft { transform: scale(1.1); }

/* Barvy ikon pro široké karty (malé jsou definovány výše) */
.card-waste .icon-box-soft { background: #fff7ed; color: #c2410c; }
.card-plumber .icon-box-soft { background: #eff6ff; color: #0056d2; }

.wide-card h3 { font-size: 1.3rem; margin-bottom: 4px; color: #111827; line-height: 1.2; }
.wide-card p { font-size: 0.95rem; margin-bottom: 0; color: #6B7280; line-height: 1.5; }

.top-row { display: flex; justify-content: space-between; margin-bottom: 15px; position: relative; z-index: 2; }

.badge-mini { font-size: 0.7rem; font-weight: 800; padding: 4px 8px; border-radius: 6px; text-transform: uppercase; }

.circle-btn-small { width: 44px; height: 44px; border-radius: 50%; background: #f9fafb; border: 1px solid #e5e7eb; margin-left: auto; display: flex; align-items: center; justify-content: center; color: #374151; transition:all 0.3s ease; }
.wide-card:hover .circle-btn-small { background: #111827; color: white; border-color: #111827; }

.badge-outline { border: 1px solid #d1d5db; padding: 4px 10px; border-radius: 6px; font-size: 0.75rem; font-weight: 600; color: #374151; background: rgba(255,255,255,0.5); backdrop-filter: blur(5px); }


@media (max-width: 992px) {
    .bento-wrapper { grid-template-columns: 1fr; }
    .bento-header { align-items: center; text-align: center; }
    .bento-header p { text-align: center; margin-top: 0; }
    .bento-wrapper .hero-card { min-height: 450px; }
    .bento-right-col { height: auto; }
}
@media (max-width: 576px) {
    .bento-split-row { grid-template-columns: 1fr; }
    .card-content-flex { flex-direction: column; align-items: flex-start; }
    .circle-btn-small { margin-left: 0; margin-top: 15px; }
}

/* --- TLAČÍTKA PŘIDANÁ NA HOMEPAGE --- */

/* Tlačítko PDF v malé kartě Topení */
.home-btn-pdf {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    background-color: #fff1f2;
    color: #e11d48;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 50px;
    text-decoration: none;
    border: 1px solid #fecdd3;
    transition: all 0.2s;
}

.home-btn-pdf:hover {
    background-color: #e11d48;
    color: white;
    transform: translateY(-2px);
}

/* Tlačítko Odkaz v kartě Úniky vody */
.home-btn-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 5px; /* Odstup od textu */
    color: #0056D2;
    font-weight: 800;
    font-size: 0.9rem;
    text-decoration: none;
    background: #eff6ff;
    padding: 6px 14px;
    border-radius: 8px;
    transition: all 0.2s;
}

.home-btn-link:hover {
    background: #0056D2;
    color: white;
}

/* Úprava layoutu pro Leak kartu na homepage, aby se tam tlačítko vešlo */
.card-text-wrapper-flex {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

@media (max-width: 576px) {
    .home-btn-link {
        margin-top: 15px;
        width: 100%;
        justify-content: center;
    }
}