/*
Theme Name: NIHONGO Montréal
Theme URI: https://nihongomontreal.ca/
Author: NIHONGO Montréal
Description: Thème léger et responsive créé sur mesure pour NIHONGO Montréal.
Version: 0.4.65
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: nihongo-montreal
*/


:root {
    --nm-red: #e60012;
    --nm-red-hover: #b8000e;
    --nm-bg-light: #fefdfc;
    --nm-bg-cream: #faf7f1;
    --nm-text: #111111;
    --nm-navy: #243746;
    --nm-border: #d8d3ca;
    --nm-yellow: #e6d36a;
    --nm-green: #65a66c;
    --nm-blue: #5d8eb8;
    --nm-violet: #8b6caf;
    --nm-yellow-bg: #fbf6df;
    --nm-green-bg: #eaf4eb;
    --nm-blue-bg: #eaf1f7;
    --nm-violet-bg: #f0ebf6;
    --nm-red-bg: #fde7e9;
}

/* ------------------------------
   Base
------------------------------ */
* {
    box-sizing: border-box;
}

html {
    font-size: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--nm-bg-light);
    color: var(--nm-text);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--nm-red);
    outline-offset: 4px;
}

.nm-container {
    width: 92%;
    max-width: 1180px;
    margin-right: auto;
    margin-left: auto;
}

.nm-skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    z-index: 1000;
    padding: 0.75rem 1rem;
    background: var(--nm-text);
    color: #ffffff;
    text-decoration: none;
}

.nm-skip-link:focus {
    top: 1rem;
}

/* ------------------------------
   Header
------------------------------ */
.nm-site-header {
    padding: 1.4rem 0;
    background: rgba(254, 253, 252, 0.96);
    border-bottom: 1px solid var(--nm-border);
}

.nm-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nm-brand {
    display: inline-block;
    width: 210px;
    line-height: 0;
}

.nm-brand img {
    display: block;
    width: 100%;
}

.nm-language {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.nm-language li + li::before {
    content: "|";
    margin: 0 0.55rem;
    color: var(--nm-border);
}

.nm-language a {
    text-decoration: none;
}

.nm-language a:hover,
.nm-language .is-current {
    color: var(--nm-red);
}

/* ------------------------------
   Landing page
------------------------------ */
.nm-landing {
    min-height: 75vh;
    background: var(--nm-bg-light);
}

.nm-hero {
    padding: 2.25rem 0;
    text-align: center;
}

.nm-eyebrow {
    margin: 0 0 0.55rem;
    color: var(--nm-red);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.nm-hero h1 {
    max-width: 850px;
    margin: 0 auto 0.85rem;
    color: var(--nm-navy);
    font-family: inherit;
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.08;
}

.nm-hero h1 strong {
    color: var(--nm-red);
    font-weight: 700;
}

.nm-intro {
    max-width: 700px;
    margin: 0 auto 2rem;
    color: var(--nm-text);
    font-size: 1.1rem;
}

.nm-choice-heading {
    margin: 0 0 1rem;
    color: var(--nm-navy);
    font-size: 1.15rem;
    font-weight: 700;
}

.nm-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 1000px;
    margin: 0 auto;
    border: 1px solid var(--nm-border);
    border-radius: 22px;
    overflow: hidden;
    background: var(--nm-bg-light);
    box-shadow: 0 18px 45px rgba(40, 32, 23, 0.08);
    text-align: left;
}

.nm-choice-card {
    position: relative;
    min-height: 395px;
    padding: 2.45rem;
}

.nm-choice-card + .nm-choice-card {
    border-left: 1px solid var(--nm-border);
}

.nm-choice-card--teacher,
.nm-choice-card--self {
    background: var(--nm-bg-light);
}

.nm-card-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 195px;
    margin: -0.75rem -0.75rem 1rem;
    padding: 0.35rem;
}

.nm-card-visual img {
    display: block;
    width: 100%;
    max-width: 430px;
    height: auto;
    transform-origin: center bottom;
    transition: transform 220ms ease, filter 220ms ease;
}

.nm-kicker {
    margin: 0 0 0.3rem;
    color: var(--nm-navy);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-align: center;
    text-transform: uppercase;
}

.nm-choice-card h2 {
    margin: 0 0 0.65rem;
    color: var(--nm-navy);
    font-family: inherit;
    font-size: 2.15rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.15;
}

.nm-choice-card p {
    margin: 0 0 1rem;
    color: var(--nm-text);
}

.nm-features {
    margin: 0 0 1.5rem;
    padding: 0;
    list-style: none;
}

.nm-features li {
    position: relative;
    margin: 0.45rem 0;
    padding-left: 1.45rem;
}

.nm-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--nm-red);
    font-weight: 700;
}

