/* ========================================================
   PRODUTO - single-produto.php
   Estilos baseados no page-products do tema nova-rota
   ======================================================== */

/* ===== SHARED TOKENS ===== */
:root {
    --sp-dark:    #22453A;
    --sp-accent:  #91C961;
    --sp-green:   #31B465;
    --sp-light:   #E6ECE7;
    --sp-text:    #464646;
    --sp-border:  #D2D2D2;
}

/* ===== 1. INTRO ===== */
.sp-intro {
    position: relative;
    overflow: hidden;
}

.sp-intro__container {
    display: flex;
    align-items: center;
    position: relative;
    min-height: 680px;
    height: calc(100vh - 100px);
}

.sp-intro__text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 41.6666%;
    padding: 60px 0;
    position: relative;
    z-index: 2;
}

.sp-intro__badge {
    display: inline-block;
    padding: 8px;
    border-radius: 4px;
    background: var(--sp-light);
    color: var(--sp-dark);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.01em;
    margin-bottom: 24px;
}

.sp-intro__title {
    font-size: 40px;
    font-weight: 700;
    color: var(--sp-dark);
    line-height: 1.15;
    margin-bottom: 30px;
}

.sp-intro__editor {
    font-size: 16px;
    line-height: 1.48;
    color: var(--sp-text);
    letter-spacing: 0.01em;
    margin-bottom: 24px;
}

.sp-intro__editor p { margin: 0 0 12px; }
.sp-intro__editor p:last-child { margin-bottom: 0; }

.sp-intro__scroll {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--sp-light);
    color: var(--sp-dark);
    text-decoration: none;
    margin-top: 16px;
    transition: background 0.2s, transform 0.2s;
    flex-shrink: 0;
}

.sp-intro__scroll:hover {
    background: #cfe0d0;
    transform: translateY(4px);
}

.sp-intro__scroll .material-symbols-outlined {
    font-size: 32px;
}

.sp-intro__media {
    position: absolute;
    top: 0;
    left: calc(50% + 12px);
    width: calc(50vw - 12px);
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.sp-intro__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* ===== 2. TÓPICOS / BENEFÍCIOS ===== */
.sp-topics {
    background: var(--sp-dark);
    padding: 130px 0 160px;
    position: relative;
}

.sp-topics__title {
    font-size: 32px;
    font-weight: 700;
    color: #8FC862;
    margin-bottom: 80px;
    text-align: center;
    letter-spacing: -0.01em;
}

.sp-topics__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.sp-topics__card-wrap {
    width: calc(50% - 12px);
}

.sp-topics__card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 100%;
}

.sp-topics__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    margin-bottom: 32px;
    flex-shrink: 0;
}

.sp-topics__icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.sp-topics__icon .material-symbols-outlined {
    font-size: 36px;
    color: var(--sp-accent);
}

.sp-topics__card-title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
    line-height: 1.2;
}

.sp-topics__card-body {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.72);
    flex: 1;
    margin-bottom: 32px;
}

.sp-topics__card-body p { margin: 0 0 12px; }
.sp-topics__card-body p:last-child { margin-bottom: 0; }

.sp-topics__card-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--sp-accent);
    text-decoration: none;
    letter-spacing: 0.01em;
    transition: gap 0.2s;
}

.sp-topics__card-cta:hover {
    gap: 10px;
    color: var(--sp-accent);
}

.sp-topics__card-cta .material-symbols-outlined {
    font-size: 18px;
}

/* Divisor entre cards */
.sp-topics__card-wrap:nth-child(odd) .sp-topics__card {
    padding-right: 40px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.sp-topics__card-wrap:not(:nth-last-child(-n+2)) .sp-topics__card {
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== 3. PLANOS (nr-plans) ===== */

.nr-plans {
    position: relative;
    overflow: hidden;
}

.nr-plans__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% - 120px);
    background: linear-gradient(90deg, #3E6528 0%, #345320 50%, #1F3412 100%);
    z-index: 1;
    overflow: hidden;
}

.nr-plans__lines {
    position: absolute;
    top: -20px;
    left: 0;
    right: 0;
    bottom: -20px;
    background: url('/wp-content/themes/rotaagro/assets/img/lines-bg.svg');
    background-size: auto 100%;
    background-repeat: no-repeat;
    background-position: right center;
}

.nr-plans__container {
    position: relative;
    z-index: 2;
}

.nr-plans__texts {
    padding: 80px 0 48px;
    display: flex;
    align-items: flex-end;
    gap: 32px;
}

.nr-plans__title {
    font-size: 32px;
    font-weight: 700;
    color: #FAFCFB;
    flex: 0 0 41.6666%;
    margin: 0;
    padding-right: 24px;
}

.nr-plans__intro {
    flex: 1;
    font-size: 16px;
    font-weight: 500;
    color: #FAFCFB;
    line-height: 1.48;
    letter-spacing: 0.01em;
}

.nr-plans__options {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 50px;
}

.nr-plans__card-wrap {
    flex: 1 1 0;
    display: flex;
}

.nr-plans__card {
    width: 100%;
    border: 1px solid #D2D2D2;
    padding: 32px;
    background: #FFFFFF;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.6s ease;
}

.nr-plans__card:hover {
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.18);
}

.nr-plans__card-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-bottom: 1px solid #D2D2D2;
}

.nr-plans__badge {
    font-size: 15px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 4px;
    background: #E6ECE7;
    color: #1E3D28;
    letter-spacing: 0.01em;
    display: inline-block;
    margin-bottom: 0;
}

