/* ==========================================================================
   Toca da Terra - Design System & Custom Stylesheet
   Identity: Nature, Family Farming, Sustainability, Premium Social Brand
   ========================================================================== */

/* --- 1. Variables & Root Design System --- */
:root {
    /* Color Palette */
    --primary-green: #2E6F40;
    --dark-green: #1E4629;
    --light-green: #E8F5E9;
    --earthy-brown: #8C583A;
    --dark-brown: #5C321E;
    --light-beige: #FAF6F0;
    --clay-beige: #F3EBE1;
    --gold-accent: #C5A059;
    --gold-light: #E0C797;
    --white: #FFFFFF;
    
    /* Text Colors */
    --text-dark: #2C2A29;
    --text-muted: #6C6865;
    --text-white: #FFFFFF;
    
    /* Typography */
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Outfit', sans-serif;
    
    /* Transitions & Shadows */
    --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.25s ease;
    --shadow-premium: 0 15px 35px rgba(92, 50, 30, 0.08);
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.04);
    --shadow-strong: 0 20px 45px rgba(30, 70, 41, 0.18);
    --border-radius-lg: 20px;
    --border-radius-md: 10px;
    
    /* Scroll Behavior */
    scroll-behavior: smooth;
}

/* --- 2. Base Resets --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    background-color: var(--light-beige);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: 1.25;
}

/* --- 3. Layout Utilities --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 100px 0;
}

.bg-light {
    background-color: var(--clay-beige);
}

.bg-dark {
    background-color: var(--dark-green);
    color: var(--text-white);
}

.text-white {
    color: var(--text-white) !important;
}

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

.align-center {
    align-items: center;
}

.grid {
    display: grid;
    gap: 30px;
}

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

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Section Header */
.section-tag {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--primary-green);
    margin-bottom: 12px;
    text-transform: uppercase;
}

.tag-white {
    color: var(--gold-light);
}

.section-title {
    font-size: 42px;
    color: var(--dark-green);
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 17px;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 50px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 30px;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
    outline: none;
    gap: 8px;
}

.btn-primary {
    background-color: var(--primary-green);
    color: var(--white);
    box-shadow: 0 8px 20px rgba(46, 111, 64, 0.2);
}

.btn-primary:hover {
    background-color: var(--dark-green);
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(46, 111, 64, 0.35);
}

.btn-secondary-header {
    background-color: transparent;
    color: var(--primary-green);
    border: 2px solid var(--primary-green);
    padding: 10px 22px;
    font-size: 14px;
}

.btn-secondary-header:hover {
    background-color: var(--primary-green);
    color: var(--white);
}

.btn-whatsapp {
    background-color: #25D366;
    color: var(--white);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.2);
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(37, 211, 102, 0.35);
}

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

.btn-outline:hover {
    background-color: var(--primary-green);
    color: var(--white);
    transform: translateY(-2px);
}

.highlight-gold {
    color: var(--gold-accent);
    position: relative;
    display: inline-block;
}

.highlight-gold::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--gold-accent);
    opacity: 0.35;
    z-index: -1;
}

/* --- 4. Animation Classes --- */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* --- 5. Main Header & Navigation --- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(250, 246, 240, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(140, 88, 58, 0.05);
    transition: var(--transition-smooth);
}

.main-header.scrolled {
    background: rgba(250, 246, 240, 0.98);
    box-shadow: var(--shadow-soft);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition-smooth);
}

.main-header.scrolled .header-container {
    padding: 10px 24px;
}

.logo-img {
    height: 52px;
    width: auto;
    transition: var(--transition-smooth);
}

.main-header.scrolled .logo-img {
    height: 42px;
}

.main-nav ul {
    display: flex;
    gap: 24px;
}

.main-nav a {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
    padding: 6px 0;
}

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

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

.main-nav a:hover::after, .main-nav a.active::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1100;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 2px;
    background-color: var(--dark-green);
    transition: var(--transition-fast);
}

