/* ==========================================================
   TTGears - homepage sections (hero, trust bar, categories,
   product rows, brands). Colour tokens come from site.css.
   ========================================================== */

/* ---------- Hero ---------- */
.home-hero {
    background:
        radial-gradient(circle at 85% 20%, rgba(255, 107, 53, 0.18) 0%, transparent 45%),
        linear-gradient(135deg, #17212c 0%, #22344a 100%);
    color: #fff;
    overflow: hidden;
}

.home-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: center;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 64px 0;
}

.home-hero-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 107, 53, 0.16);
    color: #ffb08e;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 18px;
}

.home-hero-title {
    margin: 0 0 16px;
    font-size: 46px;
    font-weight: 800;
    line-height: 1.25;
    color: #fff;
}

.home-hero-text {
    margin: 0 0 28px;
    max-width: 520px;
    font-size: 18px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.78);
}

.home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
}

.btn-hero-primary,
.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 54px;
    padding: 0 28px;
    border-radius: 999px;
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.btn-hero-primary {
    background: var(--tt-accent);
    color: #fff;
    box-shadow: 0 10px 28px rgba(255, 107, 53, 0.35);
}

.btn-hero-primary:hover {
    background: var(--tt-accent-dark);
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
}

.btn-hero-primary i { transition: transform 0.2s ease; }
.btn-hero-primary:hover i { transform: translateX(-4px); }

.btn-hero-secondary {
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #fff;
}

.btn-hero-secondary:hover {
    border-color: #fff;
    color: #fff;
    text-decoration: none;
}

.home-hero-budget-label {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.65);
}

.home-hero-budget-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.home-hero-budget-options a {
    padding: 8px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.home-hero-budget-options a:hover {
    background: rgba(255, 107, 53, 0.2);
    border-color: var(--tt-accent);
    color: #fff;
    text-decoration: none;
}

.home-hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-racket {
    width: 100%;
    max-width: 320px;
    height: auto;
    transform: rotate(-12deg);
    filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.35));
}

.hero-part {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 10px;
    background: #fff;
    color: var(--tt-ink);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: var(--tt-shadow-lg);
}

.hero-part i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.hero-part--fh { top: 14%; right: 0; }
.hero-part--fh i { background: #d93a30; }
.hero-part--blade { top: 52%; left: 2%; }
.hero-part--blade i { background: #c98a4b; }
.hero-part--bh { bottom: 12%; right: 6%; }
.hero-part--bh i { background: #1d1d1f; }

/* ---------- Trust bar ---------- */
.home-trust {
    background: #fff;
    border-bottom: 1px solid var(--tt-border);
}

.home-trust-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px 0;
    list-style: none;
}

.home-trust-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--tt-muted);
    line-height: 1.5;
}

.home-trust-list i {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--tt-accent-soft);
    color: var(--tt-accent);
    font-size: 18px;
}

.home-trust-list strong {
    display: block;
    color: var(--tt-ink);
    font-size: 15px;
}

/* ---------- Section shell ---------- */
.home-section {
    padding: 56px 0;
    background: #fff;
}

.home-section--soft { background: var(--tt-bg-soft); }

.home-section--offers {
    background: linear-gradient(180deg, var(--tt-accent-soft) 0%, #fff 100%);
}

.home-section .container-fluid {
    max-width: 1400px;
}

.home-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
}

.home-section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--tt-danger);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.home-section-title {
    position: relative;
    margin: 0 0 6px;
    padding-right: 14px;
    font-size: 28px;
    font-weight: 800;
    color: var(--tt-ink);
}

.home-section-title::before {
    content: "";
    position: absolute;
    right: 0;
    top: 15%;
    bottom: 15%;
    width: 5px;
    border-radius: 3px;
    background: var(--tt-accent);
}

.home-section-sub {
    margin: 0;
    font-size: 15px;
    color: var(--tt-muted);
}

/* ---------- Product rows ---------- */
.home-products-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.home-products-grid .product-card {
    margin-bottom: 0;
    height: 100%;
}

/* ---------- Categories ---------- */
.category-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 16px;
}

.category-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 20px 12px;
    border: 1px solid var(--tt-border);
    border-radius: var(--tt-radius);
    background: #fff;
    text-decoration: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.category-tile:hover {
    border-color: var(--tt-accent);
    box-shadow: var(--tt-shadow);
    transform: translateY(-3px);
    text-decoration: none;
}

.category-tile-media {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: var(--tt-bg-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: background 0.2s ease;
}

.category-tile:hover .category-tile-media { background: var(--tt-accent-soft); }

.category-tile-media img {
    max-width: 72%;
    max-height: 72%;
    object-fit: contain;
}

.category-tile-media i {
    font-size: 32px;
    color: var(--tt-accent);
}

.category-tile-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--tt-ink);
    text-align: center;
}

/* ---------- Brands ---------- */
.home-brands { padding-top: 8px; }

/* one sideways-scrolling row on every screen (there are more brands than fit a row); tiles sized like the categories */
.brand-scroller { position: relative; }

