/* =========================================
   PRODUCT PAGE — Soares de Sousa
   Ficheiro: assets/css/product.css
   Descrição: Estilos da ficha individual de produto.
   Inclui hero, benefícios, setores, especificações,
   funcionalidades repetíveis, CTA, FAQ, produtos
   relacionados e responsividade.
   ========================================= */

.product-hero {
    padding: 64px 0 56px;
    background: #f5f7fa;
    border-bottom: 1px solid var(--line);
}

.product-hero-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    align-items: center;
    gap: 44px;
}

.product-hero-tag {
    display: inline-flex;
    margin-bottom: 16px;
    padding: 6px 12px;
    border-radius: 5px;
    background: #eaf1f8;
    color: #123a63;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.product-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    line-height: 1.08;
    color: #16212b;
}

.product-hero-subtitle {
    margin: 0 0 26px;
    font-size: 18px;
    line-height: 1.55;
    color: #57646f;
}

.product-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.product-hero-media {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: 0 14px 34px rgba(15, 35, 55, .08);
}

.product-hero-media img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: contain;
}

/* =========================================
   CONTENT SECTIONS
   ========================================= */

.product-section {
    padding: 64px 0;
}

.product-section-alt {
    background: #f8fafc;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.product-intro {
    max-width: 760px;
}

.product-intro h2 {
    margin: 0 0 16px;
    font-size: clamp(1.7rem, 3vw, 2.2rem);
    color: #16212b;
}

.product-intro p {
    margin: 0;
    font-size: 17px;
    line-height: 1.7;
    color: #57646f;
}

.section-heading {
    max-width: 720px;
    margin-bottom: 30px;
}

.section-heading h2 {
    margin: 0 0 12px;
    font-size: clamp(1.7rem, 3vw, 2.2rem);
    color: #16212b;
}

.section-heading p {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: #57646f;
}

/* =========================================
   PRODUCT FEATURES
   Secções repetíveis: imagem + texto
   ========================================= */

.product-feature {
    padding: 56px 0;
}

.product-feature-alt {
    background: #f8fafc;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.product-feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
}

.product-feature-media {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    min-height: 300px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
}

.product-feature-media img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 380px;
    object-fit: contain;
}

.product-feature-content {
    max-width: 520px;
}

.product-feature-tag {
    display: inline-flex;
    margin-bottom: 14px;
    padding: 5px 10px;
    border-radius: 5px;
    background: #eaf1f8;
    color: #123a63;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.product-feature-content h2 {
    margin: 0 0 14px;
    font-size: clamp(1.5rem, 3vw, 2rem);
    line-height: 1.2;
    color: #16212b;
}

.product-feature-content p {
    margin: 0 0 18px;
    font-size: 16px;
    line-height: 1.65;
    color: #57646f;
}

.product-feature-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.product-feature-list li {
    position: relative;
    padding-left: 26px;
    font-size: 15px;
    line-height: 1.5;
    color: #22303c;
}

.product-feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 4px;
    background: #eaf1f8;
    color: #123a63;
    font-size: 11px;
    font-weight: 700;
}

/* Alternar o lado da imagem */

.product-feature-reverse .product-feature-media {
    order: 2;
}

.product-feature-reverse .product-feature-content {
    order: 1;
}

/* =========================================
   BENEFITS
   ========================================= */

.product-benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.product-benefit {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 18px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 15px;
    line-height: 1.5;
    color: #22303c;
}

.product-benefit-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    background: #eaf1f8;
    color: #123a63;
}

/* =========================================
   USE CASES
   ========================================= */

.product-use-cases {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.product-use-case {
    padding: 18px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    color: #22303c;
}

/* =========================================
   DETAILS AND CTA
   ========================================= */

.product-details-grid {
    display: grid;
    grid-template-columns: 1.3fr .7fr;
    align-items: start;
    gap: 34px;
}

.product-details h2 {
    margin: 0 0 20px;
    font-size: clamp(1.7rem, 3vw, 2.2rem);
    color: #16212b;
}

.product-specs {
    display: grid;
    gap: 10px;
}

.product-spec {
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 16px;
    padding: 14px 16px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.product-spec-label {
    font-size: 13px;
    font-weight: 700;
    color: #5a6572;
}

.product-spec-value {
    font-size: 15px;
    line-height: 1.5;
    color: #22303c;
}

.product-cta-card {
    padding: 28px;
    background: #123a63;
    border-radius: 12px;
    color: #ffffff;
}

.product-cta-card h3 {
    margin: 0 0 12px;
    font-size: 24px;
    line-height: 1.25;
}

.product-cta-card p {
    margin: 0 0 22px;
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, .82);
}

/* =========================================
   FAQ
   ========================================= */

.product-faq {
    display: grid;
    gap: 12px;
    max-width: 860px;
}

.product-faq-item {
    padding: 20px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.product-faq-item h3 {
    margin: 0 0 10px;
    font-size: 17px;
    color: #16212b;
}

.product-faq-item p {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: #57646f;
}

/* =========================================
   RELATED PRODUCTS
   ========================================= */

.product-related {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.product-related-card {
    display: block;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.product-related-card:hover {
    transform: translateY(-3px);
    border-color: #c9d6e2;
    box-shadow: 0 12px 28px rgba(15, 35, 55, .09);
}

.product-related-media {
    min-height: 170px;
    background: #eef2f6;
    overflow: hidden;
}

.product-related-media img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 170px;
    object-fit: cover;
}

.product-related-body {
    padding: 18px;
}

.product-related-body h3 {
    margin: 0 0 8px;
    font-size: 19px;
    color: #16212b;
}

.product-related-body p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #57646f;
}

/* =========================================
   RESPONSIVE
   ========================================= */

@media (max-width: 980px) {
    .product-hero-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .product-hero-media {
        order: -1;
    }

    .product-hero-media img {
        max-height: 320px;
    }

    .product-feature-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .product-feature-media {
        order: -1 !important;
        min-height: 220px;
    }

    .product-feature-content {
        order: 2 !important;
        max-width: none;
    }

    .product-feature-media img {
        max-height: 300px;
    }

    .product-benefits,
    .product-use-cases,
    .product-related {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-details-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 640px) {
    .product-hero {
        padding: 44px 0 36px;
    }

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

    .product-section {
        padding: 44px 0;
    }

    .product-feature {
        padding: 40px 0;
    }

    .product-feature-media {
        min-height: 200px;
    }

    .product-feature-media img {
        max-height: 260px;
    }

    .product-benefits,
    .product-use-cases,
    .product-related {
        grid-template-columns: 1fr;
    }

    .product-spec {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .product-cta-card {
        padding: 24px 20px;
    }

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