/* ============================================
   BUSTIN' CHOPS - STYLES
   ============================================
   
   Table of Contents:
   1. CSS Variables
   2. Reset & Base Styles
   3. Typography
   4. Layout
   5. Header
   6. WhatsApp Section
   7. Main Section & Products
   8. Find Us Section
   9. Footer
   10. Utilities
   11. Animations
   12. Media Queries

   ============================================ */

/* ============================================
   1. CSS VARIABLES
   ============================================ */
:root {
    /* Colors */
    --color-dark-brown: #391f0d;
    --color-rust: #aa3d1d;
    --color-cream: #f3efe7;
    --color-warm-gray: #c5bbb1;
    --color-dark-rust: #672714;
    --color-black: #1a1a1a;
    --color-whatsapp: #25d366;

    /* Typography */
    --font-primary: "Poppins", sans-serif;

    /* Spacing */
    --spacing-xs: 10px;
    --spacing-sm: 15px;
    --spacing-md: 20px;
    --spacing-lg: 30px;
    --spacing-xl: 50px;
    --spacing-xxl: 80px;

    /* Transitions */
    --transition-fast: 0.15s ease-out;
    --transition-normal: 0.3s ease;
    --transition-tilt: 0.1s ease-out;

    /* 3D Effects */
    --perspective: 1000px;
    --max-tilt: 25deg;
}

/* ============================================
   2. RESET & BASE STYLES
   ============================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-dark-brown);
    color: var(--color-cream);
    line-height: 1.6;
    overflow-x: hidden;
}

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

a {
    color: var(--color-cream);
    text-decoration: none;
    transition: opacity var(--transition-normal);
}

a:hover {
    opacity: 0.85;
}

/* ============================================
   3. TYPOGRAPHY
   ============================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    line-height: 1.3;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 400;
    font-style: italic;
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

/* ============================================
   4. LAYOUT
   ============================================ */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ============================================
   4.5 NAVIGATION
   ============================================ */
.main-nav {
    background-color: var(--color-dark-brown);
    padding: 15px 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-cream);
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: var(--color-cream);
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
    padding: 8px 0;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--color-rust);
}

.nav-order {
    background-color: var(--color-rust) !important;
    padding: 10px 20px !important;
    border-radius: 4px;
    font-weight: 600 !important;
}

.nav-order:hover {
    background-color: var(--color-dark-rust) !important;
    color: var(--color-cream) !important;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--color-cream);
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--color-dark-brown);
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        display: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

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

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

/* ============================================
   5. HEADER
   ============================================ */
.header {
    background-color: var(--color-dark-brown);
    overflow: hidden;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    /* No max-width - go full edge to edge */
}

.hanging-biltong {
    width: 400px;
    max-width: 28vw;
    transform-origin: top center;
    /* Entry animation */
    animation: swingIn 1.8s ease-out forwards;
    /* Enable 3D transforms for mouse tracking */
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
}

.hanging-biltong.mirrored {
    transform: scaleX(-1);
    animation: swingInMirrored 1.8s ease-out forwards;
}

.logo-center {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 20px;
}

.logo-center img {
    max-width: 500px;
    width: 100%;
    height: auto;
}

/* ============================================
   6. WHATSAPP SECTION
   ============================================ */
.whatsapp-section {
    text-align: center;
    padding: var(--spacing-lg) 0 var(--spacing-md);
    background-color: var(--color-dark-brown);
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    background-color: var(--color-whatsapp);
    border-radius: 50%;
    transition: transform var(--transition-normal),
        box-shadow var(--transition-normal);
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    opacity: 1;
}

.whatsapp-btn svg {
    width: 30px;
    height: 30px;
    fill: white;
}

.order-text {
    margin-top: var(--spacing-sm);
    font-size: 1.1rem;
    color: var(--color-cream);
}

/* ============================================
   7. MAIN SECTION & PRODUCTS
   ============================================ */
.main-section {
    background-color: var(--color-dark-brown);
    padding: 40px var(--spacing-md) var(--spacing-xxl);
}

.main-content {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-lg);
}

/* Floating Product Images */
.floating-product {
    flex: 0 0 300px;
    max-width: 300px;
    perspective: var(--perspective);
}

.floating-product img {
    width: 100%;
    transform-style: preserve-3d;
    transition: transform var(--transition-tilt);
    will-change: transform;
}

/* Products Grid */
.products-grid {
    flex: 0 1 480px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.product-card {
    display: block;
    background-color: var(--color-rust);
    padding: 22px 18px;
    text-align: center;
    border-radius: 3px;
    transition: transform var(--transition-normal),
        box-shadow var(--transition-normal);
    text-decoration: none;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    opacity: 1;
}

.product-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    color: var(--color-cream);
}

.product-description {
    font-size: 0.8rem;
    font-weight: 300;
    color: var(--color-cream);
    opacity: 0.95;
    line-height: 1.5;
}

.product-link {
    display: inline-block;
    margin-top: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-cream);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-link {
    opacity: 1;
}

/* ============================================
   8. FIND US SECTION
   ============================================ */
