/* ============================================================
   Buy Local Lowveld — stylesheet
   Minimalist, photo-led design matching the production site.
   ============================================================ */

/* ── Design tokens ── */
:root {
    --brand-green: #7a9d47;
    /* sage/olive from the "By supporting local" box */
    --brand-green-dk: #5d7a33;
    --brand-primary: #7a9d47;
    --brand-primary-dk: #5d7a33;
    --brand-accent: #d97706;
    /* warm orange for pay/alert */

    --ink: #1a1a1a;
    --ink-muted: #6b6b6b;
    --ink-light: #9b9b9b;

    --surface: #ffffff;
    --surface-alt: #f6f6f4;
    --surface-dk: #1a1a1a;
    --line: #e5e5e0;

    --radius: 4px;
    --radius-lg: 8px;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, .06);
    --shadow-md: 0 4px 18px rgba(0, 0, 0, .08);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, .12);

    --font-sans: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-mono: ui-monospace, SFMono-Regular, Consolas, monospace;
}

/* Use a web font that matches the production site's character (Google Fonts, loaded in header) */

/* ── Reset & base ── */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--surface);
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.2;
    margin: 0 0 .75rem;
    color: var(--ink);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 1.9rem;
}

h3 {
    font-size: 1.35rem;
}

h4 {
    font-size: 1rem;
}

p {
    margin: 0 0 1rem;
}

a {
    color: var(--brand-primary-dk);
    text-decoration: none;
}

a:hover {
    color: var(--brand-primary);
}

img {
    max-width: 100%;
    display: block;
}

/* ── Layout ── */
.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5rem 0;
}

.section-alt {
    background: var(--surface-alt);
}

.section-dk {
    background: var(--surface-dk);
    color: #fff;
}

.section-dk h2,
.section-dk h3 {
    color: #fff;
}

.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 800px) {

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
}

.text-center {
    text-align: center;
}

.muted {
    color: var(--ink-muted);
}

.mt-1 {
    margin-top: .5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.mt-4 {
    margin-top: 2.5rem;
}

.mb-1 {
    margin-bottom: .5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 2.5rem;
}

/* ── Buttons ── */
.btn {
    display: inline-block;
    padding: .75rem 1.75rem;
    font-size: .78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .15em;
    text-decoration: none;
    border: 1px solid var(--ink);
    background: var(--ink);
    color: #fff;
    border-radius: 2px;
    cursor: pointer;
    transition: background .2s, color .2s, border-color .2s;
    font-family: inherit;
}

.btn:hover {
    background: transparent;
    color: var(--ink);
}

.btn-outline {
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--ink);
}

.btn-outline:hover {
    background: var(--ink);
    color: #fff;
}

.btn-outline-light {
    background: transparent;
    color: #fff;
    border: 1px solid #fff;
}

.btn-outline-light:hover {
    background: #fff;
    color: var(--ink);
}

.btn-green {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
}

.btn-green:hover {
    background: transparent;
    color: var(--brand-primary);
}

/* ── Forms ── */
label {
    display: block;
    font-weight: 600;
    font-size: .82rem;
    margin-bottom: .3rem;
}

label small {
    font-weight: 400;
    color: var(--ink-muted);
}

input[type=text],
input[type=email],
input[type=tel],
input[type=url],
input[type=date],
input[type=number],
input[type=password],
input[type=search],
select,
textarea {
    width: 100%;
    padding: .7rem .9rem;
    font-size: .95rem;
    font-family: inherit;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: var(--radius);
    color: var(--ink);
    margin-bottom: 1rem;
    transition: border-color .15s, box-shadow .15s;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(122, 157, 71, .15);
}

textarea {
    min-height: 100px;
    resize: vertical;
}

/* ── Header / Nav ── */
.site-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1rem 0;
}

.site-header.sticky {
    position: fixed;
    background: rgba(14, 14, 14, .95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, .25);
    padding: .5rem 0;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.site-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.site-logo .logo-img {
    height: 58px;
    width: 58px;
    object-fit: contain;
}

/* Hide the text next to the logo — stamp is enough like the original */
.site-logo span {
    display: none;
}

/* Logo PNG is white-on-transparent — keep it white in both states on the hero */
.site-header .site-logo .logo-img {
    filter: none;
}

.main-nav {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: flex-end;
}

.main-nav li {
    display: flex;
    align-items: center;
    height: 58px;
}

.main-nav a {
    color: #fff;
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .14em;
    text-decoration: none;
    padding: .5rem 0;
    position: relative;
    text-align: center;
    line-height: 1.45;
    display: inline-block;
    transition: color .15s;
    white-space: nowrap;
}

.site-header.sticky .main-nav a {
    color: #fff;
}

.main-nav a:hover {
    color: var(--brand-primary);
}

.main-nav a.current::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--brand-accent);
}

