/* Nihongo Kaiwa School — public website. Light, warm and calm, with the school's
   red and charcoal, washi-paper tones and a subtle seigaiha (wave) pattern. Mobile first. */

:root {
    --ink: #1c1d22;
    --ink-2: #3a3d46;
    --muted: #646a76;
    --paper: #fbf8f3;
    --paper-2: #f4eee5;
    --white: #ffffff;
    --line: #e8e0d4;
    --red: #c8202f;
    --red-dark: #9e1624;
    --red-soft: #fbe9eb;
    --sakura: #f6cdd6;
    --gold: #b88a2e;
    --green: #1f9d55;
    --radius: 16px;
    --shadow: 0 1px 2px rgba(28, 29, 34, .05), 0 12px 32px -18px rgba(28, 29, 34, .28);
    --shadow-lift: 0 2px 4px rgba(28, 29, 34, .06), 0 22px 44px -20px rgba(28, 29, 34, .35);
    --ease: cubic-bezier(.2, .7, .2, 1);
    --wrap: 1180px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0; background: var(--paper); color: var(--ink);
    font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, "Noto Sans JP", "Yu Gothic", sans-serif;
    font-size: 17px; line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-underline-offset: 3px; }
a:hover { color: var(--red-dark); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; color: var(--ink); letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.3rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.2rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid rgba(200, 32, 47, .45); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--red); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; color: #fff; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow-wrap { max-width: 820px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.eyebrow { margin: 0 0 .6em; color: var(--red); font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.lead { font-size: 1.15rem; color: var(--ink-2); }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 22px;
    border-radius: 999px; border: 2px solid transparent; font: inherit; font-weight: 700; font-size: .98rem;
    text-decoration: none; cursor: pointer; transition: transform .15s var(--ease), box-shadow .15s var(--ease), background .15s var(--ease), color .15s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn-lg { min-height: 54px; padding: 12px 28px; font-size: 1.03rem; }
