/* Home page (front-page.php) — loaded only on the front page. */

/* photos must fill their frames (beats the global img { height:auto }) */
body.nm-theme .nmh-feature img,
body.nm-theme .nmh-verdict__img img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    display: block;
}

.nmh-eyebrow {
    display: inline-block;
    font-family: var(--nm-sans);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--nm-yellow);
    margin-bottom: 10px;
}
.nmh-eyebrow--dark {
    color: var(--nm-accent);
}

/* Hero ------------------------------------------------------------- */
.nmh-hero {
    position: relative;
    overflow: hidden;
    color: var(--nm-cream);
    background:
        radial-gradient(circle at 12% 20%, rgba(255, 208, 96, .14) 0, transparent 38%),
        radial-gradient(circle at 88% 85%, rgba(255, 107, 44, .16) 0, transparent 42%),
        linear-gradient(135deg, #1A4D3E 0%, #14392f 100%);
    padding: 64px 0 72px;
}
.nmh-hero::after {
    /* faint leaf pattern */
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2280%22 height=%2280%22 viewBox=%220 0 80 80%22%3E%3Cpath d=%22M40 62c-12-9-12-26 0-34 12 8 12 25 0 34z%22 fill=%22%23ffffff%22 fill-opacity=%220.035%22/%3E%3C/svg%3E");
    pointer-events: none;
}
.nmh-hero__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 56px;
    align-items: center;
}
.nmh-hero__title {
    font-size: clamp(2.4rem, 5vw, 3.9rem) !important;
    line-height: 1.05 !important;
    letter-spacing: -0.02em;
    color: #fff !important;
    margin: 0 0 20px;
}
.nmh-hero__title span {
    color: var(--nm-yellow);
    background: linear-gradient(transparent 70%, rgba(255, 107, 44, .45) 70%);
}
.nmh-hero__lead {
    font-size: 19px;
    line-height: 1.6;
    color: var(--nm-green-soft);
    max-width: 560px;
    margin: 0 0 28px;
}
.nmh-search {
    display: flex;
    max-width: 560px;
    background: #fff;
    border-radius: 999px;
    padding: 6px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .25);
}
.nmh-search input[type=search] {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    padding: 12px 20px;
    font-family: var(--nm-serif);
    font-size: 17px;
    color: var(--nm-ink);
    outline: none;
}
.nmh-search button {
    border: 0;
    border-radius: 999px;
    padding: 12px 26px;
    background: var(--nm-orange);
    color: #fff;
    font-family: var(--nm-serif);
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: background .15s, transform .15s;
}
.nmh-search button:hover {
    background: var(--nm-brick);
    transform: translateY(-1px);
}
.nmh-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 28px;
    list-style: none;
    margin: 28px 0 0;
    padding: 0;
    font-size: 15px;
    color: var(--nm-green-soft);
}
.nmh-stats li {
    margin: 0;
    padding: 0;
}
.nmh-stats strong {
    display: block;
    font-size: 30px;
    line-height: 1.1;
    color: var(--nm-yellow);
}

/* hero features: 1 large + 2 small */
.nmh-hero__features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 280px 170px;
    gap: 14px;
}
.nmh-feature {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 14px;
    background: #0e2b23;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .3);
    text-decoration: none;
    color: #fff !important;
}
.nmh-feature--main {
    grid-column: 1 / -1;
}
.nmh-feature img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}
.nmh-feature:hover img {
    transform: scale(1.06);
}
.nmh-feature__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 30, 24, .92) 0%, rgba(10, 30, 24, .35) 50%, rgba(10, 30, 24, 0) 75%);
}
/* small cards: the title covers most of the photo, so shade more of it */
.nmh-feature:not(.nmh-feature--main) .nmh-feature__shade {
    background: linear-gradient(to top, rgba(10, 30, 24, .95) 0%, rgba(10, 30, 24, .75) 55%, rgba(10, 30, 24, .2) 100%);
}
.nmh-feature__body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.nmh-feature__title {
    font-family: var(--nm-serif);
    font-weight: 700;
    font-size: 17px;
    line-height: 1.25;
    text-shadow: 0 1px 8px rgba(0, 0, 0, .4);
}
.nmh-feature--main .nmh-feature__title {
    font-size: 26px;
}
.nmh-feature__meta {
    font-family: var(--nm-sans);
    font-size: 12px;
    color: var(--nm-green-soft);
}
.nmh-badge {
    align-self: flex-start;
    background: var(--nm-yellow);
    color: var(--nm-ink);
    font-family: var(--nm-sans);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
}

/* Sections --------------------------------------------------------- */
.nmh-section {
    padding: 64px 0;
}
.nmh-section--cream {
    background: var(--nm-cream);
    border-top: 1px solid var(--nm-border);
    border-bottom: 1px solid var(--nm-border);
}
.nmh-section--green {
    background: linear-gradient(135deg, #1A4D3E 0%, #14392f 100%);
}
.nmh-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px 32px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}
.nmh-head h2 {
    font-size: clamp(1.8rem, 3.2vw, 2.4rem) !important;
    margin: 0;
    color: var(--nm-ink) !important;
    letter-spacing: -0.01em;
}
.nmh-head p {
    margin: 0;
    max-width: 420px;
    color: var(--nm-muted);
    font-size: 16px;
}
.nmh-head--light h2 {
    color: #fff !important;
}
.nmh-head--light p {
    color: var(--nm-green-soft);
}
.nmh-more {
    font-weight: 700;
    color: var(--nm-brick) !important;
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 2px solid var(--nm-yellow);
    padding-bottom: 2px;
}
.nmh-more:hover {
    color: var(--nm-brick-dark) !important;
    border-bottom-color: var(--nm-orange);
}

