@charset "UTF-8";

/* ==========================================================================
   Wersja Premium Landing Page: Herbal Goodness Stawy
   Bogaty, rozbudowany arkusz stylów oparty o paletę Red z wariacjami.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Variables & Theming
   -------------------------------------------------------------------------- */
:root {
    /* Color Palette */
    --red-50:  #fef2f2;
    --red-100: #fee2e2;
    --red-200: #fecaca;
    --red-300: #fca5a5;
    --red-400: #f87171;
    --red-500: #ef4444;
    --red-600: #dc2626;
    --red-700: #b91c1c;
    --red-800: #991b1b;
    --red-900: #7f1d1d;

    /* Backgrounds */
    --bg-main: #fdfbfb;
    --bg-card: #ffffff;
    --bg-card-hover: #fafafa;
    
    /* Texts */
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --text-muted: #6b7280;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--red-500) 0%, var(--red-700) 100%);
    --gradient-glow: radial-gradient(circle, rgba(220, 38, 38, 0.15) 0%, rgba(220, 38, 38, 0) 70%);
    --gradient-surface: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.4) 100%);

    /* Shadows */
    --shadow-soft: 0 4px 20px -2px rgba(220, 38, 38, 0.05);
    --shadow-medium: 0 10px 30px -5px rgba(220, 38, 38, 0.1), 0 4px 10px -2px rgba(220, 38, 38, 0.06);
    --shadow-heavy: 0 25px 50px -12px rgba(220, 38, 38, 0.25);
    --shadow-glow: 0 0 20px rgba(220, 38, 38, 0.3), 0 0 40px rgba(220, 38, 38, 0.1);

    /* Transitions */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* --------------------------------------------------------------------------
   2. Base & Resets
   -------------------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body.custom-bg {
    background-color: var(--bg-main);
    color: var(--text-primary);
    overflow-x: hidden;
    position: relative;
}

::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background-color: var(--red-300);
    border-radius: 20px;
    border: 3px solid var(--bg-main);
}
::-webkit-scrollbar-thumb:hover {
    background-color: var(--red-500);
}

/* --------------------------------------------------------------------------
   3. Decorative Background Blobs & Shapes
   -------------------------------------------------------------------------- */
.fixed-bg-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    mix-blend-mode: multiply;
    animation: floatBlob 20s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--red-100) 0%, transparent 70%);
    animation-delay: 0s;
}

.blob-2 {
    top: 40%;
    right: -20%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--red-50) 0%, transparent 70%);
    animation-delay: -5s;
    animation-duration: 25s;
}

.blob-3 {
    bottom: -20%;
    left: 20%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, rgba(254, 202, 202, 0.5) 0%, transparent 70%);
    animation-delay: -10s;
    animation-duration: 22s;
}

.noise-overlay {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.02'/%3E%3C/svg%3E");
    opacity: 0.6;
    z-index: 1;
    pointer-events: none;
}

@keyframes floatBlob {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(5%, 5%) scale(1.05); }
    66% { transform: translate(-2%, 8%) scale(0.95); }
    100% { transform: translate(-5%, -5%) scale(1); }
}

/* --------------------------------------------------------------------------
   4. Header Styles
   -------------------------------------------------------------------------- */
.site-header {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.header-glass-bg {
    background: rgba(255, 255, 255, 0.75);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

/* --------------------------------------------------------------------------
   5. Hero / Product Section Card
   -------------------------------------------------------------------------- */
.product-hero-card {
    box-shadow: var(--shadow-medium);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: var(--transition-slow);
}

.product-hero-card:hover {
    box-shadow: var(--shadow-heavy);
}

.product-card-border {
    border: 2px solid transparent;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.1)) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.product-card-glow {
    background: radial-gradient(circle at 50% 0%, var(--red-100), transparent 70%);
}

/* --------------------------------------------------------------------------
   6. CSS-Only Gallery Logic & Styles
   -------------------------------------------------------------------------- */
.gallery-container {
    perspective: 1000px;
}

/* FIX: Ensure the main gallery view keeps proper height regardless of Tailwind version */
.gallery-main-view {
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.02), 0 10px 20px -5px rgba(220, 38, 38, 0.08);
    aspect-ratio: 1 / 1;
    min-height: 350px;
    width: 100%;
}

