/* Configuração do Design System CIMC Imobiliária */
:root {
    --brand-main: #010A87;
    --brand-hover: #1B2A6B;
    --brand-accent: #3A4A9F;
    --brand-dark: #0f1530;
    --brand-gray: #5A5A5A;
    --brand-light: #F7F8FC;
    --whatsapp-color: #25D366;
    --bg-color: #F7F8FC;
    --text-color: #1a1a2e;
    --card-bg: #FFFFFF;
    --border-color: rgba(27, 42, 107, 0.08);
    --ease-premium: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ========================================
   CIMC IMOBILIÁRIA - COLOR SYSTEM
   ======================================== */

/* ========================================
   PRELOADER PREMIUM (elemento emprestado do padrão Philos,
   cores/tipografia adaptadas à identidade CIMC — azul-marinho + serifa)
   ======================================== */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    opacity: 1;
    transition: opacity .8s cubic-bezier(0.65, 0, 0.35, 1), visibility 0s linear .8s;
}

.preloader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 40%, rgba(58, 74, 159, .18) 0%, transparent 60%),
        linear-gradient(180deg, #111a3d 0%, #0f1530 50%, #090d24 100%);
}

.preloader-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 1.5rem;
    animation: preloader-content-in 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes preloader-content-in {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.preloader-logo-ring {
    position: relative;
    width: 120px;
    height: 120px;
    margin-bottom: 1.8rem;
}

.preloader-ring-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.preloader-ring-track {
    fill: none;
    stroke: rgba(139, 150, 196, .16);
    stroke-width: 1.2;
}

.preloader-ring-progress {
    fill: none;
    stroke: #8B96C4;
    stroke-width: 1.2;
    stroke-linecap: round;
    stroke-dasharray: 352;
    stroke-dashoffset: 352;
    animation: preloader-ring-fill 2.2s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

@keyframes preloader-ring-fill {
    to { stroke-dashoffset: 0; }
}

.preloader-logo {
    position: absolute;
    inset: 16px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.preloader-logo img {
    width: 88%;
    height: 88%;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(139, 150, 196, .25));
}

#cimc-preloader .preloader-welcome,
body.light-mode #cimc-preloader .preloader-welcome,
body.dark-mode #cimc-preloader .preloader-welcome,
.preloader-welcome {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-weight: 500;
    font-size: .95rem;
    color: rgba(255, 255, 255, 0.9) !important;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.9) !important;
    letter-spacing: .03em;
    margin: 0 0 .35rem;
    opacity: 0;
    animation: preloader-fade-up .7s .55s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

#cimc-preloader .preloader-brand,
body.light-mode #cimc-preloader .preloader-brand,
body.dark-mode #cimc-preloader .preloader-brand,
.preloader-brand {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    letter-spacing: .06em;
    font-size: clamp(1.6rem, 6vw, 2.05rem);
    line-height: 1.15;
    color: #FFFFFF !important;
    -webkit-text-fill-color: #FFFFFF !important;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4) !important;
    margin: 0 0 .75rem;
    opacity: 0;
    animation: preloader-fade-up .8s .75s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

#cimc-preloader .preloader-tagline,
body.light-mode #cimc-preloader .preloader-tagline,
body.dark-mode #cimc-preloader .preloader-tagline,
.preloader-tagline {
    font-size: .52rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8) !important;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.8) !important;
    letter-spacing: .24em;
    text-transform: uppercase;
    margin: 0 0 1.8rem;
    opacity: 0;
    animation: preloader-fade-up .7s .95s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes preloader-fade-up {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.preloader-progress {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .65rem;
    opacity: 0;
    animation: preloader-fade-up .7s 1.15s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.preloader-bar {
    width: 110px;
    height: 1.5px;
    border-radius: 999px;
    background: rgba(139, 150, 196, .25);
    overflow: hidden;
    position: relative;
}

.preloader-bar span {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, transparent 0%, #FFFFFF 50%, transparent 100%);
    transform: translateX(-100%);
    animation: preloader-bar-slide 1.6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes preloader-bar-slide {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

#cimc-preloader .preloader-loading-text,
body.light-mode #cimc-preloader .preloader-loading-text,
body.dark-mode #cimc-preloader .preloader-loading-text,
.preloader-loading-text {
    font-size: .48rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.75) !important;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.75) !important;
    letter-spacing: .38em;
    text-transform: uppercase;
    margin: 0;
    padding-left: .38em;
}

#cimc-preloader .preloader-dot,
body.light-mode #cimc-preloader .preloader-dot,
body.dark-mode #cimc-preloader .preloader-dot,
.preloader-dot {
    display: inline-block;
    color: #FFFFFF !important;
    -webkit-text-fill-color: #FFFFFF !important;
    opacity: .3;
    animation: preloader-dot-blink 1.4s infinite;
}

.preloader-dot:nth-child(1) { animation-delay: 0s; }
.preloader-dot:nth-child(2) { animation-delay: .2s; }
.preloader-dot:nth-child(3) { animation-delay: .4s; }

@keyframes preloader-dot-blink {
    0%, 100% { opacity: .3; }
    50% { opacity: 1; }
}

/* ========================================
   BOTÕES INICIAIS "link-card" (formato emprestado do padrão Philos,
   substitui os cards grandes h-24 com ícone gigante translúcido)
   ======================================== */
.link-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--card-bg);
    border-radius: 1.5rem;
    padding: 1.4rem 1.25rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 12px rgba(27, 42, 107, .06);
    transition: all .35s var(--ease-premium);
    text-decoration: none;
    color: var(--brand-dark);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.link-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(58, 74, 159, .22);
    border-color: var(--brand-accent);
}

.link-card:active {
    transform: scale(.98);
}

body.dark-mode .link-card {
    background: #1A1F3D;
    border-color: rgba(58, 74, 159, .18);
}

.lc-icon {
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.85rem;
    color: var(--brand-main);
}

body.dark-mode .lc-icon { color: #fff; }

.lc-label {
    font-size: .58rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .18em;
    color: var(--brand-gray);
    margin-bottom: 2px;
}

.lc-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    font-size: 1.4rem;
    line-height: 1.05;
    color: var(--brand-dark);
}

body.dark-mode .lc-title { color: #F7F8FC; }

.lc-arrow {
    margin-left: auto;
    color: var(--brand-main);
    font-size: .72rem;
    opacity: .55;
    transition: all .3s var(--ease-premium);
}

body.dark-mode .lc-arrow { color: #fff; }

.link-card:hover .lc-arrow {
    opacity: 1;
    transform: translateX(3px);
}

/* Card premium (WhatsApp principal) — fundo cheio na cor de marca */
.link-card.card-premium {
    background: linear-gradient(135deg, var(--brand-main) 0%, var(--brand-hover) 100%) !important;
    border: none !important;
    box-shadow: 0 10px 30px rgba(15, 21, 48, .3) !important;
}

.link-card.card-premium:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 14px 40px rgba(15, 21, 48, .45) !important;
    border-color: transparent !important;
}

.link-card.card-premium .lc-icon,
.link-card.card-premium .lc-icon i { color: #fff !important; }

.link-card.card-premium .lc-title {
    color: #fff !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, .18);
}

.link-card.card-premium .lc-label { color: rgba(255, 255, 255, .75) !important; }

.link-card.card-premium .lc-arrow {
    color: rgba(255, 255, 255, .8) !important;
    opacity: 1 !important;
}

/* ========================================
   CABEÇALHOS DE SEÇÃO "eyebrow / sec-title" (padrão Philos)
   Convive com .diferenciais-eyebrow/.diferenciais-titulo já usados no restante da página
   ======================================== */
.eyebrow {
    font-size: .6rem;
    font-weight: 700;
    letter-spacing: .25em;
    text-transform: uppercase;
    color: var(--brand-main);
    margin-bottom: .35rem;
    display: block;
    text-align: center;
}

body.dark-mode .eyebrow { color: #fff; }

.sec-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    font-size: clamp(2.1rem, 8vw, 2.8rem);
    line-height: .96;
    color: var(--brand-dark);
    margin-bottom: .65rem;
    text-align: center;
    text-transform: uppercase;
}

body.dark-mode .sec-title { color: #F7F8FC; }

.sec-line {
    width: 36px;
    height: 2px;
    background: linear-gradient(90deg, var(--brand-main), var(--brand-accent));
    border-radius: 2px;
    margin: 0 auto .7rem;
}

.sec-sub {
    font-size: .77rem;
    color: var(--brand-gray);
    line-height: 1.65;
    max-width: 300px;
    text-align: center;
    margin: 0 auto;
}

/* ========================================
   SEÇÃO "SOBRE" com foto em destaque fundindo no card (padrão Philos)
   ======================================== */
.sobre-clinica-box {
    background: var(--card-bg);
    border-radius: 2rem;
    padding: 2rem 1.5rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(27, 42, 107, .06);
    transition: all .5s var(--ease-premium);
    overflow: hidden;
    position: relative;
}

body.dark-mode .sobre-clinica-box {
    background: #10122B;
    border-color: rgba(58, 74, 159, .2);
}

.sobre-hero-img {
    position: relative;
    margin: -2rem -1.5rem 1.8rem;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.sobre-hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sobre-hero-grad {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.sobre-hero-grad-light {
    background: linear-gradient(to bottom, transparent 0%, transparent 55%, rgba(255, 255, 255, .55) 80%, #fff 100%);
}

.sobre-hero-grad-dark { display: none; }

body.dark-mode .sobre-hero-grad-light { display: none; }

body.dark-mode .sobre-hero-grad-dark {
    display: block;
    background: linear-gradient(to bottom, transparent 0%, transparent 55%, rgba(16, 18, 43, .65) 80%, #10122B 100%);
}

.sobre-clinica-box p {
    color: var(--brand-gray);
    line-height: 1.75;
    font-size: .78rem;
}

body.dark-mode .sobre-clinica-box p { color: rgba(247, 248, 252, .72); }

.sobre-clinica-box strong { color: var(--brand-main); }

body.dark-mode .sobre-clinica-box strong { color: var(--brand-accent); }

.stat-mini {
    background: rgba(27, 42, 107, .05);
    border: 1px solid var(--border-color);
}

body.dark-mode .stat-mini {
    background: rgba(58, 74, 159, .1);
    border-color: rgba(58, 74, 159, .15);
}

.stat-mini i { color: var(--brand-main); }
body.dark-mode .stat-mini i { color: #fff; }

.stat-mini p {
    color: var(--brand-gray);
    font-weight: 700;
}

body.dark-mode .stat-mini p { color: #F7F8FC; opacity: .85; }

/* ========================================
   GALERIA MARQUEE (scroll automático contínuo, padrão Philos)
   ======================================== */
.gal-marquee {
    overflow: hidden;
    width: 100%;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%);
}

.gal-track {
    display: flex;
    width: max-content;
    gap: .75rem;
    animation: gal-scroll-right 28s linear infinite !important;
}

.gal-marquee:hover .gal-track {
    animation-play-state: paused;
}

.gal-slide {
    flex: 0 0 auto;
    width: 220px;
    aspect-ratio: 3 / 4;
    border-radius: 1.25rem;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(27, 42, 107, .12);
    border: 1px solid var(--border-color);
}

.gal-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s var(--ease-premium);
}

.gal-slide:hover img {
    transform: scale(1.06);
}

@keyframes gal-scroll-right {
    from { transform: translateX(-50%); }
    to   { transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
    .gal-track { animation: none; }
}

/* ========================================
   GRID DE SERVIÇOS "srv-card" (padrão Philos)
   ======================================== */
.srv-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .9rem;
}

.srv-card {
    display: flex;
    flex-direction: column;
    background: #10122B;
    border-radius: 1.75rem;
    overflow: hidden;
    border: 1px solid rgba(58, 74, 159, .1);
    transition: all .35s var(--ease-premium);
    position: relative;
}

body:not(.dark-mode) .srv-card {
    background: var(--card-bg);
    border-color: var(--border-color);
    box-shadow: 0 2px 12px rgba(27, 42, 107, .06);
}

.srv-card:hover {
    border-color: rgba(58, 74, 159, .4);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0,0,0,.18);
}

.srv-img-wrap {
    position: relative;
    width: 100%;
    height: 9rem;
    overflow: hidden;
    border-bottom: 1px solid rgba(58, 74, 159, .1);
}

.srv-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .7s var(--ease-premium);
}

.srv-card:hover .srv-img-wrap img {
    transform: scale(1.1);
}

.srv-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15,21,48,.95) 0%, rgba(15,21,48,.3) 60%, transparent 100%);
}

.srv-img-title {
    position: absolute;
    bottom: .65rem;
    left: .75rem;
    color: #fff;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: .95rem;
    font-weight: 700;
    letter-spacing: -0.005em;
    line-height: 1.15;
    text-shadow: 0 1px 4px rgba(0,0,0,.4);
}

.srv-body {
    padding: .9rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: .6rem;
}

.srv-desc {
    font-size: .62rem;
    color: rgba(255,255,255,.6);
    line-height: 1.5;
    flex: 1;
}

body:not(.dark-mode) .srv-desc { color: var(--brand-gray); }

.srv-cta {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .6rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--brand-main);
    text-decoration: none;
    transition: transform .3s var(--ease-premium);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
}

body.dark-mode .srv-cta { color: #fff; }

.srv-cta:hover { transform: translateX(4px); }

.srv-cta i { font-size: .5rem; }

/* Card institucional final da grade — logo CIMC + CTAs */
.srv-card-brand {
    background: #10122B;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(58, 74, 159, .12);
    padding: 0;
    cursor: default;
    position: relative;
    overflow: hidden;
}

body:not(.dark-mode) .srv-card-brand {
    background: var(--card-bg);
    border-color: var(--border-color);
}

.srv-brand-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 1.5rem;
    transition: all .4s var(--ease-premium);
}

.srv-brand-logo {
    width: 90px;
    height: auto;
    opacity: 0.3;
    transition: all .5s var(--ease-premium);
    filter: grayscale(1) brightness(1.5);
}

body:not(.dark-mode) .srv-brand-logo {
    filter: grayscale(1) brightness(0.7);
}

.srv-card-brand:hover .srv-brand-logo {
    opacity: 1;
    filter: grayscale(0) brightness(1);
    transform: translateY(-15px) scale(0.9);
}

.srv-brand-hover-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: all .4s var(--ease-premium);
}

.srv-card-brand:hover .srv-brand-hover-content {
    opacity: 1;
    transform: translateY(-5px);
    pointer-events: auto;
}

.srv-brand-btn {
    width: 100%;
    background: transparent;
    border: 1px solid var(--brand-main);
    color: var(--brand-main);
    font-size: .55rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .12em;
    padding: .75rem;
    border-radius: .65rem;
    cursor: pointer;
    transition: all .3s var(--ease-premium);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
}

body.dark-mode .srv-brand-btn {
    border-color: var(--brand-accent);
    color: var(--brand-accent);
}

.srv-brand-btn:hover { background: var(--brand-main); color: #fff; }

body.dark-mode .srv-brand-btn:hover { background: var(--brand-main); color: #fff; }

.srv-brand-link {
    font-size: .6rem;
    color: rgba(255,255,255,.45);
    text-decoration: none;
    font-weight: 600;
    transition: color .3s var(--ease-premium);
    display: flex;
    align-items: center;
    gap: .3rem;
}

body:not(.dark-mode) .srv-brand-link { color: var(--brand-gray); }

.srv-brand-link:hover { color: var(--brand-main); }

/* ========================================
   REPUTAÇÃO / AVALIAÇÕES "reputation-360" (padrão Philos)
   ======================================== */
.reputation-360 {
    padding: 2.5rem 0;
    overflow: hidden;
    position: relative;
}

.reputation-header {
    width: 100%;
    margin: 0 auto 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: .8rem;
    padding: 0 1rem;
}

.google-stars-top {
    color: #FBBC04;
    display: flex;
    justify-content: center;
    gap: .15rem;
    font-size: .7rem;
    opacity: 0.6;
}

.google-logo-sub { display: flex; justify-content: center; }

.google-logo-sub img {
    width: 60px;
    opacity: 1;
    filter: none !important;
}

.reputation-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--brand-dark);
    text-transform: uppercase;
    letter-spacing: .04em;
    margin: 0;
}

body.dark-mode .reputation-title { color: #F7F8FC; }

.reputation-carousel-container { overflow: hidden; width: 100%; }

.reputation-carousel {
    display: flex;
    gap: 2rem;
    width: max-content;
    animation: infiniteScroll 80s linear infinite;
    padding: 1rem 1.5rem;
}

.reputation-carousel:hover { animation-play-state: paused; }

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

.review-card {
    width: 260px;
    background: transparent;
    border-radius: 0;
    padding: 0 1.25rem;
    border-left: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: .8rem;
    transition: all .4s var(--ease-premium);
    flex-shrink: 0;
}

.review-card:hover { border-left-color: var(--brand-accent); }

.review-user { display: flex; align-items: center; gap: .8rem; }

.review-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--brand-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #F7F8FC;
    font-size: .7rem;
    flex-shrink: 0;
    opacity: 0.9;
}

body.dark-mode .review-avatar {
    color: var(--bg-color);
}

.review-user-info h4 {
    font-size: .75rem;
    font-weight: 700;
    color: var(--brand-dark);
    letter-spacing: .02em;
}

body.dark-mode .review-user-info h4 { color: #F7F8FC; }

.review-user-info span {
    font-size: .55rem;
    color: var(--brand-gray);
    text-transform: uppercase;
    letter-spacing: .05em;
}

.review-stars {
    color: #FBBC04;
    font-size: .65rem;
    display: flex;
    gap: .1rem;
    opacity: 0.9;
}

.review-text {
    font-size: .75rem;
    line-height: 1.7;
    color: var(--brand-dark);
    opacity: 0.65;
    font-weight: 400;
}

body.dark-mode .review-text { color: #F7F8FC; opacity: .65; }

.reputation-footer {
    display: flex;
    justify-content: center;
    margin-top: 2.5rem;
}

.btn-google {
    display: flex;
    align-items: center;
    gap: .6rem;
    background: transparent;
    border-bottom: 1px solid var(--brand-accent);
    padding: .5rem 0;
    border-radius: 0;
    font-size: .65rem;
    font-weight: 700;
    color: var(--brand-dark);
    text-decoration: none;
    transition: all .3s var(--ease-premium);
    letter-spacing: .2em;
    opacity: 0.85;
}

body.dark-mode .btn-google { color: #F7F8FC; }

.btn-google:hover { opacity: 1; transform: translateY(-2px); }

.btn-google img { width: 14px; filter: grayscale(1); }

/* ========================================
   MODAIS DE SERVIÇO "srv-modal" (padrão Philos)
   ======================================== */
.srv-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.srv-modal-box {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 2rem;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding-bottom: 2rem;
    animation: srvModalFadeIn .35s cubic-bezier(0.23, 1, 0.32, 1);
}

body.dark-mode .srv-modal-box {
    background: #10122B;
    border-color: rgba(58, 74, 159, .2);
}

@keyframes srvModalFadeIn {
    from { transform: scale(0.96); opacity: 0; }
    to   { transform: scale(1);    opacity: 1; }
}

.srv-modal-img {
    width: 100%;
    height: 10rem;
    object-fit: cover;
    border-radius: 2rem 2rem 0 0;
    display: block;
}

.srv-modal-close {
    position: absolute;
    top: .85rem;
    right: .85rem;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(0,0,0,.5);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: .85rem;
    transition: transform .3s var(--ease-premium), background .3s var(--ease-premium);
    z-index: 10;
}

.srv-modal-close:hover {
    transform: rotate(90deg);
    background: rgba(58, 74, 159, .5);
}

.srv-modal-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.005em;
    color: var(--brand-dark);
    padding: 1rem 1.25rem .35rem;
}

body.dark-mode .srv-modal-title { color: #F7F8FC; }

.srv-modal-desc {
    font-size: .75rem;
    color: var(--brand-gray);
    line-height: 1.6;
    padding: 0 1.25rem .85rem;
}

body.dark-mode .srv-modal-desc { color: rgba(247,248,252,.65); }

.srv-modal-list {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    padding: 0 1.25rem 1.25rem;
}

.srv-modal-item {
    display: flex;
    align-items: center;
    gap: .65rem;
    font-size: .72rem;
    color: var(--brand-dark);
    font-weight: 500;
    background: rgba(27, 42, 107, .05);
    border: 1px solid var(--border-color);
    border-radius: .85rem;
    padding: .65rem .9rem;
}

body.dark-mode .srv-modal-item {
    color: #F7F8FC;
    background: rgba(58, 74, 159, .1);
    border-color: rgba(58, 74, 159, .18);
}

.srv-modal-item i {
    color: var(--brand-main);
    font-size: .65rem;
    flex-shrink: 0;
}

body.dark-mode .srv-modal-item i { color: #fff; }

.srv-modal-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    margin: 0 1.25rem;
    padding: 1rem;
    border-radius: 1rem;
    background: var(--brand-main);
    color: #fff;
    font-size: .62rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .18em;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(27, 42, 107, .3);
    transition: transform .3s var(--ease-premium), box-shadow .3s var(--ease-premium);
}

.srv-modal-cta:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 28px rgba(27, 42, 107, .4);
}

.srv-modal-cta i { font-size: .85rem; }

/* Light Mode (Padrão) - Fundo claro institucional, azul-royal real da logo */
body.light-mode {
    --brand-main: #010A87;
    --brand-hover: #1B2A6B;
    --brand-accent: #3A4A9F;
    --brand-dark: #0f1530;
    --brand-gray: #5A5A5A;
    --brand-light: #F7F8FC;
    --bg-color: #F7F8FC;
    --text-color: #1a1a2e;
    --card-bg: #FFFFFF;
    --border-color: rgba(27, 42, 107, 0.08);
}

* {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

img {
    -webkit-user-drag: none;
    pointer-events: none;
}

a,
button,
input,
textarea,
[data-interactive="true"] {
    user-select: auto;
    pointer-events: auto;
}

/* ==========================================================
   WHATSAPP FLOATING BUTTON COM BALÃO DE MENSAGEM (SKILL LINK360)
   ========================================================== */
.whatsapp-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

/* Balão de Mensagem */
#whatsapp-message {
    width: 210px;
    position: absolute;
    bottom: 75px;
    right: 0px;
    padding: 12px 28px 12px 14px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    color: #1a1a1b;
    border-radius: 16px;
    font-size: 11.5px;
    font-weight: 500;
    line-height: 1.4;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px) scale(0.96);
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.4);
    z-index: 1002;
}

/* Cauda do Balão */
#whatsapp-message::after {
    content: '';
    position: absolute;
    bottom: -6px;
    right: 25px;
    width: 12px;
    height: 12px;
    background: inherit;
    transform: rotate(45deg);
    border-right: 1px solid rgba(255, 255, 255, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    z-index: -1;
}

#whatsapp-message.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Botão Fechar (X) */
.close-whatsapp-bubble {
    position: absolute;
    top: 6px;
    right: 8px;
    background: transparent;
    border: none;
    color: #000;
    cursor: pointer;
    font-size: 11px;
    opacity: 0.5;
    transition: opacity 0.2s;
    padding: 2px 4px;
}

.close-whatsapp-bubble:hover { opacity: 1; }

/* Botão Flutuante (Ícone) */
.whatsapp-float {
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #FFF !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.35);
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    z-index: 1001;
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(5deg);
    background-color: #128c7e;
    color: #FFF !important;
}

/* Efeito de Ping/Pulso */
.whatsapp-float::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #25d366;
    z-index: -1;
    animation: whatsapp-pulse 2s infinite;
}

@keyframes whatsapp-pulse {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.6); opacity: 0; }
}

