:root {
    --primary-gold: #C8A882; /* Dourado principal da identidade */
    --dark-charcoal: #2C2C2C; /* Cinza escuro elegante */
    --light-gold: #E6D7C3; /* Dourado suave */
    --accent-gold: #B8985A; /* Dourado de destaque */
    --text-dark: #1A1A1A; /* Preto profundo */
    --text-medium: #4A4A4A; /* Cinza médio */
    --text-light: #7A7A7A; /* Cinza claro */
    --bg-light: #FAFAFA; /* Branco quente */
    --bg-white: #FFFFFF; /* Branco puro */
    --bg-cream: #F8F6F0; /* Creme suave */
    --gold-gradient: linear-gradient(135deg, #C8A882 0%, #B8985A 50%, #A08660 100%);
    --dark-gradient: linear-gradient(135deg, #2C2C2C 0%, #1A1A1A 100%);
    --shadow-gold: 0 4px 20px rgba(200, 168, 130, 0.15);
    --shadow-dark: 0 8px 32px rgba(44, 44, 44, 0.2);
    --shadow-subtle: 0 2px 8px rgba(0, 0, 0, 0.08);
}

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

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

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

/* Navigation */
.navbar {
    background: rgba(44, 44, 44, 0.95) !important;
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
    padding: 1.2rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(200, 168, 130, 0.2);
}

.navbar-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--bg-white) !important;
}

.navbar-nav .nav-link {
    color: var(--bg-white) !important;
    font-weight: 600;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--accent-color) !important;
    transform: translateY(-1px);
}

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

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

/* Navbar Toggler (Hamburger Menu) */
.navbar-toggler {
    border: 2px solid var(--primary-gold) !important;
    padding: 4px 8px !important;
    border-radius: 8px !important;
    background-color: rgba(200, 168, 130, 0.1) !important;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(200, 168, 130, 0.5) !important;
}

.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='%23C8A882' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    width: 20px !important;
    height: 20px !important;
}

/* Hero Section */
.hero-section {
    background: var(--dark-gradient);
    padding: 85px 0 80px 0;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(200, 168, 130, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(200, 168, 130, 0.1) 0%, transparent 50%);
    opacity: 0.6;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    font-weight: 400;
    color: var(--bg-white);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--light-gold);
    margin-bottom: 1.5rem;
    font-weight: 300;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.hero-description {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 3rem;
    line-height: 1.7;
    max-width: 500px;
    font-weight: 300;
}

.hero-buttons {
    margin-top: 1.5rem;
}

.hero-buttons .btn {
    font-size: 0.78rem;
    padding: 0.55rem 1.25rem;
    border-radius: 26px;
    border: 2px solid transparent;
    transition: all 0.25s ease;
    font-weight: 500;
    letter-spacing: 0.25px;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    filter: saturate(0.85) brightness(0.95); /* menos intensidade */
}

.hero-buttons .btn-primary {
    background: rgba(200, 168, 130, 0.20);   /* opacidade 0.20 */
    color: #ffffff;                           /* texto branco */
    border-color: rgba(200, 168, 130, 0.55);
    box-shadow: 0 2px 8px rgba(200, 168, 130, 0.14);
}

.hero-buttons .btn-primary:hover {
    transform: translateY(-1px);
    background: rgba(200, 168, 130, 0.35);
    box-shadow: 0 6px 20px rgba(200, 168, 130, 0.4);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.8);
}

.hero-buttons .btn-success {
    background: rgba(37, 211, 102, 0.20);             /* opacidade 0.20 */
    color: #ffffff;                                    /* texto branco */
    border-color: rgba(37, 211, 102, 0.45);
    box-shadow: 0 2px 6px rgba(37, 211, 102, 0.12);
}

.hero-buttons .btn-success:hover {
    transform: translateY(-1px);
    background: rgba(37, 211, 102, 0.35);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.8);
}

.hero-buttons .btn-instagram {
    background: rgba(194, 56, 120, 0.20);            /* opacidade 0.20 */
    color: #ffffff;                                   /* texto branco */
    border-color: rgba(194, 56, 120, 0.45);
    box-shadow: 0 2px 6px rgba(194, 56, 120, 0.12);
}

