/* ============================================================
   Imóveis LP — landing.css
   Mobile-first, white + green palette, no external dependencies
   ============================================================ */

/* ─── Custom Properties ─────────────────────────────────── */
:root {
    --green-50:  #f0fdf4;
    --green-100: #dcfce7;
    --green-200: #bbf7d0;
    --green-600: #16a34a;
    --green-700: #15803d;
    --green-800: #166534;
    --green-900: #14532d;
    --gray-50:   #f9fafb;
    --gray-100:  #f3f4f6;
    --gray-200:  #e5e7eb;
    --gray-400:  #9ca3af;
    --gray-600:  #4b5563;
    --gray-800:  #1f2937;
    --gray-900:  #111827;
    --white:     #ffffff;
    --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
    --shadow-md: 0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
    --shadow-lg: 0 10px 15px rgba(0,0,0,.1), 0 4px 6px rgba(0,0,0,.05);
    --radius:    8px;
    --radius-lg: 12px;
    --transition: .2s ease;
}

/* ─── Reset / Base ──────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                 Helvetica, Arial, sans-serif;
    background: var(--white);
    color: var(--gray-900);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

/* ─── Container ─────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: 1100px;
    margin-inline: auto;
    padding-inline: 20px;
}

.container--narrow {
    max-width: 720px;
}

/* ─── Button Animations ────────────────────────────────── */
@keyframes shine {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 4px 14px rgba(22,163,74,.35), 0 0 0 0 rgba(22,163,74,0); }
    50%      { box-shadow: 0 4px 14px rgba(22,163,74,.35), 0 0 20px 4px rgba(22,163,74,.25); }
}

/* ─── Buttons ───────────────────────────────────────────── */
.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
    color: var(--white);
    font-size: 1.125rem;
    font-weight: 700;
    padding: 18px 44px;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    text-decoration: none;
    line-height: 1.2;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
    box-shadow: 0 4px 14px rgba(22,163,74,.35);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        120deg,
        transparent 0%,
        transparent 30%,
        rgba(255,255,255,.25) 50%,
        transparent 70%,
        transparent 100%
    );
    transform: translateX(-100%);
    animation: shine 3s ease-in-out infinite;
    animation-delay: 1s;
    pointer-events: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #15803d 0%, #16a34a 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(22,163,74,.45);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(22,163,74,.3);
}

.btn--sm  { font-size: 1rem;    padding: 12px 28px; }
.btn--lg  { font-size: 1.25rem;  padding: 24px 56px; animation: pulse-glow 2s ease-in-out infinite; }
.btn--xl  { font-size: 1.375rem; padding: 26px 64px; animation: pulse-glow 2s ease-in-out infinite; }
.btn--white {
    background: var(--white);
    color: var(--green-800);
    box-shadow: 0 4px 14px rgba(0,0,0,.2);
}
.btn--white::after {
    background: linear-gradient(
        120deg,
        transparent 0%,
        transparent 30%,
        rgba(22,163,74,.12) 50%,
        transparent 70%,
        transparent 100%
    );
}
.btn--white:hover {
    background: var(--green-50);
    color: var(--green-900);
    box-shadow: 0 6px 20px rgba(0,0,0,.25);
}
.btn--white.btn--lg,
.btn--white.btn--xl {
    animation: none;
}

@keyframes pulse-glow-white {
    0%, 100% { box-shadow: 0 4px 14px rgba(0,0,0,.2), 0 0 0 0 rgba(22,163,74,0); }
    50%      { box-shadow: 0 4px 14px rgba(0,0,0,.2), 0 0 20px 4px rgba(255,255,255,.3); }
}
.btn--white.btn--lg,
.btn--white.btn--xl {
    animation: pulse-glow-white 2s ease-in-out infinite;
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .btn-primary::after { animation: none; }
    .btn--lg, .btn--xl { animation: none; }
    .btn--white.btn--lg, .btn--white.btn--xl { animation: none; }
}

/* ─── Section Shared Styles ─────────────────────────────── */
.section {
    padding: 80px 20px;
}

.section--gray {
    background: var(--gray-50);
}

.section--green {
    background: linear-gradient(135deg, var(--green-800) 0%, var(--green-900) 100%);
    color: var(--white);
}

.section__title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    margin-bottom: 12px;
}

.section__sub {
    font-size: 1.0625rem;
    color: var(--gray-600);
    text-align: center;
    max-width: 580px;
    margin: 0 auto 48px;
}

.section--green .section__sub {
    color: var(--green-200);
}

/* ─── LEGAL PAGES ───────────────────────────────────────── */
.lp-body--page {
    background: var(--gray-50);
}

.legal-page {
    min-height: calc(100vh - 220px);
}

.legal-page__article {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 32px 24px;
}

