/* ============================================
   KAROCI WEBSITE - CSS COM CORES DOS SABORES
   Natural: Bege/Dourado (#D4C4A8)
   Piri Piri: Vermelho (#C44536)
   Salgada: Azul (#2C5F8D)
   ============================================ */

/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Variáveis de Cores */
:root {
    --natural-primary: #D4C4A8;
    --natural-light: #F5F5F0;
    --natural-dark: #8B7355;
    
    --piripiri-primary: #C44536;
    --piripiri-light: #FFE5E5;
    --piripiri-dark: #8B1F1F;
    
    --salgada-primary: #2C5F8D;
    --salgada-light: #E5F2FF;
    --salgada-dark: #1F3A5F;
    
    --verde-principal: #4A5D3F;
    --verde-escuro: #3A4D2F;
    --laranja: #C67B4C;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================== HEADER ==================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    border-bottom: 4px solid transparent;
    border-image: linear-gradient(90deg, 
        var(--natural-primary) 0%, 
        var(--natural-primary) 33%, 
        var(--piripiri-primary) 33%, 
        var(--piripiri-primary) 66%, 
        var(--salgada-primary) 66%, 
        var(--salgada-primary) 100%
    ) 1;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    width: 110px;
    height: 110px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.25);
    border: 4px solid var(--laranja);
    transition: all 0.3s;
    overflow: hidden;
    padding: 8px;
}

.logo:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 25px rgba(0,0,0,0.35);
    border-color: var(--piripiri-primary);
}

.logo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

/* Remover o logo-text já que não é mais usado */
.logo-text {
    display: none;
}

/* Ajustar padding do header para acomodar logo maior */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
}

/* Responsivo - logo menor no mobile */
@media (max-width: 768px) {
    .logo {
        width: 80px;
        height: 80px;
        border: 3px solid var(--laranja);
        padding: 5px;
    }
}

.nav-desktop {
    display: none;
    gap: 2rem;
}

.nav-desktop a {
    color: var(--verde-principal);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-desktop a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--natural-primary), var(--piripiri-primary), var(--salgada-primary));
    transition: width 0.3s;
}

.nav-desktop a:hover::after {
    width: 100%;
}

.nav-desktop a:hover {
    color: var(--laranja);
}

.menu-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--verde-principal);
    cursor: pointer;
    display: block;
}

.nav-mobile {
    display: none;
    flex-direction: column;
    padding: 1rem;
    background: white;
    border-top: 1px solid var(--natural-light);
}

.nav-mobile.active {
    display: flex;
}

.nav-mobile a {
    color: var(--verde-principal);
    text-decoration: none;
    padding: 0.75rem 0;
    font-weight: 500;
    transition: all 0.3s;
    border-left: 3px solid transparent;
    padding-left: 10px;
}

.nav-mobile a:hover {
    border-left-color: var(--piripiri-primary);
    padding-left: 15px;
}

@media (min-width: 768px) {
    .nav-desktop {
        display: flex;
    }
    .menu-toggle {
        display: none;
    }
}

/* ==================== HERO SLIDESHOW ==================== */
.hero-slideshow-section {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    margin-top: 70px;
    background: linear-gradient(135deg, #8B9B7F, #C9B99B, #A89B7E);
}

.slideshow-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background: linear-gradient(135deg, #8B9B7F, #C9B99B, #A89B7E);
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(74, 93, 63, 0.75), 
        rgba(139, 155, 127, 0.7), 
        rgba(198, 123, 76, 0.65)
    );
    z-index: 2;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    z-index: 3;
    color: white;
    text-align: center;
    padding: 0 20px;
}

