/* Google Fonts - LifeAligner Brand Typography */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@300;400;500;600;700&family=Montserrat:wght@300;400;500;600;700&family=Petit+Formal+Script&display=swap');

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

:root {
    /* LifeAligner Brand Colors - Paleta Institucional */
    /* 1. Verde Saúde (Cor Primária) - Botões, chamadas, foco */
    --color-primary: #319787;
    --color-primary-rgb: 49, 151, 135;

    /* 2. Verde Frescor (Cor Secundária) - Fundos leves, respiros visuais */
    --color-secondary: #9AD2CD;
    --color-secondary-rgb: 154, 210, 205;

    /* 3. Branco Inteligente/Limpo - Fundo principal */
    --color-background: #F7F7F7;
    --color-background-rgb: 247, 247, 247;

    /* 4. Verde Escuro Confiança - Cabeçalhos, navegação, estrutura */
    --color-dark: #24665A;
    --color-dark-rgb: 36, 102, 90;

    /* 5. Cinza Elegante - Textos secundários, áreas neutras */
    --color-muted: #5D5D5D;
    --color-muted-rgb: 94, 93, 93;

    /* 6. Preto Moderno - Títulos fortes, contrastes */
    --color-foreground: #1D1D1B;
    --color-foreground-rgb: 28, 28, 26;

    /* Derivadas para UI */
    --color-border: rgba(154, 210, 205, 0.3);
    --color-muted-bg: rgba(154, 210, 205, 0.1);
    --color-muted-foreground: #5D5D5D; /* Cinza Elegante para textos secundários */

    /* Shadows */
    --shadow-soft: 0 4px 20px rgba(49, 151, 135, 0.15);
    --shadow-card: 0 8px 30px rgba(36, 102, 90, 0.08);

    /* Typography - LifeAligner Brand Fonts */
    --font-titles: 'Oswald', sans-serif;        /* Títulos e subtítulos */
    --font-body: 'Montserrat', sans-serif;      /* Textos corridos */
    --font-script: 'Petit Formal Script', cursive; /* Detalhes elegantes */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--color-background);
    color: var(--color-foreground);
    line-height: 1.6;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: hsla(0, 0%, 100%, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--color-border);
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 7rem;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

