/* Base & Variables */
:root {
    --primary-gold: #C5A059;
    --dark-gold: #A68341;
    --light-gold: #E8D5A5;
    --black: #111111;
    --dark-grey: #222222;
    --medium-grey: #555555;
    --light-grey: #F5F5F5;
    --white: #FFFFFF;
    --font-main: 'Montserrat', sans-serif;
    --transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--black);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.container {
    width: 100%;
    margin: 0 auto;
    padding: 0 100px;
}

/* Utilities */
.btn-gold {
    display: inline-block;
    background-color: var(--primary-gold);
    color: var(--white);
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    border: 2px solid var(--primary-gold);
    cursor: pointer;
    text-align: center;
}

.btn-gold:hover {
    background-color: var(--dark-gold);
    border-color: var(--dark-gold);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(197, 160, 89, 0.3);
}

.btn-gold-outline {
    display: inline-block;
    background-color: transparent;
    color: var(--primary-gold);
    padding: 10px 24px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
    border: 2px solid var(--primary-gold);
    cursor: pointer;
    text-align: center;
}

.btn-gold-outline:hover {
    background-color: var(--primary-gold);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(197, 160, 89, 0.2);
}

.btn-outline-dark {
    display: inline-block;
    background-color: transparent;
    color: var(--black);
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    border: 2px solid var(--black);
    cursor: pointer;
    text-align: center;
}

.btn-outline-dark:hover {
    background-color: var(--black);
    color: var(--white);
    transform: translateY(-2px);
}

.subtitle {
    color: var(--primary-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.gold-divider {
    width: 60px;
    height: 3px;
    background-color: var(--primary-gold);
    margin: 20px 0;
}

/* Top Bar */
.top-bar {
    background-color: var(--black);
    color: var(--light-grey);
    padding: 8px 0;
    font-size: 0.8rem;
    font-weight: 400;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar .contact-info span {
    margin-right: 15px;
}

.top-bar .contact-info i {
    color: var(--primary-gold);
    margin-right: 5px;
}

.top-bar .divider {
    color: var(--medium-grey);
}

.top-bar .social-links a {
    color: var(--light-grey);
    margin-left: 15px;
}

.top-bar .social-links a:hover {
    color: var(--primary-gold);
}

/* Navigation */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 10px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary-gold), var(--dark-gold));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(197, 160, 89, 0.3);
    flex-shrink: 0;
}

.logo-text h1 {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--black);
    letter-spacing: 1px;
}

.logo-text h1 span {
    font-weight: 600;
}

.logo-text p {
    font-size: 0.55rem;
    text-transform: uppercase;
    color: var(--primary-gold);
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-links a {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--black);
    text-transform: uppercase;
    position: relative;
}

.nav-links a:not(.btn-gold-outline)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-gold);
    transition: var(--transition);
}

.nav-links a:not(.btn-gold-outline):hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--primary-gold);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--black);
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    height: calc(100vh - 120px);
    min-height: 600px;
    background-image: url('hero_pc.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0.0) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 1100px;
    margin: 0;
    /* Align left based on gradient */
}

.hero h2 {
    font-size: 3.5rem;
    font-weight: 400;
    line-height: 1.1;
    color: var(--black);
    margin-bottom: 20px;
}

.hero h2 span {
    font-weight: 600;
    color: var(--primary-gold);
}

.hero p {
    font-size: 1.1rem;
    color: var(--medium-grey);
    margin-bottom: 35px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* About Section */
.about {
    padding: 100px 0;
    background-color: var(--white);
    overflow: hidden;
    /* Prevent overflow on animations */
}

.about .container {
    display: flex;
    align-items: center;
    gap: 60px;
}

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

.gold-frame {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--primary-gold);
    z-index: 1;
    border-radius: 10px;
}

.about-image {
    width: 100%;
    border-radius: 10px;
    position: relative;
    z-index: 2;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.experience-badge {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background-color: var(--black);
    color: var(--white);
    padding: 20px;
    border-radius: 10px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-left: 4px solid var(--primary-gold);
}

.experience-badge .number {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--primary-gold);
}

.experience-badge .text {
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.2;
}

.about-content {
    flex: 1;
}

.about-content h3 {
    font-size: 2.5rem;
    color: var(--black);
    margin-bottom: 20px;
}

.credentials {
    font-size: 1.05rem;
    color: var(--dark-grey);
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.credentials i {
    color: var(--primary-gold);
}

.about-content .description {
    color: var(--medium-grey);
    margin-top: 20px;
    font-size: 1rem;
}

.about-features {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: var(--light-grey);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.9rem;
}

.feature-item i {
    color: var(--primary-gold);
    font-size: 1.2rem;
}

/* Diferenciais Section */
.diferenciais {
    padding: 100px 0;
    background-color: var(--black);
    color: var(--white);
}

.diferenciais .section-header h2 {
    color: var(--white);
}

.diferenciais-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.dif-card {
    background-color: var(--dark-grey);
    padding: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.dif-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-gold);
    box-shadow: 0 10px 20px rgba(197, 160, 89, 0.1);
}

.dif-card i {
    font-size: 2rem;
    color: var(--primary-gold);
    width: 40px;
    text-align: center;
}

