/* Softvision — design system
   Substitui bootstrap.min.css / base.css / elements.css / responsive.css do template antigo.
   Paleta e tipografia mantêm a identidade já usada no site (azul-marinho + dourado). */

:root {
    --color-navy: #073763;
    --color-navy-dark: #052945;
    --color-gold: #ffd700;
    --color-gold-dark: #e6c200;
    --color-text: #2b2b2b;
    --color-text-muted: #6b6b6b;
    --color-bg: #ffffff;
    --color-bg-soft: #f4f6f8;
    --color-border: #e4e7eb;
    --font-heading: 'Montserrat', -apple-system, Segoe UI, Arial, sans-serif;
    --font-body: 'Open Sans', -apple-system, Segoe UI, Arial, sans-serif;
    --radius: 10px;
    --shadow: 0 10px 30px rgba(7, 55, 99, .08);
    --container-max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body { overflow-x: hidden; max-width: 100%; }

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-navy);
    line-height: 1.25;
    margin: 0 0 16px;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.section { padding: 80px 0; }
.section-tight { padding: 48px 0; }
.section-soft { background: var(--color-bg-soft); }
.section-navy { background: linear-gradient(160deg, var(--color-navy) 0%, var(--color-navy-dark) 100%); color: #fff; }
.section-navy h2, .section-navy h3 { color: #fff; }

.eyebrow {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--color-gold-dark);
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(28px, 4vw, 40px);
    text-align: center;
    margin-bottom: 16px;
    position: relative;
    padding-bottom: 18px;
}
.section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 56px;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--color-gold-dark), var(--color-gold));
}

.section-subtitle {
    max-width: 680px;
    margin: 0 auto 48px;
    text-align: center;
    color: var(--color-text-muted);
    font-size: 17px;
}

.section-navy .section-subtitle { color: rgba(255,255,255,.85); }

/* ---------- Botões ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 30px;
    border-radius: 6px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: .02em;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--color-gold); color: var(--color-navy-dark); }
.btn-gold:hover { background: var(--color-gold-dark); box-shadow: 0 8px 20px rgba(255,215,0,.35); }
.btn-outline { background: transparent; border-color: rgba(255,255,255,.6); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.1); }

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 500;
    background: var(--color-navy);
    box-shadow: 0 2px 12px rgba(0,0,0,0);
    transition: box-shadow .25s ease, background-color .25s ease;
}
.site-header.is-scrolled {
    background: rgba(7, 55, 99, .96);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 24px rgba(0,0,0,.18);
}

.header-topline {
    background: rgba(0,0,0,.15);
    font-size: 13px;
}
.header-topline .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 6px;
    padding-bottom: 6px;
}
.header-topline a { color: rgba(255,255,255,.8); }
.header-topline a:hover { color: #fff; }
.header-topline .social { display: flex; gap: 14px; }

.header-main .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    padding-bottom: 12px;
}

.brand img { height: 38px; width: auto; }

.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid rgba(255,255,255,.4);
    border-radius: 6px;
    width: 42px;
    height: 38px;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav-menu a {
    position: relative;
    color: #fff;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    opacity: .85;
}
.nav-menu a:hover { opacity: 1; }
.nav-menu a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: -6px;
    height: 2px;
    background: var(--color-gold);
    transition: right .25s ease;
}
.nav-menu a:hover::after { right: 0; }
@media (max-width: 860px) { .nav-menu a::after { display: none; } }

@media (max-width: 860px) {
    .nav-toggle { display: block; }
    .nav-menu {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        background: var(--color-navy-dark);
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 8px 24px 20px;
    }
    .nav-menu.is-open { display: flex; }
    .nav-menu li { width: 100%; }
    .nav-menu a { display: block; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
    .header-topline .container { flex-direction: column; gap: 4px; align-items: flex-start; padding: 8px 24px; }
}

/* ---------- Hero / carrossel (CSS+JS puro, sem jQuery/owl) ---------- */
.hero-slider { position: relative; overflow: hidden; }
.hero-track { display: flex; transition: transform .6s ease; }
.hero-slide {
    position: relative;
    flex: 0 0 100%;
    width: 100%;
    min-height: 480px;
    display: flex;
    align-items: center;
    color: #fff;
    background-size: 108%;
    background-position: center;
    animation: kenburns 18s ease-in-out infinite alternate;
}
.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(5,41,69,.88), rgba(5,41,69,.45));
}
@keyframes kenburns {
    0% { background-size: 105%; }
    100% { background-size: 122%; }
}
@media (prefers-reduced-motion: reduce) { .hero-slide { animation: none; } }
.hero-slide .container { position: relative; z-index: 1; }
.hero-content { max-width: 560px; }
.hero-content h1 {
    color: #fff;
    font-size: clamp(30px, 4.5vw, 46px);
    margin-bottom: 14px;
}
.hero-content p { font-size: 18px; color: rgba(255,255,255,.9); margin-bottom: 28px; }

