:root {
    --primary: #DC4F33;       /* Terracotta/Laranja Quente */
    --primary-dark: #C64127;  
    --secondary: #EBAA38;     /* Amarelo Ouro */
    --secondary-hover: #D79A2D;
    --accent: #FDE8D0;        /* Fundo de destaque/ícones */
    --text-dark: #3E2F26;     /* Marrom Escuro para texto */
    --text-light: #806A58;    /* Marrom Suave para subtítulos */
    --bg-main: #FCF9F3;       /* Creme/Bege Aconchegante de fundo */
    --white: #FFFFFF;
    
    --font-heading: 'Fredoka', sans-serif;
    --font-body: 'Nunito', sans-serif;
    
    --shadow-soft: 0 10px 30px rgba(62, 47, 38, 0.04);
    --shadow-medium: 0 15px 35px rgba(220, 79, 51, 0.15);
    --border-radius: 24px;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-dark);
}

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

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

/* Header */
.header {
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    position: relative;
}

.logo {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo-text { color: var(--secondary); }
.logo-accent { color: var(--primary); }

.logo-img {
    height: 85px; /* Altura reduzida proporcionalmente para o cabeçalho não ficar gigante */
    width: auto;
    display: block;
}

.nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
}

.nav a {
    font-weight: 700;
    color: var(--text-light);
    margin: 0 16px;
    transition: color 0.3s ease;
    white-space: nowrap;
}

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

/* Hamburger Button */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 8px;
    transition: background 0.2s ease;
    z-index: 200;
}

.hamburger:hover {
    background: var(--accent);
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2.5px;
    background-color: var(--text-dark);
    border-radius: 4px;
    transition: all 0.35s cubic-bezier(0.23, 1, 0.32, 1);
    transform-origin: center;
}

/* X animation when open */
.hamburger.open span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.hamburger.open span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 800;
    font-family: var(--font-body);
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--white) !important;
    box-shadow: var(--shadow-medium);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(255, 107, 53, 0.25);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--white) !important;
}

.btn-secondary:hover {
    background: var(--secondary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(42, 183, 202, 0.2);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--secondary);
    color: var(--secondary);
}

.btn-outline:hover {
    background: var(--secondary);
    color: var(--white);
}

.btn-large {
    padding: 16px 40px;
    font-size: 18px;
}

/* Float animation for CTA */
.btn-float {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0px); }
}

.btn:hover.btn-float {
    animation-play-state: paused;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 80px 0 100px;
    overflow: hidden;
}

.hero-container {
    display: flex;
    align-items: center;
    gap: 60px;
    position: relative;
    z-index: 2;
}

.hero-content {
    flex: 1;
}

.badge {
    display: inline-block;
    padding: 8px 16px;
    background: var(--accent);
    color: var(--text-dark);
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 54px;
    line-height: 1.1;
    margin-bottom: 20px;
}

.text-gradient {
    background: linear-gradient(90deg, #FF4980, #FFAE00, #85C34A, #35B9E8, #8540BA, #FF4980);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShine 6s linear infinite;
}

@keyframes gradientShine {
    to { background-position: 200% center; }
}

.hero p {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 50px; 
    max-width: 480px;
}

.hero-image {
    flex: 1;
    max-width: 500px;
}

.image-wrapper {
    border-radius: var(--border-radius);
    overflow: hidden;
    padding: 12px;
    background: rgba(255,255,255,0.4);
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.5);
    transform: rotate(2deg);
    transition: transform 0.5s ease;
}

.image-wrapper:hover {
    transform: rotate(0deg) scale(1.02);
}

.image-wrapper img {
    width: 100%;
    height: auto;
    border-radius: calc(var(--border-radius) - 8px);
    display: block;
}

.blob-bg {
    position: absolute;
    top: -100px;
    right: -100px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(220, 79, 51, 0.1) 0%, rgba(235, 170, 56, 0.05) 100%);
    border-radius: 50%;
    filter: blur(60px);
    z-index: 0;
}

/* Features */
.features {
    padding: 80px 0;
    background: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
}

.feature-card {
    padding: 40px 32px;
    background: var(--bg-main);
    border-radius: var(--border-radius);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 12px;
    font-size: 22px;
}

.feature-card p {
    color: var(--text-light);
}

/* Products */
.products {
    padding: 60px 0; /* Reduzido de 100 para 60 */
}

.section-header {
    text-align: center;
    margin-bottom: 40px; /* Reduzido de 60 para 40 */
}

.section-header h2 {
    font-size: 32px; /* Ligeiramente menor */
    margin-bottom: 12px;
}

.section-header p {
    color: var(--text-light);
    font-size: 18px;
}

.products-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 24px; /* Reduzido espaço entre cards */
    padding-bottom: 30px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Comportamento controlado nativamente pelo touch ou via JS no hover */
}