.main-nav a.login-btn {
    border: 1px solid currentColor;
    padding: .55rem 1.2rem;
    border-radius: 2px;
}

.main-nav a.login-btn::after {
    display: none;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

.site-header.sticky .nav-toggle {
    color: #fff;
}

@media (max-width: 1180px) {
    .main-nav ul {
        gap: 1.4rem;
    }

    .main-nav a {
        font-size: .68rem;
        letter-spacing: .1em;
    }
}

@media (max-width: 960px) {
    .nav-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, .98);
        padding: 1rem 1.5rem;
        box-shadow: var(--shadow-md);
    }

    .main-nav.open {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: .5rem;
        align-items: flex-start;
        justify-content: flex-start;
    }

    .main-nav li {
        height: auto;
        width: 100%;
    }

    .main-nav a {
        color: var(--ink) !important;
        width: 100%;
        padding: .65rem 0;
        text-align: left;
    }
}


/* ── Hero ── */
.hero {
    position: relative;
    min-height: 92vh;
    max-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    overflow: hidden;
    background: #1a1a1a;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .35);
    z-index: 1;
}

.hero video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 7rem 1.5rem 4rem;
    max-width: 640px;
    width: 100%;
}

.hero-badge {
    width: 210px;
    height: 210px;
    margin: 0 auto 2rem;
    display: block;
}

.hero-badge-img {
    width: 260px;
    height: 260px;
    margin: 0 auto 2rem;
    display: block;
    object-fit: contain;
}

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    color: #fff;
    font-weight: 300;
    letter-spacing: .02em;
    margin-bottom: 2rem;
}

.hero-content .hashtag {
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 4vw, 2.5rem);
    color: #fff;
    font-weight: 400;
    margin: 0 0 2rem;
}

.hero-search {
    max-width: 440px;
    margin: 1.5rem auto 0;
    background: rgba(255, 255, 255, .95);
    padding: .35rem;
    border-radius: 2px;
    display: flex;
    gap: .35rem;
}

.hero-search input {
    flex: 1;
    border: none;
    background: transparent;
    padding: .6rem .85rem;
    margin: 0;
    font-size: .95rem;
    color: var(--ink);
}

.hero-search input:focus {
    box-shadow: none;
}

.hero-search button {
    background: var(--ink);
    color: #fff;
    border: none;
    padding: .55rem 1.2rem;
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .15em;
    cursor: pointer;
    border-radius: 2px;
}

.hero-search button:hover {
    background: var(--brand-primary);
}

/* ── Member banner strip (green bar) ── */
.member-strip {
    background: var(--brand-primary);
    color: #fff;
    padding: 3rem 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    background-image: url('/buylocal/assets/img/support-local-bg.jpg');
    background-size: cover;
    background-position: center;
    background-blend-mode: multiply;
}

.member-strip .quote {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    line-height: 1.35;
    max-width: 960px;
    margin: 0 auto;
    color: #fff;
    font-weight: 400;
}

.member-strip .quote strong {
    font-weight: 700;
}

/* ── Member carousel / marquee ── */
.member-carousel {
    padding: 4.5rem 0 3rem;
    background: #fff;
    overflow: hidden;
}

.member-carousel .section-title {
    text-align: center;
    margin-bottom: 2.5rem;
}

.member-carousel h2 {
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: .15em;
    color: var(--ink);
    font-family: var(--font-sans);
    font-weight: 300;
}

.member-carousel .subtitle {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .15em;
    color: var(--ink-muted);
    margin: 0;
}

/* Marquee container */
.marquee {
    overflow: hidden;
    width: 100%;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.marquee-track {
    display: flex;
    gap: 2rem;
    width: max-content;
    animation: marquee-scroll 70s linear infinite;
    padding: 1rem 0;
}

.marquee[data-direction="right"] .marquee-track {
    animation-direction: reverse;
}

.marquee:hover .marquee-track {
    animation-play-state: paused;
}

@keyframes marquee-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(calc(-1 * (184px + 2rem) * var(--base-count, 5)));
    }
}

/* Member tile — rounded square (15% larger than before) */
.member-tile {
    flex: 0 0 195px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: transform .3s ease;
}

.member-tile:hover {
    transform: translateY(-6px);
}

.tile-photo {
    position: relative;
    width: 184px;
    height: 184px;
    margin: 0 auto;
    border-radius: 25px;
    overflow: hidden;
    background: linear-gradient(135deg, #f6f6f4, #e9e9e4);
    box-shadow: 0 6px 20px rgba(0, 0, 0, .08);
    border: 1px solid rgba(0, 0, 0, .04);
    transition: box-shadow .3s ease;
}

.member-tile:hover .tile-photo {
    box-shadow: 0 12px 32px rgba(0, 0, 0, .15);
}

.tile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tile-initials {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 500;
    color: var(--ink-light);
    letter-spacing: .02em;
}

.tile-pin {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: .6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #fff;
    padding: .3em .75em;
    border-radius: 3px;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .2);
}

