/*
Theme Name: Vilaris Invest
Theme URI: https://www.vilarisinvest.com
Author: Vilaris Investments
Author URI: https://www.vilarisinvest.com
Description: Tema WordPress premium — Investimento Imobiliário no Alto Minho, Portugal.
Version: 3.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vilaris-invest
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 8.0
*/

/* ============================================
   DESIGN SYSTEM
   ============================================ */
:root {
    --vi-primary: #220660;
    --vi-secondary: #2E0A6E;
    --vi-gold: #C9A84C;
    --vi-gold-light: #E8D48B;
    --vi-white: #FFFFFF;
    --vi-light: #F7F5FC;
    --vi-dark: #0D0226;
    --vi-text: #2D2D2D;
    --vi-text-light: #555555;
    --vi-gradient: linear-gradient(135deg, #220660 0%, #2E0A6E 50%, #1A0445 100%);
    --vi-shadow: 0 4px 24px rgba(34, 6, 96, 0.10);
    --vi-shadow-lg: 0 12px 48px rgba(34, 6, 96, 0.15);
    --vi-radius: 12px;
    --vi-radius-lg: 20px;
    --vi-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --vi-font-heading: 'Playfair Display', Georgia, serif;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--vi-font); color: var(--vi-text); line-height: 1.7; background: var(--vi-white); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--vi-font-heading); line-height: 1.25; color: var(--vi-dark); }

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* ============================================
   HEADER
   ============================================ */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: var(--vi-primary); backdrop-filter: blur(12px);
    border-bottom: none;
    transition: all 0.3s ease;
}
.site-header.is-scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.15); }

.nav-container {
    max-width: 1140px; margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between;
    height: 64px;
}
.site-branding a { display: flex; align-items: center; }
.site-logo-link { display: flex; align-items: center; }
.site-logo-img { height: 64px; width: auto; }
.site-logo-text { font-family: var(--vi-font-heading); font-size: 22px; font-weight: 700; }
.logo-vilaris { color: var(--vi-primary); }
.logo-invest { color: var(--vi-gold); }

.menu-wrapper .primary-menu {
    display: flex; list-style: none; gap: 32px; align-items: center;
}
.menu-wrapper .primary-menu li a {
    font-size: 14px; font-weight: 500; color: rgba(255,255,255,0.85);
    transition: color 0.2s; position: relative; padding: 4px 0;
}
.menu-wrapper .primary-menu li a:hover,
.menu-wrapper .primary-menu li.current-menu-item a { color: var(--vi-white); }
.menu-wrapper .primary-menu li.current-menu-item a::after {
    content: ''; position: absolute; bottom: -2px; left: 0; right: 0;
    height: 2px; background: var(--vi-white); border-radius: 1px;
}

.nav-cta .btn-gold {
    font-size: 13px; padding: 10px 24px;
    background: transparent; color: var(--vi-white);
    border-color: var(--vi-white); font-weight: 600;
    letter-spacing: 0.5px; text-transform: uppercase;
}
.nav-cta .btn-gold:hover {
    background: var(--vi-white); color: var(--vi-primary);
}