.btn-block { width: 100%; }
.btn-red { background: linear-gradient(135deg, #dc2b3b, var(--red-dark)); color: #fff; box-shadow: 0 10px 22px -12px rgba(200, 32, 47, .9); }
.btn-red:hover { color: #fff; box-shadow: 0 14px 26px -12px rgba(200, 32, 47, .95); }
.btn-light { background: #fff; color: var(--ink); box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .6); }
.btn-light:hover { color: var(--red); }
.btn-outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: var(--red); color: var(--red); }
.btn-wa { background: #25d366; color: #073b1c; }
.btn-wa:hover { background: #1fbe5b; color: #04240f; }

/* Announcement and header */
.announce { background: var(--ink); color: #f1e9de; font-size: .88rem; }
.announce .wrap { display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: center; align-items: center; padding-top: 8px; padding-bottom: 8px; text-align: center; }
.announce a { color: var(--sakura); font-weight: 700; text-decoration: none; }
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(251, 248, 243, .92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 16px; min-height: 72px; }
.site-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.site-brand img { width: 58px; height: auto; }
.site-brand span { display: flex; flex-direction: column; line-height: 1.1; }
.site-brand strong { font-size: 1.12rem; font-weight: 800; letter-spacing: -.01em; }
.site-brand small { color: var(--muted); font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; }
.site-brand.light { color: #fff; }
.site-brand.light small { color: #b9b2a6; }
.nav-toggle { margin-left: auto; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 12px; background: #fff; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; cursor: pointer; }
.nav-toggle span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s var(--ease), opacity .2s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.site-nav { display: none; }
.nav-open .site-nav {
    display: flex; flex-direction: column; gap: 14px; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 14px 20px 22px; box-shadow: 0 20px 30px -24px rgba(0, 0, 0, .4);
}
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.site-nav a:not(.btn) { display: block; padding: 10px 12px; border-radius: 10px; color: var(--ink-2); font-weight: 600; text-decoration: none; }
.site-nav a:not(.btn):hover { background: var(--paper-2); color: var(--ink); }
.site-nav a.active { color: var(--red); }

/* Hero */
.hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(1200px 500px at 85% -10%, rgba(200, 32, 47, .55), transparent 60%), linear-gradient(150deg, #1d1e24 0%, #2a2228 60%, #3a1d24 100%); }
.hero::before { /* seigaiha wave pattern */
    content: ""; position: absolute; inset: 0; opacity: .09; pointer-events: none;
    background-image:
        radial-gradient(circle at 50% 100%, transparent 18px, #fff 19px, #fff 20px, transparent 21px, transparent 27px, #fff 28px, #fff 29px, transparent 30px, transparent 36px, #fff 37px, #fff 38px, transparent 39px);
    background-size: 80px 40px;
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity 1.4s ease, transform 7s linear; }
.hero-slide.is-on { opacity: 1; transform: scale(1); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(20, 18, 22, .88) 0%, rgba(20, 18, 22, .62) 50%, rgba(20, 18, 22, .25) 100%); }
.hero:not(.has-slides) .hero-shade { display: none; }
.hero-inner { position: relative; padding-top: clamp(64px, 12vw, 132px); padding-bottom: clamp(64px, 11vw, 120px); max-width: var(--wrap); }
.hero .eyebrow { color: var(--sakura); }
.hero h1 { color: #fff; max-width: 14ch; text-shadow: 0 2px 30px rgba(0, 0, 0, .3); }
.hero-text { font-size: clamp(1.05rem, 2.2vw, 1.3rem); max-width: 40ch; color: #efe7dc; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 30px; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.hero-points li { padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); font-size: .88rem; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }

/* Inner page banner */
.page-banner { position: relative; overflow: hidden; color: #fff; background: linear-gradient(150deg, #1d1e24, #3a1d24); padding: clamp(48px, 8vw, 84px) 0 clamp(40px, 7vw, 70px); }
.page-banner::before { content: ""; position: absolute; inset: 0; opacity: .08; background-image: radial-gradient(circle at 50% 100%, transparent 18px, #fff 19px, #fff 20px, transparent 21px, transparent 27px, #fff 28px, #fff 29px, transparent 30px); background-size: 80px 40px; }
.page-banner::after { content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(200, 32, 47, .75), rgba(200, 32, 47, 0) 70%); }
.page-banner .wrap { position: relative; z-index: 1; }
.page-banner h1 { color: #fff; font-size: clamp(1.9rem, 4.5vw, 2.9rem); }
.page-banner p { color: #e9e1d6; max-width: 60ch; font-size: 1.08rem; margin: 0; }
.page-banner .eyebrow { color: var(--sakura); margin-bottom: .6em; }

/* Sections */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-soft { background: var(--paper-2); }
.section-head { max-width: 720px; margin-bottom: 34px; }
.section-head p:not(.eyebrow) { color: var(--muted); }
.section-head.row { max-width: none; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
.section-head.row h2 { margin: 0; }
.link-more { font-weight: 700; text-decoration: none; }
.empty-note { padding: 30px; background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); text-align: center; color: var(--muted); }

/* Course cards */
.course-grid { display: grid; gap: 22px; grid-template-columns: 1fr; }
.course-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); transition: transform .2s var(--ease), box-shadow .2s var(--ease); overflow: hidden; }
.course-card::after { content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(circle, var(--red-soft), transparent 70%); }
.course-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.course-top { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; position: relative; z-index: 1; }
.course-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 54px; height: 54px; padding: 0 10px; border-radius: 14px; background: linear-gradient(135deg, #dc2b3b, var(--red-dark)); color: #fff; font-weight: 800; font-size: 1.2rem; }
.course-level { padding: 4px 12px; border-radius: 999px; background: var(--paper-2); color: var(--ink-2); font-size: .82rem; font-weight: 700; }
.course-card h3 { font-size: 1.45rem; position: relative; z-index: 1; }
.course-card h3 a { color: var(--ink); text-decoration: none; }
.course-card h3 a:hover { color: var(--red); }
.course-tag { color: var(--red); font-weight: 650; margin-bottom: .5em; }
.course-card > p { color: var(--ink-2); }
.course-facts { list-style: none; margin: 6px 0 20px; padding: 0; display: grid; gap: 8px; }
.course-facts li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 14px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-weight: 600; }
.course-facts li span { color: var(--muted); font-weight: 500; }
.course-actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 10px; }

/* Split block */
.split { display: grid; gap: 34px; align-items: center; }
.split-top { align-items: start; }
.split-media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-lift); object-fit: cover; aspect-ratio: 4 / 3; }
.stack-media { display: grid; gap: 18px; }
.ceo-photo { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); }
.ceo-photo img { aspect-ratio: 1 / 1; box-shadow: none; border-radius: 10px; }
.ceo-photo figcaption { margin-top: 10px; text-align: center; font-weight: 700; }
.media-placeholder { aspect-ratio: 4 / 3; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; background: linear-gradient(150deg, #2a2228, #3a1d24); color: rgba(255, 255, 255, .85); font-size: clamp(2.4rem, 7vw, 4rem); font-weight: 800; letter-spacing: .1em; box-shadow: var(--shadow-lift); }

/* Stats */
.stats-band { background: linear-gradient(135deg, #dc2b3b, var(--red-dark)); color: #fff; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; }
.stat-item { padding: 34px 14px; text-align: center; border-right: 1px solid rgba(255, 255, 255, .18); }
.stat-item:nth-child(2n) { border-right: 0; }
.stat-item strong { display: block; font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 800; line-height: 1; }
.stat-item span { display: block; margin-top: 8px; color: #ffe4e8; font-size: .92rem; }

/* Why Japan */
.why-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: 1fr; }
.why-grid li { display: flex; align-items: center; gap: 16px; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: 14px; font-weight: 600; box-shadow: var(--shadow); }
.why-no { flex: none; width: 42px; height: 42px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--red-soft); color: var(--red); font-weight: 800; }

/* News */
.post-grid { display: grid; gap: 22px; grid-template-columns: 1fr; }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.post-image img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.post-body { padding: 20px 22px 24px; }
.post-body time { color: var(--muted); font-size: .85rem; font-weight: 600; }
.post-body h3 { margin-top: 6px; }
.post-body h3 a { color: var(--ink); text-decoration: none; }
.post-body h3 a:hover { color: var(--red); }
.post-hero { width: 100%; border-radius: var(--radius); margin-bottom: 24px; box-shadow: var(--shadow); }

/* Gallery */
.gallery-strip { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
.gallery-strip img, .gallery-grid img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 12px; transition: transform .3s var(--ease), filter .3s; }
.gallery-strip a:hover img, .gallery-grid a:hover img { transform: scale(1.03); filter: saturate(1.1); }
.gallery-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
.gallery-grid figure { margin: 0; }
.gallery-grid figcaption { margin-top: 6px; font-size: .86rem; color: var(--muted); }
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(12, 12, 14, .92); display: flex; align-items: center; justify-content: center; padding: 20px; cursor: zoom-out; }
.lightbox img { max-height: 90vh; max-width: 100%; border-radius: 10px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.lightbox button { position: absolute; top: 14px; right: 14px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .15); color: #fff; font-size: 1.6rem; cursor: pointer; }

/* Partners and registration */
.partner-row { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: center; }
.partner-row img { height: 70px; width: auto; filter: grayscale(.3); opacity: .9; }
.reg-row { display: grid; gap: 18px; grid-template-columns: 1fr; }
.reg-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.reg-card img { height: 64px; width: auto; margin-bottom: 6px; }
.reg-card span { color: var(--muted); font-size: .92rem; }

/* Team */
.team-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
.team-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-align: center; box-shadow: var(--shadow); }
.team-card img, .team-initials { width: 120px; height: 120px; margin: 0 auto 14px; border-radius: 50%; object-fit: cover; }
.team-initials { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #2a2228, #3a1d24); color: #fff; font-size: 2.6rem; font-weight: 800; }
.team-role { color: var(--red); font-weight: 650; margin-bottom: .4em; }
.team-card p:last-child { color: var(--muted); font-size: .94rem; margin: 0; }

/* Text pages */
.prose { max-width: 72ch; }
.prose h2 { margin-top: 1.6em; font-size: 1.6rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.3em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--red); }
.prose blockquote { margin: 1.2em 0; padding: 16px 22px; background: #fff; border-left: 4px solid var(--red); border-radius: 0 14px 14px 0; box-shadow: var(--shadow); font-style: italic; color: var(--ink-2); }
.prose blockquote p { margin: 0; }
.legal { font-size: 1rem; }
.legal h2 { font-size: 1.35rem; padding-top: .8em; border-top: 1px solid var(--line); }
.legal h2:first-of-type { border-top: 0; }

/* Course page */
.course-layout { display: grid; gap: 34px; }
.side-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); margin-bottom: 18px; }
.side-card h2 { font-size: 1.15rem; }
.side-card .btn { margin-top: 10px; }
.side-links { list-style: none; padding: 0; margin: 0; }
.side-links li { padding: 8px 0; border-bottom: 1px dashed var(--line); }
.side-links li:last-child { border-bottom: 0; }
.side-links.plain li::before { content: "✓"; color: var(--green); font-weight: 800; margin-right: 8px; }
.mini-steps { margin: 0; padding-left: 1.2em; }
.mini-steps li { margin: .45em 0; }
.mini-steps li::marker { color: var(--red); font-weight: 800; }

/* Learning modes and admission steps */
.mode-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
.mode-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); border-top: 4px solid var(--red); }
.mode-card p { color: var(--muted); margin: 0; }
.steps-row { list-style: none; margin: 0 0 30px; padding: 0; display: grid; gap: 16px; grid-template-columns: 1fr; counter-reset: step; }
.steps-row li { position: relative; padding: 22px 22px 22px 76px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); counter-increment: step; }
.steps-row li::before { content: counter(step); position: absolute; left: 20px; top: 20px; width: 40px; height: 40px; border-radius: 50%; background: var(--red); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; }
.steps-row strong { display: block; }
.steps-row span { color: var(--muted); font-size: .95rem; }

/* Contact and forms */
.contact-layout, .apply-layout { display: grid; gap: 28px; align-items: start; }
.contact-info { display: grid; gap: 16px; }
.info-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow); }
.info-card h2 { font-size: 1.05rem; margin-bottom: .4em; }
.info-card p { margin: .25em 0; }
.info-card a:not(.btn) { color: var(--ink); font-weight: 600; text-decoration: none; }
.info-card a:not(.btn):hover { color: var(--red); }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: clamp(22px, 4vw, 36px); box-shadow: var(--shadow-lift); }
.form-grid { display: grid; gap: 16px 18px; grid-template-columns: 1fr; margin: 18px 0; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-weight: 650; font-size: .92rem; color: var(--ink-2); }
.req { color: var(--red); }
.field input, .field select, .field textarea {
    width: 100%; min-height: 48px; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--paper);
    font: inherit; color: var(--ink); transition: border-color .15s, box-shadow .15s, background .15s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red); background: #fff; box-shadow: 0 0 0 4px rgba(200, 32, 47, .12); }
.has-error input, .has-error select, .has-error textarea { border-color: var(--red); background: #fff7f7; }
.error { color: var(--red-dark); font-weight: 650; font-size: .86rem; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .94rem; color: var(--ink-2); cursor: pointer; }
.check input { width: 20px; height: 20px; min-height: 0; margin-top: 3px; accent-color: var(--red); flex: none; }
.consent { margin-bottom: 18px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 12px 16px; border-radius: 12px; margin: 0 0 16px; border: 1px solid var(--line); background: #fff; }
.alert-error { background: #fff1f2; border-color: #f4b6be; color: #8c1220; }
.alert-success { background: #ecfbf2; border-color: #a8e3c1; color: #0f5c32; }
.alert-warning { background: #fff8e8; border-color: #f1d79a; color: #6b4c07; }
.flash-wrap { padding-top: 18px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; box-shadow: var(--shadow); }
.faq summary { padding: 16px 20px; cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--red); font-size: 1.3rem; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 20px 16px; margin: 0; color: var(--muted); }
.thanks { text-align: center; }
.thanks-mark { width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #ecfbf2; color: var(--green); font-size: 2.6rem; font-weight: 800; box-shadow: 0 0 0 10px #f5fdf8; }
.thanks h1 { font-size: clamp(1.6rem, 4vw, 2.3rem); }
.thanks .btn { margin: 6px 4px; }

/* Call to action band */
.cta-band { position: relative; overflow: hidden; background: linear-gradient(135deg, #1d1e24, #3a1d24); color: #fff; padding: clamp(48px, 7vw, 76px) 0; }
.cta-band::before { content: ""; position: absolute; left: -80px; bottom: -80px; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle, rgba(200, 32, 47, .6), transparent 70%); }
.cta-inner { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { color: #e9e1d6; margin: 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Footer */
.site-footer { background: #17181c; color: #c9c2b7; padding-top: 56px; font-size: .95rem; }
.footer-grid { display: grid; gap: 30px; grid-template-columns: 1fr; padding-bottom: 36px; }
.site-footer h2 { color: #fff; font-size: 1rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 8px 0; }
.site-footer a { color: #ece5da; text-decoration: none; }
.site-footer a:hover { color: var(--sakura); }
.footer-about p { margin-top: 14px; max-width: 36ch; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact svg { flex: none; margin-top: 4px; color: var(--sakura); }
.social { display: flex; flex-wrap: wrap; gap: 8px; }
.social a { padding: 6px 12px; border: 1px solid #3a3b42; border-radius: 999px; font-size: .85rem; }
.social a:hover { border-color: var(--sakura); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 18px; padding-bottom: 24px; border-top: 1px solid #2c2d33; font-size: .85rem; color: #8f897f; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-links a { color: #b9b2a6; }

/* Floating WhatsApp button */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 50; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 12px 26px -8px rgba(0, 0, 0, .45); transition: transform .2s var(--ease); }
.wa-float:hover { transform: scale(1.07); color: #fff; }
.wa-float::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: wa-pulse 2.4s ease-out infinite; }
@keyframes wa-pulse { from { transform: scale(1); opacity: .7; } to { transform: scale(1.6); opacity: 0; } }

/* Gentle reveal on scroll (added by site.js) */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* Larger screens */
@media (min-width: 640px) {
    .course-grid, .post-grid, .why-grid, .mode-grid, .team-grid, .reg-row { grid-template-columns: repeat(2, 1fr); }
    .gallery-strip { grid-template-columns: repeat(4, 1fr); }
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
    .form-grid { grid-template-columns: repeat(2, 1fr); }
    .form-grid .wide { grid-column: 1 / -1; }
    .stats { grid-template-columns: repeat(4, 1fr); }
    .stat-item:nth-child(2n) { border-right: 1px solid rgba(255, 255, 255, .18); }
    .stat-item:last-child { border-right: 0; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .steps-row { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) {
    .nav-toggle { display: none; }
    .site-nav, .nav-open .site-nav { display: flex; flex-direction: row; align-items: center; gap: 18px; margin-left: auto; position: static; padding: 0; background: none; border: 0; box-shadow: none; }
    .site-nav ul { flex-direction: row; gap: 2px; }
    .site-nav a:not(.btn) { padding: 8px 12px; }
    .site-nav a.active { background: var(--red-soft); }
    .split { grid-template-columns: 1fr 1fr; gap: 56px; }
    .split-top { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); }
    .course-grid { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
    .post-grid { grid-template-columns: repeat(3, 1fr); }
    .why-grid { grid-template-columns: repeat(3, 1fr); }
    .mode-grid, .team-grid, .steps-row { grid-template-columns: repeat(4, 1fr); }
    .steps-row li { padding: 76px 22px 22px; }
    .gallery-grid { grid-template-columns: repeat(4, 1fr); }
    .course-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; }
    .course-side { position: sticky; top: 96px; }
    .contact-layout { grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr); }
    .apply-layout { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
    .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.4fr; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .reveal { opacity: 1; transform: none; }
}
@media print {
    .announce, .site-header, .site-footer, .wa-float, .cta-band, .hero-actions { display: none !important; }
    body { background: #fff; }
    .hero, .page-banner { background: none; color: #000; }
    .hero h1, .page-banner h1, .page-banner p { color: #000; text-shadow: none; }
}
