/* ===================================
   Forragens São Caetano — Main CSS
   =================================== */

:root {
    --green-dark:  #1F3D2B;
    --green:       #2E6B3A;
    --green-light: #86efac;
    --gold:        #D4A373;
    --gold-dark:   #c49363;
    --cream:       #F4F1EA;
    --text:        #1a1a1a;
    --text-muted:  #4A4A4A;
    --white:       #ffffff;
    --radius:      10px;
    --shadow:      0 10px 30px rgba(31,61,43,.10);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--text);
    background: var(--white);
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a  { text-decoration: none; color: inherit; }

/* ─── Buttons ─── */
.btn-primary {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    background: var(--gold); color: var(--green-dark);
    padding: 14px 28px; border-radius: var(--radius);
    font-weight: 700; font-size: 16px; border: none; cursor: pointer;
    transition: background .2s, transform .2s, box-shadow .2s;
}
.btn-primary:hover { background: var(--gold-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(212,163,115,.35); }

.btn-secondary {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    background: transparent; color: var(--white);
    padding: 13px 28px; border-radius: var(--radius);
    font-weight: 600; font-size: 16px; border: 2px solid rgba(255,255,255,.5); cursor: pointer;
    transition: background .2s, border-color .2s;
}
.btn-secondary:hover { background: rgba(255,255,255,.1); border-color: var(--white); }

.btn-green {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    background: var(--green); color: var(--white);
    padding: 13px 28px; border-radius: var(--radius);
    font-weight: 700; font-size: 15px; border: none; cursor: pointer;
    transition: background .2s, transform .2s;
    width: 100%;
}
.btn-green:hover { background: var(--green-dark); transform: translateY(-1px); }

/* ─── Header ─── */
#header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding: 16px 24px;
    display: flex; align-items: center; justify-content: space-between;
    transition: background .3s, box-shadow .3s;
}
#header.scrolled {
    background: rgba(31,61,43,.97);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,.3);
}
.header-logo { display: flex; align-items: center; gap: 12px; }
.header-logo img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.header-logo span { color: var(--white); font-weight: 700; font-size: 16px; }
.header-nav { display: flex; align-items: center; gap: 24px; }
.header-nav a { color: rgba(255,255,255,.85); font-size: 14px; font-weight: 500; transition: color .2s; }
.header-nav a:hover { color: var(--white); }
.header-nav .btn-cta {
    background: var(--gold); color: var(--green-dark);
    padding: 8px 18px; border-radius: 8px; font-weight: 700; font-size: 14px;
    transition: background .2s;
}
.header-nav .btn-cta:hover { background: var(--gold-dark); }

@media (max-width: 640px) {
    .header-nav .nav-links { display: none; }
}

/* ─── Hero ─── */
#hero {
    position: relative; min-height: 92vh;
    display: flex; align-items: center;
    background: url('../img/hero-bg.jpg') center/cover no-repeat;
    background-color: var(--green-dark);
}
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(105deg, rgba(31,61,43,.92) 0%, rgba(31,61,43,.65) 55%, transparent 100%);
}
.hero-content { position: relative; z-index: 1; max-width: 700px; padding: 0 24px; margin: 0 auto; width: 100%; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 10px;
    background: rgba(255,255,255,.12); backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 99px; padding: 8px 16px; margin-bottom: 28px;
}
.hero-badge img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.hero-badge span { color: rgba(255,255,255,.9); font-size: 14px; font-weight: 500; }
#hero h1 { font-size: clamp(36px, 6vw, 68px); line-height: 1.1; color: var(--white); margin-bottom: 20px; font-weight: 800; }
#hero p  { font-size: 18px; color: rgba(255,255,255,.88); margin-bottom: 36px; line-height: 1.6; max-width: 520px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 32px; margin-top: 48px; padding-top: 32px; border-top: 1px solid rgba(255,255,255,.2); flex-wrap: wrap; }
.hero-stats .stat-value { font-size: 28px; font-weight: 800; color: var(--white); }
.hero-stats .stat-label { font-size: 13px; color: rgba(255,255,255,.65); margin-top: 2px; }

