/* Base Reset and Typography */
:root {
    --primary-color: #007bff; /* Azul Dermaco */
    --secondary-color: #28a745; /* Verde Dermaco/Saúde */
    --accent-color: #ffc107; /* Amarelo para destaque */
    --text-color: #f8f9fa; /* Texto claro para fundo escuro */
    --text-dark: #333; /* Texto escuro para fundo claro */
    --light-bg: #f8f9fa; /* Fundo claro */
    --dark-bg: #1a1a1a; /* Fundo escuro (inspirado em Saul Chaplin) */
    --shadow-dark: 0 10px 30px rgba(0, 0, 0, 0.5);
    --shadow-light: 0 4px 12px rgba(0, 0, 0, 0.08);
}

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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--light-bg);
    overflow-x: hidden;
}

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

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--secondary-color);
}

/* Header and Navigation */
.header {
    background-color: var(--dark-bg); /* Fundo escuro */
    box-shadow: var(--shadow-dark);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--primary-color);
    letter-spacing: 1px;
}

.logo-subtitle {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-color);
    margin-left: 5px;
    opacity: 0.7;
}

.nav ul {
    list-style: none;
    display: flex;
}

.nav ul li {
    margin-left: 30px;
}

.nav ul li a {
    font-weight: 600;
    color: var(--text-color); /* Texto claro no header escuro */
    padding: 5px 0;
    position: relative;
    transition: color 0.3s;
}

.nav ul li a:hover {
    color: var(--secondary-color);
}

.nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--secondary-color);
    transition: width 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.275);
}

.nav ul li a:hover::after {
    width: 100%;
}

/* Floating WhatsApp Button */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    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: 0 4px 15px rgba(0, 0, 0, 0.25);
    z-index: 1000;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    animation: pulse-whatsapp 2s infinite;
}

.floating-whatsapp:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

@keyframes pulse-whatsapp {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Hero Section - Estilo Saul Chaplin (Dark Mode) */
.hero {
    background-color: var(--dark-bg);
    padding: 150px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    color: var(--text-color);
}

.hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 10;
}

.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 4.5rem;
    font-weight: 900;
    color: var(--text-color);
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
    /* Animação de entrada (será controlada por JS) */
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.hero-subtitle {
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--text-color);
    max-width: 900px;
    margin-bottom: 50px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-out 0.3s, transform 1s ease-out 0.3s;
}

.cta-button {
    background-color: var(--secondary-color);
    color: white;
    padding: 18px 40px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.2rem;
    transition: background-color 0.3s, transform 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 20px rgba(40, 167, 69, 0.4);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-out 0.6s, transform 1s ease-out 0.6s;
}

.cta-button:hover {
    background-color: #1e7e34;
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(40, 167, 69, 0.6);
}

/* Floating Elements in Hero Section - Inspirado em Saul Chaplin */
.floating-elements-wrapper {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    perspective: 1000px;
}

.floating-element {
    position: absolute;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    background-color: rgba(40, 167, 69, 0.1);
    transition: transform 0.5s ease-out;
    opacity: 0.8;
    will-change: transform;
}

.element-1 {
    top: 20%;
    left: 10%;
    animation: float 15s infinite alternate;
}

.element-2 {
    top: 50%;
    right: 15%;
    animation: float-reverse 12s infinite alternate;
    border-color: var(--primary-color);
    color: var(--primary-color);
    background-color: rgba(0, 123, 255, 0.1);
}

.element-3 {
    bottom: 15%;
    left: 25%;
    animation: float 18s infinite alternate;
}

@keyframes float {
    0% { transform: translate3d(0, 0, 0) rotate(0deg); }
    100% { transform: translate3d(20px, 30px, 50px) rotate(5deg); }
}

@keyframes float-reverse {
    0% { transform: translate3d(0, 0, 0) rotate(0deg); }
    100% { transform: translate3d(-30px, -20px, 30px) rotate(-5deg); }
}

/* Sections General Style */
.section {
    padding: 100px 0;
}

.section:nth-child(even) {
    background-color: var(--light-bg);
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.section-subtitle {
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 60px;
    color: #6c757d;
}

/* Sobre Section - Quadros Informativos com Contraste */
.sobre-text {
    font-size: 1.1rem;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 60px;
}

.sobre-info-cards {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.sobre-info-cards .card {
    background-color: var(--primary-color);
    color: white;
    padding: 35px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 123, 255, 0.3);
    text-align: center;
    flex: 1;
    min-width: 300px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 3px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

.sobre-info-cards .card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 100% 100%, transparent 20%, rgba(255, 255, 255, 0.1) 80%);
    opacity: 0;
    transition: opacity 0.5s;
}

.sobre-info-cards .card:hover::before {
    opacity: 1;
}

.sobre-info-cards .card:nth-child(2) {
    background-color: var(--secondary-color);
    box-shadow: 0 10px 30px rgba(40, 167, 69, 0.3);
    border-color: var(--secondary-color);
}

.sobre-info-cards .card:nth-child(3) {
    background-color: var(--accent-color);
    color: var(--text-dark);
    box-shadow: 0 10px 30px rgba(255, 193, 7, 0.3);
    border-color: var(--accent-color);
}

