/*
 Theme Name:   Zmianomania Child
 Description:  Child theme for zmianomania.pl — Dominika Wit, Coach Zmiany
 Author:       Linis IT
 Template:     Divi
 Version:      2.3.0
 Text Domain:  zmianomania-child
*/

/* ============================================
   COLOR SCHEMES — 5 variations
   Selected via WP Customizer → Zmianomania
   ============================================ */

/* V1 — Elegance (default) */
:root,
body.zm-scheme-elegance {
    --zm-deep: #3d3832;
    --zm-primary: #6b655c;
    --zm-secondary: #979289;
    --zm-tertiary: #c7c3bb;
    --zm-light: #e2e1dc;
    --zm-surface: #faf9f7;
    --zm-gold: #c4a76c;
    --zm-gold-light: #d4be8e;
    --zm-font-serif: 'Playfair Display', Georgia, serif;
    --zm-font-sans: 'Inter', system-ui, sans-serif;
    --zm-body-bg: var(--zm-surface);
    --zm-body-color: var(--zm-deep);
}

/* V2 — Minimal */
body.zm-scheme-minimal {
    --zm-deep: #3d3832;
    --zm-primary: #6b655c;
    --zm-secondary: #979289;
    --zm-tertiary: #c7c3bb;
    --zm-light: #e2e1dc;
    --zm-surface: #faf9f7;
    --zm-gold: #c4a76c;
    --zm-gold-light: #d4be8e;
    --zm-font-serif: 'DM Serif Display', Georgia, serif;
    --zm-font-sans: 'DM Sans', system-ui, sans-serif;
    --zm-body-bg: var(--zm-surface);
    --zm-body-color: var(--zm-deep);
}

/* V3 — Bold (dark background) */
body.zm-scheme-bold {
    --zm-deep: #1a1714;
    --zm-primary: #3d3832;
    --zm-secondary: #6b655c;
    --zm-tertiary: #979289;
    --zm-light: #e2e1dc;
    --zm-surface: #faf9f7;
    --zm-gold: #c4a76c;
    --zm-gold-light: #d9c08a;
    --zm-font-serif: 'Outfit', system-ui, sans-serif;
    --zm-font-sans: 'Outfit', system-ui, sans-serif;
    --zm-body-bg: var(--zm-deep);
    --zm-body-color: var(--zm-surface);
}

/* V4 — Organic */
body.zm-scheme-organic {
    --zm-deep: #3d3832;
    --zm-primary: #6b655c;
    --zm-secondary: #979289;
    --zm-tertiary: #c7c3bb;
    --zm-light: #e2e1dc;
    --zm-surface: #f5f2ed;
    --zm-gold: #c4a76c;
    --zm-gold-light: #d9c898;
    --zm-font-serif: 'Cormorant Garamond', Georgia, serif;
    --zm-font-sans: 'Nunito Sans', system-ui, sans-serif;
    --zm-body-bg: var(--zm-surface);
    --zm-body-color: var(--zm-deep);
}

/* V5 — Editorial */
body.zm-scheme-editorial {
    --zm-deep: #3d3832;
    --zm-primary: #6b655c;
    --zm-secondary: #979289;
    --zm-tertiary: #c7c3bb;
    --zm-light: #e2e1dc;
    --zm-surface: #faf9f7;
    --zm-gold: #c4a76c;
    --zm-gold-light: #d4be8e;
    --zm-font-serif: 'Libre Baskerville', Georgia, serif;
    --zm-font-sans: 'Space Grotesk', system-ui, sans-serif;
    --zm-body-bg: var(--zm-surface);
    --zm-body-color: var(--zm-deep);
}