/* --- 6. Hero Section (Parallax & Screen Fill) --- */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 650px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%; /* Extra height for parallax slide */
    background-size: cover;
    background-position: center;
    z-index: -2;
    transform: scale(1.02);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 70, 41, 0.82) 0%, rgba(92, 50, 30, 0.5) 100%);
    z-index: -1;
}

.hero-content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 700px;
    color: var(--white);
    padding: 45px;
    border-radius: var(--border-radius-lg);
    background: rgba(30, 70, 41, 0.22);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow-strong);
}

.hero-badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(212, 175, 55, 0.2);
    border: 1px solid var(--gold-accent);
    color: var(--gold-light);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    border-radius: 20px;
    margin-bottom: 24px;
    text-transform: uppercase;
}

.hero-title {
    font-size: 54px;
    line-height: 1.15;
    margin-bottom: 20px;
    font-weight: 800;
}

.hero-subtitle {
    font-size: 19px;
    line-height: 1.5;
    margin-bottom: 36px;
    color: rgba(255, 255, 255, 0.95);
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--white);
    font-size: 11px;
    opacity: 0.8;
    z-index: 5;
    pointer-events: none;
}

.scroll-text {
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 8px;
    font-weight: 600;
}

.scroll-mouse {
    width: 20px;
    height: 32px;
    border: 2px solid var(--white);
    border-radius: 12px;
    position: relative;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background-color: var(--white);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollAnim 2s infinite;
}

@keyframes scrollAnim {
    0% { opacity: 1; transform: translate(-50%, 0); }
    100% { opacity: 0; transform: translate(-50%, 12px); }
}

/* --- 7. Expandable Container Animations --- */
.expandable-wrapper {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.75s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease-out;
}

.expandable-wrapper.expanded {
    max-height: 1200px;
    opacity: 1;
}

#gallery-expandable-content.expanded {
    max-height: 1000px;
}

#products-expandable-content.expanded {
    max-height: 2500px;
}

/* --- 8. Quem Somos (About) Section --- */
.about-section {
    background-color: var(--light-beige);
}

.about-images {
    position: relative;
    height: 520px;
}

.about-images .image-wrapper {
    position: absolute;
    overflow: hidden;
    box-shadow: var(--shadow-premium);
    transition: var(--transition-smooth);
}

.about-images .main-img {
    width: 76%;
    height: 84%;
    top: 0;
    left: 0;
    border-radius: 40% 60% 40% 60% / 60% 40% 60% 40%;
    border: 4px solid var(--white);
    z-index: 1;
}

.about-images .sub-img {
    width: 50%;
    height: 52%;
    bottom: 0;
    right: 0;
    z-index: 2;
    border-radius: 60% 40% 60% 40% / 40% 60% 40% 60%;
    border: 6px solid var(--white);
}

.about-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.about-images .image-wrapper:hover img {
    transform: scale(1.08);
}

.about-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.lead-text {
    font-size: 21px;
    font-weight: 500;
    color: var(--dark-green);
    margin-bottom: 24px;
    line-height: 1.5;
}

.about-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 24px 0 10px;
}

.detail-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.detail-icon {
    font-size: 26px;
    background-color: var(--white);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: var(--shadow-soft);
}

.detail-text h4 {
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 700;
    color: var(--dark-green);
    margin-bottom: 4px;
}

.detail-text p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.45;
}

.about-action {
    margin-top: 30px;
}

/* --- 9. Products Section (Premium Grid) --- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 50px;
}

.product-item {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    position: relative;
    height: 380px;
    box-shadow: var(--shadow-soft);
    background-color: var(--clay-beige);
    transition: var(--transition-smooth);
}

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

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.product-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(30, 70, 41, 0.95) 0%, rgba(30, 70, 41, 0.65) 60%, rgba(0, 0, 0, 0) 100%);
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    transition: var(--transition-smooth);
}

.product-category-title {
    font-size: 23px;
    color: var(--white);
    margin-bottom: 8px;
    transition: var(--transition-smooth);
}

.product-category-desc {
    display: none;
}

.product-tag {
    align-self: flex-start;
    padding: 4px 10px;
    background-color: var(--gold-accent);
    color: var(--white);
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

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

.product-item:hover .product-img {
    transform: scale(1.08);
}

.product-item:hover .product-overlay {
    background: linear-gradient(to top, rgba(30, 70, 41, 0.96) 0%, rgba(30, 70, 41, 0.75) 60%, rgba(0, 0, 0, 0.15) 100%);
}

.products-cta {
    background-color: var(--clay-beige);
    padding: 40px;
    border-radius: var(--border-radius-lg);
    border: 1px dashed rgba(46, 111, 64, 0.25);
    max-width: 800px;
    margin: 0 auto;
}

.products-cta p {
    font-size: 18px;
    font-weight: 500;
    color: var(--dark-green);
    margin-bottom: 20px;
}

/* --- 10. Feiras de Economia Popular Section --- */
.feiras-section {
    background-color: var(--white);
    position: relative;
}

