/* ═══════════════════════════════════════════════════════════
   BV Agro Consultoria — Stylesheet v2
   Estilo inspirado em LawSight · Paleta: Branco · Marrom · Dourado
═══════════════════════════════════════════════════════════ */

/* ─── Variáveis ─────────────────────────────────────────── */
:root {
    --gold:           #C9A84C;
    --gold-light:     #E5CA7A;
    --gold-dark:      #A07830;
    --gold-ghost:     rgba(201, 168, 76, 0.12);
    --brown-dark:     #1A0C04;
    --brown:          #3E1A08;
    --brown-medium:   #6B3318;
    --brown-light:    #955530;
    --white:          #FFFFFF;
    --off-white:      #FBF8F4;
    --cream:          #F4ECE0;
    --text:           #1A120A;
    --text-muted:     #4A3020;
    --border-light:   rgba(201, 168, 76, 0.18);

    --font-display:   'Playfair Display', Georgia, serif;
    --font-ui:        'Montserrat', system-ui, sans-serif;

    --container:      1200px;
    --section-py:     clamp(72px, 9vw, 110px);
    --gap:            clamp(20px, 3vw, 32px);
    --radius:         4px;
    --shadow-card:    0 2px 20px rgba(26, 12, 4, 0.08);
    --shadow-hover:   0 12px 40px rgba(26, 12, 4, 0.18);
    --transition:     0.3s ease;
}

/* ─── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font-ui);
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
address { font-style: normal; }
ul { list-style: none; }

/* ─── Container ──────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 48px);
}
.section {
    padding: var(--section-py) 0;
}

/* ─── Botões ─────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 14px 32px;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: background var(--transition), color var(--transition),
                border-color var(--transition), transform var(--transition),
                box-shadow var(--transition);
    white-space: nowrap;
}
.btn--gold {
    background: linear-gradient(135deg, #F7D94E 0%, #C8880C 50%, #EDB830 100%);
    color: var(--brown-dark);
    border-color: #C8880C;
}
.btn--gold:hover {
    background: linear-gradient(135deg, #FFE566 0%, #DA9A18 50%, #F5C840 100%);
    border-color: #DA9A18;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(200, 136, 12, 0.5);
}
.btn--outline-light {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.4);
}
.btn--outline-light:hover {
    border-color: var(--gold);
    color: var(--gold);
}
.btn--lg { font-size: 0.8rem; padding: 16px 40px; }

/* ─── Section Header ──────────────────────────────────────── */
.section-header {
    margin-bottom: clamp(40px, 6vw, 64px);
}
.section-header--center {
    text-align: center;
}
.section-header--center .section-divider {
    margin-left: auto;
    margin-right: auto;
}
.section-header--center .section-desc {
    margin-left: auto;
    margin-right: auto;
}

.section-tag {
    display: inline-block;
    font-family: var(--font-ui);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 14px;
}
.section-tag--gold { color: var(--gold-light); }

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 3.8vw, 2.8rem);
    font-weight: 700;
    color: var(--brown);
    line-height: 1.15;
    letter-spacing: -0.01em;
}
.section-header--light .section-title { color: var(--white); }

.section-divider {
    width: 48px;
    height: 3px;
    background: var(--gold);
    border-radius: 2px;
    margin-top: 22px;
}

.section-desc {
    margin-top: 18px;
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.75;
    max-width: 560px;
}
.section-header--light .section-desc { color: rgba(255,255,255,0.6); }

/* ─── Header ─────────────────────────────────────────────── */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--brown-dark);
    border-bottom: 1px solid rgba(201,168,76,0.12);
    transition: box-shadow var(--transition);
}
.header--scrolled {
    box-shadow: 0 4px 30px rgba(0,0,0,0.4);
}
.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 86px;
}

/* ─── Logo ───────────────────────────────────────────────── */
.logo {
    display: flex;
    align-items: center;
    line-height: 1;
}
.logo__img {
    height: 58px;
    width: auto;
    display: block;
    object-fit: contain;
}

/* ─── Banner ─────────────────────────────────────────────── */
.banner {
    width: 100%;
    overflow: hidden;
    background: var(--brown-dark);
    line-height: 0;
}
.banner__img {
    width: 100%;
    height: auto;
    display: block;
}

/* ─── Serviços ──────────────────────────────────────────── */
.services {
    background: var(--off-white);
}
.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap);
}

/* ─── Card ───────────────────────────────────────────────── */
.card {
    position: relative;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-top: 3px solid var(--gold);
    padding: clamp(28px, 3.5vw, 44px) clamp(24px, 3vw, 36px);
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.card__num {
    position: absolute;
    top: 16px;
    right: 20px;
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 700;
    color: var(--gold-ghost);
    line-height: 1;
    user-select: none;
    pointer-events: none;
}

.card__icon {
    width: 56px;
    height: 56px;
    color: var(--gold);
    flex-shrink: 0;
}
.card__icon svg { width: 100%; height: 100%; }

.card__title {
    font-family: var(--font-display);
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    font-weight: 700;
    color: var(--brown);
    line-height: 1.35;
}

.card__text {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.75;
    flex: 1;
}

.card__more {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold-dark);
    margin-top: 4px;
    transition: color var(--transition);
    display: inline-block;
    cursor: pointer;
}
.card__more:hover,
.card:hover .card__more { color: var(--gold); }

