:root {
    --sol-primary: #ffc600;
    --sol-primary-dark: #d9a900;
    --sol-green: #23a036;
    --sol-dark-const: #0a1026;
    --sol-dark: #0a1026;
    --sol-muted: #6b7280;
    --sol-white: #ffffff;
    --radius-lg: 28px;
    
    /* Variáveis do Tema Claro (Padrão) */
    --theme-bg: #ffffff;
    --theme-text: #0a1026;
    --theme-text-muted: #6b7280;
    --theme-soft: #f5f7fb;
    --theme-card-bg: #ffffff;
    --theme-card-border: rgba(10, 16, 38, 0.08);
    --theme-card-shadow: 0 12px 40px rgba(10, 16, 38, 0.06);
    --theme-card-shadow-hover: 0 24px 60px rgba(10, 16, 38, 0.12);
    --theme-navbar-bg: #ffffff;
    --theme-hero-bg: radial-gradient(circle at top left, rgba(255, 198, 0, 0.22), transparent 32%), linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    --theme-about-hero-bg: radial-gradient(circle at top left, rgba(255, 198, 0, 0.24), transparent 34%), linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    --theme-input-border: rgba(10, 16, 38, 0.14);
    --theme-toggler-filter: none;
    --shadow-soft: 0 20px 60px rgba(10, 16, 38, 0.12);
}

[data-bs-theme="dark"] {
    /* Variáveis do Tema Escuro (Suave e Leve) */
    --theme-bg: #0b0f19;
    --theme-text: #f3f4f6;
    --theme-text-muted: #9ca3af;
    --theme-soft: #141c2f;
    --theme-card-bg: #151d30;
    --theme-card-border: rgba(255, 255, 255, 0.06);
    --theme-card-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    --theme-card-shadow-hover: 0 24px 60px rgba(0, 0, 0, 0.4);
    --theme-navbar-bg: #0b0f19;
    --theme-hero-bg: radial-gradient(circle at top left, rgba(255, 198, 0, 0.08), transparent 32%), linear-gradient(180deg, #0b0f19 0%, #141c2f 100%);
    --theme-about-hero-bg: radial-gradient(circle at top left, rgba(255, 198, 0, 0.08), transparent 34%), linear-gradient(180deg, #0b0f19 0%, #141c2f 100%);
    --theme-input-border: rgba(255, 255, 255, 0.12);
    --theme-toggler-filter: invert(1);
    --shadow-soft: 0 20px 60px rgba(0, 0, 0, 0.35);
}

/* Overrides de Bootstrap no Modo Escuro */
[data-bs-theme="dark"] .bg-light {
    background-color: var(--theme-soft) !important;
}
[data-bs-theme="dark"] .bg-white {
    background-color: var(--theme-bg) !important;
}
[data-bs-theme="dark"] .product-carousel-card {
    background: var(--theme-card-bg);
    border-color: var(--theme-card-border);
}
[data-bs-theme="dark"] .text-dark {
    color: var(--theme-text) !important;
}
[data-bs-theme="dark"] .btn-outline-dark {
    color: var(--theme-text);
    border-color: rgba(255, 255, 255, 0.3);
}
[data-bs-theme="dark"] .btn-outline-dark:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--theme-text);
    background: var(--theme-bg);
    padding-top: 76px;
    transition: background-color 350ms ease, color 350ms ease;
}

a {
    text-decoration: none;
}

.navbar {
    min-height: 76px;
}

.brand-mark {
    color: var(--sol-primary);
}

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

.btn-primary {
    --bs-btn-bg: var(--sol-primary);
    --bs-btn-border-color: var(--sol-primary);
    --bs-btn-color: #111827;
    --bs-btn-hover-bg: var(--sol-primary-dark);
    --bs-btn-hover-border-color: var(--sol-primary-dark);
    --bs-btn-hover-color: #111827;
    --bs-btn-active-bg: var(--sol-primary-dark);
    --bs-btn-active-border-color: var(--sol-primary-dark);
    font-weight: 800;
}

