/* Reset e configurações básicas */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

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

/* Variáveis CSS */
:root {
    --primary-green: #007F00;
    --primary-yellow: #FFD700;
    --primary-blue: #0039A6;
    --secondary-green: #228B22;
    --light-green: #90EE90;
    --dark-green: #006400;
    --text-dark: #2c3e50;
    --text-light: #ffffff;
    --bg-light: #f8f9fa;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.15);
    --border-radius: 15px;
    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 127, 0, 0.1);
    z-index: 1000;
    transition: var(--transition);
    /* allow mobile dropdown to overflow below header */
    overflow: visible;
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

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

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: var(--transition);
    box-shadow: 0 0 20px rgba(0, 127, 0, 0.3);
    animation: logoPulse 3s ease-in-out infinite;
}

.logo-img:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(0, 127, 0, 0.5);
}

.brand-name {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-green);
    letter-spacing: 1px;
}

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

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-green);
    transition: var(--transition);
}

.nav-menu a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 6px;
    margin-left: 8px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-green);
    transition: var(--transition);
}

/* Hamburger active state (X animation) */
.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #007F00 0%, #228B22 50%, #90EE90 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background-image: url('images/LOgoRaizBrasilSemFundo.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.12;
    z-index: 1;
    filter: blur(1px) drop-shadow(0 0 50px rgba(0, 0, 0, 0.3));
    animation: logoFloat 8s ease-in-out infinite, logoGlow 4s ease-in-out infinite alternate;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1920 1080"><defs><pattern id="farm" x="0" y="0" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="30" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100%" height="100%" fill="url(%23farm)"/></svg>');
    opacity: 0.3;
    animation: float 20s ease-in-out infinite;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 127, 0, 0.2);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.hero-text {
    color: var(--text-light);
    animation: slideInLeft 1s ease-out;
}

.hero-title {
    font-family: 'Oswald', sans-serif;
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.flag-icon {
    font-size: 3rem;
    animation: wave 2s ease-in-out infinite;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-yellow);
    font-weight: 300;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

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

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--primary-yellow);
    color: var(--text-dark);
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    background: #FFE55C;
}

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

.btn-secondary:hover {
    background: var(--text-light);
    color: var(--primary-green);
    transform: translateY(-3px);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: slideInRight 1s ease-out;
}

/* Hero Carousel Styles */
.hero-carousel-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 400px;
    perspective: 1000px;
}

.hero-carousel {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(100%) rotateY(45deg) scale(0.8);
    transition: all 0.8s cubic-bezier(0.4, 0.0, 0.2, 1);
    backface-visibility: hidden;
}

.hero-slide.active {
    opacity: 1;
    transform: translateX(0) rotateY(0deg) scale(1);
    z-index: 2;
}

.hero-slide.prev {
    opacity: 0; /* escondida */
    transform: translateX(-60%) rotateY(-25deg) scale(0.75); /* afastada e menor */
    z-index: 0;
    pointer-events: none;
}

.hero-slide.next {
    opacity: 0.3;
    transform: translateX(100%) rotateY(45deg) scale(0.8);
    z-index: 1;
}

.product-showcase {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(25px);
    border-radius: 20px;
    padding: 2.5rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.2),
        0 0 80px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transition: all 0.6s ease;
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.hero-slide.active .product-card::before {
    animation: shimmer 2s ease-in-out;
}

.floating {
    animation: heroFloat 4s ease-in-out infinite;
}

.product-card img {
    width: 280px;
    height: auto;
    border-radius: 15px;
    transition: all 0.4s ease;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.hero-slide.active .product-card img {
    transform: scale(1.05);
}

.slide-info {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: white;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 150px;
}

.slide-title {
    display: block;
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.slide-subtitle {
    display: block;
    font-size: 0.9rem;
    opacity: 0.8;
    color: var(--primary-yellow);
}

/* Hero Carousel Controls */
.hero-carousel-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 10;
}

.hero-carousel-btn {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: all;
    position: relative;
    overflow: hidden;
}

.hero-carousel-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-green), var(--primary-yellow));
    opacity: 0;
    transition: all 0.3s ease;
    z-index: -1;
}

.hero-carousel-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.hero-carousel-btn:hover::before {
    opacity: 0.8;
}

