/* ═══════════════════════════════════════════════════════
   HOME PAGE — Zone-All Controls
   index.php → assets/css/home.css
═══════════════════════════════════════════════════════ */

/* ─── HERO SECTION ───────────────────────────────────── */

.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 82px 60px 100px 60px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

/* ─── HERO SLIDES ────────────────────────────────────── */

.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.slide.active {
    opacity: 1;
    animation: slowZoom 6s ease forwards;
}

@keyframes slowZoom {
    from { transform: scale(1); }
    to   { transform: scale(1.06); }
}

/* ─── HERO OVERLAY ───────────────────────────────────── */

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        115deg,
        rgba(11, 31, 46, 0.72),
        rgba(11, 31, 46, 0.50),
        rgba(229, 57, 53, 0.08),
        rgba(11, 31, 46, 0.12)
    );
    background-size: 180% 180%;
    animation: overlayMove 14s ease-in-out infinite;
    z-index: 1;
}

@keyframes overlayMove {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ─── HERO CONTENT ───────────────────────────────────── */

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 720px;
    text-shadow: 0 3px 18px rgba(0,0,0,0.35);
}

.eyebrow {
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #ff5a55 !important;
    font-weight: 900;
    margin-bottom: 14px;
    opacity: 1;
}

.hero-content h1 {
    font-size: clamp(42px, 5vw, 64px);
    line-height: 1.08;
    letter-spacing: -1px;
    margin-bottom: 22px;
    white-space: nowrap;
}

.hero-content p {
    max-width: 560px;
    font-size: 20px;
    line-height: 1.6;
    color: rgba(255,255,255,0.92);
    margin-bottom: 30px;
}

/* ─── CHANGING WORD ANIMATION ────────────────────────── */

#changing-word {
    display: inline-block;
    min-width: 210px;
    position: relative;
}

#changing-word::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, #e53935, #dd4141);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

#changing-word.is-visible::after {
    transform: scaleX(1);
}

#changing-word,
#hero-subtitle {
    transition:
        opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
        filter 0.6s ease;
}

#changing-word.is-visible,
#hero-subtitle.is-visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

#hero-subtitle.is-fading,
#changing-word.is-fading {
    opacity: 0.25;
    transform: translateY(8px);
    filter: blur(2px);
}

/* ─── HERO BUTTONS ───────────────────────────────────── */

.hero-buttons {
    display: flex;
    gap: 16px;
}

.btn {
    padding: 14px 28px;
    font-size: 16px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.btn.primary {
    background: #e53935;
    color: white;
    transition: all 0.25s ease;
}

.btn.primary:hover {
    background: #c62828;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

.btn.secondary {
    border: 1px solid white;
    color: white;
}

.btn.secondary:hover {
    background: rgba(255,255,255,0.1);
}

/* ─── SLIDE INDICATORS ───────────────────────────────── */

.slide-indicators {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 28px;
}

.indicator {
    height: 3px;
    border-radius: 2px;
    background: rgba(255,255,255,0.25);
    transition: all 0.4s ease;
    cursor: pointer;
    width: 14px;
}

.indicator.active {
    width: 28px;
    background: white;
}

/* ─── STATS STRIP ────────────────────────────────────── */

.stats-strip {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3;
    overflow: hidden;
    background: rgba(11, 31, 46, 0.88);
    border-top: 0.5px solid rgba(255,255,255,0.08);
}

/* Edge fade gradients */
.stats-strip::before,
.stats-strip::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    z-index: 4;
    pointer-events: none;
}

.stats-strip::before {
    left: 0;
    background: linear-gradient(to right, rgba(11,31,46,0.9), transparent);
}

.stats-strip::after {
    right: 0;
    background: linear-gradient(to left, rgba(11,31,46,0.9), transparent);
}

/* ─── STATS SLIDES ───────────────────────────────────── */

.stats-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px 48px 28px;
    min-height: 100px;
    gap: 0;
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
}

.stats-slide.active {
    opacity: 1;
    transform: translateX(0);
    position: relative;
}

.stats-slide.exiting {
    opacity: 0;
    transform: translateX(-40px);
}

.stats-slide-label {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.35);
    white-space: nowrap;
}

/* ─── STAT ITEMS ─────────────────────────────────────── */

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 0 28px;
    text-align: center;
}

.stat-item .stat-value {
    font-size: 26px;
    font-weight: 700;
    color: white;
    line-height: 1;
}

.trust-icon {
    font-size: 20px;
    color: #e53935 !important;
    line-height: 1;
}

.cta-heading {
    font-size: 16px !important;
    font-weight: 600 !important;
    white-space: nowrap;
}