.slider-dots { text-align: center; padding: 14px 0; position: absolute; bottom: 10px; left: 0; right: 0; z-index: 2; }
.slider-dots button { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.4); margin: 0 5px; border: none; cursor: pointer; padding: 0; transition: transform .2s ease, background-color .2s ease; }
.slider-dots button.active { background: var(--color-gold); transform: scale(1.2); }

/* ---------- Grid de produtos ---------- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}
@media (max-width: 980px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .product-grid { grid-template-columns: 1fr; } }

.product-card {
    position: relative;
    text-align: center;
    padding: 36px 20px 32px;
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    overflow: hidden;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.product-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-navy), var(--color-gold));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s ease;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.product-card:hover::before { transform: scaleX(1); }
.product-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-soft);
    transition: background-color .22s ease, transform .22s ease;
}
.product-card:hover .product-icon { background: var(--color-navy); transform: scale(1.06); }
.product-icon img { width: 38px; height: 38px; transition: filter .22s ease; }
.product-card:hover .product-icon img { filter: brightness(0) invert(1); }
.product-card h3 { font-size: 19px; margin-bottom: 8px; }
.product-card p { color: var(--color-text-muted); font-size: 14px; margin: 0; }

/* ---------- Diferenciais ---------- */
.diff-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    text-align: center;
}
.diff-grid--3col { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .diff-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .diff-grid { grid-template-columns: 1fr; } }
.diff-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: var(--color-navy);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
}
.diff-item h3 { font-size: 17px; margin-bottom: 6px; }
.diff-item p { color: var(--color-text-muted); font-size: 14px; margin: 0; }

/* ---------- Quem somos ---------- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }
.about-grid img { border-radius: var(--radius); }
.about-grid p { color: rgba(255,255,255,.88); margin-bottom: 16px; }

/* ---------- Depoimentos ---------- */
.testimonial-slider { position: relative; overflow: hidden; max-width: 720px; margin: 0 auto; padding-bottom: 40px; }
.testimonial-track { display: flex; transition: transform .6s ease; }
.testimonial-card { flex: 0 0 100%; width: 100%; text-align: center; }
.testimonial-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
    border: 4px solid var(--color-bg-soft);
}
.testimonial-quote { position: relative; font-size: 18px; color: var(--color-text); margin-bottom: 16px; }
.testimonial-quote::before {
    content: "\201C";
    display: block;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 64px;
    line-height: 1;
    color: var(--color-gold);
    opacity: .6;
    margin-bottom: -8px;
}
.testimonial-author { font-family: var(--font-heading); font-weight: 700; color: var(--color-navy); font-size: 14px; }

/* ---------- Seção "Deseja fazer um orçamento?" ---------- */
.orcamento-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}
.orcamento-title { font-size: 34px; }
.orcamento-text { color: rgba(255,255,255,.85); font-size: 17px; }
@media (max-width: 860px) {
    .orcamento-grid { grid-template-columns: 1fr; gap: 32px; }
    .orcamento-title { font-size: 28px; }
}