.feiras-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.feiras-photo-card {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    height: 250px;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    cursor: pointer;
    border: 1px solid rgba(140, 88, 58, 0.03);
}

.feiras-photo-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-premium);
}

.feira-gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.feiras-photo-card:hover .feira-gallery-img {
    transform: scale(1.05);
}

.feira-gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 70, 41, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-smooth);
    z-index: 2;
}

.feiras-photo-card:hover .feira-gallery-overlay {
    opacity: 1;
}

.feira-gallery-zoom-icon {
    width: 50px;
    height: 50px;
    background-color: var(--white);
    color: var(--primary-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: var(--shadow-soft);
    transform: scale(0.85);
    transition: var(--transition-smooth);
}

.feiras-photo-card:hover .feira-gallery-zoom-icon {
    transform: scale(1);
}

/* --- 11. Principles Section --- */
.principles-section {
    position: relative;
    background-image: linear-gradient(rgba(250, 246, 240, 0.92), rgba(250, 246, 240, 0.92)), url('assets/food_background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.principles-section .cards-container {
    padding: 20px 0;
}

.card {
    background-color: var(--light-beige);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(140, 88, 58, 0.05);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-premium);
    background-color: var(--white);
}

.principle-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.card-icon {
    width: 65px;
    height: 65px;
    background-color: var(--white);
    color: var(--primary-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
}

.card:hover .card-icon {
    background-color: var(--primary-green);
    color: var(--white);
    transform: rotate(5deg) scale(1.05);
}

.card-title {
    font-size: 22px;
    color: var(--dark-green);
    margin-bottom: 12px;
}

.card-text {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

.card-gold-accent {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    width: 0;
    background-color: var(--gold-accent);
    transition: var(--transition-smooth);
}

.card:hover .card-gold-accent {
    width: 100%;
}

/* --- 11. Por Que Escolher (Benefits) Section --- */
.benefits-grid {
    margin-top: 20px;
}

.benefit-card {
    background-color: var(--white);
    padding: 35px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(140, 88, 58, 0.03);
    transition: var(--transition-smooth);
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-premium);
}

.benefit-icon {
    font-size: 32px;
    color: var(--primary-green);
    margin-bottom: 18px;
}

.benefit-card h3 {
    font-size: 20px;
    color: var(--dark-green);
    margin-bottom: 12px;
}

.benefit-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.55;
}

.benefit-highlight {
    grid-column: span 3;
    background: linear-gradient(135deg, var(--dark-green) 0%, var(--primary-green) 100%);
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 30px;
}

.benefit-highlight .benefit-icon {
    color: var(--gold-light);
    font-size: 44px;
    margin-bottom: 0;
}

.benefit-highlight h3 {
    color: var(--white);
    font-size: 24px;
    margin-bottom: 6px;
}

.benefit-highlight p {
    color: rgba(255, 255, 255, 0.9);
}

/* --- 12. Galeria Section (Custom Lightbox) --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    height: 280px;
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    background-color: var(--clay-beige);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.gallery-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.22);
    opacity: 0;
    transition: var(--transition-smooth);
    pointer-events: none;
}

.gallery-item:hover img {
    transform: scale(1.06);
}

.gallery-item:hover .gallery-hover {
    opacity: 1;
}

/* Lightbox Modal */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(18, 45, 26, 0.98);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}

