/* =====================================================
   Home Page CSS — 2026-06-18 redesign
   home- prefix throughout to avoid conflicts
   ===================================================== */

/* ── Hero ─────────────────────────────────────────────── */
.home-hero {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.home-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.home-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.home-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(20,40,5,0.74) 0%, rgba(30,60,10,0.48) 55%, rgba(0,0,0,0.22) 100%);
}
.home-hero-inner {
    position: relative;
    z-index: 10;
    max-width: 1536px;
    margin: 0 auto;
    padding: 0 48px;
    width: 100%;
}
.home-hero-text {
    max-width: 580px;
    padding: 80px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.home-hero-eyebrow {
    margin: 0 0 18px;
    font-size: 17px;
    font-weight: 600;
    color: rgba(255,255,255,0.8);
}
.home-hero-title {
    margin: 0;
    font-size: clamp(2rem, 3.5vw, 3.625rem);
    line-height: 1.18;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #fff;
}
.home-hero-accent {
    color: #a8e063;
}
.home-hero-desc {
    margin: 24px 0 0;
    font-size: 17px;
    line-height: 1.65;
    color: rgba(255,255,255,0.85);
}
.home-hero-actions {
    display: flex;
    gap: 14px;
    margin-top: 36px;
    flex-wrap: wrap;
}

/* Buttons */
.home-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 52px;
    padding: 0 26px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.2s;
}
.home-btn:hover { opacity: 0.88; transform: translateY(-1px); }
.home-btn-primary { background: #2e8b3d; color: #fff; }
.home-btn-outline { background: #fff; border: 1.5px solid #cfd9c8; color: #2e8b3d; }

/* ── Feature Cards ────────────────────────────────────── */
.home-features {
    max-width: 1536px;
    margin: 0 auto;
    padding: 44px 48px 0;
    display: grid;
    grid-template-columns: 1.35fr 1fr 1fr 1fr 1fr;
    gap: 22px;
}
.home-promo-card {
    background: #eef5e6;
    border-radius: 16px;
    padding: 30px;
    display: flex;
    gap: 14px;
    align-items: center;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.25s, transform 0.25s;
}
.home-promo-card:hover {
    box-shadow: 0 8px 28px rgba(46,139,61,0.18);
    transform: translateY(-3px);
}
.home-promo-text {
    flex: 1;
    min-width: 0;
}
.home-promo-svg {
    flex: 0 0 120px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
}
.home-badge {
    display: inline-block;
    background: #3a9e3e;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 11px;
    border-radius: 20px;
}
.home-promo-card h3 {
    margin: 12px 0 7px;
    font-size: 20px;
    font-weight: 800;
    color: #1d2b1f;
    line-height: 1.3;
}
.home-promo-card p {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    color: #5a6b56;
}
.home-link-go {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    font-weight: 700;
    color: #2e8b3d;
    margin-top: 16px;
}
.home-info-card {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 16px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
    overflow: hidden;
}
.home-info-card:hover {
    box-shadow: 0 6px 22px rgba(46,139,61,0.13);
    transform: translateY(-3px);
    border-color: #9fc98a;
}
.home-info-img {
    width: 100%;
    aspect-ratio: 3/2;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 14px;
    display: block;
}
.home-info-card .home-badge {
    align-self: flex-start;
}
.home-info-card h3 {
    margin: 10px 0 0;
    font-size: 15px;
    font-weight: 800;
    color: #1d2b1f;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}
.home-info-card .home-link-go {
    margin-top: 14px;
    font-size: 13px;
}

/* ── Section Header ───────────────────────────────────── */
.home-section {
    max-width: 1536px;
    margin: 0 auto;
    padding: 60px 48px 0;
}
.home-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}
.home-section-head h2 {
    margin: 0;
    font-size: 26px;
    font-weight: 800;
    color: #1d2b1f;
}

/* ── Categories ───────────────────────────────────────── */
.home-cat-row {
    display: flex;
    gap: 22px;
    align-items: stretch;
}
.home-cat-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 12px;
}
.home-cat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 0;
    border: 1px solid #ececec;
    border-radius: 10px;
    background: #fff;
    color: #3a9e3e;
    transition: border-color 0.15s, background 0.15s, transform 0.2s;
    text-decoration: none;
    overflow: hidden;
}
.home-cat-item svg {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    padding: 18% 22%;
    flex-shrink: 0;
    display: block;
}
.home-cat-item:hover {
    border-color: #9fc98a;
    background: #f7fbf3;
    transform: translateY(-2px);
}
.home-cat-item span {
    font-size: 11px;
    font-weight: 600;
    color: #444;
    text-align: center;
    word-break: keep-all;
    line-height: 1.3;
    padding: 0 4px 7px;
}
.home-cat-promo {
    flex: 0 0 440px;
    background: linear-gradient(135deg, #3a9e3e, #2e7d32);
    border-radius: 14px;
    padding: 14px 20px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.home-cat-promo h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
    color: #fff;
    line-height: 1.3;
}
.home-cat-promo p {
    margin: 5px 0 0;
    font-size: 12px;
    line-height: 1.5;
    color: #e3f3df;
}
.home-salad {
    position: absolute;
    right: -12px;
    bottom: -12px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
}
.home-dots {
    display: flex;
    gap: 5px;
    margin-top: 8px;
}
.home-dots i {
    width: 5px;
    height: 5px;
    border-radius: 3px;
    background: rgba(255,255,255,0.45);
    font-style: normal;
}
.home-dots i.on {
    width: 16px;
    background: #fff;
}

/* ── Brand Section ────────────────────────────────────── */
.home-brand-section {
    padding-bottom: 60px;
}
.home-brand-scroll-wrap {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}
.home-brand-row {
    display: flex;
    gap: 18px;
    width: max-content;
    animation: home-brand-left 40s linear infinite;
}
.home-brand-row:hover {
    animation-play-state: paused;
}
@keyframes home-brand-left {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.home-brand-cell {
    flex-shrink: 0;
    width: 160px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ececec;
    border-radius: 12px;
    background: #fff;
    padding: 14px;
    transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}
.home-brand-cell:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    border-color: #c8e0b4;
    transform: translateY(-3px);
}
.home-brand-cell img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: grayscale(30%);
    transition: filter 0.25s;
}
.home-brand-cell:hover img {
    filter: grayscale(0%);
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 1400px) {
    .home-hero { min-height: 460px; }
    .home-hero-inner { padding: 0 32px; }
    .home-hero-text { padding: 64px 0; }
    .home-features { grid-template-columns: 1.35fr 1fr 1fr 1fr 1fr; gap: 16px; padding: 36px 32px 0; }
    .home-cat-grid { grid-template-columns: repeat(4, 1fr); }
    .home-section { padding: 52px 32px 0; }
}
@media (max-width: 1100px) {
    .home-features { grid-template-columns: 1fr 1fr; padding: 32px 24px 0; }
    .home-promo-card { grid-column: span 2; }
    .home-section { padding: 48px 24px 0; }
    .home-cat-grid { grid-template-columns: repeat(4, 1fr); }
    .home-cat-promo { flex: 0 0 280px; }
}
@media (max-width: 768px) {
    .home-hero { min-height: 380px; }
    .home-hero-inner { padding: 0 24px; }
    .home-hero-text { padding: 52px 0; max-width: 100%; }
    .home-hero-title { font-size: 2rem; }
    .home-hero-eyebrow { font-size: 15px; }
    .home-hero-desc { font-size: 15px; }
    .home-features { grid-template-columns: 1fr 1fr; gap: 14px; padding: 28px 20px 0; }
    .home-promo-card { grid-column: span 2; }
    .home-promo-svg { flex: 0 0 90px; width: 90px; height: 90px; }
    .home-section { padding: 40px 20px 0; }
    .home-cat-row { flex-direction: column; }
    .home-cat-promo { flex: none; min-height: 180px; }
    .home-cat-grid { grid-template-columns: repeat(4, 1fr); }
    .home-brand-cell { width: 130px; height: 84px; }
}
@media (max-width: 520px) {
    .home-hero { min-height: 300px; }
    .home-hero-inner { padding: 0 20px; }
    .home-hero-text { padding: 40px 0; }
    .home-features { grid-template-columns: 1fr; gap: 12px; padding: 22px 16px 0; }
    .home-promo-card { grid-column: span 1; }
    .home-promo-svg { display: none; }
    .home-section { padding: 36px 16px 0; }
    .home-cat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .home-cat-item { padding: 16px 8px; gap: 10px; }
    .home-cat-item span { font-size: 12px; }
    .home-dots { padding-top: 20px; }
    .home-brand-cell { width: 110px; height: 76px; padding: 10px; }
}