.hero-section {
    position: relative;
    overflow: hidden;
    padding: 96px 0 80px;
    background: var(--theme-hero-bg);
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-shape {
    position: absolute;
    border-radius: 999px;
    filter: blur(2px);
    opacity: 0.55;
}

.hero-shape-one {
    width: 260px;
    height: 260px;
    right: -90px;
    top: 120px;
    background: rgba(35, 160, 54, 0.14);
}

.hero-shape-two {
    width: 180px;
    height: 180px;
    left: 10%;
    bottom: -90px;
    background: rgba(255, 198, 0, 0.24);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--sol-green);
}

.hero-card {
    border-radius: var(--radius-lg);
    background: var(--sol-dark);
    color: var(--sol-white);
    padding: 32px;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
    transition: all 300ms ease;
    animation: fadeInUp 600ms ease-out 300ms both;
}

.hero-card::before {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    right: -90px;
    top: -90px;
    border-radius: 999px;
    background: rgba(255, 198, 0, 0.28);
}

.hero-card-top,
.hero-card-content,
.hero-stats {
    position: relative;
    z-index: 1;
}

.hero-card-top {
    display: flex;
    justify-content: space-between;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 92px;
}

.hero-card-content h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    line-height: 1;
    max-width: 460px;
}

.hero-card-content p {
    color: rgba(255, 255, 255, 0.72);
    max-width: 420px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 32px;
}

.hero-stats div {
    padding: 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
}

.hero-stats strong,
.hero-stats span {
    display: block;
}

.hero-stats strong {
    color: var(--sol-primary);
}

.hero-stats span {
    color: rgba(255, 255, 255, 0.64);
    font-size: 0.9rem;
}

.section-padding {
    padding: 88px 0;
}

.section-heading {
    max-width: 720px;
}

.bg-soft {
    background: var(--theme-soft);
    transition: background-color 350ms ease;
}

.service-card,
.feature-box,
.form-card,
.info-card,
.notice-box {
    border: 1px solid var(--theme-card-border);
    border-radius: 24px;
    background: var(--theme-card-bg);
    box-shadow: var(--theme-card-shadow);
}

.service-card,
.feature-box {
    padding: 28px;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.service-card:hover,
.feature-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(10, 16, 38, 0.1);
}

.service-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: rgba(255, 198, 0, 0.2);
    color: var(--sol-dark);
    display: grid;
    place-items: center;
    font-weight: 900;
    margin-bottom: 22px;
}

.service-card h3,
.feature-box h3 {
    font-size: 1.25rem;
    font-weight: 850;
}

.service-card p,
.feature-box p {
    color: var(--sol-muted);
}

.service-card a {
    color: var(--sol-green);
    font-weight: 850;
}

.form-card {
    padding: 30px;
}

.form-control,
.form-select {
    border-color: var(--theme-input-border);
    border-radius: 16px;
    background-color: var(--theme-card-bg);
    color: var(--theme-text);
    transition: background-color 350ms ease, color 350ms ease, border-color 350ms ease, box-shadow 350ms ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--sol-primary);
    box-shadow: 0 0 0 0.2rem rgba(255, 198, 0, 0.18);
    background-color: var(--theme-card-bg);
    color: var(--theme-text);
}

.info-card,
.notice-box {
    display: grid;
    gap: 8px;
    padding: 22px;
    margin-top: 28px;
}

.info-card strong,
.notice-box strong {
    color: var(--sol-dark);
}

.info-card span,
.notice-box span {
    color: var(--sol-muted);
}

.notice-box {
    border-left: 5px solid var(--sol-primary);
}

.contact-section {
    padding: 88px 0;
    background: #ffffff;
}

.contact-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at top right, rgba(255, 198, 0, 0.28), transparent 28%),
        var(--sol-dark);
    padding: 48px;
    box-shadow: var(--shadow-soft);
}

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
}

.footer-section {
    background: #050816;
    color: #ffffff;
    padding: 56px 0 28px;
}

.footer-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-list li {
    margin-bottom: 8px;
}

.footer-list a {
    color: rgba(255, 255, 255, 0.72);
}

.footer-list a:hover {
    color: var(--sol-primary);
}

.footer-line {
    border-color: rgba(255, 255, 255, 0.12);
    margin: 36px 0 24px;
}

.whatsapp-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 999;
    border-radius: 999px;
    background: var(--sol-green);
    color: #ffffff;
    font-weight: 900;
    padding: 14px 24px;
    box-shadow: 0 14px 35px rgba(35, 160, 54, 0.35);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.whatsapp-float:hover {
    color: #ffffff;
    filter: brightness(1.05);
}

