/* LanguageLand v26. Public pages only. Loaded after the existing v25 theme.
   No remote assets, fixed text heights, line clamps, or global overflow hiding. */
:root {
  --surface: #f5f9fb;
  --public-focus: #145b82;
  --card-shadow: 0 8px 28px rgba(13, 43, 62, .055);
}
body { line-height: 1.65; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
/* Disabled and pending are different states. A saved request is never busy. */
button:disabled { cursor: not-allowed; }
button[aria-busy="true"], form[aria-busy="true"] button[type="submit"] { cursor: progress; }
.button { transition: background-color .18s, border-color .18s, box-shadow .18s; }
.button:disabled { transform: none; }
.button:focus-visible { outline-offset: 4px; }
.section-heading h1, .page-title-section h1 {
  font-size: clamp(1.9rem, 3.7vw, 3rem); line-height: 1.16;
  letter-spacing: -.035em; margin: 0 0 16px; color: var(--brand-dark);
}
.section-heading .eyebrow { display: block; margin-bottom: 10px; }
.section-heading p { line-height: 1.65; }
.utility-bar .contact-icon-link { width: 36px; height: 36px; min-width: 36px; }
.utility-row { min-height: 48px; }
.site-nav a { position: relative; }
.site-nav a:focus-visible { border-radius: 5px; }
.header-row .brand img { aspect-ratio: 26 / 9; }
.contact-actions .contact-enroll { background: var(--accent); color: #fff; border-color: var(--accent); }
.contact-actions summary { list-style-position: inside; }

/* Space around the first screen; navigation no longer covers the mobile photo. */
.hero-slider { margin-bottom: clamp(24px, 3vw, 44px); box-shadow: 0 1px 0 #e1edf3; }
.hero-copy h1, .hero-copy .hero-title { text-wrap: balance; }
.hero-note { border-left: 2px solid #bcd5e1; padding-left: 12px; }
.hero-dots { width: max-content; max-width: 100%; }
.hero-list li { text-wrap: pretty; }
.quick-contact-section { background: linear-gradient(120deg, var(--brand-dark), #104d69); }
.quick-contact-copy h2 { max-width: 560px; }
.quick-contact-copy .eyebrow { display: block; margin-bottom: 12px; }

/* Consistent card bottoms without truncating editorial content. */
.program-card { display: flex; flex-direction: column; border-radius: 20px; box-shadow: var(--card-shadow); }
.program-image { flex: 0 0 auto; background: #eaf2f6; }
.program-card-body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; }
.program-card-body h3 { margin: 0 0 12px; }
.program-card-body p { margin: 0 0 18px; }
.program-card-body .card-link { margin-top: auto; min-height: 36px; font-weight: 700; }
.program-card:focus-visible { outline: 3px solid var(--public-focus); outline-offset: 4px; }
.teacher-card { border-radius: 20px; box-shadow: var(--card-shadow); }
.teacher-body > span { display: block; line-height: 1.5; margin-bottom: 10px; }
.teacher-body h3 { margin-block: 0 16px; }
.teacher-bio p:last-child { margin-bottom: 0; }
.review-card { display: flex; flex-direction: column; border-radius: 20px; box-shadow: var(--card-shadow); }
.review-card footer { margin-top: auto; }
.review-card blockquote { margin-inline: 0; }
.price-card { display: flex; flex-direction: column; align-items: stretch; border-radius: 20px; box-shadow: var(--card-shadow); }
.price-card h3 { margin-block: 4px 8px; }
.price-card > p { margin-block: 0 18px; }
.price-features { flex: 1; margin-bottom: 22px; }
.price-card > .button { margin-top: auto; }
.price-badge { max-width: calc(100% - 36px); white-space: normal; text-align: center; }
.contact-card { border-radius: 20px; }
.contact-card > div:not(.contact-number), .contact-card > h3 { position: relative; }
.contact-card .branch-map-links { margin-top: 16px; gap: 4px 16px; }
.contact-hub { margin-top: 24px; }
.about-image { background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.about-image img { padding: 0; width: 100%; }
.inner-hero { background: linear-gradient(120deg, #eff7fa, #fff); }
.inner-hero-grid { align-items: center; }
.inner-hero .booking-explanation { font-size: .9rem; max-width: 48ch; margin-top: 16px; }
.program-facts > div { background: #fff; border-radius: 16px; padding: 24px; }
.content-article { line-height: 1.8; }
.html-content :is(ul, ol), .content-article :is(ul, ol) { padding-left: 1.4em; }
.html-content figure, .content-article figure { margin-inline: 0; max-width: 100%; }
.html-content :is(video, iframe), .content-article :is(video, iframe) { max-width: 100%; }
.responsive-table:focus-visible { outline-offset: 3px; }

/* The essential form stays short; optional fields remain native HTML controls. */
.lead-form { grid-template-columns: repeat(auto-fit, minmax(min(100%, max(220px, calc((100% - 18px) / 2))), 1fr)); }
.lead-form .form-wide { grid-column: 1 / -1; }
.booking-page { background: var(--surface); }
.booking-page .section-heading { max-width: 680px; }
.booking-page .lead-form { background: #fff; }
.booking-form-note { margin: 0; color: #526b7d; font-size: .85rem; line-height: 1.5; }
.lead-form input::placeholder, .lead-form textarea::placeholder { color: #617181; font-weight: 400; opacity: 1; }
.booking-options { min-width: 0; border: 1px solid var(--line); border-radius: 12px; background: #f8fbfc; }
.booking-options > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px; min-height: 48px; cursor: pointer; color: var(--brand-dark);
  font-weight: 650; font-size: .9rem; list-style: none;
}
.booking-options > summary::-webkit-details-marker { display: none; }
.booking-options > summary::after { content: "+"; font-size: 1.4rem; line-height: 1; font-weight: 400; }
.booking-options[open] > summary::after { content: "−"; }
.booking-options > summary > span { min-width: 0; overflow-wrap: anywhere; }
.booking-options > summary::after { flex: 0 0 auto; }
.booking-options > summary small { display: block; font-size: .77rem; font-weight: 400; color: #526b7d; }
.booking-options__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, max(200px, calc((100% - 16px) / 2))), 1fr)); gap: 16px; padding: 0 16px 18px; }
.booking-options__grid > * { min-width: 0; }
.booking-options label { margin: 0; }
.booking-options .check { min-height: 44px; font-weight: 500; }
.booking-options textarea { min-height: 96px; }
.lead-form .form-submit { gap: 12px; }
.lead-form .form-submit small { line-height: 1.6; color: #526b7d; }
.lead-form .consent-check { border-radius: 12px; }
.form-status:not(:empty) { padding: 14px 16px; border-radius: 12px; background: #eef6fa; color: #244a60; }
.form-status.is-success { background: #edf8f1; color: #215b3c; border: 1px solid #c5e4d1; }
.form-status.is-error { background: #fff5f5; color: #8b2633; border: 1px solid #efd0d5; }
.footer-grid h3 { font-weight: 700; letter-spacing: 0; }
.footer-grid > div > a:not(.brand) { padding-block: 5px; }
.cookie-panel { border: 1px solid var(--line); }

/* The dialog fits the visual viewport, including a mobile software keyboard. */
body.ai-chat-open { overflow: hidden; }
.ai-chat { width: auto; }
.ai-chat__launcher { min-width: 0; gap: 10px; padding: 10px 14px; box-shadow: 0 8px 28px rgba(13,43,62,.22); }
.ai-chat__launcher span:nth-child(2) { text-align: left; }
.ai-chat__launcher strong { font-size: .9rem; }
.ai-chat__launcher small { font-size: .72rem; }
.ai-chat__panel {
  display: flex; flex-direction: column; width: 430px;
  height: min(720px, calc(var(--visual-height, 100dvh) - 32px));
  max-height: calc(var(--visual-height, 100dvh) - 32px);
  right: max(16px, env(safe-area-inset-right));
  bottom: calc(var(--visual-bottom, 0px) + max(16px, env(safe-area-inset-bottom)));
  max-width: calc(100vw - 32px); isolation: isolate; color: var(--ink);
}
.ai-chat__head { flex: 0 0 auto; padding: 14px 16px; }
.ai-chat__head strong { font-size: 1rem; overflow-wrap: anywhere; line-height: 1.4; }
.ai-chat__head span { font-size: .73rem; }
.ai-chat__avatar { flex: 0 0 43px; }
.ai-chat__head > button { flex: 0 0 44px; }
.ai-chat__messages { flex: 1 1 0; min-height: 0; padding: 20px 16px; overscroll-behavior: contain; }
.ai-chat__message { max-width: 90%; }
.ai-chat__message p { font-size: .9rem; line-height: 1.6; overflow-wrap: anywhere; }
.ai-chat__message small { font-size: .67rem; color: #526b7d; }
.ai-chat__quick { flex: 0 0 auto; flex-wrap: wrap; overflow: visible; gap: 8px; }
.ai-chat__quick button { flex: 0 1 auto; min-height: 40px; font-size: .78rem; white-space: normal; text-align: left; }
.ai-chat__cta { flex: 0 0 auto; min-height: 48px; font-size: .87rem; }
.ai-chat__composer { flex: 0 0 auto; }
.ai-chat__composer textarea { font-size: 16px; min-height: 46px; }
.ai-chat__composer button { min-height: 46px; }
.ai-chat__panel > footer { flex: 0 0 auto; font-size: .68rem; line-height: 1.45; color: #526b7d; padding: 4px 16px 12px; }
.ai-chat__panel.is-lead-open > :is(.ai-chat__messages, .ai-chat__quick, .ai-chat__cta, .ai-chat__composer) { display: none; }
.ai-chat__lead {
  position: static; inset: auto; z-index: auto; flex: 1 1 0; min-height: 0;
  overflow-y: auto; overscroll-behavior: contain; margin: 0; padding: 18px;
  border: 0; border-radius: 0; box-shadow: none; background: #fff;
  scrollbar-gutter: stable;
}
.ai-chat__lead-title { margin-bottom: 10px; gap: 12px; }
.ai-chat__lead-title strong { font-size: 1.1rem; line-height: 1.4; }
.ai-chat__lead-title button { flex: 0 0 44px; }
.ai-chat__lead-fields { min-width: 0; border: 0; padding: 0; margin: 0 0 16px; }
.ai-chat__lead-fields > p { margin: 0 0 18px; font-size: .86rem; line-height: 1.6; color: #526b7d; }
.ai-chat__lead label { font-size: .86rem; font-weight: 650; margin-bottom: 14px; }
.ai-chat__lead input:not([type="checkbox"]) { min-height: 48px; font-size: 16px; }
.ai-chat__lead .ai-chat__consent { font-size: .8rem; line-height: 1.55; margin-block: 8px 16px; }
.ai-chat__lead .ai-chat__consent input { margin-top: 3px; }
.ai-chat__lead-status { font-size: .9rem; line-height: 1.65; margin-top: 16px; overflow-wrap: anywhere; }
.ai-chat__lead-status:empty { display: none; }
.ai-chat__lead[data-state="error"] .ai-chat__lead-status { padding: 14px; border-radius: 12px; background: #fff5f5; border: 1px solid #efd0d5; }
.ai-chat__lead[data-state="success"] { padding-top: 24px; }
.ai-chat__lead[data-state="success"] button[type="submit"] {
  background: #edf8f1; border: 1px solid #b9ddc8; color: #215b3c; opacity: 1; cursor: default; box-shadow: none;
}
.ai-chat__lead[data-state="success"] button[type="submit"]::before { content: "✓"; margin-right: 8px; font-size: 1.1rem; }
.ai-chat__lead-status.is-success { background: transparent; padding: 0; color: #325b46; }
.ai-chat__lead [data-ai-chat-lead-done] { margin-top: 24px; }

@media (min-width: 761px) and (max-width: 1120px) {
  .hero-copy { width: 75%; }
  .hero-content { min-height: 480px; }
  .hero-copy h1, .hero-copy .hero-title { font-size: clamp(2.3rem, 4.6vw, 3.1rem); }
  .header-row .brand > span { display: block; }
}
@media (max-width: 800px) {
  .ai-chat__launcher { display: flex; width: 56px; height: 56px; padding: 8px; justify-content: center; border-radius: 18px; }
  .ai-chat__launcher span:nth-child(2) { display: none; }
  .ai-chat__launcher-icon { width: 38px; height: 38px; }
  .ai-chat__launcher > i { position: absolute; right: 7px; top: 7px; }
  .site-footer { padding-bottom: 80px; }
  .cookie-panel { margin-bottom: 88px; }
}
@media (max-width: 760px) {
  .hero-slider { margin-bottom: 24px; }
  .hero-copy { padding-top: 26px; padding-bottom: 24px; }
  .hero-list li { font-weight: 500; }
  .hero-dots { position: static; transform: none; margin: 0 auto; background: transparent; }
  .hero-slide::after { height: clamp(165px, 42vw, 260px); }
  .hero-note { border-left: 0; padding-left: 0; }
  .quick-contact-copy h2 { font-size: clamp(1.85rem, 5vw, 2.5rem); }
  .quick-contact-copy p { font-size: .95rem; margin-bottom: 0; }
  .section-heading { margin-bottom: 28px; }
  .program-grid, .program-grid.compact { gap: 18px; }
  .contact-hub { gap: 20px; }
  .inner-hero-grid { gap: 24px; }
  .inner-hero-grid img { aspect-ratio: 16 / 11; }
}
@media (max-width: 560px) {
  .header-row .brand img { width: 132px; }
  .program-card-body { padding: 22px; }
  .program-card h3 { font-size: 1.2rem; }
  .teacher-photo { height: auto; aspect-ratio: 5 / 4; }
  .teacher-photo img { object-position: center 24%; }
  .price-card { padding: 28px 24px; }
  .booking-options__grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .booking-options__grid .form-wide { grid-column: 1; }
  .booking-options > summary { padding: 12px; }
  .booking-options__grid { padding-inline: 12px; }
  .lead-form .form-submit .button { width: 100%; }
  .ai-chat__panel {
    right: max(8px, env(safe-area-inset-right)); max-width: calc(100vw - 16px);
    bottom: calc(var(--visual-bottom, 0px) + max(8px, env(safe-area-inset-bottom)));
    height: calc(var(--visual-height, 100dvh) - 16px); max-height: calc(var(--visual-height, 100dvh) - 16px);
    border-radius: 18px;
  }
  .ai-chat__lead { padding: 16px; }
  .ai-chat__quick button { font-size: .77rem; }
}
@media (max-width: 359px) {
  .header-row .brand img { width: 114px; }
  .hero-copy h1, .hero-copy .hero-title { font-size: 1.75rem; }
  .hero-actions .button { padding-inline: 12px; font-size: .88rem; }
  .ai-chat__head { gap: 8px; padding-inline: 12px; }
  .ai-chat__quick { gap: 6px; padding-inline: 12px; }
}
@media (max-height: 520px) {
  .ai-chat__head { padding-block: 8px; }
  .ai-chat__quick { display: none; }
  .ai-chat__cta { margin-bottom: 8px; min-height: 44px; padding-block: 8px; }
  .ai-chat__panel > footer { padding-bottom: 6px; font-size: .63rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