.hero-carousel-btn:active {
    transform: scale(0.95);
}

/* Hero Carousel Indicators */
.hero-carousel-indicators {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.indicator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--primary-yellow), var(--primary-green));
    opacity: 0;
    transition: all 0.3s ease;
    z-index: -1;
}

.indicator.active {
    background: white;
    transform: scale(1.3);
}

.indicator.active::before {
    opacity: 0.3;
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

/* Animations */
@keyframes heroFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-10px) rotate(1deg); }
    50% { transform: translateY(-5px) rotate(0deg); }
    75% { transform: translateY(-15px) rotate(-1deg); }
}

@keyframes shimmer {
    0% { opacity: 0; transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    50% { opacity: 1; }
    100% { opacity: 0; transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-light);
    font-size: 1.5rem;
    animation: bounce 2s infinite;
    cursor: pointer;
}

/* Oculta a seta de scroll no mobile para evitar conflito visual */
@media (max-width: 768px) {
    .scroll-indicator {
        display: none !important;
    }
}

/* Features Section */
.features {
    padding: 5rem 0;
    background: var(--bg-light);
}

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

.feature-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-green), var(--primary-yellow));
}

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

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
    animation: pulse 2s infinite;
}

.feature-card h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* About Section */
.about {
    padding: 4rem 0; /* reduzido de 5rem */
    background: white;
    position: relative;
    overflow: hidden;
}

.about::after {
    content: '';
    position: absolute;
    bottom: 10%;
    left: -50px;
    width: 300px;
    height: 300px;
    background-image: url('images/LOgoRaizBrasilSemFundo.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.05;
    z-index: 1;
    filter: blur(1px);
    transform: rotate(-10deg);
    animation: logoFloat 10s ease-in-out infinite;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem; /* reduzido de 4rem */
    align-items: center;
    position: relative;
    z-index: 2;
}

.about-text h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 2.5rem;
    color: var(--primary-green);
    margin-bottom: 2rem;
}

.about-text .lead {
    font-size: 1.05rem; /* reduzido */
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 1.2rem; /* menos espaço */
    line-height: 1.65; /* ligeiro ajuste */
}

.about-text p {
    margin-bottom: 1.1rem; /* reduzido */
    color: #666;
    line-height: 1.65; /* mais compacto */
    font-size: 0.97rem; /* leve redução */
}

.slogan {
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    margin-top: 2rem;
    position: relative;
    overflow: hidden;
}

.slogan::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: shimmer 3s ease-in-out infinite;
}

.slogan blockquote {
    font-size: 1.3rem;
    font-style: italic;
    text-align: center;
    font-weight: 300;
    position: relative;
    z-index: 1;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* About section real image styles */
.about-photo-wrapper {
    width: 100%;
    max-width: 520px; /* reduzido novamente (antes 580px) */
    border-radius: calc(var(--border-radius) * 1.2);
    box-shadow: 0 8px 28px -6px rgba(0,0,0,0.35), 0 4px 12px -2px rgba(0,0,0,0.25);
    overflow: hidden;
    position: relative;
    background: radial-gradient(circle at 30% 35%, rgba(255,255,255,0.10), transparent 70%),
                linear-gradient(140deg, var(--light-green) 0%, var(--primary-green) 55%, var(--dark-green) 100%);
    isolation: isolate;
}

.about-photo-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top right, rgba(0,0,0,0.25), transparent 60%);
    pointer-events: none;
    mix-blend-mode: multiply;
}

.about-photo {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: auto;
    transition: transform 0.9s ease, filter 0.9s ease;
    filter: saturate(1.05) contrast(1.05) brightness(1.02);
}

.about-photo-wrapper:hover .about-photo {
    transform: scale(1.04);
    filter: saturate(1.1) contrast(1.1);
}

/* Products Section */
.products {
    padding: 5rem 0;
    background: var(--bg-light);
    position: relative;
    overflow: hidden;
}

.products::before {
    content: '';
    position: absolute;
    top: 20%;
    right: -100px;
    width: 400px;
    height: 400px;
    background-image: url('images/LOgoRaizBrasilSemFundo.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.06;
    z-index: 1;
    filter: blur(2px);
    transform: rotate(15deg);
    animation: logoFloat 12s ease-in-out infinite reverse;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 2;
}

.section-header h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 2.5rem;
    color: var(--primary-green);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.2rem;
    color: #666;
}

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

