/* =====================================================================
   D'LIMA Engenharia — Landing MCMV Premium
   Design system self-contained (sem framework / sem CDN de CSS)
   Paleta: verde-escuro + dourado
===================================================================== */

:root {
    --dark:       #0F120F;
    --dark-soft:  #1A1F1A;
    --gold:       #B89B5E;
    --gold-hover: #A6884B;
    --cream:      #F9F8F6;
    --sand:       #EFEBE0;
    --text:       #2D3A2C;
    --muted:      #7C8B7A;
    --white:      #ffffff;
    --green-wa:   #25D366;
    --radius:     18px;
    --radius-lg:  28px;
    --shadow:     0 10px 30px rgba(15, 18, 15, 0.08);
    --shadow-lg:  0 24px 60px rgba(15, 18, 15, 0.18);
    --maxw:       1180px;
    --font-head:  "Montserrat", "Segoe UI", system-ui, -apple-system, sans-serif;
    --font-body:  "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--text);
    background: var(--cream);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
html { overflow-x: hidden; }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0; }
p { margin: 0; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

.gold { color: var(--gold); }
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

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

/* ---------- Botões ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font-head); font-weight: 700; font-size: 1rem;
    padding: 14px 28px; border-radius: 999px; border: 0; cursor: pointer;
    transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
    line-height: 1;
}
.btn svg { width: 18px; height: 18px; }
.btn--gold { background: var(--gold); color: var(--dark); box-shadow: 0 8px 20px rgba(184,155,94,.3); }
.btn--gold:hover { background: var(--gold-hover); transform: translateY(-2px); }
.btn--lg { padding: 18px 36px; font-size: 1.05rem; }
.btn--block { width: 100%; justify-content: center; }

/* ---------- Header ---------- */
.header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(15,18,15,.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(184,155,94,.18);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.header__logo { height: 70px; width: auto; }

/* Wordmark de texto no header */
.brand { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name {
    font-family: var(--font-head); font-weight: 800; font-size: 1.5rem;
    color: var(--cream); letter-spacing: .04em; text-transform: uppercase;
}
.brand__eng { color: var(--gold); }
.brand__tag { font-size: .72rem; color: var(--muted); margin-top: 3px; letter-spacing: .01em; }

/* ---------- Seções genéricas ---------- */
.section { padding: 72px 0; }
.section--cream { background: var(--cream); }
.section--sand  { background: var(--sand); }
.section--dark  { background: var(--dark); color: var(--cream); }
.section__head  { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.section__title { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; margin-bottom: 14px; }
.section__sub   { font-size: 1.1rem; color: var(--muted); }
.section--dark .section__sub { color: rgba(249,248,246,.7); }

.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Hero ---------- */
.hero {
    color: var(--cream);
    background-color: var(--dark);
    background-image: linear-gradient(rgba(15,18,15,.78), rgba(15,18,15,.9)), url('/static/logo-completa.jpg');
    background-size: cover; background-position: center;
    display: flex; align-items: center;
    min-height: calc(100vh - 78px);
    min-height: calc(100svh - 78px);
}
.hero__inner { width: 100%; padding: 64px 20px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); font-weight: 800; margin-bottom: 18px; }
.hero__lead { font-size: 1.15rem; color: rgba(249,248,246,.82); max-width: 540px; margin-bottom: 22px; font-weight: 300; }
.badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 9px 18px; border-radius: 999px; margin-bottom: 22px;
    background: rgba(255,255,255,.08); border: 1px solid rgba(184,155,94,.4);
    color: var(--gold); font-weight: 600; font-size: .9rem;
}
.badge svg { width: 16px; height: 16px; }
.hero__list { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 12px; }
.hero__list li { display: flex; align-items: center; gap: 12px; font-size: 1.05rem; }
.hero__list svg { width: 24px; height: 24px; color: var(--gold); flex-shrink: 0; }

/* ---------- Formulário ---------- */
.form-card {
    background: var(--white); color: var(--text);
    border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
    padding: 34px 30px; position: relative;
}
.form-card__flag {
    position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
    background: var(--green-wa); color: #053; font-weight: 700; font-size: .8rem;
    padding: 6px 18px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px;
    white-space: nowrap; box-shadow: 0 6px 16px rgba(0,0,0,.15);
}
.form-card__flag svg { width: 15px; height: 15px; }
.form-card h2 { text-align: center; font-size: 1.5rem; margin: 10px 0 4px; }
.form-card__hint { text-align: center; color: var(--muted); font-size: .9rem; margin-bottom: 22px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.field input, .field select {
    width: 100%; padding: 13px 15px; border-radius: 12px;
    border: 1px solid #d8d8d2; font-size: 1rem; font-family: var(--font-body);
    background: var(--white); transition: border .2s, box-shadow .2s;
}
.field input:focus, .field select:focus {
    outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184,155,94,.25);
}
.success {
    margin-top: 16px; padding: 16px; border-radius: 12px;
    background: #ecfdf3; border: 1px solid #abefc6; color: #067647;
    text-align: center; font-weight: 500;
}
.success svg { width: 28px; height: 28px; margin: 0 auto 4px; display: block; }
.is-hidden { display: none; }

/* ---------- Cards (diferenciais) ---------- */
.card {
    background: var(--white); border: 1px solid var(--sand);
    border-radius: var(--radius); padding: 30px 26px;
    transition: border-color .25s, transform .25s, box-shadow .25s;
}
.card:hover { border-color: var(--gold); transform: translateY(-4px); box-shadow: var(--shadow); }
.card__icon {
    width: 54px; height: 54px; border-radius: 14px; background: var(--sand);
    display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
    transition: background .25s;
}
.card__icon svg { width: 26px; height: 26px; color: var(--gold); transition: color .25s; }
.card:hover .card__icon { background: var(--gold); }
.card:hover .card__icon svg { color: var(--white); }
.card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .92rem; }

/* ---------- Passos ---------- */
.step { background: var(--white); border-radius: var(--radius); padding: 30px 24px; text-align: center; }
.step__num {
    width: 48px; height: 48px; margin: 0 auto 18px; border-radius: 50%;
    border: 2px solid var(--gold); color: var(--gold);
    font-family: var(--font-head); font-weight: 700; font-size: 1.2rem;
    display: flex; align-items: center; justify-content: center;
}
.step h3 { font-size: 1.1rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .92rem; }

/* ---------- Faixas (subsídios) ---------- */
.faixa {
    background: rgba(255,255,255,.05); border: 1px solid rgba(184,155,94,.22);
    border-radius: var(--radius); padding: 26px 22px;
}
.faixa__tag {
    display: inline-block; margin-bottom: 12px;
    background: var(--gold); color: var(--dark);
    font-family: var(--font-head); font-weight: 800; font-size: .8rem;
    letter-spacing: .08em; text-transform: uppercase;
    padding: 5px 14px; border-radius: 999px;
}
.faixa__val { font-family: var(--font-head); font-size: 1.7rem; font-weight: 800; margin: 0 0 10px; color: var(--cream); }
.faixa p { color: rgba(249,248,246,.7); font-size: .9rem; }
.center { text-align: center; }
.mt-40 { margin-top: 40px; }

/* ---------- Galeria / Modelos ---------- */
.gallery__item { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.gallery__img { width: 100%; height: 240px; object-fit: cover; }
.gallery__placeholder {
    width: 100%; height: 240px; background: var(--sand);
    display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--muted);
}
.gallery__placeholder svg { width: 40px; height: 40px; margin-bottom: 8px; }
.gallery__body { padding: 20px 22px; }
.gallery__body h3 { font-size: 1.1rem; }
.gallery__body p { color: var(--muted); font-size: .9rem; margin-top: 4px; }

/* ---------- Prova social honesta ---------- */
.trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.trust__item {
    display: inline-flex; align-items: center; gap: 10px;
    background: var(--white); border: 1px solid var(--sand); border-radius: 999px;
    padding: 14px 24px; font-weight: 600; font-size: .95rem;
}
.trust__item svg { width: 20px; height: 20px; color: var(--gold); }
.trust-note { text-align: center; color: var(--muted); margin-top: 28px; font-size: .95rem; }

/* ---------- FAQ (accordion nativo <details>) ---------- */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 14px; }
.faq__item { background: var(--white); border: 1px solid var(--sand); border-radius: var(--radius); overflow: hidden; }
.faq__item summary {
    cursor: pointer; list-style: none; padding: 20px 24px;
    font-family: var(--font-head); font-weight: 600; font-size: 1.05rem;
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; color: var(--gold); font-size: 1.5rem; line-height: 1; transition: transform .2s; }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item .faq__a { padding: 0 24px 22px; color: var(--muted); }

