/* Custom CSS for the redesigned website */

:root {
    --azul-claro: #a7effe;
    --dourado: #c68c2b;
    --branco: #ffffff;
    --preto: #000200;
    --amarelo:#f0e009;
    --texto-principal: #3a3a3a;
    --texto-secundario: #6b6f75;

    --heading-font: "Open sans", sans-serif;
    --body-font: "Open sans", sans-serif;

    --section-padding: 80px; /* Adjust as needed */
}

body {
    font-family: var(--body-font);
    color: var(--texto-principal);
}

h1, h2, h3, h4, h5, h6, .navbar-brand, .nav-link {
    font-family: var(--heading-font);
}

.top-bar {
    background-color: #f6f9fa;
    color: var(--dourado);
    padding: 8px 0 5px 0;
    font-size: 0.85em;
    text-align: center; /* Default for mobile */
}

/* Custom Navbar Styles */
.navbar-custom {
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: background-color 0.3s ease;
}

.navbar-custom .navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.navbar-custom .navbar-logo {
    height: 70px;
    transition: height 0.3s ease;
}

.navbar-custom .nav-link {
    color: #3a3a3a;
    font-weight: 600;
    font-size: 1rem;
    margin: 0 0.5rem;
    padding: 1rem 0.5rem;
    position: relative;
    transition: color 0.3s ease;
}

.navbar-custom .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0.5rem;
    left: 0.5rem;
    right: 0.5rem;
    height: 2px;
    background-color: var(--dourado);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
    color: var(--preto);
}

.navbar-custom .nav-link:hover::after,
.navbar-custom .nav-link.active::after {
    transform: scaleX(1);
}

@media (min-width: 768px) {
    .top-bar {
        text-align: right; /* Right-align for larger screens */
    }
}

.top-bar a {
    color: var(--azul-claro);
    font-weight: 600;
    text-decoration: none;
}

.navbar {
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
}

.nav-link {
    font-weight: 700;
}

.hero {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../img/banner.webp');
    background-size: cover;
    background-position: center;
    padding: 100px 0;
}

.btn-primary {
    background-color: var(--dourado);
    border-color: var(--dourado);
}

.btn-primary:hover {
    background-color: #a57424;
    border-color: #a57424;
}

.btn-outline-primary {
    color: var(--dourado);
    border-color: var(--dourado);
}

.btn-outline-primary:hover {
    background-color: var(--dourado);
    color: var(--branco);
}

.footer {
    border-top: 5px solid var(--dourado);
}

.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1) !important;
}

.service-icon {
    font-size: 3rem;
    color: var(--dourado);
}

.timeline {
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 5%;
    right: 5%;
    height: 2px;
    background-color: #e9ecef;
    display: none; /* Hidden on small screens */
}

.timeline-step {
    text-align: center;
    position: relative;
    padding-top: 40px; /* Space for the icon and line */
}

.timeline-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--dourado);
    color: var(--branco);
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    border: 3px solid #f8f9fa; /* Match bg-light */
}

@media (min-width: 992px) {
    .timeline::before {
        display: block; /* Show the line on large screens */
    }
}

.gallery-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2) !important;
}

.footer-link:hover {
    color: var(--dourado) !important;
}

.payment-badge {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 5px 12px;
    border-radius: 20px;
    margin-right: 10px;
    margin-bottom: 10px;
    font-size: 0.9em;
    display: inline-flex;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
}

.about-image-wrapper::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    background-color: var(--dourado);
    opacity: 0.1;
    border-radius: 0.375rem; /* Match Bootstrap's .rounded */
    z-index: -1;
    transition: all 0.3s ease;
}

.about-image-wrapper:hover::before {
    transform: translate(10px, 10px);
}

.hero-content {
    max-width: 600px; /* Limit text width for large screens */
    text-align: left; /* Left-align text */
}

/* For smaller screens, revert to center alignment */
@media (max-width: 768px) {
    .hero-content {
        max-width: 100%;
        text-align: center;
    }
}

.icon-box {
    font-size: 2.5rem;
    color: var(--dourado);
}

.page-hero {
    background-color: #e0f2fe; /* New background color */
    padding: 0; /* Removed fixed padding to match image height */
}

