/**
 * MLC Base — Shared styles across all pages.
 *
 * Design tokens, typography, buttons, container, nav, footer, animations.
 * Homepage-specific section styles are in mlc-home.css.
 */

/* =====================================================================
   DESIGN TOKENS
   ===================================================================== */

:root {
    --mlc-purple: #7a4293;
    --mlc-purple-dark: #5a2d72;
    --mlc-purple-light: #f3eef6;
    --mlc-gold: #c9a84c;
    --mlc-gold-light: #f5f0e1;
    --mlc-warm-white: #fefdfb;
    --mlc-cream: #f9f6f1;
    --mlc-charcoal: #2d2a2e;
    --mlc-gray: #8a8689;
    --mlc-gray-light: #f0eeef;
    --mlc-blush: #e8a0b4;
    --mlc-radius: 12px;
    --mlc-radius-sm: 8px;
    --mlc-radius-lg: 16px;
    --mlc-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    --mlc-shadow-lg: 0 12px 36px rgba(0, 0, 0, 0.12);
    --mlc-transition: 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* =====================================================================
   RESET & BASE TYPOGRAPHY
   ===================================================================== */

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'DM Sans', sans-serif;
    color: var(--mlc-charcoal);
    background: var(--mlc-warm-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.25;
    margin: 0;
    padding: 0;
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

p {
    margin: 0;
}

html {
    scroll-behavior: smooth;
}

/* =====================================================================
   CONTAINER
   ===================================================================== */

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

/* =====================================================================
   SECTION TITLES
   ===================================================================== */

.mlc-section-title {
    text-align: center;
    margin-bottom: 56px;
}

.mlc-section-title h2 {
    font-size: 36px;
    color: var(--mlc-charcoal);
}

.mlc-section-subtitle {
    color: var(--mlc-gray);
    font-size: 16px;
    margin-top: 12px;
    line-height: 1.6;
}

.mlc-section-link {
    text-align: center;
    margin-top: 48px;
}

.mlc-page-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    margin-top: 12px;
    font-weight: 400;
}

/* Filter pills — shared between shop and smaker pages */
.mlc-filter-pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--mlc-charcoal);
    background: var(--mlc-cream);
    border: 1.5px solid var(--mlc-gray-light);
    border-radius: 100px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.mlc-filter-pill:hover {
    border-color: var(--mlc-purple);
    color: var(--mlc-purple);
}

.mlc-filter-pill.mlc-active {
    background: var(--mlc-purple);
    color: #fff;
    border-color: var(--mlc-purple);
}

/* Tags — shared pill style */
.mlc-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 14px;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: var(--mlc-purple);
    background: var(--mlc-purple-light);
    border-radius: 100px;
}

/* =====================================================================
   BUTTONS
   ===================================================================== */

.mlc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--mlc-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-align: center;
}

.mlc-btn-primary {
    background: var(--mlc-purple);
    color: #fff;
    border-color: var(--mlc-purple);
}

