/* LanguageLand v25. Public design layer; no dependencies or remote fonts. */
:root {
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: var(--font);
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 16px 48px rgba(13, 43, 62, .09);
  --page-gutter: clamp(16px, 3vw, 40px);
}
body { -webkit-text-size-adjust: 100%; }
[hidden] { display: none !important; }
.container-wide { width: min(1280px, calc(100% - var(--page-gutter) * 2)); }
.container-readable { width: min(860px, calc(100% - var(--page-gutter) * 2)); }
main, section, article, .header-row > *, .footer-grid > *, .hero-copy,
.program-card-body, .teacher-body, .contact-card, .inner-hero-grid > *,
.about-grid > *, .quick-contact-grid > * { min-width: 0; }
h1, h2, h3 { overflow-wrap: anywhere; text-wrap: balance; }
p, li, dd, .html-content, .footer-grid { overflow-wrap: anywhere; }
.button { min-height: 48px; border-radius: 12px; font-weight: 700; padding: 12px 20px; }
.button-lg { min-height: 52px; padding: 15px 24px; }
.button-sm { min-height: 44px; }
button:disabled { cursor: wait; opacity: .65; }
.eyebrow { letter-spacing: .12em; font-size: .73rem; }

/* A quiet contact strip replaces the large, repeated phone directory. */
.utility-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 46px; }
.utility-branches, .utility-contact { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 22px; }
.utility-branches { min-width: 0; }
.utility-branches a { color: #e4eef4; font-size: .76rem; padding-block: 10px; }
.utility-contact { justify-content: flex-end; gap: 12px; }
.utility-hours { font-size: .75rem; color: #d2e4ee; }
.utility-phone { font-size: .84rem; font-weight: 700; color: #fff; white-space: nowrap; padding-block: 10px; }
.utility-bar .contact-icon-link { width: 30px; height: 30px; min-width: 30px; border-radius: 9px; color: #fff; }
.utility-bar a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.header-row { min-height: 88px; gap: 24px; }
.header-row .brand { min-width: 0; flex: 0 1 285px; gap: 10px; }
.header-row .brand img { width: 156px; height: 54px; object-fit: contain; flex: 0 0 auto; }
.header-row .brand b { font-size: 1.05rem; letter-spacing: -.025em; }
.header-row .brand small { font-size: .64rem; line-height: 1.35; max-width: 130px; }
.site-nav { gap: clamp(12px, 1.6vw, 24px); }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: .82rem; }
.header-actions { gap: 8px; flex-shrink: 0; }
.header-actions .button { font-size: .8rem; padding: 12px 15px; }
.menu-toggle { align-items: center; justify-content: center; gap: 8px; min-height: 44px; min-width: 44px; }
.menu-toggle__icon { display: block; position: relative; width: 18px; height: 2px; background: currentColor; }
.menu-toggle__icon::before, .menu-toggle__icon::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor; }
.menu-toggle__icon::before { top: -6px; }
.menu-toggle__icon::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon::before { top: 0; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon::after { top: 0; transform: rotate(-45deg); }
@media (min-width: 1121px) { .contact-actions { display: none; } }

/* The first screen is sized by its content, never by a fixed mobile height. */
.hero-slider { width: min(1360px, calc(100% - var(--page-gutter) * 2)); margin: 24px auto 0; border-radius: 26px; background: #eef7fa; }
.hero-slider, .hero-track, .hero-slide { min-height: 0; }
.hero-content { min-height: 560px; width: calc(100% - clamp(40px, 7vw, 112px)); }
.hero-overlay { background: linear-gradient(90deg, #f4fbfd 0%, rgba(244, 251, 253, .97) 33%, rgba(244, 251, 253, .82) 48%, rgba(244, 251, 253, 0) 77%); }
.hero-copy { width: min(700px, 62%); padding: 54px 0 74px; }
.hero-copy h1, .hero-copy .hero-title { font-family: var(--font); font-size: clamp(2.25rem, 4.1vw, 3.65rem); font-weight: 750; line-height: 1.08; letter-spacing: -.045em; margin: 0 0 24px; color: var(--brand-dark); }
.hero-list ul { gap: 11px; margin-bottom: 26px; }
.hero-list li { font-size: .95rem; font-weight: 550; line-height: 1.5; padding-left: 30px; }
.hero-list li::before { width: 20px; height: 20px; top: 2px; font-size: .68rem; }
.hero-actions { gap: 14px 18px; }
.hero-note { font-size: .8rem; max-width: 220px; line-height: 1.55; color: #41596a; }
.hero-dots { bottom: 8px; gap: 0; }
.hero-dots button, .hero-dots button.is-active { width: 44px; height: 44px; min-width: 44px; border-radius: 50%; position: relative; border: 0; background: transparent; box-shadow: none; padding: 0; }
.hero-dots button::after { content: ""; width: 8px; height: 8px; position: absolute; inset: 0; margin: auto; background: #607c8c; border-radius: 50%; transition: width .15s ease; }
.hero-dots button.is-active::after { width: 22px; background: var(--accent); border-radius: 10px; }

/* Consistent section rhythm and grids which survive long editorial titles. */
.section { padding-block: clamp(48px, 6vw, 84px); }
.section-heading { max-width: 740px; margin-bottom: 34px; }
.section-heading h2, .about-grid h2, .quick-contact-copy h2 { font-size: clamp(1.9rem, 3.2vw, 2.8rem); line-height: 1.15; letter-spacing: -.035em; font-weight: 750; }
.section-heading p { max-width: 640px; margin-inline: auto; font-size: 1rem; }
.program-grid, .program-grid.compact { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.program-card { box-shadow: 0 6px 22px rgba(13, 43, 62, .045); }
.program-image { height: auto; aspect-ratio: 16 / 10; }
.program-card-body { padding: 24px; }
.program-card h3 { font-size: 1.2rem; line-height: 1.35; }
.program-card p { font-size: .94rem; }
.program-icon { width: 44px; height: 44px; font-size: 1.25rem; border-radius: 12px; }
.card-link { display: inline-flex; align-items: center; min-height: 32px; }
.benefits-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.benefits-grid article { padding: 24px; min-height: 0; }
.teacher-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.teacher-card { grid-template-columns: minmax(145px, .8fr) minmax(0, 1fr); }
.teacher-photo { min-height: 0; position: relative; }
.teacher-photo img { position: absolute; inset: 0; object-position: center top; }
.teacher-body { padding: 26px 22px; }
.teacher-body h3 { font-size: 1.4rem; line-height: 1.25; letter-spacing: -.02em; }
.teacher-bio { font-size: .9rem; }
.review-grid, .price-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.review-card, .price-card { padding: 28px; min-width: 0; }
.review-card { font-size: .94rem; }
.review-card footer { padding-top: 20px; margin-top: 20px; }
.review-card footer small { font-size: .75rem; color: #516575; }
.price-card.is-featured { transform: none; }
.price-grid { row-gap: 28px; }
.price-card h3 { font-size: 1.25rem; line-height: 1.35; }
.price-value { flex-wrap: wrap; gap: 0 8px; }
.price-value strong { font-size: clamp(1.7rem, 2.7vw, 2.3rem); }
.price-card .button { width: 100%; }
.about-grid { gap: 48px; }
.about-image { min-height: 0; }
.about-image img { height: auto; padding: 24px; }
.contacts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.contact-card { padding: 28px; }
.contact-card h3 { position: relative; padding-right: 28px; font-size: 1.25rem; }
.contact-number { font-size: 3.4rem; }
.contact-hub { gap: 24px; padding: 28px; }
.contact-hub__links { min-width: 0; }
.contact-channel-button { max-width: 100%; }

/* Forms remain readable on iOS; optional fields are clearly identified. */
.quick-contact-section { margin-top: 0; padding-block: 64px; }
.quick-contact-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px; align-items: start; }
.quick-contact-copy { padding-top: 14px; }
.quick-contact-copy p { max-width: 450px; color: #d7e5ee; }
.quick-contact-copy .eyebrow { color: #ffadb0; }
.lead-form { padding: clamp(20px, 3vw, 32px); border: 1px solid var(--line); box-shadow: var(--shadow); gap: 18px; border-radius: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lead-form label, .stack-form label { font-size: .88rem; font-weight: 650; }
.lead-form input:not([type="checkbox"]):not([type="hidden"]), .lead-form select, .lead-form textarea,
.stack-form input:not([type="checkbox"]):not([type="hidden"]), .stack-form select, .stack-form textarea,
.ai-chat__lead input:not([type="checkbox"]), .ai-chat__composer textarea {
  font-size: 16px; min-height: 48px; border-radius: 10px; border: 1px solid #b9cbd6;
  padding: 12px; color: var(--ink); background: #fff; width: 100%; max-width: 100%;
}
.lead-form textarea, .stack-form textarea { resize: vertical; }
.lead-form input::placeholder, .lead-form textarea::placeholder { color: #657a88; opacity: 1; }
.lead-form fieldset { padding: 0; margin: 0; border: 0; }
.lead-form legend { font-size: .88rem; font-weight: 650; margin-bottom: 4px; }
.lead-form small { font-weight: 400; color: #4b6373; line-height: 1.5; }
.lead-form .consent-check { font-size: .8rem; font-weight: 400; line-height: 1.6; margin: 0; }
.consent-check a, .ai-chat__consent a { text-decoration: underline; text-underline-offset: 3px; }
.lead-form input[type="checkbox"] { accent-color: var(--brand); }
.form-submit { align-items: flex-start; flex-direction: column; gap: 12px; }
.form-submit .button { width: 100%; }
.form-submit small { font-size: .75rem; }
.form-status:not(:empty) { margin: 0; padding: 12px 14px; border: 1px solid #bfdbcf; border-radius: 10px; background: #eff8f3; color: #23583d; }
.form-error-summary { margin: 0; }
.booking-page { background: #f4f8fa; }
.booking-page .container-readable { max-width: 780px; }
.booking-page h1 { font-size: clamp(1.9rem, 3.5vw, 2.8rem); line-height: 1.15; letter-spacing: -.035em; margin: 0 0 16px; color: var(--brand-dark); }
[data-lead-security] { min-width: 0; }
[data-lead-security]:not(:has([data-captcha])) { margin: 0; height: 0; }
[data-captcha] { max-width: 100%; }
.captcha-feedback { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.captcha-feedback:has([data-captcha-status]:empty):not(:has(.captcha-retry:not([hidden]))) { display: none; }
.captcha-retry { min-height: 44px; border: 1px solid var(--line); background: #f4f8fa; color: var(--brand-dark); border-radius: 10px; padding: 8px 12px; font-size: .85rem; }

/* Reading pages, authentication, chat and the footer share the same scale. */
.inner-hero, .page-title-section { padding-block: 56px; }
.inner-hero-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }
.inner-hero h1, .page-title-section h1 { font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.12; letter-spacing: -.04em; }
.inner-hero-grid img { height: auto; aspect-ratio: 4 / 3; }
.content-article { font-size: 1rem; }
.content-article h2 { font-size: clamp(1.55rem, 3vw, 2.1rem); }
.html-content img, .content-article img { height: auto; }
.html-content iframe { max-width: 100%; }
.html-content pre { max-width: 100%; overflow-x: auto; }
.responsive-table { max-width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; -webkit-overflow-scrolling: touch; }
.responsive-table table { margin: 0; }
.auth-section { padding: 48px var(--page-gutter); min-height: 560px; }
.auth-card { padding: clamp(24px, 4vw, 40px); }
.auth-card h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); letter-spacing: -.035em; }
.site-footer { padding-block: 56px 36px; }
.footer-grid { grid-template-columns: 1.25fr .8fr 1.2fr 1fr; gap: 32px; }
.footer-brand { flex-wrap: wrap; gap: 14px; }
.footer-brand img { width: 160px; height: auto; }
.footer-grid a, .footer-link-button { overflow-wrap: anywhere; }
.footer-grid h3 { line-height: 1.5; }
.footer-grid > div > a { padding-block: 3px; }
.footer-legal { color: #b9c9d3; }
.cookie-panel { position: static; width: min(1280px, calc(100% - var(--page-gutter) * 2)); max-width: none; margin: 20px auto; padding: 22px; border-radius: 16px; box-shadow: 0 6px 24px rgba(13,43,62,.08); }
.cookie-panel__actions { flex: 0 1 430px; }
.cookie-panel__actions > .button { flex: 1 1 180px; font-size: .8rem; }
.ai-chat { right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); }
.ai-chat__launcher { padding: 10px 14px; border-radius: 16px; }
.ai-chat__panel { border-radius: 20px; bottom: calc(var(--visual-bottom, 0px) + max(12px, env(safe-area-inset-bottom))); }
.ai-chat__lead { overflow-y: auto; min-height: 0; }
.ai-chat__lead [data-captcha] { flex-shrink: 0; }

@media (max-width: 1120px) {
  .header-row { min-height: 78px; flex-wrap: wrap; gap: 12px; padding-block: 8px; }
  .header-row .brand { flex: 1; }
  .header-row .brand img { width: 150px; }
  .header-actions .header-booking { display: none; }
  .menu-toggle { display: inline-flex; margin-left: auto; }
  .header-actions { margin-left: 0; }
  .site-nav { display: none; position: static; order: 4; flex: 1 0 100%; margin: 0; padding: 8px; border: 1px solid var(--line); box-shadow: none; border-radius: 14px; background: #f5f9fb; gap: 2px; }
  .site-nav.is-open { display: flex; flex-direction: column; align-items: stretch; }
  .site-nav a { min-height: 46px; padding: 8px 12px; border-radius: 8px; font-size: .95rem; }
  .site-nav a:hover { background: #e7f0f5; }
  .contact-actions { padding-block: 10px; gap: 8px; }
  .contact-action-details { border-radius: 12px; }
  .contact-action-details summary { min-height: 46px; }
  .contact-actions .contact-enroll { min-height: 48px; }
  .utility-hours { display: none; }
  .hero-content { min-height: 520px; }
  .hero-copy { width: 68%; }
  .teacher-grid { grid-template-columns: minmax(0, 1fr); }
  .teacher-card { grid-template-columns: minmax(170px, .45fr) minmax(0, 1fr); }
  .benefits-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quick-contact-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .quick-contact-copy { max-width: 680px; padding: 0; }
  .quick-contact-copy p { max-width: none; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-grid { gap: 32px; }
  .review-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .review-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .price-grid { gap: 18px; }
  .price-card { padding: 24px 20px; }
}
@media (max-width: 760px) {
  .utility-bar { display: none; }
  .header-row { min-height: 70px; gap: 10px; }
  .header-row .brand img { width: 146px; height: 46px; }
  .header-row .brand > span { display: none; }
  .header-actions .button { min-height: 44px; font-size: .8rem; padding: 10px 12px; }
  .hero-slider { margin-top: 6px; border-radius: 20px; }
  .hero-content { min-height: 0; width: calc(100% - 40px); }
  .hero-copy { width: 100%; padding: 30px 0 26px; }
  .hero-copy h1, .hero-copy .hero-title { font-size: clamp(1.85rem, 7.8vw, 2.65rem); margin-bottom: 20px; }
  .hero-slide { background-image: none; }
  .hero-overlay { display: none; }
  .hero-slide::after { content: ""; display: block; height: clamp(155px, 32vw, 235px); background-image: var(--hero-image); background-size: cover; background-position: 75% 40%; }
  .hero-list li { font-size: .9rem; }
  .hero-list ul { gap: 10px; margin-bottom: 22px; }
  .hero-actions { gap: 12px; }
  .hero-actions .button { width: 100%; }
  .hero-note { max-width: none; font-size: .78rem; }
  .hero-dots { background: #ffffffed; border-radius: 30px; bottom: 10px; }
  .program-grid, .program-grid.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .program-card-body { padding: 20px; }
  .program-card h3 { font-size: 1.1rem; }
  .price-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .price-card { padding: 28px; }
  .price-value strong { font-size: 2rem; }
  .about-grid, .inner-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .contacts-grid { grid-template-columns: minmax(0, 1fr); }
  .contact-hub { padding: 24px; }
  .inner-hero, .page-title-section { padding-block: 36px; }
  .quick-contact-section { padding-block: 44px; }
  .cookie-panel { display: block; }
  .cookie-panel__actions { margin-top: 14px; flex-direction: row; }
  .cookie-panel__actions > .button { width: auto; }
}
@media (max-width: 560px) {
  .menu-toggle__label { display: none; }
  .menu-toggle { padding: 10px; }
  .header-row .brand img { width: 138px; }
  .contact-actions { font-size: .82rem; gap: 6px; }
  .contact-actions summary, .contact-actions .contact-enroll { font-size: .82rem; padding-inline: 6px; }
  .contact-options-grid, .contact-message-options { padding: 12px; }
  .contact-message-options > .button { flex: 1 1 120px; }
  .program-grid, .program-grid.compact, .review-grid { grid-template-columns: minmax(0, 1fr); }
  .review-grid > :last-child:nth-child(odd) { grid-column: auto; }
  .program-image { aspect-ratio: 16 / 9; }
  .teacher-card { grid-template-columns: minmax(0, 1fr); }
  .teacher-photo { height: 280px; }
  .teacher-photo img { object-position: center 20%; }
  .teacher-body { padding: 24px; }
  .benefits-grid { gap: 12px; }
  .benefits-grid article { padding: 18px; }
  .benefits-grid strong { font-size: 1rem; }
  .benefits-grid span { font-size: .85rem; }
  .lead-form { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 20px; }
  .lead-form .form-wide { grid-column: 1; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .footer-grid > div > a, .footer-link-button { min-height: 36px; display: flex; align-items: center; }
  .footer-brand { flex-wrap: nowrap; }
  .footer-brand img { width: 130px; }
  .footer-brand b { font-size: 1.1rem; }
  .footer-brand small { font-size: .67rem; }
  .auth-section { min-height: 0; padding-block: 36px; }
  .contact-card { padding: 24px; }
  .cookie-panel { padding: 18px; }
  .ai-chat__panel { right: 8px; max-width: calc(100vw - 16px); max-height: calc(var(--visual-height, 100dvh) - 16px); }
  .ai-chat__lead-row { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 359px) {
  .header-row { gap: 6px; }
  .header-row .brand img { width: 118px; }
  .hero-content { width: calc(100% - 32px); }
  .hero-copy h1, .hero-copy .hero-title { font-size: 1.8rem; }
  .benefits-grid { grid-template-columns: minmax(0, 1fr); }
  .lead-form { padding: 18px; }
  .footer-brand { flex-wrap: wrap; }
}
@media (hover: none) {
  .button:hover, .program-card:hover { transform: none; }
  .program-card:hover .program-image img { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-dots button::after { transition: none; }
}
@media (max-width: 1120px) {
  .site-header:not(.navigation-ready) .site-nav { display: flex; flex-direction: column; align-items: stretch; }
  .site-header:not(.navigation-ready) .menu-toggle { display: none; }
}
.header-actions .header-login { display: inline-flex; }
.utility-directory { position: relative; }
.utility-directory summary { font-size: .74rem; min-height: 40px; display: flex; align-items: center; cursor: pointer; color: #e4eef4; }
.utility-directory summary::after { content: "+"; padding-left: 5px; }
.utility-directory[open] summary::after { content: "\2212"; }
.utility-directory .top-phone-list { position: absolute; top: 100%; right: 0; z-index: 120; width: min(440px, 90vw); padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow); gap: 12px; }
.utility-directory .top-phone-list a { color: var(--brand-dark); font-size: .88rem; min-height: 54px; }
.utility-directory .top-phone-list a:hover { color: var(--brand); }
.utility-directory .phone-purpose, .utility-directory .phone-primary-label { color: #516575; font-size: .7rem; }
@media (max-width: 760px) { .hero-slide::after { background-size: auto 150%; background-position: right 28%; } }
.lead-form fieldset { flex-wrap: wrap; }
.lead-form .check { max-width: 100%; }
.lead-form label.consent-check { flex-direction: row; padding: 14px; background: #f7fafc; }
.lead-form .consent-check span { font-size: .8rem; color: #496171; min-width: 0; }
.ai-chat { font-family: var(--font); }
.ai-chat__panel { padding: 0; height: min(700px, calc(var(--visual-height, 100dvh) - 24px)); }
.ai-chat__lead .ai-chat__consent { flex-direction: row; font-size: .78rem; }
.ai-chat__lead .ai-chat__consent input { width: 22px; height: 22px; flex: 0 0 22px; margin: 1px 0 0; }
.ai-chat__lead-title button { min-width: 44px; min-height: 44px; }
.ai-chat__lead label { font-size: .8rem; }
.ai-chat__lead > p { font-size: .8rem; }
@media (max-width: 760px) { .hero-slide::after { background-position: right top; } }

.cookie-panel { overflow-wrap: anywhere; }