.toast-area {
    position: fixed;
    top: 92px;
    right: 20px;
    z-index: 1200;
    display: grid;
    gap: 10px;
    width: min(360px, calc(100vw - 40px));
}

.site-toast {
    transform: translateX(24px);
    opacity: 0;
    border-radius: 18px;
    padding: 14px 16px;
    background: #111827;
    color: #ffffff;
    box-shadow: 0 18px 45px rgba(10, 16, 38, 0.18);
    transition: transform 220ms ease, opacity 220ms ease;
}

.site-toast.is-visible {
    transform: translateX(0);
    opacity: 1;
}

.site-toast-success {
    background: #166534;
}

.site-toast-danger {
    background: #991b1b;
}

@media (max-width: 991px) {
    .hero-section {
        padding-top: 64px;
    }

    .contact-box {
        align-items: flex-start;
        flex-direction: column;
    }

    .contact-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 575px) {
    body {
        padding-top: 68px;
    }

    .navbar {
        min-height: 68px;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .hero-card {
        padding: 24px;
    }

    .hero-card-top {
        margin-bottom: 56px;
    }

    .section-padding,
    .contact-section {
        padding: 64px 0;
    }

    .form-card,
    .contact-box {
        padding: 28px 22px;
    }
}


.site-logo {
    max-height: 46px;
    width: auto;
    display: block;
}

.footer-logo {
    max-height: 54px;
    width: auto;
    display: block;
    filter: brightness(1.05);
}

.about-preview-section {
    background: var(--theme-bg);
    transition: background-color 350ms ease;
}

.about-mini-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.about-mini-card {
    min-height: 160px;
    border-radius: 24px;
    padding: 24px;
    background: var(--theme-card-bg);
    border: 1px solid var(--theme-card-border);
    box-shadow: var(--theme-card-shadow);
}

.about-mini-card.highlight {
    grid-row: span 2;
    background: var(--sol-dark);
    color: #ffffff;
}

.about-mini-card strong,
.about-mini-card span {
    display: block;
}

.about-mini-card strong {
    font-size: 1.35rem;
    margin-bottom: 10px;
}

.about-mini-card span {
    color: var(--sol-muted);
}

.about-mini-card.highlight span {
    color: rgba(255, 255, 255, 0.72);
}

.about-hero-section {
    position: relative;
    overflow: hidden;
    padding: 96px 0 80px;
    background:
        radial-gradient(circle at top left, rgba(255, 198, 0, 0.24), transparent 34%),
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.about-image-grid {
    display: grid;
    grid-template-columns: 1fr 0.82fr;
    grid-template-rows: 260px 180px;
    gap: 18px;
    align-items: stretch;
}

.about-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 28px;
    box-shadow: var(--shadow-soft);
    animation: fadeInUp 600ms ease-out;
}

.about-photo-large {
    grid-row: 1 / span 2;
}

.about-photo-small {
    margin-top: 46px;
}

.about-placeholder {
    display: grid;
    place-content: center;
    gap: 12px;
    text-align: center;
    padding: 32px 24px;
    background:
        radial-gradient(circle at 30% 30%, rgba(255, 198, 0, 0.15), transparent 40%),
        linear-gradient(135deg, rgba(255, 198, 0, 0.1), rgba(35, 160, 54, 0.08)),
        #ffffff;
    border: 2px dashed rgba(10, 16, 38, 0.18);
    color: var(--sol-dark);
    transition: all 300ms ease;
}

.about-placeholder:hover {
    border-color: var(--sol-primary);
    background:
        radial-gradient(circle at 30% 30%, rgba(255, 198, 0, 0.2), transparent 40%),
        linear-gradient(135deg, rgba(255, 198, 0, 0.15), rgba(35, 160, 54, 0.1)),
        #ffffff;
    box-shadow: 0 12px 40px rgba(255, 198, 0, 0.1);
}

.about-placeholder strong {
    display: block;
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--sol-dark);
    margin-bottom: 4px;
}

