/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --pink-light: #FFF0F5;
    --pink: #FFB6C1;
    --pink-dark: #FF69B4;
    --blue-light: #E8F4FD;
    --blue: #87CEEB;
    --blue-dark: #5B9BD5;
    --green-light: #F0FFF0;
    --green: #90EE90;
    --green-dark: #228B22;
    --yellow-light: #FFFAF0;
    --yellow: #FFD700;
    --purple-light: #E6E6FA;
    --purple: #DDA0DD;
    --text-dark: #333;
    --text-light: #666;
    --white: #FFF;
    --shadow: 0 4px 20px rgba(0,0,0,0.1);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.15);
}

body {
    font-family: 'Quicksand', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-family: 'Nunito', sans-serif;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 16px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--pink) 0%, var(--pink-dark) 100%);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(255,105,180,0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,105,180,0.4);
}

.btn-secondary {
    background: var(--white);
    color: var(--pink-dark);
    border: 2px solid var(--pink);
}

.btn-secondary:hover {
    background: var(--pink-light);
}

.btn-full {
    width: 100%;
}

/* Header */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 24px;
    color: var(--pink-dark);
}

.logo-icon {
    width: 45px;
    height: 45px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-menu {
    display: flex;
    gap: 25px;
}

.nav-menu a {
    font-weight: 600;
    color: var(--text-dark);
    transition: color 0.3s;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--pink-dark);
    transition: width 0.3s;
}

.nav-menu a:hover {
    color: var(--pink-dark);
}

.nav-menu a::after:hover {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--pink-dark);
    border-radius: 2px;
    transition: all 0.3s;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--pink-light) 0%, var(--white) 50%, var(--blue-light) 100%);
    padding: 80px 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    font-size: 48px;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-svg {
    width: 100%;
    max-width: 400px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Section Titles */
.section-title {
    font-size: 36px;
    text-align: center;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 18px;
    margin-bottom: 50px;
}

/* Services */
.services {
    padding: 80px 0;
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.service-card {
    background: var(--white);
    border-radius: 20px;
    padding: 35px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--pink);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
}

.service-card h3 {
    font-size: 22px;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* Products */
.products {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--pink-light) 0%, var(--purple-light) 100%);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 50px;
}

.product-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.product-image {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--pink-light);
}

.product-image svg {
    width: 100px;
    height: 100px;
}

/* Com foto enviada, ela cobre o topo do card inteiro. */
.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Sem foto, o topo cresce para a foto poder cobrir o card todo. */
/* Card com foto: a imagem e o fundo do card inteiro, nao uma faixa no topo.
   O index.php escreve background-image inline no .product-card.tem-foto.
   O degrade escuro vem antes do texto para o titulo ser legivel sobre
   qualquer foto, clara ou escura. */
.product-card.tem-foto {
    position: relative;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--pink-light);
}

.product-card.tem-foto::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.45) 45%, rgba(0,0,0,0.12) 100%);
}

.product-card.tem-foto h3,
.product-card.tem-foto p,
.product-card.tem-foto .price {
    position: relative;
    z-index: 1;
    color: #fff;
}

.product-card.tem-foto h3 {
    padding: 15px 20px 5px;
}

.product-card.tem-foto p {
    padding: 0 20px 18px;
    color: rgba(255,255,255,0.92);
}

/* Card sem foto continua com o desenho sobre a faixa rosa */
.product-card:not(.tem-foto) {
    display: flex;
    flex-direction: column;
}

.product-card:not(.tem-foto) h3,
.product-card:not(.tem-foto) p {
    flex: 0 0 auto;
}

.product-card h3 {
    padding: 15px 20px 5px;
    font-size: 18px;
}

.product-card p {
    padding: 0 20px 15px;
    color: var(--text-light);
    font-size: 14px;
}

.product-card .price {
    display: block;
    padding: 15px 20px;
    background: var(--pink-light);
    color: var(--pink-dark);
    font-weight: 700;
    text-align: center;
}

/* About */
.about {
    padding: 80px 0;
    background: var(--white);
}

.about .container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

/* O texto ocupa a linha toda: o limite de 820px deixava ~160px vazios na
   direita. As 3 estatisticas vao abaixo, tambem na largura total. */
.about-content {
    max-width: 100%;
}

.about-content h2 {
    font-size: 36px;
    margin-bottom: 25px;
    color: var(--text-dark);
}

