/* Reset e estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', Arial, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    max-width: 100vw;
    overflow-x: hidden;
    scroll-behavior: smooth;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Cores da identidade visual - Modo Claro */
:root {
    --primary: #F06B00;
    --secondary: #EC1E79;
    --dark: #333333;
    --text: #444444;
    --light: #f9f9f9;
    --accent: #EC1E79;

    /* Sistema de cores - Modo Claro */
    --bg-primary: #f9f9f9;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f8f9fa;
    --text-primary: #444444;
    --text-secondary: #666666;
    --text-tertiary: #888888;
    --border-primary: #eee;
    --border-secondary: #ddd;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --card-bg: #ffffff;
    --header-bg: #ffffff;
    --footer-bg: #2a2a2a;
    --hamburger-color: #333333;

    /* Novas variáveis para sistema de design */
    --shadow-sm: 0 2px 4px var(--shadow-color);
    --shadow-md: 0 4px 8px var(--shadow-color);
    --shadow-lg: 0 8px 16px var(--shadow-color);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Modo Escuro */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: #0d1117;
        --bg-secondary: #161b22;
        --bg-tertiary: #21262d;
        --text-primary: #e6edf3;
        --text-secondary: #c9d1d9;
        --text-tertiary: #8b949e;
        --border-primary: #30363d;
        --border-secondary: #21262d;
        --shadow-color: rgba(0, 0, 0, 0.4);
        --card-bg: #161b22;
        --header-bg: #0d1117;
        --footer-bg: #0d1117;
        --dark: #e6edf3;
        --light: #0d1117;
        --hamburger-color: #e6edf3;
    }

    /* Ajustes específicos para modo escuro */
    .protocol-card,
    .pricing-card,
    .benefit-item {
        background: var(--card-bg);
        color: var(--text-primary);
        border: 1px solid var(--border-primary);
    }

    .protocol-card:hover,
    .pricing-card:hover,
    .benefit-item:hover {
        border-color: var(--primary);
        box-shadow: 0 8px 25px rgba(240, 107, 0, 0.2);
    }

    .pricing-card.featured {
        background: var(--bg-tertiary);
        border-color: var(--primary);
    }

    .pricing-card.featured .card-content {
        background: var(--bg-tertiary);
    }

    .protocol-highlight {
        background: var(--bg-tertiary);
        border: 1px solid var(--border-primary);
    }

    .carousel-image {
        background-color: var(--bg-tertiary);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }
}

/* Tipografia */
h1,
h2,
h3,
h4 {
    font-family: 'Poppins', sans-serif;
    color: var(--text-primary);
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.1;
}

h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 600;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary);
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

/* Layout Geral */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Adicionado padding lateral em todas as seções, exceto hero */
.section {
    padding: clamp(3rem, 8vh, 6rem) 0;
    padding-left: clamp(1.5rem, 5vw, 3rem);
    padding-right: clamp(1.5rem, 5vw, 3rem);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-subtitle {
    display: block;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

/* Botões */
.cta-button,
.pricing-button,
.submit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    font-weight: 600;
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: var(--transition);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.cta-button::before,
.pricing-button::before,
.submit-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.cta-button:hover,
.pricing-button:hover,
.submit-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.cta-button:hover::before,
.pricing-button:hover::before,
.submit-button:hover::before {
    left: 100%;
}

.cta-button:active,
.pricing-button:active,
.submit-button:active {
    transform: scale(0.98);
}

/* Header */
header {
    background: var(--header-bg);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--border-primary);
    transition: background-color 0.3s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: clamp(1.5rem, 5vw, 3rem);
    padding-right: clamp(1.5rem, 5vw, 3rem);
}

.logo img {
    height: 50px;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.main-nav a {
    color: var(--text-primary);
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
}

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

/* Hamburger Menu - CORRIGIDO */
.hamburger-menu {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 8px;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    z-index: 1002;
    position: relative;
}

.hamburger-menu span {
    display: block;
    width: 26px;
    height: 3px;
    background-color: var(--hamburger-color);
    transition: var(--transition);
    position: relative;
    border-radius: 2px;
}

/* Hero Section - Letras brancas */
.hero-content h1,
.hero-content p,
.hero-content .subtitle {
    color: #ffffff !important;
}

/* Protocolos Section */
.protocolos {
    background-color: var(--bg-primary);
}

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

.protocol-card {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-primary);
}

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

.protocol-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 5px var(--shadow-color));
    font-size: 2rem;
    color: var(--primary);
}

.protocol-highlight {
    background: var(--bg-tertiary);
    padding: 1rem;
    border-radius: var(--radius-sm);
    margin-top: 1rem;
    font-style: italic;
    border: 1px solid var(--border-primary);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    color: white;
    text-align: center;
    padding: 4rem 0;
    padding-left: clamp(1.5rem, 5vw, 3rem);
    padding-right: clamp(1.5rem, 5vw, 3rem);
}

.cta-content h3 {
    color: white;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Benefícios Section */
.beneficios {
    background-color: var(--bg-secondary);
}

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

.benefit-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background-color: var(--card-bg);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-primary);
}

.benefit-item:hover {
    box-shadow: var(--shadow-md);
}

.benefit-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    box-shadow: var(--shadow-md);
}

/* Preços Section */
.pricing-section {
    background-color: var(--bg-primary);
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    justify-content: center;
    align-items: flex-end;
}

.pricing-card {
    background-color: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
    text-align: center;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid var(--border-primary);
}

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

.pricing-card.featured {
    transform: scale(1.05);
    border: 3px solid var(--primary);
}

.pricing-card.featured .card-content {
    background: var(--bg-tertiary);
}

.card-image {
    width: 100%;
    height: 150px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    object-position: top;
}

