/* WWES v3 website (026, T-183). One stylesheet for every page; look carried over from the May 2026 scaffold. */
:root {
  --green: #4CB850; --green-dark: #3a9040; --green-pale: #e8f5e9;
  --navy: #1a2e4a; --navy-mid: #2c4a6e; --ink: #1a1a1a;
  --slate: #4a5568; --mist: #f5f7f9; --cream: #faf9f7;
  --border: #e2e8f0; --white: #ffffff;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Barlow', sans-serif; color: var(--ink); background: var(--white); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--green-dark); }

/* header */
header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(26,46,74,0.97); backdrop-filter: blur(8px); padding: 0 2rem; height: 64px; display: flex; align-items: center; justify-content: space-between; }
.logo-lockup { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-lockup img { width: 40px; height: 40px; object-fit: contain; background: white; border-radius: 6px; padding: 2px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text .org { font-size: 11px; font-weight: 500; color: rgba(255,255,255,0.6); letter-spacing: 0.06em; text-transform: uppercase; }
.logo-text .name { font-size: 14px; font-weight: 600; color: white; }
nav { display: flex; gap: 1.6rem; align-items: center; }
nav a { font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.72); text-decoration: none; letter-spacing: 0.04em; text-transform: uppercase; }
nav a:hover, nav a.active { color: var(--green); }
.nav-cta { background: var(--green); color: white !important; padding: 8px 18px; border-radius: 4px; }
.nav-cta:hover { background: var(--green-dark); }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; background: none; border: none; margin-left: auto; }
.hamburger span { display: block; width: 22px; height: 2px; background: white; border-radius: 2px; transition: transform 0.2s, opacity 0.2s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-drawer { display: none; position: fixed; top: 64px; left: 0; right: 0; background: rgba(26,46,74,0.98); padding: 16px 2rem 24px; z-index: 99; }
.mobile-drawer.open { display: flex; flex-direction: column; gap: 4px; }
.mobile-drawer a { font-size: 14px; font-weight: 500; color: rgba(255,255,255,0.85); text-decoration: none; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.08); letter-spacing: 0.04em; text-transform: uppercase; }
.mobile-drawer a:last-child { border-bottom: none; background: var(--green); color: white; text-align: center; border-radius: 4px; padding: 12px; margin-top: 8px; }

