/* =============================================
   AMPERTECH – PÁGINA DE DETALHE COMPARTILHADA
   Complementa style.css sem duplicar variáveis
============================================= */

/* HERO DA PÁGINA */
.page-hero {
    background: linear-gradient(rgba(11,60,93,.92), rgba(11,60,93,.88)),
                url('../img/usina_solo.jpg') center/cover no-repeat;
    color: #fff;
    padding: 90px 0 70px;
    text-align: center;
}
.page-hero .breadcrumb {
    font-size: .85rem;
    color: var(--color-secondary);
    margin-bottom: 14px;
    letter-spacing: .04em;
}
.page-hero .breadcrumb a { color: var(--color-secondary); text-decoration: none; }
.page-hero .breadcrumb a:hover { color: #fff; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3.2rem); margin-bottom: 14px; }
.page-hero h1 span { color: var(--color-primary); }
.page-hero p { max-width: 620px; margin: 0 auto 28px; color: rgba(255,255,255,.82); font-size: 1.05rem; line-height: 1.75; }

.tag-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.2);
    color: #fff;
    padding: 6px 16px; border-radius: 20px;
    font-size: .8rem; font-weight: 600; letter-spacing: .06em;
    margin-bottom: 18px;
}
.tag-badge .dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--color-primary);
    display: inline-block;
}

/* STATS BAR */
.stats-bar {
    background: var(--color-dark);
    border-bottom: 3px solid var(--color-primary);
}
.stats-bar .container {
    display: grid;
    gap: 0;
}
.stats-bar.cols-4 .container { grid-template-columns: repeat(4, 1fr); }
.stats-bar.cols-5 .container { grid-template-columns: repeat(5, 1fr); }
.stat-item {
    padding: 1.6rem 1.5rem;
    text-align: center;
    border-right: 1px solid rgba(255,255,255,.08);
    transition: background .2s;
}
.stat-item:last-child { border-right: none; }
.stat-item:hover { background: rgba(255,255,255,.04); }
.stat-num {
    display: block;
    font-size: 1.9rem; font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 4px;
}
.stat-label { font-size: .75rem; color: rgba(255,255,255,.55); }

/* SEÇÕES INTERNAS */
.detail-section { padding: 80px 0; }
.detail-section.bg-gray { background: #f8f9fb; }
.detail-section.bg-dark { background: var(--color-dark); color: #fff; }
.detail-section.bg-dark .section-tag { color: var(--color-primary); }
.detail-section.bg-dark h2 { color: #fff; }
.detail-section.bg-dark .section-desc { color: rgba(255,255,255,.6); }

.section-tag {
    font-size: .72rem; font-weight: 700;
    letter-spacing: .12em; text-transform: uppercase;
    color: var(--color-primary); margin-bottom: .6rem;
}

h2.section-title {
    font-size: clamp(1.7rem, 3vw, 2.5rem);
    color: var(--color-dark); margin-bottom: .75rem; line-height: 1.2;
}
h2.section-title span { color: var(--color-primary); }

.section-intro {
    max-width: 560px; color: var(--text-muted);
    font-size: 1rem; line-height: 1.75; margin-bottom: 3rem;
}

/* HOW IT WORKS – STEPS */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}
.step-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 2rem 1.75rem;
    position: relative;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.step-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: rgba(242,140,40,.35);
}
.detail-section.bg-dark .step-card {
    background: rgba(255,255,255,.05);
    border-color: rgba(255,255,255,.08);
}
.detail-section.bg-dark .step-card:hover {
    background: rgba(255,255,255,.09);
    border-color: rgba(242,140,40,.4);
}
.step-number {
    font-size: 2.8rem; font-weight: 900;
    color: rgba(11, 60, 93, 0.785);
    line-height: 1; margin-bottom: .75rem;
    font-family: 'Arial Black', Arial, sans-serif;
}
.step-icon-wrap {
    width: 44px; height: 44px; border-radius: 10px;
    background: rgba(242,140,40,.1);
    border: 1px solid rgba(242,140,40,.25);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1rem;
}
.step-icon-wrap svg {
    width: 22px; height: 22px;
    stroke: var(--color-primary); fill: none;
    stroke-width: 1.6; stroke-linecap: round;
}
.step-card h3 { font-size: .95rem; font-weight: 600; margin-bottom: .4rem; color: var(--color-dark); }
.detail-section.bg-dark .step-card h3 { color: #fff; }
.step-card p { font-size: .85rem; color: var(--text-muted); line-height: 1.65; }
.detail-section.bg-dark .step-card p { color: rgba(255,255,255,.5); }

/* BENEFITS GRID */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}
.benefit-card {
    background: #fff; border: 1px solid #eee;
    border-radius: 12px; padding: 1.5rem;
    display: flex; gap: 1rem; align-items: flex-start;
    transition: transform .3s, box-shadow .3s, border-color .3s;
}
.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(242,140,40,.3);
}
.benefit-icon {
    width: 38px; height: 38px; flex-shrink: 0;
    border-radius: 8px;
    background: rgba(242,140,40,.1);
    border: 1px solid rgba(242,140,40,.2);
    display: flex; align-items: center; justify-content: center;
}
.benefit-icon svg { width: 18px; height: 18px; stroke: var(--color-primary); fill: none; stroke-width: 1.6; stroke-linecap: round; }
.benefit-card h4 { font-size: .9rem; font-weight: 600; margin-bottom: .3rem; color: var(--color-dark); }
.benefit-card p { font-size: .82rem; color: var(--text-muted); line-height: 1.6; }
.benefit-tag {
    font-size: .68rem; font-weight: 600;
    padding: 2px 8px; border-radius: 4px;
    display: inline-block; margin-bottom: .6rem;
    background: rgba(242,140,40,.1); color: var(--color-primary);
}

