/* =====================================================================
   TIMIZA FARM MACHINERY - HOMEPAGE (v2.17)
   ---------------------------------------------------------------------
   Loaded after style.css on the homepage only. Everything is scoped under
   .tfm-body .tfm-hp so it outranks the older layered rules in style.css
   without touching the inner pages. Shared components (product cards,
   offers, testimonial / deliveries / facility carousels, jukebox) keep
   their own styles and are only sized and placed here.
   ===================================================================== */

.tfm-hp {
    --hp-ink: #10261A;
    --hp-ink-soft: #46574C;
    --hp-muted: #6E7F74;
    --hp-line: #DCE6DF;
    --hp-surface: #F4F8F3;
    --hp-deep: #0B3A20;
    --hp-deep-2: #0F4D29;
    --hp-radius: 14px;
    --hp-radius-sm: 10px;
    --hp-shadow: 0 1px 2px rgba(11, 58, 32, 0.06), 0 10px 30px -14px rgba(11, 58, 32, 0.28);
    --hp-shadow-lg: 0 24px 60px -24px rgba(5, 30, 16, 0.55);
    --hp-wa: #1E9E52;
    overflow-x: clip;
}

/* The header category rail repeats the category tiles that sit directly
   under the hero, and on desktop it wraps to three rows above the fold.
   Inner pages keep it; the homepage's own tiles and hero search replace it. */
.tfm-body .tfm-catrail { display: none; }

/* ---------- Base rhythm + type ---------- */
.tfm-body .tfm-hp-section { padding: 88px 0; }
.tfm-body .tfm-hp-tint { background: var(--hp-surface); }
.tfm-body .tfm-hp h2 {
    font-size: clamp(1.75rem, 3.4vw, 2.6rem);
    line-height: 1.08;
    letter-spacing: 0.2px;
    color: var(--hp-ink);
    margin: 0 0 12px;
}
.tfm-body .tfm-hp h3 { text-transform: none; letter-spacing: 0; color: var(--hp-ink); }
.tfm-body .tfm-hp .tfm-btn { border-radius: var(--hp-radius-sm); }
.tfm-hp-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.tfm-hp-head { max-width: 720px; margin-bottom: 40px; }
.tfm-hp-head p { color: var(--hp-ink-soft); font-size: 1.04rem; line-height: 1.6; }
.tfm-hp-head--split {
    max-width: none;
    display: flex; align-items: flex-end; justify-content: space-between; gap: 18px 32px; flex-wrap: wrap;
}
.tfm-hp-head--split > div { max-width: 720px; }