.tile-Diamond {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
}

.tile-Platinum {
    background: linear-gradient(135deg, #4a5270, #6a7290);
}

.tile-Gold {
    background: linear-gradient(135deg, #c9a227, #e4b93d);
    color: #000;
}

.tile-name {
    margin-top: 1rem;
    font-size: .9rem;
    font-weight: 600;
    color: var(--ink);
    padding: 0 .25rem;
}

/* ── Two-column intro ── */
.two-col-intro {
    padding: 5rem 0;
}

.two-col-intro .grid-2 {
    gap: 3rem;
    align-items: center;
}

.two-col-intro .quote {
    font-family: var(--font-display);
    font-size: 1.6rem;
    line-height: 1.35;
    color: var(--ink);
    font-weight: 400;
    margin-bottom: 1.5rem;
}

.two-col-intro .quote strong {
    font-weight: 700;
}

.two-col-intro .small-body p {
    font-size: .92rem;
    color: var(--ink-muted);
}

/* ── Photo banner (full-width members image) ── */
.photo-banner {
    margin: 0;
    overflow: hidden;
    line-height: 0;
    background: #1a1a1a;
}

.photo-banner img {
    width: 100%;
    height: auto;
    display: block;
}

/* ── Our Directory / Category tiles ── */
.our-directory {
    padding: 5rem 0;
    text-align: center;
}

.our-directory h2 {
    text-transform: uppercase;
    letter-spacing: .15em;
    font-family: var(--font-sans);
    font-weight: 300;
    font-size: 1.4rem;
    margin-bottom: .5rem;
}

.our-directory .subtitle {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .15em;
    color: var(--ink-muted);
    margin-bottom: 3rem;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2.5rem;
}

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

.category-tile {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    background: #333 center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .2s, box-shadow .2s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .06);
}

/* Very subtle overlay only for tiles WITHOUT an uploaded image (need readable text) */
.category-tile:not(.has-img)::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, .15), rgba(0, 0, 0, .5));
    transition: background .2s;
}

.category-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, .12);
}

/* Uploaded images stay clean — no overlay at all, even on hover */
.category-tile .cat-name {
    position: relative;
    z-index: 1;
    color: #fff;
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    text-align: center;
    padding: 1rem;
}

/* ── Top 3 listings ── */
.top-listings {
    padding: 5rem 0;
    text-align: center;
    background: var(--surface-alt);
}

.top-listings h2 {
    text-transform: uppercase;
    letter-spacing: .15em;
    font-family: var(--font-sans);
    font-weight: 300;
    font-size: 1.4rem;
}

.top-listings .subtitle {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .15em;
    color: var(--ink-muted);
    margin-bottom: 3rem;
}

.top-listings-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

@media (max-width: 700px) {
    .top-listings-grid {
        grid-template-columns: 1fr;
    }
}

.top-listing {
    text-decoration: none;
    color: inherit;
    transition: transform .25s ease;
}

.top-listing:hover {
    transform: translateY(-4px);
}

.top-listing .tl-box {
    width: 200px;
    height: 200px;
    margin: 0 auto 1rem;
    border-radius: 25px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .1);
    border: 1px solid rgba(0, 0, 0, .05);
    overflow: hidden;
    transition: box-shadow .25s ease;
    position: relative;
}

.top-listing:hover .tl-box {
    box-shadow: 0 14px 36px rgba(0, 0, 0, .18);
}

.top-listing .tl-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.top-listing .tl-initials {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 500;
    color: var(--ink-light);
    letter-spacing: .02em;
}

.top-listing .name {
    font-size: .95rem;
    font-weight: 600;
    color: var(--ink);
}

/* ── Get in touch CTA ── */
.cta-strip {
    position: relative;
    padding: 6rem 0;
    color: #fff;
    background: #333 url('../img/cta-bg.webp') center/cover no-repeat;
}

.cta-strip::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .5);
}