/* APPLICATIONS LIST */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 16px;
}
.app-item {
    background: #fff; border: 1px solid #eee;
    border-radius: 10px; padding: 1.25rem;
    transition: transform .25s, border-color .25s;
}
.app-item:hover { transform: translateY(-3px); border-color: rgba(242,140,40,.3); }
.app-item h4 { font-size: .9rem; font-weight: 600; margin-bottom: .3rem; color: var(--color-dark); }
.app-item p { font-size: .82rem; color: var(--text-muted); line-height: 1.55; }
.app-pill {
    font-size: .68rem; font-weight: 600; padding: 2px 10px;
    border-radius: 20px; display: inline-block; margin-bottom: .65rem;
}

/* INFO BOXES */
.info-box {
    border-radius: 10px; padding: 1.25rem 1.5rem;
    font-size: .875rem; line-height: 1.65; margin-top: 2rem;
}
.info-box.green  { background: rgba(46,204,113,.07); border: 1px solid rgba(46,204,113,.25); color: #1a7a46; }
.info-box.orange { background: rgba(242,140,40,.08); border: 1px solid rgba(242,140,40,.3); color: #b5620a; }
.info-box.blue   { background: rgba(11,60,93,.06); border: 1px solid rgba(11,60,93,.2); color: var(--color-dark); }

/* COMPARE TABLE */
.compare-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}
.compare-col {
    border-radius: 12px; padding: 2rem;
    border: 1px solid #eee; background: #fff;
}
.compare-col.highlight {
    border-color: rgba(46,204,113,.35);
    background: rgba(46,204,113,.03);
}
.compare-col h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 1.25rem; }
.compare-col.highlight h3 { color: #1a7a46; }
.compare-col.muted h3 { color: var(--text-muted); }
.compare-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: .7rem 0; border-bottom: 1px solid #f0f0f0;
    font-size: .875rem;
}
.compare-row:last-child { border-bottom: none; }
.compare-row .cl { color: var(--text-muted); }
.compare-row .cv-good { color: #1a7a46; font-weight: 600; }
.compare-row .cv-bad  { color: #bbb; }
.compare-row .cv-mid  { color: var(--color-dark); font-weight: 500; }

/* ROI CARD */
.roi-card {
    background: #fff; border: 1px solid #eee;
    border-radius: 14px; overflow: hidden;
}
.roi-header {
    background: var(--color-dark); color: #fff;
    padding: 1.2rem 1.5rem;
}
.roi-header h3 { font-size: 1rem; }
.roi-body { padding: 1.5rem; }
.roi-row {
    display: flex; justify-content: space-between;
    padding: .75rem 0; border-bottom: 1px solid #f0f0f0;
    font-size: .875rem;
}
.roi-row:last-child { border-bottom: none; }
.roi-row .rl { color: var(--text-muted); }
.roi-row .rv { font-weight: 600; color: var(--color-dark); }
.roi-row .rv-green { font-weight: 600; color: #1a7a46; }
.roi-row .rv-orange { font-weight: 600; color: var(--color-primary); }

/* FINANCING CARDS */
.fin-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px;
}
.fin-card {
    background: #fff; border: 1px solid #eee;
    border-radius: 10px; padding: 1.25rem; text-align: center;
    transition: transform .25s, border-color .25s;
}
.fin-card:hover { transform: translateY(-3px); border-color: rgba(242,140,40,.3); }
.fin-card .fc-name { font-size: 1.1rem; font-weight: 700; color: var(--color-dark); display: block; margin-bottom: 4px; }
.fin-card .fc-desc { font-size: .8rem; color: var(--text-muted); line-height: 1.5; }

/* CTA INTERNA */
.inner-cta {
    background: linear-gradient(135deg, #f6f7f9, #eef1f4);
    padding: 90px 0;
    text-align: center;
    border-top: 1px solid #e5e7eb;
}
.inner-cta h2 { font-size: 2rem; color: var(--color-dark); margin-bottom: .75rem; }
.inner-cta p { max-width: 540px; margin: 0 auto 2rem; color: var(--text-muted); font-size: 1rem; line-height: 1.75; }
.inner-cta .actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* LEI BOX */
.lei-box {
    background: rgba(11,60,93,.05);
    border: 1px solid rgba(11,60,93,.15);
    border-radius: 10px; padding: 1.25rem 1.5rem;
    font-size: .875rem; color: var(--color-dark);
    line-height: 1.65; margin-top: 2rem;
}
.lei-box strong { color: var(--color-primary); }

/* SAVINGS NUMBERS ROW */
.savings-row {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; margin-top: 2rem;
}
.savings-item {
    background: #fff; border: 1px solid #eee;
    border-radius: 10px; padding: 1.25rem; text-align: center;
}
.savings-item .si-val { font-size: 1.7rem; font-weight: 700; color: var(--color-primary); display: block; }
.savings-item .si-label { font-size: .75rem; color: var(--text-muted); }

/* SCROLL REVEAL */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* RESPONSIVO */
@media (max-width: 900px) {
    .stats-bar.cols-4 .container,
    .stats-bar.cols-5 .container { grid-template-columns: repeat(2, 1fr); }
    .compare-grid { grid-template-columns: 1fr; }
    .detail-section { padding: 60px 0; }
}
@media (max-width: 576px) {
    .stats-bar.cols-4 .container,
    .stats-bar.cols-5 .container { grid-template-columns: repeat(2, 1fr); }
}