/* Notificação Vermelha Sutil */
.whatsapp-notify {
    position: absolute;
    top: -2px;
    right: -2px;
    background-color: #ff3b30;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: scale(0);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1003;
}

.whatsapp-notify.show {
    opacity: 1;
    transform: scale(1);
}

/* Dark Mode Support */
body.dark-mode #whatsapp-message {
    background: rgba(16, 18, 43, 0.94);
    color: #e5e5e7;
    border-color: rgba(58, 74, 159, 0.35);
    box-shadow: 0 14px 35px -5px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(58, 74, 159, 0.15);
}

body.dark-mode #whatsapp-message::after {
    background: rgba(16, 18, 43, 0.94);
    border-right-color: rgba(58, 74, 159, 0.35);
    border-bottom-color: rgba(58, 74, 159, 0.35);
}

body.dark-mode .close-whatsapp-bubble {
    color: #fff;
}

body.dark-mode .whatsapp-notify {
    border-color: #0f1530;
}

/* Dark Mode - Fundo azul escuro, destaques branco e azul-royal real da logo */
body.dark-mode {
    --brand-main: #010A87;
    --brand-hover: #1B2A6B;
    --brand-accent: #4A5AB0;
    --brand-dark: #F7F8FC;
    --brand-gray: #8B9AD8;
    --brand-light: #0f0f1a;
    --bg-color: #0f0f1a;
    --text-color: #FFFFFF;
    --card-bg: #161b33;
    --border-color: rgba(58, 74, 159, 0.15);
}

/* Light Mode */
/* REMOVIDO - Definição duplicada/incorreta. Usar a definição correta nas linhas 22-33 */

/* ========== LIGHT MODE OVERRIDES - CONFIANÇA ASSESSORIA ========== */

/* Light Mode - Fundo claro azulado e design editorial */
body.light-mode {
    background-color: #F8F9FC !important;
    --bg-color: #F8F9FC !important;
    --brand-light: #F8F9FC !important;
}

body.light-mode .min-h-screen,
body.light-mode #root>div {
    background-color: #F8F9FC !important;
}

/* Tipografia Editorial - Playfair Display para todos os títulos (igual ao dark mode) */
body.light-mode h1,
body.light-mode h2,
body.light-mode h3,
body.light-mode h4,
body.light-mode .font-title {
    font-family: 'Playfair Display', Georgia, serif !important;
    text-transform: uppercase !important;
    letter-spacing: -0.02em !important;
    color: #1a1a2e !important;
}

/* Títulos sobre foto com degradê (cards de serviço) — sempre branco, mesmo no light */
body.light-mode h3.srv-img-title {
    color: #fff !important;
}

/* Cards e Seções no light mode */
body.light-mode .bg-white,
body.light-mode .bg-zinc-900:not([class*="bg-[#18181b]"]),
body.light-mode [class*="bg-[#18181b]"],
body.light-mode section .rounded-2xl:not([class*="bg-[#18181b]"]):not(a):not(button),
body.light-mode section .rounded-3xl:not([class*="bg-[#18181b]"]):not(a):not(button),
body.light-mode section [class*="rounded-[2"]:not([class*="bg-[#18181b]"]):not(a):not(button) {
    background-color: #FFFFFF !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.02) !important;
}