.products-grid::-webkit-scrollbar {
    display: none; /* Hide scrollbar Chrome/Safari */
}

.product-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    flex: 0 0 300px; /* Reduzido a largura (antes 380px) encolhendo assim todo o card proporcionalmente */
}

.product-img {
    width: 100%;
    aspect-ratio: 3/2; /* Formato paisagem, preserva a foto horizontal perfeitamente */
    overflow: hidden;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Preenche o novo formato até às bordas sem distorcer e preservando o contexto */
    transition: transform 0.5s ease;
}

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

.product-info {
    padding: 32px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-info h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.product-info p {
    color: var(--text-light);
    margin-bottom: 24px;
    flex: 1;
}

.center-cta {
    text-align: center;
}

.center-cta p {
    margin-bottom: 16px;
    color: var(--text-light);
}

/* Final CTA */
.cta-final {
    margin: 20px 24px 40px; 
    padding: 24px 24px; 
    background: linear-gradient(135deg, var(--primary), #FF855A);
    border-radius: 20px; 
    text-align: center;
    color: var(--white);
}

.cta-final h2 {
    color: var(--white);
    font-size: 28px; 
    margin-bottom: 8px;
}

.cta-final p {
    font-size: 16px;
    margin-bottom: 16px; 
    opacity: 0.9;
    max-width: 600px;
    margin-inline: auto;
}

.cta-final .btn-primary {
    margin-top: 10px;
    background: var(--accent);
    color: var(--text-dark) !important;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.cta-final .btn-primary:hover {
    background: #FFED99;
}

/* Footer */
.footer {
    background: var(--white);
    padding: 24px 0 16px; /* Altura drasticamente reduzida */
    border-top: 1px solid rgba(0,0,0,0.05);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px; /* Margem reduzida */
}

.footer-brand p {
    color: var(--text-light);
    margin-top: 16px;
    max-width: 300px;
}

.footer-links h4 {
    margin-bottom: 16px;
}

.footer-links p {
    color: var(--text-light);
    margin-bottom: 8px;
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(0,0,0,0.05);
    color: var(--text-light);
    font-size: 14px;
}

/* Utilities */
.text-bold { font-weight: 800; }

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

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

.reveal-image {
    opacity: 0;
    transform: scale(0.9) rotate(-3deg);
    transition: all 1s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-image.active {
    opacity: 1;
    transform: scale(1) rotate(0);
}

/* Responsive Styles */
@media (max-width: 900px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    
    .hero h1 {
        font-size: 42px;
    }
    
    .hero p {
        margin: 0 auto 32px;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .feature-card {
        padding: 28px 20px;
    }

    .feature-icon {
        font-size: 36px;
        margin-bottom: 12px;
    }

    .feature-card h3 {
        font-size: 18px;
    }
    
    .products-grid {
        /* Desativa o grid-template-columns legado se houvesse, mas como agora é flex, não precisamos */
    }
}

@media (max-width: 768px) {
    .logo-img {
        height: 80px;
    }

    .hamburger {
        display: flex;
    }

    .nav {
        /* Dropdown abaixo do cabeçalho */
        position: absolute;
        top: 100%;
        left: 50%;
        width: 100vw;
        transform: translateX(-50%);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--white);
        box-shadow: 0 12px 32px rgba(62, 47, 38, 0.12);
        z-index: 150;
        /* Animação de abertura */
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        pointer-events: none;
        transition: max-height 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
                    opacity 0.3s ease;
    }

    .nav.open {
        max-height: 300px;
        opacity: 1;
        pointer-events: all;
    }

    .nav a {
        margin: 0;
        font-size: 17px;
        font-family: var(--font-body);
        font-weight: 700;
        color: var(--text-dark);
        padding: 18px 28px;
        border-bottom: 1px solid rgba(62, 47, 38, 0.07);
        transition: background 0.2s ease, color 0.2s ease;
    }

    .nav a:last-child {
        border-bottom: none;
    }

    .nav a:hover,
    .nav a:active {
        background: var(--accent);
        color: var(--primary);
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .feature-card {
        padding: 20px 14px;
    }

    .feature-icon {
        font-size: 30px;
        margin-bottom: 8px;
    }

    .feature-card h3 {
        font-size: 15px;
        margin-bottom: 6px;
    }

    .feature-card p {
        font-size: 13px;
    }
    
    .hero {
        padding: 40px 0 60px;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .product-card {
        flex: 0 0 85vw; /* Fica do tamanho da tela mas mostra uma pontinha do próximo card */
    }
    
    .btn {
        width: 100%; /* Botões mais fáceis de clicar no celular */
        margin-bottom: 12px;
    }
    
    .cta-final {
        margin: 40px 16px 80px;
        padding: 40px 20px;
        border-radius: 24px;
    }
    
    .cta-final h2 {
        font-size: 28px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 32px;
        text-align: center;
    }
    
    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-brand p {
        margin-top: 8px;
    }
}
