/*
 * TTO home-page blocks: [tto_hero] and [tto_browse].
 * Relies on tokens from tto-tokens.css (brand gradient + per-type accents).
 */

/* ---- Hero banner ------------------------------------------------------- */

.tto-hero {
    position: relative;
    overflow: hidden;
    margin: 0 0 28px;
    padding: 48px 44px;
    border-radius: 20px;
    background: var(--tto-brand-gradient);
    color: #ffffff;
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.28);
}

/* Faint honeycomb texture over the gradient, echoing the site background. */
.tto-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='28'%20height='49'%20viewBox='0%200%2028%2049'%3E%3Cg%20fill='%23ffffff'%20fill-opacity='0.5'%20fill-rule='evenodd'%3E%3Cpath%20d='M13.99%209.25l13%207.5v15l-13%207.5L1%2031.75v-15l12.99-7.5zM3%2017.99v11.51l9.99%205.77%209.99-5.77V17.99l-9.99-5.77L3%2017.99z'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 46px 80px;
    opacity: 0.18;
    pointer-events: none;
}

.tto-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 720px;
}

.tto-hero-title {
    margin: 0 0 14px;
    font-size: 34px;
    line-height: 1.15;
    font-weight: 700;
    color: #ffffff;
}

.tto-hero-subtitle {
    margin: 0 0 26px;
    font-size: 17px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.92);
}

.tto-hero-cta {
    display: inline-block;
    padding: 13px 28px;
    border-radius: 10px;
    background: #ffffff;
    color: #1d4ed8;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    transition: transform .15s ease, box-shadow .15s ease;
}

.tto-hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
    color: #1e40af;
}

/* ---- Browse-by-type tiles --------------------------------------------- */

.tto-browse {
    margin: 8px 0 28px;
}

.tto-browse-heading {
    margin: 0 0 18px;
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
    text-align: center;
}

.tto-browse-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}

.tto-browse-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 22px 14px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 4px 12px rgba(15, 23, 42, 0.08);
    text-decoration: none;
    text-align: center;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.tto-browse-tile:hover {
    transform: translateY(-4px);
    border-color: var(--tto-accent);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08), 0 16px 30px rgba(15, 23, 42, 0.16);
}

.tto-browse-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--tto-accent-soft);
    color: var(--tto-accent);
}

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

.tto-browse-label {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    color: #1f2937;
}

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

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

    .tto-hero {
        padding: 32px 24px;
    }

    .tto-hero-title {
        font-size: 26px;
    }

    .tto-hero-subtitle {
        font-size: 15px;
    }
}
