/*
Theme Name: Everything in Melbourne
Theme URI: https://everythinginmelbourne.com.au
Author: Hyperdeft
Author URI: https://everythinginmelbourne.com.au
Description: The official Everything in Melbourne theme. Modern news/magazine theme with marquee hero, category archives, single posts, contact form, and local business directory.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: Proprietary
License URI: https://everythinginmelbourne.com.au
Text Domain: eim
*/

/* ============================================================
   DESIGN TOKENS
============================================================ */
:root {
    --eim-orange:    #E88133;
    --eim-blue:      #369EF6;
    --eim-dark:      #0a0a0c;
    --eim-bg:        #f0eeea;
    --eim-hero-bg:   #e9e8e4;
    --eim-white:     #ffffff;
    --eim-muted:     #8a8680;
    --eim-border:    rgba(10,10,12,.08);
    --eim-font:      'Urbanist', sans-serif;
    --eim-radius:    14px;
    --eim-radius-lg: 20px;
    --eim-shadow:    0 2px 16px rgba(0,0,0,.07);
    --eim-shadow-hv: 0 10px 36px rgba(0,0,0,.12);
    --eim-max:       1360px;
    --eim-gutter:    32px;
}

/* ============================================================
   RESET & BASE
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--eim-font);
    background: var(--eim-bg);
    color: var(--eim-dark);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: var(--eim-font); }
input, textarea, select { font-family: var(--eim-font); }

/* ============================================================
   UTILITY
============================================================ */
.eim-container {
    max-width: var(--eim-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--eim-gutter);
    padding-right: var(--eim-gutter);
}
.eim-sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); border: 0;
}
.rv {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .65s cubic-bezier(.16,1,.3,1), transform .65s cubic-bezier(.16,1,.3,1);
}
.rv.vis { opacity: 1; transform: none; }

/* ============================================================
   BADGE / CHIP
============================================================ */
.eim-badge {
    display: inline-flex;
    align-items: center;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 5px;
    flex-shrink: 0;
    white-space: nowrap;
    width: fit-content;
    align-self: flex-start;
    line-height: 1.4;
}

/* ============================================================
   NEWS TICKER
============================================================ */
.eim-ticker {
    background: var(--eim-dark);
    height: 36px;
    display: flex;
    align-items: center;
    overflow: hidden;
    border-bottom: 1px solid rgba(255,255,255,.05);
}
.eim-ticker__label {
    background: var(--eim-orange);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    padding: 0 18px;
    height: 100%;
    display: flex;
    align-items: center;
    white-space: nowrap;
    flex-shrink: 0;
}
.eim-ticker__track {
    display: flex;
    gap: 56px;
    width: max-content;
    animation: eimTickerScroll 250s linear infinite;
    padding-left: 32px;
}
.eim-ticker__track:hover { animation-play-state: paused; }
@keyframes eimTickerScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.eim-ticker__item {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,.6);
    white-space: nowrap;
}
.eim-ticker__item a {
    color: inherit;
    transition: color .15s;
}
.eim-ticker__item a:hover { color: var(--eim-orange); }
.eim-ticker__sep { color: rgba(255,255,255,.2); margin: 0 4px; }

/* ============================================================
   HEADER
============================================================ */
.eim-header {
    position: sticky;
    top: 0;
    z-index: 200;
    background: var(--eim-dark);
    border-bottom: 1px solid rgba(255,255,255,.07);
    transition: box-shadow .3s;
}
.eim-header.scrolled {
    box-shadow: 0 4px 32px rgba(0,0,0,.35);
}
.eim-header__inner {
    max-width: var(--eim-max);
    margin: 0 auto;
    padding: 0 var(--eim-gutter);
    display: flex;
    align-items: center;
    gap: 24px;
    height: 68px;
}

/* Logo */
.eim-header__logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}
.eim-header__logo img {
    height: auto;
    max-height: 46px;
    max-width: 200px;
    width: auto;
    object-fit: contain;
    object-position: left center;
    display: block;
}

/* Primary Nav */
.eim-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 1;
    list-style: none;
}
.eim-nav__item { position: relative; }
.eim-nav__link {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 13px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 600;
    color: rgba(255,255,255,.78);
    transition: background .15s, color .15s;
    white-space: nowrap;
}
.eim-nav__link:hover,
.eim-nav__link.current-menu-item,
.eim-nav__link.current-menu-ancestor {
    background: rgba(255,255,255,.08);
    color: #fff;
}
.eim-nav__link.active { color: var(--eim-orange); }
.eim-nav__link svg {
    width: 12px; height: 12px; flex-shrink: 0;
    transition: transform .2s;
}
.eim-nav__item:hover .eim-nav__link svg { transform: rotate(180deg); }

/* Dropdown */
.eim-nav__dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background: var(--eim-white);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,.18);
    border: 1px solid var(--eim-border);
    min-width: 210px;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transition: all .22s cubic-bezier(.16,1,.3,1);
    pointer-events: none;
    list-style: none;
}
.eim-nav__item:hover .eim-nav__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}
.eim-nav__dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 600;
    color: var(--eim-dark);
    transition: background .14s, color .14s;
}
.eim-nav__dropdown a:hover {
    background: rgba(232,129,51,.08);
    color: var(--eim-orange);
}

/* Header right controls */
.eim-header__right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.eim-header__icon-btn {
    width: 38px; height: 38px;
    border-radius: 10px;
    background: rgba(255,255,255,.08);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.75);
    transition: background .15s, color .15s;
}
.eim-header__icon-btn:hover {
    background: rgba(255,255,255,.15);
    color: #fff;
}
.eim-header__icon-btn svg { width: 17px; height: 17px; }

/* Hamburger */
.eim-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 38px; height: 38px;
    border-radius: 10px;
    background: rgba(255,255,255,.08);
    border: none;
    align-items: center;
    justify-content: center;
}
.eim-hamburger span {
    display: block;
    width: 18px; height: 2px;
    background: rgba(255,255,255,.8);
    border-radius: 2px;
    transition: all .28s cubic-bezier(.16,1,.3,1);
    transform-origin: center;
}
.eim-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.eim-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.eim-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
/* Pointer cursor on open state so users know it's clickable to close */
.eim-hamburger.open { cursor: pointer; }