.about-placeholder span {
    color: var(--sol-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.sticky-note-card,
.content-card,
.value-card {
    border: 1px solid var(--theme-card-border);
    border-radius: 24px;
    background: var(--theme-card-bg);
    box-shadow: var(--theme-card-shadow);
}

.sticky-note-card {
    position: sticky;
    top: 104px;
    padding: 30px;
}

.content-card {
    padding: clamp(28px, 4vw, 48px);
}

.rich-text p {
    color: #4b5563;
    font-size: 1.05rem;
    line-height: 1.85;
    margin-bottom: 1.25rem;
}

.rich-text .closing-text {
    margin-top: 2rem;
    color: var(--sol-dark);
    font-size: 1.3rem;
    font-weight: 800;
}

.value-card {
    padding: 28px;
}

.value-card span {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: rgba(255, 198, 0, 0.22);
    font-weight: 900;
    margin-bottom: 22px;
}

.value-card h3 {
    font-size: 1.25rem;
    font-weight: 850;
}

.value-card p {
    color: var(--sol-muted);
    margin-bottom: 0;
}

@media (max-width: 991px) {
    .about-mini-grid,
    .about-image-grid {
        grid-template-columns: 1fr;
    }

    .about-mini-card.highlight,
    .about-photo-large {
        grid-row: auto;
    }

    .about-photo-small {
        margin-top: 0;
    }

    .sticky-note-card {
        position: static;
    }
}

/* ===== ANIMAÇÕES E EFEITOS VISUAIS ===== */

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-32px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(32px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.92);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes countUp {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Elementos com animação ao carregar (adicionados pela JS) */
.animate-fade-in {
    animation: fadeInUp 600ms ease-out;
}

.animate-slide-left {
    animation: slideInFromLeft 600ms ease-out;
}

.animate-slide-right {
    animation: slideInFromRight 600ms ease-out;
}

.animate-scale {
    animation: scaleIn 600ms ease-out;
}

/* Hero visual placeholder */
.hero-visual-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 400px;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(255, 198, 0, 0.1), rgba(35, 160, 54, 0.08));
    border: 2px dashed rgba(10, 16, 38, 0.16);
    transition: all 300ms ease;
    animation: fadeInUp 700ms ease-out 200ms both;
    position: relative;
    overflow: hidden;
}

.hero-visual-placeholder::before {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    top: -50%;
    right: -10%;
    border-radius: 999px;
    background: rgba(255, 198, 0, 0.08);
    filter: blur(3px);
}

.hero-visual-placeholder:hover {
    border-color: var(--sol-primary);
    background: linear-gradient(135deg, rgba(255, 198, 0, 0.15), rgba(35, 160, 54, 0.1));
    box-shadow: 0 12px 40px rgba(255, 198, 0, 0.12);
}

.placeholder-icon {
    width: 80px;
    height: 80px;
    color: var(--sol-dark);
    opacity: 0.35;
    margin-bottom: 16px;
    transition: all 300ms ease;
    position: relative;
    z-index: 1;
}

.hero-visual-placeholder:hover .placeholder-icon {
    color: var(--sol-primary);
    opacity: 0.5;
    transform: scale(1.12);
}

.placeholder-text {
    color: var(--sol-muted);
    font-size: 1rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

/* Service card com ícone SVG */
.service-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.service-icon svg {
    width: 28px;
    height: 28px;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: all 300ms ease;
}

.service-icon span {
    font-weight: 900;
    font-size: 1.1rem;
}

.service-card:hover .service-icon svg {
    transform: translateY(-3px) scale(1.1);
    color: var(--sol-primary);
}

/* Value card com ícone */
.value-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: rgba(255, 198, 0, 0.18);
    margin-bottom: 16px;
    transition: all 300ms ease;
}

.value-icon svg {
    width: 32px;
    height: 32px;
    color: var(--sol-dark);
    transition: all 300ms ease;
}

.value-card:hover .value-icon {
    background: var(--sol-primary);
    transform: scale(1.08) rotateY(8deg);
}

.value-card:hover .value-icon svg {
    color: var(--sol-dark);
    transform: scale(1.15);
}

.value-card span {
    margin-bottom: 16px !important;
    font-size: 0.9rem;
    color: var(--sol-muted) !important;
}

/* Button animations */
.btn {
    transition: all 280ms ease;
    position: relative;
}

.btn-primary {
    transition: all 280ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(255, 198, 0, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-outline-dark:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(10, 16, 38, 0.15);
}

/* Enhanced card hover effect */
.service-card,
.feature-box,
.about-mini-card,
.sticky-note-card,
.content-card,
.value-card {
    transition: all 300ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.service-card:hover,
.feature-box:hover,
.value-card:hover {
    box-shadow: 0 24px 60px rgba(10, 16, 38, 0.12);
}

/* Navbar scroll effect */
.navbar {
    transition: all 280ms ease;
}

.navbar.scrolled {
    box-shadow: 0 4px 12px rgba(10, 16, 38, 0.08);
}

/* Gradient backgrounds para seções */
.section-padding {
    position: relative;
}

/* Stagger animation para cards em grid */
.col-md-4:nth-child(1) {
    animation: fadeInUp 600ms ease-out;
}

.col-md-4:nth-child(2) {
    animation: fadeInUp 600ms ease-out 100ms both;
}

.col-md-4:nth-child(3) {
    animation: fadeInUp 600ms ease-out 200ms both;
}

/* Prefers reduced motion - respeita preferências de acessibilidade */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Mobile optimizations */
@media (max-width: 575px) {
    .hero-visual-placeholder {
        height: 240px;
    }
    
    .placeholder-icon {
        width: 60px;
        height: 60px;
    }

    .col-md-4:nth-child(1),
    .col-md-4:nth-child(2),
    .col-md-4:nth-child(3) {
        animation: fadeInUp 600ms ease-out !important;
        animation-delay: 0ms !important;
    }

    .service-card:hover,
    .feature-box:hover {
        transform: translateY(-2px);
    }

    .hero-section {
        padding: 64px 0;
    }

    .hero-card {
        padding: 24px;
    }

    .hero-visual-placeholder {
        animation-delay: 100ms;
    }
}

@media (max-width: 575px) {
    .site-logo {
        max-height: 40px;
    }

    .about-hero-section {
        padding: 64px 0;
    }

    .about-image-grid {
        grid-template-rows: auto;
    }

    .about-photo,
    .about-placeholder {
        min-height: 240px;
    }
}

/* ===== COMPONENTES DO TEMA ESCURO E ADAPTAÇÕES ===== */

/* Botão Alternador de Tema */
.btn-theme-toggle {
    background: transparent;
    border: none;
    padding: 8px;
    color: var(--theme-text);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    transition: all 250ms ease;
    outline: none;
}

.btn-theme-toggle:hover {
    background: var(--theme-soft);
    color: var(--sol-primary);
}

.btn-theme-toggle svg {
    width: 20px;
    height: 20px;
}

/* Ocultar/Mostrar ícone baseado no tema */
[data-bs-theme="dark"] .theme-icon-moon {
    display: none;
}
[data-bs-theme="dark"] .theme-icon-sun {
    display: block;
}
html:not([data-bs-theme="dark"]) .theme-icon-sun {
    display: none;
}
html:not([data-bs-theme="dark"]) .theme-icon-moon {
    display: block;
}

/* Transições Suaves Adicionais */
.service-card,
.feature-box,
.about-mini-card,
.sticky-note-card,
.content-card,
.value-card,
.form-card,
.info-card,
.notice-box,
.contact-box,
.footer-section,
.navbar {
    transition: background-color 350ms ease, color 350ms ease, border-color 350ms ease, box-shadow 350ms ease, transform 300ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Overrides para Dark Mode */
[data-bs-theme="dark"] .navbar-theme {
    background-color: var(--theme-navbar-bg) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

[data-bs-theme="dark"] .navbar-theme .navbar-nav .nav-link {
    color: var(--theme-text) !important;
}

[data-bs-theme="dark"] .navbar-theme .navbar-nav .nav-link:hover {
    color: var(--sol-primary) !important;
}

[data-bs-theme="dark"] .navbar-toggler {
    border-color: var(--theme-card-border);
}

[data-bs-theme="dark"] .navbar-toggler-icon {
    filter: var(--theme-toggler-filter);
}

.contact-section {
    background: var(--theme-bg) !important;
    transition: background-color 350ms ease;
}

.about-hero-section {
    background: var(--theme-about-hero-bg) !important;
}

.text-muted {
    color: var(--theme-text-muted) !important;
    transition: color 350ms ease;
}

.rich-text p {
    color: var(--theme-text-muted) !important;
}

.rich-text .closing-text {
    color: var(--theme-text) !important;
}

[data-bs-theme="dark"] .site-logo-placeholder rect {
    stroke: var(--theme-text);
}

[data-bs-theme="dark"] .site-logo-placeholder text {
    fill: var(--theme-text);
}

/* Placeholder visual hero em dark mode */
[data-bs-theme="dark"] .hero-visual-placeholder {
    border-color: rgba(255, 255, 255, 0.12);
}

[data-bs-theme="dark"] .placeholder-icon {
    color: var(--theme-text);
}

/* Value card em dark mode */
[data-bs-theme="dark"] .value-icon svg {
    color: var(--theme-text);
}

[data-bs-theme="dark"] .value-card:hover .value-icon svg {
    color: var(--sol-dark-const);
}

/* ===== TRANSIÇÃO DE PÁGINA PROFISSIONAL ===== */

.page-transition-curtain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--theme-bg);
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 380ms cubic-bezier(0.25, 1, 0.5, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-transition-curtain.is-active {
    opacity: 1;
    pointer-events: all;
}

/* Spinner customizado para a SOL Financeira */
.transition-spinner {
    width: 60px;
    height: 60px;
}

.transition-spinner svg {
    animation: transition-rotate 1.8s linear infinite;
    width: 100%;
    height: 100%;
}

.transition-spinner circle {
    stroke: var(--sol-primary);
    stroke-linecap: round;
    animation: transition-dash 1.4s ease-in-out infinite;
    stroke-width: 4;
}

@keyframes transition-rotate {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes transition-dash {
    0% {
        stroke-dasharray: 1, 150;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -35;
    }
    100% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -124;
    }
}

/* ===== FAQ ACCORDION CUSTOMIZADO ===== */
.faq-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-card {
    border: 1px solid var(--theme-card-border);
    border-radius: 20px;
    background: var(--theme-card-bg);
    box-shadow: var(--theme-card-shadow);
    overflow: hidden;
    transition: all 300ms cubic-bezier(0.3, 1, 0.4, 1);
}

.faq-card:hover {
    box-shadow: var(--theme-card-shadow-hover);
    border-color: rgba(255, 198, 0, 0.25);
    transform: translateY(-2px);
}

.faq-trigger {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    background: transparent;
    border: none;
    text-align: left;
    outline: none;
    cursor: pointer;
    font-size: 1.15rem;
    font-weight: 750;
    color: var(--theme-text);
    transition: color 250ms ease;
}

.faq-trigger:hover {
    color: var(--sol-primary-dark);
}

.faq-question-text {
    padding-right: 16px;
}

.faq-icon-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--theme-soft);
    color: var(--theme-text);
    transition: transform 300ms cubic-bezier(0.3, 1, 0.4, 1), background-color 250ms ease, color 250ms ease;
    flex-shrink: 0;
}

.faq-icon-arrow svg {
    width: 16px;
    height: 16px;
}

.faq-trigger[aria-expanded="true"] .faq-icon-arrow {
    transform: rotate(180deg);
    background-color: var(--sol-primary);
    color: var(--sol-dark-const);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 380ms cubic-bezier(0.3, 1, 0.4, 1), opacity 380ms ease;
    opacity: 0;
}

.faq-content-inner {
    padding: 0 24px 24px 24px;
    font-size: 1.02rem;
    line-height: 1.7;
    color: var(--theme-text-muted);
}

/* Estilização customizada para controles de Slider Range */
.form-range {
    height: 6px;
    border-radius: 999px;
    background-color: var(--theme-soft);
}

.form-range::-webkit-slider-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--sol-primary);
    border: 3px solid var(--theme-card-bg);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    cursor: pointer;
    transition: transform 150ms ease, background-color 150ms ease;
}

.form-range::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    background: var(--sol-primary-dark);
}