/* V6 — Maroon (based on logo-maroon.webp — dominant #540001) */
body.zm-scheme-maroon {
    --zm-deep: #2e0001;
    --zm-primary: #540001;
    --zm-secondary: #8b3a3a;
    --zm-tertiary: #c08b8b;
    --zm-light: #f2e4e3;
    --zm-surface: #fdf7f6;
    --zm-gold: #6b0f0f;
    --zm-gold-light: #943838;
    --zm-font-serif: 'Playfair Display', Georgia, serif;
    --zm-font-sans: 'Inter', system-ui, sans-serif;
    --zm-body-bg: var(--zm-surface);
    --zm-body-color: var(--zm-deep);
}

/* ============================================
   GLOBAL OVERRIDES — apply scheme to Divi
   ============================================ */
body {
    background-color: var(--zm-body-bg) !important;
    color: var(--zm-body-color) !important;
}

/* Header / Menu */
#main-header,
#top-header,
.et-fixed-header#main-header,
#page-container #main-header {
    background-color: var(--zm-light) !important;
    min-height: 80px !important;
    height: auto !important;
    overflow: visible !important;
}
#main-header .container,
#page-container #main-header .container {
    padding: 12px 20px !important;
    min-height: 70px !important;
    height: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
}

/* Logo */
#logo,
.logo_container img,
span.logo_container img,
#main-header .logo_container img,
header .logo_container img,
#page-container #main-header #logo,
#main-header[data-height-onload] #logo,
#main-header[data-height-onload] .logo_container img {
    max-height: 66px !important;
    height: 55px !important;
    width: auto !important;
}
#main-header .container .logo_container,
.logo_container {
    width: auto !important;
    max-width: 300px !important;
    height: 55px !important;
    display: flex !important;
    align-items: center !important;
}
.logo_helper {
    display: none !important;
}
#et-top-navigation {
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    align-self: center !important;
    margin-left: auto !important;
    float: none !important;
}
#et-top-navigation nav {
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
}
#et-top-navigation nav > ul {
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
}
#et-top-navigation nav > ul > li {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}
/* Search icon — hidden by default, toggle via Customizer */
.et_search_outer,
#et-top-navigation .et-search-form,
.et_pb_search_icon,
#et_search_icon,
span.et_search_icon {
    display: none !important;
}
body.zm-show-search .et_search_outer,
body.zm-show-search .et_pb_search_icon,
body.zm-show-search #et_search_icon,
body.zm-show-search span.et_search_icon {
    display: inline-block !important;
}
#et-top-navigation nav > ul > li > a {
    color: var(--zm-deep) !important;
    font-family: var(--zm-font-sans) !important;
    font-weight: 500;
}
#et-top-navigation nav > ul > li > a:hover {
    color: var(--zm-gold) !important;
}

/* Hide page title on front page — hero has its own h1 */
.home .entry-title.main_title,
.page-id-74 .entry-title.main_title {
    display: none !important;
}

/* Divi fixed-header (scrolled) */
.et-fixed-header #logo {
    height: 40px !important;
    max-height: 50px !important;
}
.et-fixed-header#main-header {
    min-height: 60px !important;
    height: auto !important;
}
.et-fixed-header .container {
    min-height: 55px !important;
}

h1, h2, h3, h4, h5, h6,
.et_pb_module_header,
.et_pb_slide_description .et_pb_slide_title {
    font-family: var(--zm-font-serif) !important;
    color: var(--zm-deep) !important;
}

body.zm-scheme-bold h1,
body.zm-scheme-bold h2,
body.zm-scheme-bold h3,
body.zm-scheme-bold h4,
body.zm-scheme-bold h5,
body.zm-scheme-bold h6 {
    color: var(--zm-surface) !important;
}

.et_pb_text,
.et_pb_blurb_description,
.entry-content p {
    font-family: var(--zm-font-sans) !important;
}

/* Gold accent links */
a {
    color: var(--zm-gold) !important;
    transition: color 0.3s;
}
a:hover {
    color: var(--zm-gold-light) !important;
}