.nm-button {
    display: block;
    width: fit-content;
    margin-right: auto;
    margin-left: auto;
    padding: 0.85rem 1.25rem;
    border: 2px solid var(--nm-red);
    border-radius: 7px;
    background: var(--nm-red);
    color: #ffffff;
    font-weight: 700;
    line-height: 1.25;
    text-decoration: none;
    transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.nm-button:hover {
    background: var(--nm-red-hover);
    border-color: var(--nm-red-hover);
    transform: translateY(-1px);
}

.nm-button--secondary {
    border-color: var(--nm-navy);
    background: var(--nm-navy);
}

.nm-button--secondary:hover {
    background: var(--nm-text);
    border-color: var(--nm-text);
}

.nm-card-note {
    margin-top: 1rem;
    color: var(--nm-navy);
    font-size: 0.82rem;
}

.nm-bridge {
    max-width: 860px;
    margin: 1.6rem auto 0;
    color: var(--nm-navy);
    font-size: 0.93rem;
}

.nm-bridge strong {
    color: var(--nm-navy);
}

/* ------------------------------
   Card interaction
------------------------------ */
@media (hover: hover) and (pointer: fine) {
    .nm-choice-card:hover .nm-card-visual img,
    .nm-choice-card:focus-within .nm-card-visual img {
        transform: translateY(-10px) scale(1.035);
        filter: drop-shadow(0 14px 10px rgba(36, 55, 70, 0.14));
    }
}

/* ------------------------------
   Simple interior pages
------------------------------ */
.nm-content {
    padding: 4rem 0;
}

.nm-content article {
    max-width: 800px;
    margin: 0 auto;
}

.nm-content h1 {
    color: var(--nm-navy);
    font-family: inherit;
    font-size: 2.7rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

/* ------------------------------
   Footer
------------------------------ */
.nm-site-footer {
    padding: 1.5rem 0;
    background: var(--nm-navy);
    color: #ffffff;
}

.nm-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
}

.nm-site-footer p {
    margin: 0;
}

.nm-site-footer a {
    color: #ffffff;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

/* ------------------------------
   Responsive
------------------------------ */
@media (max-width: 800px) {
    .nm-site-header {
        padding: 1rem 0;
    }

    .nm-brand {
        width: 165px;
    }

    .nm-hero {
        padding: 2rem 0;
    }

    .nm-hero h1 {
        font-size: 2.75rem;
    }

    .nm-choice-grid {
        display: block;
        max-width: 620px;
    }

    .nm-choice-card {
        min-height: 0;
        padding: 2rem;
    }

    .nm-card-visual {
        min-height: 170px;
        margin-top: -0.5rem;
        margin-bottom: 0.85rem;
    }

    .nm-card-visual img {
        max-width: 390px;
    }

    .nm-choice-card + .nm-choice-card {
        border-top: 1px solid var(--nm-border);
        border-left: 0;
    }

    .nm-footer-inner {
        display: block;
        text-align: center;
    }

    .nm-footer-inner p + p {
        margin-top: 0.45rem;
    }
}

@media (max-width: 520px) {
    .nm-container {
        width: 90%;
    }

    .nm-brand {
        width: 145px;
    }

    .nm-language {
        font-size: 0.78rem;
    }

    .nm-hero {
        padding: 1.75rem 0;
    }

    .nm-eyebrow {
        font-size: 0.74rem;
    }

    .nm-hero h1 {
        font-size: 2.25rem;
    }

    .nm-intro {
        margin-bottom: 1.65rem;
        font-size: 1rem;
    }

    .nm-choice-card {
        padding: 1.7rem 1.35rem;
    }

    .nm-card-visual {
        min-height: 145px;
        margin-right: -0.4rem;
        margin-left: -0.4rem;
    }

    .nm-card-visual img {
        max-width: 320px;
    }

    .nm-choice-card h2 {
        font-size: 1.8rem;
    }

    .nm-button {
        width: 100%;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .nm-button,
    .nm-card-visual img {
        transition: none;
    }
}

/* ------------------------------
   Courses page
------------------------------ */
.nm-primary-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.15rem;
    margin: 0 1.4rem;
    color: var(--nm-navy);
    font-size: 0.9rem;
    font-weight: 650;
}

.nm-primary-nav a {
    position: relative;
    color: inherit;
    text-decoration: none;
    white-space: nowrap;
}

.nm-primary-nav a::after {
    content: "";
    position: absolute;
    right: 50%;
    bottom: -0.4rem;
    left: 50%;
    height: 2px;
    background: var(--nm-red);
    transition: right 150ms ease, left 150ms ease;
}

.nm-primary-nav a:hover::after,
.nm-primary-nav a:focus-visible::after,
.nm-primary-nav a[aria-current="page"]::after {
    right: 0;
    left: 0;
}

.nm-primary-nav a[aria-current="page"] {
    color: var(--nm-red);
}

/* Conversion-oriented booking link: visually distinct from standard navigation. */
.nm-primary-nav a.nm-nav-cta {
    padding: 0.6rem 0.9rem;
    border: 2px solid var(--nm-red);
    border-radius: 7px;
    background: var(--nm-red);
    color: #ffffff;
    transition: background 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.nm-primary-nav a.nm-nav-cta::after {
    display: none;
}

.nm-primary-nav a.nm-nav-cta:hover,
.nm-primary-nav a.nm-nav-cta:focus-visible,
.nm-primary-nav a.nm-nav-cta[aria-current="page"] {
    border-color: var(--nm-red-hover);
    background: var(--nm-red-hover);
    color: #ffffff;
}

.nm-primary-nav a.nm-nav-cta:hover {
    transform: translateY(-1px);
}

.nm-courses-page {
    --nm-badge-size: 3rem;
    --nm-badge-size-mobile: 2.75rem;
    background: var(--nm-bg-light);
    color: var(--nm-text);
}

/* Hero uses exactly the same vertical rhythm as standard sections. */
.nm-course-hero {
    padding: 2.25rem 0;
    border-bottom: 1px solid var(--nm-border);
    background: var(--nm-bg-light);
}

.nm-course-hero-grid {
    min-height: 0;
}

.nm-course-hero-main-row {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(390px, 0.95fr);
    align-items: center;
    min-height: 0;
}

.nm-course-hero-copy {
    padding: 0 3.5rem 0 0;
}

.nm-course-hero h1 {
    max-width: 700px;
    margin: 0 0 0.85rem;
    color: var(--nm-navy);
    font-size: clamp(2.7rem, 5vw, 4.65rem);
    font-weight: 750;
    letter-spacing: -0.045em;
    line-height: 1.02;
}

.nm-course-hero h1 strong {
    display: block;
    color: var(--nm-red);
    font-weight: inherit;
}

.nm-course-lead {
    max-width: 620px;
    margin: 0 0 1.35rem;
    color: var(--nm-text);
    font-size: 1.08rem;
    line-height: 1.55;
}

.nm-course-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 1.55rem;
}

.nm-course-actions .nm-button {
    margin: 0;
}

.nm-button--outline {
    border-color: var(--nm-navy);
    background: transparent;
    color: var(--nm-navy);
}

.nm-button--outline:hover,
.nm-button--outline:focus-visible {
    border-color: var(--nm-navy);
    background: var(--nm-navy);
    color: #ffffff;
}

.nm-course-highlights {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: 690px;
    margin: 0;
    padding: 1.05rem 0 0;
    border-top: 1px solid var(--nm-border);
    list-style: none;
}

.nm-course-highlights li {
    padding: 0 0.9rem;
    text-align: center;
}

.nm-course-highlights li:first-child {
    padding-left: 0;
}

.nm-course-highlights li + li {
    border-left: 1px solid var(--nm-border);
}

.nm-course-highlights strong,
.nm-course-highlights li > span:not(.nm-highlight-icon) {
    display: block;
}

.nm-course-highlights strong {
    margin-bottom: 0.1rem;
    color: var(--nm-navy);
    font-size: 0.92rem;
}

.nm-course-highlights li > span:not(.nm-highlight-icon) {
    margin-top: 0.15rem;
    color: var(--nm-navy);
    font-size: 0.76rem;
    line-height: 1.35;
}

.nm-course-hero-visual--materials {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    min-height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: transparent;
}

.nm-course-hero-visual--materials img {
    display: block;
    width: min(100%, 560px);
    border-radius: 8px;
}

/* On desktop, the copy defines the hero row height. The image is then
   centered inside that exact vertical span, from the eyebrow to the
   separator above the highlight icons. */
@media (min-width: 801px) {
    .nm-course-hero-visual--materials {
        position: relative;
        align-self: stretch;
    }

    .nm-course-hero-visual--materials img {
        position: absolute;
        top: 50%;
        left: 50%;
        width: auto;
        height: auto;
        max-width: min(100%, 560px);
        max-height: calc(100% - 2rem);
        transform: translate(-50%, -50%);
    }
}

/* Alternating light / cream section surfaces. */
.nm-course-section {
    padding: 2.25rem 0;
    background: var(--nm-bg-light);
}

.nm-course-section--soft,
.nm-course-cta {
    border-top: 1px solid var(--nm-border);
    border-bottom: 1px solid var(--nm-border);
    background: var(--nm-bg-cream);
}

.nm-section-heading {
    max-width: 720px;
    margin: 0 auto 1.35rem;
    text-align: center;
}

.nm-section-heading h2,
.nm-teacher-copy h2,
.nm-course-cta h2 {
    margin: 0 0 0.4rem;
    color: var(--nm-navy);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 750;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.nm-section-heading > p:last-child {
    margin: 0;
    color: var(--nm-navy);
}

.nm-card-scroll {
    display: grid;
    gap: 1rem;
}

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

.nm-info-card,
.nm-path-card,
.nm-price-card {
    border: 1px solid var(--nm-border);
    border-radius: 16px;
    background: var(--nm-bg-light);
    box-shadow: 0 8px 24px rgba(40, 32, 23, 0.045);
}

.nm-info-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.35rem;
    text-align: center;
}

.nm-info-card h3 {
    margin: 0 0 0.55rem;
    color: var(--nm-navy);
    font-size: 1.05rem;
}

.nm-info-card p {
    margin: 0;
    color: var(--nm-text);
    font-size: 0.9rem;
}

.nm-path-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.nm-path-card {
    position: relative;
    padding: 1.35rem;
    border-top-width: 4px;
}

.nm-path-card--survival { border-top-color: var(--nm-yellow); }
.nm-path-card--n5 { border-top-color: var(--nm-green); }
.nm-path-card--n4 { border-top-color: var(--nm-blue); }
.nm-path-card--n3 { border-top-color: var(--nm-violet); }
.nm-path-card--advanced { border-top-color: var(--nm-red); }

.nm-path-label {
    display: block;
    margin-bottom: 0.3rem;
    color: var(--nm-navy);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.nm-path-card h3 {
    min-height: 2.5em;
    margin: 0 0 0.55rem;
    color: var(--nm-navy);
    font-size: 1.02rem;
    line-height: 1.25;
}

.nm-path-card ul,
.nm-price-card ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.nm-path-card li,
.nm-price-card li {
    position: relative;
    margin: 0.35rem 0;
    padding-left: 1.15rem;
    color: var(--nm-text);
    font-size: 0.85rem;
}

.nm-path-card li::before,
.nm-price-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--nm-green);
    font-weight: 800;
}

.nm-section-note {
    max-width: 720px;
    margin: 1.25rem auto 0;
    color: var(--nm-navy);
    font-size: 0.9rem;
    text-align: center;
}

.nm-teacher-grid {
    display: grid;
    grid-template-columns: minmax(230px, 0.7fr) minmax(0, 1.35fr) minmax(260px, 0.8fr);
    gap: 1.55rem;
    align-items: center;
}

.nm-teacher-photo {
    overflow: hidden;
    border-radius: 8px;
    background: var(--nm-border);
    box-shadow: 0 14px 34px rgba(40, 32, 23, 0.1);
}

.nm-teacher-photo img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 4.2;
    object-fit: cover;
    object-position: center 18%;
}