/* Header Scrolled State */
.header.scrolled {
    background: hsla(0, 0%, 100%, 0.98);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header.scrolled .header-content {
    height: 5rem;
    padding: 0.5rem 0;
}

.header.scrolled .logo-image {
    height: 3.5rem;
}

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

.logo-image {
    height: 5rem;
    width: auto;
}

/* Nova logo estilo dashboard */
.logo-icon-dashboard {
    width: 2.25rem;
    height: 2.25rem;
    background: linear-gradient(to bottom right, #3b82f6, #2563eb);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.logo-icon-dashboard i {
    color: white;
    font-size: 1.125rem;
}

.logo-text-dashboard {
    font-family: var(--font-titles);
    font-size: 1.125rem;
    font-weight: 600;
    background: linear-gradient(to right, #2563eb, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Manter estilos antigos por compatibilidade */
.logo-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-foreground);
}

.logo-highlight {
    color: var(--color-primary);
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-menu a {
    color: var(--color-foreground);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: #24665a;
    color: white;
    box-shadow: var(--shadow-soft);
    font-weight: 500;
}

.btn-primary:hover {
    background: #B5D630;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid hsla(0, 0%, 100%, 0.5);
    backdrop-filter: blur(4px);
}

.btn-outline:hover {
    background: hsla(0, 0%, 100%, 0.15);
    border-color: white;
}

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

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    overflow: visible;
    padding-top: 7rem;
    display: flex;
    align-items: center;
}

.hero .container {
    position: relative;
    width: 100%;
}

.hero-bg {
    position: absolute;
    inset: 0;
}

.hero-bg img,
.hero-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-video {
    /* Otimizações para performance do vídeo */
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.hero-decorative {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.decorative-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
}

.decorative-circle-1 {
    top: 5rem;
    right: 2.5rem;
    width: 8rem;
    height: 8rem;
    background: rgba(var(--color-secondary-rgb), 0.2);
}

.decorative-circle-2 {
    bottom: 5rem;
    left: 2.5rem;
    width: 10rem;
    height: 10rem;
    background: rgba(var(--color-secondary-rgb), 0.2);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: left;
    max-width: 600px;
    padding-left: 0;
}

.hero-title {
    font-family: var(--font-body);
    font-size: clamp(2.5rem, 5vw, 3rem);
    font-weight: 400;
    color: white;
    margin-bottom: 2.5rem;
    line-height: 1.5;
    max-width: 650px;
}

.hero-highlight {
    font-family: var(--font-script);
    color: var(--color-primary);
    font-weight: 400;
}

.hero-subtitle {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    color: hsla(0, 0%, 100%, 0.9);
    margin-bottom: 2rem;
    max-width: 42rem;
}

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

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

.scroll-wheel {
    width: 1.5rem;
    height: 2.5rem;
    border: 2px solid hsla(0, 0%, 100%, 0.5);
    border-radius: 1.5rem;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 0.5rem 0;
}

.scroll-wheel::before {
    content: '';
    width: 0.25rem;
    height: 0.5rem;
    background: hsla(0, 0%, 100%, 0.7);
    border-radius: 0.25rem;
}

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

/* Features Bar */
.features-bar {
    position: absolute;
    bottom: -3rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    width: 90%;
    max-width: 1000px;
    padding: 0 1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    background: #1A3B47;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.feature-card {
    text-align: center;
    color: white;
    padding: 2rem 1.5rem;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.feature-card:last-child {
    border-right: none;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-5px);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    background: rgba(36, 102, 90, 0.3);
    transform: scale(1.1);
}

.feature-icon i {
    font-size: 1.5rem;
    color: #24665a;
}

.feature-title {
    font-family: var(--font-titles);
    font-size: 1.125rem;
    font-weight: 600;
    color: white;
    margin: 0;
}

/* Sections */
.section {
    padding: 6rem 0;
}

.section:first-of-type {
    padding-top: 9rem;
}

.section-muted {
    background: rgba(var(--color-secondary-rgb), 0.08);
}

.section-decorative {
    position: relative;
    overflow: hidden;
}

.section-decorative-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.decorative-blur {
    position: absolute;
    width: 24rem;
    height: 24rem;
    border-radius: 50%;
    filter: blur(80px);
}

.decorative-blur-1 {
    top: 0;
    right: 0;
    background: rgba(var(--color-secondary-rgb), 0.05);
}

.decorative-blur-2 {
    bottom: 0;
    left: 0;
    background: rgba(var(--color-secondary-rgb), 0.05);
}

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

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

.section-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(var(--color-secondary-rgb), 0.2);
    color: var(--color-primary);
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-titles);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--color-foreground);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

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

.text-large {
    font-size: 1.125rem;
    color: var(--color-muted-foreground);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* Grid Layouts */
.grid-2col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    align-items: center;
}

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

.grid-4col {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.grid-gap {
    gap: 1.5rem;
}

.order-1 {
    order: 1;
}

.order-2 {
    order: 2;
}

/* Cards */
.card {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: all 0.3s;
}

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

.card-large {
    padding: 3rem;
    max-width: 56rem;
    margin: 0 auto;
}

.card-icon {
    width: 3.5rem;
    height: 3.5rem;
    background: var(--color-muted-bg);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.card-icon svg {
    color: var(--color-primary);
}

.card-title {
    font-family: var(--font-titles);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-foreground);
    margin-bottom: 0.75rem;
}

.card-text {
    color: var(--color-muted-foreground);
    line-height: 1.6;
}

/* Case Items */
.case-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: all 0.3s;
}

.case-item:hover .case-icon {
    background: var(--color-primary);
    transform: scale(1.1);
}

.case-item:hover .case-icon svg {
    color: white;
}

.case-icon {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    background: var(--color-muted-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.case-icon svg {
    color: var(--color-primary);
}

.case-item p {
    font-weight: 500;
    color: var(--color-foreground);
    padding-top: 0.25rem;
}

.info-box {
    margin-top: 2.5rem;
    padding: 1.5rem;
    background: rgba(var(--color-secondary-rgb), 0.05);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
}

.info-box p {
    text-align: center;
    color: var(--color-muted-foreground);
}

/* Step Cards Timeline */
.steps-timeline {
    max-width: 1200px;
    margin: 0 auto;
}

.steps-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.steps-row-centered {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.steps-row .card-step {
    flex: 1;
    max-width: 320px;
}

.step-connector {
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--color-primary), var(--color-primary));
    position: relative;
    flex-shrink: 0;
}

.step-connector::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid var(--color-primary);
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
}

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

.step-icon-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.step-icon {
    width: 3.5rem;
    height: 3.5rem;
    background: var(--color-primary);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(var(--color-primary-rgb), 0.3);
    transition: transform 0.3s;
}

.card-step:hover .step-icon {
    transform: scale(1.1);
}

.step-icon svg {
    color: white;
}

.step-number {
    position: absolute;
    top: -0.5rem;
    right: -0.5rem;
    width: 1.75rem;
    height: 1.75rem;
    background: var(--color-dark);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(var(--color-dark-rgb), 0.3);
}

/* Info Items */
.info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
}