.tfm-hp-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    margin-bottom: 12px;
    font-family: var(--tfm-font-heading);
    font-size: 0.84rem; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase;
    color: var(--tfm-orange-dark);
}
.tfm-hp-eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; }
.tfm-hp-eyebrow--light { color: #FFB46A; }

.tfm-body .tfm-hp-link {
    display: inline-flex; align-items: center; gap: 8px;
    font-weight: 700; color: var(--tfm-green);
    padding: 6px 0; border-bottom: 2px solid rgba(23, 107, 58, 0.25);
}
.tfm-body .tfm-hp-link:hover { color: var(--tfm-green-dark); border-bottom-color: var(--tfm-orange); }
.tfm-body .tfm-hp-link i { transition: transform 0.2s ease; }
.tfm-body .tfm-hp-link:hover i { transform: translateX(3px); }

.tfm-hp-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.tfm-body .tfm-hp-checks { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; } /* .tfm-body ul zeroes margins */
.tfm-hp-checks li { display: flex; gap: 10px; align-items: flex-start; color: var(--hp-ink-soft); line-height: 1.5; }
.tfm-hp-checks i {
    flex-shrink: 0; width: 22px; height: 22px; margin-top: 1px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%; background: var(--tfm-green-light); color: var(--tfm-green); font-size: 0.68rem;
}

/* Buttons specific to dark bands */
.tfm-body .tfm-hp .tfm-hp-btn-ghost {
    background: rgba(255, 255, 255, 0.08);
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    color: #fff !important; -webkit-text-fill-color: #fff !important;
}
.tfm-body .tfm-hp .tfm-hp-btn-ghost:hover { background: #fff; border-color: #fff; color: var(--hp-deep) !important; -webkit-text-fill-color: var(--hp-deep) !important; }
.tfm-body .tfm-hp .tfm-hp-btn-wa { background: var(--hp-wa); color: #fff !important; -webkit-text-fill-color: #fff !important; }
.tfm-body .tfm-hp .tfm-hp-btn-wa:hover { background: #167A3F; transform: translateY(-2px); }

/* =====================================================================
   1. HERO
   ===================================================================== */
.tfm-body .tfm-hp-hero {
    position: relative;
    color: #fff;
    padding: 64px 0 0;
    background:
        radial-gradient(1100px 520px at 85% -10%, rgba(242, 140, 40, 0.20), transparent 60%),
        radial-gradient(800px 600px at -10% 110%, rgba(84, 170, 104, 0.22), transparent 60%),
        linear-gradient(160deg, var(--hp-deep-2) 0%, var(--hp-deep) 70%);
}
.tfm-body .tfm-hp-hero::before {
    /* faint furrow lines - a field seen from above */
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.07;
    background-image: repeating-linear-gradient(115deg, #fff 0 1px, transparent 1px 28px);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%);
    mask-image: linear-gradient(90deg, transparent, #000 60%);
}
.tfm-hp-hero-grid {
    position: relative;
    display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
    gap: 56px; align-items: center;
}
.tfm-body .tfm-hp .tfm-hp-hero-title {
    font-size: clamp(2.3rem, 5.4vw, 4rem);
    line-height: 0.98;
    letter-spacing: 0.3px;
    margin: 0 0 20px;
}
.tfm-body .tfm-hp .tfm-hp-hero-title span { color: #FFB46A !important; -webkit-text-fill-color: #FFB46A !important; display: block; }
.tfm-hp-hero-lede { font-size: 1.1rem; line-height: 1.6; color: #D7E7DC; max-width: 560px; margin-bottom: 28px !important; }
.tfm-hp-hero-lede strong { color: #fff; }

/* Search in the hero */
.tfm-body .tfm-hp-search { max-width: 580px; margin: 0; }
.tfm-body .tfm-hp-search .tfm-home-search-field {
    border: 0; border-radius: 12px; padding: 7px 7px 7px 48px;
    box-shadow: 0 12px 32px -12px rgba(0, 0, 0, 0.45);
}
.tfm-body .tfm-hp-search .tfm-home-search-field:focus-within { box-shadow: 0 0 0 4px rgba(242, 140, 40, 0.45), 0 12px 32px -12px rgba(0, 0, 0, 0.45); }
.tfm-body .tfm-hp-search .tfm-home-search-field > i { color: var(--tfm-green); }
.tfm-body .tfm-hp-search .tfm-home-search-field input { color: var(--hp-ink); font-size: 1rem; min-height: 44px; }
.tfm-body .tfm-hp-search .tfm-home-search-btn { border-radius: 9px; padding: 12px 26px; }
.tfm-body .tfm-hp-search .tfm-home-search-results { z-index: 30; color: var(--hp-ink); }

.tfm-hp-popular { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; font-size: 0.86rem; }
.tfm-hp-popular > span { color: #A9C6B2; font-weight: 600; margin-right: 2px; }
.tfm-body .tfm-hp-popular a {
    padding: 5px 12px; border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.22); background: rgba(255, 255, 255, 0.06);
    color: #E8F2EB !important; -webkit-text-fill-color: #E8F2EB !important; font-weight: 600;
}
.tfm-body .tfm-hp-popular a:hover { border-color: #FFB46A; color: #fff !important; -webkit-text-fill-color: #fff !important; background: rgba(242, 140, 40, 0.18); }

.tfm-hp-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* Media frame */
.tfm-hp-hero-media { position: relative; padding: 0 0 26px 26px; }
.tfm-body .tfm-hp-hero-frame {
    position: relative; overflow: hidden;
    aspect-ratio: 4 / 3.4;
    border-radius: 22px;
    background: #072A16;
    box-shadow: var(--hp-shadow-lg);
    outline: 1px solid rgba(255, 255, 255, 0.14); outline-offset: -1px;
}
/* Keep the outgoing slide visible until the incoming one has faded in -
   style.css flips visibility instantly, which flashes the empty frame. */
.tfm-body .tfm-hp-hero-frame .tfm-hero-slide { position: absolute; inset: 0; transition: opacity 1s ease, visibility 0s linear 1s; }
.tfm-body .tfm-hp-hero-frame .tfm-hero-slide.active { transition: opacity 1s ease, visibility 0s linear 0s; }
.tfm-body .tfm-hp-hero-frame .tfm-hero-slide img {
    position: absolute; inset: 0; top: 0; left: 0; right: 0; bottom: 0;
    width: 100%; height: 100%; object-fit: cover; object-position: center;
    transform: scale(1.04); transition: transform 6s ease;
}
.tfm-body .tfm-hp-hero-frame .tfm-hero-slide.active img { transform: scale(1); }
.tfm-body .tfm-hp-hero-frame .tfm-hero-carousel-arrow {
    top: auto; bottom: 16px; transform: none;
    width: 38px; height: 38px;
    background: rgba(8, 36, 20, 0.55); border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.tfm-body .tfm-hp-hero-frame .tfm-hero-carousel-arrow:hover { background: var(--tfm-orange); border-color: var(--tfm-orange); }
.tfm-body .tfm-hp-hero-frame .tfm-hero-carousel-prev { left: auto; right: 62px; }
.tfm-body .tfm-hp-hero-frame .tfm-hero-carousel-next { right: 16px; }
.tfm-body .tfm-hp-hero-frame .tfm-hero-carousel-dots { left: 18px; right: auto; bottom: 30px; justify-content: flex-start; }
.tfm-body .tfm-hp-hero-frame .tfm-hero-carousel-dot { background: rgba(255, 255, 255, 0.5); }
.tfm-body .tfm-hp-hero-frame .tfm-hero-carousel-dot.active { background: #fff; }

.tfm-hp-float {
    position: absolute; z-index: 5;
    display: flex; align-items: center; gap: 12px;
    padding: 12px 16px 12px 12px;
    background: #fff; color: var(--hp-ink);
    border-radius: 14px;
    box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.5);
}
.tfm-hp-float small { display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase; color: var(--hp-muted); }
.tfm-hp-float strong { display: block; font-family: var(--tfm-font-heading); font-size: 1.32rem; line-height: 1.1; color: var(--hp-ink); }
.tfm-hp-float em { font-style: normal; font-size: 0.85rem; color: var(--hp-muted); margin-left: 2px; }
.tfm-hp-float-icon {
    width: 42px; height: 42px; flex-shrink: 0; border-radius: 11px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--tfm-orange-light); color: var(--tfm-orange-dark); font-size: 1.1rem;
}
.tfm-body a.tfm-hp-float--lipa { left: 0; bottom: 0; color: var(--hp-ink); transition: transform 0.2s ease; }
.tfm-body a.tfm-hp-float--lipa:hover { transform: translateY(-3px); }
.tfm-hp-float--free { top: 22px; right: -14px; }
.tfm-hp-float--free .tfm-hp-float-icon { background: var(--tfm-green-light); color: var(--tfm-green); }
.tfm-hp-float--free strong { font-size: 1.08rem; }

/* Facts row */
.tfm-hp-hero-facts {
    position: relative;
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 56px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.tfm-hp-hero-facts li { padding: 22px 20px 26px 0; }
.tfm-hp-hero-facts li + li { padding-left: 24px; border-left: 1px solid rgba(255, 255, 255, 0.14); }
.tfm-hp-hero-facts strong { display: block; font-family: var(--tfm-font-heading); font-size: 2rem; line-height: 1; color: #fff; }
.tfm-hp-hero-facts span { display: block; margin-top: 6px; font-size: 0.86rem; color: #A9C6B2; }

/* =====================================================================
   2. ASSURANCE STRIP
   ===================================================================== */
.tfm-hp-assure { background: #fff; border-bottom: 1px solid var(--hp-line); }
.tfm-hp-assure-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.tfm-hp-assure-list li { display: flex; align-items: center; gap: 12px; padding: 22px 16px; }
.tfm-hp-assure-list li + li { border-left: 1px solid var(--hp-line); }
.tfm-hp-assure-list i {
    flex-shrink: 0; width: 42px; height: 42px; border-radius: 12px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--tfm-green-light); color: var(--tfm-green); font-size: 1.05rem;
}
.tfm-hp-assure-list li:nth-child(even) i { background: var(--tfm-orange-light); color: var(--tfm-orange-dark); }
.tfm-hp-assure-list strong { display: block; font-size: 0.95rem; color: var(--hp-ink); line-height: 1.25; }
.tfm-hp-assure-list span { display: block; font-size: 0.8rem; color: var(--hp-muted); line-height: 1.35; }

.tfm-body .tfm-hp-promo { padding: 14px 0; }

/* =====================================================================
   3. CATEGORIES
   ===================================================================== */
.tfm-hp-tabs { display: inline-flex; padding: 4px; gap: 4px; background: var(--hp-surface); border: 1px solid var(--hp-line); border-radius: 12px; }
.tfm-body .tfm-hp-tab {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 18px; border: 0; border-radius: 9px; background: transparent;
    font-family: var(--tfm-font-heading); font-size: 1rem; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase;
    color: var(--hp-ink-soft);
}
.tfm-body .tfm-hp-tab:hover { color: var(--tfm-green); }
.tfm-body .tfm-hp-tab.is-active { background: #fff; color: var(--tfm-green-dark); box-shadow: 0 1px 3px rgba(11, 58, 32, 0.14); }
.tfm-body .tfm-hp-tab:focus-visible { outline: 2px solid var(--tfm-orange); outline-offset: 2px; }
.tfm-hp-panel[hidden] { display: none; }
.tfm-hp-panel.is-active { animation: tfm-hp-fade 0.35s ease; }
@keyframes tfm-hp-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.tfm-hp-cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.tfm-body .tfm-hp-cat {
    display: flex; flex-direction: column;
    background: #fff; border: 1px solid var(--hp-line); border-radius: var(--hp-radius);
    overflow: hidden; color: var(--hp-ink);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.tfm-body .tfm-hp-cat:hover { border-color: var(--tfm-green); box-shadow: var(--hp-shadow); transform: translateY(-3px); }
.tfm-hp-cat-media {
    position: relative; aspect-ratio: 4 / 3; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    background: var(--hp-surface); color: var(--tfm-green); font-size: 2rem;
}
.tfm-body .tfm-hp-cat-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.tfm-body .tfm-hp-cat:hover .tfm-hp-cat-media img { transform: scale(1.06); }
.tfm-hp-cat-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 3px; }
.tfm-hp-cat-body strong { font-size: 0.98rem; line-height: 1.25; }
.tfm-hp-cat-body > span { font-size: 0.8rem; color: var(--hp-muted); }
.tfm-body .tfm-hp-cat--all { background: var(--hp-deep-2); border-color: var(--hp-deep-2); }
.tfm-body .tfm-hp-cat--all .tfm-hp-cat-media { background: transparent; color: #FFB46A; font-size: 1.6rem; }
.tfm-body .tfm-hp-cat--all strong { color: #fff; }
.tfm-body .tfm-hp-cat--all .tfm-hp-cat-body > span { color: #A9C6B2; }
.tfm-body .tfm-hp-cat--all:hover { background: var(--tfm-green); border-color: var(--tfm-green); }

/* =====================================================================
   4. BEST SELLERS - the shared product card grid
   ===================================================================== */
.tfm-body .tfm-hp .tfm-product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.tfm-body .tfm-hp .tfm-product-card { border-radius: var(--hp-radius); border-color: var(--hp-line); }
.tfm-body .tfm-hp .tfm-product-card:hover { box-shadow: var(--hp-shadow); }

/* =====================================================================
   5. GOALS
   ===================================================================== */
.tfm-hp-goal-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tfm-body .tfm-hp-goal {
    position: relative; display: flex; flex-direction: column; gap: 14px;
    padding: 22px; min-height: 100%;
    background: #fff; border: 1px solid var(--hp-line); border-radius: var(--hp-radius);
    color: var(--hp-ink);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.tfm-body .tfm-hp-goal:hover { border-color: var(--tfm-orange); box-shadow: var(--hp-shadow); transform: translateY(-3px); }
.tfm-hp-goal-icon {
    width: 48px; height: 48px; border-radius: 13px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--tfm-orange-light); color: var(--tfm-orange-dark); font-size: 1.2rem;
    transition: background 0.2s ease, color 0.2s ease;
}
.tfm-body .tfm-hp-goal:hover .tfm-hp-goal-icon { background: var(--tfm-orange); color: #fff; }
.tfm-hp-goal-text { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.tfm-hp-goal-text strong { font-family: var(--tfm-font-heading); font-size: 1.22rem; line-height: 1.15; }
.tfm-hp-goal-text span { font-size: 0.9rem; color: var(--hp-ink-soft); line-height: 1.5; }
.tfm-hp-goal-meta { display: inline-flex; align-items: center; gap: 8px; font-size: 0.84rem; font-weight: 700; color: var(--tfm-green); }
.tfm-hp-goal-meta i { transition: transform 0.2s ease; }
.tfm-body .tfm-hp-goal:hover .tfm-hp-goal-meta i { transform: translateX(4px); }

/* =====================================================================
   6. LIPA MDOGO
   ===================================================================== */
.tfm-body .tfm-hp-lipa {
    color: #fff;
    background:
        radial-gradient(700px 420px at 100% 0%, rgba(242, 140, 40, 0.22), transparent 60%),
        linear-gradient(150deg, var(--hp-deep-2), var(--hp-deep));
}
.tfm-hp-lipa-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr); gap: 64px; align-items: center; }
.tfm-hp-lipa-copy > p { color: #D7E7DC; font-size: 1.05rem; line-height: 1.6; max-width: 520px; }

.tfm-hp-steps { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 4px; counter-reset: none; }
.tfm-hp-steps li { position: relative; display: flex; gap: 16px; padding: 14px 0; }
.tfm-hp-steps li:not(:last-child)::after {
    content: ""; position: absolute; left: 19px; top: 54px; bottom: -4px; width: 2px;
    background: linear-gradient(rgba(255, 180, 106, 0.6), rgba(255, 255, 255, 0.1));
}
.tfm-hp-steps li > span {
    flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(242, 140, 40, 0.16); border: 1.5px solid #FFB46A;
    font-family: var(--tfm-font-heading); font-weight: 700; font-size: 1.1rem; color: #FFB46A;
}
.tfm-hp-steps strong { display: block; font-size: 1.04rem; color: #fff; margin-top: 2px; }
.tfm-hp-steps p { color: #B9D0C0; font-size: 0.92rem; margin-top: 2px !important; }

.tfm-hp-calc {
    background: #fff; color: var(--hp-ink);
    border-radius: 20px; padding: 28px;
    box-shadow: var(--hp-shadow-lg);
    scroll-margin-top: 140px;
}
.tfm-hp-calc-head { display: flex; gap: 14px; align-items: center; margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid var(--hp-line); }
.tfm-hp-calc-head > i {
    width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--tfm-orange-light); color: var(--tfm-orange-dark); font-size: 1.15rem;
}
.tfm-body .tfm-hp-calc-head h3 { font-family: var(--tfm-font-heading); font-size: 1.4rem; margin: 0; }
.tfm-hp-calc-head p { font-size: 0.86rem; color: var(--hp-muted); }
.tfm-body .tfm-hp-calc .tfm-lipa-calc-select { border-radius: 10px; min-height: 50px; border-color: var(--hp-line); }
.tfm-body .tfm-hp-calc .tfm-lipa-calc-figures > div { border-radius: 10px; }
.tfm-body .tfm-hp-calc .tfm-lipa-calc-figures dd { font-size: 1.4rem; }
.tfm-body .tfm-hp-calc-ask {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    margin-top: 14px; font-size: 0.88rem; font-weight: 700; color: var(--hp-wa);
}
.tfm-body .tfm-hp-calc-ask:hover { color: var(--tfm-green-dark); text-decoration: underline; }

/* =====================================================================
   7. LIVESTOCK SPOTLIGHT
   ===================================================================== */
.tfm-hp-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.tfm-hp-lv-collage {
    display: grid; grid-template-columns: 1.25fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px;
    aspect-ratio: 5 / 4;
}
.tfm-body .tfm-hp-lv-collage img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--hp-radius); box-shadow: var(--hp-shadow); }
.tfm-body .tfm-hp-lv-collage img:first-child { grid-row: 1 / 3; }
.tfm-body .tfm-hp-lv-collage img:only-child { grid-column: 1 / 3; }
.tfm-hp-lv-copy > p { color: var(--hp-ink-soft); font-size: 1.04rem; line-height: 1.65; margin-bottom: 6px; }

/* =====================================================================
   8. REACH
   ===================================================================== */
.tfm-hp-reach-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tfm-hp-country {
    display: flex; flex-direction: column; gap: 10px;
    padding: 22px; border-radius: var(--hp-radius);
    background: #fff; border: 1px solid var(--hp-line);
}
.tfm-hp-country:first-child { background: var(--tfm-green-light); border-color: rgba(23, 107, 58, 0.25); }
.tfm-hp-country header { display: flex; align-items: center; gap: 12px; }
.tfm-body .tfm-hp-flag { width: 36px; height: 24px; object-fit: cover; border-radius: 4px; box-shadow: 0 0 0 1px rgba(16, 38, 26, 0.12); }
.tfm-body .tfm-hp-country h3 { font-family: var(--tfm-font-heading); font-size: 1.35rem; margin: 0; }
.tfm-hp-country p { font-size: 0.9rem; color: var(--hp-ink-soft); line-height: 1.55; flex: 1; }
.tfm-body .tfm-hp-country-link { display: inline-flex; align-items: center; gap: 8px; font-size: 0.88rem; font-weight: 700; color: var(--tfm-green); }
.tfm-body .tfm-hp-country-link:hover { color: var(--tfm-orange-dark); }
.tfm-hp-country-link .fa-whatsapp { color: var(--hp-wa); font-size: 1.05rem; }

/* =====================================================================
   9. SOCIAL PROOF
   ===================================================================== */
.tfm-hp-proof-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 40px; align-items: center; }
.tfm-hp-proof-grid.is-single { grid-template-columns: minmax(0, 640px); justify-content: center; }
.tfm-body .tfm-hp-proof-grid .tfm-testimonial-carousel { max-width: none; margin: 0; }
.tfm-body .tfm-hp-proof-grid .tfm-testimonial-quote-card { border-radius: 18px; padding: 22px 22px 22px; text-align: left; align-items: stretch; box-shadow: var(--hp-shadow); }
.tfm-body .tfm-hp-proof-grid .tfm-testimonial-quote-text { margin: 0 0 18px; font-size: 1rem; max-width: none; }
.tfm-body .tfm-hp-proof-grid .tfm-testimonial-quote-text::before { content: "\201C"; font-family: Georgia, serif; font-size: 2.6rem; line-height: 0; vertical-align: -0.4em; margin-right: 4px; color: var(--tfm-orange); }
.tfm-body .tfm-hp-proof-grid .tfm-testimonial-product-label { margin-top: 16px; }
.tfm-body .tfm-hp-flag-sm { display: inline-block; width: 18px; height: 12px; object-fit: cover; border-radius: 2px; vertical-align: -1px; }
.tfm-body .tfm-hp-proof-grid .tfm-testimonial-prev,
.tfm-body .tfm-hp-proof-grid .tfm-testimonial-next {
    top: 130px; transform: none; width: 38px; height: 38px;
    background: rgba(8, 36, 20, 0.6); border: 1px solid rgba(255, 255, 255, 0.35); color: #fff; opacity: 1;
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); z-index: 4;
}
.tfm-body .tfm-hp-proof-grid .tfm-testimonial-prev { left: 34px; }
.tfm-body .tfm-hp-proof-grid .tfm-testimonial-next { right: 34px; }
.tfm-body .tfm-hp-proof-grid .tfm-testimonial-prev:hover,
.tfm-body .tfm-hp-proof-grid .tfm-testimonial-next:hover { background: var(--tfm-orange); border-color: var(--tfm-orange); }
.tfm-body .tfm-hp-deliveries { margin-top: 0; }
.tfm-body .tfm-hp-deliveries .tfm-recent-deliveries-label { justify-content: flex-start; }
.tfm-body .tfm-hp-deliveries .tfm-deliveries-slide { flex-basis: calc(50% - 7px); }
.tfm-body .tfm-hp-deliveries .tfm-deliveries-slide img { aspect-ratio: 3 / 4; border-radius: var(--hp-radius); }

/* =====================================================================
   10. MEDIA (dark band)
   ===================================================================== */
.tfm-body .tfm-hp-media { background: linear-gradient(180deg, #0A2416 0%, #0E3220 100%); color: #fff; }
.tfm-hp-head--light p { color: #B9D0C0; }
.tfm-hp-media-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.tfm-hp-media-grid.is-single { grid-template-columns: minmax(0, 860px); justify-content: center; }
.tfm-body .tfm-hp-jukebox { margin: 0; padding: 22px; border-radius: 20px; background: rgba(255, 255, 255, 0.04); box-shadow: none; }
.tfm-body .tfm-hp-jukebox .tfm-jukebox-body { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 22px; }
.tfm-body .tfm-hp-jukebox .tfm-jukebox-screen { border-radius: 14px; max-height: 520px; }
.tfm-body .tfm-hp-jukebox .tfm-jukebox-slot { border-radius: 10px; padding: 12px 14px; }
.tfm-hp-radio { padding: 22px; border-radius: 20px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.07); }
.tfm-body .tfm-hp .tfm-hp-radio h3 { display: flex; align-items: center; gap: 10px; font-family: var(--tfm-font-heading); font-size: 1.3rem; margin: 0 0 16px; text-transform: uppercase; letter-spacing: 0.6px; }
.tfm-hp-radio h3 i { color: #FFB46A; }
.tfm-body .tfm-hp-radio .tfm-radio-carousel { max-width: none; }
.tfm-body .tfm-hp-radio .tfm-radio-wrapper { max-width: none; border-radius: 14px; }
.tfm-body .tfm-hp-radio .tfm-video-carousel-dots .tfm-hero-carousel-dot { background: rgba(255, 255, 255, 0.3); }
.tfm-body .tfm-hp-radio .tfm-video-carousel-dots .tfm-hero-carousel-dot.active { background: #FFB46A; }

/* =====================================================================
   11. ABOUT
   ===================================================================== */
.tfm-hp-about { align-items: start; }
.tfm-hp-about-copy > p { color: var(--hp-ink-soft); font-size: 1.04rem; line-height: 1.65; }
.tfm-hp-ceo {
    display: flex; gap: 18px; align-items: center;
    margin: 28px 0 0; padding: 20px;
    background: var(--hp-surface); border-left: 4px solid var(--tfm-orange); border-radius: 0 var(--hp-radius) var(--hp-radius) 0;
}
.tfm-body .tfm-hp-ceo img { width: 76px; height: 76px; flex-shrink: 0; border-radius: 50%; object-fit: cover; object-position: top; box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--tfm-green-light); }
.tfm-hp-ceo blockquote { margin: 0 0 8px; font-size: 1.04rem; font-style: italic; line-height: 1.5; color: var(--hp-ink); }
.tfm-hp-ceo figcaption strong { display: block; font-size: 0.95rem; color: var(--hp-ink); }
.tfm-hp-ceo figcaption span { font-size: 0.84rem; color: var(--hp-muted); }
.tfm-body .tfm-hp-ceo figcaption a { color: var(--tfm-green); font-weight: 700; }
.tfm-hp-address { display: flex; gap: 8px; align-items: center; margin-top: 18px !important; font-size: 0.9rem; color: var(--hp-muted); }
.tfm-hp-address i { color: var(--tfm-orange); }
.tfm-body .tfm-hp-yard .tfm-facility-carousel { border-radius: 20px; }
.tfm-body .tfm-hp-yard .tfm-facility-slide { transition: opacity 0.5s ease, visibility 0s linear 0.5s; }
.tfm-body .tfm-hp-yard .tfm-facility-slide.active { transition: opacity 0.5s ease, visibility 0s linear 0s; }
.tfm-body .tfm-hp-yard .tfm-facility-thumbs { margin-top: 12px; gap: 10px; }
.tfm-body .tfm-hp-yard .tfm-facility-thumb { border-radius: 10px; overflow: hidden; }

/* =====================================================================
   12. HOW TO BUY + FAQ
   ===================================================================== */
.tfm-hp-buy-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.tfm-hp-plan, .tfm-hp-pay { padding: 26px; border-radius: var(--hp-radius); background: #fff; border: 1px solid var(--hp-line); }
.tfm-hp-plan { border-top: 4px solid var(--tfm-orange); }
.tfm-hp-plan--alt { border-top-color: var(--tfm-green); }
.tfm-hp-plan-tag {
    display: inline-block; margin-bottom: 12px; padding: 4px 10px; border-radius: 6px;
    font-size: 0.74rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
    background: var(--tfm-orange-light); color: var(--tfm-orange-dark);
}
.tfm-hp-plan--alt .tfm-hp-plan-tag { background: var(--tfm-green-light); color: var(--tfm-green-dark); }
.tfm-body .tfm-hp-plan h3 { font-family: var(--tfm-font-heading); font-size: 1.4rem; line-height: 1.15; margin: 0 0 4px; }
.tfm-body .tfm-hp-pay { background: var(--hp-deep-2); border-color: var(--hp-deep-2); color: #fff; }
.tfm-body .tfm-hp .tfm-hp-pay h3 { display: flex; align-items: center; gap: 10px; font-family: var(--tfm-font-heading); font-size: 1.3rem; margin: 0 0 14px; }
.tfm-hp-pay h3 i { color: #FFB46A; }
.tfm-hp-pay-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 0; border-bottom: 1px dashed rgba(255, 255, 255, 0.2); }
.tfm-hp-pay-row span { font-size: 0.84rem; color: #B9D0C0; }
.tfm-hp-pay-row strong { font-family: var(--tfm-font-heading); font-size: 1.6rem; letter-spacing: 1px; color: #fff; font-variant-numeric: tabular-nums; }
.tfm-hp-pay-row strong.is-small { font-size: 1rem; letter-spacing: 0; }
.tfm-hp-pay > p { margin-top: 14px !important; font-size: 0.82rem; line-height: 1.55; color: #B9D0C0; }
.tfm-body .tfm-hp-poster-link img { display: none !important; } /* carries the lightbox alt text only */
.tfm-body .tfm-hp-poster-link {
    display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 0;
    background: none !important; border: 0; box-shadow: none; font-size: 0.86rem; font-weight: 700; color: #FFB46A; text-decoration: underline; text-underline-offset: 3px;
}

.tfm-hp-faq { margin-top: 48px; display: grid; grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr); gap: 32px; }
.tfm-body .tfm-hp-faq > h3 { font-family: var(--tfm-font-heading); font-size: 1.7rem; text-transform: uppercase; letter-spacing: 0.4px; margin: 0; }
.tfm-hp-faq-list { display: flex; flex-direction: column; gap: 10px; }
.tfm-hp-faq-item { background: #fff; border: 1px solid var(--hp-line); border-radius: 12px; }
.tfm-hp-faq-item[open] { border-color: rgba(23, 107, 58, 0.35); }
.tfm-hp-faq-item summary {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 16px 20px; cursor: pointer; list-style: none;
    font-weight: 700; font-size: 1rem; color: var(--hp-ink);
}
.tfm-hp-faq-item summary::-webkit-details-marker { display: none; }
.tfm-hp-faq-item summary i { flex-shrink: 0; color: var(--tfm-green); transition: transform 0.2s ease; }
.tfm-hp-faq-item[open] summary i { transform: rotate(45deg); }
.tfm-hp-faq-item summary:focus-visible { outline: 2px solid var(--tfm-orange); outline-offset: 2px; border-radius: 12px; }
.tfm-hp-faq-item p { padding: 0 20px 18px; color: var(--hp-ink-soft); line-height: 1.65; }

/* =====================================================================
   13. CLOSING CTA
   ===================================================================== */
.tfm-body .tfm-hp-cta {
    padding: 64px 0;
    background:
        radial-gradient(600px 300px at 90% 50%, rgba(255, 255, 255, 0.14), transparent 70%),
        linear-gradient(120deg, var(--tfm-orange-dark), var(--tfm-orange));
    color: #fff;
}
.tfm-hp-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; }
.tfm-hp-cta-inner > div:first-child { max-width: 620px; }
.tfm-hp-cta p { font-size: 1.06rem; line-height: 1.6; }
.tfm-hp-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* =====================================================================
   DARK-SURFACE GUARD - host themes style h1-h3/p/a explicitly, so text
   painted on the dark bands is pinned here (same approach as style.css).
   ===================================================================== */
.tfm-body .tfm-hp-hero h1,
.tfm-body .tfm-hp-lipa h2,
.tfm-body .tfm-hp-media h2,
.tfm-body .tfm-hp-media h3,
.tfm-body .tfm-hp-pay h3,
.tfm-body .tfm-hp-cta h2 {
    color: #fff !important; -webkit-text-fill-color: #fff !important;
    background: none !important; -webkit-background-clip: border-box !important; background-clip: border-box !important;
}
.tfm-body .tfm-hp-cta p { color: #FFF4E8 !important; -webkit-text-fill-color: #FFF4E8 !important; }
.tfm-body .tfm-hp-media .tfm-hp-head p { color: #B9D0C0 !important; -webkit-text-fill-color: #B9D0C0 !important; }
.tfm-body .tfm-hp-hero .tfm-hp-hero-lede { color: #D7E7DC !important; -webkit-text-fill-color: #D7E7DC !important; }
.tfm-body .tfm-hp-lipa .tfm-hp-lipa-copy > p { color: #D7E7DC !important; -webkit-text-fill-color: #D7E7DC !important; }
.tfm-body .tfm-hp-calc h3 { color: var(--hp-ink) !important; -webkit-text-fill-color: var(--hp-ink) !important; }
.tfm-body .tfm-hp-cta .tfm-btn,
.tfm-body .tfm-hp-hero .tfm-btn { box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.45); }
.tfm-body .tfm-hp-cta .tfm-hp-btn-ghost:hover { color: var(--tfm-orange-dark) !important; -webkit-text-fill-color: var(--tfm-orange-dark) !important; }

/* =====================================================================
   REVEAL ON SCROLL (JS adds .tfm-hp-js to <html>; never hides without it)
   ===================================================================== */
.tfm-hp-js .tfm-hp-reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.tfm-hp-js .tfm-hp-reveal.is-visible { opacity: 1; transform: none; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1100px) {
    .tfm-hp-assure-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .tfm-hp-assure-list li:nth-child(4) { border-left: 0; }
    .tfm-hp-assure-list li:nth-child(n+4) { border-top: 1px solid var(--hp-line); }
    .tfm-hp-goal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tfm-body .tfm-hp .tfm-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .tfm-hp-reach-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tfm-hp-media-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 960px) {
    .tfm-body .tfm-hp-section { padding: 64px 0; }
    .tfm-hp-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
    .tfm-hp-hero-media { padding: 0 0 22px 0; max-width: 640px; }
    .tfm-hp-float--free { right: 12px; top: 12px; }
    .tfm-hp-lipa-grid,
    .tfm-hp-split,
    .tfm-hp-proof-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
    .tfm-hp-buy-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .tfm-hp-pay { grid-column: 1 / -1; }
    .tfm-hp-faq { grid-template-columns: minmax(0, 1fr); gap: 18px; }
    .tfm-hp-lv-collage { max-width: 640px; }
}

@media (max-width: 767px) {
    .tfm-body .tfm-hp-section { padding: 52px 0; }
    .tfm-hp-head { margin-bottom: 28px; }
    .tfm-body .tfm-hp-hero { padding-top: 40px; }
    .tfm-hp-hero-lede { font-size: 1rem; }
    .tfm-body .tfm-hp-search .tfm-home-search-field { flex-wrap: nowrap; padding-left: 42px; }
    .tfm-body .tfm-hp-search .tfm-home-search-btn { width: auto; margin-top: 0; padding: 11px 16px; }
    .tfm-hp-hero-actions .tfm-btn { flex: 1 1 0; padding-left: 12px; padding-right: 12px; }
    .tfm-body .tfm-hp-hero-frame { aspect-ratio: 16 / 10; border-radius: 16px; }
    .tfm-body .tfm-hp-hero-frame .tfm-hero-carousel-arrow { display: none; }
    .tfm-hp-float { padding: 10px 12px 10px 10px; }
    .tfm-hp-float strong { font-size: 1.1rem; }
    .tfm-hp-float-icon { width: 36px; height: 36px; }
    .tfm-hp-float--free { display: none; }
    .tfm-body a.tfm-hp-float--lipa { left: 12px; bottom: 0; }
    .tfm-hp-hero-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 36px; }
    .tfm-hp-hero-facts li { padding: 18px 12px 18px 0; }
    .tfm-hp-hero-facts li:nth-child(3) { padding-left: 0; border-left: 0; }
    .tfm-hp-hero-facts li:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, 0.14); }
    .tfm-hp-hero-facts strong { font-size: 1.6rem; }

    /* Assurance strip becomes a swipeable row */
    .tfm-hp-assure-list { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
    .tfm-hp-assure-list::-webkit-scrollbar { display: none; }
    .tfm-hp-assure-list li { flex: 0 0 72%; scroll-snap-align: start; padding: 16px; border-top: 0 !important; }
    .tfm-hp-assure-list li:nth-child(4) { border-left: 1px solid var(--hp-line); }

    .tfm-hp-tabs { width: 100%; }
    .tfm-body .tfm-hp-tab { flex: 1; justify-content: center; }
    .tfm-hp-cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .tfm-hp-cat-body { padding: 10px 12px 12px; }
    .tfm-hp-cat-body strong { font-size: 0.9rem; }

    .tfm-body .tfm-hp .tfm-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .tfm-hp-goal-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .tfm-body .tfm-hp-goal { flex-direction: row; align-items: center; padding: 16px; gap: 14px; }
    .tfm-hp-goal-text strong { font-size: 1.08rem; }
    .tfm-hp-goal-text span { font-size: 0.84rem; }
    .tfm-hp-goal-meta { display: none; }

    .tfm-hp-calc { padding: 20px; border-radius: 16px; }
    .tfm-body .tfm-hp-calc .tfm-lipa-calc-figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tfm-body .tfm-hp-calc .tfm-lipa-calc-figures dd { font-size: 1.12rem; }
    .tfm-hp-reach-grid { grid-template-columns: minmax(0, 1fr); }
    .tfm-body .tfm-hp-deliveries .tfm-deliveries-slide { flex-basis: 70%; }
    .tfm-body .tfm-hp-jukebox { padding: 14px; }
    .tfm-body .tfm-hp-jukebox .tfm-jukebox-body { grid-template-columns: minmax(0, 1fr); }
    .tfm-hp-radio { padding: 14px; }
    .tfm-hp-buy-grid { grid-template-columns: minmax(0, 1fr); }
    .tfm-hp-ceo { flex-direction: column; align-items: flex-start; }
    .tfm-hp-actions .tfm-btn,
    .tfm-hp-cta-actions,
    .tfm-hp-cta-actions .tfm-btn { width: 100%; }
    .tfm-body .tfm-hp-cta { padding: 48px 0 calc(48px + 64px); } /* clears the mobile bottom nav */
}

@media (prefers-reduced-motion: reduce) {
    .tfm-hp *, .tfm-hp *::before, .tfm-hp *::after { transition: none !important; animation: none !important; }
    .tfm-hp-js .tfm-hp-reveal { opacity: 1; transform: none; }
}