.lightbox-modal.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    max-width: 90%;
    max-height: 80%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.lightbox-image {
    max-width: 100%;
    max-height: 70vh;
    border-radius: var(--border-radius-md);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border: 3px solid rgba(255, 255, 255, 0.1);
    transform: scale(0.95);
    transition: var(--transition-smooth);
}

.lightbox-modal.active .lightbox-image {
    transform: scale(1);
}

.lightbox-caption {
    color: var(--white);
    font-size: 16px;
    margin-top: 15px;
    text-align: center;
    max-width: 600px;
    font-family: var(--font-sans);
    opacity: 0.9;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 40px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.lightbox-close:hover {
    color: var(--gold-light);
    transform: scale(1.1);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.lightbox-nav:hover {
    background: var(--primary-green);
    color: var(--white);
}

.lightbox-prev {
    left: 40px;
}

.lightbox-next {
    right: 40px;
}

/* --- 13. Testimonials Section --- */
.testimonials-section {
    background-color: var(--light-beige);
}

.carousel-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding: 0 20px;
}

.carousel-slider {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
    z-index: 1;
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.testimonial-card {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 45px;
    box-shadow: var(--shadow-premium);
    position: relative;
    border: 1px solid rgba(140, 88, 58, 0.03);
}

.testimonial-quote {
    position: absolute;
    top: 15px;
    left: 30px;
    font-family: var(--font-serif);
    font-size: 90px;
    line-height: 1;
    color: rgba(197, 160, 89, 0.18);
    pointer-events: none;
}

.testimonial-text {
    font-size: 17px;
    line-height: 1.65;
    color: var(--text-dark);
    font-style: italic;
    margin-bottom: 24px;
    position: relative;
    z-index: 2;
}

.testimonial-user {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-avatar {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--clay-beige);
}

.user-name {
    display: block;
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 700;
    color: var(--dark-green);
}

.user-role {
    font-size: 12px;
    color: var(--gold-accent);
    font-weight: 600;
}

.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 24px;
}

.carousel-btn {
    width: 42px;
    height: 42px;
    background-color: var(--white);
    border: 1px solid rgba(140, 88, 58, 0.1);
    color: var(--dark-green);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    box-shadow: var(--shadow-soft);
}

.carousel-btn:hover {
    background-color: var(--primary-green);
    color: var(--white);
}

.carousel-dots {
    display: flex;
    gap: 8px;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    background-color: rgba(46, 111, 64, 0.2);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition-fast);
}

.carousel-dot.active {
    background-color: var(--primary-green);
    transform: scale(1.3);
    width: 12px;
    border-radius: 6px;
}

/* --- 14. Location Section --- */
.map-section {
    background-color: var(--white);
}

.map-visual-container {
    box-shadow: var(--shadow-premium);
    border-radius: 16px;
    overflow: hidden;
}

.interactive-map-frame {
    display: block;
    line-height: 0;
}

.map-info-container {
    padding-left: 20px;
}

.map-info-card {
    background-color: var(--light-beige);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-premium);
    border: 1px solid rgba(140, 88, 58, 0.05);
}

.info-card-header {
    border-bottom: 1px solid rgba(140, 88, 58, 0.1);
    padding-bottom: 20px;
    margin-bottom: 24px;
}

.info-territory-tag {
    font-size: 11px;
    font-weight: 700;
    color: var(--gold-accent);
    letter-spacing: 1.5px;
    display: block;
    margin-bottom: 4px;
}

.info-title {
    font-size: 32px;
    color: var(--dark-green);
    margin-bottom: 4px;
}

.info-category {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

.info-category i {
    color: var(--primary-green);
    margin-right: 4px;
}

.info-item {
    margin-bottom: 20px;
}

.info-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary-green);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 15px;
    color: var(--text-dark);
    line-height: 1.5;
}

.info-card-footer-buttons {
    display: flex;
    gap: 12px;
    margin-top: 30px;
}

/* --- 15. Assistente Virtual (Chatbot UI) --- */
.rafa-chat-wrapper {
    position: fixed;
    bottom: 95px;
    right: 24px;
    z-index: 990;
    font-family: var(--font-sans);
}