/* ============================================================
   MOBILE NAV DRAWER
============================================================ */
.eim-mobile-nav {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 199;
    background: rgba(10,10,12,.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .28s;
}
.eim-mobile-nav.open {
    opacity: 1;
    pointer-events: auto;
}
.eim-mobile-nav__panel {
    position: absolute;
    right: 0; top: 0; bottom: 0;
    width: min(340px, 90vw);
    background: var(--eim-dark);
    transform: translateX(100%);
    transition: transform .35s cubic-bezier(.16,1,.3,1);
    overflow-y: auto;
    border-left: 1px solid rgba(255,255,255,.07);
    display: flex;
    flex-direction: column;
}
.eim-mobile-nav.open .eim-mobile-nav__panel {
    transform: none;
}
.eim-mobile-nav__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255,255,255,.07);
    flex-shrink: 0;
}
.eim-mobile-nav__head img {
    height: auto;
    max-height: 38px;
    max-width: 160px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}
.eim-mobile-nav__close {
    width: 36px; height: 36px;
    border-radius: 9px;
    background: rgba(255,255,255,.07);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.7);
    transition: background .15s;
}
.eim-mobile-nav__close:hover { background: rgba(255,255,255,.14); color: #fff; }
.eim-mobile-nav__close svg { width: 16px; height: 16px; }
.eim-mobile-nav__links {
    list-style: none;
    padding: 12px 0;
    flex: 1;
}
.eim-mobile-nav__links li a {
    display: block;
    padding: 13px 24px;
    font-size: 15px;
    font-weight: 700;
    color: rgba(255,255,255,.72);
    border-bottom: 1px solid rgba(255,255,255,.05);
    transition: color .15s, padding-left .2s;
}
.eim-mobile-nav__links li a:hover,
.eim-mobile-nav__links li.current-menu-item a {
    color: var(--eim-orange);
    padding-left: 30px;
}

/* ============================================================
   FULLSCREEN SEARCH
============================================================ */
.eim-search-overlay {
    position: fixed;
    inset: 0;
    z-index: 300;
    background: rgba(10,10,12,.97);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 80px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .28s;
}
.eim-search-overlay.open {
    opacity: 1;
    pointer-events: auto;
}
.eim-search-overlay__close {
    position: absolute;
    top: 24px; right: 24px;
    width: 44px; height: 44px;
    border-radius: 12px;
    background: rgba(255,255,255,.08);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.7);
    transition: background .15s;
}
.eim-search-overlay__close:hover { background: rgba(255,255,255,.14); color: #fff; }
.eim-search-overlay__close svg { width: 20px; height: 20px; }
.eim-search-overlay__label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--eim-orange);
    margin-bottom: 20px;
}
.eim-search-overlay__wrap {
    width: min(720px, 92vw);
    position: relative;
}
.eim-search-overlay__input {
    width: 100%;
    background: rgba(255,255,255,.07);
    border: 2px solid rgba(255,255,255,.12);
    border-radius: 16px;
    padding: 20px 60px 20px 24px;
    font-family: var(--eim-font);
    font-size: 22px;
    font-weight: 600;
    color: #fff;
    outline: none;
    transition: border-color .2s;
}
.eim-search-overlay__input::placeholder { color: rgba(255,255,255,.28); }
.eim-search-overlay__input:focus { border-color: var(--eim-orange); }
.eim-search-overlay__btn {
    position: absolute;
    right: 14px; top: 50%;
    transform: translateY(-50%);
    background: var(--eim-orange);
    border: none;
    border-radius: 10px;
    width: 40px; height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: background .2s;
}
.eim-search-overlay__btn:hover { background: #c9611a; }
.eim-search-overlay__btn svg { width: 17px; height: 17px; }
.eim-search-overlay__hint {
    font-size: 12.5px;
    color: rgba(255,255,255,.28);
    margin-top: 14px;
}
.eim-search-overlay__results {
    width: min(720px, 92vw);
    margin-top: 20px;
    max-height: calc(100vh - 280px);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.eim-search-result {
    background: rgba(255,255,255,.06);
    border-radius: 12px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: background .15s;
    text-decoration: none;
}
.eim-search-result:hover { background: rgba(255,255,255,.1); }
.eim-search-result__thumb {
    width: 54px;
    height: 40px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: rgba(255,255,255,.05);
}
.eim-search-result__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.eim-search-result__cat {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--eim-orange);
    margin-bottom: 3px;
}
.eim-search-result__title {
    font-size: 13.5px;
    font-weight: 700;
    color: #fff;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.eim-search-result__meta {
    font-size: 11px;
    color: rgba(255,255,255,.35);
    margin-top: 2px;
}
.eim-search-overlay__no-results {
    text-align: center;
    padding: 32px;
    color: rgba(255,255,255,.35);
    font-size: 14px;
    font-weight: 600;
}

/* ============================================================
   FOOTER
============================================================ */
.eim-footer {
    background: var(--eim-dark);
    color: rgba(255,255,255,.7);
    margin-top: 80px;
}
.eim-footer__top {
    max-width: var(--eim-max);
    margin: 0 auto;
    padding: 60px var(--eim-gutter) 48px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
}
/* Logo */
.eim-footer__logo {
    display: block;
    margin-bottom: 16px;
}
.eim-footer__logo img {
    height: auto;
    max-height: 50px;
    max-width: 220px;
    width: auto;
    object-fit: contain;
    object-position: left center;
    display: block;
}
.eim-footer__tagline {
    font-size: 13px;
    line-height: 1.68;
    color: rgba(255,255,255,.4);
    max-width: 280px;
    margin-bottom: 22px;
}
/* Facebook follow */
.eim-footer__fb {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 12px;
    padding: 11px 16px;
    color: rgba(255,255,255,.65);
    font-size: 13px;
    font-weight: 700;
    transition: all .2s;
    text-decoration: none;
}
.eim-footer__fb:hover {
    background: #1877f2;
    border-color: #1877f2;
    color: #fff;
}
.eim-footer__fb svg { width: 16px; height: 16px; flex-shrink: 0; }

/* Footer columns */
.eim-footer__col h4 {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: rgba(255,255,255,.28);
    margin-bottom: 16px;
}
.eim-footer__col ul { list-style: none; }
.eim-footer__col ul li a {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255,255,255,.5);
    padding: 5px 0;
    transition: color .15s;
}
.eim-footer__col ul li a:hover { color: var(--eim-orange); }