@media (min-width: 768px) {
    .gallery-main-view {
        aspect-ratio: 4 / 3;
        min-height: 450px;
    }
}

@media (min-width: 1024px) {
    .gallery-main-view {
        aspect-ratio: 1 / 1;
        min-height: 500px;
    }
}

.gallery-main-bg {
    background-size: 200% 200%;
    animation: gradientShift 10s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Radio States */
#gal-1:checked ~ .gallery-main-view .img-wrap-1,
#gal-2:checked ~ .gallery-main-view .img-wrap-2,
#gal-3:checked ~ .gallery-main-view .img-wrap-3,
#gal-4:checked ~ .gallery-main-view .img-wrap-4 {
    opacity: 1;
    transform: scale(1);
    z-index: 10;
    pointer-events: auto;
}

#gal-1:checked ~ .gallery-main-view .gallery-frame { border-color: rgba(220, 38, 38, 0.2); transform: scale(1); }
#gal-2:checked ~ .gallery-main-view .gallery-frame { border-color: rgba(220, 38, 38, 0.4); transform: scale(0.98); }
#gal-3:checked ~ .gallery-main-view .gallery-frame { border-color: rgba(220, 38, 38, 0.3); transform: scale(0.96); }
#gal-4:checked ~ .gallery-main-view .gallery-frame { border-color: rgba(220, 38, 38, 0.5); transform: scale(0.99); }

#gal-1:checked ~ .gallery-thumbnails .thumb-1 .thumb-overlay,
#gal-2:checked ~ .gallery-thumbnails .thumb-2 .thumb-overlay,
#gal-3:checked ~ .gallery-thumbnails .thumb-3 .thumb-overlay,
#gal-4:checked ~ .gallery-thumbnails .thumb-4 .thumb-overlay {
    border-color: var(--red-600);
    box-shadow: inset 0 0 0 2px var(--red-100), 0 4px 10px rgba(220, 38, 38, 0.2);
}

#gal-1:checked ~ .gallery-thumbnails .thumb-1 img,
#gal-2:checked ~ .gallery-thumbnails .thumb-2 img,
#gal-3:checked ~ .gallery-thumbnails .thumb-3 img,
#gal-4:checked ~ .gallery-thumbnails .thumb-4 img {
    transform: scale(1.1);
}

.thumb-label {
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.thumb-label:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(220, 38, 38, 0.1);
}

/* --------------------------------------------------------------------------
   7. Product Description & Typography
   -------------------------------------------------------------------------- */
.product-title {
    font-family: 'Playfair Display', serif;
}

.features-list {
    position: relative;
}

.feature-item {
    position: relative;
    z-index: 1;
}

.feature-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: var(--red-400);
    border-radius: 4px;
    transform: scaleY(0);
    transform-origin: center;
    transition: transform var(--transition-bounce);
    opacity: 0;
}

.feature-item:hover::before {
    transform: scaleY(0.7);
    opacity: 1;
}

/* --------------------------------------------------------------------------
   8. CTA Section
   -------------------------------------------------------------------------- */
.cta-section {
    background-color: var(--red-700);
    background-image: radial-gradient(at 0% 0%, var(--red-600) 0px, transparent 50%),
                      radial-gradient(at 100% 100%, var(--red-900) 0px, transparent 50%);
}

.cta-pattern {
    background-image: radial-gradient(var(--red-100) 1px, transparent 1px);
    background-size: 20px 20px;
}

.animation-float {
    animation: floatBlob 15s infinite alternate ease-in-out;
}

.animation-float-delayed {
    animation: floatBlob 18s infinite alternate-reverse ease-in-out;
    animation-delay: -5s;
}

.cta-btn-wrapper {
    perspective: 1000px;
}

.cta-btn {
    transform-style: preserve-3d;
}