.legal-page__eyebrow {
    color: var(--green-700);
    font-size: .8125rem;
    font-weight: 800;
    letter-spacing: .08em;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.legal-page__title {
    text-align: left;
    margin-bottom: 24px;
}

.legal-page__content {
    color: var(--gray-800);
}

.legal-page__content > * + * {
    margin-top: 16px;
}

.legal-page__content h2,
.legal-page__content h3,
.legal-page__content h4 {
    color: var(--gray-900);
    line-height: 1.3;
    margin-top: 32px;
}

.legal-page__content ul,
.legal-page__content ol {
    list-style: revert;
    padding-left: 20px;
}

.legal-page__content a {
    color: var(--green-700);
    text-decoration: underline;
}

/* ─── HEADER ────────────────────────────────────────────── */
.lp-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: 12px 0;
    box-shadow: var(--shadow-sm);
}

.lp-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.lp-header__logo {
    font-size: 1.0625rem;
    font-weight: 800;
    color: var(--green-900);
    white-space: nowrap;
}

.lp-header__tag {
    display: inline-block;
    background: var(--green-100);
    color: var(--green-800);
    font-size: .75rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    margin-left: 6px;
    vertical-align: middle;
}

/* ─── HERO ──────────────────────────────────────────────── */
.hero {
    background: linear-gradient(160deg, var(--green-50) 0%, var(--green-100) 55%, var(--green-200) 100%);
    padding: 72px 20px 88px;
    text-align: center;
}

.hero__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.hero__badge {
    display: inline-block;
    background: var(--white);
    color: var(--green-800);
    font-size: .875rem;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 999px;
    border: 1.5px solid var(--green-200);
    margin-bottom: 24px;
}

.hero__title {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 800;
    line-height: 1.12;
    color: var(--green-900);
    max-width: 960px;
    margin-bottom: 28px;
}

.hero__video {
    width: 100%;
    max-width: 960px;
    margin-bottom: 32px;
}

.hero__highlight {
    color: var(--green-600);
    position: relative;
}

.hero__sub {
    font-size: clamp(1rem, 2.5vw, 1.1875rem);
    color: var(--green-800);
    max-width: 600px;
    margin-bottom: 28px;
}

.hero__guarantee {
    margin-top: 20px;
    font-size: .875rem;
    color: var(--green-800);
    opacity: .85;
}

/* ─── VIDEO FACADE ──────────────────────────────────────── */
.video-facade {
    position: relative;
    aspect-ratio: 16 / 9;
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    background: #000;
    margin-bottom: 40px;
}

.video-facade__thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease, opacity .3s ease;
}

.video-facade:hover .video-facade__thumb {
    transform: scale(1.02);
    opacity: .85;
}

.video-facade__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.25);
    transition: background var(--transition);
}

.video-facade:hover .video-facade__overlay {
    background: rgba(0,0,0,.15);
}

.video-facade__play {
    width: 72px;
    height: 72px;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,.6));
    transition: transform var(--transition);
}

.video-facade:hover .video-facade__play {
    transform: scale(1.1);
}

.video-facade__play svg {
    width: 100%;
    height: 100%;
}

.play-bg    { fill: #ff0000; }
.play-arrow { fill: #fff; }

.video-facade iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ─── PDF GRID ──────────────────────────────────────────── */
.pdfs-section {
    background: var(--white);
}

.pdf-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 540px) {
    .pdf-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .pdf-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.pdf-card {
    background: var(--white);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
}

.pdf-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--green-200);
    transform: translateY(-3px);
}

.pdf-card__number {
    display: flex;
    align-items: baseline;
    gap: 10px;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--green-700);
    margin-bottom: 8px;
    line-height: 1.2;
}

.pdf-card__num {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--green-600);
    line-height: 1;
}

.pdf-card__title {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--green-900);
    margin-bottom: 10px;
    line-height: 1.3;
}

.pdf-card__desc {
    font-size: .9rem;
    color: var(--gray-600);
    line-height: 1.6;
}

/* ─── OFFER SECTION ─────────────────────────────────────── */
.offer__inner {
    text-align: center;
    padding-inline: 24px;
}

.offer__badge {
    display: inline-block;
    background: rgba(255,255,255,.15);
    color: var(--green-200);
    font-size: .875rem;
    font-weight: 700;
    padding: 6px 18px;
    border-radius: 999px;
    border: 1.5px solid rgba(255,255,255,.3);
    margin-bottom: 20px;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.offer__title {
    color: var(--white);
    margin-bottom: 32px;
}

.offer__price-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 40px;
}

.offer__price-from {
    font-size: 1rem;
    color: var(--green-200);
    text-decoration: line-through;
    opacity: .8;
}

.offer__price-main {
    display: flex;
    align-items: flex-start;
    color: var(--white);
    line-height: 1;
}

.offer__price-currency {
    font-size: 1.75rem;
    font-weight: 700;
    margin-top: 12px;
    margin-right: 4px;
}

.offer__price-value {
    font-size: clamp(4rem, 14vw, 6.5rem);
    font-weight: 900;
    letter-spacing: -.02em;
}

.offer__price-note {
    font-size: .875rem;
    color: var(--green-200);
    opacity: .9;
}

.offer__list {
    list-style: none;
    text-align: left;
    display: inline-block;
    margin: 0 auto 40px;
    max-width: 500px;
    width: 100%;
}