body.light-mode .modal-content {
    background-color: #FFFFFF !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

/* Textos no light mode - Contraste industrial */
body.light-mode p,
body.light-mode .text-zinc-600,
body.light-mode .text-zinc-500 {
    color: #444444 !important;
}

body.light-mode .text-brand-dark,
body.light-mode .text-zinc-900,
body.light-mode .text-black {
    color: #1a1a2e !important;
}

/* Exceção para textos sobre vídeos e fundos escuros */
body.light-mode .video-section h1,
body.light-mode .video-section h2,
body.light-mode .video-section h3,
body.light-mode .video-section h4,
body.light-mode #video-gallery h4,
body.light-mode #video-gallery p.text-white\/70,
body.light-mode .\!text-white {
    color: #FFFFFF !important;
}

/* Diferenciais e Cards de Atendimento */
body.light-mode .grid div[class*="bg-[#18181b]"],
body.light-mode .grid a[class*="bg-[#18181b]"],
body.light-mode .grid button[class*="bg-[#18181b]"] {
    background-color: #FAFAFA !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
}

body.light-mode .grid div[class*="bg-[#27272a]"] {
    background-color: #F1F1F1 !important;
    color: #010A87 !important;
}

/* Ajuste do degradê do vídeo no light mode - integração total com fundo branco */
body.light-mode .hero .bg-gradient-to-t.from-brand-light {
    background: linear-gradient(to top,
            #F8F9FC 0%,
            rgba(248, 249, 252, 0.95) 30%,
            rgba(248, 249, 252, 0.75) 55%,
            transparent 100%) !important;
}

body.light-mode .hero-gradient-bottom {
    background: linear-gradient(to top,
            #F8F9FC 0%,
            #F8F9FC 40%,
            rgba(248, 249, 252, 0.98) 60%,
            rgba(248, 249, 252, 0.85) 75%,
            transparent 100%) !important;
}

body.light-mode .hero-gradient-soft {
    background: linear-gradient(to top,
            #F8F9FC 0%,
            rgba(248, 249, 252, 0.7) 50%,
            transparent 100%) !important;
}

/* Botões e elementos interativos no light mode */
body.light-mode .btn-primary,
body.light-mode .bg-brand-main {
    background-color: #010A87 !important;
}

body.light-mode .theme-toggle {
    background-color: #FFFFFF !important;
    border-color: rgba(58, 74, 159, 0.2) !important;
    color: #010A87 !important;
}

/* Sombras suaves em tom azul */
body.light-mode .shadow-xl,
body.light-mode .shadow-2xl {
    box-shadow: 0 10px 40px -10px rgba(15, 15, 26, 0.1) !important;
}

body.light-mode .bg-zinc-800 {
    background-color: #f4f4f5 !important;
}

body.light-mode .bg-black {
    background-color: #f4f4f5 !important;
}

body.light-mode [class*="bg-[#121212]"] {
    background-color: #f4f4f5 !important;
}

body.light-mode [class*="bg-[#18181b]"] {
    background-color: #ffffff !important;
}

body.light-mode [class*="bg-[#09090b]"] {
    background-color: #f4f4f5 !important;
}

body.light-mode [class*="!bg-zinc-900"] {
    background-color: #ffffff !important;
}

/* Textos claros → escuros */
body.light-mode .text-white {
    color: #1a1a2e !important;
}

/* Títulos sobre imagens sempre brancos (cards de serviços) */
body.light-mode .absolute.text-white {
    color: #ffffff !important;
}

body.light-mode .text-zinc-300 {
    color: #3f3f46 !important;
}

body.light-mode .text-zinc-400 {
    color: #52525b !important;
}

body.light-mode .text-zinc-500 {
    color: #71717a !important;
}

body.light-mode [class*="text-white/7"] {
    color: rgba(24, 24, 27, 0.6) !important;
}

body.light-mode [class*="text-white/8"] {
    color: rgba(24, 24, 27, 0.75) !important;
}

body.light-mode [class*="text-white/5"] {
    color: rgba(26, 26, 46, 0.5) !important;
}

body.light-mode .text-brand-gray {
    color: #52525b !important;
}

body.light-mode .text-brand-dark {
    color: #1a1a2e !important;
}

/* Bordas — Mais visíveis com contornos claros */
body.light-mode [class*="border-white/5"] {
    border-color: rgba(0, 0, 0, 0.1) !important;
}

body.light-mode [class*="border-white/10"] {
    border-color: rgba(0, 0, 0, 0.12) !important;
}

body.light-mode [class*="border-brand-main"] {
    border-color: #010A87 !important;
}

/* Fundos com opacidade branca → opacidade escura */
body.light-mode [class*="bg-white/5"] {
    background-color: rgba(0, 0, 0, 0.03) !important;
}

body.light-mode [class*="bg-white/10"] {
    background-color: rgba(0, 0, 0, 0.04) !important;
}

body.light-mode [class*="bg-black/5"] {
    background-color: rgba(0, 0, 0, 0.02) !important;
}

body.light-mode [class*="bg-black/50"] {
    background-color: rgba(255, 255, 255, 0.8) !important;
}

body.light-mode [class*="bg-black/60"] {
    background-color: rgba(255, 255, 255, 0.7) !important;
}

/* Sombras mais suaves */
body.light-mode .shadow-xl {
    box-shadow: 0 4px 20px -4px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.04) !important;
}

body.light-mode .shadow-2xl {
    box-shadow: 0 8px 30px -8px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.04) !important;
}

body.light-mode .shadow-lg {
    box-shadow: 0 4px 16px -4px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.03) !important;
}

body.light-mode [class*="shadow-brand-main"] {
    box-shadow: 0 4px 16px -4px rgba(58, 74, 159, 0.15) !important;
}

/* Glassmorphism */
body.light-mode .glass {
    background: rgba(255, 255, 255, 0.7) !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
    backdrop-filter: blur(12px) saturate(120%) !important;
}

/* Modais */
body.light-mode .modal-backdrop {
    background: rgba(248, 249, 252, 0.8) !important;
    backdrop-filter: blur(8px) !important;
}

body.light-mode .modal-content {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 20px 60px -15px rgba(0, 0, 0, 0.15) !important;
}

body.light-mode .close-modal {
    color: #71717a !important;
}

/* Theme Toggle - Estilos específicos */
.theme-toggle {
    position: fixed;
    right: 1rem;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.04);
    z-index: 1000;
    transition: transform 0.4s var(--ease-premium), opacity 0.4s var(--ease-premium), border-color 0.4s var(--ease-premium);
    backdrop-filter: blur(8px);
}

body.light-mode .theme-toggle {
    background: #FFFFFF !important;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
    color: #0f0f1a !important;
}

body.light-mode .theme-toggle i {
    color: #010A87 !important;
}

body.dark-mode .theme-toggle {
    background: #1a1a2e !important;
    border: 1px solid rgba(74, 90, 176, 0.3) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
    color: #FFFFFF !important;
}

body.dark-mode .theme-toggle i {
    color: #4A5AB0 !important;
}

/* Hover effects para theme toggle */
body.light-mode .theme-toggle:hover {
    border-color: #010A87 !important;
    transform: scale(1.05) rotate(12deg);
}

body.dark-mode .theme-toggle:hover {
    border-color: #010A87 !important;
    transform: scale(1.05) rotate(12deg);
}

/* ========================================
   BOTÕES PRINCIPAIS - LIGHT MODE
   Tom azul médio
   ======================================== */

/* Botões de link secundários com bg-[#18181b] */
body.light-mode a[class*="bg-[#18181b]"],
body.light-mode button[class*="bg-[#18181b]"],
body.light-mode a.bg-white[class*="dark:bg-[#18181b]"],
body.light-mode button.bg-white[class*="dark:bg-[#18181b]"] {
    background-color: #1a1a2e !important;
    border-color: rgba(74, 90, 176, 0.2) !important;
    box-shadow: 0 8px 24px rgba(26, 26, 46, 0.25) !important;
}

/* Hover: escurece levemente */
body.light-mode a[class*="bg-[#18181b]"]:hover,
body.light-mode button[class*="bg-[#18181b]"]:hover,
body.light-mode a.bg-white[class*="dark:bg-[#18181b]"]:hover,
body.light-mode button.bg-white[class*="dark:bg-[#18181b]"]:hover {
    background-color: #2C3A7A !important;
    box-shadow: 0 12px 30px rgba(26, 26, 46, 0.35) !important;
}

/* Textos e ícones brancos dentro dos botões principais */
body.light-mode a[class*="bg-[#18181b]"] span,
body.light-mode a[class*="bg-[#18181b]"] i,
body.light-mode button[class*="bg-[#18181b]"] span,
body.light-mode button[class*="bg-[#18181b]"] i,
body.light-mode a.bg-white[class*="dark:bg-[#18181b]"] span,
body.light-mode a.bg-white[class*="dark:bg-[#18181b]"] i,
body.light-mode button.bg-white[class*="dark:bg-[#18181b]"] span,
body.light-mode button.bg-white[class*="dark:bg-[#18181b]"] i {
    color: #ffffff !important;
}

/* Ícone decorativo de fundo (background) — opacidade levemente maior */
body.light-mode a[class*="bg-[#18181b]"] .opacity-10,
body.light-mode button[class*="bg-[#18181b]"] .opacity-10,
body.light-mode a.bg-white[class*="dark:bg-[#18181b]"] .opacity-10,
body.light-mode button.bg-white[class*="dark:bg-[#18181b]"] .opacity-10 {
    opacity: 0.15 !important;
}

/* Botões h-24 com bg-zinc-900 (fallback) */
body.light-mode .h-24.bg-zinc-900 {
    background-color: #1a1a2e !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

body.light-mode .h-24.bg-zinc-900 span,
body.light-mode .h-24.bg-zinc-900 i {
    color: #ffffff !important;
}

body.light-mode .h-24[class*="hover:bg-zinc-800"]:hover {
    background-color: #2C3A7A !important;
}

/* Service cards, about sections */
body.light-mode section .rounded-2xl,
body.light-mode section .rounded-3xl,
body.light-mode section [class*="rounded-[2"] {
    border-color: rgba(0, 0, 0, 0.08) !important;
}

/* Botões Ligar Loja e Salvar Contato — fundo branco com borda e sombra */
body.light-mode .grid-cols-2 a.bg-white,
body.light-mode .grid-cols-2 button.bg-white {
    background-color: #ffffff !important;
    border: 1.5px solid rgba(58, 74, 159, 0.25) !important;
    box-shadow: 0 4px 16px rgba(58, 74, 159, 0.12), 0 1px 4px rgba(0, 0, 0, 0.06) !important;
}

body.light-mode .grid-cols-2 a.bg-white:hover,
body.light-mode .grid-cols-2 button.bg-white:hover {
    border-color: rgba(58, 74, 159, 0.5) !important;
    box-shadow: 0 6px 20px rgba(58, 74, 159, 0.18), 0 2px 6px rgba(0, 0, 0, 0.08) !important;
}

/* Garantir textos e ícones corretos nesses botões */
body.light-mode .grid-cols-2 a.bg-white span,
body.light-mode .grid-cols-2 button.bg-white span {
    color: #1a1a2e !important;
}

body.light-mode .grid-cols-2 a.bg-white i,
body.light-mode .grid-cols-2 button.bg-white i {
    color: var(--brand-main) !important;
}


/* Footer */
body.light-mode footer {
    background-color: #ffffff !important;
    border-top: 2px solid var(--brand-main) !important;
    color: #3f3f46 !important;
}

body.light-mode footer a,
body.light-mode footer i,
body.light-mode footer p,
body.light-mode footer span {
    color: #3f3f46 !important;
}

body.light-mode footer a:hover,
body.light-mode footer a:hover i {
    color: var(--brand-main) !important;
}

/* Créditos e copyright — remover transparência no light mode */
body.light-mode footer .opacity-30 {
    opacity: 0.7 !important;
    color: #3f3f46 !important;
}

body.light-mode footer a.opacity-30 {
    opacity: 0.6 !important;
    color: #52525b !important;
}

body.light-mode footer a.opacity-30:hover {
    opacity: 1 !important;
    color: var(--brand-main) !important;
}

/* Gradientes de hero */
body.light-mode [class*="from-brand-main"] {
    --tw-gradient-from: rgba(58, 74, 159, 0.06) !important;
}

/* Micro-labels e opacidades */
body.light-mode .micro-label {
    color: #52525b !important;
}

body.light-mode .opacity-70 span,
body.light-mode .font-medium.opacity-70 {
    opacity: 1 !important;
    color: #3f3f46 !important;
}

/* Video labels e overlays */
body.light-mode .video-label {
    color: #ffffff !important;
}

body.light-mode .btn-ativar-som {
    color: #ffffff !important;
}

/* Botão CTA azul — manter texto branco */
body.light-mode .bg-brand-main {
    color: #ffffff !important;
}

body.light-mode [class*="bg-brand-main"] a,
body.light-mode [class*="bg-brand-main"] span,
body.light-mode [class*="bg-brand-main"] i,
body.light-mode a.bg-brand-main,
body.light-mode a.bg-brand-main i {
    color: #ffffff !important;
}

/* Botão WhatsApp gradiente — manter texto branco */
body.light-mode [class*="from-[#3A4A9F]"] {
    color: #ffffff !important;
}

body.light-mode [class*="from-[#3A4A9F]"] span,
body.light-mode [class*="from-[#3A4A9F]"] i,
body.light-mode [class*="from-[#3A4A9F]"] div {
    color: #ffffff !important;
}

body.light-mode .pulse-custom-slow span,
body.light-mode .pulse-custom-slow i {
    color: #ffffff !important;
}

/* Seção de vídeo — fundo transparente no light mode */
body.light-mode .video-gallery-section {
    background-color: transparent !important;
}

body.light-mode #video-gallery {
    background-color: transparent !important;
}