.nm-teacher-copy > .nm-eyebrow {
    color: var(--nm-red);
}

.nm-teacher-copy > p:last-of-type {
    margin-bottom: 1.05rem;
    color: var(--nm-text);
}

.nm-credentials {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.65rem;
}

.nm-credentials div {
    padding: 0.55rem 0.35rem;
    border-top: 2px solid var(--nm-border);
    text-align: center;
}

.nm-credentials strong,
.nm-credentials div > span:not(.nm-credential-icon) {
    display: block;
}

.nm-credentials strong {
    color: var(--nm-navy);
    font-size: 0.78rem;
}

.nm-credentials div > span:not(.nm-credential-icon) {
    margin-top: 0.15rem;
    color: var(--nm-navy);
    font-size: 0.68rem;
    line-height: 1.3;
}

.nm-testimonial {
    margin: 0;
    padding: 1.35rem;
    border: 1px solid var(--nm-border);
    border-radius: 18px;
    background: var(--nm-bg-light);
}

.nm-testimonial blockquote {
    margin: 0 0 0.7rem;
    color: var(--nm-navy);
    font-size: 1rem;
    font-style: italic;
    line-height: 1.6;
}

.nm-testimonial figcaption {
    color: var(--nm-navy);
    font-size: 0.82rem;
}