/* Footer bottom bar */
.eim-footer__bottom {
    border-top: 1px solid rgba(255,255,255,.07);
    max-width: var(--eim-max);
    margin: 0 auto;
    padding: 20px var(--eim-gutter);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.eim-footer__copy {
    font-size: 12.5px;
    color: rgba(255,255,255,.28);
}
.eim-footer__copy a {
    color: rgba(255,255,255,.4);
    transition: color .15s;
}
.eim-footer__copy a:hover { color: var(--eim-orange); }
.eim-footer__links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.eim-footer__links a {
    font-size: 12.5px;
    font-weight: 600;
    color: rgba(255,255,255,.32);
    transition: color .15s;
}
.eim-footer__links a:hover { color: var(--eim-orange); }

/* ============================================================
   SECTION HEADERS
============================================================ */
.eim-sec-head {
    display: flex;
    align-items: center;
    gap: 11px;
    padding-bottom: 14px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--eim-border);
}
.eim-sec-head__acc {
    width: 4px; height: 22px;
    border-radius: 2px;
    background: var(--eim-orange);
    flex-shrink: 0;
}
.eim-sec-head h2, .eim-sec-head h3 {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--eim-dark);
    margin: 0;
}
.eim-sec-head__link {
    margin-left: auto;
    font-size: 12px;
    font-weight: 700;
    color: var(--eim-orange);
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    transition: opacity .15s;
}
.eim-sec-head__link:hover { opacity: .65; color: var(--eim-orange); }

/* ============================================================
   POST CARDS (used on archive, related posts)
============================================================ */
.eim-card {
    background: var(--eim-white);
    border-radius: var(--eim-radius);
    overflow: hidden;
    border: 1px solid var(--eim-border);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    transition:
        box-shadow .25s cubic-bezier(.16,1,.3,1),
        transform .25s cubic-bezier(.16,1,.3,1);
}
.eim-card:hover {
    box-shadow: var(--eim-shadow-hv);
    transform: translateY(-3px);
}
.eim-card__img {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    flex-shrink: 0;
}
.eim-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .55s cubic-bezier(.16,1,.3,1);
}
.eim-card:hover .eim-card__img img { transform: scale(1.06); }
.eim-card__body {
    padding: 14px 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    align-items: flex-start;
}
.eim-card__title {
    font-size: 14.5px;
    font-weight: 800;
    line-height: 1.32;
    letter-spacing: -.02em;
    color: var(--eim-dark);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.eim-card__meta {
    font-size: 11.5px;
    color: var(--eim-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    font-weight: 500;
    margin-top: auto;
}
.eim-card__meta .sep { opacity: .4; }

/* ============================================================
   SIDEBAR WIDGETS
============================================================ */
.eim-sidebar { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 90px; }
.eim-widget {
    background: var(--eim-white);
    border: 1px solid var(--eim-border);
    border-radius: var(--eim-radius);
    overflow: hidden;
}
.eim-widget__head {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    padding: 13px 16px;
    border-bottom: 1px solid var(--eim-border);
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--eim-dark);
}
.eim-widget__dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--eim-orange);
    flex-shrink: 0;
}
/* Trending item in sidebar */
.eim-trending-item {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 11px 16px;
    border-bottom: 1px solid var(--eim-border);
    text-decoration: none;
    color: var(--eim-dark);
    transition: background .15s;
}
.eim-trending-item:last-child { border-bottom: none; }
.eim-trending-item:hover { background: rgba(240,238,234,.6); }
.eim-trending-item__num {
    font-size: 22px;
    font-weight: 900;
    font-style: italic;
    color: rgba(10,10,12,.1);
    line-height: 1;
    width: 26px;
    flex-shrink: 0;
    transition: color .2s;
}
.eim-trending-item:hover .eim-trending-item__num { color: var(--eim-orange); }
.eim-trending-item__title {
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.32;
}
.eim-trending-item__meta {
    font-size: 11px;
    color: var(--eim-muted);
    margin-top: 3px;
    font-weight: 500;
}
/* Cat list in sidebar */
.eim-cat-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    border-bottom: 1px solid var(--eim-border);
    font-size: 13px;
    font-weight: 600;
    color: var(--eim-dark);
    transition: background .14s, color .14s;
}
.eim-cat-list a:last-child { border-bottom: none; }
.eim-cat-list a:hover { background: rgba(232,129,51,.05); color: var(--eim-orange); }
.eim-cat-list__count {
    font-size: 11px;
    font-weight: 700;
    color: var(--eim-muted);
    background: rgba(10,10,12,.05);
    padding: 2px 8px;
    border-radius: 50px;
}
/* Newsletter widget */
.eim-nl-widget {
    background: var(--eim-dark);
    border-radius: var(--eim-radius);
    padding: 22px 18px;
    position: relative;
    overflow: hidden;
}
.eim-nl-widget::before {
    content: 'NEWS';
    position: absolute;
    bottom: -14px; right: -4px;
    font-size: 52px;
    font-weight: 900;
    font-style: italic;
    color: rgba(255,255,255,.03);
    pointer-events: none;
}
.eim-nl-widget__tag {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--eim-orange);
    margin-bottom: 8px;
    display: block;
}
.eim-nl-widget h3 {
    font-size: 16px;
    font-weight: 900;
    color: #fff;
    letter-spacing: -.03em;
    line-height: 1.2;
    margin-bottom: 6px;
}
.eim-nl-widget p {
    font-size: 12px;
    color: rgba(255,255,255,.38);
    line-height: 1.6;
    margin-bottom: 14px;
}
.eim-nl-widget input {
    width: 100%;
    background: rgba(255,255,255,.07);
    border: 1.5px solid rgba(255,255,255,.1);
    border-radius: 9px;
    padding: 10px 12px;
    color: #fff;
    font-size: 13px;
    outline: none;
    transition: border-color .2s;
    margin-bottom: 8px;
    display: block;
}
.eim-nl-widget input::placeholder { color: rgba(255,255,255,.25); }
.eim-nl-widget input:focus { border-color: var(--eim-orange); }
.eim-nl-widget button {
    width: 100%;
    padding: 11px;
    background: var(--eim-orange);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    border-radius: 9px;
    border: none;
    transition: background .2s;
}
.eim-nl-widget button:hover { background: #c9611a; }
/* Sidebar ad */
.eim-sb-ad {
    display: block;
    border-radius: var(--eim-radius);
    overflow: hidden;
}
.eim-sb-ad img {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity .2s;
}
.eim-sb-ad:hover img { opacity: .92; }

/* ============================================================
   CATEGORY BREADCRUMB & HERO
============================================================ */
.eim-cat-hero {
    background: var(--eim-hero-bg);
    padding: 44px 0 48px;
    position: relative;
    overflow: hidden;
}
.eim-cat-hero::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(232,129,51,.07) 0%, transparent 60%);
    pointer-events: none;
}
.eim-breadcrumb {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 600;
    color: var(--eim-muted);
    margin-bottom: 18px;
    flex-wrap: wrap;
}
.eim-breadcrumb a { color: var(--eim-muted); transition: color .15s; }
.eim-breadcrumb a:hover { color: var(--eim-orange); }
.eim-breadcrumb svg { width: 11px; height: 11px; flex-shrink: 0; }
.eim-cat-hero__title {
    font-size: clamp(28px, 4.5vw, 52px);
    font-weight: 900;
    letter-spacing: -.04em;
    line-height: 1.06;
    color: var(--eim-dark);
    margin-bottom: 12px;
    display: block;
    width: fit-content;
}
.eim-cat-hero__desc {
    font-size: 15px;
    color: var(--eim-muted);
    line-height: 1.68;
    display: block;
    width: fit-content;
    margin-bottom: 24px;
}
/* Filter pills */
.eim-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.eim-filter-btn {
    padding: 7px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    background: var(--eim-white);
    border: 1.5px solid var(--eim-border);
    color: var(--eim-dark);
    transition: all .18s;
    white-space: nowrap;
}
.eim-filter-btn:hover,
.eim-filter-btn.active {
    background: var(--eim-dark);
    color: #fff;
    border-color: var(--eim-dark);
}