.product-item {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

.product-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

/* Product Carousel */
.product-carousel {
    position: relative;
    height: 350px;
    overflow: hidden;
    border-radius: var(--border-radius);
    background: #f8f9fa;
}

/* Hint de clique nas imagens do produto */
.click-hint {
    position: absolute;
    left: 50%;
    bottom: 62px; /* fica logo acima dos controles */
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: .2px;
    box-shadow: 0 6px 16px rgba(0,0,0,.2);
    pointer-events: none; /* não bloqueia cliques no carrossel */
    opacity: 0;
    transform-origin: center;
    transition: opacity .25s ease, transform .25s ease;
}
.click-hint i { color: var(--primary-yellow); }

/* Mostrar a dica ao passar o mouse ou focar */
.product-item:hover .click-hint,
.product-carousel:focus-within .click-hint {
    opacity: 1;
    transform: translateX(-50%) translateY(-2px);
}

/* Em telas touch, mantenha a dica visível de leve */
@media (hover: none) and (pointer: coarse) {
    .click-hint {
        opacity: .9;
        bottom: 70px;
    }
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-slide.active {
    opacity: 1;
    transform: translateX(0);
}

.carousel-slide.prev {
    transform: translateX(-100%);
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #f8f9fa; /* fallback discreto enquanto carrega */
    transition: var(--transition);
}

.slide-label {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 127, 0, 0.9);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.carousel-controls {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    padding: 8px 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.carousel-btn {
    width: 30px;
    height: 30px;
    border: none;
    background: var(--primary-green);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.8rem;
}

.carousel-btn:hover {
    background: var(--secondary-green);
    transform: scale(1.1);
}

.carousel-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.carousel-indicators {
    display: flex;
    gap: 8px;
    align-items: center;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0, 127, 0, 0.3);
    cursor: pointer;
    transition: var(--transition);
}

.indicator.active {
    background: var(--primary-green);
    transform: scale(1.3);
}

.indicator:hover {
    background: var(--secondary-green);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 127, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    backdrop-filter: blur(5px);
}

.product-item:hover .product-overlay {
    opacity: 1;
}

.product-item:hover .carousel-slide img {
    transform: scale(1.05);
}

/* Indicar que é clicável */
.product-carousel { cursor: zoom-in; }

.btn-view {
    background: var(--primary-yellow);
    color: var(--text-dark);
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-view:hover {
    transform: scale(1.05);
    background: #FFE55C;
}

.product-info {
    padding: 2rem;
}

.product-info h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.product-info p {
    color: #666;
    margin-bottom: 1rem;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 1rem;
}

.product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.product-features span {
    background: var(--bg-light);
    color: var(--text-dark);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* Contact Section */
.contact {
    padding: 5rem 0;
    background: var(--primary-green);
    color: var(--text-light);
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    background-image: url('images/LOgoRaizBrasilSemFundo.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.10;
    z-index: 1;
    filter: blur(2px) brightness(1.5);
    animation: logoFloat 15s ease-in-out infinite, logoGlow 6s ease-in-out infinite alternate;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    position: relative;
    z-index: 2;
}

.contact-info h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-info p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.contact-items {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(10px);
}

.contact-item i {
    font-size: 1.2rem;
    color: var(--primary-yellow);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 1.5rem;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-yellow);
    color: var(--text-dark);
    transform: translateY(-3px);
}

.contact-form {
    background: rgba(255, 255, 255, 0.1);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    backdrop-filter: blur(20px);
}

.contact-showcase {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    text-align: center;
    position: relative;
    z-index: 2;
    padding-top: 1rem;
}

.contact-core {
    max-width: 900px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-title {
    font-family: 'Oswald', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--primary-yellow);
    text-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.contact-subtitle {
    font-size: 1.1rem;
    font-weight: 400;
    opacity: 0.9;
    color: #fff;
}

.purchase-highlight {
    background: rgba(255, 255, 255, 0.12);
    padding: 1.8rem 2rem;
    border-radius: 25px;
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
}

.purchase-highlight::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: shimmer 4s linear infinite;
}

.purchase-highlight h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.4rem;
    margin-bottom: 0.6rem;
    color: #fff;
    letter-spacing: 1px;
}

.purchase-note {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.85);
}

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    justify-content: center;
}

.contact-btn {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.95rem 1.6rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.contact-btn i { font-size: 1.2rem; }

.btn-instagram {
    background: linear-gradient(45deg,#f9ce34,#ee2a7b,#6228d7);
    color: #fff;
}
.btn-instagram:hover { filter: brightness(1.15); transform: translateY(-4px); }

.btn-whatsapp {
    background: linear-gradient(45deg,#25D366,#128C7E);
    color: #fff;
}
.btn-whatsapp:hover { filter: brightness(1.1); transform: translateY(-4px); }

.quick-facts {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
}

.fact {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    padding: 0.6rem 1rem;
    border-radius: 30px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #fff;
}

.fact i { color: var(--primary-yellow); }

.contact-extra {
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    color: rgba(255,255,255,0.8);
}

.contact-extra i { color: var(--primary-yellow); margin-right: 6px; }

@media (max-width: 768px) {
    .contact-title { font-size: 1.8rem; }
    .purchase-highlight h3 { font-size: 1.2rem; }
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-yellow);
    background: rgba(255, 255, 255, 0.2);
}

/* Footer */
.footer {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0, 127, 0, 0.1);
    color: var(--text-dark);
    padding: 2rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 2;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Oswald', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    text-shadow: none;
    color: var(--text-dark);
}

.footer-logo {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    transition: var(--transition);
    filter: brightness(1.0) drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
    box-shadow: 0 0 15px rgba(0, 127, 0, 0.2);
}

.footer-logo:hover {
    transform: scale(1.2) rotate(360deg);
    filter: brightness(1.1) drop-shadow(0 0 15px rgba(0, 127, 0, 0.5));
    box-shadow: 0 0 25px rgba(0, 127, 0, 0.4);
}

.footer-text p {
    opacity: 0.8;
    margin: 0.5rem 0;
    text-shadow: none;
    color: #666;
    font-weight: 400;
}

.footer-credit {
    font-size: 0.85rem;
    color: #7a7a7a;
    opacity: 0.7;
}

/* Animações */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes wave {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-10deg);
    }
    75% {
        transform: rotate(10deg);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes shimmer {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes logoFloat {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
    }
    33% {
        transform: translate(-50%, -48%) scale(1.05) rotate(1deg);
    }
    66% {
        transform: translate(-50%, -52%) scale(0.95) rotate(-1deg);
    }
}

@keyframes logoGlow {
    0% {
        filter: blur(1px) drop-shadow(0 0 30px rgba(0, 127, 0, 0.3));
    }
    100% {
        filter: blur(1px) drop-shadow(0 0 80px rgba(0, 127, 0, 0.6));
    }
}

@keyframes logoPulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 127, 0, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(0, 127, 0, 0.6), 0 0 60px rgba(255, 215, 0, 0.3);
    }
}