.mlc-btn-primary:hover {
    background: var(--mlc-purple-dark);
    border-color: var(--mlc-purple-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(122, 66, 147, 0.35);
    color: #fff;
}

.mlc-btn-outline {
    background: transparent;
    color: #fff;
    border-color: #fff;
}

.mlc-btn-outline:hover {
    background: #fff;
    color: var(--mlc-purple);
    transform: translateY(-2px);
}

.mlc-btn-white {
    background: #fff;
    color: var(--mlc-purple);
    border-color: #fff;
}

.mlc-btn-white:hover {
    background: rgba(255, 255, 255, 0.9);
    color: var(--mlc-purple-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

.mlc-btn-secondary {
    background: transparent;
    color: var(--mlc-purple);
    border-color: var(--mlc-purple);
}

.mlc-btn-secondary:hover {
    background: var(--mlc-purple);
    color: #fff;
    transform: translateY(-2px);
}

.mlc-btn-small {
    padding: 10px 24px;
    font-size: 14px;
    width: 100%;
}

/* =====================================================================
   STICKY NAV
   ===================================================================== */

.mlc-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(to bottom, rgba(42, 31, 61, 0.6) 0%, transparent 100%);
    box-shadow: none;
    transition: padding var(--mlc-transition),
                background var(--mlc-transition),
                box-shadow var(--mlc-transition);
}

.mlc-nav.mlc-scrolled {
    background: #fff;
    box-shadow: var(--mlc-shadow);
}

.mlc-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 24px;
    transition: padding var(--mlc-transition);
}

.mlc-nav.mlc-scrolled .mlc-nav-inner {
    padding: 10px 24px;
}

.mlc-nav .mlc-nav-logo img {
    height: 55px;
    max-height: 55px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    transition: height var(--mlc-transition);
}

.mlc-nav.mlc-scrolled .mlc-nav-logo img {
    height: 40px;
    max-height: 40px;
}

.mlc-nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mlc-nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.mlc-nav-links a {
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.5px;
    transition: color var(--mlc-transition),
                text-shadow var(--mlc-transition);
    position: relative;
}

.mlc-nav.mlc-scrolled .mlc-nav-links a {
    color: var(--mlc-charcoal);
    text-shadow: none;
}

.mlc-nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #ffffff;
    transition: width 0.3s ease,
                background var(--mlc-transition);
}

.mlc-nav.mlc-scrolled .mlc-nav-links a::after {
    background: var(--mlc-purple);
}

.mlc-nav-links a:hover {
    color: var(--mlc-purple);
}

.mlc-nav-links a:hover::after {
    width: 100%;
}

/* Nav CTA (cart icon) */
.mlc-nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: var(--mlc-purple);
    border-radius: var(--mlc-radius-sm);
    margin-left: 24px;
    transition: all 0.3s ease;
    border: 2px solid var(--mlc-purple);
    position: relative;
}

.mlc-nav-cta:hover {
    background: var(--mlc-purple-dark);
    border-color: var(--mlc-purple-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(122, 66, 147, 0.3);
    color: #fff;
}

.mlc-cart-count {
    background: var(--mlc-gold);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -6px;
    right: -6px;
}

/* Hamburger */
.mlc-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 8px;
    z-index: 1001;
}

.mlc-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mlc-nav.mlc-scrolled .mlc-hamburger span {
    background: var(--mlc-charcoal);
}

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

.mlc-hamburger.mlc-active span:nth-child(2) {
    opacity: 0;
}

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

/* Mobile menu */
.mlc-mobile-menu {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    padding: 24px;
    box-shadow: var(--mlc-shadow-lg);
    z-index: 999;
}

.mlc-mobile-menu.mlc-open {
    display: block;
}

.mlc-mobile-menu a {
    display: block;
    padding: 14px 0;
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: var(--mlc-charcoal);
    border-bottom: 1px solid var(--mlc-gray-light);
    transition: color 0.2s;
}

.mlc-mobile-menu a:last-child {
    border-bottom: none;
}

.mlc-mobile-menu a:hover {
    color: var(--mlc-purple);
}

/* =====================================================================
   PAGE TITLE AREA (non-homepage pages)
   ===================================================================== */

.mlc-page-title-area {
    background: var(--mlc-purple);
    padding: 120px 0 48px;
    text-align: center;
}

.mlc-page-title-area h1 {
    color: #fff;
    font-size: 36px;
}

/* =====================================================================
   MAIN CONTENT AREA
   ===================================================================== */

.mlc-main {
    padding: 64px 0;
    min-height: 50vh;
}

.mlc-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.8;
    color: var(--mlc-charcoal);
}

.mlc-content h2 {
    font-size: 28px;
    margin: 40px 0 16px;
}

.mlc-content h3 {
    font-size: 22px;
    margin: 32px 0 12px;
}

.mlc-content p {
    margin-bottom: 16px;
}

.mlc-content img {
    border-radius: var(--mlc-radius);
    margin: 24px 0;
}

