/* --- ROOT VARIABLES --- */
:root {
    /* Palette */
    --color-bg: #F9F8F6;          /* Soft Cream */
    --color-surface: #FFFFFF;     /* White */
    --color-surface-alt: #EDEBDF; /* Light beige for sections */
    
    --color-text-main: #2D3748;
    --color-text-muted: #4A5568;
    
    --color-primary: #0F4C5C;     /* Deep Teal */
    --color-primary-hover: #17657A;
    --color-secondary: #1E3A2B;   /* Forest Green */
    --color-accent: #B58348;      /* Wood / Gold */
    --color-accent-hover: #9E6B34;
    
    --color-border: #E2E8F0;
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacings & Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow-soft: 0 10px 30px -10px rgba(15, 76, 92, 0.1);
}

/* --- RESET & BASICS --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    background-color: var(--color-bg);
    color: var(--color-text-main);
    font-family: var(--font-body);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.2; margin-bottom: 1rem; color: var(--color-primary); }
h2 { font-size: clamp(2rem, 4vw, 2.7rem); letter-spacing: -0.02em; }
h3 { font-size: 1.5rem; }
p { color: var(--color-text-muted); }
a { text-decoration: none; color: inherit; }

/* --- UTILS --- */
.container { width: 100%; max-width: 1300px; margin: 0 auto; padding: 0 2.5rem; }
.text-center { text-align: center; }
.mb-loose { margin-bottom: 4rem; }
.mb-moderate { margin-bottom: 1.5rem; }
.mt-loose { margin-top: 4rem; }
.mt-moderate { margin-top: 1.5rem; }
.mx-auto { margin-inline: auto; }
.max-w-800 { max-width: 800px; }
.section { padding: 6rem 0; position: relative; }
.bg-white { background-color: var(--color-surface); }
.bg-teal { background-color: var(--color-primary); color: #fff; }
.bg-teal h2, .bg-teal h3, .bg-teal p { color: #fff; }
.bg-teal p { opacity: 0.9; }

/* --- BUTTONS --- */
.btn {
    display: inline-block;
    padding: 1rem 2.2rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-family: var(--font-heading);
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    border: none;
    font-size: 1.05rem;
}
.btn-primary { background-color: var(--color-accent); color: #fff; }
.btn-primary:hover { background-color: var(--color-accent-hover); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(181, 131, 72, 0.3); }
.btn-block { width: 100%; display: block; }

/* --- HERO --- */
.hero {
    width: 100%;
    min-height: 100vh;
    background-color: var(--color-primary);
    position: relative;
    overflow: hidden;
    color: #fff;
    display: grid;
    grid-template-columns: min(46%, 660px) 1fr;
    align-items: stretch;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background: url('assets/images/hero-bg.webp') center/cover no-repeat;
    opacity: 0.12;
    mix-blend-mode: overlay;
    z-index: 1;
}

/* Coluna da foto */
.hero-img-side {
    position: relative;
    z-index: 2;
    overflow: hidden;
    min-width: 0;
}
.hero-photo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    vertical-align: top;
}

/* Coluna de texto */
.hero-text-side {
    min-width: 0;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem 4rem 4rem 2.5rem;
}

/* Pré-título */
.hero-pretitle {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-accent);
    border: 1px solid rgba(181, 131, 72, 0.45);
    padding: 0.38rem 1rem;
    border-radius: 50px;
    margin-bottom: 1.6rem;
    width: fit-content;
}

/* Título principal */
.hero-title {
    font-size: clamp(1.75rem, 2.8vw, 2.7rem);
    color: #fff;
    margin-bottom: 1.4rem;
    letter-spacing: -0.03em;
    line-height: 1.18;
}

/* Subtítulo / bio */
.hero-subtitle {
    font-size: 0.975rem;
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: 2.4rem;
    line-height: 1.82;
    max-width: 560px;
}

/* CTA do hero: retângulo compacto, fonte maior */
.hero-text-side .btn-primary {
    padding: 0.65rem 1.8rem;
    font-size: 1.15rem;
    align-self: flex-start;
}

/* --- INTRODUÇÃO AO SERVIÇO --- */
.intro-service-section {
    background-color: var(--color-primary);
    padding: 6rem 0;
}
.intro-service-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}
.intro-service-copy h2 {
    color: #fff;
    font-size: clamp(2rem, 3.8vw, 3rem);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}