.nm-heading-note {
    color: var(--nm-navy);
    font-size: 0.45em;
    font-weight: 650;
    letter-spacing: 0;
    vertical-align: middle;
}

.nm-pricing-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: 1050px;
    margin: 0 auto;
}

.nm-price-card {
    display: flex;
    flex-direction: column;
    padding: 1.35rem;
    text-align: center;
}

.nm-price-card--featured {
    border-color: var(--nm-border);
    border-top-width: 4px;
    border-top-color: var(--nm-red);
    box-shadow: 0 10px 24px rgba(230, 0, 18, 0.08);
}

.nm-price-type,
.nm-price-people,
.nm-price {
    margin: 0;
}

.nm-price-type {
    color: var(--nm-navy);
    font-size: 0.77rem;
    font-weight: 800;
    letter-spacing: 0.07em;
}

.nm-price-people {
    margin-top: 0.18rem;
    color: var(--nm-navy);
    font-size: 0.72rem;
    text-transform: uppercase;
}

.nm-price {
    margin: 0.55rem 0 0.75rem;
}

.nm-price strong,
.nm-price span {
    display: block;
}

.nm-price strong {
    color: var(--nm-text);
    font-size: 2rem;
    line-height: 1.1;
}

.nm-price span {
    color: var(--nm-navy);
    font-size: 0.72rem;
}

.nm-price--quote strong {
    font-size: 1.4rem;
}

.nm-price-card ul {
    flex: 1;
    margin-bottom: 0.9rem;
    text-align: left;
}

.nm-button--small {
    padding: 0.65rem 0.95rem;
    font-size: 0.86rem;
}

.nm-course-cta {
    padding: 2.25rem 0;
    text-align: center;
}

.nm-course-cta p {
    margin: 0 0 0.85rem;
    color: var(--nm-navy);
}

.nm-course-cta .nm-button {
    margin: 0 auto;
}

/* ------------------------------
   Course icon system
------------------------------ */
.nm-inline-icon {
    display: block;
    width: 100%;
    height: 100%;
}

.nm-highlight-icon,
.nm-icon-badge,
.nm-credential-icon,
.nm-path-art {
    display: inline-flex;
    width: var(--nm-badge-size);
    height: var(--nm-badge-size);
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 999px;
}

.nm-highlight-icon {
    margin: 0 auto 0.65rem;
}

.nm-icon-badge {
    margin-bottom: 0.75rem;
}

.nm-credential-icon {
    margin: 0 auto 0.55rem;
}

.nm-path-art {
    display: block;
    margin: 0 auto 0.65rem;
    overflow: hidden;
}

.nm-path-art img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.nm-badge-tone--yellow { background: var(--nm-yellow-bg); color: var(--nm-yellow); }
.nm-badge-tone--green { background: var(--nm-green-bg); color: var(--nm-green); }
.nm-badge-tone--blue { background: var(--nm-blue-bg); color: var(--nm-blue); }
.nm-badge-tone--violet { background: var(--nm-violet-bg); color: var(--nm-violet); }
.nm-badge-tone--red { background: var(--nm-red-bg); color: var(--nm-red); }

