/* 
 * Chonks Redesign - Main Stylesheet
 * Design: Artisan Bakery Luxe
 */

/* ========== CSS Variables ========== */
:root {
    --cream: #FDF6EC;
    --chocolate: #3D2B1F;
    --caramel: #C87941;
    --espresso: #1A120B;
    --gold: #D4A574;
    --warm-white: #FFFAF5;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
}

/* ========== Reset & Base ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--warm-white);
    color: var(--chocolate);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
ul { list-style: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========== Header styles are in header.php inline <style> ========== */
/* This file covers body, sections, and components only */

/* ========== Hero Section ========== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--espresso);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('assets/images/featured-cookie-new.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.45;
    transform: scale(1.05);
    animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
    from { transform: scale(1.05); }
    to { transform: scale(1.15); }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(26, 18, 11, 0.3) 0%,
        rgba(26, 18, 11, 0.1) 50%,
        rgba(26, 18, 11, 0.6) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 24px;
    max-width: 800px;
}

.hero-badge {
    display: inline-block;
    background: rgba(200, 121, 65, 0.2);
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 8px 24px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(48px, 8vw, 96px);
    font-weight: 800;
    color: var(--warm-white);
    line-height: 1.05;
    margin-bottom: 20px;
    text-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.hero h1 em {
    font-style: italic;
    color: var(--gold);
}

.hero p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 36px;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--caramel);
    color: var(--warm-white);
    padding: 16px 36px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: 2px solid var(--caramel);
}

.btn-primary:hover {
    background: transparent;
    color: var(--caramel);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(200, 121, 65, 0.3);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--warm-white);
    padding: 16px 36px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.5px;
    border: 2px solid rgba(255,255,255,0.3);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    border-color: var(--warm-white);
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

/* ========== Marquee Ticker ========== */
.ticker {
    background: var(--chocolate);
    padding: 14px 0;
    overflow: hidden;
    white-space: nowrap;
}

.ticker-inner {
    display: inline-flex;
    animation: tickerScroll 25s linear infinite;
}

.ticker-inner span {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    padding: 0 40px;
}

.ticker-inner span::before {
    content: '✦';
    margin-right: 40px;
    color: var(--caramel);
}

@keyframes tickerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ========== Section Commons ========== */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--caramel);
    margin-bottom: 12px;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: clamp(36px, 5vw, 52px);
    font-weight: 700;
    color: var(--chocolate);
    line-height: 1.15;
    margin-bottom: 16px;
}

.section-header p {
    font-size: 17px;
    color: #7A6B5D;
    max-width: 520px;
    margin: 0 auto;
}

/* ========== Products Section ========== */
.products-section {
    background: var(--cream);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.product-card {
    background: var(--warm-white);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(61, 43, 31, 0.12);
}

.product-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.08);
}

.product-price-badge {
    position: absolute;
    top: 16px; right: 16px;
    background: var(--chocolate);
    color: var(--gold);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
}

.product-info {
    padding: 24px;
}

.product-info h3 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--chocolate);
}

.product-info .product-highlight {
    font-size: 13px;
    color: var(--caramel);
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.product-info .product-desc {
    font-size: 14px;
    color: #8A7B6D;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--espresso);
    color: var(--warm-white);
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.product-btn:hover {
    background: var(--caramel);
    transform: translateY(-1px);
}

.view-all-wrap {
    text-align: center;
    margin-top: 50px;
}

.view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 2px solid var(--chocolate);
    color: var(--chocolate);
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.view-all-btn:hover {
    background: var(--chocolate);
    color: var(--warm-white);
}

/* ========== Story Section ========== */
.story-section {
    background: var(--warm-white);
}

.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.story-image {
    border-radius: 24px;
    overflow: hidden;
    position: relative;
}

.story-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.story-image::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 40%;
    background: linear-gradient(transparent, rgba(26, 18, 11, 0.2));
}

.story-text .section-badge { text-align: left; }

.story-text h2 {
    font-family: var(--font-heading);
    font-size: clamp(30px, 4vw, 42px);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.story-text p {
    font-size: 16px;
    color: #6B5D52;
    margin-bottom: 16px;
    line-height: 1.8;
}

.story-text a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--caramel);
    font-weight: 600;
    font-size: 15px;
    margin-top: 12px;
}

.story-text a:hover { gap: 12px; }

/* ========== Instagram Section ========== */
.insta-section {
    background: var(--cream);
    padding-bottom: 60px;
}

.insta-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    max-width: 1200px;
    margin: 0 auto 30px;
    padding: 0 24px;
}

.insta-grid a {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 12px;
    display: block;
    background: var(--espresso);
}

.insta-grid a::after {
    content: '📷';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    background: rgba(26, 18, 11, 0.6);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.insta-grid a:hover::after { opacity: 1; }

.insta-follow {
    text-align: center;
}

.insta-follow a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--chocolate);
    border-bottom: 2px solid var(--caramel);
    padding-bottom: 2px;
}

/* ========== Corporate Section ========== */
.corporate-section {
    background: var(--espresso);
    color: var(--cream);
}

.corporate-section .section-badge { color: var(--gold); }

.corporate-section .section-header h2 { color: var(--warm-white); }
.corporate-section .section-header p { color: rgba(255,255,255,0.6); }

.corporate-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.corporate-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px 32px;
    text-align: center;
    transition: all 0.3s ease;
}

.corporate-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
}

.corporate-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.corporate-card h3 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
}

.corporate-card p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
}

.corporate-cta {
    text-align: center;
    margin-top: 50px;
}

/* ========== Footer ========== */
.site-footer {
    background: var(--chocolate);
    color: var(--cream);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand h4 {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.footer-brand p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.7;
    max-width: 300px;
}

.footer-column h4 {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 20px;
}

.footer-column a {
    display: block;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    padding: 6px 0;
}

.footer-column a:hover { color: var(--gold); }

.footer-wa-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--caramel);
    color: var(--warm-white);
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-top: 16px;
    transition: all 0.3s ease;
}

.footer-wa-btn:hover {
    background: var(--gold);
    color: var(--chocolate);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.35);
}

/* ========== Scroll Animations ========== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .header-cta.desktop-only { display: none; }
    .menu-toggle { display: flex; }

    .hero h1 { font-size: clamp(36px, 10vw, 56px); }
    .hero p { font-size: 16px; }

    .story-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .story-image img { height: 300px; }

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

    .insta-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .corporate-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .section { padding: 60px 0; }
}

@media (max-width: 480px) {
    .products-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero-buttons { flex-direction: column; align-items: center; }
}