/* ─── Auditoria ─────────────────────────────────────────── */
.audit {
    background: var(--brown);
    position: relative;
    overflow: hidden;
}
.audit::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 80% 50%, rgba(201,168,76,0.07) 0%, transparent 65%);
    pointer-events: none;
}
.audit__body {
    display: flex;
    align-items: flex-start;
    gap: clamp(24px, 5vw, 56px);
    max-width: 860px;
    margin: 0 auto;
}
.audit__icon {
    width: 80px;
    height: 80px;
    color: var(--gold);
    flex-shrink: 0;
}
.audit__icon svg { width: 100%; height: 100%; }
.audit__text {
    font-size: clamp(0.92rem, 1.2vw, 1.05rem);
    color: rgba(255,255,255,0.8);
    line-height: 1.85;
}

/* ─── Assessoria Tributária ─────────────────────────────── */
.tax-advisory {
    background: var(--cream);
    position: relative;
    overflow: hidden;
}
.tax-advisory::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 20% 50%, rgba(201,168,76,0.07) 0%, transparent 65%);
    pointer-events: none;
}
.tax-advisory__body {
    display: flex;
    align-items: flex-start;
    gap: clamp(24px, 5vw, 56px);
    max-width: 860px;
    margin: 0 auto;
}
.tax-advisory__icon {
    width: 80px;
    height: 80px;
    color: var(--gold-dark);
    flex-shrink: 0;
}
.tax-advisory__icon svg { width: 100%; height: 100%; }
.tax-advisory__text {
    font-size: clamp(0.92rem, 1.2vw, 1.05rem);
    color: var(--text);
    line-height: 1.85;
}

/* ─── Hero ──────────────────────────────────────────────── */
.hero {
    background: var(--white);
    position: relative;
}
.hero::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 38%;
    background: var(--off-white);
    clip-path: polygon(12% 0, 100% 0, 100% 100%, 0% 100%);
    pointer-events: none;
}
.hero__content {
    max-width: 660px;
    position: relative;
    z-index: 1;
}
.hero__title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 700;
    color: var(--brown);
    line-height: 1.12;
    letter-spacing: -0.02em;
    margin-bottom: 4px;
}
.hero__title em {
    color: var(--gold-dark);
    font-style: italic;
}
.hero__text {
    margin-top: 24px;
    font-size: clamp(0.95rem, 1.3vw, 1.05rem);
    color: var(--text-muted);
    line-height: 1.8;
}

/* ─── Stats ─────────────────────────────────────────────── */
.stats {
    background: var(--brown-dark);
    position: relative;
    overflow: hidden;
}
.stats::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 15% 50%, rgba(201,168,76,0.09) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 50%, rgba(201,168,76,0.06) 0%, transparent 55%);
    pointer-events: none;
}
.stats__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: clamp(32px, 5vw, 80px);
    position: relative;
    z-index: 1;
}
.stats__left {
    text-align: right;
}
.stats__pre {
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    font-weight: 700;
    color: rgba(255,255,255,0.65);
    line-height: 1.4;
    margin-top: 10px;
    font-style: italic;
}
.stats__center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    border-left: 1px solid rgba(201,168,76,0.22);
    border-right: 1px solid rgba(201,168,76,0.22);
    padding: 0 clamp(28px, 5vw, 72px);
}
.stats__number {
    font-family: var(--font-display);
    font-size: clamp(5.5rem, 14vw, 10rem);
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
    letter-spacing: -0.04em;
    display: block;
}
.stats__label {
    font-family: var(--font-ui);
    font-size: clamp(0.65rem, 1.2vw, 0.8rem);
    font-weight: 700;
    color: var(--gold-light);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    white-space: nowrap;
}
.stats__right {
    display: flex;
    flex-direction: column;
    gap: 28px;
}
.stats__text {
    font-size: 0.92rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.8;
}

/* ─── Formulário ─────────────────────────────────────────── */
.form-section {
    background: var(--cream);
}
.form {
    max-width: 920px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}
