/* ============================================================
   home.css — Zocom homepage redesign
   New sections use hp- prefixed classes. Reuses navbar.css :root vars.
   ============================================================ */

/* border-box so padded cards/grids never overflow (scoped to the homepage) */
.hp,
.hp *,
.hp *::before,
.hp *::after {
    box-sizing: border-box;
}

.hp {
    font-family: 'Poppins', sans-serif;
    color: #1e293b;
    overflow-x: hidden;
    max-width: 100%;
}

.hp__wrap {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

.hp__heading {
    text-align: center;
    font-family: 'Space Grotesk', 'Poppins', sans-serif;
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 6px;
}

.hp__heading-underline {
    width: 70px;
    height: 4px;
    border-radius: 3px;
    background: linear-gradient(90deg, #2a5298, #7c3aed);
    margin: 0 auto 40px;
}

/* ============================ HERO ============================ */
.hp-hero {
    background:
        radial-gradient(circle at 85% 15%, rgba(124, 58, 237, 0.08), transparent 45%),
        radial-gradient(circle at 10% 90%, rgba(42, 82, 152, 0.06), transparent 40%),
        linear-gradient(180deg, #ffffff 0%, #f6f8fc 100%);
    padding: 40px 0 30px;
}

.hp-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 40px;
    align-items: center;
}

.hp-hero__text { min-width: 0; }

.hp-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(124, 58, 237, 0.1);
    color: #6d28d9;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 7px 16px;
    border-radius: 30px;
    margin-bottom: 20px;
}

.hp-hero__title {
    font-family: 'Space Grotesk', 'Poppins', sans-serif;
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 700;
    line-height: 1.1;
    color: #0f172a;
    margin: 0 0 18px;
}

.hp-hero__title span {
    background: linear-gradient(90deg, #7c3aed, #c026d3);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hp-hero__desc {
    font-size: 1.05rem;
    line-height: 1.65;
    color: #475569;
    max-width: 520px;
    margin: 0 0 28px;
}

.hp-hero__cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.hp-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.98rem;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.hp-btn--primary {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: #fff;
    box-shadow: 0 8px 20px rgba(30, 60, 114, 0.28);
}

.hp-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(30, 60, 114, 0.36);
    color: #fff;
}

.hp-btn--ghost {
    background: #fff;
    color: #1e3c72;
    border-color: #d7deea;
}

.hp-btn--ghost:hover {
    transform: translateY(-2px);
    border-color: #2a5298;
    color: #1e3c72;
}

/* trust row */
.hp-hero__trust {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
}

.hp-trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hp-trust-item i {
    font-size: 1.3rem;
    color: #2a5298;
    background: rgba(42, 82, 152, 0.1);
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
}

.hp-trust-item strong {
    display: block;
    font-size: 0.9rem;
    color: #1e293b;
}

.hp-trust-item small {
    color: #64748b;
    font-size: 0.78rem;
}

/* hero visual / podium */
.hp-hero__visual {
    position: relative;
    min-height: 440px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hp-hero__glow {
    position: absolute;
    width: 340px;
    height: 340px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -55%);
    background: radial-gradient(circle, rgba(124, 58, 237, 0.35), rgba(42, 82, 152, 0.15) 55%, transparent 70%);
    filter: blur(10px);
    border-radius: 50%;
    z-index: 0;
}

.hp-hero__stage {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hp-hero__product {
    max-width: 340px;
    max-height: 340px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 26px 30px rgba(30, 60, 114, 0.35));
    animation: hpFloat 5s ease-in-out infinite;
}

.hp-hero__podium {
    position: relative;
    width: 300px;
    height: 60px;
    margin: -18px auto 0;
    background: radial-gradient(ellipse at center, #e9ecfb 0%, #d5dcf5 45%, transparent 72%);
    border-radius: 50%;
    z-index: 1;
}

.hp-hero__podium::after {
    content: '';
    position: absolute;
    inset: 14px 40px;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(124, 58, 237, 0.25), transparent 70%);
}

.hp-hero__label {
    position: relative;
    z-index: 3;
    display: inline-block;
    margin-top: -6px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 8px 20px;
    border-radius: 30px;
    box-shadow: 0 8px 18px rgba(124, 58, 237, 0.35);
}

/* thumbnail rail */
.hp-hero__thumbs {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 14px;
    z-index: 4;
}

.hp-thumb {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    display: grid;
    place-items: center;
    padding: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.hp-thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.hp-thumb:hover,
.hp-thumb.active {
    border-color: #7c3aed;
    transform: translateX(-4px);
}

@keyframes hpFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-16px); }
}

/* ======================= CLEARANCE BANNER ======================= */
.home-offers-banner {
    max-width: 1240px;
    margin: 36px auto;
    padding: 0 24px;
}

