/* Base Styles */
:root {
    --background-color: #F2F0EC;
    --text-color: #0F0B0B;
    --accent-color-red: #A83232;
    --accent-color-yellow: #E6B325;
    --font-heading: 'Baloo 2', cursive;
    --font-body: 'Inter', sans-serif;
    /* BryGuy's Pies dark system */
    --bg-deep: #0B0A09;
    --cream: #F2EFE7;
    --muted-red: #9F2D2D;
    --shadow-strong: 0 12px 40px rgba(0,0,0,0.45);
    /* Dough by Night system */
    --dough-bg: #F7F3EC;
    --dough-text: #1C1A19;
    --dough-orange: #D97B2D;
    --dough-gray: #6E6862;
}

/* Homepage: hide the in-nav logo on desktop to keep existing centered layout */
@media (min-width: 769px) {
  .homepage-header .main-nav .logo-container { display: none; }
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-deep);
    color: var(--cream);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 0.5em;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--muted-red);
}

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

/* Navigation */
.homepage-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 0.25rem;
}

.brand-stamp {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.4rem 0 0.05rem;
}

.brand-logo {
    width: 320px;
    height: auto;
    max-width: 90vw;
    image-rendering: auto;
    -webkit-user-drag: none;
    user-select: none;
    filter: drop-shadow(0 6px 18px rgba(0,0,0,0.18));
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: var(--bg-deep);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
}

.main-nav.centered {
    width: 100%;
    max-width: 1100px;
    justify-content: center;
    gap: 2rem;
}

.logo-container {
    flex: 0 0 150px;
}

.logo {
    max-height: 60px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-family: var(--font-heading);
    font-weight: 600;
    position: relative;
    color: var(--cream);
}

.nav-links a.active::after,
.nav-links a:hover::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-color-red);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background-color: var(--cream);
    transition: all 0.3s ease;
}

/* Active (X) animation */
.mobile-menu-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Hero Sections */
.hero, .about-hero, .menu-hero, .how-it-works-hero, .shop-hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    background-image: url('../images/texture-bg.svg');
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero::before, .about-hero::before, .menu-hero::before, .how-it-works-hero::before, .shop-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(11,10,9,0.75), rgba(11,10,9,0.75));
    z-index: 1;
}

/* Light hero utility for Dough by Night sections */
.hero-light::before {
    background: linear-gradient(rgba(247,243,236,0.92), rgba(247,243,236,0.92));
}

.hero-content, .about-content, .menu-content, .how-it-works-content, .shop-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero h1, .about-hero h1, .menu-hero h1, .how-it-works-hero h1, .shop-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.subtext {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 300;
}

.tagline {
    font-size: 1.25rem;
    font-style: italic;
    margin-bottom: 2rem;
}