/* ============================================================
   ARCHIVE PAGE GRID
============================================================ */
.eim-archive-wrap {
    max-width: var(--eim-max);
    margin: 0 auto;
    padding: 40px var(--eim-gutter) 80px;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    align-items: start; /* sticky sidebar needs start, not stretch */
}
.eim-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
/* Featured card in grid */
.eim-featured-card {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    background: var(--eim-white);
    border-radius: var(--eim-radius-lg);
    overflow: hidden;
    border: 1px solid var(--eim-border);
    text-decoration: none;
    transition: box-shadow .3s;
}
.eim-featured-card:hover { box-shadow: 0 14px 48px rgba(0,0,0,.09); }
.eim-featured-card__img {
    aspect-ratio: 16 / 9;
    overflow: hidden;
}
.eim-featured-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s cubic-bezier(.16,1,.3,1);
}
.eim-featured-card:hover .eim-featured-card__img img { transform: scale(1.04); }
.eim-featured-card__body {
    padding: 28px 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
}
.eim-featured-card__title {
    font-size: clamp(17px, 2vw, 24px);
    font-weight: 900;
    letter-spacing: -.03em;
    line-height: 1.2;
    color: var(--eim-dark);
}
.eim-featured-card__excerpt {
    font-size: 13.5px;
    color: var(--eim-muted);
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.eim-featured-card__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--eim-muted);
    flex-wrap: wrap;
    margin-top: auto;
}
.eim-featured-card__av {
    width: 26px; height: 26px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}
