:root {
    /* Color Palette */
    --primary-color: #ff6a40; /* Orange */
    --secondary-color: #04180a; /* Dark Green */
    --accent-blue: #065fc4; /* Blue for hover */
    --dark-text: #666;
    --light-text: #fff;
    --footer-blue: #0785b8;
    --footer-icon-color: rgb(9, 120, 134);
    --form-bg-color: #f9f9f9; /* Light background for form */
    --border-color: #ddd;

    /* Fonts */
    --main-font: 'Calibri', 'Helvetica', sans-serif;
    --heading-font: 'Expletus Sans', cursive;
}

body {
    margin: 0;
    font-family: var(--main-font);
    line-height: 1.6;
    color: var(--dark-text);
}

/* --- Global Styles --- */
.container {
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 15px; /* Added some padding for smaller screens */
    box-sizing: border-box; /* Include padding in width calculation */
}

h1,
h2 {
    font-family: var(--heading-font);
    color: var(--primary-color);
    font-weight: 400;
    margin: 0 0 10px 0; /* Adjusted margin for better spacing */
}

h1 {
    font-size: 30px;
}

h2 {
    font-size: 22px;
}

p {
    margin-bottom: 1em; /* Standard paragraph spacing */
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    text-decoration: none;
    padding: 10px 40px; /* Slightly increased padding */
    color: var(--light-text);
    border: 1px solid var(--primary-color);
    border-radius: 5px; /* Slightly more rounded corners */
    transition: background-color 0.3s ease, border-color 0.3s ease;
    text-align: center;
    white-space: nowrap; /* Prevents text from wrapping on button */
    cursor: pointer; /* Indicate it's clickable */
    font-size: 16px; /* Ensure button text is readable */
}

.btn:hover {
    background-color: #e65c36; /* Darker primary color */
    border-color: #e65c36;
    opacity: 0.9;
}

.btn-whatsapp {
    background-color: #25d366; /* WhatsApp green */
    border-color: #25d366;
}

.btn-whatsapp:hover {
    background-color: #1ea14e; /* Darker WhatsApp green */
    border-color: #1ea14e;
}

.float-left {
    float: left;
    margin-right: 50px;
    margin-bottom: 20px; /* Added bottom margin */
}

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* --- Header Section --- */
#main-header {
    width: 100%;
    border-top: 3px solid var(--primary-color);
    background-image: linear-gradient(to right, var(--secondary-color), var(--primary-color));
    min-height: 80px; /* Ensure header has a minimum height */
    display: flex;
    align-items: center;
    position: relative; /* Needed for absolute positioning of logo/menu toggle */
}

#main-header .container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: relative;
    padding: 0; /* Remove container padding for header items to stretch */
}

#logo {
    position: absolute;
    top: 15px; /* Adjusted top position */
    left: 15px; /* Adjusted left position */
    z-index: 2; /* Ensure logo is above other elements */
}

#logo img {
    height: 50px; /* Set a consistent height for the logo */
    width: auto;
}

/* Navigation Menu */
#main-nav a {
    font-family: var(--heading-font);
    text-transform: uppercase;
    text-decoration: none;
    font-size: 16px;
    color: var(--light-text);
    display: inline-block;
    padding: 30px 20px; /* Adjusted padding */
    transition: background-color 0.4s ease;
}

#main-nav a:hover {
    background-color: var(--accent-blue);
}

/* Mobile Menu Toggle (Hamburger) */
#mobile-menu-toggle {
    display: none; /* Hidden by default on larger screens */
    cursor: pointer;
    position: absolute;
    top: 25px;
    right: 15px;
    z-index: 1000; /* Ensure it's above other elements */
}

.bar {
    width: 35px; /* Increased bar width */
    height: 4px; /* Increased bar height */
    background-color: var(--primary-color);
    margin-bottom: 6px; /* Increased space between bars */
    border-radius: 3px;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

#mobile-menu-toggle.open .bar:first-child {
    transform: rotate(45deg) translate(8px, 8px); /* Adjusted translation */
}

#mobile-menu-toggle.open .bar:nth-child(2) {
    opacity: 0;
    transform: translate(-50px); /* Move out of view */
}

#mobile-menu-toggle.open .bar:last-child {
    transform: rotate(-45deg) translate(8px, -8px); /* Adjusted translation */
}

