/* ========================================
   CSS Variables - Design System
   ======================================== */
:root {
    /* Colors - HSL Format */
    --background: 0 0% 100%;
    --foreground: 213 89% 15%;

    --card: 0 0% 100%;
    --card-foreground: 213 89% 15%;

    --primary: 213 89% 29%;
    --primary-foreground: 0 0% 100%;

    --secondary: 0 0% 98%;
    --secondary-foreground: 213 89% 29%;

    --muted: 210 20% 96%;
    --muted-foreground: 213 30% 45%;

    --accent: 20 97% 51%;
    --accent-foreground: 0 0% 100%;

    --border: 213 20% 88%;

    /* Custom Colors */
    --primary-dark: 213 89% 20%;
    --button-primary: 127 55% 55%;
    --button-primary-hover: 127 55% 48%;

    /* Spacing */
    --container-max-width: 1200px;
    --section-padding: 5rem 0;
    --card-padding: 2rem;

    /* Border Radius */
    --radius: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(14, 52, 98, 0.08);
    --shadow-md: 0 4px 24px rgba(14, 52, 98, 0.12);
    --shadow-lg: 0 8px 32px rgba(14, 52, 98, 0.18);

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ========================================
   Utility Classes
   ======================================== */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

.text-accent {
    color: hsl(var(--accent));
}

.section-title {
    font-size: 2.5rem;
    color: hsl(var(--primary));
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: hsl(var(--muted-foreground));
    max-width: 40rem;
    margin: 0 auto;
}

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

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: var(--radius);
    transition: var(--transition);
    white-space: nowrap;
}

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

.btn-primary:hover {
    background-color: hsl(var(--button-primary-hover));
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

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

.btn-block {
    width: 100%;
}

/* ========================================
   Navigation
   ======================================== */
.navigation {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition);
}

.navigation.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 5rem;
}

.mobile-menu-btn {
    display: none;
    color: white;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.5rem;
    z-index: 1001;
    position: relative;
}

.mobile-menu-btn .menu-icon {
    width: 28px;
    height: 28px;
    stroke-width: 2;
}

.navigation.scrolled .mobile-menu-btn {
    color: hsl(var(--foreground));
}

/* Mostrar botão mobile em telas pequenas */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin: 0 auto;
}

.nav-link {
    font-weight: 500;
    color: white;
    transition: var(--transition);
}

.navigation.scrolled .nav-link {
    color: hsl(var(--foreground));
}

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

.nav-separator {
    width: 1px;
    height: 1.5rem;
    background-color: rgba(255, 255, 255, 0.3);
}

.navigation.scrolled .nav-separator {
    background-color: hsl(var(--border));
}

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

.social-links a {
    color: white;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-links a i {
    width: 20px;
    height: 20px;
}

.navigation.scrolled .social-links a {
    color: hsl(var(--foreground));
}

.social-links a:hover {
    color: hsl(var(--accent));
}

.whatsapp-icon {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
    display: block;
}

.navigation.scrolled .whatsapp-icon {
    filter: none;
}

.mobile-menu {
    display: none;
    padding: 50px;
    animation: fadeIn 0.3s ease-out;
    background-color: transparent;
    margin-top: 0.5rem;
}

.navigation.scrolled .mobile-menu {
    background-color: transparent;
}

.mobile-menu.active {
    display: block;
    background-color: white;
}

.mobile-nav-link {
    display: block;
    padding: 0.75rem 0;
    font-weight: 500;
    transition: var(--transition);
    color: hsl(var(--foreground));
}

.navigation:not(.scrolled) .mobile-nav-link {
    color: hsl(var(--foreground));
}

.mobile-nav-link:hover {
    color: hsl(var(--accent));
}

.mobile-social-links {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    margin-top: 0.5rem;
}

.mobile-social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-social-links a i {
    width: 24px;
    height: 24px;
}

.whatsapp-icon-mobile {
    width: 24px;
    height: 24px;
    display: block;
}

/* Mobile Navigation - Já definido acima */
@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 5rem 0;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('assets/hero-bg-new.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, hsla(213, 89%, 20%, 0.95), hsla(213, 89%, 29%, 0.90), hsla(213, 89%, 29%, 0.85));
}

.hero-content {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: flex-start;
    margin-left: 50px;
}

.hero-text {
    max-width: 40rem;
    animation: fadeInUp 0.8s ease-out;
    margin-left: 0;
    margin-right: auto;
}

.hero-logo {
    height: auto;
    width: 16rem;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 2rem;
    color: white;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
}

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

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    font-weight: 500;
}

.trust-line {
    width: 3rem;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.5);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    animation: bounce 2s infinite;
}

.scroll-indicator i {
    width: 40px;
    height: 40px;
}

/* Hero Responsive */
@media (min-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }

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

/* ========================================
   About Section
   ======================================== */
.about {
    padding: 5rem 0;
    background-color: hsl(var(--secondary));
}

.about-header {
    display: grid;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
    max-width: 75rem;
    margin-left: auto;
    margin-right: auto;
}

.about-text h2 {
    margin-bottom: 1.5rem;
}

.about-description {
    font-size: 1.125rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.8;
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    width: 100%;
    height: 16rem;
    object-fit: cover;
    transition: var(--transition);
}

.about-image img:hover {
    transform: scale(1.05);
}

.values-grid {
    display: grid;
    gap: 2rem;
    max-width: 75rem;
    margin: 0 auto;
}