.sobre-info-cards .card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.sobre-info-cards .card i {
    font-size: 3.5rem;
    margin-bottom: 15px;
    color: white;
    animation: pulse-glow-icon 2s infinite;
}

.sobre-info-cards .card:nth-child(3) i {
    color: var(--primary-color);
}

.sobre-info-cards .card h4 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 10px;
}

/* Serviços Section - Grid com Borda Animada */
.servicos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.servico-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow-light);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #eee;
    position: relative;
    overflow: hidden;
}

.servico-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    transform: translateX(-100%);
    transition: transform 0.5s ease-out;
}

.servico-card:hover::before {
    transform: translateX(0);
}

.servico-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.servico-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.servico-card h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
}

/* Linha Capilar Section */
.capilar {
    background-color: var(--dark-bg);
    color: var(--text-color);
}

.capilar .section-title,
.capilar .section-subtitle {
    color: var(--text-color);
}

.capilar-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 40px;
}

.product-card {
    background-color: #2a2a2a;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    border-top: 5px solid var(--secondary-color);
    transition: all 0.5s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.7);
}

.product-anticaspa {
    border-top: 5px solid var(--primary-color);
}

.product-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.product-header i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-right: 15px;
}

.product-anticaspa .product-header i {
    color: var(--primary-color);
}

.product-header h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
}

.product-description {
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.product-benefits {
    list-style: none;
    margin-bottom: 30px;
}

.product-benefits li {
    margin-bottom: 10px;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.product-benefits li i {
    color: var(--secondary-color);
    margin-right: 10px;
    font-size: 1rem;
}

.product-anticaspa .product-benefits li i {
    color: var(--primary-color);
}

.btn-product {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 50px;
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
    transition: background-color 0.3s, transform 0.3s;
}

.btn-product:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

.product-anticaspa .btn-product {
    background-color: var(--secondary-color);
}

.product-anticaspa .btn-product:hover {
    background-color: #1e7e34;
}

/* Linking Building Section */
.linking-building {
    text-align: center;
    margin-top: 60px;
    padding: 30px;
    background-color: #2a2a2a;
    border-radius: 10px;
}

.linking-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-color);
}

.linking-list {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.linking-list li a {
    font-weight: 500;
    color: var(--text-color);
    background-color: #3a3a3a;
    padding: 8px 15px;
    border-radius: 5px;
    border: 1px solid #555;
    transition: background-color 0.3s, border-color 0.3s;
}

.linking-list li a:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Contato Section */
.contato {
    text-align: center;
}

.contato-info p {
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.contato-info i {
    color: var(--primary-color);
    margin-right: 10px;
}

.solicite-atendimento {
    font-style: italic;
    color: #6c757d;
    margin-top: 30px;
}

.contato-buttons {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-whatsapp, .btn-maps {
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-whatsapp {
    background-color: #25d366;
    color: white;
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp:hover {
    background-color: #128c7e;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.6);
}

.btn-maps {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 6px 15px rgba(0, 123, 255, 0.4);
}

.btn-maps:hover {
    background-color: #0056b3;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 123, 255, 0.6);
}

/* Footer */
.footer {
    background-color: var(--dark-bg);
    color: white;
    padding: 25px 0;
    text-align: center;
    font-size: 0.9rem;
    border-top: 1px solid #3a3a3a;
}

.footer a {
    color: var(--accent-color);
    font-weight: 600;
}

/* Responsividade */
@media (max-width: 992px) {
    .capilar-products-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
    }

    .nav ul {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav ul li {
        margin: 5px 15px;
    }

    .hero {
        padding: 100px 0;
    }

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

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

    .sobre-info-cards {
        flex-direction: column;
        align-items: center;
    }

    .sobre-info-cards .card {
        min-width: 100%;
        margin-bottom: 20px;
    }

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

    .floating-whatsapp {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        bottom: 20px;
        right: 20px;
    }

    .linking-list {
        flex-direction: column;
        gap: 10px;
    }

    .floating-element {
        display: none; /* Esconder elementos flutuantes menores em mobile */
    }
}

/* Classes para Animação (Controladas por JS) */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Animações Avançadas */
@keyframes pulse-glow-icon {
    0% {
        text-shadow: 0 0 0 rgba(255, 255, 255, 0.7);
    }
    50% {
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.9);
    }
    100% {
        text-shadow: 0 0 0 rgba(255, 255, 255, 0.7);
    }
}

.sobre-info-cards .card i {
    animation: pulse-glow-icon 2s infinite;
}

/* Animação de Texto - Efeito de Digitação (Apenas no Título) */
@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

.hero-title.animated {
    /* Remove a animação de digitação para um efeito de fade-in mais limpo */
    /* Para reativar o efeito de digitação, descomente as linhas abaixo e ajuste o JS */
    /* overflow: hidden;
    white-space: nowrap;
    border-right: 3px solid var(--primary-color);
    animation: typing 2s steps(40, end) forwards, blink-caret 0.75s step-end infinite;
    border-right: none; */
    opacity: 1;
    transform: translateY(0);
}

@keyframes blink-caret {
    from, to {
        border-color: transparent;
    }
    50% {
        border-color: var(--primary-color);
    }
}
