/* Reset e configurações básicas */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* Variáveis CSS para cores */
:root {
    --primary-color: #8B0000;
    /* Vinho escuro */
    --secondary-color: #000000;
    /* Preto */
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --dark-gray: #2c2c2c;
    --accent-red: #DC143C;
    /* Vermelho mais vibrante para destaques */
}

/* Navegação */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 2rem;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(139, 0, 0, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: bold;
    color: var(--white);
    text-decoration: none;
    z-index: 1001;
}

.logo-icon {
    width: clamp(30px, 5vw, 40px);
    height: clamp(30px, 5vw, 40px);
    background: linear-gradient(45deg, var(--primary-color), var(--accent-red));
    border-radius: 50%;
    margin-right: clamp(6px, 2vw, 10px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: clamp(0.8rem, 2vw, 1rem);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: clamp(1rem, 3vw, 2rem);
    margin: 0;
    padding: 0;
}

.nav-item a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-size: clamp(0.9rem, 2vw, 1rem);
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-item a:hover {
    color: var(--accent-red);
}

.nav-item a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-red);
    transition: width 0.3s ease;
}

.nav-item a:hover::after {
    width: 100%;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
    padding: 5px;
}

.mobile-menu span {
    width: 25px;
    height: 3px;
    background: var(--white);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Animação do menu hamburger */
.mobile-menu.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Hero Section */
.hero {
    height: 150vh;
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.75), rgba(0, 0, 0, 0.65)),
        url('imagens/foto3.jpg');
    background-size: auto;
    background-repeat: no-repeat;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
}

/* Efeito especial para destacar a balança */
.hero::after {
    content: '⚖️';
    position: absolute;
    bottom: 10%;
    right: 10%;
    font-size: 4rem;
    opacity: 0.3;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 30%, rgba(139, 0, 0, 0.3) 70%);
    animation: scalesPulse 4s infinite ease-in-out;
}

@keyframes scalesPulse {

    0%,
    100% {
        background: radial-gradient(circle at center, transparent 30%, rgba(139, 0, 0, 0.3) 70%);
    }

    50% {
        background: radial-gradient(circle at center, transparent 25%, rgba(139, 0, 0, 0.4) 75%);
    }
}

.hero-content {
    max-width: 800px;
    z-index: 2;
    position: relative;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 1s 0.3s both;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-red));
    color: var(--white);
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    animation: fadeInUp 1s 0.6s both;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(139, 0, 0, 0.4);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Seções gerais */
.section {
    padding: 80px 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--secondary-color);
    position: relative;
}

.section-title::after {
    content: '';
    width: 80px;
    height: 4px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-red));
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

/* Sobre */


.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.1), rgba(0, 0, 0, 0.1));
}

.about-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 60%, rgba(139, 0, 0, 0.2));
    z-index: 1;
}

.about-image img {
    width: 100%;
    height: 400px;
    object-fit: inherit;
    object-position: center top;
    transition: transform 0.3s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

.about-image p {
    text-align: center;
    font-weight: 900;

}

.about-text {
    font-size: 1.6rem;
    text-align: justify;
    line-height: 1.8;
    color: var(--dark-gray);
}

.about-text p {
    margin-bottom: 1.5rem;
}

.credentials-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.credential-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.credential-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-red));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.credential-card:hover::before {
    opacity: 0.03;
}

.credential-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(139, 0, 0, 0.15);
}

.credential-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.credential-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-red));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.3rem;
}

.credential-title {
    color: var(--secondary-color);
    font-size: 1.2rem;
    font-weight: bold;
    margin: 0;
}

.credential-content {
    position: relative;
    z-index: 2;
}

.credential-institution {
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.credential-description {
    color: var(--dark-gray);
    line-height: 1.6;
    font-size: 0.95rem;
}

.credential-year {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-top: 1rem;
}

/* Seção Valores da Empresa */
.company-values {
    background: linear-gradient(135deg, var(--white) 0%, var(--light-gray) 100%);
    position: relative;
    overflow: hidden;
}

.company-values::before {
    content: '';
    position: absolute;
    top: 0;
    right: -50%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent, rgba(139, 0, 0, 0.03));
    transform: rotate(15deg);
    z-index: 0;
}

.values-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--dark-gray);
    margin-bottom: 4rem;
    opacity: 0.8;
    font-style: italic;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 5rem;
    position: relative;
    z-index: 1;
}