.intro-service-copy p {
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.1rem;
    line-height: 1.85;
    margin-bottom: 0;
}
.intro-service-map {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
}
.map-label {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-accent);
    border: 1px solid rgba(181, 131, 72, 0.4);
    padding: 0.35rem 1rem;
    border-radius: 50px;
    margin: 0;
}
.intro-service-map img {
    width: 100%;
    max-width: 460px;
    display: block;
    filter: drop-shadow(0 12px 40px rgba(0, 0, 0, 0.35));
}

@media (max-width: 900px) {
    .intro-service-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    .intro-service-copy h2 { font-size: 2rem; }
    .intro-service-map { align-items: center; }
    .intro-service-map img { max-width: 340px; }
}

/* --- CONSCIENTIZAÇÃO --- */
.flowing-text-section {
    padding: 6rem 0;
    background: var(--color-bg);
}
.flowing-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.flowing-copy p {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}
.flowing-visual {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}
.flowing-visual img {
    width: 100%;
    display: block;
    mix-blend-mode: multiply; /* clean integration with background */
}

/* --- VANTAGENS --- */
.vantagens-section {
    background-color: var(--color-surface);
}
.vantagens-list {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    margin-top: 4rem;
}
.vantagem-item {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 2rem;
    align-items: start;
}
.icon-box {
    width: 80px;
    height: 80px;
    background: rgba(15, 76, 92, 0.05);
    border: 1px solid rgba(15, 76, 92, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
}

/* --- VERTENTES --- */
.vertentes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}
.vertente-item {
    background: var(--color-bg);
    padding: 3rem;
    border-radius: var(--radius-md);
    border-top: 4px solid var(--color-accent);
}
.vertente-icon {
    color: var(--color-accent);
    margin-bottom: 1.5rem;
}

/* --- VERTICAIS --- */
.verticais-section {
    background-color: var(--color-secondary);
    color: #fff;
    padding: 5rem 0;
}
.verticais-section h2, .verticais-section p { color: #fff; }
.verticais-section p { opacity: 0.8; }
.verticais-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}
.vertical-icon-box {
    text-align: center;
}
.vertical-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    color: var(--color-accent);
}
.vertical-icon-box h4 {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
}

/* --- CTA FORM --- */
.form-section {
    background-color: var(--color-bg);
    position: relative;
}
.form-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.form-copy h2 { color: var(--color-primary); margin-bottom: 2rem; }
.form-copy p { margin-bottom: 1rem; }

.contact-form {
    background: var(--color-surface);
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0,0,0,0.05);
}
.form-group { margin-bottom: 1.5rem; }
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-primary);
}
.field-msg {
    display: none;
    font-size: 0.78rem;
    margin-top: 4px;
    color: #c0392b;
}
.field-msg.show { display: block; }
.contact-form input.field-error,
.contact-form select.field-error { border-color: #c0392b !important; }

.contact-form input,
.contact-form select {
    width: 100%;
    padding: 0.9rem 1rem;
    background: var(--color-bg);
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: var(--radius-sm);
    color: var(--color-text-main);
    font-family: inherit;
    transition: all 0.3s;
}
.contact-form input:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--color-accent);
    background: var(--color-surface);
    box-shadow: 0 0 0 3px rgba(181, 131, 72, 0.1);
}

/* --- FV WIDGET OVERRIDES --- */
.fv-form-header {
    margin-bottom: 1.8rem;
    padding-bottom: 1.4rem;
    border-bottom: 1px solid rgba(15, 76, 92, 0.08);
}
.fv-form-header h3 {
    color: var(--color-primary);
    margin-bottom: 0.35rem;
    font-family: var(--font-heading);
    font-size: 1.25rem;
}
.fv-form-header p {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin: 0;
}

#FormFunildeVendas label {
    display: block;
    margin-bottom: 0.45rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-primary);
    font-family: var(--font-body);
}
#FormFunildeVendas input[type="text"],
#FormFunildeVendas input[type="email"],
#FormFunildeVendas input[type="tel"],
#FormFunildeVendas input[type="number"],
#FormFunildeVendas select,
#FormFunildeVendas textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    background: var(--color-bg);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-sm);
    color: var(--color-text-main);
    font-family: var(--font-body);
    font-size: 0.97rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    box-sizing: border-box;
    margin-bottom: 1.2rem;
}
#FormFunildeVendas input[type="text"]:focus,
#FormFunildeVendas input[type="email"]:focus,
#FormFunildeVendas input[type="tel"]:focus,
#FormFunildeVendas input[type="number"]:focus,
#FormFunildeVendas select:focus,
#FormFunildeVendas textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    background: var(--color-surface);
    box-shadow: 0 0 0 3px rgba(181, 131, 72, 0.12);
}
#FormFunildeVendas button[type="submit"],
#FormFunildeVendas input[type="submit"],
#FormFunildeVendas button:not([type="button"]) {
    width: 100%;
    padding: 1rem 2rem;
    background-color: var(--color-accent);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    margin-top: 0.5rem;
    letter-spacing: 0.01em;
}
#FormFunildeVendas button[type="submit"]:hover,
#FormFunildeVendas input[type="submit"]:hover,
#FormFunildeVendas button:not([type="button"]):hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(181, 131, 72, 0.3);
}
#FormFunildeVendas button[type="submit"]:active,
#FormFunildeVendas input[type="submit"]:active {
    transform: translateY(0);
}

