/* --- Brand Definition Section ---
   No horizontal padding here — every user of this section has its own .container (or
   .container.promo-columns) inside for that, same as .home-category-section. Section-level
   horizontal padding on top of .container's own would silently double the edge inset versus
   every other full-width section (that's exactly what happened here before — 2rem from
   .container + 1rem from this rule = 3rem, vs. 2rem everywhere else). */
/* Vertical padding + beige background come from the shared .section/.section--beige
   (styles.css) classes on the element itself — except on desktop, where this very first
   section sits right under the slider and wants less of a gap than the rest. */
@media (min-width: 769px) {
    .brand-def-section {
        padding: 1rem 0;
    }
}

/* Generic "text column + media/cards column" split-row layout — used verbatim (same classes,
   no per-section overrides) by section 3 (intro heading + stats cards) and the section 4
   category promo blocks (heading + text/link + image), so all of them stay visually
   identical. No max-width — stretches the same way as any other full-width section, capped
   only by .container's own side padding. */
.promo-columns {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 2.5rem;
    align-items: center;
}

.promo-text-col {
    text-align: left;
}

.brand-def-stats-col {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.brand-def-stats-col .brand-stat-card {
    flex: 1 1 0;
    min-width: 140px;
}

.brand-stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #fff;
    border-radius: 14px;
    padding: 1rem 1.25rem;
}

.brand-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--clr-beige);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.brand-stat-icon svg {
    width: 24px;
    height: 24px;
}

.brand-stat-number {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.1;
}

.brand-stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 0.15rem;
}

/* Each stat its own brand color (icon + number match) instead of one shared green. */
.brand-stat-card--red .brand-stat-icon,
.brand-stat-card--red .brand-stat-number { color: var(--clr-strawberry-pink); }
.brand-stat-card--blue .brand-stat-icon,
.brand-stat-card--blue .brand-stat-number { color: var(--clr-baltic-sea); }
.brand-stat-card--purple .brand-stat-icon,
.brand-stat-card--purple .brand-stat-number { color: var(--clr-purple); }

@media (max-width: 900px) {
    .promo-columns {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .promo-text-col {
        text-align: center;
    }

    .home-category-promo-img {
        order: -1;
    }
}

@media (max-width: 768px) {
    /* Stacked (icon above number above label) instead of the desktop row layout — the row
       layout's text needs more horizontal room than 3-across leaves on a phone. Compact
       enough (smaller icon, tighter padding/gap) that all 3 cards still fit side by side. */
    .brand-def-stats-col {
        gap: 0.5rem;
    }

    .brand-def-stats-col .brand-stat-card {
        min-width: 0;
    }

    .brand-stat-card {
        flex-direction: column;
        text-align: center;
        gap: 0.35rem;
        padding: 0.75rem 0.5rem;
    }

    .brand-stat-icon {
        width: 34px;
        height: 34px;
    }

    .brand-stat-icon svg {
        width: 18px;
        height: 18px;
    }

    .brand-stat-number {
        font-size: 1.3rem;
    }

    .brand-stat-label {
        font-size: 0.7rem;
        line-height: 1.25;
    }
}

/* Standalone "kde se pomůcky používají" cards section (moved out of section 3) */
.usage-cards-section {
    padding-top: 0.5rem;
}

/* --- "Hodnocení od vás" — 4 hand-picked review tiles ---
   Section heading is the shared .section-title (styles.css) — same as every other homepage
   section (expert reviews, articles), no bespoke heading style here. */
/* Vertical padding + beige background now come from the shared .section/.section--beige
   (styles.css) classes on the element itself. */

.home-reviews-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.home-review-tile {
    background: #fff;
    border-radius: 16px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.home-review-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.home-review-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-dark);
}

.home-review-verified {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.7rem;
    color: var(--clr-green);
    white-space: nowrap;
}

.home-review-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.home-review-stars {
    font-size: 0.85rem;
}

.home-review-star-filled {
    color: #f5c518;
}