/* ---------- CTA final ---------- */
.cta-final { text-align: center; }
.cta-final h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; margin-bottom: 14px; }
.cta-final p { color: rgba(249,248,246,.75); font-size: 1.15rem; margin-bottom: 28px; }

/* ---------- Footer ---------- */
.footer { background: var(--dark); color: var(--muted); padding: 56px 0 32px; border-top: 1px solid rgba(184,155,94,.12); }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; align-items: start; }
.footer__logo { height: 52px; margin-bottom: 14px; }
.footer__brand {
    display: block; margin-bottom: 14px;
    font-family: var(--font-head); font-weight: 800; font-size: 1.5rem;
    color: var(--cream); text-transform: uppercase; letter-spacing: .04em;
}
.footer h4 { color: var(--cream); font-size: .95rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 16px; }
.footer a:hover { color: var(--gold); }
.footer__links { display: grid; gap: 10px; }
.social { display: flex; gap: 16px; }
.social a {
    width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.06);
    display: flex; align-items: center; justify-content: center; color: var(--cream); transition: background .2s;
}
.social a:hover { background: var(--gold); color: var(--dark); }
.social svg { width: 20px; height: 20px; }
.footer__bottom {
    border-top: 1px solid rgba(124,139,122,.2); margin-top: 40px; padding-top: 24px;
    text-align: center; font-size: .85rem; display: flex; flex-direction: column; gap: 6px;
}
.footer__bottom .tagline { color: var(--gold); font-style: italic; letter-spacing: .15em; text-transform: uppercase; font-size: .72rem; }

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
    position: fixed; bottom: 24px; right: 24px; z-index: 60;
    width: 60px; height: 60px; border-radius: 50%; background: var(--green-wa);
    display: flex; align-items: center; justify-content: center; color: var(--white);
    box-shadow: 0 12px 28px rgba(37,211,102,.45); transition: transform .2s;
}
.wa-float:hover { transform: translateY(-4px) scale(1.05); }
.wa-float svg { width: 32px; height: 32px; }