.nm-path-card--survival .nm-path-art { background: var(--nm-yellow-bg); }
.nm-path-card--n5 .nm-path-art { background: var(--nm-green-bg); }
.nm-path-card--n4 .nm-path-art { background: var(--nm-blue-bg); }
.nm-path-card--n3 .nm-path-art { background: var(--nm-violet-bg); }
.nm-path-card--advanced .nm-path-art { background: var(--nm-red-bg); }

@media (hover: hover) and (pointer: fine) {
    .nm-highlight-icon,
    .nm-icon-badge,
    .nm-credential-icon,
    .nm-path-art {
        transition: transform 180ms ease, box-shadow 180ms ease;
    }

    .nm-course-highlights li:hover .nm-highlight-icon,
    .nm-info-card:hover .nm-icon-badge,
    .nm-info-card:focus-within .nm-icon-badge,
    .nm-credentials div:hover .nm-credential-icon,
    .nm-credentials div:focus-within .nm-credential-icon,
    .nm-path-card:hover .nm-path-art,
    .nm-path-card:focus-within .nm-path-art {
        transform: translateY(-3px);
        box-shadow: 0 10px 18px rgba(40, 32, 23, 0.08);
    }

    .nm-info-card,
    .nm-path-card,
    .nm-price-card {
        transition: transform 180ms ease, box-shadow 180ms ease;
    }

    .nm-info-card:hover,
    .nm-path-card:hover,
    .nm-price-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 14px 30px rgba(40, 32, 23, 0.09);
    }
}

/* ------------------------------
   Courses page — responsive
------------------------------ */
@media (max-width: 1050px) {
    .nm-header-inner {
        flex-wrap: wrap;
        row-gap: 1rem;
    }

    .nm-primary-nav {
        order: 3;
        width: 100%;
        justify-content: flex-start;
        margin: 0;
        padding-top: 0.8rem;
        overflow-x: auto;
        border-top: 1px solid var(--nm-border);
    }

    .nm-language-nav {
        margin-left: auto;
    }

    .nm-course-hero-main-row {
        grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
    }

    .nm-course-highlights {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.9rem 0;
    }

    .nm-course-highlights li:nth-child(3) {
        border-left: 0;
    }

    .nm-teacher-grid {
        grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.4fr);
    }

    .nm-testimonial {
        grid-column: 1 / -1;
    }
}

@media (max-width: 800px) {
    .nm-course-hero {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .nm-course-hero-grid {
        display: flex;
        flex-direction: column;
    }

    .nm-course-hero-main-row {
        display: contents;
    }

    .nm-course-hero-copy {
        order: 1;
        width: 100%;
        padding: 0;
    }

    .nm-course-highlights {
        order: 2;
    }

    .nm-course-hero-visual--materials {
        order: 3;
    }

    .nm-course-hero h1 {
        font-size: 3rem;
    }

    .nm-course-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .nm-course-actions .nm-button {
        width: 100%;
        text-align: center;
    }

    .nm-course-hero-visual--materials {
        width: 100%;
        margin: 1.8rem 0 0;
    }

    .nm-course-hero-visual--materials img {
        width: min(92%, 560px);
    }

    .nm-course-section,
    .nm-course-cta {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .nm-card-scroll {
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: 82%;
        gap: 0.9rem;
        width: calc(100% + 4%);
        margin-right: -4%;
        padding: 0.2rem 4% 1rem 0.1rem;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
    }

    .nm-card-scroll > * {
        scroll-snap-align: start;
    }

    .nm-path-card h3 {
        min-height: 0;
    }

    .nm-teacher-grid {
        grid-template-columns: 1fr;
        gap: 1.15rem;
    }

    .nm-teacher-photo {
        max-width: 390px;
        margin: 0 auto;
    }

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

    .nm-testimonial {
        grid-column: auto;
    }
}

@media (max-width: 520px) {
    .nm-course-hero,
    .nm-course-section,
    .nm-course-cta {
        padding-top: 1.75rem;
        padding-bottom: 1.75rem;
    }

    .nm-course-hero h1 {
        font-size: 2.55rem;
    }

    .nm-course-highlights {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .nm-course-highlights li {
        padding: 0 0.55rem;
    }

    .nm-course-highlights li:nth-child(3) {
        border-left: 0;
    }

    .nm-card-scroll {
        grid-auto-columns: 88%;
    }

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

    .nm-highlight-icon,
    .nm-icon-badge,
    .nm-credential-icon,
    .nm-path-art {
        width: var(--nm-badge-size-mobile);
        height: var(--nm-badge-size-mobile);
    }
}

@media (prefers-reduced-motion: reduce) {
    .nm-primary-nav a::after,
    .nm-highlight-icon,
    .nm-icon-badge,
    .nm-credential-icon,
    .nm-path-art,
    .nm-info-card,
    .nm-path-card,
    .nm-price-card {
        transition: none;
    }
}

/* ------------------------------
   Contact page
------------------------------ */
.nm-contact-page {
    background: var(--nm-bg-light);
}

.nm-contact-hero {
    padding: 2.25rem 0;
    text-align: center;
}

.nm-contact-intro {
    max-width: 760px;
}

.nm-contact-hero h1 {
    margin: 0 0 0.75rem;
    color: var(--nm-navy);
    font-size: 3.25rem;
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.08;
}

.nm-contact-hero p:last-child {
    max-width: 680px;
    margin: 0 auto;
    font-size: 1.08rem;
}

.nm-contact-section {
    padding: 2.25rem 0;
    background: var(--nm-bg-cream);
}

.nm-contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.75fr);
    gap: 1.25rem;
    align-items: start;
    max-width: 980px;
}

.nm-contact-card,
.nm-contact-aside {
    border: 1px solid var(--nm-border);
    border-radius: 18px;
    background: var(--nm-bg-light);
    box-shadow: 0 12px 28px rgba(40, 32, 23, 0.06);
}

.nm-contact-card {
    padding: 1.65rem;
}

.nm-contact-aside {
    padding: 1.5rem;
}

.nm-contact-card h2,
.nm-contact-aside h2 {
    margin: 0 0 0.85rem;
    color: var(--nm-navy);
    font-size: 1.45rem;
    line-height: 1.2;
}

.nm-contact-aside p {
    margin: 0 0 1rem;
}

.nm-contact-aside a:not(.nm-button),
.nm-form-notice a {
    color: var(--nm-red-hover);
    font-weight: 700;
    text-underline-offset: 3px;
}

.nm-contact-form {
    position: relative;
}

.nm-form-field {
    margin-bottom: 1rem;
}

.nm-form-field label {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--nm-navy);
    font-weight: 700;
}

