:root {
    --primary-color: #1e3563;
    --secondary-color: #8aa6c2;
    --light-color: #f8f9fa;
    --dark-color: #333;
    --white-color: #fff;
    --success-color: #25d366;
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    background-color: var(--light-color);
    color: var(--dark-color);
    line-height: 1.6;
}

.bg-primary-custom {
    background-color: var(--primary-color);
}

.bg-secondary-custom {
    background-color: var(--secondary-color);
}

.text-primary-custom {
    color: var(--primary-color);
}

/* Accessibility - Focus Styles */
a:focus, button:focus, input:focus, textarea:focus, select:focus, .btn:focus {
    outline: 3px solid rgba(30, 53, 99, 0.5);
    outline-offset: 2px;
}

/* Header & Navigation */
.top-header {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 10px 0;
}

.top-header a {
    color: var(--white-color);
    text-decoration: none;
}

.top-header a:hover {
    text-decoration: underline;
}

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

.navbar-brand img {
    max-height: 80px;
    transition: all 0.3s ease;
}

.navbar-brand img:hover {
    opacity: 0.8;
}

/* Ajuste para menu hamburger ficar à direita */
.navbar .container {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
}

@media (min-width: 992px) {
    .navbar .container {
        display: flex;
        flex-direction: row;
        justify-content: center;
    }
}

.nav-link {
    color: var(--dark-color);
    font-weight: 500;
    padding: 0.8rem 1rem !important;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 3px;
    background-color: var(--primary-color);
}

/* Login Button */
.login-button {
    background-color: var(--primary-color);
    color: var(--white-color);
    border: none;
    border-radius: 5px;
    padding: 8px 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.login-button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    color: var(--white-color);
}

/* Header Mobile Adjustment */
@media (max-width: 767px) {
    .header-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .navbar-brand img {
        max-height: 50px;
    }
    
    .login-button {
        padding: 5px 10px;
        font-size: 0.9rem;
    }
}

/* Login Modal */
.modal-content {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: none;
}

.modal-header {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: var(--white-color);
    border-bottom: none;
    padding: 15px 20px;
}

.modal-title {
    font-weight: 600;
}

.modal-header .btn-close {
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    opacity: 1;
    margin-right: 0;
}

.modal-body {
    padding: 20px;
}

/* Carousel */
.carousel-item {
    height: 500px;
    overflow: hidden;
}

.carousel-item img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.carousel-caption {
    background-color: rgba(30, 53, 99, 0.7);
    border-radius: 10px;
    padding: 20px;
    max-width: 600px;
    margin: 0 auto;
}

/* Features */
.feature-icon {
    background-color: var(--primary-color);
    color: white;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Service Cards */
.service-card {
    transition: all 0.3s ease;
    height: 100%;
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.service-card .card-img-top {
    height: 180px;
    object-fit: cover;
}

.service-card .card-body {
    position: relative;
    z-index: 1;
}

.service-card .card-body::before {
    content: '';
    position: absolute;
    top: -30px;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(to top, rgba(255,255,255,1), rgba(255,255,255,0));
    z-index: -1;
}

.service-card .icon-overlay {
    position: absolute;
    bottom: 15px;
    right: 15px;
    font-size: 4rem;
    color: rgba(30, 53, 99, 0.1);
}

/* WhatsApp Widget */
.whatsapp-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.whatsapp-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--success-color);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    border: none;
    font-size: 1.5rem;
}

.whatsapp-button:hover, .whatsapp-button:focus {
    background-color: #128c7e;
    transform: scale(1.1);
    color: white;
}

.whatsapp-tooltip {
    position: absolute;
    top: -40px;
    right: 0;
    background-color: white;
    color: var(--dark-color);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.9rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
}

.whatsapp-button:hover + .whatsapp-tooltip {
    opacity: 1;
    top: -50px;
}

/* About Section */
.about-section {
    background-color: var(--white-color);
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.about-section .img-container {
    height: 100%;
    min-height: 300px;
    background-position: center;
    background-size: cover;
}

.about-content {
    padding: 30px;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 90px; /* Adjusted to be above WhatsApp widget */
    right: 20px;
    background-color: var(--primary-color);
    color: var(--white-color);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    background-color: var(--secondary-color);
    color: var(--white-color);
}

/* Testimonials */
.testimonial-card {
    background-color: var(--white-color);
    border-radius: 10px;
    padding: 20px;
    margin: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    position: relative;
}

.testimonial-card::before {
    content: '\201C';
    font-size: 80px;
    position: absolute;
    top: -10px;
    left: 10px;
    color: rgba(30, 53, 99, 0.1);
    font-family: serif;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 50px 0 20px;
}

footer .footer-heading {
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

footer .footer-heading:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
}

footer .text-muted {
    color: #a1b9e5 !important;
}

footer a {
    transition: all 0.3s ease;
}

footer a:hover {
    padding-left: 5px;
    text-decoration: underline !important;
}

/* Skip to main content - Accessibility */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    z-index: 100;
    transition: top 0.3s;
}

.skip-to-content:focus {
    top: 0;
}

/* Screen reader only */
.visually-hidden:not(:focus):not(:active) {
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .carousel-item {
        height: 300px;
    }
    
    .about-section .img-container {
        min-height: 200px;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}