.home-offers-banner__inner {
    background: linear-gradient(120deg, #1e3c72 0%, #4338ca 60%, #7c3aed 120%);
    border-radius: 22px;
    padding: 38px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 16px 34px rgba(67, 56, 202, 0.28);
}

.home-offers-banner__inner::before {
    content: '%';
    position: absolute;
    right: 30%;
    top: -20px;
    font-size: 9rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.06);
    pointer-events: none;
}

.home-offers-banner__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.72rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.18);
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 14px;
}

.home-offers-banner__title {
    font-family: 'Space Grotesk', 'Poppins', sans-serif;
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    font-weight: 700;
    margin: 0 0 8px;
    color: #fff;
}

.home-offers-banner__subtitle {
    margin: 0;
    font-size: 1rem;
    opacity: 0.92;
    max-width: 560px;
}

.home-offers-banner__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    color: #4338ca;
    padding: 14px 30px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    z-index: 1;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.home-offers-banner__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
    color: #6d28d9;
}

/* ======================= SHOP BY CATEGORY ======================= */
.hp-categories {
    padding: 40px 0;
}

.hp-cat-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 16px;
}

.hp-cat-card { min-width: 0; }

.hp-cat-card {
    background: #fff;
    border: 1px solid #eef1f6;
    border-radius: 16px;
    padding: 18px 12px 16px;
    text-align: center;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.hp-cat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 28px rgba(30, 60, 114, 0.12);
    border-color: #d7deea;
}

.hp-cat-card__img {
    width: 100%;
    height: 92px;
    display: grid;
    place-items: center;
    margin-bottom: 12px;
    overflow: hidden;
}

.hp-cat-card__img img {
    max-width: 100%;
    max-height: 92px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.hp-cat-card__name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 6px;
    line-height: 1.25;
}

.hp-cat-card__link {
    font-size: 0.8rem;
    font-weight: 600;
    color: #7c3aed;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.hp-cat-card:hover .hp-cat-card__link {
    gap: 9px;
}

/* ======================= FEATURES STRIP ======================= */
.hp-features {
    padding: 10px 0 40px;
}

.hp-features__inner {
    background: #f4f7fb;
    border-radius: 18px;
    padding: 28px 24px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.hp-feature { min-width: 0; }

.hp-feature {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.hp-feature i {
    font-size: 1.35rem;
    color: #7c3aed;
    background: #fff;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.hp-feature strong {
    display: block;
    font-size: 0.95rem;
    color: #1e293b;
    margin-bottom: 3px;
}

.hp-feature small {
    color: #64748b;
    font-size: 0.82rem;
    line-height: 1.4;
}

/* ======================= TRUSTED BY ======================= */
.hp-trusted {
    padding: 30px 0 40px;
}

.hp-trusted__logos {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 44px;
}

.hp-trusted__logos img {
    height: 54px;
    max-width: 150px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: filter 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

.hp-trusted__logos img:hover {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.05);
}

/* ======================= TESTIMONIAL STARS ======================= */
.hp-stars {
    color: #f59e0b;
    font-size: 0.9rem;
    margin-top: 12px;
    letter-spacing: 2px;
}

/* ============================ RESPONSIVE ============================ */
@media (max-width: 992px) {
    .hp-hero__grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .hp-hero__visual { min-height: 360px; order: -1; }
    .hp-hero__product { max-width: 260px; max-height: 260px; }
    .hp-hero__thumbs { right: 4px; gap: 10px; }
    .hp-thumb { width: 52px; height: 52px; }
    .hp-cat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .hp-features__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
    .hp__wrap { padding: 0 16px; }
    .hp-hero { padding: 24px 0; }
    .hp-hero__cta .hp-btn { flex: 1 1 auto; justify-content: center; }
    .hp-hero__trust { gap: 16px; }
    .home-offers-banner__inner { padding: 28px 20px; text-align: center; justify-content: center; }
    .home-offers-banner__eyebrow { margin-left: auto; margin-right: auto; }
    .hp-cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .hp-trusted__logos { gap: 28px; }
    .hp-trusted__logos img { height: 40px; }
}

@media (max-width: 480px) {
    .hp-hero__title { font-size: 1.9rem; }
    .hp-hero__desc { font-size: 0.95rem; }
    .hp-hero__product { max-width: 200px; max-height: 200px; }
    .hp-hero__thumbs { position: static; transform: none; flex-direction: row; justify-content: center; margin-top: 16px; }
    .hp-hero__cta { flex-direction: column; }
    .hp-hero__cta .hp-btn { width: 100%; }
    .hp-cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hp-features__inner { grid-template-columns: minmax(0, 1fr); }
    .hp-trust-item { flex: 1 1 100%; }
}
