/* ==========================================================================
   DESIGN TOKENS & ROOT VARIABLES
   ========================================================================== */
:root {
    /* Color Palette */
    --color-primary: #520303; /* Deep Burgundy */
    --color-primary-light: #730606;
    --color-primary-dark: #3a0202;
    
    --color-secondary: #AA7E32; /* Gold-Bronze */
    --color-secondary-light: #EBC65E; /* Light Gold */
    --color-secondary-dark: #8c6524;
    
    --color-text-main: #2A2A2A;
    --color-text-muted: #666666;
    --color-text-light: #FFFFFF;
    
    --color-bg-light: #FAF8F5; /* Warm off-white background */
    --color-bg-white: #FFFFFF;
    --color-bg-tint: #F3ECE6; /* Warm cream background */
    
    --color-whatsapp: #25D366;
    --color-whatsapp-hover: #128C7E;
    
    /* Typography */
    --font-headings: 'Cinzel', serif;
    --font-body: 'Century Gothic', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 16px -6px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, 0.12);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-pill: 9999px;
    
    /* Max Widths */
    --container-width: 1200px;
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-light);
    color: var(--color-text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

/* ==========================================================================
   REUSABLE UTILITIES
   ========================================================================== */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

.text-center {
    text-align: center;
}

.section-label {
    display: inline-block;
    font-family: var(--font-headings);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-secondary-dark);
    margin-bottom: 0.75rem;
}

.section-title {
    font-family: var(--font-headings);
    font-size: clamp(2rem, 4vw, 2.75rem);
    color: var(--color-primary);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.25rem;
}

.section-subtitle {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-family: var(--font-body);
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-normal);
    border: none;
    text-align: center;
}

.btn-sm {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
}

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

.btn-whatsapp {
    background-color: var(--color-whatsapp);
    color: var(--color-text-light);
}

.btn-whatsapp:hover {
    background-color: var(--color-whatsapp-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp-secondary {
    background-color: var(--color-bg-white);
    color: var(--color-whatsapp);
}

.btn-whatsapp-secondary:hover {
    background-color: var(--color-whatsapp-hover);
    color: var(--color-text-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--color-text-light);
    color: var(--color-text-light);
}

.btn-outline:hover {
    background-color: var(--color-text-light);
    color: var(--color-primary);
    transform: translateY(-2px);
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(82, 3, 3, 0.85); /* Burgundy glassmorphism */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(235, 198, 94, 0.15); /* Subtle golden border */
    transition: var(--transition-normal);
}

.main-header.scrolled {
    background-color: var(--color-primary-dark);
    box-shadow: var(--shadow-md);
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(235, 198, 94, 0.25);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
    transition: var(--transition-normal);
}

.main-header.scrolled .header-container {
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    color: var(--color-text-light);
}

.logo-img {
    max-height: 60px;
    width: auto;
    display: block;
    transition: var(--transition-normal);
}

.main-header.scrolled .logo-img {
    max-height: 48px;
}

.logo-icon {
    width: 32px;
    height: 32px;
    color: var(--color-secondary);
}

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

.logo-sub {
    color: var(--color-secondary);
    font-weight: 300;
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    gap: 2.25rem;
}

.nav-link {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 0;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-secondary);
    transition: var(--transition-normal);
}

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

.header-cta {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    width: 100%;
    height: 2px;
    background-color: var(--color-text-light);
    transition: var(--transition-normal);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    position: relative;
    padding: 180px 0 120px;
    min-height: 90vh;
    display: flex;
    align-items: center;
    color: var(--color-text-light);
    background-color: var(--color-primary-dark);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(to right, rgba(58, 2, 2, 0.94), rgba(58, 2, 2, 0.72)), url('assets/images/background.png');
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    width: 90%;
}

.hero-content {
    max-width: 750px;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-pill);
    background-color: rgba(197, 168, 128, 0.15);
    border: 1px solid rgba(197, 168, 128, 0.3);
    color: var(--color-secondary);
    font-family: var(--font-headings);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
    animation: fadeInDown 0.6s ease;
}