.value-card {
    background-color: hsl(var(--card));
    border-radius: var(--radius-xl);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.value-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.value-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background-color: hsla(var(--accent), 0.1);
    margin-bottom: 1.5rem;
}

.value-icon i {
    width: 32px;
    height: 32px;
    color: hsl(var(--accent));
}

.value-title {
    font-size: 1.25rem;
    color: hsl(var(--primary));
    margin-bottom: 0.75rem;
}

.value-description {
    color: hsl(var(--muted-foreground));
}

/* About Responsive */
@media (min-width: 768px) {
    .about-header {
        grid-template-columns: 1fr 1fr;
    }

    .about-image img {
        height: 20rem;
    }

    .values-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ========================================
   Services Section
   ======================================== */
.services {
    padding: 5rem 0;
    background-color: hsl(var(--background));
}

.services-grid {
    display: grid;
    gap: 2rem;
    max-width: 75rem;
    margin: 0 auto 4rem;
    grid-template-columns: 1fr;
}

.service-card {
    background-color: hsl(var(--card));
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 2px solid hsl(var(--border));
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: hsla(var(--accent), 0.5);
    box-shadow: var(--shadow-lg);
}

.service-image {
    position: relative;
    height: 12rem;
    background-color: white;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: var(--transition);
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

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

.service-title {
    font-size: 1.5rem;
    color: hsl(var(--primary));
    margin-bottom: 0.25rem;
}

.service-subtitle {
    font-size: 0.875rem;
    color: hsl(var(--accent));
    font-weight: 600;
    margin-bottom: 1rem;
}

.service-description {
    color: hsl(var(--muted-foreground));
    margin-bottom: 1rem;
}

.service-features {
    list-style: none;
    margin-bottom: auto;
    padding-bottom: 1.5rem;
}

.service-features li {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 0.5rem;
}

.feature-dot {
    display: inline-block;
    width: 0.375rem;
    height: 0.375rem;
    border-radius: 50%;
    background-color: hsl(var(--accent));
    margin-right: 0.5rem;
}

.services-cta {
    background-color: hsla(var(--primary), 0.05);
    border: 2px solid hsla(var(--primary), 0.1);
    border-radius: var(--radius-xl);
    padding: 2rem;
    text-align: center;
    max-width: 64rem;
    margin: 0 auto;
}

.cta-title {
    font-size: 1.5rem;
    color: hsl(var(--primary));
    margin-bottom: 0.75rem;
}

.cta-description {
    color: hsl(var(--muted-foreground));
    margin-bottom: 1.5rem;
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
}

/* Services Responsive */
@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    /* Fazer o 4º card ocupar 1/3 da largura e centralizar */
    .service-card:nth-child(4) {
        grid-column: 2 / 3;
    }
}

/* ========================================
   Contact Section
   ======================================== */
.contact {
    padding: 5rem 0;
    background-color: hsl(var(--secondary));
}

.contact-content {
    max-width: 64rem;
    margin: 0 auto;
}

.contact-cards {
    display: grid;
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-card {
    background-color: hsl(var(--card));
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

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

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius);
    background-color: hsla(var(--primary), 0.1);
    flex-shrink: 0;
}

.contact-icon i {
    width: 24px;
    height: 24px;
    color: hsl(var(--primary));
}

.contact-label {
    font-size: 1.25rem;
    font-weight: 700;
    color: hsl(var(--primary));
    margin-top: 0.5rem;
}

.contact-items {
    display: grid;
    gap: 1rem;
}

.contact-item {
    display: block;
    transition: var(--transition);
}

.contact-item:hover .contact-text {
    color: hsl(var(--accent));
}

.contact-text {
    font-weight: 600;
    color: hsl(var(--foreground));
    transition: var(--transition);
}

.contact-subtitle {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

.whatsapp-cta {
    background-color: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-md);
}

.whatsapp-title {
    font-size: 1.5rem;
    color: hsl(var(--primary));
    margin-bottom: 0.75rem;
}

.whatsapp-description {
    color: hsl(var(--muted-foreground));
    margin-bottom: 1.5rem;
}

.whatsapp-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
}

/* Contact Responsive */
@media (min-width: 640px) {
    .contact-items {
        grid-template-columns: repeat(2, 1fr);
    }

    .whatsapp-buttons {
        flex-direction: row;
    }
}

@media (min-width: 768px) {
    .contact-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========================================
   WhatsApp Floating Button
   ======================================== */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    animation: pulse 2s infinite;
    opacity: 0;
    transform: scale(0.8);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-float-icon {
    width: 35px;
    height: 35px;
    color: white;
}

/* Animação de pulso */
@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.7), 0 0 0 10px rgba(37, 211, 102, 0.1);
    }
}

/* Responsivo */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 56px;
        height: 56px;
        bottom: 16px;
        right: 16px;
    }

    .whatsapp-float-icon {
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 480px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 12px;
        right: 12px;
    }

    .whatsapp-float-icon {
        width: 28px;
        height: 28px;
    }
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background-color: hsl(var(--primary));
    color: white;
    padding: 3rem 0;
}

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

.footer-logo {
    height: 5rem;
    margin-bottom: 1rem;
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
}

.footer-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

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

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.footer-social-link:hover {
    background-color: hsl(var(--accent));
}

.footer-social-link i {
    width: 20px;
    height: 20px;
}

.footer-contact-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

/* Footer Responsive */
@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}
