/* Global Styles */
:root {
    --primary-color: #0b152e; /* Dark blue from logo */
    --secondary-color: #d4af37; /* Gold color for accents */
    --accent-color: #d4af37; /* Using gold for accents */
    --light-color: #f8f9fa;
    --dark-color: #0b152e;
    --text-color: #333;
    --text-light: #7f8c8d;
    --header-bg: #0b152e;
    --footer-bg: #0b152e;
    --gold-light: #e6c15c; /* Lighter gold for hover states */
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    padding-top: 76px; /* For fixed navbar */
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

.section-title {
    position: relative;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    color: var(--primary-color);
}

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

.btn-primary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--dark-color);
    padding: 0.6rem 1.8rem;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--gold-light);
    border-color: var(--gold-light);
    color: var(--dark-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Navbar */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    transition: all 0.3s ease;
    background-color: var(--header-bg) !important;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    background-color: rgba(255, 255, 255, 0.98) !important;
}

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

.navbar.scrolled .navbar-brand img {
    max-height: 40px;
}

.nav-link {
    color: var(--dark-color) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    position: relative;
    padding: 0.5rem 1rem !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--secondary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 70%;
    background-color: var(--secondary-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(11, 21, 46, 0.9), rgba(11, 21, 46, 0.8)), url('../img/imagem03.png') no-repeat center center/cover;
    color: white;
    height: 90vh;
    display: flex;
    align-items: center;
    text-align: left;
    position: relative;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero p.lead {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 300;
}

/* About Section */
#sobre {
    padding: 6rem 0;
}

#sobre img {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

#sobre img:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

blockquote {
    border-left: 4px solid var(--secondary-color);
    padding-left: 1.5rem;
    font-style: italic;
    color: var(--text-light);
    margin: 2rem 0;
}

/* Especialidades Section */
#especialidades {
    padding: 6rem 0;
}

.card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-top: 3px solid var(--secondary-color);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--gold-light);
}

.card-body {
    padding: 2rem;
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    background-color: rgba(212, 175, 55, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.icon-wrapper i {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* Contato Section */
#contato {
    padding: 6rem 0;
    background-color: #f8f9fa;
}

.form-control {
    border-radius: 5px;
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    margin-bottom: 1rem;
}

.form-control:focus {
    box-shadow: none;
    border-color: var(--accent-color);
}

.contact-info {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.contact-icon i {
    color: var(--secondary-color);
}

/* Style for contact links */
.contact-item a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--gold-light);
    text-decoration: none;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: translateY(-3px);
}

/* Map */
.map-container {
    height: 300px;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 2rem;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Footer */
footer {
    background-color: var(--footer-bg);
    color: white;
    padding: 3rem 0 2rem;
    text-align: center;
}

/* Update text color in header and footer for better contrast */
.navbar .nav-link,
.navbar .navbar-brand,
.navbar .navbar-toggler {
    color: white !important;
}

.navbar .navbar-toggler-icon {
    filter: brightness(0) invert(1);
}

/* Update active nav link style */
.nav-link.active,
.nav-link:focus,
.nav-link:hover {
    color: var(--secondary-color) !important;
}

/* Update navbar on scroll */
.navbar.scrolled {
    background-color: var(--header-bg) !important;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
}

/* Update footer links */
footer a {
    color: var(--light-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--secondary-color);
    text-decoration: none;
}

/* Map link button */
.btn-outline-primary {
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-outline-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--dark-color);
}

/* Responsive Styles */
@media (max-width: 991.98px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p.lead {
        font-size: 1.25rem;
    }
}

@media (max-width: 767.98px) {
    .hero {
        text-align: center;
        height: auto;
        padding: 8rem 0;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    #sobre img {
        margin-bottom: 2rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    width: 50px;
    height: 50px;
    bottom: 110px;
    right: 25px;
    background-color: var(--secondary-color);
    color: var(--dark-color);
    border: none;
    border-radius: 50%;
    text-align: center;
    font-size: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.scroll-to-top:hover {
    background-color: var(--gold-light);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    font-size: 35px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    color: #FFF;
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.whatsapp-float i {
    margin-top: 2px;
}

/* Animation for the WhatsApp button */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(212, 175, 55, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
    }
}

.whatsapp-float {
    animation: pulse 2s infinite;
}

/* Responsive adjustments for WhatsApp float */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 15px;
        font-size: 25px;
    }
}

/* Gallery Section */
#galeria {
    padding: 5rem 0;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 21, 46, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    padding: 1rem;
    text-align: center;
}

.gallery-caption {
    color: white;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.gallery-caption h5 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.gallery-caption p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

/* Responsive adjustments for gallery */
@media (max-width: 991.98px) {
    .gallery-item img {
        height: 200px;
    }
}

@media (max-width: 767.98px) {
    .gallery-item img {
        height: 180px;
    }
}