.home-review-star-empty {
    color: #ddd;
}

.home-review-date {
    font-size: 0.75rem;
    color: var(--text-light);
}

.home-review-comment {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-dark);
    margin: 0;
    flex-grow: 1;
}

@media (max-width: 900px) {
    .home-reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .home-reviews-grid {
        grid-template-columns: 1fr;
    }
}

.brand-def-benefits {
    max-width: 1150px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

/* "Kde se používají" row (expert section) — own grid, not a .brand-def-benefits modifier. */
.usecase-tiles {
    max-width: 1150px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.benefit-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
}

.benefit-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--clr-green);
    flex-shrink: 0;
}

.benefit-icon svg {
    width: 26px;
    height: 26px;
}

.benefit-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.benefit-title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.3;
}

.benefit-sub {
    font-size: 0.8125rem;
    font-weight: 400;
    color: var(--text-light);
    margin: 0;
    line-height: 1.4;
}

/* "Kde se používají" row (expert section) — own component, not a .benefit-item modifier
   (those color names aren't reused anywhere else on the site). One --tile-color custom
   property per modifier, same pattern as .situation-tile: every other rule just reads
   var(--tile-color) instead of repeating a color per modifier. */
.usecase-tile {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    text-align: left;
    min-width: 0;
    border-radius: 14px;
    padding: 1rem;
    background: color-mix(in srgb, var(--tile-color, var(--clr-green)) 50%, #fff);
    border: 2px solid var(--tile-color, var(--clr-green));
}

.usecase-tile .benefit-icon {
    flex-shrink: 0;
}

.usecase-tile .benefit-text {
    min-width: 0;
    overflow-wrap: break-word;
}

.usecase-tile .benefit-icon {
    background-color: #fff;
    color: var(--tile-color, var(--clr-green));
}

.usecase-tile--aruba-blue { --tile-color: var(--clr-aruba-blue); }
.usecase-tile--beach-sand { --tile-color: var(--clr-beach-sand); }
.usecase-tile--pink { --tile-color: var(--clr-strawberry-pink); }
.usecase-tile--purple { --tile-color: var(--clr-purple); }

@media (max-width: 768px) {
    .usecase-tiles {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
    }

    /* Phone: icon on top, text below it so the narrow tile has room for the words. */
    .usecase-tile {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.6rem;
    }

    .brand-def-section {
        padding: 1rem 0;
    }

    .brand-def-benefits {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }

}

/* Contact section itself (.contact-hero-section/.contact-layout/.contact-info/
   .contact-details/.contact-form/.form-control etc.) now lives only in common.css — this
   used to duplicate it here with different padding, which is exactly what made the
   homepage's contact section inconsistent with every other page's (e.g. product detail).
   The one homepage-specific rule that lived in that block's mobile media query stays. */
/* Both lines the same size, same on desktop and mobile (unlike the default heavy-900/
   light-500 heading-lines) — no forced single-line/justify block anymore, just normal text
   flow at a smaller size. */
.brand-intro-heading .heading-line,
.brand-intro-heading .heading-line--green {
    font-size: 1.5rem;
}

@media (max-width: 768px) {
    .brand-def-content .hero-title {
        font-size: 1.8rem;
    }
}

.brand-def-content {
    max-width: 1150px;
    margin: 0 auto;
    text-align: center;
}

/* "Smysl, který vznikl doma" — own class (not .brand-def-section, which paints beige for the
   stats section above). No background rule at all: white is the page's own default
   (.app-card in styles.css), not something to paint here. */
/* Vertical padding now comes from the shared .section class (styles.css). */

.about-intro-text {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
    max-width: 900px;
    margin: 1.5rem auto 0;
}

/* --- About Story Section --- */
.about-story {
    margin-top: 2rem;
    text-align: center;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.story-quote {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--clr-green);
    font-style: italic;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .story-quote {
        font-size: 1.05rem;
    }
}

.story-text {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
}

.compact-team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.compact-team-member {
    display: flex;
    align-items: center;
    text-align: left;
    gap: 1.5rem;
    background: var(--clr-beige);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid #eee;
    transition: transform 0.3s ease !important;
}

.compact-team-member:hover {
    transform: translateY(-5px) !important;
}

.compact-avatar {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #fff;
}

.compact-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.compact-info h4 {
    font-size: 1.4rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-family: var(--font-main);
    font-weight: 700;
}

.compact-info p {
    font-size: 0.95rem;
    color: var(--text-dark);
    line-height: 1.5;
}

@media (max-width: 768px) {
    .compact-team-grid {
        grid-template-columns: 1fr;
    }
    .compact-team-member {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
}

/* --- "Kdy se hodí" — 6 situation tiles, each linking to one product (or the B2B page) --- */
/* Vertical padding + beige background now come from the shared .section/.section--beige
   (styles.css) classes on the element itself. */

.situations-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.situation-tile {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: color-mix(in srgb, var(--tile-color, var(--clr-green)) 50%, #fff);
    border: 2px solid var(--tile-color, var(--clr-green));
    border-radius: var(--radius-card, 15px);
    padding: 1.5rem;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.situation-tile:hover {
    transform: translateY(-4px);
}

/* One brand color per tile, in this order — sets a custom property (inherited by everything
   inside, e.g. .situation-product's separator below) rather than repeating the color twice
   per tile for the tint vs. the full-strength uses. */
.situation-tile--strawberry-pink { --tile-color: var(--clr-strawberry-pink); }
.situation-tile--beach-sand { --tile-color: var(--clr-beach-sand); }
.situation-tile--buzzing-bees { --tile-color: var(--clr-buzzing-bees); }
.situation-tile--paradise-green { --tile-color: var(--clr-paradise-green); }
.situation-tile--baltic-sea { --tile-color: var(--clr-baltic-sea); }
.situation-tile--scented-levander { --tile-color: var(--clr-scented-levander); }

.situation-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 0.5rem;
}

.situation-text {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-dark);
    margin: 0 0 1.25rem;
}

/* Pushed to the tile's bottom edge (margin-top: auto) regardless of how long the situation
   text above runs, so every tile's product line lands at the same height across the row. */
.situation-product {
    display: flex;
    align-items: center;
    margin-top: auto;
}

/* Single row — image/icon, name, price, arrow. Same border-radius as the tile itself, not a
   full stadium pill, and a 2px border in the tile's own color (--tile-color, inherited from
   .situation-tile--*) instead of a separator line — same idea, just on the pill itself. */
.situation-product-pill {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    background: var(--clr-beige);
    border: 2px solid var(--tile-color, var(--clr-green));
    border-radius: var(--radius-card, 15px);
    padding: 0.6rem 0.9rem;
    box-sizing: border-box;
}

.situation-product img,
.situation-product-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    flex-shrink: 0;
}

.situation-product img {
    object-fit: cover;
}

.situation-product-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: var(--tile-color, var(--clr-green));
}