.hero-buttons .btn-instagram:hover {
    transform: translateY(-1px);
    background: rgba(194, 56, 120, 0.35);
    box-shadow: 0 6px 20px rgba(194, 56, 120, 0.4);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.8);
}

.hero-image {
    width: 600px;
    height: 400px;
    max-width: 100%;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
}

.hero-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 1rem;
    background: transparent;
}

@media (max-width: 700px) {
    .hero-image {
        width: 100%;
        min-width: unset;
    }
}

/* Section Styling */
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
    letter-spacing: -0.01em;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    width: 60px;
    height: 4px;
    background: var(--gold-gradient);
    transform: translateX(-50%);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 500;
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-light);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2rem auto;
    line-height: 1.6;
}

/* About Section */
.about-section {
    background-color: var(--bg-white);
}

.about-content {
    text-align: left;
    line-height: 1.8;
    color: var(--text-light);
}

.about-content p {
    margin-bottom: 1rem;
}

/* About items use the same styling as service cards */
.about-section .service-card {
    background-color: var(--bg-light);
    border: 1px solid #e2e8f0;
}

.about-section .service-card:hover {
    background-color: var(--bg-white);
}

.stats-row {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    border-radius: 10px;
    background-color: var(--bg-light);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

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

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

.stat-item p {
    color: var(--text-light);
    font-weight: 600;
}

/* Services Section */
.services-section {
    background-color: var(--bg-light);
    padding: 3rem 0;
}

.service-card {
    background: var(--bg-white);
    border-radius: 20px;
    border: 1px solid rgba(200, 168, 130, 0.1);
    box-shadow: var(--shadow-subtle);
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    min-height: 300px;
    width: 100%;
    flex: 1;
    justify-content: flex-start;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.service-card:hover {
    box-shadow: var(--shadow-gold);
    transform: translateY(-8px);
    border-color: var(--primary-gold);
    background: rgba(255, 255, 255, 0.98);
}

/* Add subtle background gradient on hover */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(200, 168, 130, 0.03) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.service-card:hover::before {
    opacity: 1;
}

.icon-circle {
    width: 80px;
    height: 80px;
    background: var(--gold-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-gold);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.icon-circle i {
    color: var(--bg-white);
    font-size: 2.2rem;
}

.service-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.service-desc {
    color: var(--text-dark);
    font-size: 1.05rem;
    text-align: center;
    line-height: 1.6;
    width: 100%; /* Ensure full width */
    flex: 1; /* Take remaining space */
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Align content to top */
}

/* Estilos para conteúdo formatado dentro de service-desc */
.service-desc h1, .service-desc h2, .service-desc h3 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center; /* Ensure titles stay centered */
}

.service-desc h1 {
    font-size: 1.2rem;
}

.service-desc h2 {
    font-size: 1.15rem;
}

.service-desc h3 {
    font-size: 1.1rem;
}

.service-desc p {
    margin-bottom: 0.5rem;
    text-align: center; /* Ensure paragraphs stay centered */
}

.service-desc ul, .service-desc ol {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
    text-align: left;
    width: 100%; /* Full width for lists */
    list-style: disc; /* Ensure bullets appear */
}

.service-desc ol {
    list-style: decimal; /* Ensure numbers appear for ordered lists */
}

.service-desc li {
    margin-bottom: 0.25rem;
    line-height: 1.4;
    text-align: left; /* Keep list items left-aligned */
    display: list-item; /* Ensure list items are displayed as list items */
}

.service-desc strong {
    font-weight: 600;
    color: var(--primary-color);
}

.service-desc em {
    font-style: italic;
    color: var(--text-light);
}

.service-desc blockquote {
    border-left: 3px solid var(--accent-color);
    padding-left: 1rem;
    margin: 0.75rem 0;
    font-style: italic;
    color: var(--text-light);
    text-align: left; /* Keep blockquotes left-aligned */
}

/* Regras específicas para garantir consistência do TinyMCE */
.service-desc * {
    max-width: 100%; /* Prevent overflow */
    box-sizing: border-box; /* Include padding in width calculation */
}

.service-desc div {
    text-align: inherit; /* Inherit text alignment from parent */
}

.service-desc span {
    display: inline; /* Prevent block-level behavior */
}

/* Regras específicas para listas HTML do TinyMCE */
.service-desc ul {
    list-style: disc !important; /* Force bullets to appear */
    list-style-type: disc !important; /* Alternative way to force bullets */
}

.service-desc ol {
    list-style: decimal !important; /* Force numbers to appear */
    list-style-type: decimal !important; /* Alternative way to force numbers */
}

.service-desc li {
    display: list-item !important; /* Force list item display */
    list-style: inherit !important; /* Inherit list style from parent */
}

/* Garantir que elementos HTML inline não quebrem o layout */
.service-desc b, .service-desc strong {
    font-weight: 600 !important;
    color: var(--primary-color);
}

.service-desc i, .service-desc em {
    font-style: italic !important;
    color: var(--text-light);
}

/* Adjust container width for single service */
@media (min-width: 992px) {
    .col-lg-6 .service-card,
    .col-lg-4 .service-card,
    .col-lg-3 .service-card {
        width: auto;
        max-width: 340px;
    }
}

/* Reviews Section */
.reviews-section {
    background-color: var(--bg-white);
}

.review-card {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
}

.stars {
    margin-bottom: 1.5rem;
}

.stars i {
    color: #ffd700;
    font-size: 1.2rem;
    margin: 0 2px;
}

.review-card blockquote {
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.review-card cite {
    color: var(--primary-color);
    font-weight: 600;
    font-style: normal;
}

/* Contact Section */
.contact-section {
    background: var(--dark-charcoal);
    position: relative;
    overflow: hidden;
    padding: 80px 0;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(200, 168, 130, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(200, 168, 130, 0.05) 0%, transparent 40%);
    opacity: 0.8;
}

.contact-section .container {
    position: relative;
    z-index: 1;
}

.contact-section h2 {
    color: var(--bg-white);
    text-shadow: 0 4px 8px rgba(0,0,0,0.3);
    font-family: 'Playfair Display', serif;
    font-weight: 400;
}

.contact-section p {
    color: rgba(255,255,255,0.85);
    font-size: 1.1rem;
}

/* Contact Info Card */
.contact-info-card {
    background: rgba(44, 44, 44, 0.9);
    backdrop-filter: blur(15px);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(200, 168, 130, 0.25);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    min-height: 380px;
    height: auto;              /* deixa crescer conforme conteúdo */
    position: relative;
    z-index: 2;
    overflow: visible;         /* evita cortar itens internos */
    isolation: isolate;        /* corrige artefatos com pseudo-elementos e borda arredondada */
}

.contact-info-card:hover {
    background: rgba(44, 44, 44, 0.95);
    border-color: rgba(200, 168, 130, 0.5);
    transform: translateY(-2px);
}

/* Corte diagonal */
.contact-info-card::after { display: none; }

/* Contact Header */
.contact-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(200, 168, 130, 0.3);
}

.contact-logo {
    flex-shrink: 0;
}

.contact-logo-img {
    width: 45px;
    height: 45px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(200, 168, 130, 0.4));
}

.contact-brand {
    flex: 1;
}

.contact-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--bg-white);
    margin-bottom: 0.3rem;
    letter-spacing: 0.3px;
}