/* ─── Sections ─── */
.section { padding: 80px 24px; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-tag { display: inline-block; color: var(--green); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; }
.section-header h2 { font-size: clamp(28px, 4vw, 44px); color: var(--green-dark); font-weight: 800; margin-bottom: 14px; line-height: 1.2; }
.section-header p { color: var(--text-muted); font-size: 17px; max-width: 580px; margin: 0 auto; line-height: 1.6; }

/* ─── Products ─── */
#produtos { background: var(--cream); }
.products-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.product-card {
    background: var(--white); border-radius: 16px; overflow: hidden;
    box-shadow: var(--shadow); transition: transform .3s, box-shadow .3s;
}
.product-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(31,61,43,.15); }
.product-card-img { position: relative; height: 220px; overflow: hidden; }
.product-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.product-card:hover .product-card-img img { transform: scale(1.07); }
.product-badge { position: absolute; top: 14px; left: 14px; background: var(--green); color: var(--white); font-size: 11px; font-weight: 700; text-transform: uppercase; padding: 4px 12px; border-radius: 99px; letter-spacing: .5px; }
.product-card-body { padding: 24px; }
.product-card-body h3 { font-size: 22px; font-weight: 800; color: var(--green-dark); margin-bottom: 4px; }
.product-subtitle { color: var(--green); font-size: 13px; font-weight: 600; margin-bottom: 10px; }
.product-card-body p { color: var(--text-muted); font-size: 14px; line-height: 1.6; margin-bottom: 16px; }
.product-benefits { list-style: none; margin-bottom: 20px; display: flex; flex-direction: column; gap: 7px; }
.product-benefits li { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--text-muted); }
.product-benefits li::before { content: '✓'; color: var(--green); font-weight: 700; flex-shrink: 0; margin-top: 1px; }
.product-price { border-top: 1px solid var(--cream); padding-top: 16px; margin-bottom: 16px; }
.product-price .price-main { font-size: 26px; font-weight: 800; color: var(--green-dark); }
.product-price .price-unit { font-size: 14px; color: var(--text-muted); }
.product-price .price-bulk { font-size: 12px; color: var(--green); margin-top: 4px; font-weight: 600; }

/* ─── Como Funciona ─── */
#como-funciona { background: var(--white); }
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }
.step-card { text-align: center; }
.step-icon { width: 72px; height: 72px; background: var(--cream); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; font-size: 30px; }
.step-card h3 { font-size: 17px; font-weight: 700; color: var(--green-dark); margin-bottom: 8px; }
.step-card p { color: var(--text-muted); font-size: 14px; line-height: 1.6; }
.step-num { display: inline-block; width: 24px; height: 24px; background: var(--green); color: var(--white); border-radius: 50%; font-size: 12px; font-weight: 700; line-height: 24px; text-align: center; margin-bottom: 12px; }