.find-us {
    background-color: var(--color-dark-brown);
    padding: var(--spacing-xl) var(--spacing-md) 70px;
    text-align: center;
}

.partners {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
}

.partner-link {
    background: white;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: 50%;
    transition: transform var(--transition-normal),
        box-shadow var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-link--square {
    border-radius: 8px;
}

.partner-link:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    opacity: 1;
}

.partner-link img {
    max-width: 110px;
    height: auto;
}

/* ============================================
   8.5 ABOUT PAGE
   ============================================ */
.about-hero {
    background-color: var(--color-dark-brown);
    background-image: linear-gradient(
            rgba(57, 31, 13, 0.65),
            rgba(57, 31, 13, 0.55)
        ),
        url("https://s3.amazonaws.com/shecodesio-production/uploads/files/000/174/731/original/My-simplecollage.com-thumbs_1200.jpg?1760216144");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-align: center;
    padding: 180px 20px 160px;
    min-height: 60vh;
}

.about-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--color-warm-gray);
    font-weight: 300;
}

.about-main {
    background-color: var(--color-dark-brown);
    padding: 40px 20px 80px;
}

.about-container {
    max-width: 1100px;
    margin: 0 auto;
}

.about-section {
    display: flex;
    gap: 50px;
    align-items: center;
    margin-bottom: 80px;
}

.about-section.reverse {
    flex-direction: row-reverse;
}

.about-section.centered {
    flex-direction: column;
    text-align: center;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--color-cream);
}

.about-text p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-warm-gray);
    margin-bottom: 15px;
}

.about-image {
    flex: 0 0 350px;
}

.about-image img {
    max-width: 100%;
    border-radius: 8px;
}

.market-cards {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

.market-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    flex: 0 0 250px;
}

.market-card img {
    max-width: 120px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: white;
    padding: 10px;
}

.market-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.market-card p {
    font-size: 0.9rem;
    color: var(--color-warm-gray);
    margin: 5px 0;
}

/* App Promo Section */
.app-promo {
    background: linear-gradient(
        135deg,
        var(--color-rust),
        var(--color-dark-rust)
    );
    border-radius: 12px;
    padding: 50px;
    text-align: center;
    margin-top: 60px;
}

.app-promo h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.app-promo p {
    color: var(--color-cream);
    opacity: 0.9;
    max-width: 500px;
    margin: 0 auto 25px;
}

.app-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.app-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.3);
    padding: 12px 24px;
    border-radius: 8px;
    color: var(--color-cream);
    text-decoration: none;
    transition: background 0.3s ease;
}

.app-btn:hover {
    background: rgba(0, 0, 0, 0.5);
    opacity: 1;
}

.app-btn svg {
    width: 28px;
    height: 28px;
}

.app-btn span {
    text-align: left;
}

.app-btn small {
    display: block;
    font-size: 0.7rem;
    opacity: 0.7;
}

.app-btn--placeholder {
    opacity: 0.7;
    cursor: not-allowed;
}

.app-note {
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.whatsapp-order-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--color-whatsapp);
    padding: 15px 30px;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-order-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    opacity: 1;
}

.whatsapp-order-btn svg {
    width: 24px;
    height: 24px;
}

/* ============================================
   8.6 PRODUCT DETAIL PAGES
   ============================================ */
.product-hero {
    background-color: var(--color-dark-brown);
    text-align: center;
    padding: 40px 20px 30px;
}

.back-link {
    display: inline-block;
    color: var(--color-warm-gray);
    font-size: 0.9rem;
    margin-bottom: 20px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: var(--color-cream);
}

.product-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.product-tagline {
    font-size: 1.1rem;
    color: var(--color-warm-gray);
}

.product-main {
    background-color: var(--color-dark-brown);
    padding: 40px 20px 80px;
}

.product-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.product-gallery {
    position: sticky;
    top: 100px;
    align-self: start;
}

.gallery-main {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
}

.gallery-image {
    width: 100%;
    border-radius: 8px;
}

.gallery-thumbs {
    display: flex;
    gap: 10px;
}

.thumb {
    flex: 1;
    aspect-ratio: 1;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease;
}

.thumb:hover {
    background: rgba(255, 255, 255, 0.1);
}

.thumb.placeholder {
    border: 2px dashed rgba(255, 255, 255, 0.2);
}

.thumb.placeholder span {
    font-size: 0.75rem;
    color: var(--color-warm-gray);
    text-align: center;
}

.product-details {
    padding-top: 20px;
}

.product-price {
    margin-bottom: 30px;
}

.product-price .price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-cream);
}

.product-price .unit {
    font-size: 1rem;
    color: var(--color-warm-gray);
    margin-left: 5px;
}

.product-description-full h2 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.product-description-full p {
    color: var(--color-warm-gray);
    line-height: 1.7;
    margin-bottom: 15px;
}

