@font-face {
    font-family: 'Tomato Drunk';
    src: url('../../assets/fonts/TomatoDrunk-Regular-BF6902c29c40133.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Vanilla Pancake';
    src: url('../../assets/fonts/Vanilla Pancake.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

:root {
    --emerald: #2e7d32;
    --sapphire: #1a237e;
    --ruby: #b71c1c;
    --plum: #4a148c;
    --teal: #004d40;
    --cream: #fdfbf7;
    --charcoal: #2c2c2c;
    --soft-white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vanilla Pancake', serif;
    line-height: 1.6;
    color: var(--charcoal);
    background-color: var(--cream);
    overflow-x: hidden;
}

.hero-wrapper {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}

.header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 2rem 3rem;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-family: 'Tomato Drunk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--soft-white);
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    opacity: 0;
    animation: fadeInDown 1s ease-out 0.2s forwards;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2.5rem;
    opacity: 0;
    animation: fadeInDown 1s ease-out 0.4s forwards;
}

.nav-links a {
    font-family: 'Tomato Drunk', sans-serif;
    text-decoration: none;
    color: var(--soft-white);
    font-weight: 500;
    font-size: 1rem;
    transition: transform 0.3s ease, opacity 0.3s ease;
    display: inline-block;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.nav-links a:hover {
    transform: translateY(-2px);
    opacity: 0.8;
}

.hero {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #6a1b9a 0%, #1a237e 50%, #004d40 100%);
    background-size: auto 100%;
    background-position: center;
    background-repeat: no-repeat;
    animation: horizontalPan 40s ease-in-out infinite;
}

@keyframes horizontalPan {
    0%, 100% {
        background-position: 50% center;
    }
    25% {
        background-position: 30% center;
    }
    50% {
        background-position: 70% center;
    }
    75% {
        background-position: 40% center;
    }
}

.hero-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 70% 60%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 60%);
    animation: floatBubbles 20s ease-in-out infinite;
}

@keyframes floatBubbles {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(-20px, -30px) scale(1.1);
    }
    66% {
        transform: translate(20px, -20px) scale(0.95);
    }
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.4) 0%, transparent 100%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: #ffb347;
    max-width: 900px;
    padding: 2rem;
}

.hero-title {
    font-family: 'Tomato Drunk', sans-serif;
    font-size: 5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-shadow: 0 6px 30px rgba(0, 0, 0, 0.7), 0 3px 10px rgba(0, 0, 0, 0.5);
}

.title-line {
    display: block;
    opacity: 0;
}

.line-1 {
    animation: slideInLeft 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
}

.line-2 {
    animation: slideInRight 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.9s forwards;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px) rotate(-5deg);
    }
    to {
        opacity: 1;
        transform: translateX(0) rotate(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px) rotate(5deg);
    }
    to {
        opacity: 1;
        transform: translateX(0) rotate(0);
    }
}

.hero-text {
    font-size: 1.8rem;
    line-height: 1.8;
    font-style: italic;
    font-weight: 600;
    margin-bottom: 2.5rem;
    opacity: 0;
    animation: fadeInUp 1s ease-out 1.4s forwards;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.7), 0 2px 8px rgba(0, 0, 0, 0.6);
}

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

.hero-cta {
    display: inline-block;
    font-family: 'Tomato Drunk', sans-serif;
    text-decoration: none;
    color: #ffb347;
    background-color: #f5f1e8;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    animation: fadeInUp 1s ease-out 1.7s forwards;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-cta:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.hero-cta .letter {
    display: inline-block;
    animation: letterBounce 4s cubic-bezier(0.28, 0.84, 0.42, 1) infinite;
}

@keyframes letterBounce {
    0% {
        transform: translateY(0) scale(1);
    }
    6% {
        transform: translateY(-12px) scale(1.15);
    }
    9% {
        transform: translateY(-12px) scale(1.15);
    }
    12% {
        transform: translateY(0) scale(0.95);
    }
    13.5% {
        transform: translateY(-3px) scale(1.05);
    }
    15%, 100% {
        transform: translateY(0) scale(1);
    }
}

.hero-cta .letter:nth-child(1) { animation-delay: 0s; }
.hero-cta .letter:nth-child(2) { animation-delay: 0.08s; }
.hero-cta .letter:nth-child(3) { animation-delay: 0.16s; }
.hero-cta .letter:nth-child(4) { animation-delay: 0.24s; }
.hero-cta .letter:nth-child(5) { animation-delay: 0.32s; }
.hero-cta .letter:nth-child(6) { animation-delay: 0.4s; }
.hero-cta .letter:nth-child(7) { animation-delay: 0.48s; }
.hero-cta .letter:nth-child(8) { animation-delay: 0.56s; }
.hero-cta .letter:nth-child(9) { animation-delay: 0.64s; }
.hero-cta .letter:nth-child(10) { animation-delay: 0.72s; }
.hero-cta .letter:nth-child(11) { animation-delay: 0.8s; }
.hero-cta .letter:nth-child(12) { animation-delay: 0.88s; }
.hero-cta .letter:nth-child(13) { animation-delay: 0.96s; }
.hero-cta .letter:nth-child(14) { animation-delay: 1.04s; }
.hero-cta .letter:nth-child(15) { animation-delay: 1.12s; }
.hero-cta .letter:nth-child(16) { animation-delay: 1.2s; }
.hero-cta .letter:nth-child(17) { animation-delay: 1.28s; }
.hero-cta .letter:nth-child(18) { animation-delay: 1.36s; }
.hero-cta .letter:nth-child(19) { animation-delay: 1.44s; }
.hero-cta .letter:nth-child(20) { animation-delay: 1.52s; }