/* --- Banner/Slider Section --- */
#hero-slider img {
    width: 100%;
    height: auto;
    display: block; /* Remove extra space below image */
}

/* BxSlider Overrides */
.bx-wrapper {
    border: none !important;
    margin: 0;
    box-shadow: none; /* Remove any default box shadow */
}

.bx-pager {
    display: none; /* Hide slider pagination */
}

.bx-wrapper .bx-prev,
.bx-wrapper .bx-next {
    background-image: url(img/controls.png); /* Ensure this path is correct */
    background-size: contain; /* Adjust background size */
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.bx-wrapper .bx-prev:hover,
.bx-wrapper .bx-next:hover {
    opacity: 1;
}

/* --- Testimonial Section --- */
#testimonial {
    width: 100%;
    min-height: 180px; /* Slightly increased min-height */
    text-align: center;
    background-image: url(img/fundo-destaque.jpg);
    background-size: cover;
    background-position: center;
    color: var(--light-text);
    padding: 35px 25px; /* Adjusted padding */
    box-sizing: border-box;
    margin: 50px 0;
    border-radius: 8px; /* Added slight border-radius */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#testimonial p {
    margin: 0;
    font-size: 28px; /* Slightly adjusted font size */
    font-style: italic;
    font-family: var(--heading-font);
    padding-top: 15px; /* Adjusted padding top */
    color: var(--light-text);
    line-height: 1.4;
}

#testimonial span {
    display: block;
    margin-top: 15px;
    font-size: 1.1em;
    font-weight: bold;
}

/* --- Main Content Section --- */
#main-content {
    padding-bottom: 50px; /* Add padding to the bottom of the main content */
}

.advertisement-img {
    margin: 20px auto;
    text-align: center;
}

.advertisement-img img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.advertisement-img figcaption {
    font-style: italic;
    color: var(--dark-text);
    margin-top: 10px;
}

/* --- Service Columns Section --- */
#service-columns {
    display: flex;
    justify-content: space-between;
    gap: 30px; /* Space between columns */
    margin: 50px 0;
    flex-wrap: wrap; /* Allow columns to wrap on smaller screens */
}

.column {
    flex: 1; /* Allow columns to grow and shrink */
    min-width: 280px; /* Minimum width before wrapping */
    text-align: center;
    padding: 20px;
    background-color: var(--light-text);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.column:hover {
    transform: translateY(-5px); /* Subtle lift effect on hover */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.column img {
    border-radius: 5px;
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover; /* Ensures images cover the area without distortion */
    margin-bottom: 15px;
}

.column h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.column p {
    font-size: 15px;
    margin-bottom: 20px;
}

/* --- Contact Form Section --- */
#contact-form-section {
    background-color: var(--form-bg-color);
    padding: 60px 0; /* More vertical padding */
    margin-top: 50px; /* Space above the section */
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

#contact-form-section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 32px;
}

#quote-contact-form {
    max-width: 700px; /* Limit form width */
    margin: 0 auto;
    padding: 30px;
    background-color: var(--light-text);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--dark-text);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    box-sizing: border-box; /* Include padding in width */
    font-size: 16px;
    font-family: var(--main-font);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 106, 64, 0.2); /* Light primary color glow */
}

.form-group textarea {
    resize: vertical; /* Allow vertical resizing */
    min-height: 100px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    margin-top: 25px;
    margin-bottom: 30px;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 10px;
    width: 20px; /* Make checkbox slightly larger */
    height: 20px;
    accent-color: var(--primary-color); /* Changes the checkbox color */
}

.checkbox-group label {
    margin-bottom: 0; /* Remove bottom margin for labels next to checkbox */
    font-weight: normal;
    font-size: 15px;
}

.checkbox-group label a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.checkbox-group label a:hover {
    text-decoration: underline;
    color: var(--primary-color);
}

#quote-contact-form .btn {
    width: auto; /* Allow button to size based on content */
    display: block;
    margin: 0 auto; /* Center the button */
    padding: 12px 50px; /* More padding for a substantial button */
    font-size: 18px; /* Larger text for the submit button */
}

/* --- Footer Section --- */
#main-footer {
    background-image: linear-gradient(to right, var(--footer-blue), var(--primary-color));
    padding: 25px 0; /* Increased vertical padding */
    color: var(--light-text); /* Changed text color to light */
}

