/* Páginas por serviço e formulário de triagem (complementa style.css) */

.hero--lp { min-height: max(640px, 88svh); }
.hero--lp .hero-media { background-image: var(--hero-image, url("../images/hero-piscina-natural.webp")); }
.hero--lp h1 { max-width: 15ch; }
.hero-note {
    display: inline-block;
    margin: 0 0 22px;
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    background: rgba(1, 36, 63, 0.45);
    font-size: 0.92rem;
    letter-spacing: 0.01em;
}
.hero-note strong { color: var(--green); }

.lp-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin-top: 42px;
}
.lp-card {
    padding: 30px 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: 0 12px 40px rgba(1, 36, 63, 0.06);
}
.lp-card h3 { margin: 0 0 10px; font-family: "Poppins", sans-serif; font-size: 1.12rem; color: var(--navy); }
.lp-card p { margin: 0; }
.lp-card--dark { background: var(--navy); color: var(--white); border-color: transparent; }
.lp-card--dark h3 { color: var(--white); }

.lp-soft { background: var(--off-white); }

.lp-regions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
}
.lp-regions li {
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--white);
    border: 1px solid var(--line);
    font-size: 0.95rem;
}

.lp-faq { max-width: 860px; margin: 36px auto 0; }
.lp-faq details {
    border-bottom: 1px solid var(--line);
    padding: 18px 4px;
}
.lp-faq summary {
    cursor: pointer;
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    color: var(--navy);
    list-style: none;
}
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: "+"; float: right; color: var(--green-dark); }
.lp-faq details[open] summary::after { content: "–"; }
.lp-faq p { margin: 12px 0 0; }

/* Formulário */
.lead-section .contact-grid { align-items: start; }
.lead-box {
    position: relative;
    z-index: 1;
    padding: 34px;
    border-radius: var(--radius-lg);
    background: var(--white);
    color: var(--text);
    box-shadow: var(--shadow);
}
.lead-box h3 { margin: 0 0 6px; font-family: "Poppins", sans-serif; color: var(--navy); font-size: 1.3rem; }
.lead-box > p { margin: 0 0 22px; font-size: 0.95rem; color: var(--gray); }
.lead-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.lead-form label { display: grid; gap: 6px; font-size: 0.86rem; font-weight: 600; color: var(--navy); }
.lead-form .full { grid-column: 1 / -1; }
.lead-form input,
.lead-form select,
.lead-form textarea {
    width: 100%;
    min-height: 48px;
    padding: 11px 14px;
    border: 1px solid rgba(2, 52, 89, 0.22);
    border-radius: 14px;
    background: var(--white);
    color: var(--text);
    font: inherit;
    font-weight: 400;
}
.lead-form textarea { min-height: 88px; resize: vertical; }
.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus { outline: 2px solid var(--green); outline-offset: 1px; border-color: transparent; }
.lead-form .isca { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lead-form button { width: 100%; border: 0; cursor: pointer; }
.lead-form button[disabled] { opacity: 0.6; cursor: wait; }
.lead-legal { margin: 0; font-size: 0.8rem; color: var(--gray); }
.lead-status { margin: 0; min-height: 1.2em; font-size: 0.9rem; color: #b3261e; }
.lead-success { text-align: center; padding: 20px 6px; }
.lead-success h3 { margin-bottom: 10px; }
.lead-success p { margin: 0 0 20px; }

.contact-points { margin: 26px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.contact-points li { padding-left: 30px; position: relative; }
.contact-points li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }

@media (max-width: 1050px) {
    .lp-grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
    .lp-grid-3 { grid-template-columns: 1fr; }
    .lead-box { padding: 26px 20px; }
}
@media (max-width: 560px) {
    .lead-form { grid-template-columns: 1fr; }
}

/* v2 */
.lp-feature .feature-image img { min-height: 0; height: 540px; }
.lead-section .contact-grid { grid-template-columns: 0.8fr 1.2fr; gap: 56px; }
.lead-box { width: 100%; }
@media (max-width: 1050px) {
    .lp-feature .feature-image img { height: 440px; }
    .lead-section .contact-grid { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 560px) {
    .lp-feature .feature-image img { height: 340px; }
}

/* v3: título menor e respiro abaixo do logo nas páginas por serviço */
.hero--lp .hero-content { padding-top: 210px; padding-bottom: 150px; }
.hero--lp h1 { font-size: clamp(2.4rem, 4.6vw, 4.4rem); max-width: 18ch; letter-spacing: -0.04em; margin-bottom: 22px; }
.hero--lp .hero-note { margin-bottom: 26px; }
@media (max-width: 1050px) {
    .hero--lp .hero-content { padding-top: 200px; padding-bottom: 260px; }
    .hero--lp h1 { font-size: clamp(2.2rem, 8vw, 3.5rem); }
}
@media (max-width: 560px) {
    .hero--lp .hero-content { padding-top: 170px; }
    .hero--lp h1 { font-size: clamp(2rem, 9.5vw, 2.8rem); }
}

/* v4 (06/10/2026): formulário em duas etapas e submenu das páginas de serviço */
.lead-form--etapas { display: block; }
.lead-step { margin: 0; padding: 0; border: 0; min-width: 0; }
.lead-step[hidden] { display: none; }
.lead-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.lead-fields .full { grid-column: 1 / -1; }
.lead-step-title { display: block; margin: 0 0 16px; padding: 0; font-family: "Poppins", sans-serif; font-weight: 600; color: var(--navy); font-size: 0.98rem; }
.lead-step-title span { display: block; margin-bottom: 4px; font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green-dark); }
.lead-skip { margin: 0; text-align: center; font-size: 0.88rem; }
.lead-skip a { color: var(--gray); }
@media (max-width: 560px) { .lead-fields { grid-template-columns: 1fr; } }

.sub-nav { position: fixed; z-index: 99; top: var(--header-height); right: 0; left: 0; pointer-events: none; transition: top var(--transition); }
.sub-nav .container { display: flex; gap: 8px; padding: 2px 0 8px; overflow-x: auto; scrollbar-width: none; pointer-events: auto; }
.sub-nav .container::-webkit-scrollbar { display: none; }
.sub-nav a {
    flex: 0 0 auto; padding: 8px 14px; border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.22); background: rgba(1, 28, 49, 0.55); color: var(--white);
    font-family: "Poppins", sans-serif; font-size: 0.76rem; font-weight: 500; line-height: 1; text-decoration: none; white-space: nowrap;
    backdrop-filter: blur(8px); transition: background var(--transition), color var(--transition);
}
.sub-nav a:hover, .sub-nav a.is-active { background: var(--green); color: var(--navy); border-color: transparent; }
.site-header.is-scrolled + .sub-nav { top: 74px; }
.site-header.is-scrolled + .sub-nav a { background: rgba(255, 255, 255, 0.94); color: var(--navy); border-color: rgba(2, 52, 89, 0.14); box-shadow: 0 8px 22px rgba(1, 36, 63, 0.08); }
.site-header.is-scrolled + .sub-nav a:hover { background: var(--green); }
body.menu-open .sub-nav { display: none; }

/* âncoras não ficam escondidas atrás do cabeçalho + submenu */
main section[id], main [id="agendar"] { scroll-margin-top: 140px; }

/* 03/11/2026: no celular o botão "Agendar" cai direto no formulário, sem texto antes; etapa 2 não fica sob a barra fixa. */
@media (max-width: 1050px) {
    .lead-section .lead-box { order: -1; }
}
.lead-step { scroll-margin-top: 150px; }