.eim-featured-card__av img { width: 100%; height: 100%; object-fit: cover; }
.eim-read-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--eim-dark);
    color: #fff;
    font-size: 12.5px;
    font-weight: 700;
    padding: 9px 18px;
    border-radius: 50px;
    margin-top: 12px;
    transition: background .2s;
    text-decoration: none;
}
.eim-read-btn:hover { background: var(--eim-orange); color: #fff; }
.eim-read-btn svg { width: 12px; height: 12px; }

/* Pagination */
.eim-pagination {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding-top: 36px;
}
.eim-page-btn {
    min-width: 40px; height: 40px;
    border-radius: 10px;
    background: var(--eim-white);
    border: 1.5px solid var(--eim-border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--eim-dark);
    transition: all .18s;
    text-decoration: none;
}
.eim-page-btn:hover,
.eim-page-btn.current {
    background: var(--eim-dark);
    color: #fff;
    border-color: var(--eim-dark);
}
.eim-page-btn.current { background: var(--eim-orange); border-color: var(--eim-orange); }
.eim-page-btn svg { width: 14px; height: 14px; }

/* ============================================================
   SINGLE POST
============================================================ */
.eim-post-hero {
    background: var(--eim-hero-bg);
    padding: 40px 0 0;
    position: relative;
    overflow: hidden;
}
.eim-post-hero::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 65% 40%, rgba(54,158,246,.06) 0%, transparent 55%);
    pointer-events: none;
}
.eim-post-hero__inner {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 var(--eim-gutter);
    position: relative;
    z-index: 1;
}
.eim-post-hero__badge { margin-bottom: 14px; }
.eim-post-hero__title {
    font-size: clamp(24px, 4.2vw, 48px);
    font-weight: 900;
    letter-spacing: -.04em;
    line-height: 1.1;
    color: var(--eim-dark);
    margin-bottom: 20px;
    display: block;
    width: fit-content;
}
.eim-post-hero__meta {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    padding-bottom: 24px;
}
.eim-post-author {
    display: flex;
    align-items: center;
    gap: 9px;
}
.eim-post-author__av {
    width: 36px; height: 36px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid var(--eim-border);
}
.eim-post-author__av img { width: 100%; height: 100%; object-fit: cover; }
.eim-post-author__name { font-size: 13.5px; font-weight: 700; }
.eim-post-author__role { font-size: 11.5px; color: var(--eim-muted); font-weight: 500; }
.eim-meta-divider {
    width: 1px; height: 26px;
    background: var(--eim-border);
    flex-shrink: 0;
}
.eim-meta-stat {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12.5px;
    color: var(--eim-muted);
    font-weight: 500;
}
.eim-meta-stat svg { width: 13px; height: 13px; flex-shrink: 0; }
/* Share row */
.eim-share-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 0 32px;
}
.eim-share-label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--eim-muted);
}
.eim-share-btn {
    width: 34px; height: 34px;
    border-radius: 9px;
    background: var(--eim-white);
    border: 1.5px solid var(--eim-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--eim-dark);
    transition: all .18s;
}
.eim-share-btn:hover { background: var(--eim-dark); border-color: var(--eim-dark); color: #fff; }
.eim-share-btn svg { width: 14px; height: 14px; }

/* Hero image */
.eim-post-cover {
    margin: 20px auto;
    padding: 0 var(--eim-gutter);
}
.eim-post-cover figure {
    border-radius: var(--eim-radius-lg);
    overflow: hidden;
    box-shadow: 0 18px 56px rgba(0,0,0,.1);
    aspect-ratio: 16 / 7;
}
.eim-post-cover figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.eim-post-cover figcaption {
    font-size: 12px;
    color: var(--eim-muted);
    text-align: center;
    padding: 9px 0 0;
    font-style: italic;
}

/* Article layout */
.eim-article-layout {
    max-width: var(--eim-max);
    margin: 0 auto;
    padding: 44px var(--eim-gutter) 80px;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 44px;
    align-items: start;
}
.eim-article-body { max-width: none; }
.eim-article-content {
    font-size: 17px;
    line-height: 1.78;
    color: var(--eim-dark);
}
.eim-article-content p { margin-bottom: 22px; }
.eim-article-content h2 {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -.03em;
    line-height: 1.2;
    margin: 32px 0 12px;
}
.eim-article-content h3 {
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -.02em;
    margin: 24px 0 10px;
}
.eim-article-content ul,
.eim-article-content ol {
    padding-left: 24px;
    margin-bottom: 22px;
}
.eim-article-content li { margin-bottom: 7px; line-height: 1.7; }
.eim-article-content blockquote {
    border-left: 4px solid var(--eim-orange);
    background: var(--eim-hero-bg);
    border-radius: 0 12px 12px 0;
    padding: 18px 22px;
    margin: 28px 0;
    font-size: 17px;
    font-weight: 600;
    font-style: italic;
}
.eim-article-content a {
    color: var(--eim-orange);
    text-decoration: underline;
    text-decoration-color: rgba(232,129,51,.35);
}
.eim-article-content img {
    width: 100%;
    border-radius: var(--eim-radius);
    margin: 24px 0;
}
/* Key info box */
.eim-key-info {
    background: var(--eim-white);
    border: 1px solid var(--eim-border);
    border-radius: var(--eim-radius);
    padding: 22px;
    margin: 28px 0;
}
.eim-key-info h4 {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--eim-orange);
    margin-bottom: 14px;
}
.eim-key-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid var(--eim-border);
}
.eim-key-row:last-child { border-bottom: none; padding-bottom: 0; }
.eim-key-icon {
    width: 30px; height: 30px;
    border-radius: 8px;
    background: rgba(232,129,51,.1);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.eim-key-icon svg { width: 14px; height: 14px; color: var(--eim-orange); }
.eim-key-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--eim-muted); }
.eim-key-val { font-size: 14px; font-weight: 700; }
/* Tags */
.eim-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 36px 0 0;
}
.eim-tag {
    padding: 6px 14px;
    border-radius: 50px;
    background: var(--eim-white);
    border: 1.5px solid var(--eim-border);
    font-size: 12.5px;
    font-weight: 700;
    color: var(--eim-dark);
    transition: all .18s;
}
.eim-tag:hover { background: var(--eim-dark); color: #fff; border-color: var(--eim-dark); }
/* Author box */
.eim-author-box {
    background: var(--eim-white);
    border: 1px solid var(--eim-border);
    border-radius: var(--eim-radius-lg);
    padding: 24px;
    margin-top: 36px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}
.eim-author-box__av {
    width: 58px; height: 58px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 3px solid var(--eim-hero-bg);
}
.eim-author-box__av img { width: 100%; height: 100%; object-fit: cover; }
.eim-author-box__name { font-size: 15px; font-weight: 900; letter-spacing: -.02em; }
.eim-author-box__role { font-size: 11.5px; color: var(--eim-muted); font-weight: 600; margin-bottom: 8px; }
.eim-author-box__bio { font-size: 13px; color: var(--eim-muted); line-height: 1.65; }
/* Related posts */
.eim-related { margin-top: 52px; }
.eim-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

/* Reading progress */
#eim-progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    background: var(--eim-orange);
    z-index: 9999;
    width: 0%;
    transition: width .1s;
}

/* ============================================================
   CONTACT PAGE
============================================================ */
.eim-page-hero {
    background: var(--eim-hero-bg);
    padding: 56px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.eim-page-hero::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 50% 100%, rgba(232,129,51,.09) 0%, transparent 55%);
    pointer-events: none;
}
.eim-page-hero__inner { max-width: 640px; margin: 0 auto; padding: 0 var(--eim-gutter); position: relative; z-index: 1; }
.eim-page-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(232,129,51,.1);
    color: var(--eim-orange);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 50px;
    margin-bottom: 16px;
}
.eim-page-hero h1 {
    font-size: clamp(30px, 4.5vw, 52px);
    font-weight: 900;
    letter-spacing: -.04em;
    line-height: 1.06;
    color: var(--eim-dark);
    margin-bottom: 14px;
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}
.eim-page-hero p {
    font-size: 15px;
    color: var(--eim-muted);
    line-height: 1.7;
    display: block;
    width: fit-content;
    margin: 0 auto;
}
.eim-contact-wrap {
    max-width: 1160px;
    margin: 0 auto;
    padding: 52px var(--eim-gutter) 80px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}