/* --- PARCEIROS --- */
.parceiros-section {
    background-color: var(--color-surface);
    overflow: hidden;
    padding-bottom: 5rem;
}
.parceiros-label {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-accent);
    background: rgba(181, 131, 72, 0.08);
    padding: 0.45rem 1.4rem;
    border-radius: 50px;
    margin-bottom: 1.2rem;
}
.parceiros-section h2 {
    margin-bottom: 0.5rem;
}
.logos-marquee {
    position: relative;
    margin-top: 3.5rem;
    width: 100%;
    mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}
.logos-track {
    display: flex;
    align-items: center;
    gap: 3.5rem;
    width: max-content;
    animation: marquee 30s linear infinite;
}
.logos-track:hover {
    animation-play-state: paused;
}
.logo-item {
    flex-shrink: 0;
    width: 180px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-md);
    padding: 1.2rem 1.5rem;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.logo-item:hover {
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 12px 32px -8px rgba(15, 76, 92, 0.12);
    border-color: var(--color-accent);
}
.logo-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(60%) opacity(0.7);
    transition: filter 0.4s ease;
}
.logo-item:hover img {
    filter: grayscale(0%) opacity(1);
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* --- FOOTER --- */
.footer {
    padding: 4rem 0;
    border-top: 1px solid rgba(0,0,0,0.05);
    background-color: var(--color-surface);
}

/* --- THANK YOU PAGE --- */
.thank-you-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background-color: var(--color-bg);
}
.ty-container {
    background: var(--color-surface);
    padding: 4rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    text-align: center;
    max-width: 600px;
    width: 90%;
    border-top: 6px solid var(--color-accent);
}
.ty-brand { margin-bottom: 3rem; }
.ty-icon {
    margin: 0 auto 2rem;
    display: flex;
    justify-content: center;
}
.ty-title {
    color: var(--color-primary);
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* --- RESPONSIVE --- */

/* ── Tablet grande (≤1100px): ligeira redução da coluna de foto ── */
@media (max-width: 1100px) {
    .hero { grid-template-columns: 40% 1fr; }
    .hero-text-side { padding: 4rem 3rem 4rem 2rem; }
}

/* ── Tablet (≤960px) ── */
@media (max-width: 960px) {
    .hero { grid-template-columns: min(42%, 420px) 1fr; }
    .hero-photo {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: top center;
    }
    .hero-text-side {
        padding: 3.5rem 2.5rem 3.5rem 2rem;
        justify-content: center;
    }
    .hero-title    { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
    .hero-subtitle { font-size: 1rem; }

    .flowing-layout, .form-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* ── Mobile (≤640px): empilha, foto no topo ── */
@media (max-width: 640px) {
    /* Container: padding menor para não cortar nas bordas */
    .container { padding: 0 1.25rem; }

    /* Hero: empilha verticalmente */
    .hero {
        grid-template-columns: 1fr;
        min-height: unset;
        overflow: visible;
    }

    /* Foto: altura automática para mostrar a imagem inteira sem cortes */
    .hero-img-side {
        width: 100%;
        height: auto;
        overflow: visible;
    }
    .hero-photo {
        width: 100%;
        height: auto;
        object-fit: unset;
        display: block;
    }

    /* Texto hero: centralizado */
    .hero-text-side {
        padding: 2rem 1.25rem 3rem;
        text-align: center;
        align-items: center;
        justify-content: flex-start;
    }
    .hero-pretitle   { text-align: center; }
    .hero-title      { font-size: 1.65rem; }
    .hero-subtitle   { font-size: 0.88rem; }
    .hero-text-side .btn-primary { align-self: center; }

    /* Seções de 2 colunas → 1 coluna */
    .flowing-layout,
    .form-layout { grid-template-columns: 1fr; gap: 2rem; }

    /* Vertentes: forçar 1 coluna (minmax(300px) quebra em telas pequenas) */
    .vertentes-grid { grid-template-columns: 1fr; }

    /* Formulário */
    .contact-form { padding: 1.5rem; }

    /* Vantagens */
    .vantagem-item { grid-template-columns: 1fr; text-align: center; }
    .icon-box { margin: 0 auto; }

    /* Footer */
    .footer .container { text-align: center; }
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */

/* --- Hero: entrada ao carregar a página --- */
@keyframes heroSlideDown {
    from { opacity: 0; transform: translateY(-28px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroSlideUp {
    from { opacity: 0; transform: translateY(36px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroSlideRight {
    from { opacity: 0; transform: translateX(64px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* Texto (direita): entra da direita para o centro */
@keyframes heroSlideLeft {
    from { opacity: 0; transform: translateX(50px); }
    to   { opacity: 1; transform: translateX(0); }
}

.hero-pretitle {
    animation: heroSlideLeft 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.25s both;
}
.hero-title {
    animation: heroSlideLeft 0.95s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}
.hero-subtitle {
    animation: heroSlideLeft 0.95s cubic-bezier(0.16, 1, 0.3, 1) 0.58s both;
}
.hero-text-side .btn {
    animation: heroSlideLeft 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.74s both;
}

/* Foto (esquerda): entra da esquerda */
@keyframes heroImgIn {
    from { opacity: 0; transform: translateX(-40px); }
    to   { opacity: 1; transform: translateX(0); }
}
.hero-img-side {
    animation: heroImgIn 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

/* --- Scroll reveal: estado inicial (aplicado via JS) --- */
.will-animate {
    opacity: 0;
    transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}
.will-animate[data-animate="fade-up"]    { transform: translateY(44px); }
.will-animate[data-animate="fade-right"] { transform: translateX(-44px); }
.will-animate[data-animate="fade-left"]  { transform: translateX(44px); }
.will-animate[data-animate="scale-up"]   { transform: scale(0.88); }

.will-animate.is-visible {
    opacity: 1;
    transform: none;
}

/* Stagger automático dentro de containers */
.vantagens-list .will-animate:nth-child(1) { transition-delay: 0.05s; }
.vantagens-list .will-animate:nth-child(2) { transition-delay: 0.22s; }
.vantagens-list .will-animate:nth-child(3) { transition-delay: 0.39s; }

.vertentes-grid .will-animate:nth-child(1) { transition-delay: 0.05s; }
.vertentes-grid .will-animate:nth-child(2) { transition-delay: 0.2s; }
.vertentes-grid .will-animate:nth-child(3) { transition-delay: 0.35s; }

.verticais-grid .will-animate:nth-child(1) { transition-delay: 0.05s; }
.verticais-grid .will-animate:nth-child(2) { transition-delay: 0.13s; }
.verticais-grid .will-animate:nth-child(3) { transition-delay: 0.21s; }
.verticais-grid .will-animate:nth-child(4) { transition-delay: 0.29s; }
.verticais-grid .will-animate:nth-child(5) { transition-delay: 0.37s; }
.verticais-grid .will-animate:nth-child(6) { transition-delay: 0.45s; }

/* --- Hover: icon-box --- */
.icon-box {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                background 0.3s ease,
                border-color 0.3s ease,
                color 0.3s ease;
}
.vantagem-item:hover .icon-box {
    transform: scale(1.18) rotate(-7deg);
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

/* --- Hover: vantagem-item --- */
.vantagem-item {
    border-radius: var(--radius-md);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.3s ease;
}
.vantagem-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 44px -12px rgba(15, 76, 92, 0.14);
}

/* --- Hover: vertente-item --- */
.vertente-item {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.3s ease;
}
.vertente-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 32px 56px -14px rgba(15, 76, 92, 0.2);
}
.vertente-icon {
    transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.vertente-item:hover .vertente-icon {
    transform: scale(1.28) rotate(-8deg);
}

/* --- Hover: vertical-icon-box --- */
.vertical-icon-box {
    padding: 1.5rem 1rem;
    border-radius: var(--radius-md);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                background 0.3s ease;
}
.vertical-icon-box:hover {
    transform: translateY(-10px) scale(1.06);
    background: rgba(255, 255, 255, 0.06);
}
.vertical-icon {
    transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
                color 0.3s ease;
}
.vertical-icon-box:hover .vertical-icon {
    transform: scale(1.22) rotate(-6deg);
    color: #fff;
}