/* Myth or fact? verdict cards ------------------------------------- */
.nmh-verdicts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}
.nmh-verdict {
    display: flex;
    flex-direction: column;
    background: var(--nm-card);
    border: 1px solid var(--nm-border);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--nm-shadow);
    text-decoration: none;
    color: var(--nm-ink) !important;
    transition: transform .2s, box-shadow .2s;
}
.nmh-verdict:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 36px rgba(42, 30, 20, .14);
}
.nmh-verdict__img {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    background: var(--nm-cream);
    overflow: hidden;
}
.nmh-verdict__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}
.nmh-verdict:hover .nmh-verdict__img img {
    transform: scale(1.06);
}
.nmh-stamp {
    position: absolute;
    top: 16px;
    right: 14px;
    transform: rotate(-8deg);
    padding: 6px 14px;
    border: 3px solid currentColor;
    border-radius: 6px;
    background: rgba(255, 255, 255, .92);
    font-family: var(--nm-sans);
    font-size: 15px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
}
.nmh-verdict--busted .nmh-stamp { color: #b3261e; }
.nmh-verdict--confirmed .nmh-stamp { color: var(--nm-olive); }
.nmh-verdict--plausible .nmh-stamp { color: var(--nm-accent); }
.nmh-verdict--yes-and-no .nmh-stamp { color: #6b4fa0; }
.nmh-verdict__title {
    padding: 16px 18px 20px;
    font-weight: 700;
    font-size: 17px;
    line-height: 1.3;
}

/* Topic tiles ------------------------------------------------------ */
.nmh-topics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 150px;
    gap: 16px;
}
.nmh-topic {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 16px 18px;
    border-radius: 14px;
    overflow: hidden;
    background-color: var(--nm-green);
    background-size: cover;
    background-position: center;
    color: #fff !important;
    text-decoration: none;
    isolation: isolate;
    transition: transform .2s, box-shadow .2s;
}
.nmh-topic::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(to top, rgba(12, 34, 27, .9) 0%, rgba(12, 34, 27, .25) 70%);
    transition: background .2s;
}
.nmh-topic:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(42, 30, 20, .22);
}
.nmh-topic:hover::before {
    background: linear-gradient(to top, rgba(139, 46, 31, .92) 0%, rgba(139, 46, 31, .3) 75%);
}
.nmh-topic:nth-child(1) {
    grid-column: span 2;
    grid-row: span 2;
}
.nmh-topic:nth-child(1) .nmh-topic__name {
    font-size: 30px;
}
.nmh-topic__name {
    font-family: var(--nm-serif);
    font-weight: 700;
    font-size: 20px;
    line-height: 1.15;
}
.nmh-topic__count {
    font-family: var(--nm-sans);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--nm-yellow);
    margin-top: 4px;
}
.nmh-topic--all {
    background: var(--nm-orange);
}
.nmh-topic--all::before {
    background: none;
}
.nmh-topic--all .nmh-topic__count {
    color: #fff;
}

/* Food groups ------------------------------------------------------ */
.nmh-foods {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 14px;
}
.nmh-food {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px 10px 10px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 999px;
    color: #fff !important;
    text-decoration: none;
    transition: background .15s, border-color .15s, transform .15s;
}
.nmh-food:hover {
    background: var(--nm-yellow);
    border-color: var(--nm-yellow);
    color: var(--nm-ink) !important;
    transform: translateY(-2px);
}
.nmh-food__img {
    flex: 0 0 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--nm-olive) center / cover no-repeat;
    border: 2px solid rgba(255, 255, 255, .5);
}
.nmh-food__name {
    flex: 1;
    font-weight: 700;
    font-size: 15px;
    line-height: 1.2;
}
.nmh-food__count {
    font-family: var(--nm-sans);
    font-size: 12px;
    font-weight: 800;
    background: rgba(255, 255, 255, .15);
    border-radius: 999px;
    padding: 2px 8px;
}
.nmh-food:hover .nmh-food__count {
    background: rgba(42, 30, 20, .12);
}

/* Glossary strip --------------------------------------------------- */
.nmh-glossary {
    background: var(--nm-tan);
    padding: 40px 0;
}
.nmh-glossary__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px 40px;
    flex-wrap: wrap;
}
.nmh-glossary h2 {
    margin: 0;
    font-size: 1.9rem !important;
    color: var(--nm-ink) !important;
}
.nmh-glossary .nmh-eyebrow--dark {
    color: var(--nm-brick-dark);
}
.nmh-letters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.nmh-letters a {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--nm-bg);
    color: var(--nm-ink) !important;
    font-weight: 700;
    font-size: 18px;
    text-decoration: none;
    box-shadow: 0 2px 0 rgba(42, 30, 20, .15);
    transition: background .15s, color .15s, transform .15s;
}
.nmh-letters a:hover {
    background: var(--nm-green);
    color: var(--nm-yellow) !important;
    transform: translateY(-2px);
}

/* Responsive ------------------------------------------------------- */
@media (max-width: 1080px) {
    .nmh-hero__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 40px;
    }
    .nmh-verdicts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .nmh-topics {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
@media (max-width: 680px) {
    .nmh-hero {
        padding: 40px 0 48px;
    }
    .nmh-hero__lead {
        font-size: 17px;
    }
    .nmh-hero__features {
        grid-template-rows: 220px 150px;
    }
    .nmh-feature--main .nmh-feature__title {
        font-size: 21px;
    }
    .nmh-section {
        padding: 44px 0;
    }
    .nmh-verdicts {
        grid-template-columns: minmax(0, 1fr);
    }
    .nmh-topics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 120px;
    }
    .nmh-topic:nth-child(1) .nmh-topic__name {
        font-size: 24px;
    }
    .nmh-search button {
        padding: 12px 18px;
    }
}