.nm-form-field input,
.nm-form-field select,
.nm-form-field textarea {
    display: block;
    width: 100%;
    padding: 0.75rem 0.8rem;
    border: 1px solid var(--nm-border);
    border-radius: 7px;
    background: #ffffff;
    color: var(--nm-text);
    font: inherit;
}

.nm-form-field textarea {
    min-height: 10rem;
    resize: vertical;
}

.nm-form-field input:focus,
.nm-form-field select:focus,
.nm-form-field textarea:focus {
    outline: 3px solid var(--nm-red-bg);
    outline-offset: 1px;
    border-color: var(--nm-red);
}

.nm-form-optional {
    color: var(--nm-navy);
    font-size: 0.9em;
    font-weight: 400;
}

.nm-form-privacy {
    margin: -0.1rem 0 1rem;
    color: var(--nm-navy);
    font-size: 0.86rem;
}

.nm-contact-form .nm-button,
.nm-contact-aside .nm-button {
    margin-left: 0;
    font-family: inherit;
    font-size: inherit;
    font-weight: 700;
    cursor: pointer;
}

.nm-form-notice {
    margin: 0 0 1.1rem;
    padding: 0.8rem 0.9rem;
    border: 1px solid var(--nm-border);
    border-radius: 7px;
    font-weight: 650;
}

.nm-form-notice--success {
    background: var(--nm-green-bg);
    color: var(--nm-navy);
}

.nm-form-notice--error {
    background: var(--nm-red-bg);
    color: var(--nm-text);
}

.nm-contact-trap {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

@media (max-width: 800px) {
    .nm-contact-hero,
    .nm-contact-section {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .nm-contact-hero h1 {
        font-size: 2.75rem;
    }

    .nm-contact-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .nm-contact-hero,
    .nm-contact-section {
        padding-top: 1.75rem;
        padding-bottom: 1.75rem;
    }

    .nm-contact-hero h1 {
        font-size: 2.25rem;
    }

    .nm-contact-card,
    .nm-contact-aside {
        padding: 1.25rem;
    }
}

/* ------------------------------
   Privacy policy page
------------------------------ */
.nm-privacy-page {
    background: var(--nm-bg-light);
}

.nm-privacy-hero {
    padding: 2.25rem 0;
    text-align: center;
}

.nm-privacy-intro {
    max-width: 800px;
}

.nm-privacy-hero h1 {
    margin: 0 0 0.75rem;
    color: var(--nm-navy);
    font-size: 3.25rem;
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.08;
}

.nm-privacy-hero p:not(.nm-eyebrow):not(.nm-privacy-updated) {
    max-width: 720px;
    margin: 0 auto;
    font-size: 1.08rem;
}

.nm-privacy-updated {
    margin: 0.7rem 0 0;
    color: var(--nm-navy);
    font-size: 0.88rem;
}

.nm-privacy-content {
    padding: 2.25rem 0;
    background: var(--nm-bg-cream);
}

.nm-privacy-wrap {
    max-width: 940px;
}

.nm-privacy-summary,
.nm-privacy-article {
    border: 1px solid var(--nm-border);
    border-radius: 18px;
    background: var(--nm-bg-light);
    box-shadow: 0 12px 28px rgba(40, 32, 23, 0.055);
}

.nm-privacy-summary {
    margin-bottom: 1.25rem;
    padding: 1.55rem 1.7rem;
    border-top: 4px solid var(--nm-red);
}

.nm-privacy-summary h2 {
    margin: 0 0 0.8rem;
    color: var(--nm-navy);
    font-size: 1.6rem;
    line-height: 1.2;
}

.nm-privacy-summary ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nm-privacy-summary li {
    position: relative;
    padding-left: 1.35rem;
}

.nm-privacy-summary li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--nm-green);
    font-weight: 800;
}

.nm-privacy-summary p {
    margin: 1rem 0 0;
    color: var(--nm-navy);
    font-size: 0.88rem;
}

.nm-privacy-article {
    padding: 1.9rem 2rem;
}

.nm-privacy-section + .nm-privacy-section {
    margin-top: 1.9rem;
    padding-top: 1.9rem;
    border-top: 1px solid var(--nm-border);
}