/* Contact form */
.eim-cf {
    background: var(--eim-white);
    border-radius: var(--eim-radius-lg);
    padding: 32px;
    border: 1px solid var(--eim-border);
}
.eim-cf h2 { font-size: 21px; font-weight: 900; letter-spacing: -.03em; margin-bottom: 5px; }
.eim-cf-sub { font-size: 13.5px; color: var(--eim-muted); margin-bottom: 24px; line-height: 1.6; }
.eim-cf-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}
.eim-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.eim-field label { font-size: 11.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--eim-dark); }
.eim-field input,
.eim-field textarea,
.eim-field select {
    background: var(--eim-bg);
    border: 1.5px solid var(--eim-border);
    border-radius: 10px;
    padding: 11px 13px;
    font-size: 14px;
    color: var(--eim-dark);
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    -webkit-appearance: none;
}
.eim-field input:focus,
.eim-field textarea:focus,
.eim-field select:focus {
    border-color: var(--eim-orange);
    box-shadow: 0 0 0 3px rgba(232,129,51,.1);
}
.eim-field textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.eim-cf-submit {
    width: 100%;
    background: var(--eim-dark);
    color: #fff;
    font-size: 14.5px;
    font-weight: 800;
    padding: 13px 24px;
    border-radius: 12px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background .2s, transform .2s;
    margin-top: 4px;
}
.eim-cf-submit:hover { background: var(--eim-orange); transform: translateY(-1px); }
.eim-cf-submit svg { width: 15px; height: 15px; }
.eim-cf-note { text-align: center; font-size: 12px; color: var(--eim-muted); margin-top: 10px; }
/* Contact info cards */
.eim-ci-card {
    background: var(--eim-white);
    border: 1px solid var(--eim-border);
    border-radius: var(--eim-radius);
    padding: 18px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 10px;
    transition: box-shadow .22s, transform .22s;
}
.eim-ci-card:hover { box-shadow: var(--eim-shadow-hv); transform: translateY(-1px); }
.eim-ci-icon {
    width: 40px; height: 40px;
    border-radius: 11px;
    background: rgba(232,129,51,.1);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.eim-ci-icon svg { width: 18px; height: 18px; color: var(--eim-orange); }
.eim-ci-label { font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--eim-muted); margin-bottom: 3px; }
.eim-ci-val { font-size: 14px; font-weight: 700; color: var(--eim-dark); line-height: 1.4; }
.eim-ci-val a { transition: color .15s; }
.eim-ci-val a:hover { color: var(--eim-orange); }
.eim-ci-sub { font-size: 11.5px; color: var(--eim-muted); margin-top: 2px; }
/* FB follow button */
.eim-fb-follow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #1877f2;
    color: #fff;
    font-size: 13.5px;
    font-weight: 700;
    padding: 12px 20px;
    border-radius: 12px;
    transition: background .2s;
    text-decoration: none;
    margin-top: 16px;
}
.eim-fb-follow:hover { background: #1565d8; color: #fff; }
.eim-fb-follow svg { width: 17px; height: 17px; }

/* ============================================================
   LOCAL BUSINESS PAGE
============================================================ */
.eim-lb-hero {
    background: var(--eim-dark);
    padding: 60px 0 0;
    position: relative;
    overflow: hidden;
    text-align: center;
}
.eim-lb-hero::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(232,129,51,.14) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 20%, rgba(54,158,246,.07) 0%, transparent 45%);
    pointer-events: none;
}
.eim-lb-hero::after {
    content: '';
    position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}