/* hero (home) and page hero */
.hero { min-height: min(88vh, 760px); position: relative; display: flex; align-items: center; background: var(--navy) right center/cover no-repeat; }
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(26,46,74,0.97) 0%, rgba(26,46,74,0.9) 45%, rgba(26,46,74,0.35) 75%, rgba(26,46,74,0.1) 100%); }
.hero-inner { position: relative; z-index: 1; max-width: 1040px; margin: 0 auto; padding: 120px 2rem 80px; width: 100%; }
.hero-lion { width: 112px; height: auto; background: white; border-radius: 10px; padding: 8px; margin-bottom: 28px; }
.hero h1 { font-family: 'Playfair Display', serif; font-size: clamp(2.4rem,5.5vw,4rem); font-weight: 900; color: white; line-height: 1.08; letter-spacing: -0.02em; margin-bottom: 16px; max-width: 760px; }
.hero h1 em { font-style: italic; color: var(--green); }
.hero-tagline { font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--green); margin-bottom: 20px; }
.hero-sub { font-family: 'Source Serif 4', serif; font-size: clamp(1.05rem,2vw,1.25rem); font-weight: 300; color: rgba(255,255,255,0.8); max-width: 600px; margin-bottom: 36px; line-height: 1.7; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-social { display: inline-flex; gap: 10px; align-items: center; }
.hero-social a { width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.4); color: white; display: inline-flex; align-items: center; justify-content: center; transition: border-color 0.2s, color 0.2s, transform 0.2s; }
.hero-social a:hover { border-color: var(--green); color: var(--green); transform: translateY(-1px); }
.hero-social svg { width: 22px; height: 22px; }
.hero-social a.img { background: white; border-color: white; }
.hero-social a.img:hover { border-color: var(--green); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hero-note { margin-top: 28px; font-size: 14px; color: rgba(255,255,255,0.75); border-left: 3px solid var(--green); padding-left: 12px; max-width: 600px; }
.page-hero { background: var(--navy); padding: 120px 2rem 64px; text-align: center; }
.page-hero-inner { max-width: 720px; margin: 0 auto; }
.breadcrumb { font-size: 12px; color: rgba(255,255,255,0.5); margin-bottom: 16px; letter-spacing: 0.06em; text-transform: uppercase; }
.breadcrumb a { color: rgba(255,255,255,0.6); text-decoration: none; }
.page-hero h1 { font-family: 'Playfair Display', serif; font-size: clamp(2rem,4.5vw,3.2rem); font-weight: 900; color: white; line-height: 1.1; margin-bottom: 16px; }
.page-hero h1 em { color: var(--green); font-style: italic; }
.page-hero-sub { font-family: 'Source Serif 4', serif; font-size: 1.1rem; color: rgba(255,255,255,0.7); line-height: 1.7; font-style: italic; }

/* buttons */
.btn-primary, .btn-ghost, .btn-white { display: inline-block; padding: 14px 30px; border-radius: 4px; font-size: 14px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none; transition: background 0.2s, transform 0.2s; }
.btn-primary { background: var(--green); color: white; }
.btn-primary:hover { background: var(--green-dark); transform: translateY(-1px); }
.btn-ghost { border: 1px solid rgba(255,255,255,0.4); color: white; font-weight: 500; }
.btn-ghost:hover { border-color: var(--green); color: var(--green); }
.btn-white { background: white; color: var(--green-dark); }

/* sections */
section { padding: 80px 2rem; }
section.cream { background: var(--cream); }
section.mist { background: var(--mist); }
section.navy { background: var(--navy); color: white; }
.container { max-width: 1040px; margin: 0 auto; }
.narrow { max-width: 720px; margin: 0 auto; }
.section-label { font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--green); margin-bottom: 12px; display: block; }
.section-title { font-family: 'Playfair Display', serif; font-size: clamp(1.7rem,3.4vw,2.5rem); font-weight: 700; color: var(--navy); line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 16px; }
section.navy .section-title { color: white; }
.lead, .body-text { font-family: 'Source Serif 4', serif; font-size: 1.06rem; color: var(--slate); line-height: 1.75; }
.lead { max-width: 640px; margin-bottom: 8px; }
.body-text + .body-text { margin-top: 14px; }
section.navy .lead, section.navy .body-text { color: rgba(255,255,255,0.75); }
.body-text ul, .body-text ol, ul.body-text, ol.body-text { padding-left: 1.3em; }
.body-text li + li { margin-top: 6px; }
h3.sub { font-family: 'Playfair Display', serif; font-size: 1.3rem; color: var(--navy); margin: 32px 0 10px; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 36px; }
.card { background: white; border: 1px solid var(--border); border-top: 3px solid var(--green); border-radius: 8px; padding: 28px 26px; }
section.cream .card, section.mist .card { background: white; }
.card h3 { font-family: 'Playfair Display', serif; font-size: 1.25rem; color: var(--navy); margin-bottom: 10px; }
.card p { font-size: 15px; color: var(--slate); line-height: 1.7; }
.card p + p { margin-top: 10px; }

/* split with image */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.split img { border-radius: 8px; width: 100%; height: 100%; max-height: 420px; object-fit: cover; }

/* steps */
.steps { list-style: none; counter-reset: s; margin-top: 36px; display: grid; gap: 18px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start; background: white; border: 1px solid var(--border); border-radius: 8px; padding: 22px; }
.steps li::before { content: counter(s); width: 40px; height: 40px; border-radius: 50%; background: var(--green-pale); color: var(--green-dark); font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1.2rem; display: flex; align-items: center; justify-content: center; }
.steps strong { display: block; color: var(--navy); font-size: 16px; margin-bottom: 4px; }
.steps span { color: var(--slate); font-size: 15px; line-height: 1.7; }