.about-text {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.8;
}
/* Os parágrafos do "Sobre" vêm num campo só (sobre_texto_1) e o PHP troca a
   linha em branco por <br><br>. Sem esta regra os dois blocos ficam colados. */
.about-text br + br {
    display: block;
    content: "";
    margin-top: 20px;
}

/* Sobre: as estatisticas saem de dentro da coluna de texto e ocupam a largura
   toda da pagina, igual aos cards de Servicos/Produtos/Depoimentos. Antes o
   .stats vivia dentro de .about-content (metade da linha), entao os 3 cards
   ficavam com 131px contra 306px dos outros blocos. */
.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.stat {
    text-align: center;
    padding: 34px 24px;
    background: var(--pink-light);
    border-radius: 20px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.stat:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: var(--pink);
}

/* numero e rotulo escalam com a largura do card, como o titulo dos outros
   cards (que usam 22px); o numero vaia de 32px a 44px com clamp. */
.stat-number {
    display: block;
    font-size: clamp(32px, 3.2vw, 44px);
    font-weight: 800;
    color: var(--pink-dark);
    font-family: 'Nunito', sans-serif;
    line-height: 1.2;
    margin-bottom: 6px;
}

.stat-label {
    color: var(--text-light);
    font-size: clamp(15px, 1.2vw, 17px);
    line-height: 1.5;
}

.about-svg {
    width: 100%;
    max-width: 400px;
}

/* Testimonials */
.testimonials {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--blue-light) 0%, var(--green-light) 100%);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    background: var(--white);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow);
}

.testimonial-text {
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.8;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--pink-light);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.author-avatar svg {
    width: 100%;
    height: 100%;
}

.testimonial-author strong {
    display: block;
    color: var(--text-dark);
}

.testimonial-author span {
    font-size: 14px;
    color: var(--text-light);
}

/* Contact */
.contact {
    padding: 80px 0;
    background: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-icon {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 100%;
    height: 100%;
}

.contact-item strong {
    display: block;
    color: var(--text-dark);
    margin-bottom: 5px;
    font-size: 18px;
}

.contact-item p {
    color: var(--text-light);
    line-height: 1.6;
}

.contact-form {
    background: var(--pink-light);
    padding: 40px;
    border-radius: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--pink);
    border-radius: 12px;
    font-family: 'Quicksand', sans-serif;
    font-size: 16px;
    transition: border-color 0.3s;
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--pink-dark);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Captcha do formulario de contato: imagem + botao de trocar + campo. A linha
   fica fora do width:100% que .form-group input aplica. */
.captcha-linha {
    display: flex;
    align-items: stretch;
    gap: 8px;
}
.captcha-linha img {
    border: 2px solid var(--pink);
    border-radius: 12px;
    display: block;
    flex: 0 0 auto;
}
.captcha-refresh {
    width: 46px;
    flex: 0 0 46px;
    border: 2px solid var(--pink);
    background: var(--white);
    border-radius: 12px;
    color: var(--pink-dark);
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    transition: background 0.2s;
}
.captcha-refresh:hover { background: var(--white); }
/* o campo precisa ganhar o que .form-group input nao da aqui */
.form-group .captcha-linha input {
    width: auto;
    flex: 1;
    min-width: 0;
}

@media (max-width: 992px) {
    .captcha-linha { flex-wrap: wrap; }
    .captcha-linha input { flex: 1 0 100%; }
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--pink-dark) 0%, var(--pink) 100%);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section .logo {
    color: var(--white);
    margin-bottom: 15px;
}

.footer-section .logo-icon {
    filter: brightness(0) invert(1);
}

.footer-section p {
    opacity: 0.9;
    line-height: 1.8;
}

.footer-section h4 {
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    opacity: 0.9;
    transition: opacity 0.3s;
}

.footer-section ul li a:hover {
    opacity: 1;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
}

.social-links svg {
    width: 100%;
    height: 100%;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.3);
    opacity: 0.9;
}

/* Responsive */
@media (max-width: 992px) {
    .hero .container,
    .about .container,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .services-grid,
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .hero-content h1 {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow);
        gap: 15px;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .header .container {
        position: relative;
    }

    .header .btn {
        display: none;
    }

    .services-grid,
    .testimonials-grid,
    .products-grid {
        grid-template-columns: 1fr;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 28px;
    }

    .section-title {
        font-size: 28px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card,
.product-card,
.testimonial-card {
    animation: fadeInUp 0.6s ease forwards;
}