body.light-mode .video-carousel,
body.light-mode #videoCarousel {
    background-color: transparent !important;
}

/* Stats cards — fundo branco com borda azul */
body.light-mode [class*="bg-black/40"] {
    background-color: #ffffff !important;
    backdrop-filter: none !important;
    border: 2px solid var(--brand-main) !important;
    box-shadow: 0 2px 12px rgba(58, 74, 159, 0.08) !important;
}

/* Pill de categoria do hero — light mode: sem borda, fundo suave */
body.light-mode [data-config="negocio.subtitulo"] {
    background-color: rgba(255, 255, 255, 0.25) !important;
    border: none !important;
    box-shadow: none !important;
}

/* Pill de categoria do hero — dark mode: letra branca */
body.dark-mode [data-config="negocio.subtitulo"] {
    color: #ffffff !important;
}

/* ========================================
   HERO - TEXTOS AZULADOS PREMIUM (LIGHT MODE)
   ======================================== */

/* "Desde 1994" — mesma cor azulada do título */
body.light-mode .hero [class*="font-label"][class*="text-black"] {
    color: #010A87 !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
    opacity: 1 !important;
    letter-spacing: 0.15em !important;
}

/* "CIMC Imobiliária" — azul escuro premium */
body.light-mode .hero [data-config="negocio.nome"] {
    color: #010A87 !important;
    -webkit-text-fill-color: #010A87 !important;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
    background: none !important;
    filter: none;
}


body.light-mode [class*="bg-black/40"] div {
    color: #1a1a2e !important;
}

body.light-mode [class*="bg-black/40"] .text-brand-main {
    color: var(--brand-main) !important;
}

/* Mapa — sem inversão */
body.light-mode iframe {
    filter: none !important;
}

/* Base */
html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
    transition: background-color 0.8s var(--ease-premium), color 0.8s var(--ease-premium);
    overflow-x: hidden;
}

/* Container principal - herda cor de fundo */
#root>div {
    background-color: var(--bg-color);
    transition: background-color 0.8s var(--ease-premium);
}

/* ========================================
   HERO VIDEO
   ======================================== */
.hero {
    overflow: hidden;
}

.hero>div:first-of-type {
    overflow: hidden;
    position: absolute;
    inset: 0;
}

.hero video,
.hero-video {
    position: absolute;
    top: 25%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -25%) scale(1.5);
    object-fit: cover;
    z-index: 0;
}

/* Ajuste para vídeo 9:16 - descer a imagem para mostrar estrutura */
.hero video,
.hero-video {
    top: 70% !important;
    transform: translate(-50%, -70%) scale(1.6) !important;
}

/* Zoom extra para cobrir bordas em telas diferentes */
@media (min-aspect-ratio: 16/9) {

    .hero video,
    .hero-video {
        width: 160% !important;
        height: 160% !important;
        top: 65% !important;
        transform: translate(-50%, -65%) scale(1.7) !important;
    }
}

@media (max-aspect-ratio: 9/16) {

    .hero video,
    .hero-video {
        width: 180% !important;
        height: 180% !important;
        top: 75% !important;
        transform: translate(-50%, -75%) scale(1.5) !important;
    }
}

/* Esconder bordas com vignette */
.hero>div:first-of-type::after {
    content: '';
    position: absolute;
    inset: -20px;
    box-shadow: inset 0 0 80px 40px rgba(15, 15, 26, 0.8);
    pointer-events: none;
    z-index: 1;
}

body.light-mode .hero>div:first-of-type::after {
    box-shadow: inset 0 0 100px 60px rgba(255, 255, 255, 0.95);
}

/* Degradê extra forte na base da hero para esconder corte do vídeo */
.hero-gradient-bottom,
.hero-gradient-soft {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 11;
    pointer-events: none;
}

body.dark-mode .hero-gradient-bottom {
    background: linear-gradient(to top,
            #0f0f1a 0%,
            #0f0f1a 40%,
            rgba(15, 15, 26, 0.98) 65%,
            rgba(15, 15, 26, 0.85) 80%,
            transparent 100%) !important;
}

body.dark-mode .hero-gradient-soft {
    background: linear-gradient(to top,
            #0f0f1a 0%,
            rgba(15, 15, 26, 0.8) 50%,
            transparent 100%) !important;
}

/* Ajuste do degradê inferior para ser mais forte */
.hero .bg-gradient-to-t.from-brand-light {
    --tw-gradient-from: var(--bg-color) !important;
    --tw-gradient-via: color-mix(in srgb, var(--bg-color) 90%, transparent) !important;
    --tw-gradient-to: transparent !important;
    --tw-gradient-from-position: 25% !important;
}

/* Ajustes do gradiente da hero no modo escuro */
body.dark-mode .hero .bg-gradient-to-t.from-brand-light {
    --tw-gradient-from: rgba(15, 15, 26, 0.95) !important;
    --tw-gradient-via: rgba(15, 15, 26, 0.7) !important;
    --tw-gradient-to: transparent !important;
}

/* Ajustes do gradiente da hero no modo claro */
body.light-mode .hero .bg-gradient-to-t.from-brand-light {
    --tw-gradient-from: rgba(248, 249, 252, 0.98) !important;
    --tw-gradient-via: rgba(248, 249, 252, 0.75) !important;
    --tw-gradient-to: transparent !important;
}

/* Garantir que o body em light mode tenha fundo claro */
body.light-mode {
    background-color: #F8F9FC !important;
}

body.light-mode #root>div {
    background-color: #F8F9FC !important;
}

/* Garantir que o body em dark mode tenha fundo azul escuro */
body.dark-mode {
    background-color: #0f0f1a !important;
}

body.dark-mode #root>div {
    background-color: #0f0f1a !important;
}

/* Efeito de Textura Premium para o Dark Mode */
body.dark-mode::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("https://www.transparenttextures.com/patterns/carbon-fibre.png");
    opacity: 0.03;
    pointer-events: none;
    z-index: 1000;
}

/* Tipografia CIMC Imobiliária */
h1,
h2,
h3,
h4,
.font-serif,
.font-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.1;
}

h1 {
    font-weight: 800;
}

/* Corpo do texto Moderno e Técnico */
body,
.font-sans {
    font-family: 'Inter', sans-serif;
}

/* Acento/Labels: Playfair Display Semibold Italic — rótulos em small caps */
.font-label,
.micro-label {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
    font-style: italic;
    font-variant: small-caps;
    text-transform: lowercase;
    letter-spacing: 0.15em;
    display: inline-block;
}

/* Glassmorphism Refinado */
.glass {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 0.5px solid rgba(255, 255, 255, 0.1);
}

/* Modal Styling */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

/* Light mode - overlay claro para TODOS os modais */
body.light-mode .modal-backdrop {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(5px) !important;
}

/* Modal da Galeria - garantir visibilidade */
body.light-mode #modal-gallery.modal-backdrop {
    background: rgba(248, 249, 252, 0.85) !important;
    backdrop-filter: blur(6px) !important;
}

body.dark-mode #modal-gallery.modal-backdrop {
    background: rgba(0, 0, 0, 0.95) !important;
}

/* Dark mode - overlay escuro para TODOS os modais */
body.dark-mode .modal-backdrop {
    background: rgba(0, 0, 0, 0.85) !important;
}

body.light-mode #modal-gallery .modal-content {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15) !important;
}

body.dark-mode #modal-gallery .modal-content {
    background: #1a1a2e !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.9) !important;
}

/* Cards de imagem no modal - light mode */
body.light-mode #modal-gallery .aspect-\[4\/5\] {
    background-color: #f4f4f5 !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
}

body.light-mode #modal-gallery .aspect-\[4\/5\] p {
    color: #1a1a2e !important;
}

body.light-mode #modal-gallery .aspect-\[4\/5\] .bg-gradient-to-t {
    background: linear-gradient(to top, rgba(255, 255, 255, 0.9) 0%, transparent 100%) !important;
}

/* Cards de imagem no modal - dark mode */
body.dark-mode #modal-gallery .aspect-\[4\/5\] {
    background-color: #1a1a2e !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

body.dark-mode #modal-gallery .aspect-\[4\/5\] p {
    color: #ffffff !important;
}

body.dark-mode #modal-gallery .aspect-\[4\/5\] .bg-gradient-to-t {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%) !important;
}

/* ========================================
   GALERIA PREVIEW PREMIUM - LIGHT MODE
   ======================================== */

/* Container da galeria preview */
body.light-mode .reveal.px-5 .bg-\[\#18181b\] {
    background-color: #ffffff !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
}

/* Fotos da galeria preview */
body.light-mode .reveal.px-5 .aspect-\[3\/4\],
body.light-mode .reveal.px-5 .aspect-\[4\/3\] {
    border-color: rgba(0, 0, 0, 0.12) !important;
}

body.light-mode .reveal.px-5 .bg-gradient-to-t {
    background: linear-gradient(to top, rgba(255, 255, 255, 0.8) 0%, transparent 100%) !important;
}

/* Botão "Ver Todas as Fotos" */
body.light-mode .reveal.px-5 button {
    box-shadow: 0 4px 16px rgba(58, 74, 159, 0.15) !important;
}

/* ========================================
   MODAL GALERIA - HEADER LIGHT MODE
   ======================================== */

body.light-mode #modal-gallery .modal-content {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

body.light-mode #modal-gallery .sticky.top-0 {
    background-color: rgba(255, 255, 255, 0.95) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
}

body.light-mode #modal-gallery .sticky.top-0 h3 {
    color: #1a1a2e !important;
}

body.light-mode #modal-gallery .sticky.top-0 p {
    color: #71717a !important;
}

body.light-mode #modal-gallery .sticky.top-0 button {
    background-color: rgba(0, 0, 0, 0.05) !important;
}

body.light-mode #modal-gallery .sticky.top-0 button:hover {
    background-color: rgba(0, 0, 0, 0.1) !important;
}

body.light-mode #modal-gallery .sticky.top-0 button i {
    color: #1a1a2e !important;
}

body.light-mode #modal-gallery .w-9.h-9 {
    background-color: rgba(58, 74, 159, 0.1) !important;
}

body.light-mode #modal-gallery .grid.grid-cols-2 {
    background-color: transparent !important;
}

/* ========================================
   MODAL IMAGEM INDIVIDUAL (ZOOM / LIGHTBOX)
   ======================================== */

#modal-image.modal-backdrop,
body.light-mode #modal-image.modal-backdrop {
    position: fixed !important;
    top: -50px !important;
    left: -50px !important;
    right: -50px !important;
    bottom: -50px !important;
    width: calc(100vw + 100px) !important;
    height: calc(100vh + 100px) !important;
    height: calc(100dvh + 100px) !important;
    background: rgba(3, 6, 18, 0.96) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    z-index: 10000000 !important;
    padding: 50px !important;
    box-sizing: border-box !important;
}

#popup-img-close,
.popup-foto-close,
#modal-image .close-modal,
body.light-mode #modal-image .close-modal {
    position: fixed !important;
    top: 1.25rem !important;
    right: 1.25rem !important;
    color: #FFFFFF !important;
    background: rgba(15, 21, 48, 0.85) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.4) !important;
    border-radius: 50% !important;
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    min-height: 46px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 10000050 !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5) !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

#popup-img-close:hover,
.popup-foto-close:hover,
#modal-image .close-modal:hover,
body.light-mode #modal-image .close-modal:hover {
    background: rgba(1, 10, 135, 0.95) !important;
    border-color: #FFFFFF !important;
    transform: scale(1.1) rotate(90deg) !important;
}

#popup-img-close:active,
.popup-foto-close:active,
#modal-image .close-modal:active {
    transform: scale(0.95) !important;
}

#popup-img-close i,
.popup-foto-close i,
#modal-image .close-modal i,
body.light-mode #modal-image .close-modal i {
    font-size: 20px !important;
    color: #FFFFFF !important;
}

/* Setas de navegação no popup de zoom de foto */
.popup-foto-nav,
body.light-mode .popup-foto-nav {
    position: fixed !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 10000040 !important;
    width: 52px !important;
    height: 52px !important;
    border-radius: 50% !important;
    background: rgba(15, 21, 48, 0.85) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.35) !important;
    color: #FFFFFF !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5) !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.popup-foto-nav:hover,
body.light-mode .popup-foto-nav:hover {
    background: rgba(1, 10, 135, 0.95) !important;
    border-color: #FFFFFF !important;
    transform: translateY(-50%) scale(1.12) !important;
}

.popup-foto-nav:active {
    transform: translateY(-50%) scale(0.95) !important;
}

.popup-foto-nav-prev { left: 1.25rem !important; }
.popup-foto-nav-next { right: 1.25rem !important; }

.popup-foto-nav i,
body.light-mode .popup-foto-nav i {
    font-size: 20px !important;
    color: #FFFFFF !important;
}

@media (max-width: 640px) {
    .popup-foto-nav,
    body.light-mode .popup-foto-nav {
        width: 44px !important;
        height: 44px !important;
    }
    .popup-foto-nav-prev { left: 0.5rem !important; }
    .popup-foto-nav-next { right: 0.5rem !important; }
}

#popup-img-contador,
body.light-mode #popup-img-contador {
    color: #FFFFFF !important;
    background: rgba(0, 0, 0, 0.7) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