/* Buttons */
.et_pb_button,
.et_pb_more_button {
    background-color: var(--zm-gold) !important;
    border-color: var(--zm-gold) !important;
    color: #fff !important;
    font-family: var(--zm-font-sans) !important;
    transition: all 0.3s;
}
.et_pb_button:hover,
.et_pb_more_button:hover {
    background-color: var(--zm-gold-light) !important;
    border-color: var(--zm-gold-light) !important;
}

/* Sections and rows */
.et_pb_section {
    background-color: transparent !important;
}

/* Footer */
#footer-widgets .et_pb_widget,
#main-footer {
    background-color: var(--zm-deep) !important;
    color: var(--zm-light) !important;
}
#main-footer a {
    color: var(--zm-gold) !important;
}

/* ============================================
   HOMEPAGE — .zm-home component styles
   Force specificity over Divi
   ============================================ */
.page .entry-content .zm-home,
.et_pb_post_content .zm-home,
.zm-home{font-family:var(--zm-font-sans)!important;color:var(--zm-body-color)!important;line-height:1.7!important;overflow-x:hidden}
.zm-home *{box-sizing:border-box}

/* Disable Divi builder wrapper on homepage */
body.page .et_builder_inner_content .zm-home,
body.page .entry-content .zm-home {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* HERO — compact, with trust badges */
.zm-hero{min-height:auto;display:flex;align-items:center;justify-content:center;text-align:center;padding:5rem 2rem 4rem;background:linear-gradient(180deg,var(--zm-surface) 0%,var(--zm-light) 100%);position:relative}
.zm-hero::after{content:'';position:absolute;bottom:0;left:50%;transform:translateX(-50%);width:40px;height:1px;background:var(--zm-tertiary)}
.zm-hero-inner{max-width:720px;margin:0 auto}
.zm-hero-tag{font-size:.7rem;font-weight:600;letter-spacing:.2em;text-transform:uppercase;color:var(--zm-gold)!important;margin-bottom:1.25rem}
.zm-hero h1{font-family:var(--zm-font-serif)!important;font-size:clamp(2.2rem,5vw,3.8rem);font-weight:400;line-height:1.15;color:var(--zm-deep)!important;margin-bottom:1.25rem}
.zm-hero h1 em{font-style:italic;color:var(--zm-gold)!important}
.zm-hero p{font-size:1.05rem;color:var(--zm-secondary)!important;max-width:520px;margin:0 auto 2rem;line-height:1.8}
.zm-hero-actions{margin-bottom:2rem}
.zm-hero-trust{display:flex;justify-content:center;gap:1.5rem;flex-wrap:wrap;font-size:.8rem;color:var(--zm-primary)!important;opacity:.8}
.zm-hero-trust span{white-space:nowrap}
.zm-btn{display:inline-block;padding:.85rem 2.2rem;font-family:var(--zm-font-sans)!important;font-size:.8rem;font-weight:600;letter-spacing:.08em;text-transform:uppercase;text-decoration:none!important;border:none;cursor:pointer;transition:all .35s}
.zm-btn-gold{background:var(--zm-gold)!important;color:#fff!important;border-radius:0}
.zm-btn-gold:hover{background:var(--zm-gold-light)!important;color:#fff!important;transform:translateY(-2px);box-shadow:0 8px 30px rgba(196,167,108,.25)}
.zm-btn-outline{background:transparent!important;color:var(--zm-deep)!important;border:1.5px solid var(--zm-tertiary)!important;margin-left:1rem}
.zm-btn-outline:hover{border-color:var(--zm-gold)!important;color:var(--zm-gold)!important}

/* SECTIONS — tighter padding for denser feel */
.zm-section{padding:4rem 2rem}
.zm-container{max-width:1060px;margin:0 auto}
.zm-section-header{margin-bottom:2.5rem}
.zm-section-label{display:block;font-size:.7rem;font-weight:600;letter-spacing:.25em;text-transform:uppercase;color:var(--zm-gold)!important;margin-bottom:.75rem}
.zm-section-title{font-family:var(--zm-font-serif)!important;font-size:clamp(1.8rem,3.5vw,2.6rem);line-height:1.25;margin-bottom:1rem;color:var(--zm-deep)!important}

/* ABOUT */
.zm-about{background:var(--zm-surface)!important}
.zm-about-grid{display:grid;grid-template-columns:1fr 1fr;gap:3rem;align-items:start}
.zm-about-image{aspect-ratio:3/4;background:var(--zm-light);border-radius:0;position:relative;overflow:hidden}
.zm-about-image img{width:100%;height:100%;object-fit:cover}
.zm-about-image::after{content:'';position:absolute;top:2rem;left:2rem;right:-1rem;bottom:-1rem;border:1px solid var(--zm-gold);z-index:-1}
.zm-about-text p{margin-bottom:1rem;color:var(--zm-primary)!important;line-height:1.8;font-size:.95rem}
.zm-about-text strong{color:var(--zm-deep)!important}
.zm-about-stats{display:flex;gap:2rem;margin:1.5rem 0;padding:1.5rem 0;border-top:1px solid var(--zm-light);border-bottom:1px solid var(--zm-light)}
.zm-stat{text-align:center}
.zm-stat-num{display:block;font-family:var(--zm-font-serif)!important;font-size:1.4rem;font-weight:700;color:var(--zm-gold)!important}
.zm-stat-label{font-size:.7rem;color:var(--zm-secondary)!important;text-transform:uppercase;letter-spacing:.1em}

/* OFFER — 2×2 grid */
.zm-offer{background:var(--zm-light)!important}
.zm-offer-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:1.5rem}
.zm-offer-card{padding:2rem;background:var(--zm-surface)!important;border-left:3px solid var(--zm-gold);transition:transform .3s,box-shadow .3s}
.zm-offer-card:hover{transform:translateY(-4px);box-shadow:0 12px 40px rgba(61,56,50,.06)}
.zm-offer-card h4{font-family:var(--zm-font-serif)!important;font-size:1.1rem;margin-bottom:.5rem;color:var(--zm-deep)!important}
.zm-offer-card p{font-size:.88rem;color:var(--zm-secondary)!important;line-height:1.7}
.zm-offer-icon{font-size:1.6rem;margin-bottom:.75rem;color:var(--zm-gold)!important}
.zm-offer-link{display:inline-block;margin-top:.5rem;color:var(--zm-gold)!important;font-weight:600;font-size:.85rem;text-decoration:none!important}

/* CREDENTIALS */
.zm-cred{background:var(--zm-surface)!important}
.zm-cred-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:2rem}
.zm-cred-card{padding:2rem;border-bottom:1px solid var(--zm-light)}
.zm-cred-card h4{font-family:var(--zm-font-serif)!important;font-size:1.05rem;margin-bottom:.5rem;color:var(--zm-deep)!important}
.zm-cred-card p{font-size:.9rem;color:var(--zm-secondary)!important;line-height:1.7}

/* PROCESS */
.zm-process{background:var(--zm-light)!important}
.zm-process-steps{display:grid;grid-template-columns:repeat(4,1fr);gap:2rem;margin-top:2rem}
.zm-step{text-align:center;padding:2rem 1rem}
.zm-step-num{font-family:var(--zm-font-serif)!important;font-size:3rem;color:var(--zm-gold)!important;opacity:.5;line-height:1}
.zm-step h4{font-family:var(--zm-font-serif)!important;font-size:1rem;margin:.75rem 0 .5rem;color:var(--zm-deep)!important}
.zm-step p{font-size:.85rem;color:var(--zm-secondary)!important;line-height:1.7}

/* QUOTE */
.zm-quote{background:var(--zm-deep)!important;padding:4rem 2rem;text-align:center}
.zm-quote blockquote{font-family:var(--zm-font-serif)!important;font-size:clamp(1.2rem,2.5vw,1.7rem);font-style:italic;color:var(--zm-light)!important;max-width:700px;margin:0 auto 1.5rem;line-height:1.5;border:none;padding:0}
.zm-quote cite{font-family:var(--zm-font-sans)!important;font-size:.8rem;color:var(--zm-gold)!important;font-style:normal;letter-spacing:.08em;text-transform:uppercase}

/* NEWSLETTER */
.zm-newsletter{background:var(--zm-light)!important}
.zm-newsletter-lead{font-size:.95rem;color:var(--zm-secondary)!important;max-width:480px;margin:0 auto 1.5rem;line-height:1.7}
.zm-newsletter-form{display:flex;gap:.75rem;max-width:460px;margin:0 auto 1rem;justify-content:center}
.zm-newsletter-input{flex:1;padding:.75rem 1rem;font-family:var(--zm-font-sans)!important;font-size:.9rem;border:1px solid var(--zm-tertiary);background:var(--zm-surface);color:var(--zm-deep);outline:none;transition:border-color .3s}
.zm-newsletter-input:focus{border-color:var(--zm-gold)}
.zm-newsletter-btn{white-space:nowrap;padding:.75rem 1.5rem}
.zm-newsletter-note{font-size:.75rem;color:var(--zm-tertiary)!important;margin-top:.5rem}
.zm-newsletter-status{font-size:.9rem;margin-top:.75rem;font-weight:600}
.zm-newsletter-status.success{color:#2e7d32!important}
.zm-newsletter-status.error{color:#c62828!important}

/* CONTACT FORM */
.zm-contact{background:var(--zm-surface)!important}
.zm-contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:3rem;align-items:start}
.zm-contact-info p{font-size:.95rem;color:var(--zm-secondary)!important;line-height:1.8;margin-bottom:1.5rem}
.zm-contact-details{display:flex;flex-direction:column;gap:.75rem}
.zm-contact-item{display:flex;align-items:center;gap:.6rem;font-size:.9rem}
.zm-contact-icon{font-size:1.1rem;width:1.5rem;text-align:center}
.zm-contact-item a{color:var(--zm-deep)!important;text-decoration:none!important;font-weight:500}
.zm-contact-item a:hover{color:var(--zm-gold)!important}
.zm-form-group{margin-bottom:1rem}
.zm-form-input{width:100%;padding:.75rem 1rem;font-family:var(--zm-font-sans)!important;font-size:.9rem;border:1px solid var(--zm-tertiary);background:var(--zm-surface);color:var(--zm-deep);outline:none;transition:border-color .3s;-webkit-appearance:none;appearance:none;border-radius:0}
.zm-form-input:focus{border-color:var(--zm-gold)}
.zm-form-select{cursor:pointer;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23979289' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 1rem center;padding-right:2.5rem}
.zm-form-textarea{resize:vertical;min-height:100px}
.zm-form-submit{width:100%;margin-top:.5rem}
.zm-form-status{font-size:.9rem;margin-top:.75rem;font-weight:600}
.zm-form-status.success{color:#2e7d32!important}
.zm-form-status.error{color:#c62828!important}

/* WHATSAPP FLOATING BUTTON */
.zm-wa-float{position:fixed;bottom:1.5rem;right:1.5rem;z-index:9999;width:56px;height:56px;border-radius:50%;background:#25D366!important;display:flex;align-items:center;justify-content:center;box-shadow:0 4px 20px rgba(37,211,102,.35);transition:transform .3s,box-shadow .3s;text-decoration:none!important}
.zm-wa-float:hover{transform:scale(1.1);box-shadow:0 6px 28px rgba(37,211,102,.45)}

/* RESPONSIVE — homepage */
@media(max-width:768px){
  .zm-about-grid{grid-template-columns:1fr}
  .zm-offer-grid{grid-template-columns:1fr}
  .zm-cred-grid{grid-template-columns:1fr}
  .zm-process-steps{grid-template-columns:repeat(2,1fr)}
  .zm-about-image::after{display:none}
  .zm-section{padding:3rem 1.25rem}
  .zm-hero{padding:3.5rem 1.25rem 3rem}
  .zm-btn-outline{margin-left:0;margin-top:1rem}
  .zm-hero-actions .zm-btn{display:block;width:100%;text-align:center;margin:0 0 .75rem}
  .zm-hero-trust{flex-direction:column;gap:.5rem}
  .zm-about-stats{flex-direction:column;gap:1rem}
  .zm-newsletter-form{flex-direction:column}
  .zm-newsletter-btn{width:100%}
  .zm-contact-grid{grid-template-columns:1fr}
  .zm-wa-float{bottom:1rem;right:1rem;width:50px;height:50px}
}
@media(max-width:480px){
  .zm-process-steps{grid-template-columns:1fr}
  .zm-quote{padding:3rem 1.25rem}
}

/* ============================================
   V6 MAROON — scheme-specific overrides
   ============================================ */
/* Header gets warm cream with subtle maroon bottom border */
body.zm-scheme-maroon #main-header,
body.zm-scheme-maroon #top-header,
body.zm-scheme-maroon .et-fixed-header#main-header {
    background-color: #fdf7f6 !important;
    border-bottom: 2px solid #540001 !important;
}
body.zm-scheme-maroon #et-top-navigation nav > ul > li > a:hover {
    color: #6b0f0f !important;
}

/* Hero gradient with warm rose */
body.zm-scheme-maroon .zm-hero {
    background: linear-gradient(180deg, #fdf7f6 0%, #f2e4e3 50%, #e8d5d3 100%) !important;
}
body.zm-scheme-maroon .zm-hero::after {
    background: #c08b8b;
}

/* Buttons — deep maroon solid */
body.zm-scheme-maroon .zm-btn-gold,
body.zm-scheme-maroon .et_pb_button,
body.zm-scheme-maroon .et_pb_more_button {
    background: #540001 !important;
    border-color: #540001 !important;
    color: #fff !important;
}
body.zm-scheme-maroon .zm-btn-gold:hover,
body.zm-scheme-maroon .et_pb_button:hover,
body.zm-scheme-maroon .et_pb_more_button:hover {
    background: #6b0f0f !important;
    border-color: #6b0f0f !important;
    box-shadow: 0 8px 30px rgba(84, 0, 1, 0.2);
}
body.zm-scheme-maroon .zm-btn-outline {
    border-color: #c08b8b !important;
    color: #540001 !important;
}
body.zm-scheme-maroon .zm-btn-outline:hover {
    border-color: #540001 !important;
    color: #540001 !important;
}

/* Offer cards — maroon left border */
body.zm-scheme-maroon .zm-offer-card {
    border-left-color: #540001;
}
body.zm-scheme-maroon .zm-offer-card:hover {
    box-shadow: 0 12px 40px rgba(84, 0, 1, 0.08);
}

/* Quote section — deep maroon background */
body.zm-scheme-maroon .zm-quote {
    background: linear-gradient(135deg, #2e0001 0%, #450005 100%) !important;
}
body.zm-scheme-maroon .zm-quote blockquote {
    color: #f2e4e3 !important;
}
body.zm-scheme-maroon .zm-quote cite {
    color: #c08b8b !important;
}

/* Footer — matching maroon */
body.zm-scheme-maroon #footer-widgets .et_pb_widget,
body.zm-scheme-maroon #main-footer {
    background-color: #2e0001 !important;
    color: #f2e4e3 !important;
}
body.zm-scheme-maroon #main-footer a {
    color: #c08b8b !important;
}

/* Newsletter & Contact */
body.zm-scheme-maroon .zm-newsletter-input,
body.zm-scheme-maroon .zm-form-input {
    border-color: #e8d5d3;
    background: #fdf7f6;
}
body.zm-scheme-maroon .zm-newsletter-input:focus,
body.zm-scheme-maroon .zm-form-input:focus {
    border-color: #540001;
}
body.zm-scheme-maroon .zm-contact-item a {
    color: #2e0001 !important;
}
body.zm-scheme-maroon .zm-contact-item a:hover {
    color: #6b0f0f !important;
}

/* Step numbers */
body.zm-scheme-maroon .zm-step-num {
    color: #540001 !important;
    opacity: 0.35;
}

/* About image frame */
body.zm-scheme-maroon .zm-about-image::after {
    border-color: #540001;
}

/* Offer icons */
body.zm-scheme-maroon .zm-offer-icon {
    color: #540001 !important;
}

/* ============================================
   MOBILE MENU — fix for Divi ≤ 980px
   Undo desktop flex overrides so Divi hamburger
   menu works correctly on phones / tablets.
   ============================================ */
@media (max-width: 980px) {
    /* Let Divi hide the desktop nav and show hamburger */
    #et-top-navigation {
        display: block !important;
        padding-top: 0 !important;
    }
    #et-top-navigation nav {
        display: none !important;
    }

    /* Header layout — allow stacking */
    #main-header .container,
    #page-container #main-header .container {
        flex-wrap: wrap !important;
        justify-content: space-between !important;
        padding: 10px 15px !important;
        min-height: 60px !important;
    }

    /* Hamburger icon — ensure visible and styled */
    .mobile_menu_bar {
        display: block !important;
        position: relative !important;
        float: right !important;
        padding: 16px 0 !important;
    }
    .mobile_menu_bar::before {
        color: var(--zm-deep) !important;
        font-size: 32px !important;
    }

    /* Logo sizing for mobile */
    #logo,
    .logo_container img,
    #main-header .logo_container img {
        height: 40px !important;
        max-height: 50px !important;
    }
    .logo_container,
    #main-header .container .logo_container {
        height: 40px !important;
        max-width: 200px !important;
    }

    /* Mobile dropdown menu */
    #mobile_menu {
        display: none;
        background-color: var(--zm-surface) !important;
        border-top: 1px solid var(--zm-light) !important;
        padding: 1rem 0 !important;
        width: 100% !important;
    }
    #mobile_menu li a {
        font-family: var(--zm-font-sans) !important;
        font-size: 1rem !important;
        color: var(--zm-deep) !important;
        padding: 12px 20px !important;
        display: block !important;
        border-bottom: 1px solid var(--zm-light) !important;
        text-decoration: none !important;
    }
    #mobile_menu li a:hover {
        color: var(--zm-gold) !important;
        background-color: var(--zm-light) !important;
    }
    #mobile_menu li:last-child a {
        border-bottom: none !important;
    }

    /* Sub-menu items */
    #mobile_menu li li a {
        padding-left: 35px !important;
        font-size: 0.9rem !important;
        color: var(--zm-secondary) !important;
    }

    /* Fixed header on scroll — mobile */
    .et-fixed-header#main-header {
        min-height: 55px !important;
    }
    .et-fixed-header .container {
        min-height: 50px !important;
    }
    .et-fixed-header #logo {
        height: 35px !important;
        max-height: 40px !important;
    }
}

/* Maroon scheme — mobile menu overrides */
@media (max-width: 980px) {
    body.zm-scheme-maroon .mobile_menu_bar::before {
        color: #540001 !important;
    }
    body.zm-scheme-maroon #mobile_menu {
        background-color: #fdf7f6 !important;
        border-top: 2px solid #540001 !important;
    }
    body.zm-scheme-maroon #mobile_menu li a {
        color: #2e0001 !important;
        border-bottom-color: #f2e4e3 !important;
    }
    body.zm-scheme-maroon #mobile_menu li a:hover {
        color: #6b0f0f !important;
        background-color: #f2e4e3 !important;
    }
}