.contact-subtitle {
    font-size: 0.75rem;
    color: var(--light-gold);
    margin-bottom: 0.2rem;
    font-weight: 300;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.contact-oab {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0;
    font-weight: 300;
}

/* Contact Details */
.contact-details {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 0.8rem;
    background: transparent !important; /* remove blocos brancos */
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 5;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: var(--gold-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(200, 168, 130, 0.3);
}

.contact-icon i {
    color: var(--bg-white);
    font-size: 1rem;
}

.contact-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    position: relative;
    z-index: 10;
}

.contact-label {
    font-size: 0.75rem;
    color: var(--light-gold);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-value {
    font-size: 0.9rem;
    color: var(--bg-white) !important;
    font-weight: 400;
    line-height: 1.3;
    opacity: 1 !important;
    display: block !important;
}

/* Contact Actions */
.contact-actions {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(200, 168, 130, 0.3);
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: var(--bg-white);
    border: none;
    border-radius: 25px;
    padding: 0.8rem 2rem;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 3px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.4);
    color: var(--bg-white);
}

/* Map Container */
.map-container {
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 1rem;
    border: 1px solid rgba(200, 168, 130, 0.25);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    height: 450px;
    position: relative;
    z-index: 2;
    overflow: hidden;
    isolation: isolate; /* evita que o pseudo-elemento ultrapasse a borda */
}

/* Corte diagonal do mapa */
.map-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;                     /* mantém dentro do raio da borda */
    width: 48px;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, var(--primary-gold) 46%, var(--primary-gold) 54%, transparent 100%);
    opacity: 0.45;               /* mais suave */
    z-index: 1;
    pointer-events: none;
}

