/*
 * Flock Theme — hardware.css
 * Prefixo: hw-
 * Usado em: template-hardware.php e template-parts/home/hardware.php
 */

/* ── HERO (idêntico a .ct-hero) ────────────────────────────── */
.hw-hero {
    background: #30493a;
    padding: 120px 5% 72px;
    position: relative;
    overflow: hidden;
}
.hw-hero::before {
    content: '';
    position: absolute; top: -200px; right: -200px;
    width: 600px; height: 600px; border-radius: 50%;
    background: rgba(74,155,111,0.08);
    pointer-events: none;
}
.hw-hero__inner {
    max-width: 860px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.hw-hero__title {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    color: #fff;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 16px;
    max-width: 640px;
}
.hw-hero__sub {
    font-size: 1.05rem;
    color: rgba(255,255,255,.7);
    max-width: 560px;
    line-height: 1.7;
    margin-bottom: 52px;
}

/* ── PRODUTOS ───────────────────────────────────────────────── */
.hw-products {
    background: #fff;
    padding: 80px 0;
}
.hw-products__inner {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Cabeçalho da secção */
.hw-products__header {
    margin-bottom: 48px;
}
.hw-products__label {
    display: inline-block;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 999px;
    background: #e8f5e9;
    color: #2d6b4a;
    margin-bottom: 18px;
}
.hw-products__title {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 700;
    color: #1a3d1f;
    margin-bottom: 14px;
    line-height: 1.15;
}
.hw-products__sub {
    font-size: 1.05rem;
    color: var(--ink-mid);
    max-width: 580px;
    line-height: 1.75;
}

/* Tabs */
.hw-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 40px;
    border-bottom: 2px solid #e8f5e9;
    padding-bottom: 0;
}
.hw-tab {
    padding: 12px 24px;
    border-radius: 8px 8px 0 0;
    font-size: .9rem;
    font-weight: 600;
    color: var(--ink-light);
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    transition: color .2s, background .2s, border-color .2s;
}
.hw-tab:hover {
    color: #2d6b4a;
    background:#e1e4cb;
}
.hw-tab.is-active {
    color: #2d6b4a;
    border-bottom-color: #e1e4cb;
    background: #e1e4cb;
}

/* Panels */
.hw-panel {
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}
.hw-panel.is-active {
    display: grid;
}

/* Imagem */
.hw-panel__img {
    border-radius: 16px;
    background-color: #f8f7f400;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;

}
.hw-panel__photo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.hw-panel__placeholder {
    font-size: 3.5rem;
    color: #e1e4cb;
}

/* Corpo do painel */
.hw-panel__title {
    font-size: 1.7rem;
    font-weight: 700;
    color: #1a3d1f;
    margin-bottom: 14px;
}
.hw-panel__desc {
    color: var(--ink-mid);
    line-height: 1.75;
    margin-bottom: 20px;
}
.hw-panel__specs {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.hw-spec {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: .9rem;
    color: var(--ink);
}
.hw-spec__check {
    color: #2d6b4a;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}

/* ── RFID ───────────────────────────────────────────────────── */
.hw-rfid {
    background: var(--white, #fff);
    padding: 72px 0;
}
.hw-rfid__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}
.hw-rfid__header {
    text-align: center;
    margin-bottom: 48px;
}
.hw-rfid__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}
.hw-rfid__card {
    background: var(--cream);
    border-radius: 16px;
    padding: 36px 32px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}
.hw-rfid__card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.hw-rfid__card-title span {
    font-size: 1.4rem;
    line-height: 1;
}
.hw-rfid__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}
.hw-rfid__item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: .93rem;
    color: var(--ink-mid);
    line-height: 1.5;
}
.hw-rfid__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green-fresh);
    flex-shrink: 0;
    margin-top: 5px;
}
.hw-rfid__badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    background: #fef3e2;
    color: #7a5c2a;
    font-size: .75rem;
    font-weight: 700;
    margin-top: 4px;
}

/* ── COMO FUNCIONA ──────────────────────────────────────────── */
.hw-how {
    background: var(--cream, #f8f7f4);
    padding: 80px 0;
}
.hw-how__inner {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 40px;
}
.hw-how__header {
    text-align: center;
    margin-bottom: 56px;
}
.hw-how__steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}
.hw-step__icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}
.hw-step__icon {
    width: 32px;
    height: 32px;
    stroke: var(--green-mid, #2d6b4a);
    stroke-width: 1.75;
}
.hw-step__img {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
}
.hw-step__photo {
    width: 64px;
    height: 64px;
    object-fit: contain;
}
.hw-step__num {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #946296;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}
.hw-step__title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a3d1f;
    margin-bottom: 12px;
}
.hw-step__desc {
    font-size: .95rem;
    color: var(--ink-mid, #3d4a38);
    line-height: 1.7;
    max-width: 300px;
    margin: 0 auto;
}

/* ── HOMEPAGE STRIP ─────────────────────────────────────────── */
.hw-home-section {
    background: var(--white);
    padding: 80px 0;
}
.hw-home-section .hw-products__inner {
    padding: 0 40px;
}
.hw-home-section .section-label,
.hw-home-section .section-title,
.hw-home-section .section-sub {
    text-align: center;
}
.hw-home-section .section-sub {
    margin-left: auto;
    margin-right: auto;
}

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .hw-panel.is-active {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .hw-rfid__grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 900px) {
    .hw-how__steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
}
@media (max-width: 768px) {
    .hw-how__steps {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .hw-hero {
        padding: 60px 0 40px;
    }
    .hw-hero__inner,
    .hw-rfid__inner,
    .hw-how__inner {
        padding: 0 20px;
    }
    .hw-products__inner {
        padding: 0;
    }
    .hw-rfid__card {
        padding: 28px 20px;
    }

    /* ── Slider mobile ── */
    .hw-tabs { display: none; }

    .hw-products,
    .hw-home-section {
        background: #e1e4cb;
    }

    .hw-slider {
        position: relative;
        overflow: hidden;
    }

    .hw-panel {
        display: flex !important;
        flex-direction: column;
        gap: 24px;
        padding: 0 20px 8px;
        box-sizing: border-box;
        position: absolute;
        top: 0; left: 0;
        width: 100%;
        opacity: 0;
        pointer-events: none;
        transform: translateX(40px);
        transition: opacity .35s ease, transform .35s ease;
    }
    .hw-panel.is-active {
        position: relative;
        opacity: 1;
        pointer-events: auto;
        transform: translateX(0);
    }
    .hw-panel.is-leaving {
        position: absolute;
        opacity: 0;
        transform: translateX(-40px);
        pointer-events: none;
    }

    /* Dots — estilo igual ao slider de destaques */
    .hw-slider-dots {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        padding: 28px 0 12px;
    }
    .hw-slider-dot {
        width: 8px; height: 8px;
        border-radius: 20px;
        background: var(--border, rgba(45,106,53,.15));
        border: none;
        padding: 0;
        cursor: pointer;
        flex-shrink: 0;
        position: relative;
        overflow: hidden;
        transition: background .3s, width .3s;
    }
    .hw-slider-dot.is-active {
        background: var(--green-mid, #2d6b4a);
        width: 28px;
    }
}