/* Buttons: Unified base */
.cta-button, .btn-outline, .submit-button, .btn-secondary {
    display: inline-flex; 
    align-items: center; 
    justify-content: center;
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: .02em;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

/* Primary button */
.cta-button {
    background-color: var(--muted-red);
    color: var(--cream);
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.cta-button:hover {
    background-color: #7f2222;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
}

.cta-button:focus-visible, .btn-outline:focus-visible, .submit-button:focus-visible {
    outline: 2px solid var(--muted-red);
    outline-offset: 2px;
}

/* Dark hero variant for BryGuy's Pies */
.hero-dark {
    background-color: var(--bg-deep);
}

.hero-dark::before {
    background: radial-gradient(1200px 600px at 50% -10%, rgba(255,255,255,0.08), rgba(0,0,0,0.6)),
                linear-gradient(rgba(11,10,9,0.75), rgba(11,10,9,0.75));
}

.hero-dark .hero-content {
    color: var(--cream);
    text-shadow: 0 2px 24px rgba(0,0,0,0.35);
}

.hero-dark .subtext { color: rgba(242,239,231,0.9); }

.hero-dark .cta-button { background-color: var(--muted-red); color: var(--cream); }
.hero-dark .cta-button:hover { background-color: #7f2222; }

/* Dark-friendly inputs in dark hero */
.hero-dark .signup-form input[type="text"],
.hero-dark .signup-form input[type="email"],
.hero-dark .signup-form input[type="tel"],
.hero-dark .signup-form input[type="password"] {
    background: #141311;
    color: var(--cream);
    border: 1px solid #2a2725;
}

.hero-dark .signup-form input::placeholder {
    color: rgba(242,239,231,0.65);
}

/* Embedded Signup Form (Homepage) */
.signup-form {
    margin-top: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.signup-form input[type="text"],
.signup-form input[type="email"],
.signup-form input[type="tel"] {
    width: 100%;
    padding: 0.85rem 0.9rem;
    border: 1px solid rgba(15, 11, 11, 0.15);
    border-radius: 6px;
    font-size: 1rem;
    background: #fff;
}

.sms-consent {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: rgba(15, 11, 11, 0.85);
}

.form-disclaimer {
    font-size: 0.85rem;
    color: rgba(15, 11, 11, 0.65);
}

.inline-form-success {
    margin-top: 1rem;
}

.success-animation {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    letter-spacing: 1px;
}

.access-granted {
    font-weight: 700;
}

.hidden { display: none; }

/* Secret Section */
.secret-section {
    padding: 4rem 2rem;
    text-align: center;
}

.reveal-container {
    overflow: hidden;
}

.reveal-text {
    font-size: 2rem;
    opacity: 0;
    transform: translateY(20px);
    animation: reveal 1s forwards;
    animation-delay: 0.5s;
}

@keyframes reveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Teaser Section */
.teaser {
    padding: 4rem 2rem;
    background-color: #0F0B0B;
    color: var(--background-color);
    text-align: center;
}

.teaser-content {
    max-width: 800px;
    margin: 0 auto;
}

.teaser h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.mystery-meter {
    margin-top: 3rem;
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.meter-container {
    height: 20px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    margin: 1rem 0;
    overflow: hidden;
}

.meter-fill {
    height: 100%;
    width: 35%;
    background-color: var(--accent-color-red);
    border-radius: 10px;
    transition: width 1.5s ease;
}

.meter-label {
    font-style: italic;
    font-size: 0.9rem;
}

.member-counter {
    margin-top: 1rem;
    opacity: 0.95;
}

.menu-item p {
    opacity: 0.9;
}

/* Special styling for the all-pies add-on card */
.menu-item.drizzle {
  grid-column: 1 / -1; /* full width highlight */
  background: linear-gradient(180deg, #191716, #141311);
  border: 1px solid var(--muted-red);
  box-shadow: 0 20px 60px rgba(190, 60, 60, 0.15), 0 10px 30px rgba(0,0,0,0.5);
  position: relative;
}
.menu-item.drizzle .status-tag { background: var(--accent-color-red); color: var(--cream); }
.menu-item.drizzle h2 { color: var(--cream); }
.menu-item.drizzle .description { opacity: .95; }
.menu-item.drizzle .pill.small {
  position: absolute; top: 1rem; right: 1rem;
  background: rgba(190,60,60,0.15);
  border: 1px solid var(--muted-red);
  color: var(--cream);
}

/* Pill small modifier */
.pill.small { padding: .3rem .6rem; font-size: .8rem; }

/* Split identity section: BryGuy's Pies + Dough by Night */
.split-identity {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 4rem 2rem;
}

.brand-card {
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 8px 28px rgba(0,0,0,0.12);
}

.brand-card h3 { margin-bottom: 0.5rem; }
.brand-card p { margin-bottom: 1rem; }

.brand-card .mini-grid {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
}

/* Bry theme */
.brand-card.bry {
    background: linear-gradient(180deg, #121110, #0B0A09);
    color: var(--cream);
}

.brand-card.bry .cta-button { background: var(--muted-red); color: var(--cream); }
.brand-card.bry .cta-button:hover { background: #7f2222; }

/* Dough theme */
.brand-card.dough {
    background: var(--dough-bg);
    color: var(--dough-text);
}

.brand-card.dough .cta-button { background: var(--muted-red); color: var(--cream); }
.brand-card.dough .cta-button:hover { background: #7f2222; }

@media (min-width: 900px) {
  .split-identity { grid-template-columns: 1fr 1fr; }
}

/* About Page Styles */
.mystery-story {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
}

.mystery-story p {
    margin-bottom: 1.5rem;
}

.redacted-section {
    padding: 4rem 2rem;
    background-color: #0F0B0B;
    color: var(--background-color);
}

.redacted-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.redacted-map {
    position: relative;
    margin: 2rem 0;
}

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

/* Embedded SVG map */
.map-object {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    border: none;
    border-radius: 8px;
    overflow: hidden;
}

.redacted-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        45deg,
        rgba(0, 0, 0, 0.2),
        rgba(0, 0, 0, 0.2) 10px,
        rgba(0, 0, 0, 0.3) 10px,
        rgba(0, 0, 0, 0.3) 20px
    );
}

.redacted-text {
    font-size: 1.1rem;
    line-height: 2;
}

.redacted {
    background-color: #000;
    padding: 0.2em 0.5em;
    border-radius: 3px;
    user-select: none;
}

.secret-ingredients {
    padding: 4rem 2rem;
    text-align: center;
}

.ingredient-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.ingredient {
    flex: 1 1 300px;
    padding: 1.5rem;
    border: 1px solid rgba(15, 11, 11, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.ingredient:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.secret-text {
    position: relative;
    color: transparent;
    background-color: rgba(15, 11, 11, 0.2);
    padding: 0.2em 0.5em;
    border-radius: 3px;
    cursor: help;
}

.secret-text:hover {
    color: var(--accent-color-red);
    background-color: transparent;
}

/* Menu hover redaction effect */
.menu-items .description {
    position: relative;
}

.menu-items .menu-item:hover .description::after {
    content: none;
}

/* Easter egg button */
.easter-egg {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    margin-left: 0.5rem;
}

/* Moody photography style */
.gallery-image,
img.gallery-image {
    filter: contrast(1.05) saturate(1.08) brightness(0.92);
}

/* Responsive tweaks */
@media (min-width: 640px) {
    .form-row { grid-template-columns: 1fr 1fr; }
}

/* How It Works Page Styles */
.steps-section {
    padding: 4rem 2rem;
}

.steps-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.step {
    flex: 1 1 300px;
    padding: 2rem;
    text-align: center;
    border-radius: 10px;
    background-color: #141311;
    color: var(--cream);
    box-shadow: var(--shadow-strong);
    border: 1px solid #22201e;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.45);
}

.step-icon {
    margin-bottom: 1.5rem;
    color: var(--accent-color-red);
}

.delivery-zone {
    padding: 4rem 2rem;
    background-color: #0F0B0B;
    color: var(--background-color);
    text-align: center;
}

.zip-checker {
    max-width: 500px;
    margin: 2rem auto;
}

.zip-input-group {
    display: flex;
    margin-top: 1rem;
}

.zip-input-group input {
    flex: 1;
    padding: 0.75rem;
    border: none;
    border-radius: 4px 0 0 4px;
    font-size: 1rem;
}

.zip-input-group button {
    padding: 0.75rem 1.5rem;
    background-color: var(--accent-color-red);
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 600;
}

.zip-result {
    margin-top: 1.5rem;
    font-size: 1.2rem;
    min-height: 50px;
}

.cta-section {
    padding: 4rem 2rem;
    text-align: center;
    background-color: var(--background-color);
    color: var(--text-color);
}

/* Menu Page Styles */
.menu-items {
    padding: 4rem 2rem;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.menu-item {
    padding: 2rem;
    border-radius: 10px;
    background-color: #141311;
    color: var(--cream);
    box-shadow: var(--shadow-strong);
    border: 1px solid #22201e;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.menu-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.45);
}

.menu-item h2 {
    margin-bottom: 1rem;
}

.description {
    margin-bottom: 2rem;
}

.status-tag {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    padding: 0.5em 1em;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-tag.available { background-color: #2e7d32; color: #e8f5e9; }

.status-tag.sold-out { background-color: #c62828; color: #ffebee; }

.status-tag.coming-soon { background-color: #1565c0; color: #e3f2fd; }

/* New: Unavailable state */
.status-tag.unavailable { background-color: #5f5b58; color: #f2efe7; }
.menu-item.unavailable { opacity: .7; }

.gallery-teaser {
    padding: 4rem 2rem;
    background-color: #0F0B0B;
    color: var(--background-color);
    text-align: center;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.gallery-item {
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 1/1;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.05);
}

/* Modal Styles */
.signup-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    overflow: auto;
}

.modal-content {
    background-color: #141311; /* dark panel for contrast */
    margin: 10% auto;
    padding: 2rem;
    width: 90%;
    max-width: 500px;
    border-radius: 12px;
    position: relative;
    color: var(--cream);
    border: 1px solid #22201e;
    box-shadow: 0 30px 80px rgba(0,0,0,0.55);
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: rgba(242,239,231,.7);
}
.close-modal:hover { color: var(--cream); }

.modal-content h2 { color: var(--cream); margin-top:0; font-weight: 700; }

.form-group {
    margin-bottom: 1.1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: rgba(242,239,231,.92);
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #2c2a28;
    border-radius: 10px;
    font-size: 1rem;
    background:#0b0a09;
    color: var(--cream);
}

.form-group input::placeholder { color: rgba(242,239,231,.55); }
.modal-content input:focus-visible { outline: 2px solid var(--muted-red); outline-offset: 2px; }
.modal-content a { color: var(--muted-red); }
.modal-content a:hover { color: var(--accent-color-red); }

.submit-button { width: 100%; }

/* Scope button styles inside modal to ensure high contrast */
.modal-content .submit-button {
    background: var(--accent-color-red);
    color: var(--cream);
    border-radius: 10px;
}
.modal-content .submit-button:hover { filter: brightness(1.1); }

.sms-consent { color: rgba(242,239,231,.9); }

.hidden {
    display: none;
}

.form-success {
    text-align: center;
    padding: 2rem 0;
}

.success-animation {
    margin-bottom: 1.5rem;
}

.lock-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
    animation: bounce 1s infinite alternate;
}

.access-granted {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color-red);
    display: block;
    animation: flicker 2s infinite;
}

@keyframes bounce {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-10px);
    }
}

@keyframes flicker {
    0%, 19.999%, 22%, 62.999%, 64%, 64.999%, 70%, 100% {
        opacity: 1;
    }
    20%, 21.999%, 63%, 63.999%, 65%, 69.999% {
        opacity: 0.5;
    }
}

/* Footer Styles */
footer {
    background-color: #0F0B0B;
    color: var(--background-color);
    padding: 3rem 2rem 1rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom: 2rem;
}

.footer-logo {
    flex: 0 0 100px;
}

.logo-small {
    max-height: 32px;
    height: auto;
    width: auto;
}

/* Header brand stamp container tweaks */
.homepage-header .brand-stamp {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 22px 0 10px;
}

/* If the PNG has a white box, multiply helps it sit in the design without harsh edges */
.homepage-header .brand-stamp .brand-logo {
    mix-blend-mode: normal;
    opacity: 1;
}

/* Subtle elevated card behind logo for cohesion regardless of PNG background */
/* (Removed pseudo-element that created white card) */

.homepage-header .brand-stamp img.brand-logo { position: relative; z-index: 1; }

@media (min-width: 768px) {
  .brand-logo { width: 360px; }
}

@media (min-width: 1024px) {
  .brand-logo { width: 420px; }
}

/* Ensure footer logo is visible on dark background */
.footer-logo .logo-small {
    filter: none;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--background-color);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--accent-color-yellow);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: var(--background-color);
}

.social-links a:hover {
    color: var(--accent-color-yellow);
}

.copyright {
    text-align: center;
    font-size: 0.8rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Styles */
@media (max-width: 768px) {
    /* Homepage: hide large top logo on mobile */
    .homepage-header .brand-stamp { display: none; }

    /* Homepage: show in-nav logo on mobile and restore spacing */
    .homepage-header .main-nav.centered { justify-content: space-between; }
    .homepage-header .main-nav .logo-container { display: block; }

    .hero h1, .about-hero h1, .menu-hero h1, .how-it-works-hero h1, .shop-hero h1 {
        font-size: 2.5rem;
    }
    
    .subtext {
        font-size: 1.2rem;
    }
    
    /* Show hamburger on mobile */
    .mobile-menu-toggle { display: inline-block; padding: .25rem; margin-left: auto; }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        background-color: var(--bg-deep);
        padding: 1rem;
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
    }
    
    .nav-links.show {
        display: flex;
    }

    .nav-links a { padding: .6rem 0; }

    .modal-content {
        margin: 20% auto;
    }
}

/* Parallax Effect */
.parallax-bg {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
    background: #2a2725;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color-red);
}

/* Shop page */
.shop-hero {
    background: linear-gradient(180deg, rgba(247,243,236,0.95), rgba(247,243,236,0.95)), url('../images/texture-bg.svg');
    color: var(--dough-text);
}

.products-section {
    padding: 4rem 2rem;
    background: var(--dough-bg);
    color: var(--dough-text);
}

/* Light hero utility should render dark text */
.hero-light { color: var(--dough-text); }
.hero-light .cta-button, .shop-hero .cta-button { background: var(--muted-red); color: var(--cream); }
.hero-light .cta-button:hover, .shop-hero .cta-button:hover { background: #7f2222; }

/* Outline button adapts on light surfaces */
.hero-light .btn-outline, .shop-hero .btn-outline, .products-section .btn-outline,
.hero-light .btn-secondary, .shop-hero .btn-secondary, .products-section .btn-secondary {
  color: var(--dough-text);
  border-color: rgba(0,0,0,0.2);
}
.hero-light .btn-outline:hover, .shop-hero .btn-outline:hover, .products-section .btn-outline:hover,
.hero-light .btn-secondary:hover, .shop-hero .btn-secondary:hover, .products-section .btn-secondary:hover {
  background: var(--muted-red);
  border-color: var(--muted-red);
  color: var(--cream);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(0,0,0,0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}

.product-media {
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, #f4efe9, #e8e2da);
    display: grid;
    place-items: center;
    color: var(--dough-gray);
    font-weight: 600;
}

.product-body { padding: 1rem 1rem 1.25rem; }
.product-title { font-family: var(--font-heading); font-size: 1.25rem; }
.product-meta { color: #5a5653; font-size: 0.95rem; margin: 0.25rem 0 0.5rem; }
.product-actions { margin-top: auto; display: flex; gap: 0.5rem; }
.btn-secondary { background: #1f1b1a; color: #fff; border: none; padding: 0.6rem 1rem; border-radius: 6px; cursor: pointer; font-weight: 600; }
.btn-secondary:hover { background: var(--dough-orange); }
.price { font-weight: 700; }

.badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--dough-orange);
    color: #fff;
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
}

/* === Gen Z Visual Enhancements === */
/* Glassy sticky nav */
.main-nav {
    background: rgba(11,10,9,0.6);
    backdrop-filter: saturate(1.2) blur(10px);
    -webkit-backdrop-filter: saturate(1.2) blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* Animated underline for links */
.nav-links a::after {
    transition: transform 0.26s ease;
    transform: scaleX(0);
    transform-origin: left;
}
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }

/* Gradient accent utilities */
.grad-red {
    background: linear-gradient(90deg, #A83232, #E94949);
}
.grad-amber {
    background: linear-gradient(90deg, #E6B325, #FFB703);
}
.ring-grad {
    position: relative;
}
.ring-grad::before {
    content: '';
    position: absolute; inset: -1px;
    border-radius: inherit;
    background: linear-gradient(120deg, rgba(233,73,73,0.5), rgba(255,183,3,0.45));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    padding: 1px;
}

/* Pills and badges */
.pill {
    display: inline-flex; align-items: center; gap: .5rem;
    font-weight: 700; letter-spacing: .02em;
    padding: .5rem .9rem; border-radius: 999px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    color: var(--cream);
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: #3DDC84; box-shadow: 0 0 8px #3DDC84; }

/* Secondary button */
.btn-outline, .btn-secondary {
    background: transparent; color: var(--cream);
    border: 1px solid rgba(255,255,255,0.18);
}
.btn-outline:hover, .btn-secondary:hover {
    border-color: var(--muted-red);
    color: var(--muted-red);
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(0,0,0,0.26);
}

/* Display heading variant */
.display-xl { font-size: clamp(2.6rem, 6vw, 4.2rem); line-height: 1.05; letter-spacing: .5px; }

/* Hero vignette overlay */
.vignette::after {
    content: ''; position: absolute; inset: 0; z-index: 1;
    background: radial-gradient(120% 80% at 50% -10%, rgba(255,255,255,0.08), rgba(0,0,0,0.65));
    pointer-events: none;
}

/* Marquee strip */
.marquee {
    width: 100%; overflow: hidden; border-top: 1px solid rgba(255,255,255,0.06); border-bottom: 1px solid rgba(255,255,255,0.06);
    background: #0C0B0A;
}
.marquee__track {
    display: flex; gap: 2rem; padding: .75rem 0; white-space: nowrap;
    animation: marquee 22s linear infinite;
}
.marquee__item { opacity: .85; font-weight: 600; color: rgba(242,239,231,0.9); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Card hover lift utility */
.lift:hover { transform: translateY(-6px); box-shadow: 0 20px 44px rgba(0,0,0,0.5); }

/* Reduced motion respect */
@media (prefers-reduced-motion: reduce) {
  .reveal-text, .meter-fill, .gallery-item .gallery-image, .marquee__track { animation: none !important; transition: none !important; }
}

/* Accessibility: focus styles */
:focus-visible {
  outline: 2px solid #FFB703;
  outline-offset: 3px;
}
a:focus-visible, button:focus-visible, input:focus-visible { border-radius: 6px; }

/* Map card styling */
.map-card {
  background: #141311;
  border: 1px solid #22201e;
  border-radius: 12px;
  padding: 10px;
  box-shadow: var(--shadow-strong);
}
.map-object { border-radius: 10px; }

/* === Homepage UX Overhaul Sections === */
/* Drop announcement banner */
.drop-banner {
  background: linear-gradient(90deg, rgba(233,73,73,.22), rgba(255,183,3,.18));
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.drop-banner__inner {
  max-width: 1200px; margin: 0 auto; padding: .85rem 1rem;
  display: grid; grid-template-columns: auto auto 1fr auto; gap: .75rem; align-items: center;
  color: var(--cream);
}
.drop-banner .badge { 
  display:inline-block; font-weight:700; font-size:.85rem; letter-spacing:.04em;
  padding:.35rem .6rem; border-radius:999px; background: rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.16);
}
.drop-banner .drop-title { font-size:1rem; }
.drop-banner .countdown { font-variant-numeric: tabular-nums; opacity:.9; }
.drop-banner .drop-cta { 
  color:#0b0a09; background: var(--dough-orange); padding:.5rem .9rem; border-radius:999px; font-weight:700;
}
.drop-banner .drop-cta:hover { background:#b86522; color:#fff; }

/* Story strip */
.story-strip { background:#0e0c0b; padding: 3rem 1rem; border-top:1px solid rgba(255,255,255,.06); border-bottom:1px solid rgba(255,255,255,.06); }
.story-container { max-width: 1100px; margin: 0 auto; text-align:center; }
.story-head { font-size:2rem; margin-bottom:.5rem; }
.story-copy { opacity:.9; max-width: 820px; margin:0 auto 1.5rem; }
.story-cards { display:grid; grid-template-columns: repeat(3,1fr); gap:1rem; }
.story-card { background:#141311; border:1px solid #22201e; border-radius:12px; padding:1.25rem; text-align:left; }
.story-card h3 { margin-bottom:.35rem; font-size:1.1rem; }
.story-card p { opacity:.9; }

/* Community strip */
.community-strip { background: var(--dough-bg); color: var(--dough-text); padding: 3rem 1rem; }
.community-inner { max-width: 1100px; margin:0 auto; text-align:center; }
.community-sub { margin:.5rem auto 1rem; max-width:780px; opacity:.95; }
.community-actions { display:flex; justify-content:center; gap:.6rem; flex-wrap:wrap; }

/* Sticky bottom CTA */
.sticky-cta { position: fixed; left:0; right:0; bottom:0; z-index: 999; 
  background: rgba(11,10,9,0.72); backdrop-filter: saturate(1.2) blur(10px); -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.sticky-cta__inner { max-width: 1100px; margin:0 auto; padding:.6rem 1rem; display:flex; gap:.75rem; align-items:center; justify-content:center; color:var(--cream); }
.sticky-tag { 
  font-size:.8rem; 
  font-weight:700; 
  letter-spacing:.06em; 
  padding:0; 
  border-radius:0; 
  background: transparent; 
  border: none; 
  color: rgba(255,255,255,0.7);
}
.sticky-text { opacity:.88; }
.sticky-cta .cta-button { padding:.5rem .9rem; }

@media (max-width: 800px) {
  .drop-banner__inner { grid-template-columns: auto 1fr auto; }
  .drop-banner .countdown { display:none; }
  .story-cards { grid-template-columns: 1fr; }
  .sticky-text { display:none; }
}

/* === Noir Redesign === */
.noir-hero {
  min-height: 72vh;
  display: grid; place-items: center;
  background: radial-gradient(1200px 600px at 50% 10%, rgba(255,255,255,0.05), rgba(0,0,0,0)) , linear-gradient(#0b0a09, #0b0a09);
  position: relative;
}
.noir-inner { text-align: center; padding: 1.25rem 1rem 1.75rem; max-width: 900px; margin-top: -2vh; }
.noir-inner .pill { margin-bottom: .15rem; }
.noir-head { font-size: clamp(2.2rem, 6vw, 4rem); line-height: 1.04; margin: .35em 0 .1em; }
.noir-sub { opacity: .9; font-size: clamp(1rem, 2.2vw, 1.25rem); margin-bottom: 1rem; }
.noir-ctas { margin-top: .4rem; }
.noir-ctas { display:flex; gap:.75rem; justify-content: center; flex-wrap: wrap; }

.proof-strip { border-top:1px solid rgba(255,255,255,.08); border-bottom:1px solid rgba(255,255,255,.08); background:#0f0d0c; }
.proof-list { list-style:none; margin:0; padding:.9rem 1rem; display:flex; gap:1.25rem; justify-content:center; flex-wrap:wrap; color:rgba(242,239,231,.9); font-weight:600; }

.signature { background:#0d0c0b; padding: 3rem 1rem; }
.sig-inner { max-width: 1100px; margin:0 auto; display:grid; grid-template-columns: 1.2fr .8fr; gap:1.25rem; align-items: stretch; }
.sig-card { background:#141311; border:1px solid #22201e; border-radius:14px; padding:1.25rem; }
.sig-card h2 { font-size: clamp(1.5rem, 3.2vw, 2.2rem); margin-bottom:.5rem; }
.sig-card p { opacity:.92; margin-bottom:.75rem; }
.text-link { color: var(--muted-red); text-decoration: underline; }
.text-link:hover { color: var(--accent-color-red); }
.sig-facts { background:#141311; border:1px solid #22201e; border-radius:14px; padding:1.25rem; display:grid; grid-template-columns: repeat(3,1fr); text-align:center; gap:.5rem; }
.sig-facts strong { font-size:1.6rem; display:block; }
.sig-facts span { opacity:.85; }

/* Signature specs panel */
.specs-panel {
  background:#141311;
  border:1px solid #22201e;
  border-radius:14px;
  padding:1.1rem;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:.6rem;
  align-items: stretch;
}

.specs-item {
  display:flex;
  align-items:center;
  gap:.6rem;
  padding:.75rem .9rem;
  border-radius:10px;
  background:#121110;
  border:1px solid #22201e;
}

.specs-icon {
  width:28px; height:28px;
  display:grid; place-items:center;
  color: var(--muted-red);
  background: rgba(233,73,73,.08);
  border:1px solid rgba(233,73,73,.25);
  border-radius:8px;
}

.specs-copy { line-height:1.1; }
.specs-value { font-weight:700; }

.slice { background: var(--dough-bg); color: var(--dough-text); padding: 3rem 1rem; border-top:1px solid rgba(0,0,0,.08); border-bottom:1px solid rgba(0,0,0,.08); }
.slice-inner { max-width: 1000px; margin:0 auto; text-align:center; }
.slice-actions { margin-top: .75rem; display:flex; gap:.6rem; justify-content:center; flex-wrap:wrap; }

/* Lifestyle gallery */
.lifestyle-grid { margin: 1rem auto 1.25rem; display:grid; grid-template-columns: repeat(3, 1fr); gap:.75rem; max-width: 900px; }
.tile { background:#f1ece3; color:#2a2624; border:1px solid rgba(0,0,0,.08); border-radius:12px; padding:.75rem; box-shadow: 0 6px 16px rgba(0,0,0,.05); }
.tile-graphic { height:140px; display:grid; place-items:center; font-size:2rem; background: linear-gradient(180deg, rgba(0,0,0,.04), rgba(0,0,0,0)); border-radius:10px; }
.tile figcaption { margin-top:.5rem; font-weight:600; opacity:.9; }

/* Lifestyle two-column layout */
.lifestyle-layout { display:grid; grid-template-columns: 1.1fr .9fr; align-items:start; gap:1.25rem; text-align:left; }
.lifestyle-left { text-align:left; }
.lifestyle-copy { margin:.5rem 0 1rem; }
.lifestyle-copy .subhead { font-weight:700; margin-bottom:.4rem; }
.lifestyle-points { margin:.5rem 0 .5rem 1rem; padding:0; }
.lifestyle-points li { margin:.25rem 0; }
.slice-actions.left-aligned { justify-content: flex-start; }

/* Lifestyle two-section cards */
.lifestyle-sections { display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap:1rem; margin-top:1rem; text-align:left; }
.life-card { background:#f1ece3; color:#2a2624; border:1px solid rgba(0,0,0,.08); border-radius:14px; padding:1rem; box-shadow: 0 6px 16px rgba(0,0,0,.05); }
.life-card h3 { margin:0 0 .4rem; font-size:1.15rem; }
.life-card p { margin:0; }
.life-card .card-actions { margin-top:.65rem; display:flex; gap:.5rem; }
.slice .subhead { font-weight:700; opacity:.95; }

@media (max-width: 900px) {
  .lifestyle-sections { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .lifestyle-layout { grid-template-columns: 1fr; }
  .slice-inner { text-align: left; }
  .lifestyle-grid { max-width: 100%; }
  .slice-actions.left-aligned { justify-content: flex-start; }
}

@media (max-width: 800px) {
  .lifestyle-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .lifestyle-grid { grid-template-columns: 1fr; }
  .tile-graphic { height:120px; }
}

/* Ensure outline buttons are legible on the light slice surface */
.slice .btn-outline {
  color: var(--dough-text);
  border-color: rgba(0,0,0,0.25);
  background: rgba(0,0,0,0.03);
}
.slice .btn-outline:hover, .slice .btn-secondary:hover {
  background: var(--muted-red);
  border-color: var(--muted-red);
  color: var(--cream);
}

/* Secret ingredients feature grid */
.secret-ingredients { padding: 3rem 1rem; text-align:center; }
.secret-ingredients h2 { margin:0 auto 1rem; }
.features-grid { display:grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap:1rem; max-width:1100px; margin: 0 auto; text-align:left; }
.feature-card { background: #141010; color: var(--cream); border:1px solid rgba(255,255,255,.08); border-radius:14px; padding:1rem; box-shadow: 0 10px 24px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.04); }
.feature-card h3 { margin:.25rem 0 .4rem; font-size:1.05rem; }
.feature-card p { margin:0; opacity:.95; }

@media (max-width: 1000px) {
  .features-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 560px) {
  .features-grid { grid-template-columns: 1fr; }
}

/* Button utilities */
.btn-sm { padding: .55rem .9rem; font-size: .9rem; border-radius: 8px; }
.btn-lg { padding: .9rem 1.5rem; font-size: 1.1rem; border-radius: 12px; }
.btn-icon { gap: .5rem; }

/* Disabled states */
.cta-button:disabled, .btn-outline:disabled, .submit-button:disabled, .btn-secondary:disabled,
.cta-button[aria-disabled="true"], .btn-outline[aria-disabled="true"], .submit-button[aria-disabled="true"], .btn-secondary[aria-disabled="true"],
.is-disabled {
  opacity: .55;
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
  transform: none;
}

.join { background:#0b0a09; padding: 3.5rem 1rem; }
.join-inner { max-width: 800px; margin:0 auto; text-align:center; }
.join-form { display:grid; grid-template-columns: repeat(2,1fr); gap:.6rem; margin-top:1rem; }
.join-form input[type="text"],
.join-form input[type="email"],
.join-form input[type="tel"] {
  background:#141311; border:1px solid #22201e; color: var(--cream); border-radius: 10px; padding:.7rem .8rem;
}
.join-form .sms-consent { grid-column: 1 / -1; text-align:left; opacity:.9; }
.join-form .submit-button { grid-column: 1 / -1; }
.join .form-disclaimer { opacity:.75; margin-top:.5rem; }

@media (max-width: 900px) {
  .sig-inner { grid-template-columns: 1fr; }
  .specs-panel { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .join-form { grid-template-columns: 1fr; }
  .noir-inner { padding: 1rem; }
  .noir-inner .pill { margin-bottom: .65rem; }
}
