/*
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.3.2
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: nihongo-montreal
*/

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

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

body {
    margin: 0;
    background: #fffdfa;
    color: #0e0f0f;
    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 #da2226;
    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: #0e0f0f;
    color: #ffffff;
    text-decoration: none;
}

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

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

.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: #b7b0a6;
}

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

.nm-language a:hover,
.nm-language .is-current {
    color: #da2226;
}

/* ------------------------------
   Landing page
------------------------------ */
.nm-landing {
    min-height: 75vh;
    background:
        radial-gradient(circle at 15% 15%, rgba(218, 34, 38, 0.07) 0, rgba(218, 34, 38, 0) 28%),
        radial-gradient(circle at 88% 82%, rgba(25, 51, 71, 0.08) 0, rgba(25, 51, 71, 0) 30%),
        #fffdfa;
}

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

.nm-eyebrow {
    margin: 0 0 0.75rem;
    color: #da2226;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

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

.nm-hero h1 strong {
    color: #da2226;
    font-weight: 700;
}

.nm-intro {
    max-width: 700px;
    margin: 0 auto 2.8rem;
    color: #454545;
    font-size: 1.1rem;
}

.nm-choice-heading {
    margin: 0 0 1.3rem;
    color: #193347;
    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 #e5dfd6;
    border-radius: 22px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(40, 32, 23, 0.08);
    text-align: left;
}

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

.nm-choice-card + .nm-choice-card {
    border-left: 1px solid #e5dfd6;
}

.nm-choice-card--teacher {
    background: linear-gradient(145deg, #ffffff 0%, #fff8f6 100%);
}

.nm-choice-card--self {
    background: linear-gradient(145deg, #ffffff 0%, #f5f8fa 100%);
}

.nm-card-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    margin: -0.75rem -0.75rem 1.4rem;
    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.35rem;
    color: #6e6a65;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.nm-choice-card h2 {
    margin: 0 0 0.8rem;
    color: #193347;
    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 1.25rem;
    color: #414141;
}

.nm-features {
    margin: 0 0 2rem;
    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: #da2226;
    font-weight: 700;
}

.nm-button {
    display: inline-block;
    padding: 0.85rem 1.25rem;
    border: 2px solid #da2226;
    border-radius: 7px;
    background: #da2226;
    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: #bd171b;
    border-color: #bd171b;
    transform: translateY(-1px);
}

.nm-button--secondary {
    border-color: #193347;
    background: #193347;
}

.nm-button--secondary:hover {
    background: #102636;
    border-color: #102636;
}

.nm-card-note {
    margin-top: 1rem;
    color: #6a6a6a;
    font-size: 0.82rem;
}

.nm-bridge {
    max-width: 860px;
    margin: 2.2rem auto 0;
    color: #65615b;
    font-size: 0.93rem;
}

.nm-bridge strong {
    color: #193347;
}

/* ------------------------------
   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(25, 51, 71, 0.14));
    }
}

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

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

.nm-content h1 {
    color: #193347;
    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: #193347;
    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: 3.2rem 0 3.5rem;
    }

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

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

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

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

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

    .nm-choice-card + .nm-choice-card {
        border-top: 1px solid #e5dfd6;
        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-top: 2.6rem;
    }

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

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

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

    .nm-choice-card {
        padding: 2rem 1.45rem;
    }

    .nm-card-visual {
        min-height: 155px;
        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;
    }
}

/* ------------------------------
   v0.3b — rythme vertical plus compact
------------------------------ */
.nm-site-header {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.nm-hero {
    padding-top: 2.8rem;
    padding-bottom: 3rem;
}

.nm-eyebrow {
    margin-bottom: 0.4rem;
}

.nm-hero h1 {
    margin-bottom: 0.65rem;
}

.nm-intro {
    margin-bottom: 1.55rem;
    line-height: 1.5;
}

.nm-choice-heading {
    margin-bottom: 0.8rem;
}

.nm-choice-card {
    min-height: 365px;
    padding: 2rem 2.35rem;
}

.nm-card-visual {
    min-height: 175px;
    margin-bottom: 0.75rem;
}

.nm-kicker {
    margin-bottom: 0.2rem;
    text-align: center;
}

.nm-choice-card h2 {
    margin-bottom: 0.5rem;
}

.nm-choice-card p {
    margin-bottom: 0.8rem;
}

.nm-features {
    margin-bottom: 1.2rem;
}

.nm-features li {
    margin-top: 0.3rem;
    margin-bottom: 0.3rem;
}

.nm-card-note {
    margin-top: 0.7rem;
}

.nm-bridge {
    margin-top: 1.25rem;
}

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

    .nm-choice-card {
        padding: 1.75rem 2rem;
    }

    .nm-card-visual {
        min-height: 155px;
        margin-bottom: 0.65rem;
    }
}

@media (max-width: 520px) {
    .nm-site-header {
        padding-top: 0.8rem;
        padding-bottom: 0.8rem;
    }

    .nm-hero {
        padding-top: 1.8rem;
        padding-bottom: 2rem;
    }

    .nm-hero h1 {
        margin-bottom: 0.55rem;
    }

    .nm-intro {
        margin-bottom: 1.3rem;
    }

    .nm-choice-card {
        padding: 1.5rem 1.3rem;
    }

    .nm-card-visual {
        min-height: 135px;
    }
}
