/* Reset e Variáveis */
:root {
    --primary-color: #8D0A37;
    /* Bordô Principal */
    --primary-dark: #6A0729;
    /* Bordô Escuro (para hovers) */
    --secondary-color: #6A7171;
    /* Cinza Principal */
    --accent-color: #E5D9B3;
    /* Um tom de bege/dourado claro para contraste */
    --text-dark: #333333;
    /* Cinza escuro para texto principal */
    --text-light: #6A7171;
    /* Cinza (cor secundária) para texto de apoio */
    --bg-light: #F9F7F7;
    /* Fundo claro, levemente off-white */
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

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

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

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

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

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

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    transition: var(--transition);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 0.95rem;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

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

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

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.05rem;
}

/* Hero Section */
.hero {
    margin-top: 90px;
    /* Aumentado de 80px para 90px */
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-color) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-decoration {
    position: absolute;
    width: 600px;
    height: 600px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: -200px;
    right: -200px;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-50px);
    }
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

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

/* Clients Section */
.clients {
    padding: 4rem 0;
    background-color: var(--bg-light);
}

.clients-title {
    text-align: center;
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    align-items: center;
}

.client-logo {
    text-align: center;
    padding: 1.5rem;
    background-color: white;
    border-radius: 12px;
    font-weight: 600;
    color: var(--text-light);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.client-logo:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

/* Section Styles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.15rem;
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.8;
}

/* Why Section */
.why {
    padding: 6rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.feature-card {
    padding: 2.5rem;
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

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

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

.feature-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* Main Features */
.main-features {
    padding: 6rem 0;
    background-color: var(--bg-light);
}

.resource-highlight {
    margin-top: 3rem;
    padding: 2.5rem;
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    text-align: center;
}

.resource-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    color: var(--primary-color);
    background: rgba(141, 10, 55, 0.1);
    padding: 0.35rem 1rem;
    border-radius: 999px;
}

.resource-intro {
    margin: 1rem auto 0;
    max-width: 720px;
    color: var(--text-light);
}

.resource-grid {
    margin-top: 2.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.resource-card {
    padding: 1.75rem;
    border-radius: 14px;
    background: var(--bg-light);
    box-shadow: var(--shadow-sm);
    text-align: left;
    transition: var(--transition);
}

.resource-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.resource-card h4 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.resource-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* Accordion Styles */
.resource-accordion {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.accordion-item {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px; /* Reduzido de 12px para ser mais sóbrio */
    overflow: hidden;
    transition: all 0.2s ease;
    text-align: left; /* Garante que o conteúdo interno esteja alinhado à esquerda */
    width: 100%; /* Garante largura total */
}

.accordion-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.accordion-item.active {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    background-color: #fffbfc;
}

.accordion-header {
    width: 100%;
    display: flex;
    justify-content: space-between; /* Força espaço entre texto e ícone */
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left; /* Garante alinhamento do texto */
    transition: background-color 0.2s ease;
    margin: 0; /* Remove margens padrão */
}

.accordion-header:hover {
    background-color: rgba(0, 0, 0, 0.01);
}

.accordion-header h4 {
    font-size: 1.15rem;
    color: var(--text-dark);
    margin: 0;
    font-weight: 600;
    transition: color 0.2s ease;
    flex-grow: 1; /* Ocupa o espaço disponível */
}

.accordion-item.active .accordion-header h4 {
    color: var(--primary-color);
}

.accordion-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    transition: transform 0.3s ease, color 0.2s ease;
    margin-left: 1rem;
}

.accordion-item:hover .accordion-icon {
    color: var(--primary-color);
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
    color: var(--primary-color);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, padding 0.3s ease;
    padding: 0 1.5rem;
    opacity: 0;
    text-align: left; /* Garante alinhamento do texto interno */
}

.accordion-item.active .accordion-content {
    max-height: 500px;
    padding-bottom: 1.5rem;
    padding-top: 0;
    opacity: 1;
}

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

.feature-showcase {
    margin-top: 4rem;
    display: flex;
    flex-direction: column;
    gap: 6rem;
}

/* Mockups */
.mockup {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-color) 100%);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow-xl);
}

.mockup-screen {
    background: white;
    border-radius: 8px;
    width: 100%;
    padding-top: 60%;
}

.mockup-desktop {
    padding: 1.5rem 1.5rem 3rem;
}

.mockup-mobile {
    max-width: 200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    border-radius: 30px;
}

.mockup-mobile .mockup-screen {
    padding-top: 150%;
    border-radius: 20px;
}

.mockup-tablet {
    max-width: 300px;
    margin: 0 auto;
}

/* Image Placeholder */
.image-placeholder {
    width: 100%;
    height: 300px;
    background-color: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #d1d5db;
    border-radius: 16px;
    color: #9ca3af;
    font-weight: 600;
    transition: all 0.3s ease;
}

.image-placeholder:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background-color: #fffbfc;
}

/* All Features Section */
.all-features {
    padding: 6rem 0;
}

.features-tabs {
    margin-top: 3rem;
}

.tabs-nav {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 2rem;
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-dark);
    transition: var(--transition);
}

.tab-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.tab-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.tabs-content {
    background: white;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    min-height: 200px;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.tab-panel h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.tab-panel p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1.05rem;
}

.additional-features {
    margin-top: 4rem;
    padding: 3rem;
    background: var(--bg-light);
    border-radius: 16px;
}

.additional-features h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
}

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

.features-columns ul {
    list-style: none;
}

.features-columns li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--text-light);
    border-bottom: 1px solid var(--border-color);
}

.features-columns li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* CTA Section */
.cta {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-color) 100%);
    color: white;
    text-align: center;
}

.cta h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.cta p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background-color: var(--bg-light);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    background: white;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

.contact-info h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-info p {
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

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

.contact-item h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: var(--text-dark);
}

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

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

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

.form-group.full-width {
    grid-column: 1 / -1;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.contact-form button {
    grid-column: 1 / -1;
    width: 100%;
}

/* Footer */
.footer {
    background-color: var(--text-dark);
    color: white;
    padding: 4rem 0 2rem;
}

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

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

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

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

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

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

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

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

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

/* Logo styles */
.logo-img {
    height: 40px;
    width: auto;
    display: block;
}

.footer-logo {
    height: 60px;
    width: auto;
    margin-bottom: 1rem;
}

/* Blazor error banner */
#blazor-error-ui {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.75rem 1rem;
    background: #fdecea;
    color: #86181d;
    border-top: 1px solid #facdc7;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    z-index: 2000;
    font-size: 0.95rem;
}

#blazor-error-ui .reload,
#blazor-error-ui .dismiss {
    margin-left: 1rem;
    color: inherit;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

#blazor-error-ui .dismiss {
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 968px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: var(--transition);
        box-shadow: var(--shadow-lg);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

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

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

    .showcase-item {
        grid-template-columns: 1fr;
    }

    .showcase-item.reverse {
        direction: ltr;
    }

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

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

    .tabs-nav {
        flex-direction: column;
    }

    .tab-btn {
        width: 100%;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .logo-img {
        height: 32px;
    }

    .footer-logo {
        height: 48px;
    }
}

@media (max-width: 640px) {
    .hero {
        padding: 4rem 0;
    }

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

    .hero-buttons {
        flex-direction: column;
    }

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

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

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

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