.form-range::-webkit-slider-thumb:active {
    transform: scale(0.95);
}

.form-range::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--sol-primary);
    border: 3px solid var(--theme-card-bg);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    cursor: pointer;
    transition: transform 150ms ease, background-color 150ms ease;
}

.form-range::-moz-range-thumb:hover {
    transform: scale(1.15);
    background: var(--sol-primary-dark);
}

/* Estilização Premium para o Select do Simulador */
#sim_produto {
    background-color: var(--theme-card-bg);
    color: var(--theme-text);
    border: 2px solid var(--theme-card-border);
    border-radius: 18px;
    padding: 16px 46px 16px 20px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffc600' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 16px;
    transition: all 280ms cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--theme-card-shadow);
    width: 100%;
}

#sim_produto:hover {
    border-color: var(--sol-primary);
    box-shadow: 0 6px 20px rgba(255, 198, 0, 0.14);
    transform: translateY(-1px);
}

#sim_produto:focus {
    border-color: var(--sol-primary);
    box-shadow: 0 0 0 4px rgba(255, 198, 0, 0.18);
    outline: none;
}

#sim_resultado_box {
    transition: all 300ms ease;
}
#sim_resultado_box:hover {
    transform: scale(1.01);
}

/* Efeitos adicionais para o modo de edição manual do valor */
#sim_valor_display_container {
    transition: transform 200ms ease, opacity 200ms ease;
}