.brand-strip {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 6px;
    scrollbar-width: none;
}

.brand-strip::-webkit-scrollbar { display: none; }

.brand-tile {
    flex: 0 0 150px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 20px 12px;
    border: 1px solid var(--tt-border);
    border-radius: var(--tt-radius);
    background: #fff;
    text-decoration: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.brand-tile:hover {
    border-color: var(--tt-accent);
    box-shadow: var(--tt-shadow);
    transform: translateY(-3px);
    text-decoration: none;
}

/* logos come in every shape: a fixed box, image contained inside it */
.brand-tile-logo {
    width: 100%;
    height: 84px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-tile-logo img {
    max-width: 85%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(0.15);
    transition: filter 0.2s ease;
}

.brand-tile:hover .brand-tile-logo img { filter: none; }

.brand-tile-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--tt-ink-2);
    text-align: center;
}

.brand-tile:hover .brand-tile-name { color: var(--tt-accent); }

.brand-scroll-btn {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 42px;
    height: 42px;
    margin-top: -24px;
    border: 1px solid var(--tt-border);
    border-radius: 50%;
    background: #fff;
    color: var(--tt-ink-2);
    font-size: 22px;
    box-shadow: var(--tt-shadow);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.brand-scroll-btn:hover { border-color: var(--tt-accent); color: var(--tt-accent); }
.brand-scroll-btn[hidden] { display: none; }
.brand-scroll-prev { right: -14px; }
.brand-scroll-next { left: -14px; }

/* no logo uploaded yet: the brand's first letter in a soft circle */
.brand-tile-initial {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: var(--tt-accent-soft);
    color: var(--tt-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 800;
}

/* ---------- Responsive ---------- */
@media (max-width: 1199.98px) {
    .home-products-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 991.98px) {
    .home-hero-inner {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 40px 0 32px;
        text-align: center;
    }

    .home-hero-text { margin-left: auto; margin-right: auto; }
    .home-hero-actions,
    .home-hero-budget-options { justify-content: center; }

    .home-hero-title { font-size: 34px; }

    .home-hero-visual { max-width: 320px; margin: 0 auto; }
    .hero-racket { max-width: 220px; }

    .home-trust-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }

    .home-products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

    .home-section { padding: 40px 0; }
    .home-section-title { font-size: 23px; }
}

@media (max-width: 576px) {
    .home-hero-inner { padding: 28px 0 24px; }
    .home-hero-title { font-size: 28px; }
    .home-hero-text { font-size: 15px; margin-bottom: 20px; }

    .btn-hero-primary,
    .btn-hero-secondary { flex: 1 1 100%; height: 50px; font-size: 16px; }

    /* the illustration only repeats the text on small phones */
    .home-hero-visual { display: none; }

    .home-trust-list { padding: 14px 0; gap: 12px 10px; }
    .home-trust-list li { font-size: 12px; gap: 8px; }
    .home-trust-list strong { font-size: 13px; }
    .home-trust-list i { width: 34px; height: 34px; font-size: 15px; }

    .home-products-grid { gap: 10px; }

    .home-section { padding: 32px 0; }
    .home-section-head { margin-bottom: 18px; }
    .home-section-title { font-size: 20px; }
    .home-section-sub { font-size: 13px; }

    /* categories and brands scroll sideways instead of stacking into a tall block */
    .category-strip,
    .brand-strip {
        display: flex;
        gap: 10px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 6px;
        margin: 0 -15px;
        padding-inline: 15px;
        scrollbar-width: none;
    }

    .category-strip::-webkit-scrollbar,
    .brand-strip::-webkit-scrollbar { display: none; }

    .category-tile,
    .brand-tile {
        flex: 0 0 104px;
        scroll-snap-align: start;
        padding: 14px 8px;
    }

    .category-tile-media { width: 60px; height: 60px; }
    .category-tile-media i { font-size: 24px; }
    .category-tile-title { font-size: 13px; }

    .brand-tile { gap: 12px; }
    .brand-scroll-btn { display: none; } /* phones swipe */
    .brand-tile-logo { height: 60px; }
    .brand-tile-initial { width: 60px; height: 60px; font-size: 24px; }
    .brand-tile-name { font-size: 13px; }
}

/* ---------- about the store (home SEO copy from content type 5 > Details) ---------- */
.home-about {
    max-width: 980px;
    margin: 0 auto;
    background: #fff;
    border-radius: 16px;
    padding: 32px 36px;
    line-height: 1.95;
    color: #4b5563;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}
.home-about h2 { font-size: 24px; font-weight: 800; color: var(--tt-ink); margin: 0 0 14px; }
.home-about h3 { font-size: 18px; font-weight: 700; color: var(--tt-ink); margin: 22px 0 8px; }
.home-about ul { padding-inline-start: 22px; margin: 0 0 12px; }
.home-about a { color: #ff6b35; font-weight: 600; }
@media (max-width: 767px) {
    .home-about { padding: 22px 18px; }
    .home-about h2 { font-size: 20px; }
}