.collection {
    padding: 6rem 2rem;
    background-color: var(--cream);
}

.collection-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 5rem;
}

.section-title {
    font-family: 'Tomato Drunk', sans-serif;
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--charcoal);
    position: relative;
}

.section-title.light {
    color: var(--soft-white);
}

.section-subtitle {
    font-size: 1.2rem;
    color: #666;
    font-style: italic;
}

.products-organic {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: flex-start;
}

.product-card {
    background: var(--soft-white);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.4s ease,
                border-radius 0.4s ease;
    opacity: 0;
    animation: floatIn 0.8s ease-out forwards;
}

@keyframes floatIn {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.card-1 { animation-delay: 0.1s; }
.card-2 { animation-delay: 0.15s; }
.card-3 { animation-delay: 0.2s; }
.card-4 { animation-delay: 0.25s; }
.card-5 { animation-delay: 0.3s; }
.card-6 { animation-delay: 0.35s; }
.card-7 { animation-delay: 0.4s; }
.card-8 { animation-delay: 0.45s; }
.card-9 { animation-delay: 0.5s; }
.card-10 { animation-delay: 0.55s; }

.card-large {
    flex: 1 1 calc(45% - 1rem);
    min-width: 350px;
}

.card-medium {
    flex: 1 1 calc(30% - 1rem);
    min-width: 300px;
}

.card-small {
    flex: 1 1 calc(25% - 1rem);
    min-width: 280px;
}

.product-card:hover {
    transform: translateY(-12px) rotate(2deg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border-radius: 40px;
}

.product-image {
    width: 100%;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.card-large .product-image {
    height: 400px;
}

.card-medium .product-image {
    height: 320px;
}

.card-small .product-image {
    height: 280px;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.15) 0%, transparent 50%);
    mix-blend-mode: overlay;
}

.product-info {
    padding: 2rem;
}

.product-name {
    font-family: 'Tomato Drunk', sans-serif;
    font-size: 1.8rem;
    color: var(--charcoal);
    margin-bottom: 0.5rem;
}

.product-description {
    font-family: 'Nunito', sans-serif;
    color: #666;
    font-size: 1rem;
    line-height: 1.7;
}

.stockists {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, #1a237e 0%, #004d40 100%);
    color: var(--soft-white);
    position: relative;
    overflow: hidden;
}

.stockists::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 80%;
    height: 150%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.stockists-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.stockists-intro {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 4rem;
    opacity: 0.9;
}

.stockist-flow {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    justify-content: center;
    align-items: stretch;
}

.stockist-item {
    flex: 1 1 220px;
    max-width: 280px;
    padding: 2.5rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 25px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                background 0.4s ease,
                border-radius 0.4s ease;
}

.stockist-item:hover {
    transform: translateY(-10px) scale(1.05);
    background: rgba(255, 255, 255, 0.18);
    border-radius: 30px;
}

.stockist-number {
    font-family: 'Tomato Drunk', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    opacity: 0.3;
    margin-bottom: 0.5rem;
}

.stockist-name {
    font-family: 'Tomato Drunk', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.stockist-location {
    font-size: 1rem;
    opacity: 0.85;
    font-style: italic;
}

.story {
    padding: 6rem 2rem;
    background-color: var(--soft-white);
}

.story-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 4rem;
    align-items: center;
    flex-wrap: wrap;
}

.story-text {
    flex: 1 1 500px;
}

.story-text p {
    font-size: 1.15rem;
    line-height: 1.9;
    color: #555;
    margin-bottom: 1.5rem;
}

.story-image {
    flex: 1 1 400px;
}

.story-placeholder {
    width: 100%;
    height: 500px;
    border-radius: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.story-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.2) 0%, transparent 60%);
}

.footer {
    background-color: var(--charcoal);
    color: var(--soft-white);
    text-align: center;
    padding: 2rem;
    font-size: 0.95rem;
    font-family: 'Tomato Drunk', sans-serif;
}

@media (max-width: 1024px) {
    .card-large,
    .card-medium,
    .card-small {
        flex: 1 1 calc(50% - 1rem);
        min-width: 300px;
    }

    .card-large .product-image,
    .card-medium .product-image,
    .card-small .product-image {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 1.5rem 1.5rem;
    }

    .nav {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .nav-links {
        gap: 1.5rem;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-text {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .card-large,
    .card-medium,
    .card-small {
        flex: 1 1 100%;
        max-width: 500px;
        margin: 0 auto;
    }

    .story-content {
        flex-direction: column;
    }

    .story-placeholder {
        height: 400px;
    }
}

@media (max-width: 480px) {
    .hero-wrapper {
        min-height: 500px;
    }

    .logo {
        font-size: 1.3rem;
    }

    .nav-links {
        flex-direction: column;
        gap: 0.8rem;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-text {
        font-size: 1rem;
    }

    .hero-cta {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .product-name {
        font-size: 1.5rem;
    }

    .stockist-number {
        font-size: 2.5rem;
    }

    .stockist-name {
        font-size: 1.5rem;
    }

    .story-placeholder {
        height: 300px;
    }
}