/* Responsividade (recriada) */
/* Mantemos os estilos desktop como padrão e apenas ajustamos telas menores */

/* Tablets grandes e laptops menores */
@media (max-width: 1024px) {
    .hero-content { gap: 3rem; }
    .hero-carousel-container { max-width: 460px; height: 380px; }
    .product-card img { width: 260px; }
}

/* Tablets e telas até ~900px */
@media (max-width: 900px) {
    /* Navegação mobile */
    .hamburger { display: flex; }
    .nav-menu {
        display: none;
        position: absolute;
        top: calc(100% + 16px); /* abre ainda mais para baixo */
        right: 0;
        left: 0;
        background: rgba(255,255,255,0.98);
        backdrop-filter: blur(12px);
        border-bottom: 1px solid rgba(0, 127, 0, 0.1);
        flex-direction: column;
        gap: 0.4rem;
        padding: 0.6rem 1.2rem 0.9rem;
        box-shadow: 0 12px 24px rgba(0,0,0,0.08);
        z-index: 1001;
        /* slide down effect */
        transform-origin: top center;
        transform: scaleY(0.95);
        opacity: 0;
        pointer-events: none;
        transition: opacity .22s ease, transform .22s ease;
    }
    .nav-menu.active {
        display: flex;
        opacity: 1;
        transform: scaleY(1);
        pointer-events: auto;
    }
    .nav-menu a { padding: 0.55rem 0; }

    /* Destaque leve: apenas cor diferente para Produtos no mobile */
    .nav-menu .featured-link { color: var(--primary-green); }


/* Better anchor offset for fixed header */
section[id] { scroll-margin-top: 88px; }
    /* Hero em coluna única */
    .hero { min-height: 100svh; padding-top: 84px; }
    .hero-content { grid-template-columns: 1fr; text-align: center; gap: 2rem; }
    .hero-title { justify-content: center; font-size: 2.8rem; }
    .hero-buttons { justify-content: center; }
    .hero-image { order: 2; }
    .hero-text { order: 1; }
    .hero-carousel-container { max-width: 420px; height: 340px; }
    .hero-carousel-indicators { bottom: -56px; }

    /* Seções em coluna única quando aplicável */
    .about-content { grid-template-columns: 1fr; gap: 2rem; }
    .contact-content { grid-template-columns: 1fr; gap: 2rem; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .products-grid { grid-template-columns: repeat(2, 1fr); }

    /* Modal de produto em coluna única */
    .product-modal-dialog { grid-template-columns: 1fr; width: min(100% - 16px, 760px); }
    .pm-image { max-height: 56vh; }
}

/* Phones grandes e tablets pequenos */
@media (max-width: 768px) {
    .features-grid { grid-template-columns: 1fr; }
    .products-grid { grid-template-columns: 1fr; }
    .product-carousel { height: 300px; }
    .carousel-controls { bottom: 10px; padding: 6px 12px; }
    .carousel-btn { width: 28px; height: 28px; font-size: 0.8rem; }
    .slide-label { top: 10px; right: 10px; padding: 4px 8px; font-size: 0.75rem; }
    .contact-title { font-size: 1.9rem; }
    .btn { width: 100%; max-width: 280px; }
}

/* Phones médios (Pixel, iPhone Plus) */
@media (max-width: 600px) {
    .container { padding: 0 16px; }
    .hero-title { font-size: 2.2rem; }
    .hero-subtitle { font-size: 1.15rem; }
    .hero-description { font-size: 1.02rem; }
    .hero-carousel-container { max-width: 360px; height: 300px; }
    .product-card { padding: 1.6rem; }
    .product-card img { width: 220px; }
    .slide-info { padding: 0.6rem 1rem; font-size: 0.95rem; bottom: -8px; }
    .hero-carousel-btn { width: 48px; height: 48px; font-size: 1.2rem; }
    .contact-core { gap: 1.4rem; }
}

/* Phones pequenos (iPhone SE, 360-414px) */
@media (max-width: 480px) {
    .container { padding: 0 12px; }
    .hero { padding-top: 78px; }
    .hero-text { margin-top: 6px; }
    .hero-title { font-size: 1.9rem; line-height: 1.2; margin-bottom: 0.6rem; }
    .hero-subtitle { font-size: 1rem; margin-bottom: 0.6rem; }
    .hero-description { font-size: 0.96rem; margin-bottom: 1.1rem; }
    .hero-carousel-container { max-width: 320px; height: 270px; }
    .hero-carousel-indicators { bottom: -48px; }
    .feature-card, .contact-form { padding: 1.3rem; }
    .product-info { padding: 1.4rem; }
    .product-price { font-size: 1.35rem; }
    .pm-title { font-size: 1.35rem; }
    .pm-price { font-size: 1.1rem; }
}

/* Scroll suave para navegação */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Estados de hover e focus aprimorados */
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid var(--primary-yellow);
    outline-offset: 2px;
}

