/* CRUST & CORE - Industrial Dark Mode Theme */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Roboto:wght@400;500;700&display=swap');

:root {
    --bg-main: #121212;
    --bg-card: #1E1E1E;
    --text-main: #E5E5E5;
    --text-muted: #A0A0A0;
    --accent: #EAA636;
    /* Baker Template Gold */
    --border: #333333;

    --font-head: 'Playfair Display', serif;
    --font-mono: 'Roboto', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none;
    /* Hide default cursor for custom one */
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-mono);
    overflow-x: hidden;
    position: relative;
}

/* Noise Overlay */
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    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.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    z-index: 9999;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-head);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
}

a {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.3s ease;
}

/* Utility */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 4rem;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    mix-blend-mode: normal;
    /* Removed difference mode for better readability with bg */
    background-color: rgba(18, 18, 18, 0.95);
    /* Nearly solid dark background */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    height: 135px;
    /* Fixed height match logo */
    padding: 0 4rem;
    /* Adjusted padding */
}

.logo {
    position: relative;
    display: flex;
    align-items: center;
    width: auto;
    height: 100%;
}

.logo img {
    height: 135px !important;
    /* Force size */
    width: auto;
    position: static;
    /* standard positioning */
    transform: none;
    /* remove centering transform since container fits */
    z-index: 1000;
}

.nav-links {
    display: flex;
    gap: 3rem;
}

.nav-links a {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    position: relative;
    padding: 0.5rem 1rem;
    color: var(--text-muted);
    /* Default color */
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #FFFFFF;
    transform: scale(1.1);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}

/* Remove old underline effect if present, we are using glow now */
.nav-links a::before {
    content: none;
}

/* Hero Section */
.hero {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('./img/hero-bg-2.png');
    background-size: cover;
    background-position: center;
    filter: brightness(0.6) contrast(1.1);
    z-index: 0;
}

/* Dark Gradient Overlay - Lighter at bottom for text readability */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(18, 18, 18, 0.2) 0%, rgba(18, 18, 18, 0.4) 100%);
    z-index: 0;
}

.hero-content {
    text-align: left;
    z-index: 1;
    width: 100%;
    padding: 0 5%;
    /* Align to bottom left */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    height: 100%;
    padding-bottom: 8rem;
    /* Space for bottom edge */
}

.hero-title {
    font-family: var(--font-head);
    font-size: 8vw;
    /* Slightly smaller than Anton to fit elegant style */
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #FFFFFF;
    text-shadow: none;
    letter-spacing: 0;
    text-transform: capitalize;
    /* Baker style */
}

.hero-subtitle {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    color: var(--accent);
    margin-top: 0;
    letter-spacing: 2px;
    font-weight: 700;
    margin-bottom: 2rem;
    background: transparent;
    /* Removed dark box for cleaner look */
    padding: 0;
    text-transform: uppercase;
}

/* Marquee Section */
.marquee-container {
    background-color: var(--accent);
    color: #121212;
    padding: 1rem 0;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    z-index: 2;
    transform: rotate(-1deg) scale(1.05);
    /* Brutalist slight tilt */
    margin: 4rem 0;
    border-top: 2px solid #121212;
    border-bottom: 2px solid #121212;
}

.marquee-content {
    display: inline-block;
    animation: marquee 20s linear infinite;
}

.marquee-item {
    font-family: var(--font-head);
    font-size: 2rem;
    font-weight: 700;
    margin-right: 4rem;
    text-transform: uppercase;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Product Grid (Daily Bake) */
.daily-bake {
    padding: 8rem 0;
}

.section-header {
    margin-bottom: 4rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.section-title {
    font-size: 4rem;
    color: var(--text-main);
}

.section-subtitle {
    font-family: var(--font-mono);
    color: var(--text-muted);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.product-card {
    border: 1px solid var(--border);
    padding: 1.5rem;
    background: transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    border-color: var(--accent);
}

.product-card .text-center h3 {
    margin-bottom: 2rem !important;
}

.product-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    margin-bottom: 1.5rem;
    filter: contrast(1.1) saturate(0.8) sepia(0.2);
    transition: filter 0.3s ease, transform 0.5s ease;
}

.product-card:hover .product-image {
    filter: contrast(1.1) saturate(1.1) sepia(0);
    transform: scale(1.02);
}

.product-info h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--border);
}

.price {
    color: var(--accent);
    font-weight: 700;
}

/* Manifesto Section */
.manifesto {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 80vh;
    border-top: 1px solid var(--border);
}

.manifesto-text {
    padding: 6rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.manifesto-text h2 {
    font-size: 3.5rem;
    margin-bottom: 2rem;
    line-height: 1;
}

.manifesto-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 500px;
}