#sim_valor_display_container:hover .edit-icon {
    transform: scale(1.15);
    color: var(--sol-primary-dark) !important;
    opacity: 1 !important;
}

#sim_valor_input:focus {
    border-color: var(--sol-primary) !important;
    box-shadow: 0 0 0 3px rgba(255, 198, 0, 0.2) !important;
    outline: none;
}

/* Hero Carousel de Produtos */
.hero-carousel-section {
    position: relative;
    padding: 120px 0 80px;
    background: var(--theme-hero-bg);
    overflow: hidden;
}

.carousel-arrow-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--theme-card-border);
    background-color: var(--theme-card-bg);
    color: var(--theme-text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 250ms ease;
    box-shadow: var(--theme-card-shadow);
}

.carousel-arrow-btn:hover {
    background-color: var(--sol-primary);
    border-color: var(--sol-primary);
    color: #111827;
    transform: scale(1.05);
}

.products-carousel-wrapper {
    position: relative;
    width: 100%;
    margin-top: 20px;
}

.products-carousel-track {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 16px 4px 32px;
}

.products-carousel-track::-webkit-scrollbar {
    display: none;
}

.products-carousel-track {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.product-carousel-card {
    flex: 0 0 380px;
    width: 380px;
    scroll-snap-align: start;
    background-color: var(--theme-card-bg);
    border: 1px solid var(--theme-card-border);
    border-radius: 24px;
    padding: 24px;
    box-shadow: var(--theme-card-shadow);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: transform 400ms cubic-bezier(0.25, 1, 0.5, 1), 
                box-shadow 400ms cubic-bezier(0.25, 1, 0.5, 1), 
                border-color 400ms cubic-bezier(0.25, 1, 0.5, 1);
}

.product-carousel-card .card-image-wrapper {
    width: 100%;
    aspect-ratio: 16 / 11;
    overflow: hidden;
    border-radius: 16px;
    margin-bottom: 20px;
    position: relative;
    background-color: var(--theme-soft);
}

.product-carousel-card .card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 600ms cubic-bezier(0.25, 1, 0.5, 1);
}