.cta-strip .container {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

@media (max-width: 800px) {
    .cta-strip .container {
        grid-template-columns: 1fr;
    }
}

.cta-strip h2 {
    color: #fff;
    font-size: 1.8rem;
    margin: 0 0 1rem;
}

.cta-strip p {
    font-size: 1.05rem;
    margin: 0 0 1.5rem;
}

/* ── Site footer ── */
.site-footer {
    background: #0e0e0e;
    color: #c0c0c0;
    padding: 4rem 0 2rem;
    font-size: .88rem;
}

.site-footer .grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

@media (max-width: 800px) {
    .site-footer .grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.site-footer h4 {
    color: #fff;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .15em;
    font-family: var(--font-sans);
    font-weight: 600;
    margin: 0 0 1rem;
}

.site-footer a {
    color: #c0c0c0;
}

.site-footer a:hover {
    color: #fff;
}

.site-footer .logo-block {
    text-align: center;
}

.site-footer .footer-stamp {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin: 0 auto .75rem;
    display: block;
    /* PNG is white on transparent — perfect on the dark footer */
    opacity: .9;
}

.site-footer .tagline {
    font-size: .82rem;
    color: #999;
}

.site-footer .contact-block p {
    margin: .3rem 0;
}

.site-footer .contact-block strong {
    display: block;
    font-size: .8rem;
    color: #fff;
    margin-bottom: .25rem;
}

.site-footer .bottom {
    border-top: 1px solid #222;
    margin-top: 3rem;
    padding-top: 1.5rem;
    text-align: center;
    font-size: .78rem;
    color: #888;
}

/* ── Cards / listings (generic) ── */
.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.listing-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: box-shadow .15s, transform .15s;
}

.listing-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.listing-card h3 {
    margin: 0 0 .5rem;
    font-size: 1.1rem;
}

.listing-card .meta {
    font-size: .82rem;
    color: var(--ink-muted);
    margin-bottom: .5rem;
}

.listing-card .desc {
    font-size: .88rem;
    color: var(--ink-muted);
    margin: 0;
}

/* ── Tier badges ── */
.tier-badge {
    display: inline-block;
    padding: .2em .65em;
    border-radius: 3px;
    font-size: .65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #fff;
    margin-bottom: .5rem;
}

.tier-bronze {
    background: #cd7f32;
}

.tier-silver {
    background: #a0a0ad;
}

.tier-gold {
    background: #c9a227;
}

.tier-platinum {
    background: linear-gradient(135deg, #4a5270, #6a7290);
}

.tier-diamond {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
}

/* ── Generic tags ── */
.tag {
    display: inline-block;
    padding: .2em .65em;
    border-radius: 3px;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.tag-ok {
    background: #d4f4dd;
    color: #1b5e20;
}

.tag-err {
    background: #fde8e8;
    color: #9b1c1c;
}

/* ── Tables ── */
table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: .75rem;
    border-bottom: 1px solid var(--line);
    text-align: left;
}

th {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--ink-muted);
    font-weight: 700;
}

/* ── Alerts ── */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    font-size: .92rem;
}

.alert-success {
    background: #d4f4dd;
    border: 1px solid #1b5e20;
    color: #1b5e20;
}

.alert-error {
    background: #fde8e8;
    border: 1px solid #9b1c1c;
    color: #9b1c1c;
}

.alert-info {
    background: #e0f2fe;
    border: 1px solid #0369a1;
    color: #0369a1;
}

[data-autohide] {
    animation: fadeOut .3s ease 5s forwards;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

code {
    font-family: var(--font-mono);
    background: var(--surface-alt);
    padding: .1em .35em;
    border-radius: 3px;
    font-size: .88em;
}

/* ══════════════════════════════════════════════
   Reveal-on-scroll animations
   ══════════════════════════════════════════════ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .8s ease, transform .8s ease;
}

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

/* Photo strip + cta-strip need their own slight variations */
.photo-banner.reveal {
    transform: translateY(20px);
}

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

    .marquee-track {
        animation: none;
    }
}

/* ══════════════════════════════════════════════
   Light-nav pages: give main a top padding so
   content doesn't sit under the nav
   ══════════════════════════════════════════════ */
/* ══════════════════════════════════════════════
   Subtle link & button hover polish
   ══════════════════════════════════════════════ */
.btn {
    transition: background .2s, color .2s, border-color .2s, transform .15s;
}

.btn:hover {
    transform: translateY(-1px);
}

.category-tile .cat-name,
.top-listing .name {
    transition: transform .3s ease;
}

.category-tile:hover .cat-name {
    transform: scale(1.05);
}

/* ══════════════════════════════════════════════
   Dark nav for all non-homepage public pages
   Black bar across the top, white logo + white links
   ══════════════════════════════════════════════ */
body.has-dark-nav .site-header {
    position: sticky;
    top: 0;
    background: #0e0e0e;
    border-bottom: 1px solid #1e1e1e;
    padding: .75rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .15);
}

body.has-dark-nav .site-logo .logo-img {
    /* PNG is already white on transparent — no filter needed */
    filter: none;
}

body.has-dark-nav .main-nav a {
    color: #fff;
}