.manifesto-img {
    background-image: url('./img/about-1.jpg');
    background-size: cover;
    background-position: center;
    filter: grayscale(0.5) contrast(1.1);
}

/* Footer */
.footer {
    padding: 4rem 2rem;
    border-top: 1px solid var(--border);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.footer-col h4 {
    color: var(--text-main);
    margin-bottom: 1rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.5rem;
}

/* Custom Cursor */
.cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
    mix-blend-mode: difference;
}

.cursor.hovered {
    width: 50px;
    height: 50px;
    background-color: rgba(230, 126, 34, 0.2);
    border-color: transparent;
}

/* Base button style for magnetic effect target */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border: 2px solid var(--accent);
    color: var(--accent);
    font-family: var(--font-head);
    font-weight: 700;
    text-transform: uppercase;
    background: transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    background-color: var(--accent);
    color: #121212;
}


/* Responsive */
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .manifesto {
        grid-template-columns: 1fr;
    }

    .manifesto-img {
        height: 50vh;
    }
}

/* Hamburger default state (hidden on desktop) */
.hamburger {
    display: none;
    font-size: 1.5rem;
    color: var(--text-main);
    cursor: pointer;
    margin-left: auto;
}

/* Mobile Navbar styles */
@media (max-width: 768px) {
    .navbar {
        padding: 1.5rem;
        flex-wrap: wrap;
        /* Allow wrapping for menu */
        justify-content: space-between;
        /* Ensure logo and hamburger are apart */
        /* Ensure logo and hamburger are apart */
        height: 100px;
        /* Fixed height for mobile to maintain consistency */
        padding: 0 1.5rem;
        left: 0;
        transform: none;
        max-width: 100%;
        border-radius: 0;
        align-items: center;
        /* Ensure vertical centering */
    }

    .logo {
        width: auto;
        /* Reset width */
        height: auto;
    }

    .logo img {
        height: 90px !important;
        /* Larger logo for mobile, fitting in 100px header */
        position: static;
        transform: none;
    }

    .hamburger {
        display: block;
        /* Override default none */
        order: 2;
        /* Ensure it's on the right */
        margin-left: 0;
        /* Reset margin */
    }

    .nav-actions {
        display: none;
        order: 3;
    }

    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        background-color: rgba(18, 18, 18, 0.98);
        position: absolute;
        top: 100%;
        left: 0;
        padding: 1rem 0;
        border-bottom: 1px solid var(--border);
        text-align: center;
        gap: 1.5rem;
        z-index: 1000;
        /* Ensure it's on top */
    }

    .nav-links.active {
        display: flex;
    }

    .nav-link {
        padding: 1rem;
        display: block;
        width: 100%;
    }

    .hero-title {
        font-size: 15vw;
    }

    .product-grid,
    .team-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.5rem;
    }

    .product-image {
        height: 250px !important;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .manifesto-text {
        padding: 3rem 1.5rem;
    }
}

/* Page Header (Subpages) */
.page-header {
    background-image: url('./img/carousel-1.jpg');
    background-size: cover;
    background-position: center;
    padding: 10rem 0 6rem 0;
    margin-bottom: 4rem;
    position: relative;
    filter: none;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(18, 18, 18, 0.85);
    /* Dark overlay */
    z-index: 0;
}

.breadcrumb {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    gap: 1rem;
    font-family: var(--font-mono);
    color: var(--accent);
    margin-top: 1rem;
}

.breadcrumb a {
    color: var(--text-main);
}

.breadcrumb span {
    color: var(--text-muted);
}

/* Base Section Padding */
.py-6 {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

/* Facts Section */
.facts-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 6rem;
    padding: 3rem;
    border: 1px solid var(--border);
    background: rgba(30, 30, 30, 0.4);
}

.fact-item {
    text-align: center;
}

.fact-icon {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.fact-number {
    font-family: var(--font-head);
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-main);
}

.fact-label {
    font-family: var(--font-mono);
    color: var(--text-muted);
    text-transform: uppercase;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.service-icon-box {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    transition: transform 0.3s ease;
}

.service-icon-box:hover {
    transform: translateX(10px);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--accent);
    border-radius: 50%;
    /* Circle from Baker */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #121212;
    /* Dark icon on gold */
    font-size: 1.5rem;
    flex-shrink: 0;
}

.service-content h5 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.service-content span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.team-item {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-card);
}

.team-img {
    width: 100%;
    filter: grayscale(1);
    transition: filter 0.3s ease;
}

.team-item:hover .team-img {
    filter: grayscale(0);
}

.team-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    background: rgba(18, 18, 18, 0.95);
    transform: translateY(100%);
    transition: transform 0.4s ease;
    text-align: center;
}