.product-carousel-card:hover .card-image-wrapper img {
    transform: scale(1.06);
}

.product-carousel-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(255, 198, 0, 0.12), var(--theme-card-shadow-hover);
    border-color: var(--sol-primary);
}

.product-carousel-card .card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255, 198, 0, 0.18), rgba(255, 198, 0, 0.05));
    color: var(--sol-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    transition: transform 450ms cubic-bezier(0.25, 1, 0.5, 1), 
                background-color 300ms ease, 
                color 300ms ease,
                box-shadow 300ms ease;
}

.product-carousel-card:hover .card-icon {
    background: var(--sol-primary);
    color: #111827;
    transform: scale(1.12) rotate(6deg);
    box-shadow: 0 8px 20px rgba(255, 198, 0, 0.3);
}

.product-carousel-card .card-icon svg {
    width: 28px;
    height: 28px;
    transition: transform 300ms ease;
}

.product-carousel-card:hover .card-icon svg {
    transform: scale(1.05);
}

.product-carousel-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--theme-text);
}

.product-carousel-card p {
    font-size: 0.95rem;
    color: var(--theme-text-muted);
    line-height: 1.6;
    margin-bottom: 24px;
}

.product-carousel-card .card-link {
    margin-top: auto;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--sol-primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 200ms ease, color 200ms ease;
}

