/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: #1e293b;
    background-color: #f8fafc;
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

.section-title {
    font-size: 2.5rem;
    color: #0f172a;
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.125rem;
    color: #64748b;
    max-width: 42rem;
    margin: 0 auto;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background-color: #660722;
    color: white;
    box-shadow: 0 4px 6px -1px rgba(102, 7, 34, 0.1);
}

.btn-primary:hover {
    background-color: #4a0519;
    box-shadow: 0 10px 15px -3px rgba(102, 7, 34, 0.2);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 1px solid white;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* Icons */
.icon {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    padding: 1.25rem 0;
}

.header.scrolled {
    background-color: #660722;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    padding: 0.75rem 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}


.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    transition: color 0.3s ease;
}

.header.scrolled .logo-text {
    color: white;
}

/* Logo System */
.logo-container {
    width: 3.5rem;
    height: 3.5rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-light,
.logo-dark,
.logo-footer {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.3s ease;
    border-radius: 0.25rem;
}

.logo-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.logo-placeholder-light {
    background-color: #660722;
}

.logo-placeholder-dark {
    background-color: #660722;
    display: none;
}

.logo-placeholder-footer {
    background-color: #660722;
    display: none;
}

/* Logo image display logic */
.logo-light,
.logo-dark,
.logo-footer {
    width: 200%;
    height: 200%;
    object-fit: contain;
    position: absolute;
    padding-bottom: 90%;
    top: 0;
    left: 0;
    transition: opacity 0.3s ease;
}

/* Show light logo by default, dark logo when scrolled */
.header:not(.scrolled) .logo-light {
    opacity: 1;
}

.header:not(.scrolled) .logo-dark {
    opacity: 0;
}

.header.scrolled .logo-light {
    opacity: 0;
}

.header.scrolled .logo-dark {
    opacity: 1;
}

/* Footer logo always visible */
.logo-footer {
    opacity: 1;
}

/* Hide placeholders when images are loaded */
.logo-light:not([src=""]) ~ .logo-placeholder-light,
.logo-dark:not([src=""]) ~ .logo-placeholder-dark,
.logo-footer:not([src=""]) ~ .logo-placeholder-footer {
    display: none;
}

/* Show placeholders only when images fail to load */
.logo-light[src=""],
.logo-dark[src=""],
.logo-footer[src=""] {
    display: none;
}

.logo-light[src=""] ~ .logo-placeholder-light {
    display: flex;
}

.logo-dark[src=""] ~ .logo-placeholder-dark {
    display: flex;
}

.logo-footer[src=""] ~ .logo-placeholder-footer {
    display: flex;
}
.nav-desktop {
    display: none;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #660722;
}

.header.scrolled .nav-link {
    color: white;
}

.header.scrolled .nav-link:hover {
    color: #f472b6;
}

.mobile-toggle {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger {
    width: 1.5rem;
    height: 2px;
    background-color: white;
    transition: background-color 0.3s ease;
}

.header.scrolled .hamburger {
    background-color: white;
}

.mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.3s ease;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-menu.active {
    max-height: 300px;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0;
}

.mobile-nav-link {
    font-weight: 500;
    color: #1e293b;
    text-decoration: none;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.mobile-nav-link:hover {
    color: #660722;
}

/* Hero Section */
.hero {
    padding: 8rem 0 5rem;
    background: linear-gradient(135deg, #0f172a 0%, #660722 50%, #0f172a 100%);
    color: white;
}

.hero-content {
    display: grid;
    gap: 3rem;
    align-items: center;
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.text-accent {
    color: #f472b6;
}

.hero-description {
    font-size: 1.125rem;
    color: #cbd5e1;
    margin-bottom: 2rem;
    max-width: 36rem;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.hero-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #cbd5e1;
}

.hero-badge .icon {
    color: #10b981;
}

.hero-image {
    display: flex;
    justify-content: center;
}

.floating-image {
    border-radius: 0.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-width: 100%;
    height: auto;
    max-height: 31.25rem;
    animation: float 6s ease-in-out infinite;
}

/* Services Section */
.services {
    padding: 5rem 0;
    background-color: white;
}

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

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

.service-card {
    background-color: white;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
    position: relative;
}

.service-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform: translateY(-0.25rem);
}

.service-icon {
    padding: 1rem;
    background-color: #fef7f0;
    border-radius: 0.5rem;
    display: inline-block;
    margin-bottom: 1.5rem;
    transition: background-color 0.3s ease;
}

.service-card:hover .service-icon {
    background-color: #fef2f2;
}

.service-icon svg {
    width: 2.5rem;
    height: 2.5rem;
    color: #660722;
}

.service-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: #1e293b;
}

.service-description {
    color: #64748b;
    margin-bottom: 1.5rem;
}

.service-link {
    color: #660722;
    font-weight: 500;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.service-link:hover {
    color: #4a0519;
}

/* About Section */
.about {
    padding: 5rem 0;
    background-color: #f8fafc;
}

.about-content {
    display: grid;
    gap: 3rem;
    align-items: center;
}

.about-image img {
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    width: 100%;
    height: auto;
}

.about-description {
    font-size: 1.125rem;
    color: #475569;
    margin-bottom: 1.5rem;
}

.features-list {
    margin-bottom: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.feature-icon {
    width: 1.5rem;
    height: 1.5rem;
    color: #10b981;
    flex-shrink: 0;
}

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

.stat-card {
    text-align: center;
    padding: 1rem;
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.stat-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.stat-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    color: #660722;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #0f172a;
}

.stat-label {
    font-size: 0.875rem;
    color: #64748b;
}

/* Clients Section */
.clients {
    padding: 5rem 0;
    background-color: #f8fafc;
}

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

.client-card {
    background-color: white;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
}

.client-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform: translateY(-0.25rem);
}

.client-logo {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

.client-image {
    width: 120px;
    height: 50px;
    object-fit: cover;
    border-radius: 0.5rem;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.client-card:hover .client-image {
    filter: grayscale(0%);
}

.client-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.client-description {
    color: #64748b;
    font-size: 0.875rem;
}

/* Partners Section */
.partners {
    padding: 5rem 0;
    background-color: white;
}

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

.partner-card {
    background-color: #f8fafc;
    border-radius: 0.75rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.partner-card:hover {
    background-color: white;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform: translateY(-0.25rem);
}

.partner-logo {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

.partner-icon {
   width: 150px;   /* ajuste conforme necessário */
    height: auto;  /* mantém a proporção */
    object-fit: contain;
    color: #660722;
    transition: color 0.3s ease;
}

.partner-card:hover .partner-icon {
    color: #4a0519;
}

.partner-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.partner-description {
    color: #64748b;
    font-size: 0.875rem;
}

/* Team Section */
.team {
    padding: 5rem 0;
    background-color: #f8fafc;
}

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

.team-card {
    background-color: white;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
}

.team-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform: translateY(-0.25rem);
}

.team-image {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

.member-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #660722;
    transition: transform 0.3s ease;
}

.team-card:hover .member-photo {
    transform: scale(1.05);
}

.member-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.member-position {
    color: #660722;
    font-weight: 500;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.member-description {
    color: #64748b;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.member-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.skill-tag {
    background-color: #fef7f0;
    color: #660722;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid #fed7d7;
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background-color: #660722;
    color: white;
}

/* Testimonials Section */
.testimonials {
    padding: 5rem 0;
    background: linear-gradient(to bottom, white, #f8fafc);
}

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

.testimonial-card {
    background-color: white;
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.testimonial-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.stars {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.star {
    width: 1.25rem;
    height: 1.25rem;
    color: #d1d5db;
}

.star.filled {
    color: #fbbf24;
}

.testimonial-quote {
    color: #475569;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-image {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    object-fit: cover;
}

.author-name {
    font-weight: 700;
    color: #0f172a;
}

.author-position {
    font-size: 0.875rem;
    color: #64748b;
}

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

.contact-content {
    display: grid;
    gap: 3rem;
}

.contact-form-container {
    background-color: #f8fafc;
    padding: 2rem;
    border-radius: 0.75rem;
}

.form-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #0f172a;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-row {
    display: grid;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    display: block;
    color: #475569;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid #cbd5e1;
    background-color: #f8fafc;
    color: inherit;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #660722;
    box-shadow: 0 0 0 3px rgba(102, 7, 34, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.info-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #0f172a;
}

.contact-items {
    margin-bottom: 2.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-icon {
    background-color: #fef7f0;
    padding: 0.75rem;
    border-radius: 0.5rem;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    color: #660722;
}

.contact-details h4 {
    font-weight: 500;
    color: #0f172a;
    margin-bottom: 0.25rem;
}

.contact-details p {
    color: #64748b;
}

.emergency-card {
    background-color: #660722;
    border-radius: 0.75rem;
    padding: 2rem;
    color: white;
}

.emergency-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.emergency-card p {
    margin-bottom: 1.5rem;
}

.emergency-phone {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
}

/* Footer */
.footer {
    background-color: #0f172a;
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.footer-brand {
    max-width: 28rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.footer-description {
    color: #94a3b8;
    margin-bottom: 1.5rem;
}

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

.social-link {
    background-color: #1e293b;
    padding: 0.5rem;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.social-link:hover {
    background-color: #660722;
}

.social-link svg {
    width: 1.25rem;
    height: 1.25rem;
}

.footer-links {
    display: grid;
    gap: 2rem;
}

.footer-column h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

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

.footer-column li {
    margin-bottom: 0.75rem;
}

.footer-column a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.footer-bottom p {
    color: #94a3b8;
    font-size: 0.875rem;
}

.footer-contact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #94a3b8;
    font-size: 0.875rem;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    background-color: #660722;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(102, 7, 34, 0.3);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background-color: #4a0519;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 7, 34, 0.4);
}

.scroll-to-top .icon {
    width: 1.25rem;
    height: 1.25rem;
}

/* Section CTA Buttons */
.section-cta {
    display: flex;
    justify-content: center; /* centraliza horizontal */
    margin-top: 20px;
}

.section-cta .btn {
    display: inline-flex; /* mantém o ícone e o texto alinhados */
    align-items: center;
    justify-content: center;
}

.section-cta .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 7, 34, 0.3);
}

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

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

/* Responsive Design */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .logo-container {
        width: 3rem;
        height: 3rem;
    }
    
    .logo-text {
        font-size: 1.125rem;
    }
}

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

@media (min-width: 768px) {
    .nav-desktop {
        display: flex;
    }
    
    .mobile-toggle {
        display: none;
    }
    
    .mobile-menu {
        display: none !important;
    }
    
    .hero-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .contact-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-content {
        grid-template-columns: 2fr 3fr;
    }
    
    .footer-links {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 3.75rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .clients-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .partners-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .section-title {
        font-size: 3rem;
    }
}

@media (min-width: 1200px) {
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}