.info-icon {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    background: var(--color-muted-bg);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-icon svg {
    color: var(--color-primary);
}

.info-item p {
    font-weight: 500;
    color: var(--color-foreground);
    line-height: 1.6;
}

/* Images */
.section-image {
    position: relative;
}

.image-wrapper {
    position: relative;
}

.image-bg {
    position: absolute;
    top: -1rem;
    left: -1rem;
    width: 100%;
    height: 100%;
    background: var(--color-muted-bg);
    border-radius: var(--radius-xl);
}

.image-wrapper img {
    position: relative;
    width: 100%;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
}

.stats-badge {
    position: absolute;
    bottom: -1.5rem;
    left: -1.5rem;
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.stats-avatars {
    display: flex;
    margin-left: -0.5rem;
}

.avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: 2px solid white;
    margin-left: -0.5rem;
}

.avatar:nth-child(1) {
    background: rgba(var(--color-secondary-rgb), 0.4);
}

.avatar:nth-child(2) {
    background: rgba(var(--color-secondary-rgb), 0.6);
}

.avatar:nth-child(3) {
    background: var(--color-secondary);
}

.stats-number {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-foreground);
}

.stats-label {
    font-size: 0.75rem;
    color: var(--color-muted-foreground);
}

/* CTA Section */
.cta-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.cta-badge svg {
    color: var(--color-primary);
}

.cta-badge span {
    font-family: var(--font-script);
    color: var(--color-primary);
    font-weight: 400;
    font-size: 1.25rem;
}

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

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

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

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

.logo-image-footer {
    height: 4rem;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-logo .logo-text-dashboard {
    color: white;
    background: none;
    -webkit-text-fill-color: white;
}

.footer-description {
    font-size: 0.875rem;
    color: hsla(0, 0%, 100%, 0.8);
}

.footer-title {
    font-family: var(--font-titles);
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-links, .footer-contact {
    list-style: none;
}

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

.footer-links a {
    color: hsla(0, 0%, 100%, 0.8);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--color-primary);
}

.footer-contact li {
    color: hsla(0, 0%, 100%, 0.8);
    font-size: 0.875rem;
}

.footer-contact a {
    color: hsla(0, 0%, 100%, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

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

.footer-social-icons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.footer-contact .whatsapp-link,
.footer-contact .instagram-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    transition: transform 0.3s, opacity 0.3s;
}

.footer-contact .whatsapp-link {
    background: #25D366;
}

.footer-contact .whatsapp-link:hover {
    background: #20BA5A;
    transform: scale(1.1);
}

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

.footer-contact .instagram-link:hover {
    transform: scale(1.1);
    opacity: 0.9;
}

.footer-contact .whatsapp-link i,
.footer-contact .instagram-link i {
    color: white;
    font-size: 18px;
}

.footer-bottom {
    border-top: 1px solid hsla(0, 0%, 100%, 0.2);
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.875rem;
    color: hsla(0, 0%, 100%, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.footer-bottom svg {
    color: var(--color-primary);
}

.footer-bottom a {
    color: white;
    font-weight: 700;
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* Otimização para conexões lentas - usar poster em vez de vídeo */
@media (prefers-reduced-data: reduce) {
    .hero-video {
        display: none;
    }
}

/* Responsive */
@media (max-width: 900px) and (min-width: 769px) {
    .grid-4col {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-bar {
        display: none;
    }
}

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

    /* Header Responsivo */
    .header-content {
        height: 5rem;
    }

    .logo-image {
        height: 3.5rem;
    }

    .header.scrolled .header-content {
        height: 4rem;
    }

    .header.scrolled .logo-image {
        height: 2.5rem;
    }

    /* Botão Área Profissional Responsivo */
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
        white-space: nowrap;
    }

    .hero {
        padding-top: 5rem;
        min-height: 100vh;
    }

    .hero-content {
        padding: 2rem 0;
    }

    /* Features Bar Mobile - Ocultar */
    .features-bar {
        display: none;
    }

    .section:first-of-type {
        padding-top: 4rem;
    }

    .grid-2col, .grid-3col, .grid-4col {
        grid-template-columns: 1fr;
    }

    .order-1, .order-2 {
        order: initial;
    }

    .stats-badge {
        position: static;
        margin-top: 1rem;
    }

    /* Steps Timeline Responsive */
    .steps-row {
        flex-direction: column;
        gap: 2rem;
    }

    .steps-row .card-step {
        max-width: 100%;
    }

    .step-connector {
        width: 3px;
        height: 40px;
        background: linear-gradient(to bottom, var(--color-primary), var(--color-primary));
    }

    .step-connector::after {
        right: 50%;
        top: auto;
        bottom: -6px;
        transform: translateX(50%) rotate(90deg);
    }
}