.nr-plans__range {
    font-size: 48px;
    font-weight: 700;
    color: #1E3D28;
    text-align: center;
    width: 100%;
    padding-top: 24px;
    line-height: 1.2;
}

.nr-plans__vidas-label {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-align: center;
    text-transform: uppercase;
    color: #35A85A;
    margin-top: 4px;
}

.nr-plans__card-body {
    padding: 32px 0 40px;
    flex-grow: 1;
    font-size: 14px;
    font-weight: 400;
    color: #464646;
    line-height: 1.6;
}

.nr-plans__card-body p { margin: 0; }

.nr-plans__features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.nr-plans__feature {
    padding-left: 14px;
    border-left: 3px solid #35A85A;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nr-plans__feature-title {
    font-size: 14px;
    font-weight: 700;
    color: #1E3D28;
    line-height: 1.3;
}

.nr-plans__feature-desc {
    font-size: 13px;
    font-weight: 400;
    color: #464646;
    line-height: 1.5;
    margin: 0;
}

.nr-plans__feature-sub {
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nr-plans__feature-sub li strong {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #1E3D28;
    line-height: 1.3;
}

.nr-plans__feature-sub li p {
    font-size: 13px;
    font-weight: 400;
    color: #464646;
    line-height: 1.5;
    margin: 3px 0 0;
}

.nr-plans__cta {
    display: block;
    border: 1px solid #1E3D28;
    padding: 10px 32px;
    border-radius: 4px;
    background: #FFFFFF;
    font-size: 16px;
    font-weight: 600;
    color: #1E3D28;
    text-align: center;
    letter-spacing: 0.01em;
    text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease;
}

.nr-plans__cta:hover {
    background: #1E3D28;
    color: #FAFCFB;
}

/* ===== 4. FORMULÁRIO / CTA ===== */
.sp-form {
    position: relative;
    padding: 72px 0;
    overflow: hidden;
}

.sp-form__bg {
    position: absolute;
    z-index: 1;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, rgb(230,239,237) 0%, rgb(233,247,233) 40%, rgb(250,252,250) 100%);
    overflow: hidden;
}

.sp-form__lines {
    position: absolute;
    top: -20px; left: 0; right: 0; bottom: -20px;
    opacity: 0.6;
    background: url('/wp-content/themes/rotaagro/assets/img/lines-bg.svg');
    background-size: auto 100%;
    background-repeat: no-repeat;
    background-position: right center;
}

.sp-form__container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 32px;
}

.sp-form__text {
    flex: none;
    width: 100%;
    max-width: 680px;
}

.sp-form__badge {
    display: inline-block;
    padding: 8px;
    border-radius: 4px;
    background: var(--sp-light);
    color: var(--sp-dark);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.01em;
    margin-bottom: 24px;
}

.sp-form__title {
    font-size: 32px;
    font-weight: 700;
    color: var(--sp-dark);
    line-height: 1.2;
    margin-bottom: 24px;
}

.sp-form__editor {
    font-size: 16px;
    line-height: 1.48;
    color: var(--sp-text);
    letter-spacing: 0.01em;
}

.sp-form__editor p { margin: 0 0 12px; }
.sp-form__editor p:last-child { margin-bottom: 0; }

.sp-form__cta-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.sp-form__cta2 {
    font-size: 14px;
    font-weight: 600;
    color: var(--sp-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
    letter-spacing: 0.01em;
    transition: color 0.2s;
}

.sp-form__cta2:hover {
    color: var(--sp-green);
}

/* ===== RESPONSIVO ===== */

/* 1200px */
@media (max-width: 1200px) {
    .sp-intro__title { font-size: 34px; }
    .sp-form__title  { font-size: 28px; }
}

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

    /* intro */
    .sp-intro__container {
        height: auto;
        min-height: 0;
        flex-direction: column;
        padding-bottom: 0;
    }

    .sp-intro__text {
        width: 100%;
        padding: 60px 0 40px;
    }

    .sp-intro__media {
        position: relative;
        left: auto;
        width: 100%;
        height: 340px;
    }

    .sp-intro__scroll { display: none; }

    /* topics */
    .sp-topics { padding: 80px 0 80px; }

    .sp-topics__card-wrap { width: 100%; }

    .sp-topics__card-wrap:nth-child(odd) .sp-topics__card {
        padding-right: 0;
        border-right: none;
    }

    .sp-topics__card-wrap:not(:last-child) .sp-topics__card {
        padding-bottom: 40px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    /* plans */
    .nr-plans__texts {
        flex-direction: column;
        align-items: flex-start;
        padding: 60px 0 40px;
        gap: 16px;
    }

    .nr-plans__title {
        flex: none;
        padding-right: 0;
    }

    .nr-plans__options {
        flex-wrap: wrap;
        margin-bottom: 80px;
    }

    .nr-plans__card-wrap {
        flex: 0 0 100%;
    }

    /* form */
    .sp-form { padding: 56px 0; }

    .sp-form__container {
        align-items: flex-start;
        text-align: left;
        gap: 32px;
    }

    .sp-form__text { width: 100%; max-width: none; }

    .sp-form__cta-wrap { align-items: flex-start; }
}

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

    .sp-intro__title { font-size: 28px; }

    .sp-topics { padding: 60px 0 60px; }
    .sp-topics__title { font-size: 24px; margin-bottom: 48px; }

    .nr-plans__range { font-size: 40px; }

    .sp-form__title { font-size: 24px; }
}