/* Carregamento suave */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Product Modal (lightbox) */
.product-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.product-modal.open { display: flex; }

.product-modal .product-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(6px);
    animation: pmFadeIn 180ms ease-out;
}

.product-modal-dialog {
    position: relative;
    width: min(100% - 24px, 1000px);
    max-height: min(92vh, 820px);
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.35);
    overflow: auto; /* permite rolar o conteúdo dentro do modal */
    -webkit-overflow-scrolling: touch; /* rolagem suave no iOS */
    display: grid;
    grid-template-columns: 1.35fr 0.65fr;
    gap: 0;
    animation: pmSlideIn 220ms cubic-bezier(.2,.8,.2,1);
}

/* Travar rolagem do plano de fundo quando o modal estiver aberto */
html.modal-open, body.modal-open { overflow: hidden; }
body.modal-open { touch-action: none; overscroll-behavior: contain; }
/* Evita propagação de rolagem para a página por trás */
.product-modal { overscroll-behavior: contain; }

.pm-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(6px);
    display: grid;
    place-items: center;
    color: #222;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
    z-index: 30; /* garante que fique acima da imagem e setas */
}

.pm-body { display: contents; }

.pm-media {
    position: relative;
    background: linear-gradient(135deg, #f7f9f7 0%, #eef7ee 100%);
    display: grid;
    place-items: center;
    padding: 10px;
    overflow: hidden; /* evita que conteúdo ultrapasse em telas pequenas */
}

.pm-image {
    max-width: 100%;
    max-height: 76vh;
    width: auto;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    image-rendering: auto;
    transition: transform .2s ease;
}
.pm-media:hover .pm-image { transform: scale(1.02); }

.pm-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.9);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    color: #111;
    cursor: pointer;
    z-index: 20; /* assegura que nunca fiquem atrás da imagem */
    pointer-events: auto; /* garante clicável sempre */
}
.pm-prev { left: 14px; }
.pm-next { right: 14px; }