.rafa-chat-trigger {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary-green);
    box-shadow: 0 8px 25px rgba(46, 111, 64, 0.35);
    border: none;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.rafa-chat-trigger:hover {
    transform: scale(1.05);
    background-color: var(--dark-green);
}

.rafa-online-dot {
    width: 12px;
    height: 12px;
    background-color: #25D366;
    border: 2px solid var(--white);
    border-radius: 50%;
    position: absolute;
    top: 2px;
    right: 2px;
}

.rafa-avatar-img {
    font-size: 28px;
}

.rafa-trigger-tooltip {
    position: absolute;
    right: 75px;
    background-color: var(--white);
    color: var(--text-dark);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(140, 88, 58, 0.05);
    pointer-events: none;
    opacity: 0;
    transform: translateX(10px);
    transition: var(--transition-smooth);
}

.rafa-chat-trigger:hover .rafa-trigger-tooltip {
    opacity: 1;
    transform: translateX(0);
}

/* Chat Window */
.rafa-chat-window {
    position: absolute;
    bottom: 75px;
    right: 0;
    width: 360px;
    height: 500px;
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 15px 45px rgba(92, 50, 30, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transform-origin: bottom right;
    transition: var(--transition-smooth);
    border: 1px solid rgba(140, 88, 58, 0.05);
}

.rafa-chat-window.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.rafa-chat-header {
    background-color: var(--primary-green);
    color: var(--white);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.rafa-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rafa-header-avatar {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.rafa-name {
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 700;
}

.rafa-status {
    font-size: 11px;
    opacity: 0.8;
    display: block;
}

.rafa-close-btn {
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 18px;
    cursor: pointer;
    opacity: 0.8;
    transition: var(--transition-fast);
}

.rafa-close-btn:hover {
    opacity: 1;
}

/* Messages History */
.rafa-chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background-color: var(--light-beige);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rafa-message {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.5;
    position: relative;
    animation: messageFade 0.3s ease forwards;
}

@keyframes messageFade {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.rafa-bot {
    background-color: var(--white);
    color: var(--text-dark);
    align-self: flex-start;
    border-top-left-radius: 4px;
    box-shadow: var(--shadow-soft);
}

.rafa-user {
    background-color: var(--earthy-brown);
    color: var(--white);
    align-self: flex-end;
    border-top-right-radius: 4px;
}

.rafa-msg-time {
    display: block;
    font-size: 10px;
    margin-top: 4px;
    opacity: 0.6;
    text-align: right;
}

.rafa-user .rafa-msg-time {
    color: rgba(255, 255, 255, 0.8);
}

/* Quick options inside chat */
.rafa-quick-options {
    padding: 12px 16px;
    background-color: var(--light-beige);
    border-top: 1px solid rgba(140, 88, 58, 0.05);
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    max-height: 135px;
    overflow-y: auto;
}

.quick-opt-btn {
    background-color: var(--white);
    border: 1px solid rgba(46, 111, 64, 0.15);
    color: var(--primary-green);
    padding: 6px 12px;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
    font-family: var(--font-sans);
}

.quick-opt-btn:hover {
    background-color: var(--primary-green);
    color: var(--white);
}

/* Input form inside chat */
.rafa-chat-input-area {
    padding: 12px 16px;
    background-color: var(--white);
    border-top: 1px solid rgba(140, 88, 58, 0.05);
    display: flex;
    gap: 10px;
}

.rafa-chat-input-area input {
    flex: 1;
    border: 1px solid rgba(140, 88, 58, 0.1);
    border-radius: 20px;
    padding: 10px 16px;
    font-size: 14px;
    font-family: var(--font-sans);
    outline: none;
    transition: var(--transition-fast);
}

.rafa-chat-input-area input:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 2px rgba(46, 111, 64, 0.1);
}

.rafa-send-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-green);
    color: var(--white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.rafa-send-btn:hover {
    background-color: var(--dark-green);
    transform: scale(1.05);
}

/* --- 16. Floating WhatsApp Button --- */
.whatsapp-floating-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.35);
    z-index: 990;
    transition: var(--transition-smooth);
    animation: waGlow 2s infinite;
}

.whatsapp-floating-btn:hover {
    background-color: #128C7E;
    transform: scale(1.05);
}

.wa-tooltip {
    position: absolute;
    right: 75px;
    background-color: #25D366;
    color: var(--white);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: var(--shadow-soft);
    pointer-events: none;
    opacity: 0;
    transform: translateX(10px);
    transition: var(--transition-smooth);
}

.whatsapp-floating-btn:hover .wa-tooltip {
    opacity: 1;
    transform: translateX(0);
}

@keyframes waGlow {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* --- 17. Footer Styles --- */
.main-footer {
    background-color: var(--dark-green);
    color: rgba(255, 255, 255, 0.85);
    font-family: var(--font-sans);
}

.footer-top {
    padding: 80px 0 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo {
    height: 60px;
    width: auto;
    margin-bottom: 24px;
}

.footer-brand-desc {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 38px;
    height: 38px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 16px;
    transition: var(--transition-fast);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.social-links a:hover {
    background-color: var(--gold-accent);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-col-title {
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 24px;
    position: relative;
}

.footer-col-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--gold-accent);
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
}

.footer-links a:hover {
    color: var(--gold-light);
    padding-left: 4px;
}

.footer-contact-info li {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
    font-size: 14px;
    align-items: flex-start;
}

.footer-contact-info i {
    color: var(--gold-accent);
    font-size: 16px;
    margin-top: 3px;
}

.footer-bottom {
    padding: 30px 0;
    background-color: #122d1a;
    font-size: 13px;
}

.footer-bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.dev-credits {
    color: var(--gold-light);
    font-weight: 600;
}

/* --- 18. Responsive Design System --- */
@media (max-width: 1024px) {
    .section-title { font-size: 36px; }
    .hero-title { font-size: 46px; }
    
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .feiras-gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    
    .benefit-highlight {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .section-padding { padding: 75px 0; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .main-nav {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--light-beige);
        padding: 40px 24px;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition-smooth);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
        border-top: 1px solid rgba(140, 88, 58, 0.05);
    }
    
    .main-nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }
    
    .main-nav a {
        font-size: 18px;
    }
    
    .header-cta {
        display: none; /* Hide header contact on mobile screen */
    }
    
    /* Hero */
    .hero-section { height: auto; padding: 150px 0 100px; }
    .hero-content { padding: 30px 20px; }
    .hero-title { font-size: 38px; }
    .hero-subtitle { font-size: 16px; }
    
    /* About */
    .about-images { height: 360px; margin-bottom: 40px; }
    .about-details-grid { grid-template-columns: 1fr; }
    
    /* Gallery */
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    
    /* Testimonials */
    .testimonial-card { padding: 30px 20px; }
    .testimonial-text { font-size: 15px; }
    .carousel-slider { height: 350px; }
    
    /* Benefits */
    .benefit-highlight {
        grid-column: span 1;
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    /* Map */
    .map-info-container { padding-left: 0; margin-top: 35px; }
    .info-card-footer-buttons { flex-direction: column; }
    
    /* Assistente Virtual */
    .rafa-chat-wrapper {
        bottom: 85px;
        right: 16px;
    }
    
    .rafa-chat-window {
        width: 320px;
        height: 460px;
        right: -8px;
        bottom: 60px;
    }
    
    .whatsapp-floating-btn {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 16px;
        right: 16px;
    }
    
    .rafa-chat-trigger {
        width: 50px;
        height: 50px;
    }
    
    .rafa-avatar-img {
        font-size: 22px;
    }
    
    .rafa-trigger-tooltip, .wa-tooltip {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .section-title { font-size: 28px; }
    .hero-title { font-size: 32px; }
    .products-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: 1fr; }
    .feiras-gallery-grid { grid-template-columns: 1fr; }
    .about-images { height: 280px; }
    .carousel-slider { height: 420px; }
    .info-title { font-size: 26px; }
    .map-info-card { padding: 25px 20px; }
}