.situation-product-name {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-dark);
    flex-grow: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Current price only (no crossed-out original — that plus the name no longer fit on one
   line), same weight/color convention as a plain (non-discounted) product-card price. */
.situation-product-price {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--clr-strawberry-pink);
    flex-shrink: 0;
    white-space: nowrap;
}

.situation-product-arrow {
    color: var(--clr-green);
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.situation-tile:hover .situation-product-arrow {
    transform: translateX(4px);
}

.situations-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    text-align: center;
    margin-top: 2rem;
    color: var(--clr-green);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
}

.situations-footer svg {
    color: var(--clr-green);
    flex-shrink: 0;
}

@media (max-width: 900px) {
    .situations-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .situations-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* --- "Kvalita, kterou poznáte na dotek" — 3 zig-zag rows, each own photo + 2 points --- */
/* Vertical padding + beige background now come from the shared .section/.section--beige
   (styles.css) classes on the element itself. */

.texture-rows {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 1150px;
    margin: 0 auto;
}

/* Photo column is exactly the photo's own size (400px), points column takes the rest.
   Reverse rows (zig-zag) swap which side that fixed column is on — the photo column stays
   400px regardless of which side it's visually on. */
.texture-row {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 2.5rem;
    align-items: center;
}

.texture-row--reverse {
    grid-template-columns: 1fr 400px;
}

/* No photo configured for this row yet — points just take the full row instead of leaving
   an empty second column. */
.texture-row--no-photo,
.texture-row--reverse.texture-row--no-photo {
    grid-template-columns: 1fr;
}

/* Row 2 only — photo/text swap sides (zig-zag). Order, not markup order, so mobile can reset
   back to a single consistent photo-then-text order regardless of row. */
.texture-row-photo { order: 1; }
.texture-row-points { order: 2; }
.texture-row--reverse .texture-row-photo { order: 2; }
.texture-row--reverse .texture-row-points { order: 1; }

/* Compact and framed — same white-border treatment as the category tiles used to have
   (.cat-tile-img, now folded into this section) — capped width so it doesn't stretch to
   fill its whole (already narrower) grid column. */
.texture-row-photo {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1 / 1;
    border: 4px solid #fff;
    border-radius: var(--radius-card, 15px);
    overflow: hidden;
    justify-self: center;
}

.texture-row-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.texture-row-points {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.texture-point {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.texture-point-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fff;
    color: var(--clr-green);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.texture-point-icon svg {
    width: 24px;
    height: 24px;
}

.texture-point-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 0.2rem;
}

.texture-point-text {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-light);
    margin: 0;
}

/* Each row's own CTA, not one shared button under the whole section anymore — every row
   now points at a different category. */
.texture-row-cta {
    margin-top: 0.5rem;
}

@media (max-width: 900px) {
    .texture-row {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .texture-row-cta {
        display: flex;
        justify-content: center;
    }

    .texture-row-photo,
    .texture-row--reverse .texture-row-photo {
        order: 1;
    }

    .texture-row-points,
    .texture-row--reverse .texture-row-points {
        order: 2;
    }

    .texture-rows {
        gap: 2rem;
    }
}

/* --- "Inspirace pro rodiče" — plain 3-article grid (components/article_slider.php). No
   background rule — white is the page's own default (.app-card in styles.css), not something
   to paint here. Own styles instead of blog.css's carousel — this is not the /blog page's
   slider, just image/title/excerpt/link cards. --- */
/* Vertical padding comes from the shared .section class (styles.css). */

.blog-grid {
    max-width: 1150px;
    margin: 2.5rem auto 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.blog-grid-card {
    display: flex;
    flex-direction: column;
}

.blog-grid-card-img {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    border-radius: 16px;
    overflow: hidden;
}

.blog-grid-card-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 1;
    background: var(--clr-green);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
}

.blog-grid-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.blog-grid-card-img:hover img {
    transform: scale(1.04);
}

.blog-article-card-img-placeholder {
    width: 100%;
    height: 100%;
    background: var(--clr-beige);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-weight: 500;
}

.blog-grid-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding-top: 1rem;
}

.blog-grid-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 0.5rem;
}

.blog-grid-card-title a {
    color: var(--text-dark);
    text-decoration: none;
}

.blog-grid-card-title a:hover {
    color: var(--clr-green);
}

.blog-grid-card-excerpt {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-light);
    margin: 0 0 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-grid-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--clr-green);
    text-decoration: none;
    margin-top: auto;
}

.blog-grid-card-link:hover {
    text-decoration: underline;
}

.blog-grid-cta {
    text-align: center;
    margin-top: 2.5rem;
}

@media (max-width: 900px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}


/* "Zobrazit všechny produkty" — own section under the first product block, phones only. */
.products-more-section {
    display: none;
    justify-content: center;
    padding: 1rem;
}

@media (max-width: 768px) {
    .products-more-section {
        display: flex;
    }
}