.card-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin: 1rem 0;
}

.benefits {
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Resultados Visíveis Section (Carousel) */
#resultados {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    background-color: var(--bg-secondary);
    padding-left: clamp(1.5rem, 5vw, 3rem) !important;
    padding-right: clamp(1.5rem, 5vw, 3rem) !important;
}

#resultados .section-title {
    text-align: center;
    margin-bottom: 40px;
}

.carousel-wrapper {
    display: flex;
    justify-content: center;
}

.carousel-container {
    max-width: min(900px, 95vw);
    width: 100%;
    margin: 0 auto;
    text-align: center;
    justify-content: center;
}

.carousel-image {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
    background-color: var(--bg-tertiary);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: calc(320px * 4);
    height: 100%;
}

.carousel-slide {
    flex-shrink: 0;
    width: 320px;
    height: 100%;
    position: relative;
}

.carousel-slide:hover .carousel-image {
    transform: scale(1.02);
}

.carousel-nav button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(240, 107, 0, 0.8);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    cursor: pointer;
    border-radius: 50%;
    font-size: 1.2rem;
    z-index: 10;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-nav button:hover {
    background: var(--primary);
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.carousel-indicator.active {
    background-color: var(--primary);
    transform: scale(1.2);
}

.carousel-indicator:hover {
    background-color: var(--primary);
}

/* Depoimentos Section */
#depoimentos {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    background-color: var(--bg-primary);
    padding-left: clamp(1.5rem, 5vw, 3rem) !important;
    padding-right: clamp(1.5rem, 5vw, 3rem) !important;
}

#depoimentos .section-title {
    text-align: center;
    margin-bottom: 40px;
}

.video-embed-wrapper {
    display: flex;
    justify-content: center;
}

.video-responsive {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding-top: 56.25%;
    background: #000;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.video-responsive video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Rodapé - Ajustado com fundo cinza escuro */
footer {
    background-color: #2b2b2b;
    color: #fff;
    padding: 4rem 0 1rem;
    border-top: 1px solid var(--border-primary);
    padding-left: clamp(1.5rem, 5vw, 3rem);
    padding-right: clamp(1.5rem, 5vw, 3rem);
}

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

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

.footer-column h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

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

.footer-column li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #cccccc;
}

.footer-column li i {
    width: 16px;
    text-align: center;
}

.footer-column a,
.footer-column li {
    color: #ddd;
}

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

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

.footer-column p {
    color: #cccccc;
}

.copyright {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    color: #999999;
}

.pharmacy-logo {
    display: block;
    width: 200px;
    height: auto;
    max-height: 80px;
    object-fit: contain;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* WhatsApp Float Button - Ajustado para ficar à DIREITA */
.whatsapp-float {
    position: fixed;
    bottom: 90px;
    right: 20px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    transition: var(--transition);
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* Bottom Bar - Ajustado gatilho para após depoimentos */
.bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--card-bg);
    padding: 15px 20px;
    box-shadow: 0 -2px 10px var(--shadow-color);
    z-index: 998;
    text-align: center;
    border-top: 1px solid var(--border-primary);
    transform: translateY(100%);
    opacity: 0;
    transition: all 0.3s ease;
    /* Padding lateral ajustado para respeitar novo espaçamento */
    padding-left: clamp(1.5rem, 5vw, 3rem);
    padding-right: clamp(1.5rem, 5vw, 3rem);
}

.bottom-bar.show {
    transform: translateY(0);
    opacity: 1;
}

.bottom-bar .cta-button {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

/* Keyframes */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes float {

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

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

/* Acessibilidade - Foco visível */
button:focus-visible,
a:focus-visible,
.cta-button:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Performance - Redução de movimento */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Responsividade */
@media (max-width: 768px) {
    .main-nav {
        display: none;
        width: 100%;
        background-color: var(--bg-secondary);
        position: absolute;
        top: 100%;
        left: 0;
        box-shadow: var(--shadow-md);
        border: 1px solid var(--border-primary);
        border-top: none;
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        padding: 1rem 0;
    }

    .main-nav li {
        text-align: center;
        border-bottom: 1px solid var(--border-primary);
    }

    .main-nav a {
        display: block;
        padding: 1rem;
        color: var(--text-primary);
    }

    .main-nav a:hover {
        background-color: var(--bg-tertiary);
    }

    .hamburger-menu {
        display: flex;
    }

    /* Animação perfeita do X - CORRIGIDA */
    .hamburger-menu.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
        width: 26px;
    }

    .hamburger-menu.active span:nth-child(2) {
        opacity: 0;
        transform: translateX(20px);
    }

    .hamburger-menu.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
        width: 26px;
    }

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

    .protocol-grid,
    .benefits-grid,
    .pricing-cards {
        grid-template-columns: 1fr;
    }

    .benefit-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .carousel-container {
        max-width: 280px;
        height: 393px;
    }

    .carousel-track {
        width: calc(280px * 4);
    }

    .carousel-slide {
        width: 280px;
    }

    .carousel-image {
        height: 393px;
    }

    /* WhatsApp float ajustado para mobile */
    .whatsapp-float {
        bottom: 90px;
        right: 15px;
        width: 55px;
        height: 55px;
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .container {
        width: 95%;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .carousel-container {
        max-width: 260px;
        height: 365px;
    }

    .carousel-track {
        width: calc(260px * 4);
    }

    .carousel-slide {
        width: 260px;
    }
}

@media (min-width: 769px) {
    .hamburger-menu {
        display: none !important;
    }

    /* Remover tarja branca do logo da farmácia em desktop */
    .pharmacy-logo {
        background: transparent !important;
        border: none !important;
    }
}