.cta-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 40px -10px rgba(153, 27, 27, 0.5);
    color: var(--red-800);
}

.cta-btn:active {
    transform: translateY(1px) scale(0.98);
}

.cta-btn-wrapper:hover .cta-btn-shine {
    animation: shineSweep 1.5s ease-out infinite;
}

@keyframes shineSweep {
    0% { transform: translateX(-100%) skewX(-15deg); }
    100% { transform: translateX(200%) skewX(-15deg); }
}

/* --------------------------------------------------------------------------
   9. Reviews Section
   -------------------------------------------------------------------------- */
.reviews-list::before {
    content: '';
    position: absolute;
    left: 3rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, transparent, var(--red-100), transparent);
    z-index: 0;
    display: none;
}

@media (min-width: 768px) {
    .reviews-list::before {
        display: block;
    }
}

.review-card {
    position: relative;
    border-left: 4px solid transparent;
}

.review-card:hover {
    border-left-color: var(--red-500);
}

.review-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -20px;
    width: 12px;
    height: 12px;
    background: var(--red-400);
    border-radius: 50%;
    border: 3px solid white;
    transform: translateY(-50%) scale(0);
    transition: transform var(--transition-bounce);
    z-index: 10;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
    display: none;
}

@media (min-width: 768px) {
    .review-card::before {
        display: block;
        left: -3rem;
        margin-left: 2px;
    }
    .review-card:hover::before {
        transform: translateY(-50%) scale(1);
    }
}

.avatar-ring::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1px dashed var(--red-300);
    animation: spinSlow 20s linear infinite;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.review-card:hover .avatar-ring::after {
    opacity: 1;
}

@keyframes spinSlow {
    100% { transform: rotate(360deg); }
}

.review-card:hover .stars svg {
    animation: starPop 0.3s forwards;
}

.review-card:hover .stars svg:nth-child(1) { animation-delay: 0.0s; }
.review-card:hover .stars svg:nth-child(2) { animation-delay: 0.05s; }
.review-card:hover .stars svg:nth-child(3) { animation-delay: 0.1s; }
.review-card:hover .stars svg:nth-child(4) { animation-delay: 0.15s; }
.review-card:hover .stars svg:nth-child(5) { animation-delay: 0.2s; }

@keyframes starPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); color: var(--red-500); }
    100% { transform: scale(1); }
}

/* --------------------------------------------------------------------------
   10. Footer Section
   -------------------------------------------------------------------------- */
.site-footer {
    position: relative;
    z-index: 10;
}

.footer-link::after {
    content: '→';
    position: absolute;
    right: -15px;
    opacity: 0;
    transform: translateX(-5px);
    transition: all var(--transition-fast);
    color: var(--red-500);
}

.footer-link:hover::after {
    opacity: 1;
    transform: translateX(0);
}

/* --------------------------------------------------------------------------
   11. Media Queries & Responsive Adjustments
   -------------------------------------------------------------------------- */
@media (max-width: 479px) {
    .product-hero-card {
        padding: 1.25rem;
        border-radius: 1.5rem;
    }
    .gallery-thumbnails {
        gap: 0.5rem;
    }
    .thumb-label {
        width: 4rem;
        height: 4rem;
    }
    .product-title {
        font-size: 1.75rem;
    }
    .cta-section {
        padding: 2rem 1.5rem;
        border-radius: 1.5rem;
    }
    .cta-btn {
        padding: 1rem 1.5rem;
        font-size: 1.125rem;
    }
    .review-card {
        padding: 1.25rem;
    }
    .footer-links {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

@media (min-width: 480px) and (max-width: 767px) {
    .product-hero-card {
        padding: 2rem;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .gallery-thumbnails {
        flex-wrap: wrap;
    }
}

@media (min-width: 1024px) {
    .product-hero-card {
        min-height: 600px;
    }
    .gallery-container {
        position: sticky;
        top: 6rem;
    }
    .product-hero-card {
        animation: fadeUp 1s ease-out forwards;
    }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}