.product-carousel-card .card-link:hover {
    color: var(--sol-primary-dark);
    gap: 12px;
}

@media (max-width: 991px) {
    .product-carousel-card {
        flex: 0 0 calc(50% - 12px);
    }
}

@media (max-width: 575px) {
    .product-carousel-card {
        flex: 0 0 100%;
        min-width: 270px;
    }
}

/* Trust Badges no Simulador */
.simulator-trust-badges {
    border-top: 1px solid var(--theme-card-border) !important;
}

.simulator-trust-badges .badge-icon-wrapper {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background-color: var(--theme-soft);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 300ms cubic-bezier(0.25, 1, 0.5, 1), background-color 300ms ease;
}

.simulator-trust-badges .col-4:hover .badge-icon-wrapper {
    transform: scale(1.15);
    background-color: var(--theme-card-border);
}

/* Bancos Parceiros Grid */
.bancos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.bank-card {
    background-color: var(--theme-card-bg);
    border: 1px solid var(--theme-card-border);
    border-radius: 20px;
    padding: 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 150px;
    box-shadow: var(--theme-card-shadow);
    transition: transform 300ms cubic-bezier(0.25, 1, 0.5, 1), 
                box-shadow 300ms cubic-bezier(0.25, 1, 0.5, 1), 
                border-color 300ms ease;
}

.bank-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    border-color: var(--sol-primary);
}

.bank-logo-wrapper {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.bank-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--theme-text);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Slider Ticks/Dots */
.slider-ticks {
    position: relative;
    z-index: 1;
}

.tick-dot {
    width: 8px;
    height: 8px;
    background-color: var(--theme-card-border);
    border-radius: 50%;
    display: inline-block;
    transition: background-color 200ms ease, transform 200ms ease;
}

.tick-dot.active {
    background-color: var(--sol-primary);
    transform: scale(1.35);
    box-shadow: 0 0 6px rgba(255, 198, 0, 0.6);
}

.tick-dot.current {
    transform: scale(1.6) !important;
    background-color: var(--sol-primary) !important;
    box-shadow: 0 0 10px rgba(255, 198, 0, 0.9) !important;
}

/* Simulator Mode Toggle Buttons */
.btn-simulator-mode {
    border: 1.5px solid var(--theme-card-border) !important;
    background-color: transparent !important;
    color: var(--theme-text-muted) !important;
    font-weight: 600 !important;
    transition: all 250ms ease !important;
}

.btn-simulator-mode:hover {
    border-color: var(--sol-primary) !important;
    color: var(--theme-text) !important;
    background-color: rgba(255, 198, 0, 0.08) !important;
}

.btn-simulator-mode.active {
    border-color: var(--sol-primary) !important;
    background-color: var(--sol-primary) !important;
    color: #111827 !important; /* Premium readability over yellow background */
    font-weight: 700 !important;
}

/* Manual inputs styling for perfect contrast and theme integration */
#sim_valor_input,
#sim_margem_input {
    color: var(--theme-text) !important;
    background-color: var(--theme-card-bg) !important;
    border: 1.5px solid var(--sol-primary) !important;
    box-shadow: 0 0 8px rgba(255, 198, 0, 0.2) !important;
    font-weight: bold !important;
    border-radius: 8px !important;
    padding: 2px 8px !important;
}

/* Active Navigation Link Styling */
.navbar-light .navbar-nav .nav-link.active {
    color: var(--sol-primary) !important;
    font-weight: 700 !important;
}

/* Header Logo Light/Dark display rules */
.site-logo.logo-dark {
    display: none;
}

[data-bs-theme="dark"] .site-logo.logo-light {
    display: none !important;
}

[data-bs-theme="dark"] .site-logo.logo-dark {
    display: inline-block !important;
}



/* Bootstrap 5.3 Native Theme Overrides */
[data-bs-theme="dark"] {
    --bs-body-bg: var(--theme-bg);
    --bs-body-color: var(--theme-text);
    --bs-tertiary-bg: var(--theme-soft);
}
[data-bs-theme="light"] {
    --bs-body-bg: var(--theme-bg);
    --bs-body-color: var(--theme-text);
    --bs-tertiary-bg: var(--theme-soft);
}