body.has-dark-nav .main-nav a:hover {
    color: var(--brand-primary);
}

body.has-dark-nav .main-nav a.current::after {
    background: var(--brand-accent);
}

body.has-dark-nav .nav-toggle {
    color: #fff;
}

/* Main content spacing for non-hero pages */
body.has-dark-nav main>section:first-child,
body.has-dark-nav main>div:first-child {
    padding-top: 3rem;
}

/* Dir banner is full-bleed visual — no extra padding needed */
body.has-dark-nav main>section.dir-banner:first-child {
    padding-top: 0;
}

@media (max-width: 960px) {
    body.has-dark-nav .main-nav {
        background: #0e0e0e;
    }

    body.has-dark-nav .main-nav a {
        color: #fff !important;
    }
}

/* ══════════════════════════════════════════════
   Directory page — banner with search
   ══════════════════════════════════════════════ */
.dir-banner {
    position: relative;
    min-height: 340px;
    background: #1a1a1a center center / cover no-repeat;
    display: flex;
    align-items: center;
    overflow: hidden;
    transition: background-image .3s ease;
}

.dir-banner-overlay {
    width: 100%;
    padding: 3.5rem 0;
    /* Dark overlay gradient so text & search stay readable over photos */
    background: linear-gradient(135deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, .35));
}

.dir-banner h1 {
    color: #fff;
    text-align: center;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 400;
    letter-spacing: .02em;
    margin: 0 0 .5rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .3);
}

.dir-banner p {
    color: rgba(255, 255, 255, .9);
    text-align: center;
    font-size: .88rem;
    text-transform: uppercase;
    letter-spacing: .15em;
    margin: 0 0 2rem;
}

.dir-search {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    gap: .4rem;
    padding: .4rem;
    background: rgba(255, 255, 255, .95);
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .25);
    flex-wrap: wrap;
}

.dir-search input,
.dir-search select {
    flex: 1;
    min-width: 160px;
    border: none;
    background: transparent;
    padding: .7rem .9rem;
    margin: 0;
    font-size: .95rem;
    color: var(--ink);
    font-family: inherit;
}

.dir-search input:focus,
.dir-search select:focus {
    box-shadow: none;
}

.dir-search select {
    max-width: 200px;
    border-left: 1px solid var(--line);
    cursor: pointer;
}

.dir-search button {
    background: var(--ink);
    color: #fff;
    border: none;
    padding: .65rem 1.5rem;
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .15em;
    cursor: pointer;
    border-radius: 3px;
    transition: background .15s;
}

.dir-search button:hover {
    background: var(--brand-primary);
}

@media (max-width: 640px) {
    .dir-banner {
        min-height: 260px;
    }

    .dir-banner-overlay {
        padding: 2.5rem 0;
    }

    .dir-search {
        flex-direction: column;
        padding: .6rem;
    }

    .dir-search input,
    .dir-search select {
        max-width: 100%;
        border-left: none;
        border-bottom: 1px solid var(--line);
    }

    .dir-search button {
        margin-top: .3rem;
    }
}

/* ══════════════════════════════════════════════
   Directory — rich listing cards (banner + logo)
   ══════════════════════════════════════════════ */
.dir-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
}

@media (max-width: 700px) {
    .dir-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

.dir-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, .07);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: transform .25s ease, box-shadow .25s ease;
    border: 1px solid rgba(0, 0, 0, .05);
}

.dir-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 36px rgba(0, 0, 0, .14);
}

/* ── Banner section with overlapping circle logo ── */
.dir-card-banner {
    position: relative;
    aspect-ratio: 16/9;
    background: #2b2b2b center / cover no-repeat;
    overflow: hidden;
}

.dir-card-banner-fallback {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #f8f8f4, #ededee);
    display: flex;
    align-items: center;
    justify-content: center;
}

.dir-card-banner-fallback img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.dir-card-initials {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 500;
    color: var(--ink-light);
    letter-spacing: .02em;
}

.dir-card-banner .tier-pin {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    font-size: .62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #fff;
    padding: .35em .8em;
    border-radius: 3px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
}

.tier-pin.tier-Bronze {
    background: #cd7f32;
}

.tier-pin.tier-Silver {
    background: #9aa0a6;
}