.eim-lb-hero__inner { max-width: 700px; margin: 0 auto; padding: 0 var(--eim-gutter); position: relative; z-index: 1; }
.eim-lb-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(232,129,51,.15);
    color: var(--eim-orange);
    border: 1px solid rgba(232,129,51,.25);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 50px;
    margin-bottom: 18px;
}
.eim-lb-hero h1 {
    font-size: clamp(28px, 5vw, 52px);
    font-weight: 900;
    letter-spacing: -.04em;
    line-height: 1.06;
    color: #fff;
    margin-bottom: 14px;
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}
.eim-lb-hero h1 em { font-style: normal; color: var(--eim-orange); }
.eim-lb-hero p {
    font-size: 15px;
    color: rgba(255,255,255,.48);
    line-height: 1.7;
    margin-bottom: 28px;
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}
.eim-lb-hero__btns {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    padding-bottom: 48px;
}
.eim-lb-btn {
    background: var(--eim-orange);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    padding: 13px 28px;
    border-radius: 12px;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: background .2s, transform .2s;
    box-shadow: 0 6px 22px rgba(232,129,51,.32);
}
.eim-lb-btn:hover { background: #c9611a; transform: translateY(-2px); color: #fff; }
.eim-lb-btn--ghost {
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.14);
    color: rgba(255,255,255,.7);
    box-shadow: none;
}
.eim-lb-btn--ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
/* Stats bar */
.eim-lb-stats {
    background: rgba(255,255,255,.04);
    border-top: 1px solid rgba(255,255,255,.08);
}
.eim-lb-stats__inner {
    max-width: 700px;
    margin: 0 auto;
    padding: 24px var(--eim-gutter);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.eim-lb-stat { text-align: center; }
.eim-lb-stat__n {
    font-size: 24px;
    font-weight: 900;
    color: #fff;
    letter-spacing: -.04em;
    line-height: 1;
}
.eim-lb-stat__n span { color: var(--eim-orange); }
.eim-lb-stat__l {
    font-size: 10px;
    font-weight: 600;
    color: rgba(255,255,255,.32);
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-top: 4px;
}
/* Intro box */
.eim-lb-intro {
    max-width: 1160px;
    margin: 0 auto;
    padding: 48px var(--eim-gutter) 0;
}
.eim-lb-intro__inner {
    background: var(--eim-white);
    border-radius: var(--eim-radius-lg);
    padding: 32px 36px;
    border: 1px solid var(--eim-border);
}
.eim-lb-intro__inner h2 {
    font-size: clamp(18px, 2.5vw, 26px);
    font-weight: 900;
    letter-spacing: -.03em;
    margin-bottom: 12px;
}
.eim-lb-intro__inner p {
    font-size: 14px;
    color: var(--eim-muted);
    line-height: 1.72;
    margin-bottom: 10px;
}
.eim-lb-intro__inner p:last-child { margin-bottom: 0; }
/* Business cards grid */
.eim-biz-wrap {
    max-width: 1160px;
    margin: 0 auto;
    padding: 40px var(--eim-gutter) 72px;
}
.eim-biz-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.eim-biz-card {
    background: var(--eim-white);
    border-radius: var(--eim-radius);
    overflow: hidden;
    border: 1px solid var(--eim-border);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    transition: box-shadow .25s cubic-bezier(.16,1,.3,1), transform .25s cubic-bezier(.16,1,.3,1);
}
.eim-biz-card:hover { box-shadow: var(--eim-shadow-hv); transform: translateY(-3px); }
.eim-biz-card__img {
    aspect-ratio: 9 / 13;
    overflow: hidden;
    position: relative;
}
.eim-biz-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s cubic-bezier(.16,1,.3,1);
}
.eim-biz-card:hover .eim-biz-card__img img { transform: scale(1.04); }
.eim-biz-card__badge {
    position: absolute;
    top: 10px; left: 10px;
    background: var(--eim-orange);
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 50px;
    z-index: 2;
}
.eim-biz-card__body {
    padding: 16px 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    flex: 1;
}
.eim-biz-card__cat { font-size: 11px; font-weight: 700; color: var(--eim-orange); text-transform: uppercase; letter-spacing: .08em; }
.eim-biz-card__name { font-size: 15px; font-weight: 900; letter-spacing: -.02em; color: var(--eim-dark); }
.eim-biz-card__desc { font-size: 13px; color: var(--eim-muted); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.eim-biz-card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid var(--eim-border);
}
.eim-biz-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--eim-dark);
    transition: color .15s;
}
.eim-biz-link:hover { color: var(--eim-orange); }
.eim-biz-link svg { width: 11px; height: 11px; }
/* "Add business" placeholder */
.eim-biz-card--add {
    border: 2px dashed rgba(10,10,12,.12);
    background: rgba(255,255,255,.5);
}
.eim-biz-card--add:hover { border-color: var(--eim-orange); }
.eim-biz-card--add .eim-biz-card__img {
    background: var(--eim-hero-bg);
    display: flex;
    align-items: center;
    justify-content: center;
}
.eim-biz-add-icon {
    width: 48px; height: 48px;
    border-radius: 13px;
    background: rgba(232,129,51,.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}
.eim-biz-add-icon svg { width: 22px; height: 22px; color: var(--eim-orange); }
.eim-biz-add-text { font-size: 12.5px; font-weight: 700; color: var(--eim-muted); text-align: center; line-height: 1.5; }

/* ============================================================
   SEARCH RESULTS PAGE
============================================================ */
.eim-search-hero {
    background: var(--eim-hero-bg);
    padding: 44px 0 48px;
}
.eim-search-hero h1 {
    font-size: clamp(24px, 4vw, 44px);
    font-weight: 900;
    letter-spacing: -.04em;
    line-height: 1.1;
    color: var(--eim-dark);
    margin-bottom: 10px;
    display: block;
    width: fit-content;
}
.eim-search-hero h1 em { color: var(--eim-orange); font-style: normal; }
.eim-search-hero__count { font-size: 14px; color: var(--eim-muted); font-weight: 500; }
.eim-search-results-layout {
    max-width: var(--eim-max);
    margin: 0 auto;
    padding: 36px var(--eim-gutter) 80px;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    align-items: start;
}
.eim-search-form-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 28px;
}
.eim-search-form-bar input {
    flex: 1;
    background: var(--eim-white);
    border: 1.5px solid var(--eim-border);
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 15px;
    color: var(--eim-dark);
    outline: none;
    transition: border-color .2s;
}
.eim-search-form-bar input:focus { border-color: var(--eim-orange); }
.eim-search-form-bar button {
    background: var(--eim-dark);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 12px 22px;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 7px;
    transition: background .2s;
}
.eim-search-form-bar button:hover { background: var(--eim-orange); }
.eim-search-form-bar button svg { width: 15px; height: 15px; }
.eim-search-results-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.eim-search-row {
    background: var(--eim-white);
    border-radius: var(--eim-radius);
    border: 1px solid var(--eim-border);
    display: flex;
    align-items: stretch;
    overflow: hidden;
    text-decoration: none;
    transition: box-shadow .22s, transform .22s;
}
.eim-search-row:hover { box-shadow: var(--eim-shadow-hv); transform: translateY(-2px); }
.eim-search-row__thumb {
    width: 160px;
    flex-shrink: 0;
    overflow: hidden;
}
.eim-search-row__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s;
}
.eim-search-row:hover .eim-search-row__thumb img { transform: scale(1.06); }
.eim-search-row__body {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    align-items: flex-start;
}
.eim-search-row__title {
    font-size: 16px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -.02em;
    color: var(--eim-dark);
}
.eim-search-row__excerpt {
    font-size: 13.5px;
    color: var(--eim-muted);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.eim-search-row__meta {
    font-size: 11.5px;
    color: var(--eim-muted);
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: auto;
}
.eim-no-results {
    text-align: center;
    padding: 48px 24px;
    color: var(--eim-muted);
}
.eim-no-results svg { width: 48px; height: 48px; margin: 0 auto 16px; opacity: .3; }
.eim-no-results h2 { font-size: 20px; font-weight: 900; letter-spacing: -.03em; color: var(--eim-dark); margin-bottom: 8px; }
.eim-no-results p { font-size: 14px; }

/* ============================================================
   HOMEPAGE MARQUEE SECTION (from shortcode)
============================================================ */
.eim-marq-wrap {
    width: 100%;
    overflow-x: clip;
    overflow-y: visible;
    margin: 40px 0 0;
    padding: 8px 0 16px;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 7%, #000 93%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, #000 7%, #000 93%, transparent 100%);
}
.eim-marq-row {
    display: flex;
    width: max-content;
    gap: 12px;
    padding-bottom: 12px;
}
.eim-marq-row:first-child  { animation: eimMl 44s linear infinite; }
.eim-marq-row:last-child   { animation: eimMr 52s linear infinite; }
.eim-marq-wrap:hover .eim-marq-row { animation-play-state: paused; }
@keyframes eimMl { 0% { transform: translateX(0); }   100% { transform: translateX(-50%); } }
@keyframes eimMr { 0% { transform: translateX(-50%); } 100% { transform: translateX(0); } }
.eim-mc {
    width: 190px;
    height: 252px;
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    display: block;
    text-decoration: none;
    border: 2.5px solid rgba(255,255,255,.88);
    box-shadow: 0 8px 28px rgba(0,0,0,.13);
    cursor: pointer;
    transition: transform .38s cubic-bezier(.16,1,.3,1), box-shadow .38s cubic-bezier(.16,1,.3,1), border-color .28s ease;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}
.eim-mc:hover {
    transform: translateY(-10px);
    box-shadow: 0 24px 52px rgba(0,0,0,.26);
    border-color: rgba(255,255,255,1);
    z-index: 10;
}
.eim-mc__img { position: absolute; inset: 0; overflow: hidden; }
.eim-mc__img img {
    width: 100%; height: 100%; object-fit: cover;
    transition: filter .45s ease;
    will-change: filter;
}
.eim-mc:hover .eim-mc__img img { filter: brightness(1.12) saturate(1.15); }
.eim-mc::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.88) 0%, rgba(0,0,0,.18) 45%, transparent 72%);
    z-index: 1;
    pointer-events: none;
}
.eim-mc__body {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 11px 13px 14px;
    z-index: 2;
}
.eim-mc__cat {
    display: inline-block;
    font-size: 8px; font-weight: 800; letter-spacing: .12em;
    text-transform: uppercase; color: #fff;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.25);
    padding: 2px 9px; border-radius: 50px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    margin-bottom: 5px;
}
.eim-mc__title {
    font-size: 11.5px; font-weight: 700; color: #fff;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================================
   BUTTONS (shared)
============================================================ */
.eim-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--eim-font);
    font-weight: 700;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: transform .22s cubic-bezier(.16,1,.3,1), box-shadow .22s;
}
.eim-btn--dark {
    background: var(--eim-dark);
    color: #fff;
    padding: 12px 26px;
    font-size: 14px;
    box-shadow: 0 4px 16px rgba(0,0,0,.18);
}
.eim-btn--dark:hover { transform: translateY(-2px); box-shadow: 0 8px 26px rgba(0,0,0,.24); color: #fff; }
.eim-btn--ghost {
    background: none;
    color: var(--eim-dark);
    padding: 12px 18px;
    font-size: 14px;
}
.eim-btn--ghost:hover { color: var(--eim-orange); }

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1100px) {
    :root { --eim-gutter: 24px; }
    .eim-archive-wrap { grid-template-columns: 1fr; }
    .eim-sidebar { position: static; display: grid; grid-template-columns: 1fr 1fr; }
    .eim-posts-grid { grid-template-columns: repeat(2, 1fr); }
    .eim-article-layout { grid-template-columns: 1fr; }
    /* .eim-article-body max-width removed globally */
    .eim-contact-wrap { grid-template-columns: 1fr; }
    .eim-biz-grid { grid-template-columns: repeat(2, 1fr); }
    .eim-footer__top { grid-template-columns: 1fr 1fr; gap: 36px; }
    .eim-search-results-layout { grid-template-columns: 1fr; }
    .eim-featured-card { grid-template-columns: 1fr; }
    .eim-related-grid { grid-template-columns: 1fr 1fr; }
    .eim-lb-stats__inner { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
    .eim-posts-grid { grid-template-columns: 1fr 1fr; }
    .eim-sidebar { grid-template-columns: 1fr; }
    .eim-cf-row { grid-template-columns: 1fr; }
    .eim-biz-grid { grid-template-columns: 1fr 1fr; }
    .eim-related-grid { grid-template-columns: 1fr; }
    .eim-search-row__thumb { width: 120px; }
}
@media (max-width: 640px) {
    :root { --eim-gutter: 18px; }
    .eim-header__inner { padding: 0 18px; height: 60px; }
    .eim-nav { display: none; }
    .eim-hamburger { display: flex; }
    .eim-mobile-nav { display: block; }
    .eim-ticker { display: none; }
    .eim-posts-grid { grid-template-columns: 1fr; }
    .eim-biz-grid { grid-template-columns: 1fr; }
    .eim-footer__top { grid-template-columns: 1fr; padding: 40px 18px 32px; }
    .eim-footer__bottom { padding: 16px 18px; flex-direction: column; align-items: flex-start; }
    .eim-search-row { flex-direction: column; }
    .eim-search-row__thumb { width: 100%; height: 180px; }
    .eim-lb-stats__inner { grid-template-columns: repeat(2, 1fr); }
    .eim-lb-hero__btns { flex-direction: column; align-items: center; }
    .eim-archive-wrap { padding-top: 24px; }
    .eim-article-layout { padding-top: 28px; }
}
@media (max-width: 420px) {
    .eim-posts-grid { grid-template-columns: 1fr; }
    .eim-biz-grid { grid-template-columns: 1fr; }
}


/* ============================================================
   CONTACT PAGE MAP
============================================================ */
.eim-contact-map {
    margin-top: 20px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--eim-border);
}