/* numbers band */
.numbers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.num { font-family: 'Playfair Display', serif; font-size: clamp(2rem,4vw,2.8rem); font-weight: 700; color: var(--green); line-height: 1; display: block; }
.num-label { font-size: 12px; color: rgba(255,255,255,0.7); letter-spacing: 0.08em; text-transform: uppercase; margin-top: 8px; display: block; }
.numbers-note { text-align: center; font-size: 12px; color: rgba(255,255,255,0.5); margin-top: 28px; }

/* years */
.years { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 28px; }
.year { background: white; border: 1px solid var(--border); border-radius: 8px; padding: 18px; text-align: center; }
.year b { display: block; font-size: 12px; color: var(--green-dark); letter-spacing: 0.08em; text-transform: uppercase; }
.year span { font-family: 'Playfair Display', serif; color: var(--navy); font-size: 1.05rem; }

/* teachers */
.teachers { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 24px; margin-top: 36px; }
.teachers.four, .cards.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px) { .teachers.four, .cards.four { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .cards.four { grid-template-columns: 1fr; } }
.teacher { text-align: center; }
.teacher img { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; margin: 0 auto 12px; border: 3px solid white; box-shadow: 0 2px 10px rgba(26,46,74,0.15); }
.teacher b { display: block; color: var(--navy); font-size: 15px; }
.teacher span { font-size: 13px; color: var(--slate); }

/* table */
.table-wrap { overflow-x: auto; margin-top: 28px; }
table.facts { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 15px; }
table.facts th, table.facts td { border: 1px solid var(--border); padding: 12px 14px; text-align: left; vertical-align: top; }
table.facts thead th { background: var(--navy); color: white; font-weight: 600; }
table.facts tbody th { background: var(--mist); color: var(--navy); width: 22%; }

/* notice, branch list */
.notice { background: var(--green-pale); border-left: 4px solid var(--green); border-radius: 4px; padding: 16px 20px; color: var(--ink); font-size: 15px; margin-top: 24px; }
.branch-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; margin-top: 24px; }
.branch-list li { background: white; border: 1px solid var(--border); border-radius: 6px; padding: 14px 16px; }
.branch-list b { display: block; color: var(--navy); }
.branch-list span { font-size: 14px; color: var(--slate); }
.branch-list em { font-style: normal; font-size: 12px; color: #8a6d00; }

/* photo grids (026 IMAGES_PLAN.md) */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 36px; }
.photo-grid.tall { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.photo-grid.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .photo-grid.three { grid-template-columns: 1fr 1fr; } }
.photo-grid.single { grid-template-columns: 1fr; max-width: 560px; }
.photo-grid figure { margin: 0; }
.photo-grid img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; box-shadow: 0 2px 10px rgba(26,46,74,0.12); }
.photo-grid.tall img { aspect-ratio: 4 / 5; }
.photo-grid figcaption { font-size: 13px; color: var(--slate); margin-top: 8px; line-height: 1.4; }
@media (max-width: 600px) { .photo-grid.tall { grid-template-columns: 1fr 1fr; gap: 12px; } }