#main-footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Allow footer content to wrap */
    text-align: center; /* Center text on wrap */
}

#contact-info {
    font-size: 1em;
    line-height: 1.5;
    margin-bottom: 15px; /* Add space when wrapping */
}

#social-media {
    margin-top: 15px; /* Add space when wrapping */
}

#social-media i {
    font-size: 32px; /* Slightly larger icons */
    margin: 0 8px; /* Increased space between icons */
    color: var(--footer-icon-color);
    opacity: 0.8;
    transition: opacity 0.3s ease, color 0.3s ease;
}

#social-media i:hover {
    opacity: 1;
    color: var(--light-text); /* Icons become brighter on hover */
}

/* --- Responsive Adjustments --- */

/* Tablet and smaller desktops */
@media screen and (max-width: 1024px) {
    #main-nav {
        display: none; /* Hide by default on smaller screens */
        position: absolute;
        top: 80px; /* Below the header */
        width: 100%; /* Full width */
        left: 0;
        background-image: linear-gradient(to bottom, var(--footer-blue), var(--primary-color));
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
        z-index: 999;
    }

    #main-nav a {
        display: block;
        padding: 15px 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.1); /* Lighter border for mobile menu */
        text-align: center;
    }

    #mobile-menu-toggle {
        display: block; /* Show hamburger icon */
    }

    #main-header .container {
        justify-content: space-between; /* Space out logo and toggle */
    }

    #logo {
        position: static; /* Remove absolute positioning on smaller screens */
        margin-left: 0; /* Remove any left margin */
    }

    #testimonial p {
        font-size: 24px;
        padding-top: 10px;
    }

    #main-content {
        text-align: center;
    }

    .float-left {
        float: none;
        margin-right: 0;
        margin: 0 auto 30px auto; /* Center image and add bottom margin */
        width: 60%; /* Adjust image width */
        max-width: 400px;
    }

    .btn {
        width: 80%; /* Make buttons wider */
        max-width: 300px;
        margin: 15px auto; /* Center buttons */
    }

    #service-columns {
        flex-direction: column; /* Stack columns vertically */
        align-items: center; /* Center stacked columns */
    }

    .column {
        width: 80%; /* Occupy more width when stacked */
        max-width: 400px;
        margin-bottom: 30px; /* Space between stacked columns */
    }

    .column:last-child {
        margin-bottom: 0;
    }

    #contact-form-section .container {
        padding: 0 25px; /* Add more padding to form container */
    }
}

/* Mobile phones */
@media screen and (max-width: 600px) {
    #logo img {
        width: 120px; /* Smaller logo on very small screens */
        height: auto;
    }

    #testimonial {
        padding: 25px 15px;
    }

    #testimonial p {
        font-size: 18px;
        padding-top: 0px;
    }

    .float-left {
        width: 85%; /* Larger image on very small screens */
    }

    .btn {
        width: 90%;
    }

    .column {
        width: 90%;
    }

    #main-footer .container {
        flex-direction: column;
    }

    #contact-info {
        margin-bottom: 20px;
    }

    #social-media {
        margin-top: 0;
    }

    #quote-contact-form {
        padding: 20px; /* Reduce form padding on small screens */
    }

    #contact-form-section h2 {
        font-size: 26px;
    }
}

/* --- Botão de WhatsApp Flutuante --- */
.whatsapp-float {
    position: fixed; /* Fixa o botão na tela, ele não rola com o conteúdo */
    width: 60px;
    height: 60px;
    bottom: 40px; /* Distância do fundo da tela */
    right: 40px; /* Distância da direita da tela */
    background-color: #25d366; /* Cor verde do WhatsApp */
    color: #FFF;
    border-radius: 50px; /* Transforma o botão em um círculo */
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.4); /* Sombra para destaque */
    z-index: 10000; /* Garante que o botão fique acima de outros elementos */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #1ea14e; /* Escurece um pouco no hover */
    transform: scale(1.05); /* Pequeno efeito de zoom no hover */
}

.whatsapp-float .whatsapp-icon {
    margin-top: 0; /* Ajusta o ícone verticalmente */
}

/* Ajustes responsivos para o botão flutuante */
@media screen and (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 24px;
    }
}

@media screen and (max-width: 480px) {
    .whatsapp-float {
        width: 45px;
        height: 45px;
        bottom: 15px;
        right: 15px;
        font-size: 22px;
    }
}