#popup-img-contador *,
body.light-mode #popup-img-contador * {
    color: #FFFFFF !important;
}

.popup-foto-nav,
body.light-mode .popup-foto-nav {
    color: #FFFFFF !important;
    z-index: 10000010 !important;
}

.popup-foto-nav i,
body.light-mode .popup-foto-nav i {
    color: #FFFFFF !important;
}

/* Letras brancas nos badges sobre fotos do imóvel */
.modal-imovel-foto-principal *,
body.light-mode .modal-imovel-foto-principal *,
#modal-imovel-foto-indice,
body.light-mode #modal-imovel-foto-indice,
.modal-imovel-badge-op,
body.light-mode .modal-imovel-badge-op,
.modal-imovel-badge-cod,
body.light-mode .modal-imovel-badge-cod,
.modal-imovel-badge-contador,
body.light-mode .modal-imovel-badge-contador {
    color: #FFFFFF !important;
}

/* Imagem no modal - garantir visibilidade */
#modal-image #popup-img,
body.light-mode #modal-image #popup-img {
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.6) !important;
    max-height: 82vh !important;
}

#modal-gallery .modal-content {
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
    flex-direction: column !important;
    max-height: 90vh !important;
    width: 95% !important;
    margin: auto !important;
}

#modal-gallery .modal-content * {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

#modal-image .modal-content {
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
    max-width: 95vw !important;
    max-height: 95vh !important;
    margin: auto !important;
}

#modal-image .modal-content * {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.modal-content {
    background: var(--card-bg) !important;
    border-radius: 2rem;
    width: 95%;
    max-width: 480px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    padding: 0;
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
    z-index: 10001;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.99);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.close-modal {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    color: var(--brand-gray);
    cursor: pointer;
    padding: 0.5rem;
    transition: transform 0.3s var(--ease-premium);
}

.close-modal:hover {
    transform: rotate(90deg);
}

/* Animations & Micro-interactions */
.hover-lift {
    transition: all 0.5s var(--ease-premium);
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -15px rgba(58, 74, 159, 0.4);
}

/* Estilos para cards de diferenciais premium */
.diferencial-card-premium {
    transition: all 0.4s var(--ease-premium) !important;
}

.diferencial-card-premium:hover {
    transform: translateY(-5px) !important;
    border-color: var(--brand-main) !important;
    background: var(--brand-light) !important;
}

.diferencial-card-premium i {
    transition: transform 0.5s var(--ease-premium);
    display: inline-block;
}

.diferencial-card-premium:hover i {
    transform: scale(1.2) rotate(10deg);
}

.diferencial-card-premium:active {
    transform: scale(0.95) !important;
}

.diferencial-card-premium:active i {
    animation: iconPop 0.4s var(--ease-premium) forwards;
}

@keyframes iconPop {
    0% {
        transform: scale(1.2) rotate(10deg);
    }

    50% {
        transform: scale(1.5) rotate(-15deg);
    }

    100% {
        transform: scale(1) rotate(0);
    }
}

/* Fade Up Entry */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.45s var(--ease-premium), transform 0.45s var(--ease-premium);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Pulse slower and more elegant - REMOVIDO para conformidade OAB */
@keyframes pulse-ring {
    0% {
        transform: scale(0.98);
        box-shadow: 0 0 0 0 rgba(58, 74, 159, 0.5);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(58, 74, 159, 0);
    }

    100% {
        transform: scale(0.98);
        box-shadow: 0 0 0 0 rgba(58, 74, 159, 0);
    }
}

/* .pulse-custom-slow - Animation removida para conformidade OAB */

/* Theme Toggle - definição unificada abaixo em BOTÕES FIXOS SUPERIORES */

/* Refinamento dos Cards em Modo Escuro (Global) - CIMC Imobiliária */
body.dark-mode [class*="bg-[#18181b]"],
body.dark-mode [class*="bg-zinc-900"],
body.dark-mode .modal-content {
    background-color: var(--card-bg) !important;
    border: 1px solid rgba(74, 90, 176, 0.15) !important;
    box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(74, 90, 176, 0.05) !important;
}

body.dark-mode [class*="bg-[#18181b]"]:hover {
    border-color: rgba(58, 74, 159, 0.4) !important;
    box-shadow: 0 25px 50px -20px rgba(0, 0, 0, 0.6), 0 0 15px rgba(58, 74, 159, 0.15) !important;
}

/* Textos em modo escuro - Branco puro para contraste */
body.dark-mode .text-brand-dark {
    color: #FFFFFF !important;
}

body.dark-mode .text-zinc-900 {
    color: #FFFFFF !important;
}

body.dark-mode .text-zinc-300 {
    color: #8B9AD8 !important;
}

body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4 {
    color: #FFFFFF !important;
}

/* Parágrafos no modo escuro */
body.dark-mode p {
    color: #E8EBF5 !important;
}

/* Labels e textos secundários no modo escuro */
body.dark-mode .text-brand-gray {
    color: rgba(255, 255, 255, 0.75) !important;
}

/* Cards específicos no modo escuro */
body.dark-mode .bg-white {
    background-color: var(--card-bg) !important;
}

body.dark-mode .bg-zinc-900 {
    background-color: var(--card-bg) !important;
}

/* Music Toggle Animations */
@keyframes pulse-music {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(58, 74, 159, 0.4);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 8px rgba(58, 74, 159, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(58, 74, 159, 0);
    }
}

#music-toggle.playing {
    animation: pulse-music 2.5s infinite var(--ease-premium);
    border-color: var(--brand-hover);
}

#music-toggle.playing i {
    color: var(--brand-hover);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: var(--brand-light);
}

::-webkit-scrollbar-thumb {
    background: var(--brand-main);
    opacity: 0.3;
    border-radius: 10px;
}

/* Make sure text colors override everything properly */
.text-brand-gray {
    color: var(--brand-gray) !important;
}

.text-brand-dark {
    color: var(--brand-dark) !important;
}

/* Horizontal Scroll for Reviews */
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Container do carrossel */
.hide-scrollbar.overflow-x-hidden {
    overflow-x: hidden;
}

@keyframes scrollReviews {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.animate-scroll {
    display: flex;
    width: max-content;
    animation: scrollReviews 60s linear infinite;
}

.animate-scroll:hover {
    animation-play-state: paused;
}

@keyframes scrollResults {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.animate-scroll-fast {
    display: flex;
    width: max-content;
    animation: scrollResults 20s linear infinite;
}

.animate-scroll-fast:hover {
    animation-play-state: paused;
}

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

    100% {
        transform: translateX(0);
    }
}

.animate-scroll-reverse {
    display: flex;
    width: max-content;
    animation: scrollReverse 60s linear infinite;
}

.animate-scroll-reverse:hover {
    animation-play-state: paused;
}

@keyframes modalZoom {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-modalZoom {
    animation: modalZoom 0.4s var(--ease-premium);
}

/* ============================================================
   GALERIA DE VÍDEOS - Carousel 3D
   ============================================================ */

/* Botão ativar som */
.btn-ativar-som {
    position: absolute;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    background: var(--brand-main);
    color: #fff;
    border: none;
    border-radius: 2rem;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    animation: pulseSom 2s ease-in-out infinite;
    box-shadow: 0 4px 20px rgba(58, 74, 159, 0.5);
    transition: background 0.2s, transform 0.2s;
}

.btn-ativar-som:hover {
    background: var(--brand-hover);
    transform: translateX(-50%) scale(1.05);
}

@keyframes pulseSom {

    0%,
    100% {
        box-shadow: 0 4px 20px rgba(58, 74, 159, 0.5);
    }

    50% {
        box-shadow: 0 4px 30px rgba(58, 74, 159, 0.8);
    }
}

.video-gallery-section {
    background-color: rgba(26, 26, 46, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    border-radius: 2.5rem;
    margin-top: 2rem;
}

.video-carousel {
    position: relative;
    width: 100%;
    height: 500px;
    perspective: 1200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 480px) {
    .video-carousel {
        height: 420px;
    }
}

/* Cada slide de vídeo */
.video-slide {
    position: absolute;
    width: 75%;
    max-width: 320px;
    height: 90%;
    border-radius: 1.5rem;
    overflow: hidden;
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 2px solid transparent;
    background: #000;
}

/* Máscara de degradê para os vídeos de fundo */
.video-slide-mask {
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Vídeo player */
.video-player {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Label do vídeo */
.video-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    padding: 1.5rem 1.25rem 1rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, transparent 100%);
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #fff;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* ── Estados do Carousel ────────────────────────────── */

/* Vídeo ativo (centro, na frente) */
.video-slide.is-active {
    z-index: 30;
    transform: translateX(0) scale(1);
    filter: none;
    border-color: var(--brand-main);
    box-shadow:
        0 0 40px rgba(58, 74, 159, 0.2),
        0 20px 60px rgba(0, 0, 0, 0.6);
}

.video-slide.is-active .video-slide-mask {
    opacity: 0;
}

.video-slide.is-active .video-label {
    opacity: 1;
    transform: translateY(0);
}

/* Vídeo à esquerda */
.video-slide.is-prev {
    z-index: 20;
    transform: translateX(-40%) scale(0.78) rotateY(6deg);
    filter: blur(4px) brightness(0.45);
}

.video-slide.is-prev .video-slide-mask {
    opacity: 1;
    background: linear-gradient(to left, rgba(15, 15, 26, 0.92) 0%, rgba(15, 15, 26, 0.5) 40%, transparent 100%);
}

/* Vídeo à direita */
.video-slide.is-next {
    z-index: 20;
    transform: translateX(40%) scale(0.78) rotateY(-6deg);
    filter: blur(4px) brightness(0.45);
}

.video-slide.is-next .video-slide-mask {
    opacity: 1;
    background: linear-gradient(to right, rgba(15, 15, 26, 0.92) 0%, rgba(15, 15, 26, 0.5) 40%, transparent 100%);
}

/* Vídeos ocultos (fora da visualização) */
.video-slide.is-hidden {
    z-index: 10;
    transform: translateX(0) scale(0.6);
    filter: blur(8px) brightness(0.3);
    opacity: 0;
    pointer-events: none;
}

/* ── Indicadores / Dots ────────────────────────────── */
.video-indicators {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-bottom: 2rem;
}

.video-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--brand-gray);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.video-dot.active {
    border-color: var(--brand-main);
    background: var(--brand-main);
    transform: scale(1.2);
}

/* Barra de progresso no vídeo ativo */
.video-slide.is-active.is-playing::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--brand-main);
    z-index: 20;
    width: 0%;
    animation: videoProgress var(--video-duration, 10s) linear forwards;
}

@keyframes videoProgress {
    from {
        width: 0%;
    }

    to {
        width: 100%;
    }
}

/* Utilities */
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* ============================================================
   ANIMATED TICKER (Top Bar)
   ============================================================ */
.welcome-ticker {
    width: 100%;
    background: transparent;
    color: #fff;
    padding: 8px 0;
    overflow: hidden;
    position: relative;
    z-index: 50;
    border-top: 1px solid var(--brand-main);
}

/* Barra de destaques com o mesmo fundo do rodapé no dark mode */
body.dark-mode .welcome-ticker {
    background: #1A1F3D;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Saudação dinâmica: mesma faixa visual do ticker, sem linha entre os dois */
.greeting-bar {
    width: 100%;
    background: var(--brand-light);
    padding: 8px 0;
    position: relative;
    z-index: 50;
    border-bottom: 1px solid var(--brand-main);
}

body.dark-mode .greeting-bar {
    background: #1A1F3D;
}

.ticker-content {
    display: inline-flex;
    white-space: nowrap;
    gap: 1.5rem;
    animation: ticker-anim 80s linear infinite;
    justify-content: center;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    align-items: center;
}

.ticker-content span {
    display: inline-block;
}

.ticker-content .separator {
    color: rgba(255, 255, 255, 0.4);
    font-weight: 300;
}

body.dark-mode .ticker-content .separator {
    color: rgba(255, 255, 255, 0.55);
}

@keyframes ticker-anim {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

body.light-mode .welcome-ticker {
    background: transparent;
    color: var(--brand-main);
    border-top: 1px solid var(--brand-main);
    box-shadow: none;
}

body.light-mode .greeting-bar {
    border-bottom: 1px solid var(--brand-main);
}

/* ===== IMAGE COMPARISON SLIDER ===== */
.image-comparison-container {
    position: relative;
    width: 100%;
    height: 480px;
    border-radius: 1.5rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    margin-bottom: 2rem;
    overflow: hidden;
    --exposure: 50%;
}

.comparison-img-before,
.comparison-img-after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comparison-img-after {
    z-index: 10;
}

.comparison-img-before {
    z-index: 20;
    clip-path: inset(0 calc(100% - var(--exposure)) 0 0);
}

.comparison-slider-handle {
    position: absolute;
    top: 0;
    left: var(--exposure);
    width: 4px;
    height: 100%;
    background: var(--brand-main);
    z-index: 40;
    transform: translateX(-50%);
    pointer-events: none;
}

.comparison-slider-handle::after {
    content: '\f337';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: var(--brand-main);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.comparison-slider {
    position: absolute;
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: transparent;
    outline: none;
    margin: 0;
    z-index: 50;
    cursor: ew-resize;
}

.comparison-slider::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    width: 40px;
    height: 480px;
    background: transparent;
    cursor: ew-resize;
}

.results-badge-abs {
    position: absolute;
    top: 1.5rem;
    padding: 0.5rem 1.25rem;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    z-index: 30;
}

.badge-before-pos {
    left: 1rem;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    backdrop-filter: blur(4px);
}

.badge-after-pos {
    right: 1rem;
    background: var(--brand-main);
    color: #fff;
    box-shadow: 0 4px 12px rgba(58, 74, 159, 0.3);
}

.text-brand-main {
    color: var(--brand-main);
}

/* Ícones e textos pequenos em .text-brand-main ficam brancos no dark mode (ícones, horários, valores) */
body.dark-mode i.text-brand-main,
body.dark-mode span.text-brand-main {
    color: #fff !important;
}

/* Override para separadores azuis no modo claro */
body.light-mode .ticker-content .separator {
    color: var(--brand-main) !important;
    opacity: 1 !important;
}

/* Ticker Animation for Welcome Bar */
@keyframes ticker-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.welcome-ticker .separator {
    margin: 0 1.5rem;
    opacity: 0.3;
}

/* Botão "Acessar todas as fotos" — fundo claro no dark mode */
body.dark-mode #btn-galeria-completa {
    background-color: #F8F9FC !important;
    color: #0f1530 !important;
}

body.dark-mode #btn-galeria-completa i {
    color: #0f1530 !important;
}

/* Botão "Falar com a CIMC" (seção Imóveis) — texto sempre branco, fundo com hover próprio */
#btn-wa-corretor span {
    color: #fff !important;
}