/* ─── Diferenciais ─── */
#diferenciais { background: var(--green-dark); }
#diferenciais .section-header h2 { color: var(--white); }
#diferenciais .section-tag { color: var(--green-light); }
#diferenciais .section-header p { color: rgba(255,255,255,.7); }
.diff-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px; }
.diff-card { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); border-radius: 14px; padding: 28px 24px; }
.diff-card .icon { font-size: 32px; margin-bottom: 14px; }
.diff-card h3 { color: var(--white); font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.diff-card p { color: rgba(255,255,255,.65); font-size: 13px; line-height: 1.6; }

/* ─── Depoimentos ─── */
#depoimentos { background: var(--cream); }
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.review-card { background: var(--white); border-radius: 14px; padding: 28px; box-shadow: var(--shadow); }
.review-stars { color: #f59e0b; font-size: 18px; margin-bottom: 14px; }
.review-text { color: var(--text-muted); font-size: 15px; line-height: 1.7; margin-bottom: 18px; font-style: italic; }
.reviewer { display: flex; align-items: center; gap: 12px; }
.reviewer-avatar { width: 44px; height: 44px; background: var(--green); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--white); font-weight: 700; font-size: 16px; flex-shrink: 0; }
.reviewer-name { font-weight: 700; font-size: 14px; color: var(--green-dark); }
.reviewer-role { font-size: 12px; color: var(--text-muted); }

/* ─── CTA Final ─── */
#cta-final { background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%); text-align: center; }
#cta-final h2 { color: var(--white); font-size: clamp(26px,4vw,42px); font-weight: 800; margin-bottom: 14px; }
#cta-final p  { color: rgba(255,255,255,.8); font-size: 17px; margin-bottom: 32px; }

/* ─── Footer ─── */
#footer { background: #0f1f15; color: rgba(255,255,255,.65); padding: 48px 24px 24px; }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand h3 { color: var(--white); font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.footer-brand p { font-size: 13px; line-height: 1.7; }
.footer-col h4 { color: var(--white); font-size: 14px; font-weight: 700; margin-bottom: 14px; }
.footer-col a { display: block; font-size: 13px; color: rgba(255,255,255,.6); margin-bottom: 8px; transition: color .2s; }
.footer-col a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; text-align: center; font-size: 12px; color: rgba(255,255,255,.4); }
@media(max-width:640px) { .footer-grid { grid-template-columns: 1fr; } }

/* ─── WhatsApp Button ─── */
#whatsapp-btn {
    position: fixed; bottom: 24px; right: 24px; z-index: 200;
    width: 58px; height: 58px; background: #25d366; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 20px rgba(37,211,102,.4); cursor: pointer;
    transition: transform .2s, box-shadow .2s; text-decoration: none;
}
#whatsapp-btn:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,.5); }
#whatsapp-btn svg { width: 30px; height: 30px; fill: var(--white); }