.tier-pin.tier-Gold {
    background: linear-gradient(135deg, #c9a227, #e4b93d);
}

.tier-pin.tier-Platinum {
    background: linear-gradient(135deg, #4a5270, #6a7290);
}

.tier-pin.tier-Diamond {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
}

/* ── Body ── */
.dir-card-body {
    padding: 1.5rem;
    text-align: center;
    flex: 1;
}

.dir-card-body h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 500;
    margin: 0 0 .25rem;
    color: var(--ink);
}

.dir-card-tagline {
    font-size: .85rem;
    color: var(--ink-muted);
    margin: 0 0 1rem;
    font-style: italic;
}

.dir-card-contact {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
    text-align: left;
    font-size: .85rem;
    color: var(--ink);
}

.dir-card-contact li {
    padding: .3rem 0;
    border-top: 1px dashed var(--line);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dir-card-contact li:first-child {
    border-top: none;
}

/* ── Footer: category tags ── */
.dir-card-foot {
    padding: .85rem 1.25rem;
    border-top: 1px solid var(--line);
    background: var(--surface-alt);
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    justify-content: center;
}

.dir-card-cat-tag {
    display: inline-block;
    font-size: .68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--brand-primary-dk);
    padding: .3em .75em;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
}

/* ══════════════════════════════════════════════
   Listing detail page (directory-item.php)
   ══════════════════════════════════════════════ */
.li-hero {
    position: relative;
    min-height: 380px;
    background: #2b2b2b center / cover no-repeat;
    overflow: hidden;
}

body.has-dark-nav main>section.li-hero:first-child {
    padding-top: 0;
}

.li-hero-fallback {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #f8f8f4, #ededee);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem;
}

.li-hero-fallback img {
    max-width: 60%;
    max-height: 80%;
    object-fit: contain;
}

.li-hero-initials {
    font-family: var(--font-display);
    font-size: 7rem;
    font-weight: 500;
    color: var(--ink-light);
    letter-spacing: .02em;
}

.li-hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, .3) 0%, rgba(0, 0, 0, 0) 25%);
    pointer-events: none;
    z-index: 1;
}

.li-hero .container {
    position: relative;
    z-index: 2;
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
}

.li-hero-crumb {
    margin: 0;
}

.li-hero-crumb a {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: rgba(255, 255, 255, .95);
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .15em;
    text-decoration: none;
    padding: .45em 1em;
    background: rgba(0, 0, 0, .45);
    border-radius: 999px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: background .15s;
}

.li-hero-crumb a:hover {
    background: rgba(0, 0, 0, .7);
    color: #fff;
}

.li-hero-tier {
    font-size: .7rem !important;
    padding: .5em 1em !important;
}

/* Header card (below hero) */
.li-header {
    background: var(--surface-alt);
    padding: 0;
    margin: 0;
}

.li-header-card {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    margin-top: -3rem;
    position: relative;
    z-index: 5;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .08);
    display: flex;
    align-items: center;
    gap: 1.75rem;
}

.li-header-logo {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
}

.li-header-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.li-header-body {
    flex: 1;
    min-width: 0;
}

.li-header-body h1 {
    margin: 0 0 .25rem;
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 500;
}

.li-tagline {
    color: var(--ink-muted);
    font-size: 1rem;
    font-style: italic;
    margin: 0 0 1rem;
}

.li-cat-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
}

.li-cat-tag {
    display: inline-block;
    font-size: .7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--brand-primary-dk);
    padding: .4em .9em;
    background: var(--surface-alt);
    border: 1px solid var(--line);
    border-radius: 999px;
    text-decoration: none;
    transition: background .15s, color .15s;
}

.li-cat-tag:hover {
    background: var(--brand-primary);
    color: #fff;
    border-color: var(--brand-primary);
}

@media (max-width: 700px) {
    .li-header-card {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
        margin-top: -2rem;
    }

    .li-header-logo {
        width: 100px;
        height: 100px;
    }

    .li-cat-tags {
        justify-content: center;
    }

    .li-hero {
        min-height: 260px;
    }

    .li-hero-fallback img {
        max-width: 75%;
    }

    .li-hero-initials {
        font-size: 5rem;
    }
}

/* Main content 2-col */
.li-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 2.5rem;
    align-items: start;
}

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

.li-contact-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .04);
    position: sticky;
    top: 6rem;
}

.li-contact-card h3 {
    margin: 0 0 1.25rem;
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--ink-muted);
    font-family: var(--font-sans);
    font-weight: 700;
    padding-bottom: .75rem;
    border-bottom: 1px solid var(--line);
}

.li-contact-row {
    display: flex;
    gap: .9rem;
    padding: .75rem 0;
    border-bottom: 1px dashed var(--line);
}

.li-contact-row:last-child {
    border-bottom: none;
}

.li-contact-row>div {
    flex: 1;
    min-width: 0;
}

.li-contact-row strong {
    display: block;
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--ink-muted);
    margin-bottom: .15rem;
    font-weight: 700;
}

.li-contact-row p {
    margin: 0;
    font-size: .92rem;
    word-break: break-word;
}

.li-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
    line-height: 1;
    margin-top: .1rem;
}