/* Dropdown submenu */
.primary-menu li { position: relative; }
.primary-menu li .sub-menu {
    display: none; position: absolute; top: 100%; left: 0;
    background: #220660; min-width: 220px; border-radius: 8px;
    padding: 8px 0; box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    z-index: 100; list-style: none;
}
.primary-menu li:hover > .sub-menu { display: block; }
.primary-menu .sub-menu li a {
    display: block !important; padding: 10px 20px !important;
    font-size: 13px !important; color: rgba(255,255,255,0.8) !important;
    white-space: nowrap; border-bottom: 1px solid rgba(255,255,255,0.05);
}
.primary-menu .sub-menu li:last-child a { border-bottom: none; }
.primary-menu .sub-menu li a:hover { color: #C9A84C !important; background: rgba(255,255,255,0.05); }

.menu-toggle {
    display: none; background: none; border: none; cursor: pointer; padding: 8px;
}
.hamburger { display: flex; flex-direction: column; gap: 5px; }
.hamburger__line {
    width: 24px; height: 2px; background: var(--vi-white);
    transition: all 0.3s; border-radius: 2px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    font-family: var(--vi-font); font-weight: 600; border-radius: 8px;
    cursor: pointer; transition: all 0.25s ease; border: 2px solid transparent;
    text-decoration: none; font-size: 15px; padding: 12px 28px;
}
.btn-lg { padding: 16px 36px; font-size: 16px; }
.btn-gold {
    background: var(--vi-gold); color: #220660; border-color: var(--vi-gold);
    font-weight: 700;
}
.btn-gold:hover {
    background: #220660; color: var(--vi-white); border-color: #220660;
}
.btn-outline-light {
    background: transparent; color: var(--vi-white);
    border-color: rgba(255,255,255,0.5);
}
.btn-outline-light:hover {
    background: var(--vi-white); color: var(--vi-dark);
}
.btn-full { width: 100%; }

/* ============================================
   HERO — Imagem de fundo estilo Dmark
   ============================================ */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 92vh;
    padding: 7rem 0 5rem;
    text-align: center;
    color: #ffffff;
    background-color: #220660;
    background-size: cover;
    background-position: center center;
    overflow: hidden;
}
.hero__center {
    position: relative;
    z-index: 2;
}
.hero__text {
    max-width: 800px;
    margin: 0 auto;
}
.hero__title {
    font-size: clamp(4.9rem, 3.5rem + 7vw, 7.87rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #ffffff;
    letter-spacing: -1.5px;
}
.hero__stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}
.hero__stat {
    text-align: center;
    padding: 0 1.5rem;
    position: relative;
}
.hero__stat:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -1.25rem;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 48px;
    background-color: rgba(255,255,255,0.2);
}
.hero__stat-value {
    display: block;
    font-size: clamp(2.2rem, 1.5rem + 3vw, 3.2rem);
    font-weight: 900;
    color: #C9A84C;
    line-height: 1.1;
}
.hero__stat-label {
    display: block;
    font-size: clamp(0.85rem, 0.75rem + 0.4vw, 1.05rem);
    color: #ffffff;
    margin-top: 0.25rem;
}
.hero__subtitle {
    font-size: clamp(2.2rem, 2rem + 1vw, 2.8rem);
    margin-bottom: 2.5rem;
    color: #ffffff;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}
.hero__subtitle strong { color: #C9A84C; font-weight: 600; }
.hero__kicker {
    font-size: 12px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 2px; color: #C9A84C; margin-bottom: 12px;
}
.hero__checklist {
    list-style: none; margin-bottom: 32px; margin-top: 8px;
    display: inline-flex; flex-direction: column; gap: 14px;
    text-align: left;
}
.hero__checklist li {
    display: flex; align-items: center; gap: 12px;
    font-size: 15px; color: #ffffff; font-weight: 500;
}
.hero__check {
    display: inline-flex; align-items: center; justify-content: center;
    width: 26px; height: 26px; flex-shrink: 0;
    background: rgba(201,168,76,0.2); border-radius: 50%;
    color: #C9A84C;
}
.hero__check svg { width: 14px; height: 14px; }
.hero__ctas { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.hero__ctas .btn-gold {
    font-size: 15px; padding: 14px 36px; letter-spacing: 0.3px;
}
.hero__cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background-color: #C9A84C;
    color: #220660;
    font-weight: 700;
    padding: 1rem 2.4rem;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.05rem;
    transition: transform 0.3s, background-color 0.3s;
}
.hero__cta-btn:hover {
    background-color: #b39250;
    transform: scale(1.05);
}
.hero__cta-btn svg {
    transition: transform 0.3s;
}
.hero__cta-btn:hover svg {
    transform: translateX(4px);
}
.hero__microcopy {
    font-size: 0.95rem;
    margin-top: 1.25rem;
    color: rgba(255,255,255,0.8);
}
.text-gold { color: #C9A84C; }

@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 120px 20px 100px;
        text-align: center;
        align-items: center;
    }
    .hero__text { padding-bottom: 0; }
    .hero__title { font-size: clamp(2.8rem, 8.75vw, 4.2rem); letter-spacing: -0.5px; margin-bottom: 10px; }
    .hero__subtitle { font-size: 1.9rem; line-height: 1.3; margin-bottom: 1.2rem; }
    .hero__kicker { font-size: 10px; margin-bottom: 8px; }
    .hero__stats { gap: 1.2rem; margin: 1rem 0; }
    .hero__stat { padding: 0 0.5rem; }
    .hero__stat:not(:last-child)::after { display: none; }
    .hero__stat-value { font-size: 1.6rem; }
    .hero__stat-label { font-size: 0.75rem; }
    .hero__checklist {
        margin-left: 0; margin-right: 0; max-width: 100%;
        text-align: left; gap: 8px; margin-bottom: 20px;
    }
    .hero__checklist li { font-size: 12px; gap: 8px; }
    .hero__check { width: 20px; height: 20px; }
    .hero__check svg { width: 11px; height: 11px; }
    .hero__ctas .btn-gold {
        width: auto; display: inline-flex; justify-content: center;
        text-align: center; padding: 14px 36px; font-size: 14px;
    }
    .hero__microcopy { font-size: 0.75rem; margin-top: 10px; }

    /* Trust bar no mobile */
    .trust-bar { position: relative; }
}
@media (max-width: 500px) {
    .hero { padding: 100px 16px 80px; }
    .hero__title { font-size: 2.6rem; }
    .hero__subtitle { font-size: 1.8rem; }
    .hero__stats { flex-direction: row; }
    .hero__stat { flex: 1; padding: 0; }
    .hero__stat-value { font-size: 1.4rem; }
    .hero__checklist li { font-size: 11.5px; }
    .hero__checklist { display: inline-flex; }
}

/* Trust Bar — Marquee infinito */
.trust-bar {
    position: absolute; bottom: 0; left: 0; right: 0; z-index: 2;
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(8px);
    border-top: 1px solid rgba(255,255,255,0.08);
    overflow: hidden; padding: 14px 0;
}
.trust-bar__track {
    display: flex; width: max-content;
    animation: trustScroll 120s linear infinite;
}
.trust-bar__slide {
    display: flex; gap: 48px; padding-right: 48px; flex-shrink: 0;
}
.trust-item {
    display: flex; align-items: center; gap: 8px;
    white-space: nowrap; flex-shrink: 0;
}
.trust-item svg { color: #C9A84C; flex-shrink: 0; }
.trust-item span {
    font-size: 13px; color: rgba(255,255,255,0.8);
    font-family: var(--vi-font); font-weight: 400;
}
.trust-item span strong { color: var(--vi-white); font-weight: 700; }

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

.trust-bar:hover .trust-bar__track { animation-play-state: paused; }

.hero__scroll-indicator {
    position: absolute; bottom: 60px; left: 50%; transform: translateX(-50%);
    color: rgba(255,255,255,0.6); display: none;
}

/* ============================================
   PAGE HERO IMG — Páginas internas com imagem
   ============================================ */
.page-hero-img {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 45vh;
    padding: 120px 0 80px;
    text-align: center;
    color: #ffffff;
    background-color: #220660;
    background-size: cover;
    background-position: center center;
    overflow: hidden;
}
.page-hero-img__content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding-bottom: 60px;
}
.trust-bar--mini {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3;
}
.page-hero-img__title {
    font-size: clamp(2rem, 1.5rem + 3vw, 3.2rem);
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 12px;
    letter-spacing: -1px;
}
.page-hero-img__sub {
    font-size: clamp(1rem, 0.9rem + 0.5vw, 1.2rem);
    color: rgba(255,255,255,0.9);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}
@media (max-width: 768px) {
    .page-hero-img {
        min-height: auto;
        padding: 100px 20px 70px;
    }
    .page-hero-img__title { font-size: 1.6rem; }
}

/* ============================================
   SECTIONS — Common
   ============================================ */
.section { padding: 100px 0; }
.section__title {
    font-size: clamp(26px, 3.5vw, 38px); margin-bottom: 12px;
    text-align: center; color: var(--vi-dark);
}
.section__desc {
    font-size: 16px; color: #555; text-align: center;
    max-width: 600px; margin: 0 auto 48px; line-height: 1.6;
}
.micro-text { font-size: 13px; color: #777; margin-top: 12px; text-align: center; }

/* Secções com fundo claro alternado */
.advantages { background: var(--vi-white); }
.proof { background: var(--vi-light); }
.steps { background: var(--vi-light); }
.cases { background: var(--vi-light); }
.market { background: var(--vi-white); }
.form-section { background: var(--vi-light); }
.faq { background: var(--vi-white); }

/* Secções com fundo escuro (gradient) — texto branco */
.quiz-section { background: var(--vi-gradient); }
.quiz-section .section__title { color: var(--vi-white); }
.quiz-section .section__desc { color: rgba(255,255,255,0.9); }

.differentiator { background: var(--vi-gradient); color: var(--vi-white); }
.differentiator .section__title { color: var(--vi-white); }
.differentiator .section__desc { color: rgba(255,255,255,0.9); }
.differentiator .micro-text { color: rgba(255,255,255,0.75); }

.closing { background: var(--vi-gradient); text-align: center; color: var(--vi-white); }
.closing .section__title { color: var(--vi-white); }
.closing .section__desc { color: rgba(255,255,255,0.9); }
.closing .micro-text { color: rgba(255,255,255,0.75); }

/* Investor CTA - fundo claro */
.investor-cta { background: var(--vi-light); }

/* ============================================
   HOW WE BUY — 3 Passos
   ============================================ */
.how-we-buy { background: var(--vi-white); padding-top: 100px; padding-bottom: 100px; }
.hwb-header { text-align: center; margin-bottom: 56px; }
.hwb-title {
    font-size: clamp(26px, 3.5vw, 38px); color: var(--vi-dark);
    margin-bottom: 16px; line-height: 1.2;
}
.hwb-lead {
    font-size: 16px; color: #555; max-width: 560px; margin: 0 auto; line-height: 1.7;
}

.hwb-cards {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.hwb-card {
    position: relative; background: #1a0a3e;
    border-radius: var(--vi-radius-lg); padding: 40px 28px 36px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.2); border: 1px solid rgba(255,255,255,0.06);
    text-align: center; transition: transform 0.35s, box-shadow 0.35s;
    overflow: hidden;
}
.hwb-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0;
    height: 4px; background: linear-gradient(90deg, #C9A84C, #E8D48B);
}
.hwb-card:hover {
    transform: translateY(-8px); box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.hwb-card__number {
    position: absolute; top: 16px; left: 20px;
    font-family: var(--vi-font-heading); font-size: 48px; font-weight: 800;
    color: rgba(201,168,76,0.15); line-height: 1;
}
.hwb-card__icon {
    width: 64px; height: 64px; margin: 0 auto 20px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(201,168,76,0.1); border-radius: 50%;
    transition: transform 0.3s, background 0.3s;
}
.hwb-card:hover .hwb-card__icon {
    transform: scale(1.1); background: rgba(201,168,76,0.2);
}
.hwb-card__icon svg { width: 36px; height: 36px; }
.hwb-card h3 {
    font-family: var(--vi-font); font-size: 17px; font-weight: 700;
    color: #ffffff; margin-bottom: 12px;
}
.hwb-card p {
    font-size: 14px; color: rgba(255,255,255,0.7); line-height: 1.7; margin: 0;
}

@media (max-width: 968px) {
    .hwb-cards { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
}

/* ============================================
   ADVANTAGES — Cards grid
   ============================================ */
.advantages { padding-top: 80px; padding-bottom: 80px; }
.adv-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.adv-card {
    background: #1a0a3e; border-radius: var(--vi-radius-lg);
    padding: 36px 28px; text-align: center;
    box-shadow: 0 4px 24px rgba(0,0,0,0.2); border: 1px solid rgba(255,255,255,0.06);
    transition: transform 0.3s, box-shadow 0.3s;
    border-top: 4px solid #C9A84C;
}
.adv-card:hover {
    transform: translateY(-6px); box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.adv-card__icon {
    display: flex; justify-content: center; margin-bottom: 16px;
}
.adv-card__icon .vi-icon { width: 48px; height: 48px; }
.adv-card__icon .vi-icon svg { width: 100%; height: 100%; }
.adv-card h3 {
    font-family: var(--vi-font); font-size: 17px; font-weight: 700;
    color: #ffffff; margin-bottom: 8px;
}
.adv-card p {
    font-size: 14px; color: rgba(255,255,255,0.7); line-height: 1.6; margin: 0;
}

@media (max-width: 968px) {
    .adv-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .adv-grid { grid-template-columns: 1fr; }
}

/* ============================================
   INVESTOR CTA
   ============================================ */
.investor-cta { background: var(--vi-light); }
.investor-cta__inner {
    display: grid; grid-template-columns: 1fr auto; gap: 48px;
    align-items: center; padding: 48px; border-radius: var(--vi-radius-lg);
    background: var(--vi-white); box-shadow: var(--vi-shadow-lg);
    border-left: 5px solid #220660;
}
.investor-cta__content h2 {
    font-size: clamp(24px, 3vw, 34px); margin-bottom: 16px;
}
.investor-cta__content p {
    font-size: 16px; color: #555; margin-bottom: 24px; line-height: 1.7;
}
.investor-cta__list {
    list-style: none; margin-bottom: 28px; display: flex; flex-direction: column; gap: 10px;
}
.investor-cta__list li {
    display: flex; align-items: center; gap: 10px;
    font-size: 15px; color: var(--vi-text); font-weight: 500;
}
.investor-cta__list li svg { width: 18px; height: 18px; color: #C9A84C; flex-shrink: 0; }
.investor-cta__visual {
    display: flex; align-items: center; justify-content: center; opacity: 0.15;
}
.investor-cta__visual .vi-icon { width: 120px; height: 120px; }

@media (max-width: 968px) {
    .investor-cta__inner { grid-template-columns: 1fr; padding: 32px 24px; }
    .investor-cta__visual { display: none; }
}

/* ============================================
   QUIZ — Proposta 48h
   ============================================ */
.quiz-section { background: var(--vi-gradient); }
.quiz-section .section__title { color: var(--vi-white); }
.quiz-section .section__desc { color: rgba(255,255,255,0.8); }

.quiz-wrapper {
    max-width: 680px; margin: 0 auto;
    background: var(--vi-white); border-radius: var(--vi-radius-lg);
    padding: 40px 36px; box-shadow: var(--vi-shadow-lg);
}
.quiz-progress {
    height: 6px; background: rgba(34,6,96,0.08); border-radius: 3px;
    margin-bottom: 16px; overflow: hidden;
}
.quiz-progress__bar {
    height: 100%; background: var(--vi-gold); border-radius: 3px;
    transition: width 0.4s ease;
}
.quiz-steps-indicator {
    display: flex; justify-content: center; gap: 12px; margin-bottom: 32px;
}
.quiz-step-dot {
    width: 32px; height: 32px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700; font-family: var(--vi-font);
    background: rgba(34,6,96,0.06); color: var(--vi-text-light);
    transition: all 0.3s;
}
.quiz-step-dot.active { background: var(--vi-primary); color: var(--vi-white); }
.quiz-step-dot.done { background: var(--vi-gold); color: var(--vi-dark); }

.quiz-step { display: none; animation: quizFadeIn 0.4s ease; }
.quiz-step.active { display: block; }
@keyframes quizFadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

.quiz-step__title {
    font-family: var(--vi-font-heading); font-size: 22px;
    color: var(--vi-dark); text-align: center; margin-bottom: 28px;
}
.quiz-step__hint {
    font-size: 14px; color: var(--vi-text-light); text-align: center; margin-bottom: 20px;
}

/* Quiz radio cards */
.quiz-options {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.quiz-option input { display: none; }
.quiz-option__card {
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    padding: 24px 16px; border: 2px solid rgba(34,6,96,0.08);
    border-radius: var(--vi-radius); cursor: pointer;
    transition: all 0.25s; text-align: center;
    font-size: 14px; font-weight: 600; color: var(--vi-text);
}
.quiz-option__card:hover { border-color: #C9A84C; transform: translateY(-2px); }
.quiz-option input:checked + .quiz-option__card {
    border-color: #220660; background: rgba(34,6,96,0.06);
    box-shadow: 0 0 0 3px rgba(34,6,96,0.12);
}

/* Quiz radio inline */
.quiz-radio-row { display: flex; gap: 10px; flex-wrap: wrap; }
.quiz-radio { cursor: pointer; }
.quiz-radio input { display: none; }
.quiz-radio span {
    display: inline-block; padding: 10px 18px; border: 1.5px solid rgba(34,6,96,0.12);
    border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--vi-text);
    transition: all 0.2s;
}
.quiz-radio span:hover { border-color: #C9A84C; }
.quiz-radio input:checked + span {
    border-color: #220660; background: rgba(34,6,96,0.06); color: #220660; font-weight: 600;
}

/* Quiz fields */
.quiz-fields { display: flex; flex-direction: column; gap: 4px; }

/* Quiz upload */
.quiz-upload-area {
    border: 2px dashed rgba(34,6,96,0.15); border-radius: var(--vi-radius);
    padding: 8px; min-height: 160px; cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}
.quiz-upload-area.dragover { border-color: var(--vi-gold); background: rgba(201,168,76,0.04); }
.quiz-upload-placeholder {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 10px; padding: 32px; color: var(--vi-text-light);
    font-size: 15px; font-weight: 500;
}
.quiz-upload-placeholder svg { color: var(--vi-gold); opacity: 0.6; }
.quiz-upload-hint { font-size: 12px; color: var(--vi-text-light); opacity: 0.7; }
.quiz-photos-grid {
    display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px;
}
.quiz-photo-thumb {
    position: relative; aspect-ratio: 1; border-radius: 8px; overflow: hidden;
    background: var(--vi-light);
}
.quiz-photo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.quiz-photo-remove {
    position: absolute; top: 4px; right: 4px;
    width: 22px; height: 22px; border-radius: 50%;
    background: rgba(0,0,0,0.6); color: #fff; border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; line-height: 1;
}
.quiz-photo-count { font-size: 13px; color: var(--vi-text-light); text-align: center; margin-top: 12px; }

/* Quiz nav */
.quiz-nav {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 32px; padding-top: 24px; border-top: 1px solid rgba(0,0,0,0.06);
}
.btn-outline-dark {
    background: transparent; color: var(--vi-text); border: 1.5px solid rgba(34,6,96,0.15);
}
.btn-outline-dark:hover { background: var(--vi-light); }

/* Quiz success */
.quiz-success { text-align: center; padding: 40px 0; }
.quiz-success__icon { margin-bottom: 24px; }
.quiz-success__title { font-size: 24px; color: var(--vi-dark); margin-bottom: 12px; }
.quiz-success__text { font-size: 16px; color: var(--vi-text-light); line-height: 1.7; }

@media (max-width: 600px) {
    .quiz-options { grid-template-columns: repeat(2, 1fr); }
    .quiz-photos-grid { grid-template-columns: repeat(3, 1fr); }
    .quiz-wrapper { padding: 28px 20px; }
    .quiz-nav { flex-direction: column; gap: 12px; }
    .quiz-nav .btn { width: 100%; }
}

/* ============================================
   PROOF — Stats + Testimonials
   ============================================ */
.stats-row {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
    margin-bottom: 64px; text-align: center;
}
.stat { padding: 32px 20px; }
.stat__number {
    font-family: var(--vi-font-heading); font-size: 56px; font-weight: 700;
    color: #220660; line-height: 1;
}
.stat__plus { font-family: var(--vi-font-heading); font-size: 36px; color: var(--vi-gold); font-weight: 700; }
.stat__label { display: block; font-size: 14px; color: #555; margin-top: 8px; }

.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.testimonial {
    background: var(--vi-white); border-radius: var(--vi-radius-lg);
    padding: 36px 28px; box-shadow: var(--vi-shadow);
    border: 1px solid rgba(34,6,96,0.04);
    transition: transform 0.3s, box-shadow 0.3s;
}
.testimonial:hover { transform: translateY(-4px); box-shadow: var(--vi-shadow-lg); }
.testimonial__quote {
    font-family: var(--vi-font-heading); font-size: 48px; color: var(--vi-gold);
    line-height: 1; margin-bottom: 8px;
}
.testimonial__text { font-size: 15px; color: var(--vi-text); margin-bottom: 20px; line-height: 1.7; }
.testimonial__author strong { display: block; font-size: 14px; color: var(--vi-dark); }
.testimonial__author span { font-size: 13px; color: var(--vi-gold); font-weight: 500; }

/* ============================================
   BENEFITS
   ============================================ */
.benefits-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.benefit-col {
    background: var(--vi-white); border-radius: var(--vi-radius-lg);
    padding: 40px 36px; box-shadow: var(--vi-shadow);
    border-top: 4px solid var(--vi-gold);
}
.benefit-col--investor { border-top-color: var(--vi-primary); }
.benefit-col__header {
    display: flex; align-items: center; gap: 12px; margin-bottom: 28px;
}
.benefit-col__icon { font-size: 32px; }
.benefit-col__header h3 { font-size: 20px; color: var(--vi-dark); }
.benefit-item { margin-bottom: 24px; display: flex; gap: 14px; }
.benefit-item__icon { flex-shrink: 0; margin-top: 2px; }
.benefit-item__icon .vi-icon svg { width: 32px; height: 32px; }
.benefit-item h4 { font-family: var(--vi-font); font-size: 16px; font-weight: 700; margin-bottom: 6px; color: var(--vi-dark); }
.benefit-item p { font-size: 14px; color: var(--vi-text-light); line-height: 1.7; }

/* ============================================
   DIFFERENTIATOR
   ============================================ */
.differentiator { background: var(--vi-gradient); color: var(--vi-white); }
.differentiator .section__title { color: var(--vi-white); }
.diff-content { max-width: 800px; margin: 0 auto; text-align: center; }
.diff-content p { color: rgba(255,255,255,0.95); font-size: 16px; margin-bottom: 16px; }
.diff-what-you-get {
    display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
    margin: 40px 0;
}
.diff-card {
    background: rgba(255,255,255,0.08); border-radius: var(--vi-radius);
    padding: 28px 24px; text-align: left;
    border: 1px solid rgba(255,255,255,0.12);
}
.diff-card h4 { font-family: var(--vi-font); font-size: 15px; color: var(--vi-gold); margin-bottom: 8px; font-weight: 700; }
.diff-card p { font-size: 14px; color: rgba(255,255,255,0.95); margin: 0; }

/* ============================================
   STEPS
   ============================================ */
.steps-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.steps-row--4 { grid-template-columns: repeat(4, 1fr); gap: 28px; }
.step { text-align: center; position: relative; }
.step__icon { margin-bottom: 12px; display: flex; justify-content: center; }
.step__icon .vi-icon svg { width: 36px; height: 36px; }
.step__number {
    width: 64px; height: 64px; border-radius: 50%;
    background: var(--vi-gradient); color: var(--vi-white);
    font-family: var(--vi-font-heading); font-size: 28px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
}
.step__line {
    position: absolute; top: 32px; left: calc(50% + 40px);
    width: calc(100% - 80px); height: 2px;
    background: linear-gradient(90deg, var(--vi-gold) 0%, rgba(201,168,76,0.2) 100%);
}
.step:last-child .step__line { display: none; }
.step h3 { font-size: 18px; margin-bottom: 10px; color: var(--vi-dark); }
.step p { font-size: 14px; color: #666; }

/* ============================================
   CASES
   ============================================ */
.cases-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.case-card {
    background: var(--vi-white); border-radius: var(--vi-radius-lg);
    padding: 36px; box-shadow: var(--vi-shadow); position: relative;
    border: 1px solid rgba(34,6,96,0.04);
    transition: transform 0.3s;
}
.case-card:hover { transform: translateY(-4px); }
.case-card__badge {
    display: inline-block; padding: 4px 14px; border-radius: 20px;
    font-size: 12px; font-weight: 700; text-transform: uppercase;
    background: rgba(46,125,50,0.1); color: #2e7d32; margin-bottom: 16px;
}
.case-card__badge--invest { background: rgba(34,6,96,0.1); color: #220660; }
.case-card h3 { font-size: 18px; margin-bottom: 12px; }
.case-card p { font-size: 14px; color: #555; margin-bottom: 20px; line-height: 1.7; }
.case-card__result {
    display: flex; align-items: baseline; gap: 10px;
    padding-top: 16px; border-top: 1px solid rgba(0,0,0,0.06);
}
.case-card__metric {
    font-family: var(--vi-font-heading); font-size: 28px; font-weight: 700; color: var(--vi-gold);
}
.case-card__detail { font-size: 13px; color: #555; }

/* ============================================
   MARKET
   ============================================ */
.market-content {
    max-width: 800px; margin: 0 auto; text-align: center;
}
.market-content p { font-size: 16px; margin-bottom: 16px; color: var(--vi-text); line-height: 1.8; }
.market-content strong { color: var(--vi-dark); }

/* ============================================
   FORM
   ============================================ */
.form-section { background: var(--vi-light); }
.form-wrapper {
    max-width: 600px; margin: 0 auto;
    background: var(--vi-white); border-radius: var(--vi-radius-lg);
    padding: 48px 40px; box-shadow: var(--vi-shadow-lg);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block; font-size: 13px; font-weight: 600;
    color: var(--vi-dark); margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%; padding: 14px 16px; border: 1.5px solid rgba(34,6,96,0.12);
    border-radius: 8px; font-family: var(--vi-font); font-size: 15px;
    color: var(--vi-text); background: var(--vi-white);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none; border-color: #220660;
    box-shadow: 0 0 0 3px rgba(34,6,96,0.1);
}
.form-group select { cursor: pointer; }
.form-micro { font-size: 12px; color: var(--vi-text-light); text-align: center; margin-top: 16px; }

/* ============================================
   FAQ
   ============================================ */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
    border-bottom: 1px solid rgba(34,6,96,0.08);
}
.faq-item__question {
    width: 100%; display: flex; justify-content: space-between; align-items: center;
    padding: 20px 0; background: none; border: none; cursor: pointer;
    font-family: var(--vi-font); font-size: 16px; font-weight: 600;
    color: var(--vi-dark); text-align: left;
}
.faq-item__question:hover { color: #220660; }
.faq-item__icon { transition: transform 0.3s; flex-shrink: 0; margin-left: 16px; }
.faq-item.is-open .faq-item__icon { transform: rotate(180deg); }
.faq-item__answer {
    max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.3s;
}
.faq-item.is-open .faq-item__answer {
    max-height: 300px; padding-bottom: 20px;
}
.faq-item__answer p { font-size: 15px; color: var(--vi-text); line-height: 1.7; }

/* ============================================
   CLOSING
   ============================================ */
.closing-content { max-width: 700px; margin: 0 auto; }
.closing h2 { color: var(--vi-white); font-size: clamp(24px, 3vw, 34px); margin-bottom: 20px; }
.closing p { color: rgba(255,255,255,0.95); font-size: 16px; margin-bottom: 28px; }

/* ============================================
   BOOKING CALENDAR — Agendamento
   ============================================ */
.booking-section { background: var(--vi-light); }
.scheduler {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0;
    max-width: 900px; margin: 2rem auto 0;
    background: #1a0a3e; border-radius: var(--vi-radius-lg);
    box-shadow: 0 4px 24px rgba(0,0,0,0.2); border: 1px solid rgba(255,255,255,0.06);
    overflow: hidden; color: #fff;
}
.scheduler__calendar { padding: 2rem; }
.scheduler__slots {
    padding: 2rem; border-left: 1px solid rgba(255,255,255,0.08);
}

/* Calendar header */
.cal-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 1.5rem;
}
.cal-month {
    font-size: 1.15rem; font-weight: 700; color: #ffffff;
    text-align: center; flex-grow: 1;
}
.cal-nav {
    background: none; border: 1px solid rgba(255,255,255,0.15); border-radius: 50%;
    width: 36px; height: 36px; cursor: pointer; color: rgba(255,255,255,0.7);
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
}
.cal-nav:hover { background: rgba(255,255,255,0.1); color: #fff; }

/* Weekdays */
.cal-weekdays {
    display: grid; grid-template-columns: repeat(7, 1fr);
    gap: 4px; text-align: center; margin-bottom: 8px;
}
.cal-weekdays span {
    font-size: 0.8rem; font-weight: 600; color: rgba(255,255,255,0.5);
    padding-bottom: 6px;
}

/* Day cells */
.cal-days {
    display: grid; grid-template-columns: repeat(7, 1fr);
    gap: 4px; text-align: center;
}
.cal-day {
    display: flex; align-items: center; justify-content: center;
    height: 38px; border-radius: 50%; font-size: 0.9rem;
    transition: all 0.2s; border: 2px solid transparent;
}
.cal-day--empty { visibility: hidden; }
.cal-day--disabled {
    color: rgba(255,255,255,0.2); cursor: not-allowed;
}
.cal-day--available {
    color: #ffffff; cursor: pointer; font-weight: 500;
}
.cal-day--available:hover {
    background: rgba(255,255,255,0.1); color: #fff;
}
.cal-day--today {
    border-color: #C9A84C; font-weight: 700;
}
.cal-day--selected {
    background: #C9A84C !important; color: #220660 !important; font-weight: 700;
}

/* Slots */
.slots-title {
    font-size: 1.1rem; font-weight: 600; color: #ffffff;
    margin-bottom: 1.5rem; text-align: center;
}
.slots-grid {
    display: grid; grid-template-columns: repeat(2, 1fr);
    gap: 10px; max-height: 320px; overflow-y: auto;
}
.slots-placeholder {
    grid-column: 1 / -1; text-align: center; padding: 2.5rem 0;
    color: rgba(255,255,255,0.5); font-size: 0.95rem;
}
.slot-btn {
    padding: 10px; border: 1.5px solid #C9A84C; color: #C9A84C;
    border-radius: 8px; text-align: center; cursor: pointer;
    background: none; font-weight: 600; font-size: 0.95rem;
    transition: all 0.2s; font-family: var(--vi-font);
}
.slot-btn:hover {
    background: rgba(201,168,76,0.1); transform: scale(1.03);
}

/* Back button mobile */
.cal-back-btn {
    display: none; align-items: center; gap: 6px;
    background: none; border: 1px solid rgba(255,255,255,0.15); border-radius: 8px;
    padding: 8px 14px; font-size: 0.85rem; color: rgba(255,255,255,0.7);
    cursor: pointer; margin-bottom: 1rem; font-family: var(--vi-font);
}

/* Modal */
.booking-modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 2000; display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s;
}
.booking-modal.is-open { opacity: 1; visibility: visible; }
.booking-modal__backdrop {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
}
.booking-modal__content {
    position: relative; background: #fff; padding: 2.5rem;
    border-radius: var(--vi-radius-lg); width: 90%; max-width: 500px;
    transform: scale(0.9); transition: transform 0.3s;
    z-index: 2;
}
.booking-modal.is-open .booking-modal__content { transform: scale(1); }
.booking-modal__close {
    position: absolute; top: 1rem; right: 1.2rem;
    background: none; border: none; font-size: 1.8rem;
    color: #999; cursor: pointer; line-height: 1;
}
.booking-modal__close:hover { color: var(--vi-dark); }
.booking-modal__content h4 {
    text-align: center; margin-bottom: 0.5rem; font-size: 1.3rem;
}
.booking-modal__date {
    text-align: center; color: #C9A84C; font-weight: 600;
    margin-bottom: 1.5rem !important; font-size: 1rem;
}
.booking-modal__content .form-group { margin-bottom: 1rem; }
.booking-modal__content .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* Booking success */
.booking-success {
    text-align: center; padding: 1rem 0;
}
.booking-success svg { margin-bottom: 1rem; }
.booking-success h4 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.booking-success p { color: var(--vi-text); }

/* Mobile */
@media (max-width: 768px) {
    .scheduler { grid-template-columns: 1fr; }
    .scheduler__slots { border-left: none; border-top: 1px solid #e9ecef; }
    .scheduler:not(.show-slots) .scheduler__slots { display: none; }
    .scheduler.show-slots .scheduler__calendar { display: none; }
    .scheduler.show-slots .cal-back-btn { display: flex; }
    .booking-modal__content { padding: 1.5rem; }
    .booking-modal__content .form-row { grid-template-columns: 1fr; }
}

/* ============================================
   SITUAÇÕES — Compramos em qualquer situação
   ============================================ */
.situations { background: var(--vi-light); }
.sit-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.sit-card {
    position: relative; background: #1a0a3e; border-radius: var(--vi-radius-lg);
    padding: 40px 24px 36px; text-align: center;
    box-shadow: 0 4px 24px rgba(0,0,0,0.2); border: 1px solid rgba(255,255,255,0.06);
    transition: transform 0.35s, box-shadow 0.35s; overflow: hidden;
}
.sit-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0;
    height: 4px; background: linear-gradient(90deg, #C9A84C, #E8D48B);
}
.sit-card:hover { transform: translateY(-8px); box-shadow: 0 12px 40px rgba(0,0,0,0.3); }
.sit-card__icon {
    width: 64px; height: 64px; margin: 0 auto 20px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(201,168,76,0.1); border-radius: 50%;
    transition: transform 0.3s, background 0.3s;
}
.sit-card:hover .sit-card__icon { transform: scale(1.1); background: rgba(201,168,76,0.2); }
.sit-card__icon svg { width: 36px; height: 36px; }
.sit-card h3 { font-size: 17px; font-weight: 700; color: #ffffff; margin-bottom: 12px; }
.sit-card p { font-size: 14px; color: rgba(255,255,255,0.7); line-height: 1.7; margin: 0; }
@media (max-width: 768px) { .sit-grid { grid-template-columns: 1fr; gap: 16px; } }
@media (max-width: 500px) { .sit-grid { grid-template-columns: 1fr; } }

/* ============================================
   CONTADORES — Números animados
   ============================================ */
.counters-section {
    background: var(--vi-gradient); padding: 64px 0;
}
.counters-row {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
    text-align: center;
}
.counter-item { padding: 16px 0; }
.counter-value {
    font-size: clamp(2.5rem, 2rem + 2vw, 3.5rem);
    font-weight: 900; color: #C9A84C; display: inline;
    line-height: 1;
}
.counter-plus {
    font-size: clamp(1.5rem, 1rem + 1.5vw, 2rem);
    font-weight: 900; color: #C9A84C;
}
.counter-label {
    display: block; font-size: 14px; color: rgba(255,255,255,0.85);
    margin-top: 8px; font-weight: 500;
}
@media (max-width: 768px) {
    .counters-row { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}
@media (max-width: 500px) {
    .counters-row { grid-template-columns: repeat(2, 1fr); }
    .counter-value { font-size: 2rem; }
}

/* ============================================
   ONDE ATUAMOS — Fitas animadas concelhos
   ============================================ */
.onde-atuamos { padding-bottom: 0; overflow: hidden; }
.onde-atuamos .section__kicker {
    display: block; text-align: center; font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 2px; color: #C9A84C;
    margin-bottom: 10px;
}

/* Wrapper das fitas */
.tape-wrapper {
    margin-top: 48px;
    height: 220px;
    position: relative;
    overflow: hidden;
}
.tape-container {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    overflow: hidden;
}

/* Cada fita */
.tape {
    position: absolute;
    display: flex;
    align-items: center;
    width: 250vw;
    height: 58px;
    left: -75vw;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    box-shadow: 0 6px 24px rgba(0,0,0,0.2);
}
.tape-1 {
    top: 50%;
    transform: translateY(-50%) rotate(-5deg);
    z-index: 2;
    background: #220660;
    color: #ffffff;
}
.tape-2 {
    top: 50%;
    transform: translateY(-50%) rotate(5deg);
    z-index: 1;
    background: #C9A84C;
    color: #220660;
}

/* Track de scroll */
.tape-track {
    display: flex;
    align-items: center;
    height: 100%;
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
    will-change: transform;
}
.track-right {
    -webkit-animation: tape-scroll-right 160s linear infinite;
    animation: tape-scroll-right 160s linear infinite;
}
.track-left {
    -webkit-animation: tape-scroll-left 160s linear infinite;
    animation: tape-scroll-left 160s linear infinite;
}

@-webkit-keyframes tape-scroll-right {
    0%   { -webkit-transform: translateX(-50%); transform: translateX(-50%); }
    100% { -webkit-transform: translateX(0%); transform: translateX(0%); }
}
@keyframes tape-scroll-right {
    0%   { transform: translateX(-50%); }
    100% { transform: translateX(0%); }
}
@-webkit-keyframes tape-scroll-left {
    0%   { -webkit-transform: translateX(0%); transform: translateX(0%); }
    100% { -webkit-transform: translateX(-50%); transform: translateX(-50%); }
}
@keyframes tape-scroll-left {
    0%   { transform: translateX(0%); }
    100% { transform: translateX(-50%); }
}

/* Items dentro das fitas */
.tape-item {
    flex-shrink: 0;
    padding: 0 24px;
    font-size: 15px;
    white-space: nowrap;
    line-height: 58px;
}
.tape-sep {
    flex-shrink: 0;
    opacity: 0.35;
    font-size: 8px;
    padding: 0 4px;
    line-height: 58px;
}

@media (max-width: 768px) {
    .tape-wrapper { height: 170px; }
    .tape { height: 46px; }
    .tape-item { padding: 0 16px; font-size: 12px; line-height: 46px; }
    .tape-sep { line-height: 46px; }
}

/* ============================================
   SERVICE BLOCKS — Serviços alternados
   ============================================ */
.srv-block { padding-top: 80px; padding-bottom: 80px; }
.srv-row {
    display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
}
.srv-row--reverse .srv-content { order: 2; }
.srv-row--reverse .srv-visual { order: 1; }
.srv-label {
    display: inline-block; font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1.5px;
    color: #C9A84C; margin-bottom: 12px;
    background: rgba(201,168,76,0.08); padding: 4px 12px; border-radius: 20px;
}
.srv-content h2 {
    font-size: clamp(22px, 2.5vw, 30px); color: var(--vi-dark);
    margin-bottom: 16px; line-height: 1.2;
}
.srv-content p {
    font-size: 15px; color: #555; line-height: 1.8; margin-bottom: 20px;
}
.srv-list {
    list-style: none; margin-bottom: 28px;
    display: flex; flex-direction: column; gap: 10px;
}
.srv-list li {
    font-size: 14px; color: #555; padding-left: 24px; position: relative; line-height: 1.6;
}
.srv-list li::before {
    content: ''; position: absolute; left: 0; top: 7px;
    width: 10px; height: 10px; border-radius: 50%;
    background: #C9A84C; opacity: 0.6;
}
.srv-visual { display: flex; align-items: center; justify-content: center; }
.srv-visual svg { width: 100%; max-width: 380px; height: auto; }

@media (max-width: 968px) {
    .srv-row { grid-template-columns: 1fr; gap: 32px; }
    .srv-row--reverse .srv-content { order: 1; }
    .srv-row--reverse .srv-visual { order: 2; }
    .srv-visual svg { max-width: 280px; }
}

/* ============================================
   PAGE HERO — Páginas internas
   ============================================ */
.page-hero {
    position: relative; background: var(--vi-gradient);
    padding: 140px 0 60px; text-align: center; overflow: hidden;
}
.page-hero .hero__kicker {
    font-size: 12px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 2px; color: #C9A84C; margin-bottom: 12px;
    font-family: var(--vi-font);
}
.page-hero .hero__title {
    font-size: clamp(28px, 4vw, 42px); color: var(--vi-white);
    margin-bottom: 16px; font-weight: 800; line-height: 1.15;
    text-transform: none;
}
.page-hero .hero__subtitle {
    font-size: 17px; color: rgba(255,255,255,0.9); max-width: 560px;
    margin: 0 auto; line-height: 1.6;
}

/* Page content */
.page-content { max-width: 800px; margin: 0 auto; padding: 60px 24px; }
.page-content h2 { margin-bottom: 16px; }
.page-content p { color: #555; line-height: 1.8; margin-bottom: 16px; }

/* Contact page grid */
.contact-grid {
    display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; align-items: start;
}
.contact-info h3 { font-size: 20px; margin-bottom: 20px; color: var(--vi-dark); }
.contact-info-item {
    display: flex; align-items: flex-start; gap: 14px; margin-bottom: 20px;
}
.contact-info-item svg { width: 20px; height: 20px; color: #C9A84C; flex-shrink: 0; margin-top: 2px; }
.contact-info-item a { color: var(--vi-text); font-size: 15px; }
.contact-info-item a:hover { color: #220660; }
.contact-info-item span { color: #555; font-size: 15px; line-height: 1.5; }
.contact-social { display: flex; gap: 12px; margin-top: 24px; }
.contact-social a {
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(34,6,96,0.06); display: flex; align-items: center; justify-content: center;
    transition: background 0.2s;
}
.contact-social a:hover { background: rgba(34,6,96,0.12); }
.contact-social a svg { width: 18px; height: 18px; color: #220660; }

@media (max-width: 968px) {
    .page-hero { padding: 110px 0 48px; }
    .contact-grid { grid-template-columns: 1fr; }
}

/* ============================================
   WP CONTENT — Páginas genéricas (legais, etc.)
   ============================================ */
.wp-content { max-width: 800px; margin: 0 auto; }
.wp-content h2 { font-size: 1.4rem; color: var(--vi-dark); margin: 2rem 0 0.75rem; }
.wp-content h3 { font-size: 1.15rem; color: var(--vi-dark); margin: 1.5rem 0 0.5rem; }
.wp-content p { font-size: 15px; color: #555; line-height: 1.8; margin-bottom: 1rem; }
.wp-content ul { margin: 0.5rem 0 1.5rem 1.5rem; }
.wp-content ul li { font-size: 15px; color: #555; line-height: 1.8; margin-bottom: 0.4rem; }
.wp-content a { color: var(--vi-primary); text-decoration: underline; }
.wp-content strong { color: var(--vi-dark); }
.wp-content em { color: #999; font-size: 13px; }

/* ============================================
   BLOG — Grid de posts
   ============================================ */
.blog-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.blog-card {
    background: #1a0a3e; border-radius: var(--vi-radius); overflow: hidden;
    border: 1px solid rgba(255,255,255,0.06); transition: transform 0.3s, box-shadow 0.3s;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.3); }
.blog-card__img { display: block; overflow: hidden; }
.blog-card__img img { transition: transform 0.3s; }
.blog-card:hover .blog-card__img img { transform: scale(1.05); }
.blog-card__body { padding: 20px; }
.blog-card__date { font-size: 12px; color: rgba(255,255,255,0.5); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
.blog-card__title { font-size: 16px; margin: 8px 0; line-height: 1.4; }
.blog-card__title a { color: #ffffff; }
.blog-card__title a:hover { color: #C9A84C; }
.blog-card__excerpt { font-size: 13px; color: rgba(255,255,255,0.6); line-height: 1.6; margin-bottom: 12px; }
.blog-card__link { font-size: 13px; font-weight: 700; color: #C9A84C; }
@media (max-width: 768px) { .blog-grid { grid-template-columns: 1fr 1fr; gap: 20px; } }
@media (max-width: 500px) { .blog-grid { grid-template-columns: 1fr; } }

/* ============================================
   BLOG SINGLE — Artigo individual
   ============================================ */
.blog-single { padding-top: 0 !important; }
.blog-single__hero {
    width: 100%; max-height: 480px; overflow: hidden;
    margin-top: 64px;
}
.blog-single__img {
    width: 100%; height: 480px; object-fit: cover; display: block;
}
.blog-single__header {
    max-width: 800px; margin: 0 auto; padding: 40px 0 24px;
    text-align: center;
}
.blog-single__meta {
    display: flex; justify-content: center; align-items: center; gap: 16px;
    margin-bottom: 16px; font-size: 13px;
}
.blog-single__date { color: #999; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
.blog-single__cats a {
    color: #C9A84C; font-weight: 600; font-size: 12px;
    text-transform: uppercase; letter-spacing: 0.5px;
}
.blog-single__title {
    font-size: clamp(1.8rem, 1.5rem + 2vw, 2.8rem);
    font-weight: 800; color: var(--vi-dark); line-height: 1.25;
}
.blog-single__body { max-width: 800px; margin: 0 auto; padding: 24px 0 48px; }
.blog-single__footer {
    max-width: 800px; margin: 0 auto; padding: 24px 0 48px;
    border-top: 1px solid #eee;
}
.blog-single__back {
    font-size: 14px; font-weight: 600; color: var(--vi-dark);
    transition: color 0.2s;
}
.blog-single__back:hover { color: #C9A84C; }
@media (max-width: 768px) {
    .blog-single__img { height: 280px; }
    .blog-single__header { padding: 24px 0 16px; }
}

/* ============================================
   MOBILE BOTTOM BAR
   ============================================ */
.mobile-bar {
    display: none;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 9998;
    background: #1a0a3e;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 6px 0 env(safe-area-inset-bottom, 6px);
    justify-content: space-around;
    align-items: center;
}
.mobile-bar__item {
    display: flex; flex-direction: column; align-items: center;
    gap: 2px; text-decoration: none; color: rgba(255,255,255,0.6);
    font-size: 10px; font-weight: 600; letter-spacing: 0.3px;
    padding: 4px 0; flex: 1; text-align: center;
    transition: color 0.2s;
}
.mobile-bar__item:active,
.mobile-bar__item:hover { color: #C9A84C; }
.mobile-bar__item svg { flex-shrink: 0; }
.mobile-bar__item--phone {
    color: #C9A84C;
    position: relative;
    margin-top: -18px;
}
.mobile-bar__item--phone svg {
    background: #C9A84C;
    color: #1a0a3e;
    stroke: #1a0a3e;
    border-radius: 50%;
    padding: 10px;
    width: 52px; height: 52px;
    box-shadow: 0 4px 16px rgba(201,168,76,0.4);
}
.mobile-bar__item--phone span { color: #C9A84C; font-size: 9px; margin-top: 2px; }
.mobile-bar__item--wa { color: #25D366; }
.mobile-bar__item--wa svg { fill: #25D366; }
.mobile-bar__item--wa:active { color: #128C7E; }

@media (max-width: 768px) {
    .mobile-bar { display: flex; }
    .whatsapp-button { display: none !important; }
    body { padding-bottom: 72px; }
}

/* ============================================
   FOOTER
   ============================================ */
.vilaris-footer { background: var(--vi-dark); color: rgba(255,255,255,0.8); padding: 64px 0 32px; }
.footer-columns {
    display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 40px; margin-bottom: 48px;
}
.footer-logo { display: inline-block; margin-bottom: 16px; }
.footer-logo img { max-height: 60px; width: auto; }
.footer-about { font-size: 13px; color: rgba(255,255,255,0.6); line-height: 1.7; margin-bottom: 16px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(255,255,255,0.08); display: flex;
    align-items: center; justify-content: center;
    color: rgba(255,255,255,0.7); transition: all 0.2s;
}
.footer-social a:hover { background: #C9A84C; color: #220660; }
.footer-column-title {
    color: #C9A84C; font-size: 13px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 20px;
}
.footer-link-list { list-style: none; }
.footer-link-list li {
    margin-bottom: 12px; font-size: 14px;
    color: rgba(255,255,255,0.6); display: flex; align-items: flex-start; gap: 8px;
}
.footer-link-list li svg { flex-shrink: 0; margin-top: 2px; color: #C9A84C; }
.footer-link-list a { color: rgba(255,255,255,0.7); font-size: 14px; transition: color 0.2s; }
.footer-link-list a:hover { color: #C9A84C; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08); padding-top: 20px;
    text-align: center; font-size: 12px; color: rgba(255,255,255,0.4);
}
@media (max-width: 768px) {
    .footer-columns { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 500px) {
    .footer-columns { grid-template-columns: 1fr; gap: 24px; }
}

/* ============================================
   ANIMATIONS
   ============================================ */
.anim-fade-up {
    opacity: 0; transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.anim-fade-up.is-visible { opacity: 1; transform: translateY(0); }

.anim-fade-in {
    opacity: 0; transition: opacity 1s ease;
}
.anim-fade-in.is-visible { opacity: 1; }

.anim-reveal {
    opacity: 0; transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.anim-reveal.is-visible { opacity: 1; transform: translateY(0); }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}
.anim-float { animation: float 4s ease-in-out infinite; }

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}
.anim-bounce { animation: bounce 2s ease-in-out infinite; }

/* ============================================
   WHATSAPP + BACK TO TOP
   ============================================ */
.whatsapp-button {
    position: fixed; bottom: 30px; right: 30px; z-index: 999;
    width: 56px; height: 56px; background: #25D366; color: #fff;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2); transition: transform 0.3s;
}
.whatsapp-button:hover { transform: scale(1.1); }
.whatsapp-button svg { width: 28px; height: 28px; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1100px) {
    .hero__inner { grid-template-columns: 1.2fr 1fr; gap: 24px; }
}

@media (max-width: 968px) {
    .stats-row { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .benefits-grid { grid-template-columns: 1fr; }
    .diff-what-you-get { grid-template-columns: 1fr; }
    .steps-row, .steps-row--4 { grid-template-columns: 1fr; gap: 32px; }
    .step__line { display: none; }
    .cases-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .form-wrapper { padding: 32px 24px; }
    .footer-bottom { flex-direction: column; text-align: center; gap: 8px; }

    .menu-wrapper { display: none !important; }
    .nav-cta { display: none !important; }
    .menu-toggle {
        display: flex !important; position: relative; z-index: 10000;
    }
    body.menu-open { overflow: hidden; }
}

@media (max-width: 600px) {
    .section { padding: 64px 0; }
    .stat__number { font-size: 40px; }
}

/* ============================================
   DASHBOARD MOBILE MENU
   ============================================ */
.dash-menu, .dash-overlay { display: none; }

@media (max-width: 968px) {
    .dash-overlay {
        display: none; position: fixed; inset: 0; z-index: 9998;
        background: rgba(0,0,0,0.6); backdrop-filter: blur(4px);
        opacity: 0; transition: opacity 0.3s;
    }
    .dash-overlay.is-open { display: block; opacity: 1; }

    .dash-menu {
        display: none; position: fixed; top: 0; right: 0;
        width: 100%; max-width: 380px; height: 100vh; height: 100dvh;
        background: #0d0325; z-index: 9999;
        overflow-y: auto; -webkit-overflow-scrolling: touch;
        padding: 24px 20px 100px; transform: translateX(100%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -8px 0 32px rgba(0,0,0,0.5);
    }
    .dash-menu.is-open { display: block; transform: translateX(0); }

    .dash-menu__header {
        display: flex; align-items: center; justify-content: space-between;
        margin-bottom: 8px; padding-bottom: 16px;
        border-bottom: 1px solid rgba(255,255,255,0.06);
    }
    .dash-menu__logo { height: 36px; width: auto; filter: brightness(1.2); }
    .dash-menu__close {
        background: rgba(255,255,255,0.06); border: none; color: #fff;
        width: 40px; height: 40px; border-radius: 12px;
        display: flex; align-items: center; justify-content: center;
        cursor: pointer; transition: background 0.2s;
    }
    .dash-menu__close:hover { background: rgba(255,255,255,0.12); }

    .dash-menu__sub {
        font-size: 12px; color: rgba(255,255,255,0.4);
        text-align: center; margin-bottom: 24px; letter-spacing: 0.5px;
    }

    .dash-grid {
        display: grid; grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    .dash-grid--sub { grid-template-columns: repeat(2, 1fr); gap: 10px; }

    .dash-tile {
        display: flex; flex-direction: column; align-items: center;
        justify-content: center; gap: 8px;
        background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
        border-radius: 16px; padding: 20px 8px;
        color: #fff; text-decoration: none;
        transition: all 0.2s; cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        user-select: none; position: relative;
    }
    .dash-tile span {
        font-size: 11px; font-weight: 600; letter-spacing: 0.3px;
        text-align: center; line-height: 1.3;
    }
    .dash-tile svg { opacity: 0.7; transition: opacity 0.2s; }
    .dash-tile:hover, .dash-tile:active {
        background: rgba(201,168,76,0.1);
        border-color: rgba(201,168,76,0.3);
        transform: scale(0.96);
    }
    .dash-tile:active svg { opacity: 1; }

    /* Long press indicator */
    .dash-tile--gold {
        background: rgba(201,168,76,0.12);
        border-color: rgba(201,168,76,0.3);
    }
    .dash-tile--gold svg { stroke: #C9A84C; opacity: 1; }
    .dash-tile--gold span { color: #C9A84C; }
    .dash-tile--gold::after {
        content: ''; position: absolute; bottom: 6px; left: 50%;
        transform: translateX(-50%); width: 16px; height: 3px;
        background: rgba(201,168,76,0.4); border-radius: 2px;
    }

    .dash-tile--phone {
        background: rgba(37,211,102,0.08);
        border-color: rgba(37,211,102,0.2);
    }
    .dash-tile--phone svg { stroke: #25D366; opacity: 1; }
    .dash-tile--phone span { color: #25D366; }

    .dash-tile--whatsapp {
        background: rgba(37,211,102,0.12);
        border-color: rgba(37,211,102,0.3);
    }
    .dash-tile--whatsapp svg { fill: #25D366; opacity: 1; }
    .dash-tile--whatsapp span { color: #25D366; }

    .dash-tile--sm {
        padding: 14px 6px; gap: 6px;
    }
    .dash-tile--sm span { font-size: 10px; }


    /* Concelhos grid */
    .dash-concelhos {
        margin-top: 24px; padding-top: 20px;
        border-top: 1px solid rgba(255,255,255,0.06);
    }
    .dash-concelhos__title {
        font-size: 11px; font-weight: 700; color: rgba(255,255,255,0.35);
        text-transform: uppercase; letter-spacing: 1px;
        text-align: center; margin-bottom: 12px;
    }
    .dash-concelhos__grid {
        display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
    }
    .dash-concelho-link {
        display: flex; align-items: center; justify-content: center; gap: 5px;
        background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
        border-radius: 8px; padding: 10px 6px;
        color: rgba(255,255,255,0.6); text-decoration: none;
        font-size: 10px; font-weight: 500;
        transition: all 0.2s; white-space: nowrap;
        text-align: center;
    }
    .dash-concelho-link:hover, .dash-concelho-link:active {
        background: rgba(201,168,76,0.1);
        border-color: rgba(201,168,76,0.3);
        color: #C9A84C;
    }

    .dash-menu__micro {
        font-size: 10px; color: rgba(255,255,255,0.2);
        text-align: center; margin-top: 24px; letter-spacing: 0.3px;
    }

    /* Hide old menu wrapper on mobile when dash menu exists */
    .menu-wrapper { display: none !important; }
    .menu-toggle { display: flex !important; position: relative; z-index: 10000; }
    body.menu-open { overflow: hidden; }
}

/* ============================================
   CONCELHOS MARQUEE — Infinite scroll (10 concelhos)
   ============================================ */
.concelhos-marquee {
    padding-bottom: 60px;
    overflow: hidden;
    background: linear-gradient(135deg, #220660 0%, #1a0a3e 100%);
}
.concelhos-marquee .section__title {
    color: #ffffff;
}
.concelhos-marquee .section__title .text-gold { color: #C9A84C; }
.concelhos-marquee .section__desc {
    color: rgba(255,255,255,0.78);
}
.cm-bar {
    position: relative;
    overflow: hidden;
    padding: 24px 0;
    margin-top: 32px;
    border-top: 1px solid rgba(201,168,76,0.2);
    border-bottom: 1px solid rgba(201,168,76,0.2);
    mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
}
.cm-bar__track {
    display: flex;
    width: max-content;
    animation: cmScroll 60s linear infinite;
    gap: 0;
}
.cm-item {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 40px;
    min-width: 180px;
    text-decoration: none;
    color: rgba(255,255,255,0.75);
    transition: color 0.25s, transform 0.25s;
    flex-shrink: 0;
}
.cm-item__icon { color: #C9A84C; transition: transform 0.25s; }
.cm-item__name {
    font-family: var(--vi-font);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-align: center;
    white-space: nowrap;
}
.cm-item:hover { color: #ffffff; transform: translateY(-2px); }
.cm-item:hover .cm-item__icon { transform: scale(1.15); }
.cm-item--active { color: #C9A84C; }
.cm-item--active .cm-item__name { font-weight: 800; }

.cm-bar:hover .cm-bar__track { animation-play-state: paused; }

@keyframes cmScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-25%); }
}

@media (max-width: 768px) {
    .cm-item { padding: 8px 24px; min-width: 140px; }
    .cm-item__name { font-size: 13px; }
    .cm-item__icon { width: 22px; height: 22px; }
}

/* ============================================
   COOKIE CONSENT BANNER (minimal)
   ============================================ */
.vi-cookie {
    position: fixed; bottom: 16px; left: 16px; right: 16px; z-index: 9999;
    max-width: 680px; margin: 0 auto;
    background: #1a0a3e;
    color: #ffffff;
    padding: 14px 18px;
    border-radius: 10px;
    border: 1px solid rgba(201,168,76,0.2);
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    animation: viCookieFade 0.35s ease-out;
    font-family: var(--vi-font);
}
@keyframes viCookieFade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.vi-cookie__inner {
    display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
}
.vi-cookie__text {
    flex: 1 1 260px; margin: 0;
    font-size: 13px; line-height: 1.5;
    color: rgba(255,255,255,0.82);
}
.vi-cookie__text a { color: #C9A84C; text-decoration: underline; }
.vi-cookie__text a:hover { color: #E8D48B; }
.vi-cookie__prefs {
    display: flex; flex-wrap: wrap; gap: 14px; width: 100%;
    padding: 8px 0 4px; margin: 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 10px;
}
.vi-cookie__prefs label {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 12px; color: rgba(255,255,255,0.85); cursor: pointer;
}
.vi-cookie__prefs input[type="checkbox"] {
    width: 14px; height: 14px; accent-color: #C9A84C; cursor: pointer;
}
.vi-cookie__prefs input[type="checkbox"]:disabled { opacity: 0.6; cursor: not-allowed; }
.vi-cookie__actions {
    display: flex; gap: 6px; flex-wrap: wrap; align-items: center;
}
.vi-cookie__btn {
    font-family: var(--vi-font); font-size: 12px; font-weight: 600;
    padding: 8px 14px; border-radius: 6px; cursor: pointer;
    border: 1px solid transparent; transition: all 0.2s; white-space: nowrap;
    background: transparent;
}
.vi-cookie__btn--ghost {
    color: rgba(255,255,255,0.7);
}
.vi-cookie__btn--ghost:hover { color: #ffffff; }
.vi-cookie__btn--accept {
    background: #C9A84C; color: #220660; font-weight: 700;
}
.vi-cookie__btn--accept:hover { background: #E8D48B; }
.vi-cookie__btn--save {
    background: #C9A84C; color: #220660; font-weight: 700;
}
.vi-cookie__btn--save:hover { background: #E8D48B; }

@media (max-width: 600px) {
    .vi-cookie { bottom: 12px; left: 12px; right: 12px; padding: 12px 14px; }
    .vi-cookie__text { font-size: 12px; flex: 1 1 100%; }
    .vi-cookie__actions { width: 100%; justify-content: flex-end; }
    .vi-cookie__btn { font-size: 11px; padding: 7px 12px; }
}