/* ---------- Formulário de orçamento ---------- */
.orcamento-form {
    background: #fff;
    border-radius: var(--radius);
    padding: 32px;
    text-align: left;
    box-shadow: var(--shadow);
    color: var(--color-text);
}
@media (max-width: 480px) {
    .orcamento-form { padding: 22px 18px; }
}
.orcamento-form .titulo-form { color: var(--color-navy); font-size: 22px; margin-bottom: 6px; }
.orcamento-form .sub-titulo { color: var(--color-text-muted); font-size: 14px; margin-bottom: 20px; }
.orcamento-form input[type="text"],
.orcamento-form input[type="email"],
.orcamento-form select,
.orcamento-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 16px; /* >=16px evita zoom automático no iOS Safari ao focar */
    margin-bottom: 14px;
    background: #fff;
    color: var(--color-text);
}
.orcamento-form textarea { resize: vertical; min-height: 90px; }
.orcamento-form .label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 8px; color: var(--color-navy); }
.orcamento-form .option-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}
.orcamento-form .chip {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    border: 1px solid var(--color-border);
    border-radius: 30px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 400;
    color: var(--color-text);
    background: #fff;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .1s ease;
    user-select: none;
}
.orcamento-form .chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.orcamento-form .chip:has(input:checked) {
    background: var(--color-navy);
    border-color: var(--color-navy);
    color: #fff;
}
.orcamento-form .chip:has(input:focus-visible) { outline: 2px solid var(--color-gold-dark); outline-offset: 2px; }
.orcamento-form .chip:active { transform: scale(.97); }
.btn-enviar {
    width: 100%;
    padding: 14px;
    background: var(--color-gold);
    color: var(--color-navy-dark);
    border: none;
    border-radius: 6px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: background-color .15s ease;
}
.btn-enviar:hover { background: var(--color-gold-dark); }
.btn-enviar:disabled { opacity: .6; cursor: not-allowed; }
.return_form .success_form { background: #e6f7ec; color: #1a7a3c; padding: 12px 14px; border-radius: 6px; font-size: 14px; }
.return_form .error_form { background: #fdecec; color: #b3261e; padding: 12px 14px; border-radius: 6px; font-size: 14px; }

/* ---------- Cartões de contato ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
@media (max-width: 980px) { .contact-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
}
.contact-card .icon { font-size: 30px; color: var(--color-navy); margin-bottom: 14px; }
.contact-card h3 { font-size: 16px; margin-bottom: 8px; }
.contact-card p, .contact-card a { color: var(--color-text-muted); font-size: 14px; line-height: 1.6; }

/* ---------- Footer ---------- */
.site-footer { background: linear-gradient(160deg, var(--color-navy) 0%, var(--color-navy-dark) 100%); color: rgba(255,255,255,.85); padding: 48px 0 28px; }
.site-footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.footer-links a { color: var(--color-gold); font-size: 13px; }
.footer-social { display: flex; gap: 16px; }
.footer-social a { font-size: 16px; color: #fff; opacity: .8; }
.footer-social a:hover { opacity: 1; }
.footer-copy { font-size: 13px; color: rgba(255,255,255,.6); }

/* ---------- Map ---------- */
.map-frame { border: 0; width: 100%; height: 420px; display: block; }

/* ---------- Feature block (páginas internas) ---------- */
.feature-hero { text-align: center; padding: 56px 0 24px; }
.feature-hero .section-title { margin-bottom: 8px; }
.feature-hero .subtitle { font-size: 19px; color: var(--color-navy); font-weight: 600; margin-bottom: 10px; }
.feature-hero .lead { max-width: 760px; margin: 0 auto; color: var(--color-text-muted); font-size: 15px; }

.feature-block { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: center; }
.feature-block.reverse { grid-template-columns: 7fr 5fr; }
.feature-block.reverse .feature-media { order: 2; }
@media (max-width: 860px) {
    .feature-block, .feature-block.reverse { grid-template-columns: 1fr; }
    .feature-block.reverse .feature-media { order: 0; }
}
.feature-media img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- Painel visual com foto temática (substitui as imagens genéricas antigas) ---------- */
.visual-panel {
    position: relative;
    z-index: 0;
    min-height: 380px;
    border-radius: var(--radius);
    background-color: var(--color-navy-dark);
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.visual-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image: inherit;
    background-size: cover;
    background-position: center;
    transition: transform .5s ease;
}
.visual-panel:hover::after { transform: scale(1.07); }
.visual-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(165deg, rgba(7,55,99,.85) 0%, rgba(4,28,48,.55) 55%, rgba(4,28,48,.32) 100%);
}
@media (prefers-reduced-motion: reduce) { .visual-panel::after { transition: none; } }
.visual-chip {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 68%;
    background: rgba(255,255,255,.97);
    color: var(--color-navy-dark);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 13px;
    line-height: 1.3;
    padding: 10px 14px;
    border-radius: 30px;
    box-shadow: 0 10px 24px rgba(0,0,0,.28);
}
.visual-chip i { color: #1a9e52; font-size: 13px; flex: 0 0 auto; }
@media (max-width: 560px) {
    .visual-panel { min-height: 280px; }
    .visual-chip { font-size: 11px; padding: 7px 11px; max-width: 62%; }
}

/* ---------- Contadores animados ---------- */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 32px 24px;
    text-align: center;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,.15);
}
.stat-item .stat-number {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: clamp(32px, 4vw, 44px);
    color: var(--color-gold);
    line-height: 1;
    margin-bottom: 8px;
}
.stat-item .stat-label { font-size: 13px; color: rgba(255,255,255,.8); letter-spacing: .02em; }
.feature-copy h2 { font-size: 24px; margin-bottom: 16px; }
.feature-copy h3 { font-size: 18px; margin: 22px 0 10px; }
.checklist { list-style: none; margin: 0 0 18px; padding: 0; }
.checklist li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 10px;
    font-size: 15px;
    color: var(--color-text);
    opacity: 0;
    transform: translateX(-12px);
    transition: opacity .45s ease, transform .45s ease;
}
.checklist li.is-visible { opacity: 1; transform: translateX(0); }
@media (prefers-reduced-motion: reduce) {
    .checklist li { opacity: 1; transform: none; transition: none; }
}
.checklist li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--color-gold-dark);
    font-weight: 700;
}
.section-navy .checklist li { color: rgba(255,255,255,.92); }
.section-navy .checklist li::before { color: var(--color-gold); }