.slide-title {
    font-family: serif;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.slide-subtitle {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.highlight {
    color: #FFD700;
}

.slide-text {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.slide-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
    text-align: center;
    font-size: 1.1rem;
}

.btn-primary {
    background: var(--verde-principal);
    color: white;
    border: 2px solid var(--verde-principal);
}

.btn-primary:hover {
    background: var(--verde-escuro);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.btn-outline {
    border: 2px solid white;
    color: white;
    background: transparent;
}

.btn-outline:hover {
    background: white;
    color: var(--verde-principal);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

/* Navegação do Slideshow */
.slide-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    border: none;
    color: white;
    font-size: 2rem;
    padding: 1.5rem 1rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
}

.slide-nav:hover {
    background: rgba(255, 255, 255, 0.5);
}

.slide-nav.prev {
    left: 20px;
    border-radius: 0 10px 10px 0;
}

.slide-nav.next {
    right: 20px;
    border-radius: 10px 0 0 10px;
}

.slide-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
}

.indicator {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid white;
    cursor: pointer;
    transition: all 0.3s;
}

.indicator:hover,
.indicator.active {
    background: white;
    transform: scale(1.2);
}

/* Animações */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-slide.active [data-animation="fadeInUp"] {
    animation: fadeInUp 0.8s ease-out forwards;
}

.hero-slide.active [data-delay="200"] {
    animation-delay: 0.2s;
    opacity: 0;
}

.hero-slide.active [data-delay="400"] {
    animation-delay: 0.4s;
    opacity: 0;
}

.hero-slide.active [data-delay="600"] {
    animation-delay: 0.6s;
    opacity: 0;
}

@media (max-width: 768px) {
    .hero-slideshow-section {
        height: 80vh;
        min-height: 500px;
    }
    .slide-title {
        font-size: 2rem;
    }
    .slide-subtitle {
        font-size: 1.5rem;
    }
    .slide-text {
        font-size: 1rem;
    }
    .slide-nav {
        padding: 1rem 0.75rem;
        font-size: 1.5rem;
    }
    .slide-nav.prev {
        left: 10px;
    }
    .slide-nav.next {
        right: 10px;
    }
    .btn {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
}

/* ==================== PRODUTOS SECTION ==================== */
.produtos {
    padding: 80px 0;
    background: white;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    color: var(--verde-principal);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: #666;
}

.produtos-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

/* Cards dos Produtos com Cores Específicas */
.produto-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.produto-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    transition: height 0.3s;
}

.produto-natural::before {
    background: linear-gradient(90deg, var(--natural-dark), var(--natural-primary));
}

.produto-piripiri::before {
    background: linear-gradient(90deg, var(--piripiri-dark), var(--piripiri-primary));
}

.produto-salgada::before {
    background: linear-gradient(90deg, var(--salgada-dark), var(--salgada-primary));
}

.produto-card:hover::before {
    height: 12px;
}

.produto-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

/* Fundos dos Cards */
.produto-natural {
    background: linear-gradient(135deg, var(--natural-light) 0%, white 100%);
    border: 2px solid var(--natural-light);
}

.produto-piripiri {
    background: linear-gradient(135deg, var(--piripiri-light) 0%, white 100%);
    border: 2px solid var(--piripiri-light);
}

.produto-salgada {
    background: linear-gradient(135deg, var(--salgada-light) 0%, white 100%);
    border: 2px solid var(--salgada-light);
}

.produto-image {
    width: 100%;
    height: 300px;
    margin-bottom: 1.5rem;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: transform 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
}

.produto-natural .produto-image {
    background: linear-gradient(135deg, var(--natural-light), white);
}

.produto-piripiri .produto-image {
    background: linear-gradient(135deg, var(--piripiri-light), white);
}

.produto-salgada .produto-image {
    background: linear-gradient(135deg, var(--salgada-light), white);
}

.produto-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
}

.produto-card:hover .produto-image {
    transform: scale(1.05);
}

.produto-title {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.produto-natural .produto-title {
    color: var(--natural-dark);
}

.produto-piripiri .produto-title {
    color: var(--piripiri-dark);
}

.produto-salgada .produto-title {
    color: var(--salgada-dark);
}

.produto-description {
    color: #666;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.produto-weight {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s;
}

.produto-natural .produto-weight {
    background: var(--natural-primary);
    color: var(--natural-dark);
    border: 2px solid var(--natural-dark);
}

.produto-piripiri .weight-red {
    background: var(--piripiri-primary);
    color: white;
    border: 2px solid var(--piripiri-dark);
}

.produto-salgada .weight-blue {
    background: var(--salgada-primary);
    color: white;
    border: 2px solid var(--salgada-dark);
}

.produto-weight:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

@media (min-width: 768px) {
    .produtos-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ==================== SOBRE SECTION ==================== */
.sobre {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--natural-light), #ffffff);
}

.sobre-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.sobre-paragraph {
    font-size: 1.125rem;
    color: #555;
    margin-bottom: 1rem;
}

.award-box {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    border-left: 5px solid var(--laranja);
}

.award-icon {
    color: var(--laranja);
    font-size: 2rem;
}

.award-title {
    color: var(--verde-principal);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.award-description {
    color: #666;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.feature-card {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s;
    border-top: 3px solid transparent;
}

.feature-card:nth-child(1) {
    border-top-color: var(--natural-primary);
}

.feature-card:nth-child(2) {
    border-top-color: var(--piripiri-primary);
}

.feature-card:nth-child(3) {
    border-top-color: var(--salgada-primary);
}

.feature-card:nth-child(4) {
    border-top-color: var(--laranja);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.feature-emoji {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.feature-title {
    color: var(--verde-principal);
    font-size: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.feature-text {
    color: #666;
    font-size: 0.875rem;
}

@media (min-width: 768px) {
    .sobre-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ==================== CONTACTO SECTION ==================== */
.contacto {
    padding: 80px 0;
    background: white;
}

.contacto-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.contacto-title {
    font-size: 1.75rem;
    color: var(--verde-principal);
    margin-bottom: 1.5rem;
}

.info-box {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--natural-light);
    border-radius: 10px;
    margin-bottom: 1rem;
    border-left: 4px solid var(--natural-primary);
    transition: all 0.3s;
}

.info-box:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.info-icon {
    color: var(--verde-principal);
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

.info-title {
    color: var(--verde-principal);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.info-link {
    display: block;
    color: #555;
    text-decoration: none;
    transition: color 0.3s;
}

.info-link:hover {
    color: var(--laranja);
}

.info-text {
    color: #555;
}

.social-section {
    margin-top: 2rem;
}

.social-title {
    color: var(--verde-principal);
    font-weight: 600;
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    text-decoration: none;
    transition: all 0.3s;
}

.social-link:hover {
    opacity: 0.8;
    transform: scale(1.1);
}

.social-instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.social-facebook {
    background: #3b5998;
}

.pedido-box {
    background: linear-gradient(135deg, var(--natural-light), white);
    padding: 2.5rem;
    border-radius: 20px;
    border: 2px solid var(--natural-primary);
}

.pedido-title {
    font-size: 1.75rem;
    color: var(--verde-principal);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pedido-text {
    color: #555;
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.btn-phone,
.btn-email {
    width: 100%;
    margin-bottom: 1rem;
}

.btn-phone {
    background: var(--verde-principal);
    color: white;
    border: 2px solid var(--verde-principal);
}

.btn-phone:hover {
    background: var(--verde-escuro);
}

.btn-email {
    background: var(--laranja);
    color: white;
    border: 2px solid var(--laranja);
}

.btn-email:hover {
    opacity: 0.9;
}

.horario-box {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 1.5rem;
    border-left: 4px solid var(--salgada-primary);
}

.horario-title {
    color: var(--verde-principal);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.horario-text {
    color: #555;
}

@media (min-width: 768px) {
    .contacto-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ==================== FOOTER ==================== */
.footer {
    background: var(--verde-principal);
    color: white;
    padding: 3rem 0 1rem;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, 
        var(--natural-primary) 0%, 
        var(--natural-primary) 33%, 
        var(--piripiri-primary) 33%, 
        var(--piripiri-primary) 66%, 
        var(--salgada-primary) 66%, 
        var(--salgada-primary) 100%
    );
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-title {
    font-family: serif;
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.footer-text {
    color: #ddd;
    margin-bottom: 0.5rem;
}

.footer-heading {
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
}

.footer-links a {
    color: #ddd;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: all 0.3s;
    padding-left: 0;
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-social a {
    color: #ddd;
    font-size: 1.5rem;
    transition: color 0.3s;
}

.footer-social a:hover {
    color: white;
}

.footer-text-small {
    color: #ddd;
    font-size: 0.875rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 2rem;
    text-align: center;
    color: #ddd;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ==================== BACK TO TOP BUTTON ==================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    background: var(--verde-principal);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    font-size: 1.5rem;
}

.back-to-top:hover {
    transform: scale(1.1);
    background: var(--verde-escuro);
}

/* ==================== EVENTOS SECTION ==================== */
.eventos {
    padding: 80px 0;
    background: white;
}

.eventos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.evento-item {
    position: relative;
    height: 300px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s;
    background: #f5f5f5;
}

.evento-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.evento-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.evento-item:hover img {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .eventos-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }
    
    .evento-item {
        height: 250px;
    }
}