.stat-item .stat-label {
    font-size: 12px;
    color: rgba(255,255,255,0.65);
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

.stat-divider {
    width: 0.5px;
    height: 36px;
    background: rgba(255,255,255,0.15);
    flex-shrink: 0;
}

/* ─── STATS TAB INDICATORS ───────────────────────────── */

.stats-tab-indicators {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}

.stats-tab {
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: rgba(255,255,255,0.15);
    transition: all 0.4s ease;
}

.stats-tab.active {
    width: 32px;
    background: #e53935;
}

/* ─── CTA BUTTON IN STATS ────────────────────────────── */

.btn-cta {
    display: inline-block;
    padding: 10px 24px;
    background: #e53935;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition: background 0.25s ease, transform 0.25s ease;
}

.btn-cta:hover {
    background: #c62828;
    transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════════════
   SCROLL SECTIONS
═══════════════════════════════════════════════════════ */

/* ─── SHARED ─────────────────────────────────────────── */

.section-eyebrow {
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #e53935;
    margin: 0 0 12px;
    display: block;
}

.why-accent {
    color: #e53935;
}

/* ─── WHY CHOOSE US ──────────────────────────────────── */

.why-section {
    background: #ffffff;
    padding: 100px 60px;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.why-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.why-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.why-header {
    text-align: center;
    margin-bottom: 60px;
}

.why-header h2 {
    font-size: clamp(28px, 3.5vw, 44px);
    font-weight: 700;
    color: #0b1f2e;
    line-height: 1.15;
    letter-spacing: -0.5px;
    margin: 0 0 16px;
}

.why-subtitle {
    font-size: 17px;
    color: rgba(11,31,46,0.6);
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.65;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.why-card {
    background: #f8f9fb;
    border-radius: 16px;
    padding: 32px 28px;
    border: 1px solid rgba(11,31,46,0.06);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Red stripe slides in on hover */
.why-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, #e53935, rgba(229,57,53,0.2));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.why-card:hover {
    box-shadow: 0 12px 40px rgba(11,31,46,0.10);
    transform: translateY(-4px);
}

.why-card:hover::before {
    transform: scaleX(1);
}

.why-icon {
    width: 52px;
    height: 52px;
    background: rgba(229,57,53,0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e53935;
    margin-bottom: 20px;
    transition: background 0.3s ease;
}

.why-card:hover .why-icon {
    background: rgba(229,57,53,0.14);
}

.why-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #0b1f2e;
    margin: 0 0 12px;
    line-height: 1.3;
}

.why-card p {
    font-size: 14px;
    color: rgba(11,31,46,0.6);
    line-height: 1.7;
    margin: 0;
}

/* ─── PRODUCTS PREVIEW ───────────────────────────────── */

.products-preview-section {
    background: #eef1f5;
    padding: 100px 60px;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.products-preview-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.preview-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.preview-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 48px;
    gap: 24px;
}

.preview-header h2 {
    font-size: clamp(28px, 3.5vw, 44px);
    font-weight: 700;
    color: #0b1f2e;
    line-height: 1.15;
    letter-spacing: -0.5px;
    margin: 0;
}

.preview-view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #e53935;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: gap 0.25s ease;
}

.preview-view-all:hover {
    gap: 12px;
}

.preview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
    align-items: stretch;
}

.preview-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(11,31,46,0.08);
    border: 1px solid rgba(11,31,46,0.06);
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.preview-card:hover {
    box-shadow: 0 16px 48px rgba(11,31,46,0.13);
    transform: translateY(-4px);
}

.preview-card-img {
    height: 300px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.featured-preview .preview-card-img img {
    width: 350px;
}

.preview-card-img img {
    max-width: 100%;
    max-height: 100%;
   
    transition: transform 0.35s ease;
}






.preview-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 10px;
}

.preview-eyebrow {
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #e53935;
}

.preview-card-body h3 {
    font-size: 20px;
    font-weight: 700;
    color: #0b1f2e;
    margin: 0;
    line-height: 1.2;
}

.preview-card-body p {
    font-size: 14px;
    color: rgba(11,31,46,0.6);
    line-height: 1.65;
    margin: 0;
    flex: 1;
}

.preview-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.preview-tags span {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(229,57,53,0.08);
    color: #e53935;
    border: 1px solid rgba(229,57,53,0.2);
}

.preview-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: #0b1f2e;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    margin-top: 4px;
    align-self: flex-start;
    transition: background 0.25s ease, transform 0.25s ease;
}

.preview-btn:hover {
    background: #e53935;
    transform: translateY(-2px);
}

/* ─── HOW IT WORKS ───────────────────────────────────── */

.how-section {
    background: #ffffff;
    padding: 100px 60px;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.how-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.how-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.how-header {
    text-align: center;
    margin-bottom: 72px;
}

.how-header .section-eyebrow {
    color: #e53935;
}

.how-header h2 {
    font-size: clamp(28px, 3.5vw, 44px);
    font-weight: 700;
    color: #0b1f2e;
    line-height: 1.15;
    letter-spacing: -0.5px;
    margin: 0;
}

.how-steps {
    display: flex;
    align-items: flex-start;
    gap: 0;
}

.how-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    padding: 0 20px;
}

.how-step-num {
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 2px;
    color: rgba(229,57,53,0.5);
    margin-bottom: -8px;
}

.how-step-line {
    width: 1px;
    height: 24px;
    background: rgba(229,57,53,0.2);
}

.how-step-icon {
    width: 64px;
    height: 64px;
    background: rgba(229,57,53,0.08);
    border: 1px solid rgba(229,57,53,0.15);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e53935;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.how-step:hover .how-step-icon {
    background: rgba(229,57,53,0.14);
    border-color: rgba(229,57,53,0.3);
}

.how-step h3 {
    font-size: 18px;
    font-weight: 700;
    color: #0b1f2e;
    margin: 0;
    line-height: 1.3;
}

.how-step p {
    font-size: 14px;
    color: rgba(11,31,46,0.55);
    line-height: 1.7;
    margin: 0;
}

.how-connector {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    padding-top: 80px;
    color: rgba(229,57,53,0.3);
}

/* ─── CONTACT CTA ────────────────────────────────────── */

.home-cta-section {
    background: #0b1f2e;
    border-top: 1px solid rgba(255,255,255,0.07);
    padding: 100px 60px;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.home-cta-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.home-cta-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    position: relative;
    z-index: 2;
}

.home-cta-eyebrow {
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #e57373;
    margin: 0 0 16px;
}

.home-cta-text h2 {
    font-size: clamp(28px, 3.5vw, 44px);
    font-weight: 700;
    color: white;
    line-height: 1.15;
    letter-spacing: -0.5px;
    margin: 0 0 16px;
    max-width: 560px;
}

.home-cta-text p {
    font-size: 16px;
    color: rgba(255,255,255,0.55);
    line-height: 1.65;
    margin: 0;
    max-width: 480px;
}

.home-cta-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-shrink: 0;
}

.home-cta-btn-primary {
    display: inline-block;
    padding: 15px 36px;
    background: #e53935;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
    text-align: center;
    transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.home-cta-btn-primary:hover {
    background: #c62828;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(229,57,53,0.4);
}

.home-cta-btn-secondary {
    display: inline-block;
    padding: 14px 36px;
    background: transparent;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.25s ease;
}

.home-cta-btn-secondary:hover {
    color: white;
    border-color: rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.05);
}

/* Decorative red glow */
.home-cta-glow {
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(229,57,53,0.15), transparent 70%);
    pointer-events: none;
    z-index: 1;
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════ */

/* ── Large Tablet (max 960px) ── */
@media (max-width: 960px) {

    .hero {
        padding: 82px 32px 100px 32px;
    }

    .hero-content h1 {
        white-space: normal;
        font-size: 42px;
    }

    /* Stat items — tighten padding */
    .stat-item {
        padding: 0 16px;
    }

    .stat-item .stat-value {
        font-size: 20px;
    }

    /* Why grid — 2 columns */
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Products preview — single column */
    .preview-grid {
        grid-template-columns: 1fr;
    }

    .preview-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    /* How it works — stack */
    .how-steps {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .how-connector {
        transform: rotate(90deg);
        padding: 0;
    }

    /* CTA — stack */
    .home-cta-inner {
        flex-direction: column;
        text-align: center;
    }

    .home-cta-actions {
        width: 100%;
    }

    /* Section padding */
    .why-section,
    .products-preview-section,
    .how-section,
    .home-cta-section {
        padding: 60px 32px;
    }
}

/* ── Small Tablet (max 768px) ── */
@media (max-width: 768px) {

    .hero {
        padding: 75px 24px 100px 24px;
    }

    .why-section,
    .products-preview-section,
    .how-section,
    .home-cta-section {
        padding: 48px 24px;
    }

    .home-cta-btn-primary,
    .home-cta-btn-secondary {
        width: 100%;
        text-align: center;
    }

    .why-header h2,
    .preview-header h2,
    .how-header h2,
    .home-cta-text h2 {
        font-size: 28px;
    }

        .stats-slide {
        padding: 20px 24px 28px;
        justify-content: center;
    }

    /* Show only first 2 stat items + their divider */
    .stats-slide .stat-item:nth-child(n+5),
    .stats-slide .stat-divider:nth-child(n+4) {
        display: none;
    }

    .stat-item {
        padding: 0 12px;
    }

    .stat-item .stat-value {
        font-size: 20px;
    }

    .stat-item .stat-label {
        font-size: 10px;
    }
}

/* ── Mobile (max 600px) ── */
@media (max-width: 600px) {

    .hero {
        padding: 75px 20px 100px 20px;
    }

    .hero-content h1 {
        font-size: 32px;
        white-space: normal;
    }

    .hero-content p {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    /* Why grid — single column */
    .why-grid {
        grid-template-columns: 1fr;
    }

    .why-card {
        padding: 24px 20px;
    }

    /* Stats strip — simplify */
    .stats-slide {
        padding: 20px 20px 24px;
    }

    .cta-heading {
        font-size: 13px !important;
        white-space: normal;
    }

        /* Show only 2 items on very small screens */
    .stats-slide .stat-item:nth-child(n+4),
    .stats-slide .stat-divider:nth-child(n+3) {
        display: none;
    }

    .stat-item {
        padding: 0 10px;
    }

    .stat-item .stat-value {
        font-size: 18px;
    }

    .cta-heading {
        font-size: 12px !important;
        white-space: normal;
    }
}