/* ---------- Página de política ---------- */
.legal { max-width: 800px; margin: 0 auto; padding: 60px 20px; }
.legal h1 { font-size: 2rem; margin-bottom: 8px; }
.legal h2 { font-size: 1.2rem; margin: 28px 0 8px; }
.legal p, .legal li { color: var(--text); }
.legal a { color: var(--gold); font-weight: 600; }
.legal .back { display: inline-block; margin-top: 32px; }

/* =====================================================================
   Responsivo
===================================================================== */
@media (max-width: 900px) {
    .grid--4 { grid-template-columns: repeat(2, 1fr); }
    .grid--3 { grid-template-columns: repeat(2, 1fr); }
    .hero__inner { grid-template-columns: 1fr; gap: 36px; }
    .footer__grid { grid-template-columns: 1fr; gap: 28px; text-align: center; }
    .social { justify-content: center; }
}
@media (max-width: 560px) {
    .section { padding: 56px 0; }
    .grid--4, .grid--3, .grid--2 { grid-template-columns: 1fr; }
    .header__inner { height: 66px; }
    .header__logo { height: 52px; }
    .brand__name { font-size: 1.15rem; }
    .brand__tag { display: none; }
    .nav-cta { display: none; }
    .hero { min-height: auto; }
    .entrega { grid-template-columns: 1fr; }
    .entrega__media { min-height: 280px; }
}

/* =====================================================================
   Seção "A entrega" (chave na mão)
===================================================================== */
.entrega {
    display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
.entrega__media {
    position: relative; min-height: 380px; border-radius: var(--radius-lg);
    overflow: hidden; box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, #1A1F1A 0%, #0F120F 60%);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; color: var(--gold); padding: 32px;
}
.entrega__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.entrega__media svg { width: 64px; height: 64px; margin-bottom: 14px; }
.entrega__media .ph-text { color: var(--muted); font-size: .95rem; max-width: 280px; }
.entrega__text h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; margin-bottom: 16px; }
.entrega__text h2 .gold { display: inline; }
.entrega__text p { color: var(--muted); font-size: 1.1rem; margin-bottom: 26px; }
.section--dark .entrega__text p { color: rgba(249,248,246,.78); }

/* =====================================================================
   Movimento / animações
===================================================================== */
@keyframes fadeUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes waPulse { 0%, 100% { box-shadow: 0 12px 28px rgba(37,211,102,.45); } 50% { box-shadow: 0 12px 28px rgba(37,211,102,.45), 0 0 0 12px rgba(37,211,102,0); } }

/* Entrada do hero (carregamento) */
.hero .badge   { animation: fadeUp .7s ease both; }
.hero h1       { animation: fadeUp .7s ease .1s both; }
.hero__lead    { animation: fadeUp .7s ease .2s both; }
.hero__list    { animation: fadeUp .7s ease .3s both; }
.hero .form-card { animation: fadeUp .7s ease .25s both; }