.mlc-content a {
    color: var(--mlc-purple);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.mlc-content a:hover {
    color: var(--mlc-purple-dark);
}

/* WPBakery basic compatibility — VC shortcodes output these classes */
.mlc-content .vc_row {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 24px;
}

.mlc-content .wpb_column {
    flex: 1;
    min-width: 250px;
}

.mlc-content .wpb_text_column {
    margin-bottom: 16px;
}

/* =====================================================================
   FOOTER
   ===================================================================== */

.mlc-footer {
    background: var(--mlc-charcoal);
    color: rgba(255, 255, 255, 0.7);
    padding: 72px 0 0;
}

.mlc-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 56px;
}

.mlc-footer-col h4 {
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.mlc-footer-brand p {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 16px;
}

.mlc-footer-brand img {
    height: 60px;
    width: auto;
    margin-bottom: 16px;
    object-fit: contain;
}

.mlc-footer-social {
    display: flex;
    gap: 16px;
}

.mlc-footer-social a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.2s ease;
}

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

.mlc-footer-col ul li {
    margin-bottom: 10px;
}

.mlc-footer-col ul li a {
    font-size: 14px;
    transition: color 0.2s ease;
}

.mlc-footer-col ul li a:hover {
    color: var(--mlc-gold);
}

.mlc-footer-col p {
    font-size: 14px;
    line-height: 1.8;
}

.mlc-footer-col p a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.2s ease;
}

.mlc-footer-col p a:hover {
    color: var(--mlc-gold);
}

.mlc-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 24px 0;
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
}

/* =====================================================================
   ANIMATIONS
   ===================================================================== */

.mlc-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.mlc-reveal.mlc-visible {
    opacity: 1;
    transform: translateY(0);
}

.mlc-reveal-stagger > * {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.mlc-reveal-stagger.mlc-visible > * {
    opacity: 1;
    transform: translateY(0);
}

.mlc-reveal-stagger.mlc-visible > *:nth-child(1) { transition-delay: 0s; }
.mlc-reveal-stagger.mlc-visible > *:nth-child(2) { transition-delay: 0.1s; }
.mlc-reveal-stagger.mlc-visible > *:nth-child(3) { transition-delay: 0.15s; }
.mlc-reveal-stagger.mlc-visible > *:nth-child(4) { transition-delay: 0.2s; }
.mlc-reveal-stagger.mlc-visible > *:nth-child(5) { transition-delay: 0.25s; }
.mlc-reveal-stagger.mlc-visible > *:nth-child(6) { transition-delay: 0.3s; }
.mlc-reveal-stagger.mlc-visible > *:nth-child(7) { transition-delay: 0.35s; }
.mlc-reveal-stagger.mlc-visible > *:nth-child(8) { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
    .mlc-reveal,
    .mlc-reveal-stagger > * {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* =====================================================================
   WP ADMIN BAR OFFSET
   ===================================================================== */

body.admin-bar .mlc-nav {
    top: 32px;
}

@media (max-width: 782px) {
    body.admin-bar .mlc-nav {
        top: 46px;
    }
}

/* =====================================================================
   RESPONSIVE — TABLET
   ===================================================================== */

@media (max-width: 1024px) {
    .mlc-footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =====================================================================
   RESPONSIVE — MOBILE
   ===================================================================== */

@media (max-width: 768px) {
    .mlc-nav {
        background: #fff;
        box-shadow: var(--mlc-shadow);
    }

    .mlc-nav-inner {
        padding: 12px 24px;
    }

    .mlc-nav .mlc-nav-logo img {
        height: 42px;
        max-height: 42px;
    }

    .mlc-nav-menu {
        display: none;
    }

    .mlc-hamburger {
        display: flex;
    }

    .mlc-hamburger span {
        background: var(--mlc-charcoal);
    }

    .mlc-container {
        padding: 0 16px;
    }

    .mlc-section-title h2 {
        font-size: 28px;
    }

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