body.light-mode #btn-wa-corretor {
    background-color: #1A1F3D !important;
}

#btn-wa-corretor:hover {
    background-color: #010A87 !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

/* Círculo do WhatsApp: light = fundo azul + ícone branco | dark = fundo branco + ícone azul */
body.light-mode #wa-corretor-icon {
    background-color: #010A87;
}
body.light-mode #wa-corretor-icon i {
    color: #fff !important;
}

body.dark-mode #wa-corretor-icon {
    background-color: #F8F9FC;
}
body.dark-mode #wa-corretor-icon i {
    color: #010A87 !important;
}

#wa-corretor-icon {
    transition: background-color .3s ease;
}

body.dark-mode .welcome-ticker .separator {
    opacity: 0.5;
}

/* ============================================
   BOTÕES FIXOS SUPERIORES (PADRÃO PREMIUM)
   ============================================ */

.theme-toggle.hidden-btn {
    transform: translateX(calc(100% + 1.5rem));
    opacity: 0;
    pointer-events: none;
}

.theme-toggle:hover {
    transform: scale(1.05) rotate(12deg);
    border-color: var(--brand-main);
}

/* 
   AJUSTE DE BORDA DO FOOTER (SOLICITAÇÃO)
   Garante que o footer tenha uma borda dourada/bege premium em ambos os modos
*/
body.dark-mode footer.bg-zinc-900,
body.light-mode footer.bg-zinc-900 {
    border-top: 2.5px solid var(--brand-hover) !important;
}

/* ============================================
   SEÇÃO NOSSOS DIFERENCIAIS — REDESIGN PREMIUM
   ============================================ */

/* ── Cabeçalho da seção ── */
.diferenciais-eyebrow {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--brand-main);
    opacity: 0.85;
    margin-bottom: 8px;
}

body.dark-mode .diferenciais-eyebrow {
    color: #fff;
}

.diferenciais-titulo {
    font-family: 'Playfair Display', Georgia, serif !important;
    font-size: clamp(2.4rem, 9vw, 3.2rem);
    font-weight: 900;
    line-height: 0.92;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    color: var(--text-color);
    margin-bottom: 14px;
}

/* Linha decorativa dourada */
.diferenciais-linha {
    width: 44px;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-main) 0%, var(--brand-hover) 100%);
    border-radius: 2px;
    margin-bottom: 12px;
}

.diferenciais-subtitulo {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--brand-gray);
    max-width: 300px;
}

/* ── Estilos de Diferenciais Simplificados (Herança de index.html) ── */

/* ── Fim dos Estilos de Diferenciais ── */

/* ============================================
   🎥 CARROSSEL DE VÍDEOS 3D (NOSSA ESTRUTURA)
   ============================================ */

.carousel-3d-container {
    perspective: 1200px;
    width: 100%;
    height: 540px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    margin-top: -20px;
}

.carousel-3d-item {
    position: absolute;
    width: 280px;
    aspect-ratio: 9/16;
    border-radius: 2rem;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    cursor: pointer;
    background: #000;
    box-shadow: 0 10px 30px rgba(26, 26, 46, 0.1), 0 20px 60px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Estado: Central (Ativo) */
.carousel-3d-item.active {
    z-index: 30;
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 1;
    filter: blur(0);
    box-shadow: 0 30px 90px rgba(26, 26, 46, 0.2), 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Estado: Esquerda (Pausado/Atrás) */
.carousel-3d-item.left {
    z-index: 20;
    transform: translate3d(-130px, 0, -150px) rotateY(25deg) scale(0.85);
    opacity: 0.6;
    filter: blur(2px) grayscale(0.5);
}

/* Estado: Direita (Pausado/Atrás) */
.carousel-3d-item.right {
    z-index: 20;
    transform: translate3d(130px, 0, -150px) rotateY(-25deg) scale(0.85);
    opacity: 0.6;
    filter: blur(2px) grayscale(0.5);
}

/* Estado: Escondido (Para carrosséis com > 3 itens) */
.carousel-3d-item.hidden {
    z-index: 10;
    transform: translate3d(0, 0, -250px) scale(0.7);
    opacity: 0;
    pointer-events: none;
}

/* Sombreamento degradê nos vídeos laterais */
.carousel-3d-item:not(.active)::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 26, 46, 0.8), transparent);
    z-index: 5;
    transition: opacity 0.3s;
}

.carousel-3d-item.active::after {
    opacity: 0;
}

/* Controles de Navegação do Carrossel */
.carousel-controls {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    justify-content: center;
}

.carousel-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--brand-main);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(58, 74, 159, 0.3);
}

.carousel-btn:active {
    scale: 0.9;
}

/* Ajuste Responsivo Mobile */
@media (max-width: 480px) {
    .carousel-3d-item {
        width: 220px;
    }

    .carousel-3d-item.left {
        transform: translate3d(-80px, 0, -120px) rotateY(20deg) scale(0.8);
    }

    .carousel-3d-item.right {
        transform: translate3d(80px, 0, -120px) rotateY(-20deg) scale(0.8);
    }
}


/* ================================================
   SEÇÃO IMÓVEIS DISPONÍVEIS — LINK 360
   CIMC Imobiliária
   ================================================ */

/* ---- Botão Âncora ---- */
.imoveis-ancora-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    padding: 1.25rem 1.5rem;
    border-radius: 1.25rem;
    background: linear-gradient(135deg, #1A1F3D 0%, #2a3260 100%);
    border: 1px solid rgba(58, 74, 159, 0.35);
    box-shadow: 0 8px 30px -8px rgba(58, 74, 159, 0.4);
    color: #fff;
    text-decoration: none;
    transition: all 0.35s var(--ease-premium);
    overflow: hidden;
}

.imoveis-ancora-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(58,74,159,0.15) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.imoveis-ancora-btn:hover::before,
.imoveis-ancora-btn:active::before { opacity: 1; }

.imoveis-ancora-btn:active { transform: scale(0.97); }

.imoveis-ancora-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.875rem;
    background: rgba(58, 74, 159, 0.3);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
    transition: transform 0.35s var(--ease-premium);
}
.imoveis-ancora-btn:hover .imoveis-ancora-icon { transform: rotate(12deg) scale(1.1); }

/* badge contador no botão âncora */
.imoveis-badge-count {
    min-width: 2rem;
    height: 1.5rem;
    padding: 0 0.5rem;
    border-radius: 9999px;
    background: var(--brand-main);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

/* ---- Filtros Pills ---- */
.imoveis-filtros {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    padding-left: 0.125rem;
}

.imoveis-filtro-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.9rem;
    border-radius: 9999px;
    border: 1.5px solid rgba(58, 74, 159, 0.2);
    background: transparent;
    color: var(--brand-gray);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.imoveis-filtro-btn:hover {
    border-color: var(--brand-main);
    color: var(--brand-main);
}

.imoveis-filtro-btn.active {
    background: var(--brand-main);
    border-color: var(--brand-main);
    color: #fff;
    box-shadow: 0 4px 12px -4px rgba(58, 74, 159, 0.45);
}

body.light-mode .imoveis-filtro-btn {
    background: #fff;
    border-color: rgba(58, 74, 159, 0.15);
    color: #52525b;
}
body.light-mode .imoveis-filtro-btn.active {
    background: var(--brand-main);
    color: #fff;
}

/* ---- Contador de resultados ---- */
.imoveis-contagem {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--brand-gray);
    opacity: 0.7;
    margin-bottom: 1rem;
    padding-left: 0.125rem;
    min-height: 1rem;
}

/* ---- Card de Imóvel ---- */
.imovel-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #10122B;
    border-radius: 1.5rem;
    overflow: hidden;
    border: 1px solid rgba(58, 74, 159, 0.22);
    box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(58, 74, 159, 0.1);
    cursor: pointer;
    transition: transform 0.3s var(--ease-premium), box-shadow 0.3s var(--ease-premium), border-color 0.3s var(--ease-premium);
    animation: imovelFadeIn 0.4s var(--ease-premium) both;
}

.imovel-card:hover {
    transform: translateY(-3px);
    border-color: rgba(90, 110, 220, 0.45);
    box-shadow: 0 14px 35px -6px rgba(10, 15, 45, 0.6), 0 0 0 1px rgba(90, 110, 220, 0.25);
}

.imovel-card:active { transform: scale(0.97); }

body.light-mode .imovel-card {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.07);
    box-shadow: 0 4px 16px -4px rgba(0, 0, 0, 0.08);
}

/* Destaque: borda colorida */
.imovel-card.destaque {
    border-color: rgba(90, 110, 220, 0.6);
    box-shadow: 0 0 0 1.5px rgba(90, 110, 220, 0.25), 0 8px 28px -6px rgba(58,74,159,0.4);
}

/* Card que ocupa 2 colunas (primeiro destaque) */
.imovel-card.col-span-2 {
    grid-column: span 2;
}
.imovel-card.col-span-2 .imovel-foto-wrapper { height: 10rem; }

/* Foto */
.imovel-foto-wrapper {
    position: relative;
    width: 100%;
    height: 8rem;
    overflow: hidden;
    flex-shrink: 0;
}

.imovel-foto {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}
.imovel-card:hover .imovel-foto { transform: scale(1.07); }

.imovel-foto-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.25) 50%, transparent 100%);
}

/* Badges sobre a foto */
.imovel-badges {
    position: absolute;
    top: 0.6rem;
    left: 0.6rem;
    right: 0.6rem;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.35rem;
    pointer-events: none;
}

.imovel-badge-destaque {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.55rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    font-size: 8px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    box-shadow: 0 2px 8px rgba(245,158,11,0.4);
}