.two-col-list { columns: 2; column-gap: 40px; }
@media (max-width: 640px) { .two-col-list { columns: 1; } }

/* ---------- Animação de entrada ao rolar ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Flutuantes ---------- */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25D366;
    box-shadow: 0 8px 20px rgba(0,0,0,.25);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: float 2.4s infinite ease-in-out;
    transition: bottom .25s ease;
}
.whatsapp-float img { width: 32px; height: 32px; }
@media (min-width: 768px) { .whatsapp-float { width: 64px; height: 64px; } .whatsapp-float img { width: 34px; height: 34px; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.btn-orcamento-float {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 1000;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--color-gold);
    color: var(--color-navy-dark);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 13px;
    padding: 12px 18px;
    border-radius: 30px;
    box-shadow: 0 8px 20px rgba(0,0,0,.2);
    transition: transform .15s ease, box-shadow .15s ease, bottom .25s ease;
}
.btn-orcamento-float:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.28); }
.btn-orcamento-float .icon { font-size: 18px; line-height: 1; }

/* No mobile vira um botão circular (par do WhatsApp) só com o ícone,
   pra não brigar por espaço com o banner de cookies/rodapé. */
@media (max-width: 640px) {
    .btn-orcamento-float {
        bottom: 20px;
        left: 20px;
        width: 56px;
        height: 56px;
        padding: 0;
        justify-content: center;
        border-radius: 50%;
    }
    .btn-orcamento-float .icon { font-size: 24px; }
    .btn-orcamento-float .label { display: none; }
}

#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-navy-dark);
    color: #fff;
    padding: 16px;
    text-align: center;
    font-size: 14px;
    z-index: 2000;
}
#cookie-banner a { color: var(--color-gold); text-decoration: underline; }

/* Enquanto o banner de cookies está visível, sobe os botões flutuantes
   pra eles não ficarem escondidos atrás dele (o banner tem z-index maior). */
body.has-cookie-banner .whatsapp-float,
body.has-cookie-banner .btn-orcamento-float {
    bottom: 84px;
}
@media (max-width: 600px) {
    body.has-cookie-banner .whatsapp-float,
    body.has-cookie-banner .btn-orcamento-float {
        bottom: 112px;
    }
}
#cookie-banner button {
    margin-left: 12px;
    padding: 8px 18px;
    border: none;
    border-radius: 6px;
    background: var(--color-gold);
    color: var(--color-navy-dark);
    font-weight: 700;
    cursor: pointer;
}
@media (max-width: 600px) {
    #cookie-banner { font-size: 13px; }
    #cookie-banner button { display: block; margin: 10px auto 0; }
}