.offer__list li {
    font-size: 1rem;
    color: var(--green-100);
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,.1);
    line-height: 1.5;
}

.offer__list li:last-child {
    border-bottom: none;
}

/* ─── TESTIMONIALS ──────────────────────────────────────── */
.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 700px) {
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.testimonial-card {
    background: var(--white);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    box-shadow: var(--shadow-sm);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 16px;
    left: 22px;
    font-size: 4rem;
    color: var(--green-200);
    line-height: 1;
    font-family: Georgia, serif;
    pointer-events: none;
}

.testimonial-card__text {
    font-size: .95rem;
    color: var(--gray-800);
    line-height: 1.7;
    margin-bottom: 16px;
    padding-top: 20px;
}

.testimonial-card__author {
    font-size: .875rem;
    color: var(--green-800);
}

.testimonial-card__author strong {
    display: block;
}

/* ─── FAQ SECTION ──────────────────────────────────────── */
.faq-section {
    background: var(--white);
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--white);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.faq-item[open] {
    border-color: var(--green-200);
    box-shadow: var(--shadow-sm);
}

.faq-item__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--green-900);
    cursor: pointer;
    list-style: none;
    line-height: 1.4;
}

.faq-item__question::-webkit-details-marker {
    display: none;
}

.faq-item__question::after {
    content: "+";
    flex-shrink: 0;
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--green-600);
    transition: transform var(--transition);
}

.faq-item[open] .faq-item__question::after {
    content: "−";
}

.faq-item__answer {
    padding: 0 24px 20px;
    font-size: .95rem;
    color: var(--gray-600);
    line-height: 1.7;
}

/* ─── CTA SECTION ───────────────────────────────────────── */
.cta-section {
    background: var(--green-50);
    border-top: 1px solid var(--green-200);
    text-align: center;
}

.cta__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.cta__title {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 800;
    color: var(--green-900);
    line-height: 1.2;
    margin-bottom: 16px;
}

.cta__sub {
    font-size: 1.0625rem;
    color: var(--green-800);
    max-width: 560px;
    margin: 0 auto 40px;
}

/* ─── Trust Signals ─────────────────────────────────────── */
.trust-signals {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    margin-top: 28px;
}

.trust-signal {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .875rem;
    color: var(--green-800);
    font-weight: 600;
}

.trust-signal__icon {
    font-size: 1.25rem;
}

/* ─── FOOTER ────────────────────────────────────────────── */
.lp-footer {
    background: var(--gray-900);
    color: var(--gray-400);
    padding: 36px 20px;
    text-align: center;
    font-size: .875rem;
}

.lp-footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.lp-footer__instagram {
    display: inline-flex;
    color: var(--gray-400);
    transition: color var(--transition);
}

.lp-footer__instagram:hover {
    color: var(--white);
}

.lp-footer__legal {
    width: 100%;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,.1);
    font-size: .8125rem;
    color: var(--gray-400);
    line-height: 1.6;
}

.lp-footer__legal p {
    margin-bottom: 4px;
}

.lp-footer__legal p:last-child {
    margin-bottom: 0;
}

.lp-footer__legal a {
    color: var(--gray-100);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.lp-footer__legal a:hover {
    color: var(--white);
}

/* ─── STICKY MOBILE CTA ─────────────────────────────────── */
.lp-sticky {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 200;
    background: var(--white);
    border-top: 2px solid var(--green-600);
    padding: 10px 20px;
    box-shadow: 0 -4px 20px rgba(0,0,0,.12);
    /* Show only on mobile */
    display: none;
}

@media (max-width: 767px) {
    .lp-sticky {
        display: block;
    }
    /* Add bottom padding to main so sticky bar doesn't overlap content */
    body {
        padding-bottom: 80px;
    }
}

.lp-sticky__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    max-width: 480px;
    margin: 0 auto;
}

.lp-sticky__text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.lp-sticky__text strong {
    font-size: .9rem;
    color: var(--gray-900);
}

.lp-sticky__price {
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--green-700);
}

.lp-sticky__btn {
    flex-shrink: 0;
}

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

/* ─── Animations ────────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
    .pdf-card,
    .testimonial-card {
        animation: fadeUp .5s ease both;
    }

    @keyframes fadeUp {
        from { opacity: 0; transform: translateY(20px); }
        to   { opacity: 1; transform: translateY(0); }
    }
}

/* ─── Focus Styles ──────────────────────────────────────── */
:focus-visible {
    outline: 3px solid var(--green-600);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ─── Extra-small screens (≤ 360px) ────────────────────── */
@media (max-width: 360px) {
    .btn-primary {
        white-space: normal;
        padding-inline: 20px;
    }

    .btn--lg  { padding: 20px 32px; }
    .btn--xl  { padding: 22px 36px; }

    .lp-header {
        display: none;
    }

    body {
        padding-bottom: 70px;
    }
}

/* ─── Print ─────────────────────────────────────────────── */
@media print {
    .lp-header,
    .lp-sticky,
    .video-facade,
    .btn-primary { display: none; }
}