.contact-map {
    width: 100%;
    height: 100%;
    height: 430px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    z-index: 2;
}

/* Ensure Leaflet popup text is visible on dark background wrappers */
.leaflet-popup-content-wrapper, .leaflet-popup-tip {
    background: #ffffff;
    color: #2c2c2c;
}
.leaflet-popup-content {
    color: #2c2c2c;
    font-weight: 500;
    font-size: 0.95rem;
}

.map-popup .leaflet-popup-content-wrapper {
    background: #fff;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,.08);
}
.map-popup .leaflet-popup-tip { background: #fff; }

/* Responsividade */
@media (max-width: 992px) {
    .contact-header {
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
    }
    
    .contact-title {
        font-size: 1.3rem;
    }
    
    .contact-info-card {
        height: auto;
        margin-bottom: 2rem;
    }
    
    .map-container {
        height: 350px;
        margin-top: 2rem;
    }
    
    .contact-map {
        height: 330px;
    }
    
    /* Remover cortes diagonais em mobile */
    .contact-info-card::after,
    .map-container::before {
        display: none;
    }
}

@media (max-width: 768px) {
    .contact-section {
        padding: 60px 0;
    }
    
    .contact-info-card {
        padding: 1.5rem;
        height: auto;
    }
    
    .contact-item {
        gap: 0.8rem;
        padding: 0.6rem;
    }
    
    .contact-icon {
        width: 35px;
        height: 35px;
    }
    
    .contact-icon i {
        font-size: 0.9rem;
    }
    
    .contact-logo-img {
        width: 40px;
        height: 40px;
    }
    
    .contact-title {
        font-size: 1.2rem;
    }
    
    .map-container {
        height: 300px;
    }
    
    .contact-map {
        height: 280px;
    }
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: var(--bg-white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateX(10px);
}

.contact-item i {
    font-size: 2rem;
    color: var(--accent-color);
    margin-right: 1.5rem;
    width: 60px;
    text-align: center;
}

.contact-item h5 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.contact-item p {
    color: var(--text-light);
    margin: 0;
}

/* --- Overrides for contact section layout & spacing --- */
.contact-section .contact-details { margin-bottom: 1rem; }

.contact-section .contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.9rem;
    padding: 0.4rem 0;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0;
}

.contact-section .contact-item:hover { transform: none !important; background: transparent !important; }

.contact-section .contact-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gold-gradient);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 36px;
    box-shadow: 0 2px 8px rgba(200, 168, 130, 0.25);
}

.contact-section .contact-item i {
    color: var(--bg-white);
    font-size: 0.95rem;
    line-height: 1;
    margin: 0;           /* remove offset lateral herdado */
    width: auto;
    text-align: center;
}

/* Instagram link color (from provided reference image) */
.contact-section .contact-value a {
    color: #C23878;          /* magenta da imagem */
    text-decoration: none;
    font-weight: 600;
}

.contact-section .contact-value a:visited { color: #C23878; }
.contact-section .contact-value a:hover { color: #a72e67; text-decoration: underline; }

/* Footer */
.footer-section {
    background: var(--dark-gradient);
    padding: 60px 0 40px 0;
    border-top: 1px solid rgba(200, 168, 130, 0.2);
    position: relative;
    overflow: hidden;
}

.footer-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(200, 168, 130, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(200, 168, 130, 0.08) 0%, transparent 50%);
    opacity: 0.8;
}

.footer-section .container {
    position: relative;
    z-index: 1;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(200, 168, 130, 0.4));
}