.imovel-badge-operacao {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.55rem;
    border-radius: 9999px;
    font-size: 8px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.imovel-badge-venda   { background: var(--brand-main); color: #fff; }
.imovel-badge-aluguel { background: #059669; color: #fff; }
.imovel-badge-ambos   { background: #7c3aed; color: #fff; }

.imovel-badge-status-vendido  { background: rgba(239,68,68,0.9);  color: #fff; }
.imovel-badge-status-reservado{ background: rgba(245,158,11,0.9); color: #fff; }

/* Conteúdo texto */
.imovel-body {
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.4rem;
}

.imovel-tipo {
    font-size: 8.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #8B96C4;
    line-height: 1;
}
body.light-mode .imovel-tipo { color: var(--brand-main); }

.imovel-titulo {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    line-height: 1.15;
    color: #F7F8FC;
}
body.light-mode .imovel-titulo { color: #1a1a2e; }

.imovel-bairro {
    font-size: 9.5px;
    color: rgba(247, 248, 252, 0.65);
    display: flex;
    align-items: center;
    gap: 0.25rem;
    line-height: 1;
}
.imovel-bairro i { font-size: 8px; color: #8B96C4; }
body.light-mode .imovel-bairro { color: #71717a; }
body.light-mode .imovel-bairro i { color: var(--brand-main); }

/* Atributos ícone */
.imovel-atributos {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-top: 0.2rem;
}

.imovel-attr {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 9px;
    font-weight: 700;
    color: rgba(247, 248, 252, 0.7);
}
.imovel-attr i { font-size: 8px; color: #8B96C4; }
body.dark-mode .imovel-attr i { color: #8B96C4; }
body.light-mode .imovel-attr { color: #52525b; }
body.light-mode .imovel-attr i { color: var(--brand-main); }

/* Preço */
.imovel-preco {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    color: #F7F8FC;
    line-height: 1.1;
    margin-top: auto;
}
body.light-mode .imovel-preco { color: var(--brand-main); }

.imovel-preco-sufixo {
    font-family: 'Inter', sans-serif;
    font-size: 9px;
    font-weight: 600;
    color: rgba(247, 248, 252, 0.5);
    display: block;
    line-height: 1;
}
body.light-mode .imovel-preco-sufixo { color: #71717a; }

/* Card vendido — opacidade reduzida */
.imovel-card.vendido {
    opacity: 0.55;
    pointer-events: none;
}
.imovel-card.vendido::after {
    content: 'VENDIDO';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.35);
    backdrop-filter: blur(2px);
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 22px;
    font-weight: 900;
    color: rgba(255,255,255,0.6);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border-radius: 1.5rem;
    pointer-events: none;
}

/* ---- Modal: atributos grid ---- */
.modal-attr-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 0.6rem 0.25rem;
    background: rgba(58,74,159,0.06);
    border-radius: 0.75rem;
    border: 1px solid rgba(58,74,159,0.1);
}
.modal-attr-item i  { font-size: 14px; color: var(--brand-main); }
body.dark-mode .modal-attr-item i { color: #fff; }
.modal-attr-item span:first-of-type {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 15px;
    font-weight: 800;
    color: var(--brand-dark);
    line-height: 1;
}
body.dark-mode .modal-attr-item span:first-of-type { color: #fff; }
.modal-attr-item span:last-of-type {
    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--brand-gray);
}

/* ---- Skeleton Loader ---- */
.imovel-skeleton {
    border-radius: 1.5rem;
    overflow: hidden;
    background: linear-gradient(
        90deg,
        rgba(255,255,255,0.04) 25%,
        rgba(255,255,255,0.09) 50%,
        rgba(255,255,255,0.04) 75%
    );
    background-size: 400% 100%;
    animation: skeletonShimmer 1.4s ease infinite;
    min-height: 200px;
}

body.light-mode .imovel-skeleton {
    background: linear-gradient(
        90deg,
        rgba(0,0,0,0.04) 25%,
        rgba(0,0,0,0.09) 50%,
        rgba(0,0,0,0.04) 75%
    );
    background-size: 400% 100%;
    animation: skeletonShimmer 1.4s ease infinite;
}

@keyframes skeletonShimmer {
    0%   { background-position: 100% 50%; }
    100% { background-position:   0% 50%; }
}

/* ---- Estado vazio / erro ---- */
.imoveis-vazio {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    text-align: center;
}

/* ---- Animação entrada dos cards ---- */
@keyframes imovelFadeIn {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---- Light mode: modal imovel ---- */
body.light-mode #modal-imovel .modal-content {
    background: #fff !important;
}
body.light-mode #modal-imovel #modal-imovel-titulo {
    color: #1a1a2e !important;
}
body.light-mode .imoveis-ancora-btn {
    background: linear-gradient(135deg, #1A1F3D 0%, #2a3260 100%) !important;
    color: #fff !important;
}
body.light-mode .imoveis-ancora-btn .font-title,
body.light-mode .imoveis-ancora-btn span {
    color: #fff !important;
}

/* ── Botão Ver Mais / Recolher Imóveis ── */
#imoveis-ver-mais,
.btn-imoveis-ver-mais {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 0.95rem 2rem;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    cursor: pointer;
    transition: all 0.3s var(--ease-premium);
    background: #010A87 !important;
    color: #FFFFFF !important;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 24px -4px rgba(1, 10, 135, 0.35);
}
#imoveis-ver-mais i,
#imoveis-ver-mais span,
.btn-imoveis-ver-mais i,
.btn-imoveis-ver-mais span {
    color: #FFFFFF !important;
}
#imoveis-ver-mais:hover,
.btn-imoveis-ver-mais:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 12px 30px -4px rgba(1, 10, 135, 0.5);
    background: #0d159a !important;
    color: #FFFFFF !important;
}
#imoveis-ver-mais:active,
.btn-imoveis-ver-mais:active {
    transform: scale(0.97);
}

body.dark-mode #imoveis-ver-mais,
body.dark-mode .btn-imoveis-ver-mais {
    background: #1B2A6B !important;
    color: #FFFFFF !important;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.5);
}
body.dark-mode #imoveis-ver-mais:hover,
body.dark-mode .btn-imoveis-ver-mais:hover {
    background: #243788 !important;
}

body.light-mode #imoveis-ver-mais,
body.light-mode .btn-imoveis-ver-mais {
    background: #010A87 !important;
    color: #FFFFFF !important;
    box-shadow: 0 8px 24px -4px rgba(1, 10, 135, 0.35);
}
body.light-mode #imoveis-ver-mais i,
body.light-mode #imoveis-ver-mais span,
body.light-mode .btn-imoveis-ver-mais i,
body.light-mode .btn-imoveis-ver-mais span {
    color: #FFFFFF !important;
}

/* ── Botão Falar com a CIMC / WhatsApp Corretor ── */
#btn-wa-corretor,
.btn-wa-corretor {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.65rem 0.65rem 1.8rem;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s var(--ease-premium);
    background: #010A87 !important;
    color: #FFFFFF !important;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 24px -4px rgba(1, 10, 135, 0.35);
}
#btn-wa-corretor span,
.btn-wa-corretor span {
    color: #FFFFFF !important;
}
#btn-wa-corretor #wa-corretor-icon,
.btn-wa-corretor .wa-icon-circ {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: #FFFFFF !important;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-main, #010A87) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    transition: transform 0.3s ease;
}
#btn-wa-corretor #wa-corretor-icon i,
.btn-wa-corretor .wa-icon-circ i {
    color: var(--brand-main, #010A87) !important;
}
#btn-wa-corretor:hover,
.btn-wa-corretor:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 12px 30px -4px rgba(1, 10, 135, 0.5);
    background: #0d159a !important;
    color: #FFFFFF !important;
}
#btn-wa-corretor:hover #wa-corretor-icon,
.btn-wa-corretor:hover .wa-icon-circ {
    transform: scale(1.12);
}

body.dark-mode #btn-wa-corretor,
body.dark-mode .btn-wa-corretor {
    background: #10122B !important;
    color: #FFFFFF !important;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.6);
}
body.dark-mode #btn-wa-corretor:hover,
body.dark-mode .btn-wa-corretor:hover {
    background: #1A1F3D !important;
    border-color: rgba(255, 255, 255, 0.25);
}

body.light-mode #btn-wa-corretor,
body.light-mode .btn-wa-corretor {
    background: #010A87 !important;
    color: #FFFFFF !important;
    box-shadow: 0 8px 24px -4px rgba(1, 10, 135, 0.35);
}
body.light-mode #btn-wa-corretor span,
body.light-mode .btn-wa-corretor span {
    color: #FFFFFF !important;
}

/* ================================================
   MODAL IMÓVEL — VERSÃO MELHORADA (GALERIA + IPTU)
   ================================================ */

/* Backdrop com opacidade total e cobertura além das bordas (sem gaps no topo) */
#modal-imovel.modal-backdrop,
.modal-backdrop {
    position: fixed !important;
    top: -50px !important;
    left: -50px !important;
    right: -50px !important;
    bottom: -50px !important;
    width: calc(100vw + 100px) !important;
    height: calc(100vh + 100px) !important;
    height: calc(100dvh + 100px) !important;
    background: rgba(3, 6, 18, 0.94) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    z-index: 999999 !important;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 50px !important;
    box-sizing: border-box !important;
}

body.light-mode #modal-imovel.modal-backdrop {
    background: rgba(15, 23, 42, 0.88) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
}

/* Sheet (bottom sheet no mobile, modal centrado no desktop) */
.modal-imovel-sheet {
    position: relative;
    width: 95%;
    max-width: 460px;
    max-height: 92vh;
    overflow-y: auto;
    background: var(--card-bg, #fff);
    border-radius: 2rem;
    box-shadow: 0 30px 80px -20px rgba(0,0,0,0.6);
    display: flex;
    flex-direction: column;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.modal-imovel-sheet::-webkit-scrollbar { display: none; }

/* Botão fechar fixo */
.modal-imovel-close {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    z-index: 10;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}
.modal-imovel-close:hover {
    background: rgba(0,0,0,0.7);
    transform: scale(1.08);
}

/* Área da galeria */
.modal-imovel-galeria {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

/* Foto principal */
.modal-imovel-foto-principal {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #090d24;
    border-radius: 2rem 2rem 0 0;
    cursor: zoom-in;
}

/* Setas de navegação no Modal de Imóvel */
.modal-foto-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: rgba(15, 21, 48, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    transition: all 0.25s var(--ease-premium);
}
.modal-foto-nav:hover {
    background: rgba(1, 10, 135, 0.85);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.12);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}
.modal-foto-nav:active {
    transform: translateY(-50%) scale(0.95);
}
.modal-foto-nav-prev { left: 0.75rem; }
.modal-foto-nav-next { right: 0.75rem; }

/* Setas de navegação no Popup de Zoom / Lightbox */
.popup-foto-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10020;
    width: 3.2rem;
    height: 3.2rem;
    border-radius: 50%;
    background: rgba(15, 21, 48, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    transition: all 0.25s var(--ease-premium);
}
.popup-foto-nav:hover {
    background: rgba(1, 10, 135, 0.9);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-50%) scale(1.15);
}
.popup-foto-nav:active {
    transform: translateY(-50%) scale(0.95);
}
.popup-foto-nav-prev { left: 1.25rem; }
.popup-foto-nav-next { right: 1.25rem; }

@media (max-width: 640px) {
    .popup-foto-nav {
        width: 2.6rem;
        height: 2.6rem;
    }
    .popup-foto-nav-prev { left: 0.5rem; }
    .popup-foto-nav-next { right: 0.5rem; }
}

/* Faixa de thumbnails */
.modal-imovel-thumbs {
    display: flex;
    gap: 0.4rem;
    padding: 0.5rem 0.75rem;
    background: var(--card-bg, #fff);
    overflow-x: auto;
    scrollbar-width: none;
}
.modal-imovel-thumbs::-webkit-scrollbar { display: none; }

.modal-thumb-item {
    flex-shrink: 0;
    width: 56px;
    height: 42px;
    border-radius: 0.6rem;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease;
    opacity: 0.65;
}
.modal-thumb-item:hover  { opacity: 0.9; transform: scale(1.05); }
.modal-thumb-ativo       { border-color: var(--brand-main); opacity: 1 !important; }

/* Corpo do conteúdo */
.modal-imovel-body {
    padding: 1.25rem 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Título */
.modal-imovel-titulo {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 22px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    line-height: 1.15;
    color: var(--text-color, #1a1a2e);
}

/* Caixa de preço */
.modal-imovel-preco-box {
    background: rgba(58, 74, 159, 0.06);
    border: 1px solid rgba(58, 74, 159, 0.12);
    border-radius: 1rem;
    padding: 1rem 1.1rem;
}
body.dark-mode .modal-imovel-preco-box {
    background: rgba(58, 74, 159, 0.12);
    border-color: rgba(58, 74, 159, 0.2);
}

/* Obs / info extra */
.modal-imovel-obs-tag {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 11px;
    font-weight: 600;
    color: var(--brand-gray);
    background: rgba(58,74,159,0.05);
    border: 1px solid rgba(58,74,159,0.1);
    border-radius: 0.75rem;
    padding: 0.6rem 0.85rem;
    line-height: 1.4;
}
body.dark-mode .modal-imovel-obs-tag {
    background: rgba(58,74,159,0.1);
    border-color: rgba(58,74,159,0.2);
    color: rgba(255,255,255,0.6);
}

/* Botão Tour Virtual */
.modal-imovel-btn-tour {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 0.875rem;
    background: transparent;
    border: 1.5px solid rgba(58,74,159,0.25);
    color: var(--brand-main);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    text-decoration: none;
    transition: all 0.25s ease;
}
.modal-imovel-btn-tour:hover {
    background: rgba(58,74,159,0.08);
    border-color: var(--brand-main);
}
body.dark-mode .modal-imovel-btn-tour {
    border-color: rgba(58,74,159,0.4);
    color: #8B9AD8;
}

/* Botão Link no Site Oficial (Mais Informações) */
.modal-imovel-btn-site {
    width: 100%;
    padding: 0.95rem 1.25rem;
    border-radius: 1rem;
    background: rgba(1, 10, 135, 0.08);
    border: 1.5px solid rgba(1, 10, 135, 0.25);
    color: var(--brand-main, #010A87);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.25s var(--ease-premium);
}
.modal-imovel-btn-site:hover {
    background: var(--brand-main, #010A87);
    color: #fff !important;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px -4px rgba(1, 10, 135, 0.4);
}
.modal-imovel-btn-site:active { transform: scale(0.97); }

body.dark-mode .modal-imovel-btn-site {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.18);
    color: #e2e8f0;
}
body.dark-mode .modal-imovel-btn-site:hover {
    background: var(--brand-main, #010A87);
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff !important;
}

/* Botão WhatsApp */
.modal-imovel-btn-wpp {
    width: 100%;
    padding: 1rem 1.25rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, #25D366 0%, #128c7e 100%) !important;
    color: #ffffff !important;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 6px 20px -6px rgba(37, 211, 102, 0.55);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.modal-imovel-btn-wpp:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px -6px rgba(37, 211, 102, 0.7);
}
.modal-imovel-btn-wpp:active { transform: scale(0.97); }

/* ── LIGHT MODE — modal imóvel ── */
body.light-mode .modal-imovel-sheet {
    background: #ffffff;
}
body.light-mode .modal-imovel-thumbs {
    background: #f4f5f9;
    border-top: 1px solid rgba(0,0,0,0.06);
}
body.light-mode .modal-imovel-titulo {
    color: #1a1a2e !important;
}

/* ── DARK MODE — modal imóvel ── */
body.dark-mode .modal-imovel-sheet {
    background: #1A1F3D;
}
body.dark-mode .modal-imovel-thumbs {
    background: #131729;
    border-top: 1px solid rgba(255,255,255,0.05);
}
body.dark-mode .modal-thumb-item {
    border-color: transparent;
}
body.dark-mode .modal-thumb-ativo {
    border-color: var(--brand-main);
}
body.dark-mode .modal-imovel-titulo {
    color: #f0f4ff !important;
}

/* ── LIGHT MODE — cards de imóvel (reforço) ── */
body.light-mode .imovel-card {
    background: #ffffff !important;
    border-color: rgba(0,0,0,0.07) !important;
}
body.light-mode .imovel-card.destaque {
    border-color: rgba(58,74,159,0.35) !important;
    box-shadow: 0 0 0 1px rgba(58,74,159,0.15), 0 6px 20px -6px rgba(58,74,159,0.2) !important;
}
body.light-mode .imovel-titulo     { color: #1a1a2e !important; }
body.light-mode .imovel-bairro     { color: #71717a !important; }
body.light-mode .imovel-attr       { color: #52525b !important; }
body.light-mode .imovel-preco-sufixo { color: #71717a !important; }

/* ── DARK MODE — cards de imóvel ── */
body.dark-mode .imovel-card {
    background: #10122B !important;
    border-color: rgba(58, 74, 159, 0.25) !important;
}
body.dark-mode .imovel-card.destaque {
    border-color: rgba(90, 110, 220, 0.6) !important;
}
body.dark-mode .imovel-tipo {
    color: #8B96C4 !important;
}
body.dark-mode .imovel-titulo {
    color: #F7F8FC !important;
}
body.dark-mode .imovel-preco {
    color: #F7F8FC !important;
}
body.dark-mode .modal-attr-item span:first-of-type {
    color: #f0f4ff;
}

/* Garantir que o modal backdrop do imóvel funcione bem */
body.light-mode #modal-imovel.modal-backdrop {
    background: rgba(15,15,30,0.6) !important;
    backdrop-filter: blur(6px) !important;
}
body.dark-mode #modal-imovel.modal-backdrop {
    background: rgba(0,0,0,0.75) !important;
    backdrop-filter: blur(8px) !important;
}
/* ==========================================================
   RODAPÉ - ícones sociais com presença óptica uniforme
   Glifos sólidos (Facebook/WhatsApp) parecem maiores que os
   vazados no mesmo font-size, então calibramos por glifo.
   ========================================================== */
.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.8rem;
    height: 1.8rem;
    color: rgba(255, 255, 255, 0.55);
    transition: color .3s ease, transform .3s ease;
}

.footer-social a:hover {
    color: #fff;
    transform: scale(1.1);
}

.footer-social a.wa:hover {
    color: #25D366;
}

.footer-social a[aria-label="Site oficial"] i,
.footer-social a[aria-label="Telefone fixo"] i {
    font-size: 1.2rem;
}

.footer-social a[aria-label="Instagram"] i,
.footer-social a[aria-label="Facebook"] i,
.footer-social a[aria-label="Google"] i {
    font-size: 1.2rem;
}

.footer-social a.wa i {
    font-size: 1.4rem;
}

/* Saudação: cor por tema (o ticker herda #fff, a barra precisa da sua própria) */
body.light-mode .greeting-bar .dynamic-greeting {
    color: var(--brand-dark);
}

body.dark-mode .greeting-bar .dynamic-greeting {
    color: rgba(255, 255, 255, 0.75);
}



/* ============================================
   CABEÇALHO DE SEÇÃO (título + linha + subtítulo)
   ============================================ */
.diferenciais-eyebrow {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--brand-main);
    opacity: 0.85;
    margin-bottom: 8px;
}

.diferenciais-titulo {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    font-size: clamp(2.4rem, 9vw, 3.2rem);
    line-height: 0.95;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    color: var(--text-color);
    margin-bottom: 14px;
}

.diferenciais-linha {
    width: 44px;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-main) 0%, var(--brand-hover) 100%);
    border-radius: 2px;
    margin-bottom: 12px;
}

.diferenciais-subtitulo {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--brand-gray);
    max-width: 300px;
}

/* ============================================
   CARROSSEL DE VÍDEOS 3D
   ============================================ */
.carousel-3d-container {
    perspective: 1400px;
    width: 100%;
    height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    margin-top: -10px;
}

.carousel-3d-item {
    position: absolute;
    width: 270px;
    aspect-ratio: 9 / 16;
    border-radius: 1.75rem;
    overflow: hidden;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1),
        opacity 0.6s cubic-bezier(0.23, 1, 0.32, 1),
        filter 0.6s cubic-bezier(0.23, 1, 0.32, 1),
        box-shadow 0.6s ease;
    cursor: pointer;
    background: #10122B;
    box-shadow: 0 12px 34px rgba(26, 26, 46, 0.16), 0 24px 64px rgba(0, 0, 0, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.10);
    will-change: transform;
}

.carousel-3d-item .carousel-video,
.carousel-3d-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    background: #10122B;
    cursor: pointer;
    pointer-events: auto;
}

.carousel-3d-item.active {
    z-index: 30;
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 1;
    filter: none;
    box-shadow: 0 30px 80px rgba(58, 74, 159, 0.28), 0 12px 32px rgba(0, 0, 0, 0.12);
}

.carousel-3d-item.left {
    z-index: 20;
    transform: translate3d(-128px, 0, -150px) rotateY(24deg) scale(0.84);
    opacity: 0.55;
    filter: blur(2px) saturate(0.7);
}

.carousel-3d-item.right {
    z-index: 20;
    transform: translate3d(128px, 0, -150px) rotateY(-24deg) scale(0.84);
    opacity: 0.55;
    filter: blur(2px) saturate(0.7);
}

.carousel-3d-item.hidden {
    z-index: 10;
    transform: translate3d(0, 0, -280px) scale(0.68);
    opacity: 0;
    pointer-events: none;
}

.carousel-3d-item:not(.active)::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(16, 18, 43, 0.72), rgba(16, 18, 43, 0.12));
    z-index: 6;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.carousel-3d-item.active::after {
    opacity: 0;
}

/* Overlay do player (estado parado) */
.video-overlay {
    position: absolute;
    inset: 0;
    z-index: 12;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.25rem;
    background: linear-gradient(to top, rgba(16, 18, 43, 0.82) 0%, rgba(16, 18, 43, 0.18) 45%, transparent 75%);
    opacity: 1;
    transition: opacity 0.45s ease;
    pointer-events: none;
}

.carousel-3d-item.is-playing .video-overlay {
    opacity: 0;
}

.video-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    font-family: 'Inter', sans-serif;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.26);
    padding: 5px 11px;
    border-radius: 999px;
}

.video-overlay .play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 62px;
    height: 62px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(58, 74, 159, 0.86);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #fff;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
    transition: transform 0.3s ease, background 0.3s ease;
}

.video-overlay .play-btn i {
    margin-left: 3px;
}

.video-overlay .play-btn:hover {
    transform: translate(-50%, -50%) scale(1.07);
    background: rgba(58, 74, 159, 1);
}

.video-caption h4 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    color: #fff;
    font-size: 1.2rem;
    line-height: 1.1;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
    margin: 0;
}

.video-caption p {
    font-family: 'Inter', sans-serif;
    color: rgba(255, 255, 255, 0.78);
    font-size: 9.5px;
    letter-spacing: 0.05em;
    line-height: 1.4;
    margin: 5px 0 0;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

/* Controles do topo direito (som + ampliar) */
.video-controls {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 20;
    display: flex;
    gap: 7px;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.35s ease, transform 0.35s ease;
    pointer-events: none;
}

.carousel-3d-item.is-playing .video-controls {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.vc-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(10, 12, 30, 0.42);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease;
}

.vc-btn:hover {
    background: rgba(10, 12, 30, 0.68);
    transform: scale(1.06);
}

/* Pause central: só no hover, só tocando */
.pause-hover {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    z-index: 18;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(10, 12, 30, 0.38);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.carousel-3d-item.is-playing:hover .pause-hover {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: auto;
}

@media (hover: none) {
    .carousel-3d-item.is-playing:hover .pause-hover {
        opacity: 0;
        pointer-events: none;
    }
}

/* Dots do carrossel */
.carousel-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    margin-top: 18px;
}

.carousel-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    border: none;
    padding: 0;
    cursor: pointer;
    background: rgba(58, 74, 159, 0.24);
    transition: width 0.35s ease, background 0.35s ease;
}

.carousel-dot.active {
    width: 22px;
    background: var(--brand-main, #3A4A9F);
}

body.dark-mode .carousel-dot {
    background: rgba(255, 255, 255, 0.22);
}

body.dark-mode .carousel-dot.active {
    background: #fff;
}

body.light-mode .carousel-3d-item {
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 12px 34px rgba(26, 26, 46, 0.14), 0 24px 64px rgba(0, 0, 0, 0.08) !important;
}

body.light-mode .carousel-3d-item.active {
    border-color: rgba(58, 74, 159, 0.55) !important;
    box-shadow: 0 30px 80px rgba(26, 26, 46, 0.24), 0 12px 32px rgba(0, 0, 0, 0.10) !important;
}

body.dark-mode .carousel-3d-item {
    border: 1px solid rgba(74, 90, 176, 0.22) !important;
}

body.dark-mode .carousel-3d-item.active {
    border-color: rgba(74, 90, 176, 0.55) !important;
}

@media (max-width: 480px) {
    .carousel-3d-container {
        height: 470px;
    }

    .carousel-3d-item {
        width: 224px;
    }

    .carousel-3d-item.left {
        transform: translate3d(-84px, 0, -130px) rotateY(20deg) scale(0.79);
    }

    .carousel-3d-item.right {
        transform: translate3d(84px, 0, -130px) rotateY(-20deg) scale(0.79);
    }

    .video-caption h4 {
        font-size: 1.05rem;
    }

    .video-caption p {
        font-size: 9px;
    }

    .video-overlay {
        padding: 1rem;
    }
}

/* ============================================
   MODAL DE AMPLIAÇÃO DE VÍDEO (#vcModal)
   ============================================ */
.vc-modal {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(10, 12, 30, 0.90);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.vc-modal.active {
    display: flex;
    opacity: 1;
}

.vc-modal-stage {
    position: relative;
    width: 100%;
    max-width: 460px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.vc-modal-video {
    width: 100%;
    max-height: 78vh;
    border-radius: 1.25rem;
    background: #000;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
    outline: none;
}

.vc-modal-caption {
    text-align: center;
    margin-top: 14px;
    padding: 0 12px;
}

.vc-modal-caption h4 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    color: #fff;
    font-size: 1.3rem;
    text-transform: uppercase;
    margin: 0;
}

.vc-modal-caption p {
    font-family: 'Inter', sans-serif;
    color: rgba(255, 255, 255, 0.66);
    font-size: 10px;
    letter-spacing: 0.06em;
    margin: 6px 0 0;
}

.vc-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 12010;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease;
}

.vc-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.06);
}

/* ==========================================================
   WHATSAPP FLOATING BUBBLE (CONDICIONADO À SEÇÃO DE SERVIÇOS)
   ========================================================== */
.whatsapp-container {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(20px) scale(0.9);
    transition: opacity 0.4s cubic-bezier(0.19, 1, 0.22, 1), transform 0.4s cubic-bezier(0.19, 1, 0.22, 1), visibility 0.4s;
}

.whatsapp-container.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

/* Balão de Mensagem */
#whatsapp-message {
    width: 220px;
    position: absolute;
    bottom: 75px;
    right: 0px;
    padding: 12px 28px 12px 14px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(14px) saturate(180%);
    -webkit-backdrop-filter: blur(14px) saturate(180%);
    color: #1a1a2e;
    border-radius: 18px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.45;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow: 0 12px 32px -4px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.8);
    z-index: 1002;
    pointer-events: none;
}

#whatsapp-message.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

/* Cauda do Balão */
#whatsapp-message::after {
    content: '';
    position: absolute;
    bottom: -6px;
    right: 24px;
    width: 12px;
    height: 12px;
    background: inherit;
    transform: rotate(45deg);
    border-right: 1px solid rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.8);
    z-index: -1;
}

/* Botão Fechar (X) */
.close-whatsapp-bubble {
    position: absolute;
    top: 6px;
    right: 8px;
    background: transparent;
    border: none;
    color: #4b5563;
    cursor: pointer;
    font-size: 11px;
    opacity: 0.6;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s, transform 0.2s;
}

.close-whatsapp-bubble:hover {
    opacity: 1;
    transform: scale(1.15);
}

/* Botão Flutuante (Ícone) */
.whatsapp-float {
    width: 56px;
    height: 56px;
    background-color: #25d366;
    color: #FFF !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    z-index: 1001;
}

.whatsapp-float i {
    color: #FFF !important;
}

.whatsapp-float:hover {
    transform: scale(1.08) rotate(4deg);
    background-color: #128c7e;
    color: #FFF !important;
}

/* Efeito de Pulso */
.whatsapp-float::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background-color: #25d366;
    z-index: -1;
    animation: whatsapp-pulse 2.2s infinite;
}

@keyframes whatsapp-pulse {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.6); opacity: 0; }
}

/* Notificação Vermelha Sutil */
.whatsapp-notify {
    position: absolute;
    top: -2px;
    right: -2px;
    background-color: #ff3b30;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    opacity: 0;
    transform: scale(0);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1003;
}

.whatsapp-notify.show {
    opacity: 1;
    transform: scale(1);
}

/* Dark Mode */
body.dark-mode #whatsapp-message {
    background: rgba(16, 18, 43, 0.94);
    color: #f1f5f9;
    border-color: rgba(255, 255, 255, 0.12);
}
body.dark-mode #whatsapp-message::after {
    border-right-color: rgba(255, 255, 255, 0.12);
    border-bottom-color: rgba(255, 255, 255, 0.12);
}
body.dark-mode .close-whatsapp-bubble {
    color: #94a3b8;
}
body.dark-mode .whatsapp-notify {
    border-color: #10122B;
}
