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

:root {
    --primary-color: #2d2d2d;
    --primary-dark: #1f1f1f;
    --secondary-color: #4a4a4a;
    --accent-color: #6b6b6b;
    --text-dark: #2d2d2d;
    --text-light: #6b6b6b;
    --bg-light: #f8f8f8;
    --bg-white: #ffffff;
    --footer-bg: #2d2d2d;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.15), 0 4px 6px -2px rgba(0, 0, 0, 0.1);
}

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

/* Sidebar */
.sidebar {
    position: fixed;
    left: -300px;
    top: 0;
    width: 300px;
    height: 100vh;
    background: var(--primary-color);
    z-index: 1000;
    transition: left 0.3s ease;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
}

.sidebar.active {
    left: 0;
}

.sidebar-header {
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header h2 {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: transform 0.2s;
}

.close-btn:hover {
    transform: rotate(90deg);
}

.sidebar-menu {
    list-style: none;
    padding: 1rem 0;
}

.sidebar-menu li {
    margin: 0.5rem 0;
}

.sidebar-menu a {
    display: block;
    padding: 1rem 2rem;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: rgba(255, 255, 255, 0.1);
    border-left-color: white;
    padding-left: 2.5rem;
}

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    background: white;
    padding: 1rem 2rem;
    box-shadow: var(--shadow);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
}

.menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
    transition: all 0.3s;
}

.menu-btn:hover span {
    background: var(--secondary-color);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    flex-shrink: 0;
}

/* Navbar Desktop */
.navbar {
    display: none;
    flex: 1;
    justify-content: flex-end;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-menu .nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s;
}

.nav-menu .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-menu .nav-link:hover,
.nav-menu .nav-link.active {
    color: var(--primary-color);
}

.nav-menu .nav-link:hover::after,
.nav-menu .nav-link.active::after {
    width: 100%;
}

@media (min-width: 769px) {
    .navbar {
        display: flex;
    }
    
    .menu-btn {
        display: none;
    }
}

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

/* Main Content */
.main-content {
    min-height: 100vh;
    background: var(--bg-light);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
    color: white;
    padding: 5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 75vh;
    position: relative;
    overflow: hidden;
}

.hero-background-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('images/hero-bg.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 0;
}

.hero-background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(45, 45, 45, 0.85) 0%, rgba(26, 26, 26, 0.75) 100%);
    z-index: 1;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(255, 255, 255, 0.02) 0%, transparent 50%);
    animation: particles 20s ease-in-out infinite;
    pointer-events: none;
}

.hero-light-animation {
    pointer-events: none;
}

@keyframes particles {
    0%, 100% { opacity: 1; transform: translateY(0); }
    50% { opacity: 0.8; transform: translateY(-20px); }
}

.hero-content {
    flex: 1;
    max-width: 700px;
    z-index: 2;
    position: relative;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
    animation: fadeInScale 0.8s ease-out, pulse 2s ease-in-out 1s infinite;
}

@keyframes fadeInScale {
    from { 
        opacity: 0; 
        transform: scale(0.8) translateY(-10px); 
    }
    to { 
        opacity: 1; 
        transform: scale(1) translateY(0); 
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 0 0 8px rgba(255, 255, 255, 0);
    }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -1px;
}

.hero-title-line {
    display: block;
    animation: slideInLeft 0.8s ease-out;
    opacity: 0;
    animation-fill-mode: forwards;
}

.hero-title-line:nth-child(1) {
    animation-delay: 0.3s;
}

.hero-title-line.highlight {
    background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 50%, #ffffff 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    animation: slideInLeft 0.8s ease-out 0.5s, shimmer 3s ease-in-out 1.5s infinite;
    animation-fill-mode: forwards;
}