.team-item:hover .team-info {
    transform: translateY(0);
}

.team-info h5 {
    color: var(--accent);
    margin-bottom: 0.2rem;
}

.team-info span {
    display: block;
    font-size: 0.8rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.team-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.team-social a {
    color: var(--text-muted);
    transition: color 0.3s;
}

.team-social a:hover {
    color: var(--accent);
}

/* Footer Extended */
.footer-extended {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4rem;
    padding: 6rem 2rem;
    background: #0a0a0a;
    border-top: 1px solid var(--border);
    margin-top: 4rem;
}

.footer-section h4 {
    margin-bottom: 2rem;
    font-family: var(--font-head);
    font-size: 1.5rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--text-muted);
    transition: color 0.3s, padding-left 0.3s;
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 10px;
}

.copyright-bar {
    background: black;
    padding: 2rem;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: #555;
    border-top: 1px solid #1a1a1a;
}

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--accent);
    color: #121212;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    z-index: 99;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 1.5rem;
}

.back-to-top.visible {
    opacity: 1;
}

/* Responsive Updates */
@media (max-width: 1024px) {
    .facts-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-extended {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .facts-container {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .footer-extended {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Product Detail Page Styles */
.product-detail-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.product-gallery {
    position: sticky;
    top: 100px;
}

.main-image-wrapper {
    width: 100%;
    height: 500px;
    border: 1px solid var(--border);
    margin-bottom: 1rem;
    overflow: hidden;
}

.main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.thumbnail-list {
    display: flex;
    gap: 1rem;
}

.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 1px solid var(--border);
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s, border-color 0.3s;
}

.thumbnail.active,
.thumbnail:hover {
    opacity: 1;
    border-color: var(--accent);
}

.product-info-detail {
    display: flex;
    flex-direction: column;
}

.product-header {
    border-bottom: 1px solid var(--border);
    padding-bottom: 2rem;
    margin-bottom: 2rem;
}

.product-subtitle {
    font-family: var(--font-mono);
    color: var(--accent);
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.product-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.product-price {
    font-family: var(--font-head);
    font-size: 2.5rem;
    color: var(--primary);
    /* Assuming white/light */
    font-weight: 700;
}

.product-description {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 3rem;
}

.product-meta-list {
    display: grid;
    gap: 1rem;
    margin-bottom: 3rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border: 1px dashed var(--border);
}

.meta-item {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
}

.meta-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.meta-label {
    font-weight: 700;
    color: var(--text-main);
}

.meta-value {
    color: var(--text-muted);
}

.product-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.quantity-selector {
    display: flex;
    border: 1px solid var(--border);
    height: 60px;
    /* Match btn height roughly */
}

.qty-btn {
    width: 50px;
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
}

.qty-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

#qty {
    width: 60px;
    background: transparent;
    border: none;
    color: var(--text-main);
    text-align: center;
    font-family: var(--font-mono);
    font-size: 1.2rem;
    -moz-appearance: textfield;
    appearance: textfield;
}

#qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

.product-tags {
    display: flex;
    gap: 1rem;
}

.product-tags span {
    font-family: var(--font-mono);
    color: var(--text-muted);
    font-size: 0.9rem;
    font-style: italic;
}

/* Ingredients Grid */
.ingredients-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    width: 100%;
}

.ingredient-box {
    border: 1px solid var(--border);
    padding: 2rem;
    background: var(--bg-card);
}

.ingredient-box h4 {
    color: var(--accent);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.ingredient-box ul {
    list-style: none;
    color: var(--text-muted);
}

.ingredient-box ul li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
}

.ingredient-box ul li::before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    background: var(--accent);
    margin-right: 10px;
    border-radius: 50%;
}

/* Responsive for Product Detail */
@media (max-width: 992px) {
    .product-detail-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .product-gallery {
        position: static;
    }

    .main-image-wrapper {
        height: 400px;
    }

    .product-title {
        font-size: 2.5rem;
    }

    .ingredients-grid {
        grid-template-columns: 1fr;
    }
}

/* Global Product Card Styles (Restored & Refined) */
.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: transform 0.3s, border-color 0.3s;
    overflow: hidden;
    height: 100%;
    /* Ensure cards in grid are same height */
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.product-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 250px;
    /* Reduced from 300px per user request */
    flex-shrink: 0;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-card:hover .product-img {
    transform: scale(1.1);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-card .text-center {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-top: 2rem !important;
}

.price-badge {
    display: inline-block;
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 0.2rem 1rem;
    border-radius: 50px;
    margin-bottom: 1rem;
    font-family: var(--font-mono);
    align-self: center;
}