.hero-title {
    font-family: var(--font-headings);
    font-size: clamp(2.5rem, 5.5vw, 4rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2.5rem;
    line-height: 1.5;
    animation: fadeInUp 1s ease;
}

.hero-buttons {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    animation: fadeInUp 1.2s ease;
}

/* ==========================================================================
   SOBRE MIM (ABOUT) SECTION
   ========================================================================== */
.about-section {
    padding: 100px 0;
    background-color: var(--color-bg-white);
}

.about-container-single {
    max-width: 800px;
    margin: 0 auto;
}

.about-container-single .stats-row {
    justify-content: center;
}

.about-lead {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.about-content p {
    color: var(--color-text-muted);
    margin-bottom: 1.25rem;
}

.stats-row {
    display: flex;
    gap: 2rem;
    margin-top: 2.5rem;
    border-top: 1px solid var(--color-bg-tint);
    padding-top: 2rem;
}

.stat-item {
    flex: 1;
}

.stat-number {
    display: block;
    font-family: var(--font-headings);
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 800;
    color: var(--color-secondary-dark);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-text {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ==========================================================================
   SERVIÇOS (SERVICES) SECTION
   ========================================================================== */
.services-section {
    padding: 100px 0;
    background-color: var(--color-bg-tint);
}

.services-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.tab-btn {
    font-family: var(--font-headings);
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    border: 2px solid transparent;
    border-radius: var(--radius-pill);
    background-color: var(--color-bg-white);
    color: var(--color-text-muted);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.tab-btn:hover {
    color: var(--color-primary);
    transform: translateY(-1px);
}

.tab-btn.active {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    box-shadow: var(--shadow-md);
}

.tab-content {
    display: none;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity var(--transition-normal), transform var(--transition-normal);
}

.tab-content.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-bottom: 3.5rem;
}

.service-card {
    background-color: var(--color-bg-white);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--color-secondary);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-normal);
}

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

.service-card:hover::after {
    transform: scaleX(1);
}

.service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    background-color: rgba(197, 168, 128, 0.12);
    color: var(--color-secondary-dark);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-family: var(--font-headings);
    font-size: 1.25rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

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

.services-cta-box {
    margin-top: 3rem;
}

/* ==========================================================================
   DIFERENCIAIS SECTION
   ========================================================================== */
.diferenciais-section {
    padding: 100px 0;
    background-color: var(--color-bg-white);
}

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

.diferencial-card {
    padding: 2rem;
    border-radius: var(--radius-lg);
    transition: var(--transition-normal);
}

.diferencial-card:hover {
    background-color: var(--color-bg-tint);
}

.diferencial-icon {
    color: var(--color-secondary-dark);
    margin-bottom: 1.25rem;
}

.diferencial-card h3 {
    font-family: var(--font-headings);
    font-size: 1.35rem;
    color: var(--color-primary);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.diferencial-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ==========================================================================
   FAQ SECTION
   ========================================================================== */
.faq-section {
    padding: 100px 0;
    background-color: var(--color-bg-tint);
}

.faq-accordion-wrapper {
    max-width: 750px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--color-bg-white);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition-normal);
}

.faq-trigger {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: none;
    border: none;
    text-align: left;
    font-family: var(--font-headings);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-primary);
    cursor: pointer;
    transition: var(--transition-fast);
}

.faq-trigger:hover {
    color: var(--color-secondary-dark);
}

.faq-icon {
    display: inline-flex;
    transition: var(--transition-normal);
    color: var(--color-secondary-dark);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    padding: 0 2rem;
    transition: max-height var(--transition-normal), padding var(--transition-normal);
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.faq-item.active .faq-content {
    max-height: 200px;
    padding: 0 2rem 1.5rem 2rem;
}

/* ==========================================================================
   FOOTER CTA
   ========================================================================== */
.footer-cta-section {
    padding: 90px 0;
    background-color: var(--color-primary-dark);
    color: var(--color-text-light);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.footer-cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(197, 168, 128, 0.08) 1px, transparent 1px);
    background-size: 24px 24px;
    z-index: 1;
}

.footer-cta-section .container {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.footer-cta-section h2 {
    font-family: var(--font-headings);
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1.25rem;
}

.footer-cta-section p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2.5rem;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.main-footer {
    background-color: #210101; /* Ultra dark burgundy footer background */
    color: rgba(255, 255, 255, 0.7);
    padding: 40px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.25fr 1fr 1.25fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-info .logo {
    margin-bottom: 1.5rem;
}

.footer-desc {
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-grid h4 {
    font-family: var(--font-headings);
    color: var(--color-text-light);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.footer-links ul li {
    margin-bottom: 0.5rem;
}

.footer-links ul a:hover {
    color: var(--color-secondary);
    padding-left: 5px;
}

.footer-contact ul li {
    margin-bottom: 0.75rem;
    font-size: 0.95 rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.75rem 0;
    font-size: 0.85rem;
}

/* ==========================================================================
   FLOATING BUTTONS
   ========================================================================== */
.whatsapp-floating {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--color-whatsapp);
    color: var(--color-text-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 999;
    transition: var(--transition-normal);
    animation: pulseWhatsapp 2s infinite;
}

.whatsapp-floating:hover {
    background-color: var(--color-whatsapp-hover);
    transform: scale(1.1);
}

.whatsapp-floating svg {
    width: 32px;
    height: 32px;
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes pulseWhatsapp {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* ==========================================================================
   MEDIA QUERIES (RESPONSIVENESS)
   ========================================================================== */
@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-image-wrapper {
        max-width: 450px;
        margin: 0 auto;
    }
    
    .diferenciais-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--color-primary-dark);
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 3rem;
        gap: 2rem;
        transition: var(--transition-normal);
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .nav-menu.open {
        left: 0;
    }
    
    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .header-cta .btn {
        display: none; /* Hide top CTA button in mobile, hamburger menu is enough */
    }
    
    /* Toggle transformations */
    .nav-toggle.open span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }
    
    .nav-toggle.open span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.open span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }
    
    .hero-section {
        padding: 140px 0 80px;
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .services-tabs {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    
    .tab-btn {
        width: 100%;
        max-width: 300px;
    }
}
