/* ============================================
   PREVIEW - Renderização dinâmica dos templates
   ============================================ */

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

:root {
    --primary: #667eea;
    --secondary: #764ba2;
    --dark: #1a1a2e;
    --text: #333;
    --muted: #666;
    --light: #f5f7fa;
    --white: #fff;
    --radius: 10px;
    --shadow: 0 4px 20px rgba(0,0,0,.08);
}

body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; color: var(--text); line-height: 1.6; }

/* ---- BARRA DE PREVIEW ---- */
.preview-bar {
    background: #1a1a2e;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    height: 48px;
    font-size: 13px;
    position: sticky;
    top: 0;
    z-index: 9999;
}
.preview-bar strong { color: #667eea; }
.preview-bar-actions { display: flex; gap: 12px; align-items: center; }
.preview-bar a { color: #aaa; text-decoration: none; font-size: 12px; padding: 5px 14px; border-radius: 4px; border: 1px solid #333; transition: all .2s; }
.preview-bar a:hover { border-color: #667eea; color: #667eea; }
.preview-bar .btn-escolher { background: #667eea; color: #fff !important; border-color: #667eea !important; font-weight: 600; }
.preview-bar .btn-escolher:hover { background: #764ba2; border-color: #764ba2 !important; }

/* ---- SITE HEADER ---- */
.site-header {
    background: var(--white);
    box-shadow: var(--shadow);
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
    position: sticky;
    top: 48px;
    z-index: 100;
}
.site-logo { font-size: 22px; font-weight: 800; color: var(--primary); text-decoration: none; }
.site-nav { display: flex; gap: 24px; }
.site-nav a { color: var(--text); text-decoration: none; font-size: 15px; font-weight: 500; transition: color .2s; }
.site-nav a:hover, .site-nav a.active { color: var(--primary); }
.site-nav .btn-cta { background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff !important; padding: 9px 22px; border-radius: 25px; }

/* ---- HERO ---- */
.section-hero {
    min-height: 88vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, var(--dark) 0%, #0d0d2b 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.section-hero::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(102,126,234,.4), rgba(118,75,162,.4));
}
.hero-content { position: relative; z-index: 1; max-width: 700px; }
.hero-content h1 { font-size: 52px; font-weight: 800; line-height: 1.15; margin-bottom: 20px; }
.hero-content p  { font-size: 20px; opacity: .88; margin-bottom: 35px; }
.hero-actions { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }
.btn-hero-primary { background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff; padding: 16px 36px; border-radius: 35px; font-size: 16px; font-weight: 700; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.btn-hero-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(102,126,234,.4); }
.btn-hero-secondary { background: transparent; color: #fff; padding: 14px 34px; border: 2px solid rgba(255,255,255,.5); border-radius: 35px; font-size: 16px; font-weight: 600; text-decoration: none; transition: all .2s; }
.btn-hero-secondary:hover { border-color: #fff; background: rgba(255,255,255,.1); }

/* ---- SEÇÕES GENÉRICAS ---- */
.site-section { padding: 80px 40px; }
.site-section.bg-light { background: var(--light); }
.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 { font-size: 34px; font-weight: 800; color: var(--dark); margin-bottom: 12px; }
.section-title p  { font-size: 17px; color: var(--muted); max-width: 520px; margin: 0 auto; }

/* ---- SOBRE ---- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; max-width: 1000px; margin: 0 auto; }
.about-text h2 { font-size: 32px; font-weight: 800; margin-bottom: 16px; color: var(--dark); }
.about-text p  { font-size: 16px; color: var(--muted); line-height: 1.8; margin-bottom: 28px; }
.about-stats { display: flex; gap: 30px; }
.stat-item { text-align: center; }
.stat-item .number { font-size: 36px; font-weight: 800; color: var(--primary); display: block; }
.stat-item .label  { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.about-image img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.about-image-placeholder { background: linear-gradient(135deg, var(--primary), var(--secondary)); height: 350px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 80px; }

/* ---- SERVIÇOS / VANTAGENS ---- */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 25px; max-width: 1100px; margin: 0 auto; }
.card { background: var(--white); padding: 30px; border-radius: var(--radius); box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-5px); box-shadow: 0 10px 35px rgba(0,0,0,.1); }
.card-icon { font-size: 42px; margin-bottom: 16px; display: block; }
.card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; color: var(--dark); }
.card p  { font-size: 14px; color: var(--muted); line-height: 1.7; }
.card .price { font-size: 20px; font-weight: 800; color: var(--primary); margin-top: 14px; }

/* ---- NÚMEROS / STATS ---- */
.stats-bar { background: linear-gradient(135deg, var(--primary), var(--secondary)); padding: 50px 40px; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 30px; max-width: 900px; margin: 0 auto; text-align: center; }
.stats-grid .s-number { font-size: 44px; font-weight: 800; color: #fff; display: block; }
.stats-grid .s-label  { font-size: 14px; color: rgba(255,255,255,.8); text-transform: uppercase; letter-spacing: 1px; }

/* ---- PORTFÓLIO / GALERIA ---- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; max-width: 1100px; margin: 0 auto; }
.gallery-item { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); position: relative; }
.gallery-item img { width: 100%; height: 200px; object-fit: cover; display: block; transition: transform .3s; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-placeholder { height: 200px; background: linear-gradient(135deg, #1a1a2e, #16213e); display: flex; align-items: center; justify-content: center; font-size: 50px; }
.gallery-caption { padding: 12px 15px; background: #fff; }
.gallery-caption strong { font-size: 14px; font-weight: 700; display: block; }
.gallery-caption span  { font-size: 12px; color: var(--primary); font-weight: 600; }

/* ---- PRODUTOS ---- */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 25px; max-width: 1100px; margin: 0 auto; }
.product-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: transform .25s; }
.product-card:hover { transform: translateY(-5px); }
.product-img { height: 160px; background: var(--light); display: flex; align-items: center; justify-content: center; font-size: 48px; }
.product-body { padding: 18px; }
.product-body h4  { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.product-body p   { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.product-price { font-size: 20px; font-weight: 800; color: var(--primary); }

/* ---- DEPOIMENTOS ---- */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 25px; max-width: 1100px; margin: 0 auto; }
.testimonial-card { background: #fff; padding: 28px; border-radius: var(--radius); box-shadow: var(--shadow); border-top: 4px solid var(--primary); }
.testimonial-stars { color: #f59e0b; font-size: 18px; margin-bottom: 14px; }
.testimonial-text { font-size: 15px; color: var(--muted); line-height: 1.7; margin-bottom: 20px; font-style: italic; }
.testimonial-author { font-weight: 700; font-size: 14px; color: var(--dark); }
.testimonial-role   { font-size: 12px; color: var(--muted); }

/* ---- CONTATO ---- */
.contact-section { background: var(--dark); color: #fff; }
.contact-section .section-title h2 { color: #fff; }
.contact-section .section-title p  { color: rgba(255,255,255,.7); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; max-width: 900px; margin: 0 auto; }
.contact-info h3 { font-size: 22px; font-weight: 700; margin-bottom: 24px; }
.contact-item { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 20px; }
.contact-item .icon { font-size: 22px; flex-shrink: 0; margin-top: 2px; }
.contact-item div strong { display: block; font-size: 14px; color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 2px; }
.contact-item div span  { font-size: 16px; color: #fff; }
.contact-form-side h3 { font-size: 22px; font-weight: 700; margin-bottom: 24px; }
.contact-form-placeholder { background: rgba(255,255,255,.07); border-radius: var(--radius); padding: 30px; text-align: center; }
.contact-form-placeholder p { color: rgba(255,255,255,.5); font-size: 14px; }
.btn-whatsapp { display: inline-flex; align-items: center; gap: 10px; background: #25d366; color: #fff; padding: 14px 28px; border-radius: 35px; font-size: 15px; font-weight: 700; text-decoration: none; margin-top: 20px; transition: transform .2s, box-shadow .2s; }
.btn-whatsapp:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(37,211,102,.35); }

/* ---- FOOTER ---- */
.site-footer { background: #0d0d1a; color: #666; text-align: center; padding: 28px 20px; font-size: 13px; }
.site-footer a { color: var(--primary); text-decoration: none; }

/* ---- RESPONSIVO ---- */
@media (max-width: 768px) {
    .site-header { padding: 0 20px; }
    .site-nav { display: none; }
    .hero-content h1 { font-size: 32px; }
    .about-grid  { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .site-section { padding: 50px 20px; }
}