.hero-title-line.highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.8), transparent);
    animation: underlineExpand 1.5s ease-out 0.5s forwards;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes shimmer {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes underlineExpand {
    to {
        width: 100%;
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0;
    line-height: 1.7;
    font-weight: 300;
    animation: fadeInUp 0.8s ease-out 0.7s forwards;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.9s forwards;
}

.hero-buttons .btn-primary,
.hero-buttons .btn-secondary {
    opacity: 0;
    animation: fadeInScale 0.6s ease-out forwards;
}

.hero-buttons .btn-primary {
    animation-delay: 1.1s;
}

.hero-buttons .btn-secondary {
    animation-delay: 1.3s;
}

.btn-secondary {
    display: inline-block;
    padding: 1rem 2rem;
    background: transparent;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.hero-image {
    flex: 1;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    opacity: 0;
    animation: fadeIn 1s ease-out 0.4s forwards;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.6;
}

.hero-shape-1 {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
    top: 10%;
    right: 10%;
    opacity: 0;
    animation: fadeInFloat 2s ease-out 0.5s forwards, float 8s ease-in-out 2.5s infinite;
}

.hero-shape-2 {
    width: 280px;
    height: 280px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.03) 100%);
    bottom: 20%;
    right: 20%;
    opacity: 0;
    animation: fadeInFloat 2s ease-out 0.8s forwards, float 10s ease-in-out 2.8s infinite reverse;
}

.hero-shape-3 {
    width: 220px;
    height: 220px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
    top: 50%;
    right: 5%;
    opacity: 0;
    animation: fadeInFloat 2s ease-out 1.1s forwards, float 12s ease-in-out 3.1s infinite;
}

@keyframes fadeInFloat {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    to {
        opacity: 0.6;
        transform: scale(1) translateY(0);
    }
}

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


/* Buttons */
.btn-primary {
    display: inline-block;
    padding: 1rem 2rem;
    background: white;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 2px solid white;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    background: #f5f5f5;
}

/* Section */
.section {
    padding: 4rem 0;
}

/* Section 2 - Reduzido */
#servicos-medicos {
    padding: 2rem 0;
}

#servicos-medicos .section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

#servicos-medicos .service-image-side {
    min-width: 300px;
    min-height: 350px;
}

#servicos-medicos .service-content-side {
    padding: 2rem;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 4rem;
    color: var(--text-dark);
    position: relative;
    padding-bottom: 1rem;
}

.section-title.main-title {
    font-size: 3.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
}

.section-title.main-title::after {
    width: 120px;
    height: 5px;
}