.product-specs {
    margin: 40px 0;
    padding: 25px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.product-specs h3 {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.specs-list {
    list-style: none;
}

.specs-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.specs-list li:last-child {
    border-bottom: none;
}

.spec-icon {
    font-size: 1.5rem;
}

.product-order {
    background: linear-gradient(
        135deg,
        var(--color-rust),
        var(--color-dark-rust)
    );
    padding: 30px;
    border-radius: 12px;
}

.product-order h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.product-order p {
    opacity: 0.9;
    margin-bottom: 20px;
}

.order-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.order-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 15px 25px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.order-btn--whatsapp {
    background: var(--color-whatsapp);
    color: white;
}

.order-btn--whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    opacity: 1;
}

.order-btn--app {
    background: rgba(0, 0, 0, 0.3);
    color: var(--color-cream);
}

.order-btn--app:hover {
    background: rgba(0, 0, 0, 0.5);
    opacity: 1;
}

/* Other Products Section */
.other-products {
    background-color: var(--color-dark-brown);
    padding: 60px 20px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.other-products h2 {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.other-products-grid {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 800px;
    margin: 0 auto;
}

.other-product-card {
    background: var(--color-rust);
    padding: 20px 30px;
    border-radius: 8px;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-width: 200px;
}

.other-product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    opacity: 1;
}

.other-product-card h3 {
    font-size: 1rem;
    color: var(--color-cream);
    margin-bottom: 5px;
}

.other-product-card span {
    font-size: 0.85rem;
    color: var(--color-cream);
    opacity: 0.8;
}

/* Responsive for product pages */
@media (max-width: 900px) {
    .product-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .product-gallery {
        position: static;
    }

    .about-section {
        flex-direction: column;
    }

    .about-section.reverse {
        flex-direction: column;
    }

    .about-image {
        flex: none;
        width: 100%;
        max-width: 400px;
    }
}

@media (max-width: 600px) {
    .about-hero h1 {
        font-size: 2rem;
    }

    .product-hero h1 {
        font-size: 2rem;
    }

    .app-promo {
        padding: 30px 20px;
    }

    .app-buttons {
        flex-direction: column;
    }

    .market-cards {
        flex-direction: column;
        align-items: center;
    }
}

/* ============================================
   9. FOOTER
   ============================================ */
.footer {
    background-color: var(--color-black);
    text-align: center;
    padding: 25px var(--spacing-md);
}

.footer p {
    font-size: 0.85rem;
    color: var(--color-warm-gray);
}

/* ============================================
   10. UTILITIES
   ============================================ */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================
   11. ANIMATIONS
   ============================================ */

/* Swing in animation for hanging biltong - like just hung up */
@keyframes swingIn {
    0% {
        transform: rotate(-20deg) translateY(-30px);
        opacity: 0;
    }
    15% {
        opacity: 1;
    }
    30% {
        transform: rotate(15deg) translateY(0);
    }
    50% {
        transform: rotate(-10deg);
    }
    70% {
        transform: rotate(6deg);
    }
    85% {
        transform: rotate(-3deg);
    }
    100% {
        transform: rotate(0deg);
    }
}

@keyframes swingInMirrored {
    0% {
        transform: scaleX(-1) rotate(-20deg) translateY(-30px);
        opacity: 0;
    }
    15% {
        opacity: 1;
    }
    30% {
        transform: scaleX(-1) rotate(15deg) translateY(0);
    }
    50% {
        transform: scaleX(-1) rotate(-10deg);
    }
    70% {
        transform: scaleX(-1) rotate(6deg);
    }
    85% {
        transform: scaleX(-1) rotate(-3deg);
    }
    100% {
        transform: scaleX(-1) rotate(0deg);
    }
}

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

/* ============================================
   12. MEDIA QUERIES
   ============================================ */

/* Large screens */
@media (max-width: 1100px) {
    .floating-product {
        flex: 0 0 220px;
        max-width: 220px;
    }

    .products-grid {
        flex: 0 1 400px;
    }

    .hanging-biltong {
        width: 320px;
    }

    .logo-center img {
        max-width: 380px;
    }
}

/* Medium screens */
@media (max-width: 900px) {
    .main-content {
        flex-wrap: wrap;
    }

    .floating-product {
        flex: 0 0 200px;
        max-width: 200px;
    }

    .products-grid {
        order: -1;
        flex: 1 1 100%;
        max-width: 500px;
    }

    .hanging-biltong {
        width: 250px;
    }

    .logo-center img {
        max-width: 300px;
    }
}

/* Tablets */
@media (max-width: 768px) {
    .hanging-biltong {
        width: 200px;
    }

    .logo-center {
        padding-top: 15px;
    }

    .logo-center img {
        max-width: 220px;
    }

    .floating-product {
        display: none;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .product-card {
        padding: 18px 15px;
    }

    .product-title {
        font-size: 1.1rem;
    }

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

    .partner-link img {
        max-width: 90px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .hanging-biltong {
        width: 130px;
    }

    .logo-center img {
        max-width: 160px;
    }

    .order-text {
        font-size: 0.95rem;
        padding: 0 var(--spacing-xs);
    }
}

/* Accessibility: Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .floating-product img,
    .hanging-biltong {
        transition: none;
        animation: none;
    }
}
