/* ================================================= */
/* MANUALS PAGE STYLES                               */
/* Shared header / footer / base styles come from    */
/* product.css — this file only styles the hero and  */
/* the manual cards.                                 */
/* ================================================= */

.manuals-page {
    background-color: #f1f5f9;
    /* same light grey as the products page */
    min-height: calc(100vh - var(--header-height) - 120px);
    /* keeps the footer at the bottom even with few manuals */
}

/* ---------- Hero banner ---------- */
.manuals-hero {
    background: linear-gradient(135deg, var(--slate-dark) 0%, var(--dark-slate) 60%, #27415f 100%);
    color: var(--text-light);
    padding: 90px 20px 80px;
    text-align: center;
}

.manuals-hero-inner {
    max-width: 760px;
    margin: 0 auto;
}

.manuals-hero-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    margin-bottom: 24px;
}

.manuals-hero-icon i {
    font-size: 1.8rem;
    color: var(--primary-blue);
}

.manuals-hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--white);
}

.manuals-hero p {
    font-size: 1.15rem;
    color: var(--text-slate);
    line-height: 1.7;
}

/* ---------- Cards grid ---------- */
.manuals-grid-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px 80px;
}

.manuals-grid {
    display: grid;
    /* min(290px, 100%) = cards can shrink below 290px instead of
       overflowing the screen on very narrow phones */
    grid-template-columns: repeat(auto-fill, minmax(min(290px, 100%), 1fr));
    gap: 30px;
}

.manuals-status {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    padding: 40px 0;
}

.manual-card {
    background: var(--white);
    border-radius: 12px;
    padding: 35px 30px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
    border: 1px solid rgba(15, 23, 42, 0.05);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.manual-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.12);
}

.manual-icon {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    background: #fdecea;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
}

.manual-icon i {
    font-size: 2rem;
    color: var(--primary-red);
}

.manual-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark-slate);
    margin-bottom: 8px;
    line-height: 1.4;
}

.manual-meta {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.manual-actions {
    display: flex;
    gap: 12px;
    margin-top: auto;
    flex-wrap: wrap;
    justify-content: center;
}

.manual-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
    font-family: inherit;
}

/* "View" — solid dark button (opens the PDF in a new tab) */
.manual-view {
    background: var(--dark-slate);
    color: var(--white);
}

.manual-view:hover {
    background: var(--primary-blue);
    transform: scale(1.05);
}

/* "Download" — outlined button (saves the PDF file) */
.manual-download {
    background: transparent;
    color: var(--dark-slate);
    border: 2px solid var(--dark-slate);
    padding: 10px 22px;
    /* 10px + 2px border = same height as the solid button */
}

.manual-download:hover {
    background: var(--dark-slate);
    color: var(--white);
    transform: scale(1.05);
}

/* Long file names should wrap instead of pushing the card wider */
.manual-name {
    overflow-wrap: anywhere;
}

/* ---------- Responsive ---------- */

/* Tablets */
@media (max-width: 992px) {
    .manuals-hero {
        padding: 72px 20px 64px;
    }

    .manuals-hero h1 {
        font-size: 2.4rem;
    }

    .manuals-grid-wrap {
        padding: 48px 20px 64px;
    }

    .manuals-grid {
        gap: 24px;
    }
}

/* Phones */
@media (max-width: 768px) {
    .manuals-hero {
        padding: 56px 16px 48px;
    }

    .manuals-hero-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 18px;
    }

    .manuals-hero-icon i {
        font-size: 1.5rem;
    }

    .manuals-hero h1 {
        font-size: 2rem;
        margin-bottom: 12px;
    }

    .manuals-hero p {
        font-size: 1rem;
    }

    .manuals-grid-wrap {
        padding: 36px 16px 56px;
    }

    .manuals-grid {
        gap: 18px;
    }

    .manual-card {
        padding: 28px 22px;
    }

    .manual-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 18px;
    }

    .manual-icon i {
        font-size: 1.7rem;
    }

    .manual-name {
        font-size: 1.1rem;
    }

    .manual-meta {
        margin-bottom: 20px;
    }

    /* Buttons span the card and split it 50/50 — bigger tap targets,
       and they stack automatically when the card gets too narrow. */
    .manual-actions {
        width: 100%;
        gap: 10px;
    }

    .manual-btn {
        flex: 1 1 calc(50% - 5px);
        min-width: 120px;
        justify-content: center;
    }
}

/* Small phones */
@media (max-width: 480px) {
    .manuals-hero {
        padding: 44px 14px 40px;
    }

    .manuals-hero h1 {
        font-size: 1.7rem;
    }

    .manuals-hero p {
        font-size: 0.95rem;
    }

    .manuals-grid-wrap {
        padding: 28px 12px 48px;
    }

    /* One card per row, comfortable to read and tap */
    .manuals-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .manual-card {
        padding: 24px 18px;
    }

    /* Stack the two buttons full-width */
    .manual-actions {
        flex-direction: column;
    }

    .manual-btn {
        width: 100%;
        flex: 1 1 auto;
    }

    .manual-view:hover,
    .manual-download:hover {
        transform: none;
        /* scale() looks jumpy on full-width touch buttons */
    }
}

/* ============================================================ */
/* PRIVACY POLICY PAGE (privacy.html reuses the manuals hero)   */
/* ============================================================ */
.privacy-wrap {
    max-width: 860px;
    margin: 0 auto;
    padding: 56px 20px 80px;
}

.privacy-card {
    background: var(--white);
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 6px 24px rgba(15, 23, 42, 0.06);
    padding: 44px 48px;
}

.privacy-card h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark-slate);
    margin: 30px 0 10px;
}

.privacy-card h2:first-child {
    margin-top: 0;
}

.privacy-card p {
    color: var(--text-muted);
    line-height: 1.75;
    font-size: 0.98rem;
}

.privacy-updated {
    margin-top: 34px;
    padding-top: 18px;
    border-top: 1px solid #eef2f7;
    font-size: 0.88rem !important;
}

@media (max-width: 768px) {
    .privacy-wrap {
        padding: 40px 16px 60px;
    }

    .privacy-card {
        padding: 28px 22px;
    }
}