.page-hero-quem-somos {
    background-image: url('../img/banner-quem-somos.jpg');
}
.default-hero {color:#47d0f6}
.default-hero-led {color:#366a79}
.right-hero-image {text-align: right}
/*
.page-hero-servicos {
    background-image: url('../img/banner-servicos.jpg');
}
*/

/*
.page-hero-areas {
    background-image: url('../img/banner-areas.jpg');
}
*/


.service-features li {
    list-style: none;
    margin-bottom: 10px;
}
.service-features li i {
    color: var(--dourado);
    margin-right: 8px;
}

/*
.page-hero-contato {
    background-image: url('https://images.unsplash.com/photo-1596526131083-0424a7a0bb9d?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3w1NjY1ODJ8MHwxfHxjYXJlZXJpbmclMjBjb250YWN0fGVufDB8fHx8MTcwNzIwNTg5M3ww&ixlib=rb-4.0.3&q=80&w=1080'); /* Placeholder contact image */
}
*/

.contact-details-list i {
    color: var(--dourado); /* Apply brand color to icons */
}

.social-icons a {
    font-size: 1.8rem;
    color: var(--preto);
    margin: 0 10px;
    transition: color 0.3s ease;
}
.social-icons a:hover {
    color: var(--dourado);
}

.form-control:focus, .form-select:focus {
    box-shadow: 0 0 0 0.25rem rgba(198,140,43,0.25); /* Use rgba with var(--dourado) */
    border-color: var(--dourado);
}

.page-hero-zona-sul {
    background-image: url('https://images.unsplash.com/photo-1542992318-095a4b56350e?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3w1NjY1ODJ8MHwxfHxpbnN0YW50JTIwcGhvdG8lMjBwcmludGluZ3xlbnwwfHx8fDE3MDcyNzk5OTJ8MHww&ixlib=rb-4.0.3&q=80&w=1080'); /* Placeholder image for Zona Sul */
}

.page-hero-centro-rio {
    background-image: url('https://images.unsplash.com/photo-1596526131083-0424a7a0bb9d?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3w1NjY1ODJ8MHwxfHxjYXJlZXJpbmclMjBjb250YWN0fGVufDB8fHx8MTcwNzIwNTg5M3ww&ixlib=rb-4.0.3&q=80&w=1080'); /* Placeholder image for Centro do Rio */
}

.page-hero-zona-oeste {
    background-image: url('https://images.unsplash.com/photo-1563829094776-8800537f07e5?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3w1NjY1ODJ8MHwxfHxiYXJyYSUyMGRhJTIwdGlqdWNhJTIwYmVhY2hlJTIwcmVnb3VybyUyMHJpbyUyMGRlJTIwZXZlbnRvcyUyMGZvdG9zJTIwZGVzaWdufGVufDB8fHx8MTcwNzIwNTg5M3ww&ixlib=rb-4.0.3&q=80&w=1080'); /* Placeholder image for Zona Oeste */
}

.page-hero-baixada-fluminense {
    background-image: url('https://images.unsplash.com/photo-1540575467063-178a50c2df87?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3w1NjY1ODJ8MHwxfHxpbnN0YW50JTIwcGhvdG8lMjBwcmludGluZ3xlbnwwfHx8fDE3MDcyNzk5OTJ8MHww&ixlib=rb-4.0.3&q=80&w=1080'); /* Placeholder image for Baixada Fluminense */
}

.section-spacing {
    padding-top: var(--section-padding) !important;
    padding-bottom: var(--section-padding) !important;
}

@media (max-width: 991.98px) {
    .navbar-custom .navbar-collapse {
        background-color: var(--branco); /* White background for mobile menu when open */
    }
    .navbar-custom .nav-link {
        color: var(--preto); /* Dark links for contrast on white background */
        text-align: center;
        margin: 0.5rem 0;
    }
    .navbar-custom .nav-link:hover,
    .navbar-custom .nav-link.active {
        color: var(--dourado); /* Gold hover effect */
    }
    .navbar-custom .nav-link::after {
        background-color: var(--dourado); /* Gold underline for active/hover */
        left: 20%;
        right: 20%;
    }
    .navbar-custom .navbar-toggler {
        border-color: rgba(0,0,0,.1); /* A bit darker border for toggler */
    }
    .navbar-custom .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0, 0, 0, 0.85)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }
}