/* ══════════════════════════════════════════════
   Learn More page
   ══════════════════════════════════════════════ */
.lm-heading {
    text-align: center;
    font-family: var(--font-sans);
    font-weight: 300;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    text-transform: uppercase;
    letter-spacing: .15em;
    margin: 0 0 1rem;
    color: var(--ink);
}

.lm-vision {
    padding: 5rem 0 4rem;
}

.lm-vision-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

@media (max-width: 900px) {
    .lm-vision-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

.lm-vision-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-lg);
    box-shadow: 0 6px 20px rgba(0, 0, 0, .1);
}

.lm-vision-text .lm-heading {
    text-align: left;
}

@media (max-width: 900px) {
    .lm-vision-text .lm-heading {
        text-align: center;
    }
}

.lm-pillars {
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .2em;
    color: var(--ink-muted);
    margin: 0 0 2rem;
}

.lm-pillars strong {
    color: var(--brand-primary-dk);
    font-weight: 700;
    margin: 0 .2em;
}

@media (max-width: 900px) {
    .lm-pillars {
        text-align: center;
    }
}

.lm-vision-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.lm-vision-grid p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--ink);
    margin: 0;
}

.lm-vision-grid strong {
    color: var(--ink);
    font-weight: 700;
}

.lm-criteria {
    padding: 5rem 0;
    background: var(--surface-alt);
}

.lm-criteria-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

@media (max-width: 800px) {
    .lm-criteria-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

.lm-criteria-card {
    text-align: center;
}

.lm-criteria-img {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--surface-alt);
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .08);
}

.lm-criteria-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lm-criteria-card h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    margin: 0 0 .5rem;
    color: var(--ink);
    text-transform: uppercase;
    letter-spacing: .05em;
    font-weight: 500;
}

.lm-criteria-card p {
    font-size: .92rem;
    line-height: 1.6;
    color: var(--ink-muted);
    margin: 0;
    max-width: 300px;
    margin: 0 auto;
}

.lm-involved {
    padding: 5rem 0;
}

.lm-steps {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 800px) {
    .lm-steps {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.lm-step {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .05);
    transition: transform .2s ease, box-shadow .2s ease;
}

.lm-step:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .1);
}

.lm-step-num {
    display: inline-block;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .2em;
    color: var(--brand-primary-dk);
    font-weight: 700;
    padding: .4em 1em;
    background: rgba(122, 157, 71, .1);
    border-radius: 999px;
    margin-bottom: 1rem;
}

.lm-step h3 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 500;
    margin: 0 0 1.25rem;
    color: var(--ink);
}

.lm-step p {
    font-size: .95rem;
    line-height: 1.65;
    color: var(--ink);
    margin: 0 0 1rem;
    text-align: left;
}

.lm-step p:last-child {
    margin-bottom: 0;
}

.lm-benefits {
    padding: 5rem 0 6rem;
    background: var(--surface-alt);
}

.lm-benefits-grid {
    margin-top: 3rem;
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.lm-benefit {
    background: #fff;
    border-left: 4px solid var(--brand-primary);
    border-radius: var(--radius);
    padding: 1.5rem 1.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
}

.lm-benefit h3 {
    font-family: var(--font-sans);
    font-size: .88rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 700;
    color: var(--brand-primary-dk);
    margin: 0 0 .75rem;
}

.lm-benefit p {
    font-size: .95rem;
    line-height: 1.65;
    color: var(--ink);
    margin: 0;
}

/* ══════════════════════════════════════════════
   Journey progress system
   ══════════════════════════════════════════════ */
.jp-bar {
    width: 100%;
    height: 8px;
    background: var(--line);
    border-radius: 999px;
    overflow: hidden;
    position: relative;
}

.jp-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-primary-dk));
    transition: width .4s ease;
    border-radius: 999px;
}

.jp-bar-fill.complete {
    background: linear-gradient(90deg, #22c55e, #16a34a);
}

.jp-bar-label {
    display: flex;
    justify-content: space-between;
    font-size: .78rem;
    color: var(--ink-muted);
    margin-bottom: .35rem;
}

.jp-bar-label .pct {
    font-weight: 700;
    color: var(--ink);
}

/* Step cards on member-edit */
.j-step {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    margin-bottom: .75rem;
    display: grid;
    grid-template-columns: 32px 1fr auto;
    gap: 1rem;
    align-items: center;
}

.j-step.done {
    border-color: #22c55e;
    background: #f7fdf9;
}

.j-step.in_progress {
    border-color: #f59e0b;
    background: #fffbf2;
}

.j-step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--line);
    color: var(--ink-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .9rem;
}

.j-step.done .j-step-num {
    background: #22c55e;
    color: #fff;
}

