/*
 * Theme Name:  Mickelberry's
 * Theme URI:   https://overtimeagency.com
 * Description: Mickelberry's child theme for IPC Base. Brand overrides only — no structural CSS.
 * Author:      Jason Ackerman
 * Author URI:  https://overtimeagency.com
 * Template:    ipc-base
 * Version:     1.0.0
 * Text Domain: mickelberry
 *
 * Brand Palette:
 *   Green  #337443  — primary, header, footer
 *   Red    #cc3931  — secondary, CTAs, accents
 *   White  #ffffff  — text on dark, accent
 */

/* ============================================================
   1. BRAND COLOR TOKENS
   ============================================================ */

:root {
    --color-primary:           #337443;
    --color-primary-dark:      #255533;
    --color-primary-light:     #4a9a5c;
    --color-secondary:         #cc3931;
    --color-accent:            #ffffff;

    --btn-bg:                  #cc3931;
    --btn-bg-hover:            #a82d27;
    --btn-border-color:        #cc3931;
    --btn-color:               #ffffff;

    /* Set directly — prevents variable chain from pulling red */
    --header-top-bg:           #337443;
    --header-brand-bg:         #337443;
    --header-text-color:       #ffffff;
    --header-hover-color:      #cc3931;

    --footer-bg:               #337443;
    --footer-text:             #ffffff;
    --footer-link-color:       rgba(255,255,255,0.8);
    --footer-link-hover:       #ffffff;

    --nav-color:               #ffffff;
    --nav-hover-color:         #cc3931;

    --product-flip-bg:         #337443;
    --product-flip-back-bg:    #cc3931;
    --product-nutrition-bg:    #337443;
    --product-scroll-arrow-bg: #337443;
    --product-tab-active-color:#337443;

    --recipe-tag-bg:           #337443;
    --recipe-tag-hover-bg:     #cc3931;
    --recipe-meta-color:       #337443;
}


/* ============================================================
   2. TYPOGRAPHY TOKENS
   ============================================================ */

:root {
    --font-display:  'cooper-std', Georgia, serif;
    --font-heading:  'cooper-std', Georgia, serif;
    --font-primary:  'cronos-pro', 'Helvetica Neue', Arial, sans-serif;
    --font-body:     'cronos-pro', 'Helvetica Neue', Arial, sans-serif;
    --font-script:   'caveat', cursive;
}


/* ============================================================
   3. TYPOGRAPHY OVERRIDES
   ============================================================ */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display) !important;
}

.btn {
    font-family: 'cronos-pro', 'Helvetica Neue', Arial, sans-serif !important;
    font-weight: 700 !important;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.5em 1.75em;
    border-radius: var(--radius-sm);
}


/* ============================================================
   4. HEADER — SINGLE GREEN BAR + HANGING LOGO
   .header-brand is collapsed to zero height but kept visible
   so the logo (which lives inside it) can hang out the bottom.
   ============================================================ */

.header-top {
    background-color: #337443;
}

/* Collapse brand row to zero height — logo hangs out via overflow */
.header-brand {
    background-color: #337443;
    height: 0;
    line-height: 0;
    font-size: 0;
    overflow: visible;
    position: relative;
    z-index: 200;
}

.header-brand .site-wrapper {
    min-height: 0;
    height: 0;
    padding-top: 0;
    padding-bottom: 0;
    overflow: visible;
    position: relative;
}

/* Logo sits at the top of the zero-height row, transform pulls it up 50% */
.site-branding {
    position: absolute;
    top: 0;
    left: var(--wrapper-padding);
    transform: translateY(-50%);
    z-index: 201;
}

.site-logo {
    max-width: 120px;
    height: auto;
    width: auto;
    display: block;
    transition: max-width var(--transition-base);
}

/* Hero flush to green bar — no gap */
.home-banner {
    margin-top: 0;
}


/* ============================================================
   5. NAVIGATION — RIGHT-ALIGNED + PIPE SEPARATORS
   ============================================================ */

/* Nav pushes itself right with margin-left: auto */
.primary-nav {
    flex: 0 !important;
    margin-left: auto;
}

/* Pipe separators — li must be flex so ::before sits inline with <a> */
.primary-nav .nav-menu li {
    display: flex;
    align-items: center;
}

.primary-nav .nav-menu li + li::before {
    content: '|';
    color: rgba(255, 255, 255, 0.45);
    font-weight: 300;
    pointer-events: none;
    speak: none;
    padding: 0 0.2rem;
    line-height: 1;
}

.primary-nav .nav-menu li a {
    padding: 0.75rem 0.6rem;
    font-family: var(--font-primary);
}


/* ============================================================
   6. STICKY HEADER — stays green, logo shrinks
   ============================================================ */

.site-header.is-sticky {
    background-color: #337443;
}

.site-header.is-sticky .header-top,
.site-header.is-sticky .header-brand {
    background-color: #337443;
}

.site-header.is-sticky .site-logo {
    max-width: 60px;
}


/* ============================================================
   7. HERO — full width, no content box, clean overlay
   ============================================================ */

.home-banner-track,
.home-banner-slide {
    min-height: 560px;
}

.home-banner-slide::before {
    background: rgba(0, 0, 0, 0.25);
}

.home-banner .home-banner-content {
    background: none;
    text-align: left;
    padding: var(--space-xl) var(--space-2xl);
    max-width: 680px;
}

.home-banner .home-banner-heading {
    font-family: var(--font-display) !important;
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 700;
    color: #ffffff;
    text-transform: none;
    letter-spacing: 0;
    line-height: 1.15;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

@media (max-width: 640px) {
    .home-banner-track,
    .home-banner-slide { min-height: 360px; }
    .home-banner .home-banner-content { padding: var(--space-lg); }
}


/* ============================================================
   8. SECTION COLOR UTILITIES
   ============================================================ */

.has-red-bg,
.red-container-block {
    background-color: #cc3931;
    color: #ffffff;
}

.has-red-bg h2, .has-red-bg h3,
.red-container-block h2, .red-container-block h3 {
    color: #ffffff;
}

.has-green-bg,
.join-form-section {
    background-color: #337443;
    color: #ffffff;
}

.has-green-bg h2, .has-green-bg h3,
.join-form-section h2, .join-form-section h3 {
    color: #ffffff;
    font-family: var(--font-display);
}