/* ─── Modal ─── */
.modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,.55);
    display: flex; align-items: center; justify-content: center;
    z-index: 300; padding: 16px;
    opacity: 0; visibility: hidden; transition: all .25s;
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal {
    background: var(--white); border-radius: 20px; width: 100%; max-width: 540px;
    max-height: 90vh; overflow-y: auto; position: relative;
    transform: translateY(20px); transition: transform .25s;
}
.modal-overlay.active .modal { transform: translateY(0); }
.modal-header { padding: 28px 28px 0; display: flex; justify-content: space-between; align-items: flex-start; }
.modal-header h2 { font-size: 22px; font-weight: 800; color: var(--green-dark); }
.modal-close { background: none; border: none; font-size: 22px; cursor: pointer; color: var(--text-muted); padding: 0; line-height: 1; }
.modal-body { padding: 20px 28px 28px; }
.modal-section { margin-bottom: 20px; }
.modal-section h3 { font-size: 14px; font-weight: 700; color: var(--green-dark); margin-bottom: 12px; text-transform: uppercase; letter-spacing: .5px; }
.form-row { display: grid; gap: 14px; margin-bottom: 14px; }
.form-row.cols-2 { grid-template-columns: 1fr 1fr; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: #374151; margin-bottom: 5px; }
.form-group input, .form-group select {
    width: 100%; padding: 10px 14px;
    border: 1.5px solid #d1d5db; border-radius: 8px;
    font-size: 14px; outline: none; transition: border .2s; color: var(--text);
    background: var(--white);
}
.form-group input:focus, .form-group select:focus { border-color: var(--green); }
.form-error { color: #dc2626; font-size: 12px; margin-top: 4px; display: none; }
.form-group.has-error input, .form-group.has-error select { border-color: #dc2626; }
.form-group.has-error .form-error { display: block; }

/* Quantity Selector */
.qty-selector { display: flex; align-items: center; gap: 12px; }
.qty-btn { width: 36px; height: 36px; border: 1.5px solid #d1d5db; background: var(--white); border-radius: 8px; cursor: pointer; font-size: 18px; display: flex; align-items: center; justify-content: center; color: var(--green-dark); transition: background .2s; }
.qty-btn:hover { background: var(--cream); }
.qty-display { font-size: 18px; font-weight: 700; min-width: 36px; text-align: center; color: var(--green-dark); }

/* Payment methods */
.payment-methods { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 16px; }
.pay-method { border: 2px solid #d1d5db; border-radius: 10px; padding: 12px 8px; text-align: center; cursor: pointer; transition: all .2s; }
.pay-method:hover { border-color: var(--green); }
.pay-method.selected { border-color: var(--green); background: #f0fdf4; }
.pay-method .icon { font-size: 22px; margin-bottom: 4px; }
.pay-method .label { font-size: 11px; font-weight: 700; color: var(--green-dark); }
.pay-method .desc  { font-size: 10px; color: var(--text-muted); }

/* Order summary */
.order-summary { background: var(--cream); border-radius: 10px; padding: 16px; margin-bottom: 20px; }
.summary-row { display: flex; justify-content: space-between; font-size: 14px; color: var(--text-muted); margin-bottom: 6px; }
.summary-row.total { font-weight: 800; color: var(--green-dark); font-size: 18px; border-top: 1px solid #d1d5db; padding-top: 10px; margin-top: 8px; }
.discount-badge { background: #dcfce7; color: #16a34a; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 99px; }

/* Payment result */
.payment-result { text-align: center; padding: 8px 0; }
.payment-result .result-icon { font-size: 56px; margin-bottom: 12px; }
.payment-result h3 { font-size: 20px; font-weight: 800; color: var(--green-dark); margin-bottom: 8px; }
.payment-result p  { color: var(--text-muted); font-size: 14px; margin-bottom: 20px; }
.pix-box { background: var(--cream); border-radius: 12px; padding: 20px; margin: 16px 0; }
.pix-box img { margin: 0 auto 14px; max-width: 200px; }
.pix-code { background: var(--white); border: 1px solid #d1d5db; border-radius: 8px; padding: 12px; font-size: 11px; word-break: break-all; color: var(--text-muted); margin-bottom: 10px; }
.copy-pix-btn { width: 100%; padding: 11px; background: var(--green); color: var(--white); border: none; border-radius: 8px; font-size: 14px; font-weight: 700; cursor: pointer; transition: background .2s; }
.copy-pix-btn:hover { background: var(--green-dark); }
.boleto-btn { display: block; width: 100%; padding: 12px; background: #3b82f6; color: var(--white); text-align: center; border-radius: 8px; font-weight: 700; font-size: 14px; margin-bottom: 10px; transition: background .2s; }
.boleto-btn:hover { background: #2563eb; }
.spinner { display: inline-block; width: 22px; height: 22px; border: 3px solid rgba(255,255,255,.3); border-top-color: var(--white); border-radius: 50%; animation: spin .7s linear infinite; margin-right: 8px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Install notice ─── */
.install-notice { background: #fef9c3; border: 1px solid #fbbf24; padding: 12px 20px; text-align: center; font-size: 13px; color: #92400e; }

/* ─── Responsive ─── */
@media (max-width: 768px) {
    .section { padding: 56px 16px; }
    .hero-btns { flex-direction: column; }
    .products-grid { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: 1fr 1fr; }
    .diff-grid { grid-template-columns: 1fr; }
    .reviews-grid { grid-template-columns: 1fr; }
    .form-row.cols-2 { grid-template-columns: 1fr; }
    .payment-methods { grid-template-columns: repeat(3,1fr); }
    .modal-header { padding: 20px 20px 0; }
    .modal-body { padding: 16px 20px 24px; }
}