.form__honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}
.form__fields {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    width: 100%;
}
.form__group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.form__input {
    width: 100%;
    padding: 15px 20px;
    font-family: var(--font-ui);
    font-size: 0.9rem;
    color: var(--text);
    background: var(--white);
    border: 1px solid rgba(201, 168, 76, 0.25);
    border-bottom: 2px solid rgba(201, 168, 76, 0.3);
    border-radius: var(--radius);
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.form__input::placeholder { color: #B8A898; font-size: 0.88rem; }
.form__input:focus {
    border-color: var(--gold);
    border-bottom-color: var(--gold);
    box-shadow: 0 4px 16px rgba(201, 168, 76, 0.12);
}
.form__input.is-error { border-color: #c0392b; }
.form__error {
    font-size: 0.75rem;
    color: #c0392b;
    min-height: 16px;
    display: block;
}
.form__submit { min-width: 200px; }
.form__submit:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.form__feedback {
    font-size: 0.88rem;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: var(--radius);
    display: none;
    text-align: center;
}
.form__feedback.success {
    display: block;
    background: rgba(201, 168, 76, 0.12);
    border: 1px solid var(--gold);
    color: var(--brown);
}
.form__feedback.error {
    display: block;
    background: rgba(192, 57, 43, 0.08);
    border: 1px solid #c0392b;
    color: #8b1a10;
}

/* ─── Parcerias ─────────────────────────────────────────── */
.partners {
    background: var(--off-white);
}
.partners__grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(16px, 2.5vw, 24px);
}
.partners__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-top: 3px solid var(--gold);
    padding: 28px 24px 24px;
    width: clamp(140px, 17vw, 188px);
    text-align: center;
    transition: transform var(--transition), box-shadow var(--transition), border-top-color var(--transition);
    cursor: default;
}
.partners__item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}
.partners__item-icon {
    width: 44px;
    height: 44px;
    color: var(--gold);
}
.partners__item-icon svg { width: 100%; height: 100%; }
.partners__item-label {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--brown);
    line-height: 1.4;
}

/* ─── Footer ─────────────────────────────────────────────── */
.footer {
    background: var(--brown-dark);
    padding-top: clamp(56px, 7vw, 80px);
}
.footer__inner {
    display: grid;
    grid-template-columns: 2.2fr 1fr 2fr;
    gap: clamp(32px, 5vw, 72px);
    padding-bottom: clamp(40px, 5vw, 60px);
    border-bottom: 1px solid rgba(201,168,76,0.1);
}
.footer__brand {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.footer__tagline {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.45);
    line-height: 1.75;
    max-width: 280px;
}
.footer__social {
    display: flex;
    gap: 10px;
    margin-top: 4px;
}
.footer__social-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(201,168,76,0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.5);
    transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.footer__social-btn:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--brown-dark);
}
.footer__col-title {
    font-family: var(--font-ui);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 22px;
}
.footer__links {
    display: flex;
    flex-direction: column;
    gap: 11px;
}
.footer__links li {
    display: flex;
    align-items: center;
    gap: 8px;
}
.footer__links li::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 1px;
    background: var(--gold);
    flex-shrink: 0;
    opacity: 0.7;
}
.footer__link {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.55);
    transition: color var(--transition);
}
.footer__link:hover { color: var(--gold); }
.footer__link--icon {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    color: rgba(255,255,255,0.5);
}
.footer__link--icon:hover { color: var(--gold); }
.footer__address {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.45);
    line-height: 1.75;
    margin-bottom: 4px;
}
.footer__contact {
    display: flex;
    flex-direction: column;
}
.footer__bottom {
    background: rgba(0,0,0,0.25);
    margin-top: 0;
}
.footer__bottom-inner {
    display: flex;
    justify-content: center;
    padding: 20px 0;
}
.footer__copy {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.25);
    text-align: center;
}

/* ─── WhatsApp Flutuante ─────────────────────────────────── */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 999;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25D366;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
    transition: transform var(--transition), box-shadow var(--transition);
    animation: wpp-pulse 2.5s ease-in-out infinite;
}
.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(37, 211, 102, 0.65);
    animation: none;
}

@keyframes wpp-pulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45); }
    50%       { box-shadow: 0 4px 32px rgba(37, 211, 102, 0.75), 0 0 0 8px rgba(37, 211, 102, 0.12); }
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 54px;
        height: 54px;
        bottom: 20px;
        right: 20px;
    }
}

/* ─── Responsivo ─────────────────────────────────────────── */
@media (max-width: 1024px) {
    .footer__inner {
        grid-template-columns: 1fr 1fr;
    }
    .footer__brand {
        grid-column: 1 / -1;
    }
    .footer__tagline { max-width: 100%; }
}

@media (max-width: 768px) {
    /* Fonte base levemente maior para público de mais idade */
    html { font-size: 17.5px; }

    .header__cta { font-size: 0.68rem; padding: 11px 18px; }
    .logo__img   { height: 52px; }

    .services__grid { grid-template-columns: 1fr; }
    .card__title { font-size: 1.25rem; }

    .hero::before { display: none; }
    .hero__content { max-width: 100%; }

    .stats__inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 32px;
    }
    .stats__left  { text-align: center; }
    .stats__center {
        border: none;
        border-top: 1px solid rgba(201,168,76,0.22);
        border-bottom: 1px solid rgba(201,168,76,0.22);
        padding: 32px 0;
    }
    .stats__right { align-items: center; }

    .audit__body {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .tax-advisory__body {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .form__fields { grid-template-columns: 1fr; }

    .partners__grid { gap: 12px; }
    .partners__item { width: clamp(130px, 42vw, 180px); }

    .footer__inner { grid-template-columns: 1fr; }
    .footer__brand { grid-column: auto; }
}

@media (max-width: 480px) {
    .btn--lg { width: 100%; max-width: 340px; justify-content: center; }
    .stats__number { font-size: 5rem; }
}