.value-card {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(139, 0, 0, 0.1);
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-red));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.value-card:hover::before {
    opacity: 0.05;
}

.value-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 50px rgba(139, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.value-icon-container {
    position: relative;
    z-index: 2;
    margin-bottom: 2rem;
}

.value-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-red));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 10px 25px rgba(139, 0, 0, 0.2);
}

.value-card:hover .value-icon {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 15px 35px rgba(139, 0, 0, 0.3);
}

.value-title {
    color: var(--secondary-color);
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.value-description {
    color: var(--dark-gray);
    line-height: 1.7;
    font-size: 1rem;
    position: relative;
    z-index: 2;
}

.value-list {
    list-style: none;
    padding: 0;
    position: relative;
    z-index: 2;
}

.value-list li {
    color: var(--dark-gray);
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 1.5rem;
    line-height: 1.6;
}

.value-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.1rem;
}

/* Seção de Estatísticas */
.stats-section {
    background: var(--secondary-color);
    padding: 4rem 2rem;
    border-radius: 25px;
    margin-top: 3rem;
    position: relative;
    z-index: 1;
}

.stats-title {
    color: var(--white);
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    position: relative;
}

.stats-title::after {
    content: '';
    width: 100px;
    height: 3px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-red));
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-card {
    text-align: center;
    padding: 2rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 0, 0, 0.2), transparent);
    transition: left 0.5s ease;
}

.stat-card:hover::before {
    left: 100%;
}

.stat-card:hover {
    transform: translateY(-5px);
    background: rgba(139, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: var(--white);
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 2;
}

.stat-label {
    color: var(--white);
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 500;
    position: relative;
    z-index: 2;
}

/* Especialidades */
.services {
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 5rem;
}

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-top: 4px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-red));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover::before {
    opacity: 0.05;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(139, 0, 0, 0.2);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-red));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--white);
    font-size: 1.5rem;
    position: relative;
    z-index: 2;
}

.service-card h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    position: relative;
    z-index: 2;
}

.service-card li {
    color: var(--dark-gray);
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

.service-card span {
    font-weight: 800;
}

.specialty-btn {
    background: rgba(139, 0, 0, 0.98);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    width: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);

}

.specialty-btn:hover {
    background: linear-gradient(135deg, #8B0000, #DC143C);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.specialty-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(212, 175, 55, 0.3);
}

.li {
    list-style-type: none;
}

/* Ajustes nos cards para acomodar os botões */
.service-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 400px;
    padding: 30px 25px;
    cursor: pointer;
}

.service-card ul {
    flex-grow: 1;
    margin-bottom: 20px;
}

.li {
    list-style-type: none;
}

/* Depoimentos */
.testimonials {
    background: var(--secondary-color);
    color: var(--white);
}

.testimonials .section-title {
    color: var(--white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card img {
    width: 100%;
    height: 450px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    margin-bottom: 0.6rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-red));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: bold;
}

.author-info h4 {
    margin-bottom: 0.2rem;
}

.author-info span {
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Livros */
.books {
    background: var(--light-gray);
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.book-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.book-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(139, 0, 0, 0.2);
}

.book-cover {
    width: 100%;
    height: 450px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-red));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 3rem;
}

.book-info {
    padding: 1.5rem;
}

.book-info h3 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.book-info h5 {
    font-size: 1.1rem;
}

.book-info p {
    color: var(--dark-gray);
    font-size: 0.9rem;
    line-height: 1.4;
    justify-content: center;
}

/* Contato */
.contact {
    background: var(--white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info {
    background: var(--secondary-color);
    color: var(--white);
    padding: 3.5rem;
    border-radius: 20px;
}

.contact-info h3 {
    margin-bottom: 2rem;
    font-size: 1.2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.contact-icon {
    width: 40px;
    height: 40px;   
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    padding: 12px;
    border: 2px solid #e1e1e1;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(139, 0, 0, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-red));
    color: var(--white);
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(139, 0, 0, 0.4);
}

.form-group.success::after {
    content: '✓';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--success-green);
    font-weight: bold;
    font-size: 1.2rem;
    pointer-events: none;
}

.form-group.error::after {
    content: '✗';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--error-red);
    font-weight: bold;
    font-size: 1.2rem;
    pointer-events: none;
}

.form-group {
    position: relative;
}

/* Estilos adicionais para as mensagens de feedback */
.form-message {
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    font-weight: 500;
    text-align: center;
    animation: slideInMessage 0.3s ease;
}

.success-message {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@keyframes slideInMessage {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Estilos para o botão durante o carregamento */
.submit-btn {
    position: relative;
    transition: all 0.3s ease;
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-loading {
    display: none;
}

/* WhatsApp fixo */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.8rem;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
    }

    50% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.6);
    }

    100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
    }
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--secondary-color), var(--dark-gray));
    color: var(--white);
    padding: 4rem 2rem 2rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-red), var(--primary-color));
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    position: relative;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--primary-color);
}