.j-step.in_progress .j-step-num {
    background: #f59e0b;
    color: #fff;
}

.j-step-body h4 {
    margin: 0 0 .2rem;
    font-size: .95rem;
    font-weight: 600;
}

.j-step-body p {
    margin: 0;
    font-size: .82rem;
    color: var(--ink-muted);
}

.j-step-body .j-meta {
    margin-top: .3rem;
    font-size: .75rem;
    color: var(--ink-light);
}

.j-step select {
    min-width: 140px;
    margin: 0;
}

.j-step-notes {
    grid-column: 1 / -1;
    margin-top: .5rem;
}

.j-step-notes textarea {
    width: 100%;
    min-height: 42px;
    font-size: .85rem;
    margin: 0;
}

.j-step-notes-toggle {
    background: none;
    border: none;
    color: var(--brand-primary);
    cursor: pointer;
    font-size: .78rem;
    padding: 0;
    text-decoration: underline;
}

/* Status pill (used on journey list) */
.j-pill {
    display: inline-block;
    padding: .15em .55em;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    border-radius: 3px;
}

.j-pill-done {
    background: #dcfce7;
    color: #166534;
}

.j-pill-in_progress {
    background: #fef3c7;
    color: #92400e;
}

.j-pill-not_started {
    background: var(--line);
    color: var(--ink-muted);
}

@media (max-width: 600px) {
    .j-step {
        grid-template-columns: 32px 1fr;
    }

    .j-step select {
        grid-column: 2;
        margin-top: .5rem;
    }
}

/* ══════════════════════════════════════════════
   Blog — list + detail pages
   (matches production buylocallowveld.co.za/blog)
   ══════════════════════════════════════════════ */

/* ── Hero banner ── */
.blog-hero {
    background: #0e0e0e;
    padding: 5rem 0 5rem;
    text-align: center;
    margin: 0;
}

body.has-dark-nav main>section.blog-hero:first-child {
    padding-top: 5rem;
}

.blog-hero h1 {
    color: #fff;
    font-family: var(--font-sans);
    font-weight: 800;
    font-size: clamp(2rem, 5vw, 3.3rem);
    letter-spacing: .06em;
    line-height: 1.1;
    margin: 0;
}

.blog-hero h1 span {
    display: block;
    margin-top: .35rem;
}

/* ── Blog grid (list page) ── */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

@media (max-width: 1100px) {
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

@media (max-width: 500px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

.blog-tile {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .06);
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .2s ease, box-shadow .2s ease;
    border: 1px solid rgba(0, 0, 0, .05);
}

.blog-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .12);
}

.blog-tile-img {
    aspect-ratio: 1 / 1;
    padding: 1rem;
    background: #fff;
}

.blog-tile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 10px;
}

.blog-tile-img-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-dk));
    color: #fff;
    font-family: var(--font-display);
    font-size: 3rem;
    border-radius: 10px;
}

.blog-tile-body {
    padding: .25rem 1.25rem 1.25rem;
}

.blog-tile-body h3 {
    color: var(--brand-primary-dk);
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 1.05rem;
    line-height: 1.3;
    margin: 0 0 .5rem;
}

.blog-tile-date {
    color: var(--ink-muted);
    font-size: .85rem;
    margin: 0;
}

/* ── Single post page ── */
.blog-post-head {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 2rem;
    align-items: center;
    margin-bottom: 1.5rem;
}

@media (max-width: 700px) {
    .blog-post-head {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.blog-post-thumb {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .08);
    background: #fff;
}

.blog-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.blog-post-head-text h1 {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    line-height: 1.2;
    margin: 0 0 .5rem;
    color: var(--ink);
}

.blog-post-meta {
    color: var(--ink-muted);
    font-size: .92rem;
    margin: 0;
}

.blog-post-divider {
    border: none;
    border-top: 1px solid var(--line);
    margin: 2rem 0;
}

.blog-post-body {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--ink);
}

.blog-post-body>h2:first-child {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 1.5rem;
    margin: 0 0 1.5rem;
    color: var(--ink);
}

.blog-post-body h2,
.blog-post-body h3 {
    font-family: var(--font-sans);
    margin: 2rem 0 .75rem;
    color: var(--ink);
}

.blog-post-body h3 {
    font-size: 1.1rem;
    font-weight: 700;
}

.blog-post-body p {
    margin: 0 0 1rem;
}

.blog-post-body ul,
.blog-post-body ol {
    margin: 0 0 1rem;
    padding-left: 1.5rem;
}

.blog-post-body li {
    margin-bottom: .35rem;
}

.blog-post-body strong {
    font-weight: 700;
    color: var(--ink);
}

.blog-post-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.blog-post-body a {
    color: var(--brand-primary-dk);
}

.blog-post-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}