/* ============================================
   RESET E VARIÁVEIS
   ============================================ */

:root {
    --primary-color: #c9985d;
    --primary-dark: #a67a47;
    --secondary-color: #1a1a1a;
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #f9f9f9;
    --border-color: #e0e0e0;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: #fff;
}

/* ============================================
   LOADING INFINITO
   ============================================ */

.loading-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.95);
    z-index: 9999;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid var(--border-color);
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ============================================
   CONTAINER E LAYOUT GERAL
   ============================================ */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.5rem;
    color: var(--secondary-color);
}

p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

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

a:hover {
    color: var(--primary-dark);
}

/* ============================================
   HEADER/NAVEGAÇÃO
   ============================================ */

.header {
    position: sticky;
    top: 0;
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-image {
    height: 80px;
    width: auto;
    display: block;
}

.logo h1 {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin: 0;
}

.navbar {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-menu a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dark);
    transition: var(--transition);
}

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

.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    margin: 5px 0;
    transition: var(--transition);
    border-radius: 2px;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 25%, #a67a47 75%, #c9985d 100%);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><defs><pattern id="pattern" x="0" y="0" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="1200" height="600" fill="transparent"/><rect width="1200" height="600" fill="url(%23pattern)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
}

.hero-content .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.hero-text h2 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #fff;
}

.hero-text p {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero.hero-units {
    min-height: 420px;
}

.hero-units .hero-content .container {
    grid-template-columns: 1fr;
    max-width: 700px;
}

.hero-units .hero-text {
    text-align: left;
}

.hero-units .hero-icon {
    font-size: 3.5rem;
}

.hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 14px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(201, 152, 93, 0.2);
    transition: var(--transition);
    text-decoration: none;
    color: var(--text-dark);
}

.stat-item[href] {
    cursor: pointer;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.stat-item i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.stat-item h4 {
    font-size: 2.3rem;
    margin: 0 0 0.5rem;
    color: var(--secondary-color);
}

.stat-item p {
    margin: 0;
    font-weight: 500;
}

/* ============================================
   UNIDADES
   ============================================ */

.units-list {
    padding: 6rem 0;
    background: #f9f9f9;
}

.units-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.unit-card {
    background: #fff;
    border-radius: 18px;
    padding: 2.5rem;
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.unit-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.12);
}

.unit-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.unit-card-header h3 {
    font-size: 1.4rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
}

.unit-card-header i {
    color: var(--primary-color);
    font-size: 1.6rem;
}

.unit-tag {
    background: rgba(201, 152, 93, 0.12);
    color: var(--primary-dark);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.unit-address {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-light);
    margin: 0;
}

.unit-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.unit-actions .btn {
    flex: 0 0 auto;
}

.unit-placeholder {
    border: 2px dashed rgba(0, 0, 0, 0.1);
    border-radius: 14px;
    padding: 1.5rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.6);
    color: var(--text-light);
    font-size: 0.95rem;
}

.units-info {
    margin-top: 3rem;
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.info-card {
    background: #fff;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.info-card h4 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

.info-card h4 i {
    color: var(--primary-color);
    font-size: 1.3rem;
}

.info-card p {
    margin: 0;
    color: var(--text-light);
    line-height: 1.6;
}

/* ============================================
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.stat-item h4 {
    font-size: 2rem;
    color: var(--primary-color);
    margin: 0.5rem 0;
}

.stat-item p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
}

/* ============================================
   SEÇÃO ÁREAS DE ATUAÇÃO
   ============================================ */

.areas {
    padding: 80px 0;
    background: var(--bg-light);
}

.areas h2 {
    text-align: center;
    margin-bottom: 0.5rem;
}

.subtitle {
    text-align: center;
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 3rem;
}

.areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.area-card {
    background: #fff;
    padding: 2.5rem;
    border-radius: 10px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    cursor: pointer;
}

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

.area-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: block;
}

.area-card h3 {
    font-size: 1.2rem;
    margin: 0;
}

.area-card a {
    color: var(--text-dark);
    text-decoration: none;
}

.area-card:hover a {
    color: var(--primary-color);
}

.btn-container {
    display: flex;
    justify-content: center;
}

/* ============================================
   BOTÕES
   ============================================ */

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(201, 152, 93, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: #fff;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 24px;
    border-radius: 40px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    color: var(--text-dark);
    font-weight: 500;
}

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* ============================================
   SEÇÃO EXPERTISE
   ============================================ */

.expertise {
    padding: 80px 0;
    background: #fff;
}

.expertise-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.expertise-text h2 {
    margin-bottom: 1.5rem;
}

.progress-items {
    margin-top: 2rem;
}

.progress-item {
    margin-bottom: 2rem;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    font-weight: 500;
}

.percentage {
    color: var(--primary-color);
    font-weight: 600;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--border-color);
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    transition: width 1s ease;
    border-radius: 10px;
}

.expertise-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-image {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 3rem;
}

.expertise-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.placeholder-image p {
    font-size: 1rem;
    margin-top: 1rem;
    color: #fff;
}

/* ============================================
   TEAM SECTION
   ============================================ */