.footer-img img {
    width: 250px;
    height: 200px;
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.footer-logo-icon {
    width: 35px;
    height: 35px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-red));
    border-radius: 50%;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.footer-description {
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a:hover {
    color: var(--accent-red);
    transform: translateX(5px);
}

.footer-links a::before {
    content: '▶';
    font-size: 0.7rem;
    opacity: 0.7;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-red));
    transition: left 0.3s ease;
    z-index: 0;
}

.social-link:hover::before {
    left: 0;
}

.social-link span {
    position: relative;
    z-index: 1;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(139, 0, 0, 0.4);
}

.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start; 
    gap: 1rem; 
}

.footer-contact-icon {
    width: 40px;
    height: 40px; 
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 0.9rem;
    flex-shrink: 0; 
    margin-top: 2px; 
}

.footer-contact-text {
    flex: 1;
    line-height: 1.4; 
    color: var(--text-color); 
}


.footer-contact-text strong {
    display: block;
    margin-bottom: 0.2rem;
}
.newsletter {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.newsletter-input {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-size: 0.9rem;
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-btn {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-red));
    color: var(--white);
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.newsletter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 0, 0, 0.4);
}

.certifications {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.cert-badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.cert-badge:hover {
    background: var(--primary-color);
    transform: scale(1.05);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.footer-bottom-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.footer-bottom-links a:hover {
    opacity: 1;
    color: var(--accent-red);
}

.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-red));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    font-size: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(139, 0, 0, 0.4);
}

    /* ========================================
    RESPONSIVIDADE SIMPLIFICADA
    TABLET E MOBILE APENAS
    ======================================== */

    /* Correção global para eliminar scroll horizontal */
    * {
        box-sizing: border-box;
    }

    html,
    body {
        width: 100%;
        overflow-x: hidden;
    }
    

    /* =======================================
    TABLET (768px - 1023px)
    ======================================= */
    @media (max-width: 1023px) and (min-width: 768px) {
        .navbar {
            padding: 1rem 1.5rem;
        }

        .nav-menu {
            gap: 1.5rem;
        }

        .hero {
            height: 100vh;
            background-size: cover;
            background-position: center center;
            /* Centraliza a imagem */
            background-repeat: no-repeat;
        }

        .hero h1 {
            font-size: 2.8rem;
        }

        .hero-subtitle {
            font-size: 1.15rem;
        }

        .section {
            padding: 60px 1.5rem;
        }

        .section-title {
            font-size: 2.2rem;
        }

        .about-content {
            grid-template-columns: 1fr;
            gap: 2.5rem;
            text-align: center;
        }

        .credentials-section {
            grid-template-columns: repeat(2, 1fr);
        }

        .values-grid {
            grid-template-columns: repeat(2, 1fr);
        }

        .services-grid {
            grid-template-columns: repeat(2, 1fr);
        }

        .testimonials-grid,
        .books-grid {
            grid-template-columns: 1fr;
            max-width: 600px;
            margin: 0 auto;
        }

        .contact-content {
            gap: 2.5rem;
        }

        .footer-content {
            grid-template-columns: repeat(2, 1fr);
        }
    }

    /* =======================================
    MOBILE (até 767px)
    ======================================= */
    @media (max-width: 767px) {
        .mobile-menu {
            display: flex;
        }

        .navbar {
            padding: 0.8rem 1rem;
        }

        .nav-menu {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100vh;
            background: rgba(0, 0, 0, 0.98);
            backdrop-filter: blur(20px);
            flex-direction: column;
            justify-content: center;
            align-items: center;
            gap: 2rem;
            z-index: 1000;
            transform: translateY(-100%);
            transition: transform 0.4s ease;
        }

        .nav-menu.active {
            display: flex;
            transform: translateY(0);
        }

        .nav-item a {
            font-size: 1.2rem;
            padding: 1rem 2rem;
            border-radius: 10px;
            transition: all 0.3s ease;
            min-height: 44px;
            display: flex;
            align-items: center;
        }

        .nav-item a:hover {
            background: rgba(139, 0, 0, 0.2);
            transform: scale(1.05);
        }

        /* HERO - CORREÇÃO PRINCIPAL */
        .hero {
            height: 100vh;
            width: 100%;
            background-size: cover;
            background-position: center center;
            /* Centraliza perfeitamente */
            background-repeat: no-repeat;
            background-attachment: scroll;
            /* Melhora performance mobile */
            padding: 0 1rem;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
        }

        .hero-content {
            width: 100%;
            max-width: 90%;
        }

        .hero h1 {
            font-size: clamp(1.8rem, 6vw, 2.4rem);
            line-height: 1.2;
        }

        .hero-subtitle {
            font-size: clamp(0.9rem, 4vw, 1.1rem);
            margin-bottom: 2rem;
        }

        .cta-button {
            padding: 12px 24px;
            font-size: 0.95rem;
            min-height: 44px;
        }

        /* Seções gerais */
        .section {
            padding: 50px 1rem;
            width: 100%;
        }

        .section-title {
            font-size: clamp(1.6rem, 5vw, 2rem);
        }

        /* About */
        .about-content {
            grid-template-columns: 1fr;
            gap: 2rem;
        }

        .about-image {
            max-width: 100%;
            margin: 0 auto;
        }

        .about-image img {
            width: 100%;
            height: auto;
            max-height: 300px;
            object-fit: cover;
        }

        .about-text {
            font-size: 1rem;
            text-align: left;
        }

        /* Cards em coluna única */
        .credentials-section,
        .values-grid,
        .services-grid,
        .testimonials-grid,
        .books-grid {
            grid-template-columns: 1fr;
            gap: 1.5rem;
        }

        /* Cards responsivos */
        .service-card,
        .value-card,
        .credential-card {
            padding: 2rem 1.5rem;
            min-height: auto;
        }

        .service-card {
            min-height: 350px;
        }

        .specialty-btn {
            width: 100%;
            padding: 12px 20px;
            font-size: 14px;
            min-height: 44px;
        }

        /* Estatísticas */
        .stats-grid {
            grid-template-columns: repeat(2, 1fr);
            gap: 1rem;
        }

        .stat-number {
            font-size: clamp(2rem, 6vw, 2.5rem);
        }

        /* Imagens responsivas */
        .testimonial-card img,
        .book-cover {
            height: 300px;
        }

        /* Contato */
        .contact-content {
            grid-template-columns: 1fr;
            gap: 2rem;
        }

        .contact-info {
            padding: 2rem 1.5rem;
        }

        .contact-item {
            flex-direction: row;
            align-items: center;
        }

        /* Formulário */
        .form-group input,
        .form-group textarea {
            padding: 12px;
            font-size: 16px;
            /* Evita zoom no iOS */
        }

        .submit-btn {
            width: 100%;
            padding: 14px;
            font-size: 1rem;
            min-height: 44px;
        }

        /* Footer */
        .footer {
            padding: 2.5rem 1rem 2rem;
        }

        .footer-content {
            grid-template-columns: 1fr;
            gap: 2rem;
            text-align: center;
        }

        .footer-img img {
            width: 100%;
            max-width: 200px;
            height: auto;
        }

        .social-links {
            justify-content: center;
        }

        .newsletter-form {
            flex-direction: column;
            gap: 1rem;
        }

        .footer-bottom {
            flex-direction: column;
            text-align: center;
        }

        /* Elementos flutuantes */
        .whatsapp-float {
            width: 55px;
            height: 55px;
            bottom: 20px;
            right: 20px;
        }

        .back-to-top {
            width: 45px;
            height: 45px;
            bottom: 80px;
            right: 20px;
        }
    }

    /* =======================================
    MOBILE PEQUENO (até 480px)
    ======================================= */
    @media (max-width: 480px) {
        .navbar {
            padding: 0.8rem;
        }

        .logo {
            font-size: 1.2rem;
        }

        .logo-icon {
            width: 30px;
            height: 30px;
        }

        .hero h1 {
            font-size: clamp(1.6rem, 7vw, 2rem);
        }

        .hero-subtitle {
            font-size: clamp(0.85rem, 4vw, 1rem);
        }

        .section {
            padding: 40px 0.8rem;
        }

        .section-title {
            font-size: clamp(1.4rem, 6vw, 1.8rem);
        }

        .about-image img {
            max-height: 250px;
        }

        .service-card,
        .value-card,
        .credential-card {
            padding: 1.8rem 1.2rem;
        }

        .service-card {
            min-height: 320px;
        }

        .value-icon,
        .service-icon {
            width: 50px;
            height: 50px;
            font-size: 1.3rem;
        }

        .stats-grid {
            grid-template-columns: 1fr;
            gap: 1rem;
        }

        .contact-info {
            padding: 1.8rem 1.2rem;
        }

        .contact-item {
            flex-direction: column;
            text-align: center;
            gap: 0.5rem;
        }

        .footer-img img {
            max-width: 150px;
        }
    }

    /* =======================================
    ORIENTAÇÃO PAISAGEM MOBILE
    ======================================= */
    @media (max-height: 500px) and (orientation: landscape) and (max-width: 900px) {
        .hero {
            height: 120vh;
        }

        .nav-menu {
            flex-direction: row;
            flex-wrap: wrap;
            gap: 1rem;
            padding: 1rem;
        }

        .nav-item a {
            padding: 0.8rem 1.2rem;
            font-size: 1rem;
        }
    }

    /* =======================================
    CORREÇÕES GERAIS ANTI-OVERFLOW
    ======================================= */
    @media (max-width: 767px) {

        /* Garante que nenhum elemento cause overflow */
        .nav-container,
        .hero-content,
        .section,
        .about-content,
        .services-grid,
        .contact-content,
        .footer-content {
            width: 100%;
            max-width: 100%;
        }

        /* Remove margens negativas que podem causar overflow */
        * {
            max-width: 100%;
        }

        /* Imagens sempre responsivas */
        img {
            max-width: 100%;
            height: auto;
        }

        /* Textos que não quebram layout */
        h1,
        h2,
        h3,
        h4,
        h5,
        h6,
        p,
        span,
        div {
            word-wrap: break-word;
            overflow-wrap: break-word;
        }
    }

    /* =======================================
    ESTILOS DO MODAL DOS DEPOIMENTOS
    ======================================= */

    /* Modal dos Depoimentos */
    .modal-overlay {
        display: none;
        position: fixed;
        z-index: 9999;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.9);
        backdrop-filter: blur(5px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .modal-overlay.active {
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 1;
        visibility: visible;
    }

    .modal-content {
        position: relative;
        max-width: 90vw;
        max-height: 90vh;
        background: var(--white);
        border-radius: 15px;
        padding: 20px;
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
        transform: scale(0.8);
        transition: transform 0.3s ease;
    }

    .modal-overlay.active .modal-content {
        transform: scale(1);
    }

    .modal-close {
        position: absolute;
        top: -15px;
        right: -15px;
        color: var(--white);
        font-size: 40px;
        font-weight: bold;
        cursor: pointer;
        background: var(--primary-color);
        width: 45px;
        height: 45px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        box-shadow: 0 5px 15px rgba(139, 0, 0, 0.3);
    }

    .modal-close:hover {
        background: var(--accent-red);
        transform: scale(1.1);
        box-shadow: 0 8px 25px rgba(139, 0, 0, 0.4);
    }

    #modal-image {
        width: 100%;
        height: auto;
        max-width: 800px;
        max-height: 80vh;
        object-fit: contain;
        border-radius: 10px;
        display: block;
    }

    /* Cursor pointer para as imagens dos depoimentos */
    .testimonial-card img {
        cursor: pointer;
        transition: all 0.3s ease;
        border-radius: 10px;
    }

    .testimonial-card img:hover {
        transform: scale(1.02);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    }

    /* Responsividade do Modal */
    @media (max-width: 768px) {
        .modal-content {
            max-width: 95vw;
            max-height: 95vh;
            padding: 15px;
            margin: 10px;
        }
        
        .modal-close {
            top: -10px;
            right: -10px;
            width: 35px;
            height: 35px;
            font-size: 30px;
        }
        
        #modal-image {
            max-height: 75vh;
        }
    }

    @media (max-width: 480px) {
        .modal-content {
            padding: 10px;
        }
        
        .modal-close {
            width: 30px;
            height: 30px;
            font-size: 25px;
        }

        
    }