.dif-card h3 {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--white);
    margin: 0;
}

/* Specialties Section */
.specialties {
    padding: 100px 0 150px 0;
    background-color: var(--light-grey);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--black);
}

.specialties-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.specialty-card {
    background-color: var(--white);
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 0;
}

.specialty-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-gold);
    transform: scaleX(0);
    transition: var(--transition);
    transform-origin: left;
    z-index: 10;
}

.specialty-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.specialty-card:hover::before {
    transform: scaleX(1);
}

.card-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.specialty-card:hover .card-image img {
    transform: scale(1.1);
}

.card-content {
    padding: 30px;
}

.specialty-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--black);
}

.specialty-card p {
    color: var(--medium-grey);
    font-size: 0.95rem;
}

/* CTA Section */
.cta {
    padding: 0;
    /* Overlapping design */
    background-color: var(--white);
}

.cta-container {
    display: flex;
    background-color: var(--black);
    background-image: url('ctafoto.jpeg');
    border-radius: 0 0 15px 10px;
    transform: translateY(-70px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    margin-bottom: -70px;
    /* Offset the transform for subsequent sections */
}

.cta-box {
    flex: 1;
    padding: 60px 40px;
    text-align: center;
    color: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.cta-divider {
    width: 1px;
    background: radial-gradient(circle, rgba(197, 160, 89, 0.5) 0%, rgba(197, 160, 89, 0) 100%);
}

.cta-icon {
    font-size: 3rem;
    color: var(--primary-gold);
    margin-bottom: 20px;
}

.cta-box h3 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.cta-box p {
    color: #ccc;
    margin-bottom: 30px;
    max-width: 300px;
}

/* Footer */
.footer {
    background-color: var(--dark-grey);
    color: var(--white);
    padding-top: 120px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo h2 {
    color: var(--white);
}

.footer-logo p {
    color: var(--primary-gold);
}

.footer-desc {
    color: #aaa;
    margin-top: 20px;
    max-width: 350px;
}

.footer-location h3 {
    color: var(--primary-gold);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-location p {
    color: #ccc;
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
}

.footer-location p i {
    margin-top: 4px;
    color: var(--primary-gold);
}

.map-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--primary-gold);
    font-size: 0.85rem;
    margin-bottom: 15px;
    margin-left: 25px;
    text-transform: uppercase;
    font-weight: 500;
}

.map-link:hover {
    color: var(--white);
}

.footer-bottom {
    background-color: var(--black);
    padding: 20px 0;
}

.footer-bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #888;
}

.footer-links a {
    color: #888;
}

.footer-links a:hover {
    color: var(--primary-gold);
}

.footer-links .divider {
    margin: 0 10px;
}

.footer-social a {
    color: #888;
    margin-left: 15px;
    font-size: 1.1rem;
}

.footer-social a:hover {
    color: var(--primary-gold);
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.visible {
    opacity: 1;
    transform: translate(0);
}

/* Responsive - Media Queries */
@media (max-width: 1024px) {
    .hero {
        background-image: url('hero_mobile.jpg');
    }

    .hero-overlay {
        background: linear-gradient(to top, rgba(255, 255, 255, 100%) 0%, rgba(255, 255, 255, 0.8) 50%, rgba(255, 255, 255, 0.0) 70%);
    }

    .container {
        padding: 0 40px;
        /* Tablet view: a bit less distance to edge */
    }

    .hero h2 {
        font-size: 3rem;
    }
}

@media (max-width: 992px) {
    .specialties-grid,
    .diferenciais-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        padding: 30px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        border-top: 1px solid rgba(0, 0, 0, 0.05);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        width: 100%;
        text-align: center;
        padding: 10px 0;
    }

    .mobile-menu-btn {
        display: block;
    }

    .about .container {
        flex-direction: column;
    }

    .about-image-wrapper {
        margin-bottom: 50px;
        width: 100%;
        max-width: 500px;
    }

    .experience-badge {
        right: 10px;
        /* Adjust for smaller screens */
        bottom: -20px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-desc {
        margin: 20px auto;
    }

    .footer-location p {
        justify-content: center;
    }

    .map-link {
        margin-left: 0;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .specialties-grid,
    .diferenciais-grid {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 0 15px;
        /* Mobile View: exactly 15px distance to edge */
    }

    .hero {
        height: 900px;
        padding: 290px 0 10px 0;
    }

    .hero h2 {
        font-size: 2.2rem;
    }

    .cta-container {
        flex-direction: column;
        transform: translateY(-40px);
        margin-bottom: -40px;
    }

    .cta-divider {
        width: 100%;
        height: 1px;
    }

    .top-bar {
        display: none;
    }

    .logo-text h1 {
        font-size: 1rem;
    }

    .logo-text p {
        font-size: 0.5rem;
    }

    .footer-bottom-flex {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .about-content h3 {
        font-size: 2rem;
    }

    .experience-badge {
        position: relative;
        right: auto;
        bottom: auto;
        margin-top: 30px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons a {
        width: 100%;
    }

    .experience-badge {
        flex-direction: column;
        text-align: center;
    }

    .experience-badge .number {
        font-size: 2rem;
    }
}