.nm-privacy-section h2 {
    margin: 0 0 0.75rem;
    color: var(--nm-navy);
    font-size: 1.55rem;
    line-height: 1.25;
}

.nm-privacy-section h3 {
    margin: 1.25rem 0 0.45rem;
    color: var(--nm-navy);
    font-size: 1.08rem;
    line-height: 1.3;
}

.nm-privacy-section p {
    margin: 0 0 0.8rem;
}

.nm-privacy-section p:last-child {
    margin-bottom: 0;
}

.nm-privacy-section ul {
    margin: 0.5rem 0 0.9rem;
    padding-left: 1.35rem;
}

.nm-privacy-section li + li {
    margin-top: 0.22rem;
}

.nm-privacy-section a {
    color: var(--nm-red-hover);
    font-weight: 700;
    text-underline-offset: 3px;
}

.nm-privacy-section code {
    overflow-wrap: anywhere;
    color: var(--nm-navy);
    font-size: 0.9em;
}

.nm-privacy-cookie-list {
    margin: 0.65rem 0 1rem;
}

.nm-privacy-cookie-list > div {
    padding: 0.75rem 0;
    border-top: 1px solid var(--nm-border);
}

.nm-privacy-cookie-list > div:last-child {
    border-bottom: 1px solid var(--nm-border);
}

.nm-privacy-cookie-list dt {
    margin-bottom: 0.15rem;
    color: var(--nm-navy);
    font-weight: 750;
}

.nm-privacy-cookie-list dd {
    margin: 0;
}

.nm-privacy-table-wrap {
    width: 100%;
    margin: 0.8rem 0 1rem;
    overflow-x: auto;
    border: 1px solid var(--nm-border);
    border-radius: 10px;
    background: #ffffff;
}

.nm-privacy-table-wrap:focus-visible {
    outline: 3px solid var(--nm-red);
    outline-offset: 3px;
}

