/* ===== Custom CSS for Rucher Sapic ===== */
/* Add your custom styles here */

/* Smooth animations on scroll */
.feature-card,
.product-card,
.blog-card,
.value-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.feature-card.visible,
.product-card.visible,
.blog-card.visible,
.value-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hero slideshow */
.hero-slideshow {
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 15px 0 rgb(23, 13, 0);
    z-index: 1;
}

.hero-slides {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    animation: heroZoom 8s ease-in-out infinite alternate;
}

.hero-slide.active {
    opacity: 1;
}

@keyframes heroZoom {
    from { transform: scale(1); }
    to { transform: scale(1.08); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1;
}

.hero-slideshow .hero-content {
    position: relative;
    z-index: 2;
}


/* Loading spinner for form */
.btn.loading {
    position: relative;
    pointer-events: none;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Mobile menu animation */
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Product card hover accent */
.product-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--color-gold);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.product-card {
    position: relative;
}

.product-card:hover::after {
    transform: scaleX(1);
}

/* Sold out badge */
.product-card {
    position: relative;
    overflow: hidden;
}

.sold-out-badge {
    position: absolute;
    top: 15px;
    right: -30px;
    background: #c0392b;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 5px 40px;
    transform: rotate(45deg);
    z-index: 2;
}

.product-sold-out .product-image,
.product-sold-out .product-image-placeholder {
    opacity: 0.5;
    filter: grayscale(60%);
}

.product-sold-out .product-price {
    text-decoration: line-through;
    opacity: 0.5;
}

/* Custom logo sizing */
.custom-logo {
    max-height: 70px;
    width: auto;
}

.custom-logo-link + div .site-title,
.custom-logo-link + div .site-description {
    display: none;
}

/* Footer layout */
.footer-content {
    grid-template-columns: 1fr 1fr !important;
    align-items: center;
}

.footer-logo-section {
    display: flex;
    align-items: center;
}

.footer-logo-section img {
    max-height: 140px;
    width: auto;
    filter: brightness(1.2);
}

.footer-contact-section {
    text-align: right;
}

/* Values section */
.values-section {
    background: var(--color-brown-dark);
    padding: 80px 0;
}

.values-section .section-title {
    color: var(--color-cream);
}

.values-section .section-divider {
    background: var(--color-gold);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
    margin-top: 50px;
}

.value-item {
    text-align: center;
    padding: 0 10px;
}

.value-icon {
    color: var(--color-gold);
    margin-bottom: 25px;
}

.value-item h3 {
    color: var(--color-cream);
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.value-item p {
    color: rgba(255, 248, 231, 0.75);
    font-size: 0.95rem;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .values-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Header scroll state */
.site-header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}