/* two ways to study (home) */
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 36px; }
.mode { background: white; border-radius: 8px; overflow: hidden; display: grid; grid-template-columns: 200px 1fr; box-shadow: 0 2px 10px rgba(26,46,74,0.08); }
.mode img { width: 100%; height: 100%; min-height: 240px; object-fit: cover; }
.mode > div { padding: 24px; }
.mode h3 { font-family: 'Playfair Display', serif; color: var(--navy); font-size: 1.4rem; margin-bottom: 10px; }
.mode p { font-size: 15px; color: var(--slate); line-height: 1.6; margin-bottom: 14px; }
.mode a { color: var(--green-dark); font-weight: 600; }
@media (max-width: 860px) { .modes { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .mode { grid-template-columns: 1fr; } .mode img { height: 220px; min-height: 0; } }

/* testimonials */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-top: 36px; }
.quotes.two { grid-template-columns: 1fr 1fr; }
@media (max-width: 860px) { .quotes.two { grid-template-columns: 1fr; } }
.quote { background: white; border-left: 4px solid var(--green); border-radius: 8px; padding: 28px 28px 24px; margin: 0; box-shadow: 0 2px 10px rgba(26,46,74,0.06); display: flex; flex-direction: column; justify-content: space-between; }
.quote p { font-family: 'Source Serif 4', serif; font-size: 1.05rem; font-style: italic; color: var(--ink); line-height: 1.65; margin-bottom: 18px; }
.quote cite { font-style: normal; font-size: 13px; color: var(--slate); }
.quote cite b { display: block; color: var(--navy); font-size: 14px; }

/* CTA strip, footer */
.cta-strip { background: var(--green); padding: 60px 2rem; text-align: center; }
.cta-strip h2 { font-family: 'Playfair Display', serif; font-size: clamp(1.6rem,3vw,2.2rem); color: white; margin-bottom: 12px; }
.cta-strip p { color: rgba(255,255,255,0.88); margin: 0 auto 28px; max-width: 520px; }
footer { background: var(--ink); color: rgba(255,255,255,0.55); padding: 48px 2rem; font-size: 13px; }
.footer-inner { max-width: 1040px; margin: 0 auto; display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-brand { display: flex; gap: 14px; align-items: flex-start; max-width: 460px; }
.footer-brand img { width: 48px; height: 48px; object-fit: contain; background: white; border-radius: 6px; padding: 2px; flex-shrink: 0; }
.footer-brand b { display: block; font-family: 'Playfair Display', serif; font-size: 15px; color: white; margin-bottom: 4px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { color: rgba(255,255,255,0.6); text-decoration: none; }
.footer-links a:hover { color: var(--green); }

@media (max-width: 860px) {
  nav { display: none; }
  .hamburger { display: flex; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .numbers { grid-template-columns: repeat(2, 1fr); }
  .years { grid-template-columns: repeat(2, 1fr); }
  section { padding: 56px 1rem; }
  header { padding: 0 1rem; }
  .hero-inner { padding: 104px 1rem 56px; }
  .hero::before { background: linear-gradient(180deg, rgba(26,46,74,0.85) 0%, rgba(26,46,74,0.92) 100%); }
  .page-hero { padding: 104px 1rem 48px; }
}
.teacher .initials { width: 140px; height: 140px; border-radius: 50%; margin: 0 auto 12px; background: var(--navy); color: white; display: flex; align-items: center; justify-content: center; font-family: 'Playfair Display', serif; font-size: 2.4rem; font-weight: 700; border: 3px solid white; box-shadow: 0 2px 10px rgba(26,46,74,0.15); }
.cards.two { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); max-width: 820px; }

/* fee table: program names left, amounts centred; wider name column (Teemu 2026-10-09) */
table.facts.fees th, table.facts.fees td { text-align: center; vertical-align: middle; }
table.facts.fees { table-layout: fixed; }
table.facts.fees thead th:first-child, table.facts.fees tbody th { text-align: left; width: 55%; }
table.facts.fees thead th:not(:first-child), table.facts.fees td { width: 15%; white-space: nowrap; text-align: center; }
table.facts.fees td:last-child { font-weight: 600; color: var(--navy); }
table.facts.fees thead th:not(:first-child), table.facts.fees td { padding-left: 8px; padding-right: 8px; }
@media (max-width: 600px) {
  table.facts.fees { min-width: 0; font-size: 13px; }
  table.facts.fees th, table.facts.fees td { padding: 9px 6px; }
  table.facts.fees thead th:first-child, table.facts.fees tbody th { width: 46%; }
  table.facts.fees thead th:not(:first-child), table.facts.fees td { width: 18%; }
  table.facts.fees thead th:not(:first-child) { white-space: normal; hyphens: manual; }
}