.team {
    padding: 6rem 0;
    background: #f9f9f9;
}

.team .section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.team .section-header h2 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.team .section-header p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 500px;
    margin: 0 auto;
}

.team-grid {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.team-category {
    margin-bottom: 2rem;
}

.team-category h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
}

.team-members {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.team-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

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

.team-image {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: #ddd;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    transition: var(--transition);
}

.team-card:hover .team-image img {
    transform: scale(1.05);
}

.team-info {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.team-info h4 {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin: 0 0 0.5rem 0;
    font-weight: 600;
}

.team-info .oab {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 600;
    margin: 0.5rem 0;
}

.team-info .specialties {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0.5rem 0 0 0;
    line-height: 1.5;
}

.team-info .position {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-style: italic;
    margin: 0.5rem 0;
}

/* ============================================
   GALERIA/CAROUSEL
   ============================================ */

.gallery {
    padding: 80px 0;
    background: var(--bg-light);
}

.gallery h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.carousel-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.carousel {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: 15px;
    overflow: hidden;
    background: #ddd;
}

.carousel-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.carousel-slide.active {
    opacity: 1;
}

.slide-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.3);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(201, 152, 93, 0.8);
    color: #fff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
    z-index: 10;
}

.carousel-btn:hover {
    background: var(--primary-color);
}

.carousel-btn.prev {
    left: -25px;
}

.carousel-btn.next {
    right: -25px;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 2rem;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    background: transparent;
    cursor: pointer;
    transition: var(--transition);
}

.indicator.active {
    background: var(--primary-color);
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #2a2a2a 100%);
    color: #fff;
    text-align: center;
}

.cta h2 {
    color: #fff;
    margin-bottom: 2rem;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: var(--secondary-color);
    color: #fff;
    padding: 80px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 1rem;
    color: #ccc;
    font-size: 1rem;
    line-height: 1.5;
}

.footer-section a {
    color: #ccc;
    transition: var(--transition);
}

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

.social-links {
    display: flex;
    gap: 1rem;
    font-size: 1.5rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
    color: #999;
}

/* ============================================
   WHATSAPP BUTTON
   ============================================ */

.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    z-index: 999;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-btn span {
    display: none;
}

/* ============================================
   RESPONSIVO - TABLET
   ============================================ */

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: #fff;
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-menu.active {
        max-height: 500px;
    }

    .nav-menu li {
        border-bottom: 1px solid var(--border-color);
    }

    .nav-menu a {
        display: block;
        padding: 1rem 1.5rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    .hero {
        min-height: 500px;
        padding: 2rem 0;
    }

    .hero-text h2 {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    .hero-text p {
        font-size: 0.9rem;
    }

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

    .hero-content .container {
        grid-template-columns: 1fr;
    }

    .hero-text h2 {
        font-size: 2rem;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .expertise-content {
        grid-template-columns: 1fr;
    }

    .expertise-text h2 {
        font-size: 1.8rem;
    }

    .units-grid {
        grid-template-columns: 1fr;
    }

    .unit-card {
        padding: 2rem;
    }

    .unit-actions {
        flex-direction: column;
    }

    .unit-actions .btn {
        width: 100%;
        text-align: center;
    }

    .units-info {
        grid-template-columns: 1fr;
    }

    .carousel-btn.prev {
        left: 10px;
    }

    .carousel-btn.next {
        right: 10px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ============================================
   RESPONSIVO - MOBILE
   ============================================ */

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .header-content {
        padding: 0.8rem 0;
    }

    .logo-image {
        height: 50px;
    }

    .logo h1 {
        font-size: 1.3rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .hero-text h2 {
        font-size: 1.5rem;
    }

    .hero-text p {
        font-size: 0.9rem;
    }

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

    .stat-item {
        padding: 1.5rem;
    }

    .stat-item i {
        font-size: 2rem;
    }

    .stat-item h4 {
        font-size: 1.5rem;
    }

    .areas-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .area-card {
        padding: 1.5rem;
    }

    .area-icon {
        font-size: 2rem;
    }

    .area-card h3 {
        font-size: 0.9rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }

    .unit-card {
        padding: 1.75rem;
    }

    .unit-card-header h3 {
        font-size: 1.2rem;
    }

    .unit-placeholder {
        font-size: 0.9rem;
    }

    .btn-outline,
    .unit-actions .btn {
        width: 100%;
    }

    .progress-item {
        margin-bottom: 1.5rem;
    }

    .cta h2 {
        font-size: 1.5rem;
    }

    .whatsapp-btn {
        width: 50px;
        height: 50px;
        bottom: 20px;
        left: 20px;
        font-size: 1.5rem;
    }

    .footer-section h4 {
        font-size: 0.9rem;
    }

    .footer-section ul li {
        font-size: 0.85rem;
    }

    .team-members {
        grid-template-columns: 1fr;
    }

    .team-category h3 {
        font-size: 1.4rem;
    }

    .team .section-header h2 {
        font-size: 1.8rem;
    }

    .team-info h4 {
        font-size: 1.1rem;
    }
}