/* Revelação no scroll (classe .reveal adicionada via JS) */
.reveal { opacity: 0; transform: translateY(38px); transition: opacity .7s ease, transform .7s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.in { opacity: 1; transform: none; }
.grid > .reveal:nth-child(2) { transition-delay: .1s; }
.grid > .reveal:nth-child(3) { transition-delay: .2s; }
.grid > .reveal:nth-child(4) { transition-delay: .3s; }

/* Pulso suave no botão flutuante */
.wa-float { animation: waPulse 2.6s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .hero .badge, .hero h1, .hero__lead, .hero__list, .hero .form-card,
    .reveal { animation: none !important; opacity: 1 !important; transform: none !important; }
    .wa-float { animation: none; }
}

/* =====================================================================
   Polimento profissional — cor, profundidade e movimento
===================================================================== */

/* Seções claras com brilho dourado sutil (em vez de branco chapado) */
.section--cream {
    background:
        radial-gradient(1200px 520px at 88% -12%, rgba(184,155,94,.12), transparent 60%),
        radial-gradient(900px 520px at -12% 112%, rgba(184,155,94,.08), transparent 55%),
        var(--cream);
}
.section--sand {
    background:
        radial-gradient(900px 420px at 100% -10%, rgba(184,155,94,.16), transparent 55%),
        radial-gradient(700px 380px at 0% 110%, rgba(45,58,44,.05), transparent 60%),
        var(--sand);
}

/* Acento dourado sob o título da seção */
.section__head .section__title::after {
    content: ""; display: block; width: 66px; height: 3px; margin: 16px auto 0;
    background: linear-gradient(90deg, var(--gold), var(--gold-hover));
    border-radius: 3px;
}

/* Ícones dos cards com gradiente dourado (mais cor) */
.card__icon { background: linear-gradient(135deg, rgba(184,155,94,.20), rgba(184,155,94,.34)); }
.card:hover .card__icon { background: linear-gradient(135deg, var(--gold), var(--gold-hover)); }

/* Barra dourada que cresce no topo do card ao passar o mouse */
.card { position: relative; overflow: hidden; }
.card::before {
    content: ""; position: absolute; top: 0; left: 0; height: 3px; width: 0;
    background: linear-gradient(90deg, var(--gold), var(--gold-hover));
    transition: width .35s ease;
}
.card:hover::before { width: 100%; }

/* Número dos passos: círculo dourado preenchido */
.step__num {
    background: linear-gradient(135deg, var(--gold), var(--gold-hover));
    color: var(--dark); border-color: transparent;
    box-shadow: 0 8px 18px rgba(184,155,94,.35);
}

/* Brilho que percorre o botão dourado no hover */
.btn { position: relative; overflow: hidden; }
.btn--gold::after {
    content: ""; position: absolute; top: 0; left: -120%; width: 55%; height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,.5), transparent);
    transform: skewX(-20deg); transition: left .6s ease; pointer-events: none;
}
.btn--gold:hover::after { left: 140%; }

/* Hero: brilho dourado vivo atrás do conteúdo */
.hero { position: relative; overflow: hidden; }
.hero::before {
    content: ""; position: absolute; width: 620px; height: 620px; border-radius: 50%;
    top: -220px; right: -160px; pointer-events: none; z-index: 0;
    background: radial-gradient(circle, rgba(184,155,94,.22), transparent 65%);
    animation: heroGlow 8s ease-in-out infinite alternate;
}
.hero .container { position: relative; z-index: 1; }
@keyframes heroGlow {
    from { transform: translate(0,0) scale(1); opacity: .65; }
    to   { transform: translate(-34px,34px) scale(1.18); opacity: 1; }
}

/* Faixas (seção escura): elevação e brilho no hover */
.faixa { transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.faixa:hover { transform: translateY(-5px); border-color: var(--gold); box-shadow: 0 16px 36px rgba(0,0,0,.4); }

/* Galeria: leve zoom na foto ao passar o mouse */
.gallery__item { overflow: hidden; }
.gallery__img { transition: transform .5s ease; }
.gallery__item:hover .gallery__img { transform: scale(1.06); }

/* Selos de confiança: leve destaque no hover */
.trust__item { transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.trust__item:hover { transform: translateY(-3px); border-color: var(--gold); box-shadow: var(--shadow); }

/* Foto da entrega flutua suavemente */
.entrega__media { transition: transform .4s ease, box-shadow .4s ease; }
.entrega__media:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

/* Logo do rodapé um pouco maior */
.footer__logo { height: 64px; }

@media (prefers-reduced-motion: reduce) {
    .hero::before { animation: none; }
    .btn--gold::after { display: none; }
}