.footer-text {
    flex: 1;
}

.footer-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--bg-white);
    margin-bottom: 0.3rem;
    letter-spacing: 0.5px;
}

.footer-subtitle {
    font-size: 0.9rem;
    color: var(--light-gold);
    margin-bottom: 0;
    font-weight: 300;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.footer-copyright {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0;
    font-weight: 300;
}

/* Responsividade do footer */
@media (max-width: 768px) {
    .footer-section {
        padding: 40px 0 30px 0;
        text-align: center;
    }
    
    .footer-brand {
        justify-content: center;
        margin-bottom: 1.5rem;
    }
    
    .footer-logo {
        width: 35px;
        height: 35px;
    }
    
    .footer-title {
        font-size: 1.2rem;
    }
    
    .footer-subtitle {
        font-size: 0.8rem;
    }
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

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

.btn-success {
    background-color: #25d366;
    border-color: #25d366;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-success:hover {
    background-color: #1ea552;
    border-color: #1ea552;
    transform: translateY(-2px);
}

/* Admin Styles */
.admin-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.admin-header {
    background-color: var(--primary-color);
    color: white;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    text-align: center;
}

/* Forçar contraste de botões no admin */
.card .btn.btn-primary,
.card .btn.btn-outline-primary {
    color: #ffffff !important;
    background-color: #1a365d !important;
    border-color: #1a365d !important;
}
.card .btn.btn-outline-primary:hover {
    background-color: #263e6a !important;
    border-color: #263e6a !important;
}

.card .btn.btn-outline-secondary { color: #2d3748 !important; border-color: #cbd5e0 !important; }
.card .btn.btn-outline-secondary:hover { background: #edf2f7 !important; }

/* Entradas do admin visíveis */
.card .form-control { background: #f8fafc !important; color: #1a202c !important; }
.card .form-control::placeholder { color: #718096 !important; }

.admin-card {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

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

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.form-control {
    background-color: #f8fafc;    /* fundo visível sobre temas escuros */
    color: #1a202c;               /* texto escuro legível */
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 16px;
    transition: border-color 0.3s ease, background-color 0.2s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(26, 54, 93, 0.25);
}

.table {
    background-color: var(--bg-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.table th {
    background-color: #2c2c2c;  /* cabeçalho visível no admin */
    color: #ffffff;
    border: none;
    font-weight: 600;
}

.table td {
    border-color: #e2e8f0;
    vertical-align: middle;
}

.btn-sm {
    padding: 6px 12px;
    border-radius: 6px;
}

.btn-danger {
    background-color: #e53e3e;
    border-color: #e53e3e;
}

.btn-danger:hover {
    background-color: #c53030;
    border-color: #c53030;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-buttons {
        display: none !important; /* Ocultar botões em mobile e tablet */
    }

    .stats-row {
        flex-direction: column;
        gap: 1.5rem;
    }

    .stat-item {
        padding: 1.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .service-card,
    .review-card {
        margin-bottom: 1.5rem;
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
    }

    .contact-item i {
        margin-bottom: 1rem;
        margin-right: 0;
    }

    .service-card {
        padding: 1.5rem 1rem;
        min-height: 180px;
    }

    .icon-circle {
        width: 48px;
        height: 48px;
        font-size: 1.3rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-buttons {
        display: none; /* Ocultar botões em mobile */
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content {
    animation: fadeIn 1s ease-out;
}

.hero-image {
    animation: fadeIn 1s ease-out 0.3s both;
}

/* Scroll animations */
.service-card,
.review-card,
.stat-item {
    animation: fadeIn 0.8s ease-out;
}

/* Alert styles */
.alert {
    border-radius: 10px;
    border: none;
    margin: 1rem 0;
}

.alert-success {
    background-color: #c6f6d5;
    color: #2f855a;
}

.alert-danger {
    background-color: #fed7d7;
    border-color: #feb2b2;
    color: #c53030;
}

/* === FINAL CAROUSEL STYLES - ROBUST FLEXBOX APPROACH === */

/* 1. Carousel Container: Defines the viewport for the carousel */
.reviews-carousel-container {
    position: relative;
    overflow: hidden;
    /* Hides the parts of the slides that are off-screen */
    max-width: 100%;
    padding: 0 40px;
    /* Make space for buttons */
}

/* 2. Carousel Track: The element that moves horizontally */
.reviews-carousel {
    display: flex;
    gap: 20px;
    /* Space between cards */
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    align-items: stretch;
    /* CRITICAL: Makes all slides stretch to the same height */
}

/* 3. Individual Slide: Wrapper for each card */
.review-slide {
    flex: 0 0 350px;
    /* Slides will not grow or shrink, fixed base width */
    display: flex;
    /* Makes the card inside fill the space */
}

/* 4. The Card Itself: Fills the slide and aligns content */
.review-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    /* Fills the slide's stretched height */
    background-color: var(--bg-white);
    border: 1px solid #e2e8f0;
    border-radius: 15px;
    box-shadow: var(--shadow);
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* 5. Card Internals: Header and Body */
.review-header {
    flex-shrink: 0;
    /* Header has a fixed height */
}

.review-body {
    flex-grow: 1;
    /* Body takes up all remaining vertical space */
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Vertically centers the content (comment or star) */
}

.review-body blockquote {
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

.review-body .text-muted {
    font-size: 2rem;
    opacity: 0.3;
}

/* 6. Navigation Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0,0,0,0.6); /* visível sobre fundos claros */
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.carousel-btn:hover {
    background-color: rgba(0,0,0,0.8);
    transform: translateY(-50%) scale(1.1);
}

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

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

/* 7. Navigation Dots */
.carousel-dots {
    display: none;
}

/* 8. Responsive Adjustments */
@media (max-width: 768px) {
    .review-slide {
        flex-basis: 300px;
    }

    .reviews-carousel-container {
        padding: 0 20px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 576px) {
    .review-slide {
        flex-basis: 260px;
    }
}

.review-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
}

.review-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-avatar.default-avatar {
    background-color: #f0f0f0;
    border: 1px solid #e0e0e0;
}

.review-avatar i {
    font-size: 1.5rem;
    color: white;
}

/* Garante que o card ocupe toda a largura quando for 1 por linha */
.col-12 > .service-card {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.service-card-full {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding-left: 2rem;
    padding-right: 2rem;
}

@media (min-width: 992px) {
    .service-card-full {
        max-width: 900px;
        margin-left: auto;
        margin-right: auto;
    }
}

.service-card-fullwidth {
    max-width: none !important;
}

/* Remove padding/margin lateral do primeiro e último card das seções, mesmo com justify-content-center */
.about-section .row > [class*='col-']:first-of-type,
.services-section .row > [class*='col-']:first-of-type {
    padding-left: 0 !important;
    margin-left: 0 !important;
}
.about-section .row > [class*='col-']:last-of-type,
.services-section .row > [class*='col-']:last-of-type {
    padding-right: 0 !important;
    margin-right: 0 !important;
}
/* Se usar .gx-0, garantir que não há gutter horizontal */
.row.gx-0 > [class^="col-"] {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.section-hidden {
    opacity: 0.5;
    position: relative;
}

.section-hidden::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        45deg,
        rgba(0, 0, 0, 0.05),
        rgba(0, 0, 0, 0.05) 10px,
        rgba(0, 0, 0, 0.1) 10px,
        rgba(0, 0, 0, 0.1) 20px
    );
    pointer-events: none;
    z-index: 1;
    border: 2px dashed rgba(0, 0, 0, 0.2);
    border-radius: 0.25rem;
}

/* --- Modern Section Cards Grid --- */
.section-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin: 0;
  padding: 0;
  width: 100%;
  align-items: stretch; /* Ensure all items stretch to same height */
}

/* Configurações específicas para diferentes números de itens por linha */
.section-grid-1 > div {
  flex: 0 0 100%;
  max-width: 800px;
  margin: 0 auto;
}

/* Adjust hover effect for different grid layouts */
.section-grid-1 .service-card:hover {
  transform: translateY(-2px);
}

.section-grid-2 .service-card:hover {
  transform: translateY(-2.5px);
}

.section-grid-4 .service-card:hover {
  transform: translateY(-3.5px);
}

.section-grid-2 > div {
  flex: 1 1 calc(50% - 1rem);
  min-width: 280px;
}

.section-grid-3 > div {
  flex: 1 1 calc(33.333% - 1.5rem);
  min-width: 280px;
}

.section-grid-4 > div {
  flex: 1 1 calc(25% - 1.5rem);
  min-width: 280px;
}

/* Ajuste para garantir que os cards tenham o mesmo tamanho em cada linha */
.section-grid > div {
  display: flex;
  align-items: stretch; /* Ensure consistent height */
}

.section-grid .service-card {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  flex: 1;
  align-items: center; /* Center content horizontally */
}

@media (max-width: 1200px) {
  .section-grid-4 > div {
    flex: 1 1 calc(33.333% - 1.5rem);
  }
}

@media (max-width: 992px) {
  .section-grid-3 > div, 
  .section-grid-4 > div {
    flex: 1 1 calc(50% - 1rem);
  }
}

@media (max-width: 576px) {
  .section-grid > div {
    flex: 0 0 100%;
  }
  
  .section-grid {
    gap: 1.2rem;
  }
}

.bg-light-alt {
  background: #f7fafc;
}
.bg-white {
  background: #fff;
}

/* Empty grid items */
.empty-item {
  visibility: hidden;
  height: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
}

/* Instagram Button Style */
.btn-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
    border: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    padding: 0.375rem 0.75rem;
}

.btn-instagram:hover, .btn-instagram:focus {
    background: linear-gradient(45deg, #bc1888 0%, #cc2366 25%, #dc2743 50%, #e6683c 75%, #f09433 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Instagram Card Styling */
.instagram-card {
    border-left: 4px solid #C13584 !important;
    transition: all 0.3s ease;
}

.instagram-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1) !important;
}

.instagram-icon-container {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.instagram-link {
    color: #C13584;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.instagram-link:hover {
    color: #833AB4;
    text-decoration: underline;
}

/* Floating WhatsApp Button */
.floating-whatsapp {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 64px;
    height: 64px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: all 0.3s;
    font-size: 2.5rem;
    text-decoration: none !important;
}
.floating-whatsapp i {
    font-size: 2.2rem;
    line-height: 1;
    display: block;
    text-decoration: none !important;
}
.floating-whatsapp:focus {
    outline: none;
    box-shadow: 0 0 0 2px #25D36655;
}
.floating-whatsapp:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
    color: white;
}

.floating-whatsapp:active {
    transform: scale(0.95);
}

/* For admin panel profile images */
.admin-profile-container {
    width: 290px;
    height: 200px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.admin-profile-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    background: transparent;
    border-radius: 0.5rem;
}

/* For any profile image container */
.profile-image-container {
    width: 290px;
    height: 200px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 1rem;
}

.profile-image {
    max-width: 100%;
    height: auto;
}

/* Contact Links */
.contact-link {
    color: inherit !important;
    text-decoration: none !important;
    transition: all 0.2s ease;
    display: inline-block;
}

.contact-link:hover {
    color: var(--primary-gold) !important;
    text-decoration: none !important;
    transform: translateX(2px);
}

.phone-link:hover {
    color: #25D366 !important; /* WhatsApp green on hover */
}

.email-link:hover {
    color: #4285F4 !important; /* Gmail blue on hover */
}

.address-link:hover {
    color: #FF6B6B !important; /* Maps red on hover */
}
    object-fit: contain;
    background: transparent;
}

/* Logo personalizado da advogada */
.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-symbol {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.logo-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(200, 168, 130, 0.4));
    transition: all 0.3s ease;
}

.logo-icon:hover {
    filter: drop-shadow(0 4px 12px rgba(200, 168, 130, 0.6));
    transform: scale(1.05);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--bg-white);
    letter-spacing: 0.5px;
}

.logo-tagline {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.8);
    font-weight: 400;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

/* Responsividade do logo */
@media (max-width: 768px) {
    .logo-container {
        gap: 0.5rem;
    }
    
    .logo-symbol {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    
    .logo-name {
        font-size: 1rem;
    }
    
    .logo-tagline {
        font-size: 0.6rem;
    }
}