/* ============================================================
   MOBILE HEADER: logo left edge, icons right edge
============================================================ */
@media (max-width: 640px) {
    .eim-header__inner {
        padding: 0 5px 0 5px;
        justify-content: space-between;
        display: flex;
        align-items: center;
        gap: 0;
    }
    .eim-header__logo {
        margin-left: 5px;
    }
    .eim-header__right {
        margin-right: 5px;
        gap: 4px;
    }
    .eim-nav { display: none; }
}

/* ============================================================
   HOMEPAGE EDITORIAL: main column fills full grid row height
============================================================ */
.eim-hp-ed-inner {
    align-items: start;
}
.eim-hp-ed-inner > main {
    /* stretch to fill — sidebar is sticky so it scrolls with content */
    width: 100%;
}

/* More from Melbourne grid: 3-col to fill width fast */
.eim-hp-more-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    margin-top: 16px;
}
@media (max-width: 860px) {
    .eim-hp-more-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 640px) {
    .eim-hp-more-grid { grid-template-columns: 1fr !important; }
}

/* ============================================================
   ARCHIVE / CATEGORY: correct sticky sidebar
   - grid wrapper uses align-items:start so each column is
     only as tall as its content (required for sticky to work)
   - main column grows naturally with posts
   - sidebar is sticky: pins at top:90px while main scrolls past
============================================================ */
.eim-archive-wrap {
    align-items: start !important;
}
.eim-archive-wrap > main {
    align-self: auto;
}
.eim-archive-wrap > aside.eim-sidebar,
.eim-archive-wrap .eim-sidebar {
    position: sticky !important;
    top: 90px !important;
    align-self: start !important;
    /* Full height widgets, no clipping */
}