.section-subtitle {
    font-size: 1.3rem;
    text-align: center;
    color: var(--text-light);
    font-weight: 400;
    margin-top: 1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* About Section */
.about-content {
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 3rem;
}

.about-intro {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 3rem;
    text-align: center;
}

.about-lead {
    font-size: 1.3rem;
    line-height: 1.8;
    font-weight: 400;
    margin: 0;
    color: white;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.about-feature-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.about-feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: block;
    animation: floatIcon 3s ease-in-out infinite;
}

.about-feature-card:nth-child(2) .feature-icon {
    animation-delay: 0.5s;
}

.about-feature-card:nth-child(3) .feature-icon {
    animation-delay: 1s;
}

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

.about-feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.about-feature-card p {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.7;
    margin: 0;
}

/* Animações de Scroll */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-section.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Carrossel de Logos */
.logos-carousel-container {
    width: 100%;
    overflow: hidden;
    margin: 3rem 0;
    padding: 2rem 0;
    background: var(--bg-light);
    border-radius: 12px;
    position: relative;
}

.logos-carousel {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.logo-slide {
    display: flex;
    gap: 4rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.logo-item {
    flex-shrink: 0;
    width: 150px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

.logo-item:hover {
    box-shadow: var(--shadow-lg);
}

.logo-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Animation removed - logos displayed statically */

/* Service Cards */
.service-card {
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow);
    margin-bottom: 4rem;
    transition: all 0.3s;
    border: 1px solid #e0e0e0;
    overflow: hidden;
}

/* Primeiro Card - Layout sem imagem */
.service-card-first {
    display: flex;
    flex-direction: column;
    min-height: auto;
}

.service-content-side {
    width: 100%;
    padding: 3rem;
    display: flex;
    flex-direction: column;
}

/* Grid com 3 blocos centralizados para Section 1 */
.services-grid-three {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.service-card-small {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem;
    min-height: auto;
}

.service-image-small {
    width: 150px;
    height: 150px;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-img-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.service-card-small .service-content {
    padding: 0;
    text-align: center;
}

.service-card-small h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.service-card-small p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-light);
}

/* Cards em Grid - Layout Vertical (Imagem em cima, texto embaixo) */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.service-card-grid {
    display: flex;
    flex-direction: column;
    min-height: auto;
    text-align: center;
}

/* Cards individuais centralizados nas seções 2-5 */
section .service-card-grid:only-child {
    max-width: 900px;
    margin: 0 auto;
}

.service-image-container {
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: var(--bg-light);
    position: relative;
}

.service-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Removed scale animation for better performance */

.service-content {
    padding: 3rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    box-shadow: var(--shadow-lg);
}

.service-card.highlight {
    border: 2px solid var(--primary-color);
}

.service-card.highlight .service-content {
    background: #f8f8f8;
}

.service-card-grid .service-content {
    text-align: center;
    align-items: center;
}

.service-card-grid .service-icon {
    margin: 0 auto 1rem;
}

.service-card-grid .service-list {
    text-align: left;
    max-width: 600px;
    margin: 0 auto;
}

/* Layout lado a lado - Texto à esquerda, Imagem à direita */
.service-card-side {
    display: flex;
    flex-direction: row-reverse;
    align-items: stretch;
    gap: 0;
    overflow: hidden;
}

.service-image-side {
    flex: 1;
    min-width: 400px;
    min-height: 500px;
    overflow: hidden;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-img-side {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Removed scale animation for better performance */

.service-content-side {
    flex: 1;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    text-align: left;
    justify-content: center;
}

.service-content-side .service-icon {
    text-align: left;
    margin-bottom: 1.5rem;
}

.service-content-side .service-list {
    text-align: left;
    list-style: none;
    padding: 0;
}

.service-content-side .service-list li {
    padding: 0.75rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-light);
}

.service-content-side .service-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.service-card-grid h3 {
    text-align: center;
}

.service-card h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 1.5rem 0 0.5rem 0;
    color: var(--text-dark);
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.service-card-grid p {
    text-align: center;
}

.service-subtitle {
    font-weight: 600;
    color: var(--text-dark) !important;
    margin-top: 1rem;
}

.service-list {
    list-style: none;
    padding-left: 0;
}

/* Grid Fiscal 2x2 com ícones à esquerda */
.fiscal-subtitle {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--text-light);
    text-align: center;
    margin-top: 1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.fiscal-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.fiscal-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    border: 1px solid #e0e0e0;
}

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

.fiscal-icon {
    font-size: 3rem;
    flex-shrink: 0;
    line-height: 1;
}

.fiscal-content {
    flex: 1;
}

.fiscal-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.fiscal-content p {
    color: var(--text-light);
    line-height: 1.7;
    margin: 0;
}

/* Layout Auditoria - Imagem parcial à esquerda, Texto à direita */
.service-card-auditoria {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 3rem;
    overflow: hidden;
}

.auditoria-image {
    flex-shrink: 0;
    width: 400px;
    height: 300px;
    overflow: hidden;
    background: var(--bg-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

/* Removed scale animation for better performance */

.auditoria-content {
    flex: 1;
    padding: 2rem 0;
}

.auditoria-content .service-icon {
    margin-bottom: 1.5rem;
}

.auditoria-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.auditoria-subtitle-secondary {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.auditoria-content p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.auditoria-content p:last-child {
    margin-bottom: 0;
}

.service-list li {
    padding: 0.75rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-light);
}

.service-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Certificado Digital - Design Melhorado */
.certificado-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 3rem;
}

.certificado-intro {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-bottom: 4rem;
    padding: 3rem;
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.certificado-image {
    flex: 1;
    min-width: 400px;
    height: 400px;
    overflow: hidden;
    border-radius: 12px;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

/* Removed scale animation for better performance */

.certificado-content {
    flex: 1;
    text-align: left;
}

.certificado-icon-large {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.certificado-subtitle {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.certificado-content p {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
    margin: 0;
}

.certificate-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.cert-card {
    background: white;
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.cert-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.cert-card-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    display: block;
    transition: transform 0.3s;
}

.cert-card:hover .cert-card-icon {
    transform: scale(1.2) rotate(5deg);
}

.cert-card-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.cert-card-desc {
    font-size: 1rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1.6;
}

/* Contact Section */
.contact-section {
    background: white;
    padding: 6rem 0;
}

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

.contact-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 8px;
}

.contact-icon {
    font-size: 2.5rem;
}

.contact-item h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.contact-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    display: block;
    margin-bottom: 0.5rem;
}

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

.contact-item a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

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


/* Form */
.contact-form {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.form-group textarea {
    resize: vertical;
}

/* Form Messages */
.form-message {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-weight: 500;
    animation: slideDown 0.3s ease;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* Footer */
.footer {
    background: var(--footer-bg);
    color: #e0e0e0;
    padding: 3rem 2rem 1.5rem;
    margin-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-section p,
.footer-section a {
    color: #b0b0b0;
    text-decoration: none;
    line-height: 1.8;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: #b0b0b0;
    font-size: 0.9rem;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

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

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: all 0.3s;
}

.footer-social a svg {
    width: 20px;
    height: 20px;
}

.footer-social a:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.footer-social-link.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
}

.footer-social-link.whatsapp:hover {
    background: #25D366;
    color: white;
}

.footer-social-link.gmail:hover {
    background: #EA4335;
    color: white;
}

/* Responsive */
@media (max-width: 1024px) and (min-width: 769px) {
    .services-grid-three {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .logos-carousel-container {
        margin: 2rem 0;
        padding: 1.5rem 0;
    }

    .logo-item {
        width: 120px;
        height: 80px;
        font-size: 0.8rem;
    }

    .logo-slide {
        gap: 2rem;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding: 4rem 1.5rem;
        min-height: 60vh;
        background-attachment: scroll;
    }

    .hero-content {
        max-width: 100%;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-title-line {
        display: inline;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-buttons {
        justify-content: center;
        flex-direction: column;
    }

    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary {
        width: 100%;
        text-align: center;
    }

    .hero-image {
        min-height: 300px;
        margin-top: 2rem;
    }

    .hero-shape-1 {
        width: 250px;
        height: 250px;
    }

    .hero-shape-2 {
        width: 200px;
        height: 200px;
    }

    .hero-shape-3 {
        width: 150px;
        height: 150px;
    }

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

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

    .services-grid-three {
        grid-template-columns: 1fr;
        gap: 2rem;
        max-width: 100%;
    }

    .fiscal-subtitle {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }

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

    .fiscal-item {
        padding: 1.5rem;
    }

    .fiscal-icon {
        font-size: 2.5rem;
    }

    .fiscal-content h3 {
        font-size: 1.25rem;
    }

    .service-image-small {
        width: 120px;
        height: 120px;
    }

    .service-card-first {
        flex-direction: column;
        min-height: auto;
    }

    .service-image-side {
        width: 100%;
        min-height: 300px;
    }

    .service-content-side {
        width: 100%;
        padding: 2rem 1.5rem;
    }

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

    .service-card-grid {
        min-height: auto;
        margin-bottom: 2rem;
    }

    .service-image-container {
        height: 250px;
    }

    .service-content {
        padding: 2rem 1.5rem;
    }

    .service-card-side {
        flex-direction: column;
    }

    .service-image-side {
        min-width: 100%;
        min-height: 300px;
        width: 100%;
    }

    .service-content-side {
        text-align: center;
        padding: 2rem 1.5rem;
    }

    .service-card-auditoria {
        flex-direction: column;
        gap: 2rem;
    }

    .auditoria-image {
        width: 100%;
        height: 250px;
    }

    .auditoria-content {
        padding: 0;
        text-align: center;
    }

    .auditoria-content .service-icon {
        margin: 0 auto 1.5rem;
    }

    .auditoria-subtitle {
        font-size: 1.25rem;
        text-align: center;
    }

    .auditoria-subtitle-secondary {
        font-size: 1.1rem;
        text-align: center;
    }

    .certificado-intro {
        flex-direction: column;
        padding: 2rem 1.5rem;
        margin-bottom: 3rem;
    }

    .certificado-image {
        width: 100%;
        min-width: 100%;
        height: 300px;
        order: 1;
    }

    .certificado-content {
        text-align: center;
        order: 2;
    }

    .certificado-icon-large {
        font-size: 4rem;
    }

    .certificado-subtitle {
        font-size: 1.5rem;
    }

    .certificate-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .cert-card {
        padding: 2rem 1.5rem;
        min-height: 180px;
    }

    .cert-card-icon {
        font-size: 3rem;
    }

    .cert-card-title {
        font-size: 1.5rem;
    }

    .service-content-side .service-icon {
        text-align: center;
    }

    .service-content-side .service-list {
        text-align: left;
    }

    .service-content-side .service-list li {
        padding-right: 0;
        padding-left: 1.5rem;
    }

    .service-content-side .service-list li::before {
        right: auto;
        left: 0;
    }

    .container {
        padding: 1rem;
    }

    .about-intro {
        padding: 2rem 1.5rem;
    }

    .about-lead {
        font-size: 1.1rem;
    }

    .about-features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .about-feature-card {
        padding: 2rem 1.5rem;
    }

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

    .about-feature-card h3 {
        font-size: 1.3rem;
    }

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

    .footer {
        padding: 2rem 1rem 1rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 3rem 1rem;
        min-height: 55vh;
    }

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

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-image {
        min-height: 250px;
        margin-top: 1.5rem;
    }

    .hero-shape-1 {
        width: 200px;
        height: 200px;
    }

    .hero-shape-2 {
        width: 150px;
        height: 150px;
    }

    .hero-shape-3 {
        width: 120px;
        height: 120px;
    }

    .service-card h3 {
        font-size: 1.5rem;
    }

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

    .cert-card {
        padding: 1.5rem;
        min-height: 160px;
    }

    .certificado-icon-large {
        font-size: 3.5rem;
    }

    .certificado-subtitle {
        font-size: 1.25rem;
    }

    .certificado-image {
        height: 250px;
    }
}