.nm-privacy-table {
    width: 100%;
    min-width: 680px;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.nm-privacy-table th,
.nm-privacy-table td {
    padding: 0.72rem 0.8rem;
    border-bottom: 1px solid var(--nm-border);
    text-align: left;
    vertical-align: top;
}

.nm-privacy-table th {
    background: var(--nm-blue-bg);
    color: var(--nm-navy);
    font-weight: 750;
}

.nm-privacy-table tbody tr:last-child td {
    border-bottom: 0;
}

@media (max-width: 800px) {
    .nm-privacy-hero,
    .nm-privacy-content {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .nm-privacy-hero h1 {
        font-size: 2.75rem;
    }

    .nm-privacy-summary ul {
        grid-template-columns: 1fr;
    }

    .nm-privacy-article {
        padding: 1.55rem;
    }
}

@media (max-width: 520px) {
    .nm-privacy-hero,
    .nm-privacy-content {
        padding-top: 1.75rem;
        padding-bottom: 1.75rem;
    }

    .nm-privacy-hero h1 {
        font-size: 2.25rem;
    }

    .nm-privacy-summary,
    .nm-privacy-article {
        padding: 1.25rem;
    }

    .nm-privacy-section h2 {
        font-size: 1.35rem;
    }
}

.nm-footer-links {
    display: flex;
    gap: 0.45rem;
    align-items: center;
}

.nm-form-privacy a {
    color: var(--nm-red-hover);
    font-weight: 700;
    text-underline-offset: 3px;
}

@media (max-width: 800px) {
    .nm-footer-links {
        justify-content: center;
    }
}

/* ------------------------------
   Booking page
------------------------------ */
.nm-booking-page {
    background: var(--nm-bg-light);
}

.nm-booking-hero {
    padding: 2.25rem 0;
    text-align: center;
}

.nm-booking-intro {
    max-width: 800px;
}

.nm-booking-hero h1 {
    margin: 0;
    color: var(--nm-navy);
    font-size: 3.25rem;
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.08;
}

.nm-booking-section,
.nm-booking-dashboard-section {
    padding: 2.25rem 0;
}

.nm-booking-section {
    background: var(--nm-bg-cream);
}

.nm-booking-dashboard-section {
    border-top: 1px solid var(--nm-border);
    background: var(--nm-bg-light);
}

.nm-booking-wrap {
    max-width: 980px;
}

.nm-booking-card {
    padding: 1.65rem;
    border: 1px solid var(--nm-border);
    border-radius: 18px;
    background: var(--nm-bg-light);
    box-shadow: 0 12px 28px rgba(40, 32, 23, 0.055);
}

.nm-booking-card--dashboard h2 {
    margin: 0 0 1.1rem;
    color: var(--nm-navy);
    font-size: 1.45rem;
    line-height: 1.2;
}

.nm-booking-widget,
.nm-booking-dashboard {
    width: 100%;
}

.nm-booking-availability-note {
    margin: 1.35rem 0 0;
    color: var(--nm-red);
    font-weight: 650;
}

.nm-booking-widget > :is(a, button, input[type="button"], input[type="submit"]),
.nm-booking-widget > * > :is(a, button, input[type="button"], input[type="submit"]),
.nm-booking-widget .latepoint-book-button,
.nm-booking-widget .os_trigger_booking,
.nm-booking-widget .os-trigger-booking {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.35rem;
    padding: 0.95rem 1.55rem;
    border: 2px solid var(--nm-red);
    border-radius: 7px;
    background: var(--nm-red);
    color: #ffffff !important;
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    box-shadow: none;
    cursor: pointer;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.nm-booking-widget > :is(a, button, input[type="button"], input[type="submit"]):hover,
.nm-booking-widget > * > :is(a, button, input[type="button"], input[type="submit"]):hover,
.nm-booking-widget .latepoint-book-button:hover,
.nm-booking-widget .os_trigger_booking:hover,
.nm-booking-widget .os-trigger-booking:hover,
.nm-booking-widget > :is(a, button, input[type="button"], input[type="submit"]):focus-visible,
.nm-booking-widget > * > :is(a, button, input[type="button"], input[type="submit"]):focus-visible,
.nm-booking-widget .latepoint-book-button:focus-visible,
.nm-booking-widget .os_trigger_booking:focus-visible,
.nm-booking-widget .os-trigger-booking:focus-visible {
    background: var(--nm-red-hover);
    border-color: var(--nm-red-hover);
    color: #ffffff !important;
    transform: translateY(-1px);
}

.nm-booking-widget > :is(a, button, input[type="button"], input[type="submit"]):focus-visible,
.nm-booking-widget > * > :is(a, button, input[type="button"], input[type="submit"]):focus-visible,
.nm-booking-widget .latepoint-book-button:focus-visible,
.nm-booking-widget .os_trigger_booking:focus-visible,
.nm-booking-widget .os-trigger-booking:focus-visible {
    outline-offset: 4px;
}

@media (max-width: 800px) {
    .nm-booking-hero,
    .nm-booking-section,
    .nm-booking-dashboard-section {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .nm-booking-hero h1 {
        font-size: 2.75rem;
    }
}

@media (max-width: 520px) {
    .nm-booking-hero,
    .nm-booking-section,
    .nm-booking-dashboard-section {
        padding-top: 1.75rem;
        padding-bottom: 1.75rem;
    }

    .nm-booking-hero h1 {
        font-size: 2.25rem;
    }

    .nm-booking-card {
        padding: 1.25rem;
    }
}

/* ------------------------------
   Bilingual reservations gateway
------------------------------ */
.nm-reservations-gateway {
    background: var(--nm-bg-light);
}

.nm-reservations-gateway-hero {
    padding: 2.5rem 0 2rem;
    text-align: center;
}

.nm-reservations-gateway-intro {
    max-width: 820px;
}

.nm-reservations-gateway-hero h1 {
    margin: 0 0 1rem;
    color: var(--nm-navy);
    font-size: 3.25rem;
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.08;
}

.nm-reservations-title-divider {
    margin: 0 0.2em;
    color: var(--nm-red);
    font-weight: 500;
}

.nm-reservations-gateway-lead {
    max-width: 720px;
    margin: 0 auto;
    color: var(--nm-text);
    font-size: 1.05rem;
}

.nm-reservations-gateway-lead p {
    margin: 0;
}

.nm-reservations-gateway-lead p + p {
    margin-top: 0.2rem;
}

.nm-reservations-gateway-section {
    padding: 2.5rem 0 3.5rem;
    background: var(--nm-bg-cream);
}

.nm-reservations-gateway-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.4rem;
    max-width: 900px;
}

.nm-reservations-language-card {
    display: flex;
    min-height: 290px;
    flex-direction: column;
    align-items: center;
    padding: 2.2rem 2rem;
    border: 1px solid var(--nm-border);
    border-radius: 18px;
    background: var(--nm-bg-light);
    text-align: center;
}

.nm-reservations-language-code {
    display: inline-flex;
    min-width: 3.2rem;
    min-height: 2.15rem;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.75rem;
    border: 1px solid rgba(230, 0, 18, 0.22);
    border-radius: 999px;
    background: var(--nm-red-bg);
    color: var(--nm-red);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.nm-reservations-language-card h2 {
    margin: 0.9rem 0 0.45rem;
    color: var(--nm-navy);
    font-size: 1.75rem;
    line-height: 1.2;
}

.nm-reservations-language-card p {
    max-width: 330px;
    margin: 0 0 1.5rem;
    color: var(--nm-text);
}

.nm-reservations-language-card .nm-button {
    margin-top: auto;
}

@media (max-width: 800px) {
    .nm-reservations-gateway-hero {
        padding-top: 2rem;
        padding-bottom: 1.75rem;
    }

    .nm-reservations-gateway-hero h1 {
        font-size: 2.75rem;
    }

    .nm-reservations-gateway-section {
        padding-top: 2rem;
        padding-bottom: 3rem;
    }
}

@media (max-width: 680px) {
    .nm-reservations-gateway-grid {
        grid-template-columns: 1fr;
        max-width: 520px;
    }

    .nm-reservations-language-card {
        min-height: 0;
    }
}

@media (max-width: 520px) {
    .nm-reservations-gateway-hero {
        padding-top: 1.75rem;
        padding-bottom: 1.5rem;
    }

    .nm-reservations-gateway-hero h1 {
        font-size: 2.25rem;
    }

    .nm-reservations-title-divider {
        display: block;
        height: 0;
        overflow: hidden;
    }

    .nm-reservations-gateway-lead {
        font-size: 1rem;
    }

    .nm-reservations-gateway-section {
        padding-top: 1.75rem;
        padding-bottom: 2.5rem;
    }

    .nm-reservations-language-card {
        padding: 1.75rem 1.35rem;
    }
}