.pm-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.pm-dots button {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    border: none;
    background: rgba(0,0,0,0.25);
    padding: 0;
    cursor: pointer;
}
.pm-dots button[aria-selected="true"] {
    width: 20px;
    background: var(--primary-green);
}

/* Botão de fechar com respeito à safe-area (iOS notch) */
@supports (padding: max(0px)) {
    .pm-close {
        top: max(10px, env(safe-area-inset-top));
        right: max(10px, env(safe-area-inset-right));
    }
}

/* Garante empilhamento do modal no mobile mesmo com regras posteriores */
@media (max-width: 900px) {
    .product-modal-dialog {
        grid-template-columns: 1fr !important; /* força imagem em cima e info em baixo */
        width: min(100% - 16px, 760px);
    }
    .pm-image { max-height: 56vh; }
    /* Em mobile, permita rolar as informações separadamente, mantendo a imagem visível */
    .pm-media { overflow: hidden; }
    .pm-info { max-height: 40vh; overflow: auto; -webkit-overflow-scrolling: touch; }
}

/* Melhora tocabilidade das setas em telas muito pequenas */
@media (max-width: 480px) {
    .pm-nav { width: 48px; height: 48px; }
}

.pm-info {
    position: relative;
    padding: 22px 22px 24px 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #ffffff;
}
.pm-info::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(1200px 400px at 120% -10%, rgba(0,127,0,0.08), transparent 50%),
                radial-gradient(800px 300px at -20% 110%, rgba(255,215,0,0.08), transparent 55%);
    pointer-events: none;
}
.pm-info::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 6px;
    width: 100%;
    background: linear-gradient(90deg, var(--primary-green), var(--primary-yellow));
}
.pm-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.6rem;
    color: var(--primary-green);
    letter-spacing: .3px;
}
.pm-title + .pm-price { margin-top: -4px; }
.pm-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-green);
}
.pm-desc { color: #3f4a3f; line-height: 1.6; }

.pm-features { display: flex; flex-wrap: wrap; gap: 8px; }
.pm-features .tag {
    background: var(--bg-light);
    color: var(--text-dark);
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.pm-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.pm-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 14px; border-radius: 999px; text-decoration: none; font-weight: 700;
    transition: transform .18s ease, filter .18s ease; color: #fff;
}
.pm-btn:hover { transform: translateY(-2px); filter: brightness(1.05); }
.pm-instagram { background: linear-gradient(45deg,#f9ce34,#ee2a7b,#6228d7); }
.pm-whatsapp { background: linear-gradient(45deg,#25D366,#128C7E); }

/* (Movido para a nova seção de responsividade) */

/* Animations */
@keyframes pmFadeIn { from { opacity: 0 } to { opacity: 1 } }
@keyframes pmSlideIn { from { transform: translateY(10px); opacity: .96 } to { transform: translateY(0); opacity: 1 } }
