:root {
    --dimare-dark: #1b2b2c;
    /* azul escuro quase preto */
    --dimare-brown: #9a5a2b;
    /* marrom terroso */
    --dimare-beige: #eae3d6;
    /* bege claro */
    --dimare-green: #bfc39a;
    /* verde oliva claro */
    --dimare-green-dark: #6b7a6a;
    /* verde escuro */
    --dimare-highlight: #bfc39a;
    --dimare-white: #fff;
}

body {
    font-family: 'Montserrat', Arial, sans-serif;
    background: var(--dimare-beige);
    color: var(--dimare-dark);
}

.bg-custom {
    background: var(--dimare-brown) !important;
}

.logo-text {
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 700;
    font-size: 2rem;
    color: var(--dimare-white) !important;
    letter-spacing: 1px;
}

.header-main {
    background: var(--dimare-brown);
    position: relative;
}

.header-hero {
    background: linear-gradient(120deg, var(--dimare-dark) 60%, var(--dimare-brown) 100%, var(--dimare-green) 100%);
    min-height: 500px;
    color: var(--dimare-white);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.header-hero h1 {
    font-weight: 700;
    color: var(--dimare-white);
    letter-spacing: 2px;
}

.section-title {
    font-weight: 700;
    color: var(--dimare-dark);
    border-left: 4px solid var(--dimare-brown);
    padding-left: 12px;
    margin-bottom: 1rem;
}

.box-diferenciais {
    background: var(--dimare-white);
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
}

.banner-detalhes {
    background: linear-gradient(90deg, var(--dimare-dark) 60%, var(--dimare-brown) 100%);
}

.banner-detalhes .highlight {
    color: var(--dimare-highlight);
    font-style: italic;
}

.btn-custom {
    background: var(--dimare-brown);
    color: var(--dimare-white);
    border: none;
    transition: background 0.2s;
}

.btn-custom:hover {
    background: var(--dimare-dark);
    color: var(--dimare-white);
}

.btn-outline-custom {
    border: 2px solid var(--dimare-brown);
    color: var(--dimare-brown);
    background: transparent;
}

.btn-outline-custom:hover {
    background: var(--dimare-brown);
    color: var(--dimare-white);
}

.footer-main {
    background: var(--dimare-dark);
    color: var(--dimare-white);
}

.footer-main a {
    color: var(--dimare-green);
    text-decoration: none;
}

.footer-main a:hover {
    color: var(--dimare-highlight);
}

.btn-darkmode {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
    background: var(--dimare-dark);
    color: var(--dimare-white);
    border: none;
    border-radius: 50px;
    padding: 10px 22px;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: background 0.2s;
}

.btn-darkmode:hover {
    background: var(--dimare-brown);
}

/* Dark mode */
body.darkmode {
    background: var(--dimare-dark);
    color: var(--dimare-beige);
}

body.darkmode .bg-custom,
body.darkmode .header-main,
body.darkmode .banner-detalhes {
    background: var(--dimare-green-dark) !important;
}

body.darkmode .box-diferenciais,
body.darkmode .newsletter-section,
body.darkmode .seja-lojista,
body.darkmode .blog-section {
    background: var(--dimare-green-dark) !important;
    color: var(--dimare-beige);
}

body.darkmode .footer-main {
    background: var(--dimare-brown);
    color: var(--dimare-white);
}

body.darkmode .section-title {
    color: var(--dimare-beige);
    border-left: 4px solid var(--dimare-green);
}

body.darkmode .btn-custom {
    background: var(--dimare-green);
    color: var(--dimare-dark);
}

body.darkmode .btn-custom:hover {
    background: var(--dimare-brown);
    color: var(--dimare-white);
}

body.darkmode .btn-outline-custom {
    border: 2px solid var(--dimare-green);
    color: var(--dimare-green);
}

body.darkmode .btn-outline-custom:hover {
    background: var(--dimare-green);
    color: var(--dimare-dark);
}

/* Video Background Styles */
.header-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    z-index: 0;
    pointer-events: none;
}

.header-hero .container {
    position: relative;
    z-index: 1;
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    width: auto;
    /* Adjust width based on content */
    height: 60px;
    bottom: 40px;
    left: 40px;
    /* Changed from right to left as per user request in similar projects */
    background-color: #25d366;
    /* WhatsApp Green */
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 16px;
    /* Adjusted font size */
    box-shadow: 2px 2px 3px #999;
    z-index: 1000;
    display: flex;
    /* For aligning icon and text */
    align-items: center;
    /* Vertically center content */
    padding: 0 20px;
    /* Add some padding */
    text-decoration: none;
    /* Remove underline from link */
    transition: background-color 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    /* Darker WhatsApp Green on hover */
    color: #FFF;
}

.whatsapp-float i {
    font-size: 30px;
    /* Larger icon */
    margin-right: 10px;
    /* Space between icon and text */
}

.whatsapp-float span {
    font-weight: bold;
}

/* Exit Intent Modal Styles */
#exitIntentModal .modal-content {
    border: 1px solid var(--dimare-brown);
    border-radius: 0.5rem;
    /* Slightly more pronounced rounding if desired */
    background-color: var(--dimare-beige);
    /* Using beige for content background */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

#exitIntentModal .modal-header {
    background-color: var(--dimare-dark);
    /* Dark header */
    color: var(--dimare-white);
    border-bottom: 2px solid var(--dimare-brown);
    /* Accent border */
    padding: 1rem 1.5rem;
}

#exitIntentModal .modal-title {
    font-weight: 700;
    /* Bolder title */
    font-size: 1.5rem;
    /* Larger title */
}

#exitIntentModal .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
    /* Make close button white */
}

#exitIntentModal .modal-body {
    padding: 2rem;
    color: var(--dimare-dark);
}

#exitIntentModal .modal-body .h5 {
    color: var(--dimare-dark);
    /* Ensure subtitle contrasts with beige body */
    font-weight: 600;
    margin-bottom: 1.5rem !important;
}

#exitIntentModal .form-control,
#exitIntentModal .form-select {
    border-color: var(--dimare-green-dark);
    /* Use a theme color for input borders */
}

#exitIntentModal .form-control:focus,
#exitIntentModal .form-select:focus {
    border-color: var(--dimare-brown);
    box-shadow: 0 0 0 0.25rem rgba(var(--dimare-brown-rgb, 154, 90, 43), 0.25);
    /* Create an RGB version if not available or use a fixed one */
}

/* If --dimare-brown-rgb is not defined, you might need to add it to :root or use a fixed rgba value for the shadow */
/* Example for :root if --dimare-brown-rgb is needed for the shadow color: */
/* --dimare-brown-rgb: 154, 90, 43; */

#exitIntentModal .form-check-label {
    font-size: 0.9rem;
    color: var(--dimare-dark);
}

#exitIntentModal .btn-custom {
    padding: 0.75rem 1.5rem;
    /* Make button a bit larger */
    font-size: 1rem;
}


/* Responsive no Hero */
@media (max-width: 991px) {
    .header-hero {
        min-height: 200px;
    }
}

/* Newsletter Form Styles */
.newsletter-form {
    max-width: 400px;
    margin: 0 auto;
}

/* Newsletter Success Message */
.newsletter-success {
    color: var(--dimare-green);
    font-weight: 600;
}