:root {
  --ink: #1f2e29;
  --muted: #64746d;
  --green: #244a3d;
  --green-dark: #17342b;
  --sage: #dbe6db;
  --cream: #fbf7ef;
  --paper: #fffdf8;
  --terracotta: #bd674c;
  --terracotta-dark: #974b36;
  --line: #dce3dc;
  --shadow: 0 18px 50px rgba(28, 55, 45, .11);
  --radius: 1.25rem;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: var(--green); text-underline-offset: .18em; }
a:hover { color: var(--terracotta-dark); }
h1, h2, h3, h4 { color: var(--green-dark); font-family: Georgia, "Times New Roman", serif; line-height: 1.12; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6vw, 5rem); margin: .3rem 0 1rem; letter-spacing: -.035em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.8rem); margin: 2.2rem 0 .9rem; }
h3 { font-size: clamp(1.3rem, 2vw, 1.8rem); margin: 1.8rem 0 .7rem; }
p { margin: 0 0 1.1rem; }
button, input, textarea { font: inherit; }

.skip-link { position: fixed; top: .5rem; left: .5rem; z-index: 100; padding: .7rem 1rem; background: #fff; transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.container { width: min(calc(100% - 2rem), var(--container)); margin-inline: auto; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251, 247, 239, .94); border-bottom: 1px solid rgba(36, 74, 61, .12); backdrop-filter: blur(14px); }
.header-inner { width: min(calc(100% - 2rem), 1360px); min-height: 82px; margin: auto; display: flex; align-items: center; gap: 1.4rem; }
.brand { display: flex; align-items: center; gap: .75rem; color: var(--green-dark); text-decoration: none; flex-shrink: 0; }
.brand-mark { display: grid; place-items: center; width: 58px; height: 58px; padding: .35rem; border-radius: 1rem; background: var(--green-dark); }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.brand strong { display: block; font-size: 1.15rem; }
.brand small { display: block; color: var(--muted); font-size: .72rem; line-height: 1.2; }
.primary-nav { position: fixed; inset: 82px 1rem auto; display: none; padding: 1rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.primary-nav.open { display: block; }
.primary-nav ul { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.primary-nav a { display: block; padding: .7rem; color: var(--ink); font-size: .92rem; font-weight: 650; text-decoration: none; border-radius: .55rem; }
.primary-nav a:hover, .primary-nav a:focus-visible { color: var(--green-dark); background: var(--sage); }
.header-actions { display: flex; align-items: center; gap: .8rem; }
.language-switcher { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: .2rem; background: var(--paper); }
.language-switcher a { padding: .25rem .5rem; border-radius: 999px; font-size: .72rem; font-weight: 750; text-decoration: none; }
.language-switcher .active { color: #fff; background: var(--green); }
.menu-toggle { display: inline-flex; margin-left: auto; padding: .6rem .85rem; color: var(--green); background: transparent; border: 1px solid var(--green); border-radius: .7rem; font-weight: 700; cursor: pointer; }
.menu-toggle[aria-expanded="true"] { color: #fff; background: var(--green); }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: .75rem 1.2rem; color: #fff; background: var(--terracotta); border: 0; border-radius: 999px; font-weight: 750; text-decoration: none; cursor: pointer; box-shadow: 0 8px 20px rgba(189, 103, 76, .2); }
.button:hover { color: #fff; background: var(--terracotta-dark); transform: translateY(-1px); }
.button-small { min-height: 40px; padding: .55rem .9rem; font-size: .84rem; }
.eyebrow { display: block; color: var(--terracotta-dark); font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }

main { min-height: 55vh; }
.breadcrumbs { padding: 1.2rem 0; overflow-x: auto; }
.breadcrumbs ol { display: flex; gap: .5rem; align-items: center; margin: 0; padding: 0; list-style: none; white-space: nowrap; font-size: .82rem; color: var(--muted); }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: .5rem; color: #a9b3ad; }
.breadcrumbs a { color: var(--muted); }
.page-hero { position: relative; overflow: hidden; min-height: 290px; margin: .4rem 0 2rem; padding: clamp(2rem, 6vw, 5rem); display: grid; align-items: end; border-radius: calc(var(--radius) * 1.4); color: #fff; background: linear-gradient(135deg, var(--green-dark), var(--green)); }
.page-hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 85% 15%, rgba(255,255,255,.18), transparent 34%); pointer-events: none; }
.page-hero.has-image { grid-template-columns: minmax(0, 1fr) minmax(280px, .7fr); padding: 0; align-items: stretch; }
.hero-copy { position: relative; z-index: 2; min-width: 0; align-self: end; padding: clamp(2rem, 6vw, 5rem); }
.page-hero h1 { color: #fff; font-size: clamp(2.5rem, 5vw, 4.7rem); }
.page-hero.has-image h1 { overflow-wrap: break-word; hyphens: auto; text-shadow: 0 2px 12px rgba(10, 28, 22, .42); }
.page-hero .eyebrow { color: #f7c4ae; }
.hero-media { min-height: 350px; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.home-hero { overflow: hidden; min-height: 660px; display: grid; grid-template-columns: 1.05fr .95fr; border-radius: calc(var(--radius) * 1.4); background: var(--green-dark); box-shadow: var(--shadow); }
.home-copy { padding: clamp(2.2rem, 7vw, 6.5rem); align-self: center; color: #fff; }
.home-copy h1 { color: #fff; }
.home-copy p { max-width: 46ch; margin-bottom: 2rem; color: #dce9e2; font-size: 1.18rem; }
.home-copy .eyebrow { color: #f7c4ae; }
.home-media { min-height: 500px; }
.home-media img { width: 100%; height: 100%; object-fit: cover; }
.section { padding: clamp(2.5rem, 6vw, 5rem) 0; }
.section-heading { max-width: 760px; margin-bottom: 2rem; }
.section-heading h2 { margin-top: .4rem; }
.language-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.language-card { min-height: 260px; padding: 2rem; display: flex; flex-direction: column; justify-content: flex-end; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; box-shadow: 0 8px 28px rgba(30, 53, 45, .06); }
.language-card:hover { color: var(--ink); border-color: var(--terracotta); transform: translateY(-3px); }
.language-card span { color: var(--terracotta-dark); font-size: .8rem; font-weight: 800; letter-spacing: .08em; }
.language-card strong { margin: .65rem 0; color: var(--green-dark); font-family: Georgia, serif; font-size: 1.6rem; line-height: 1.15; }
.language-card small { color: var(--muted); font-size: .95rem; }

.prose { max-width: 880px; margin: 2rem auto 4rem; font-size: 1.08rem; }
.prose.narrow { max-width: 760px; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin: .45rem 0; }
.prose blockquote { margin: 2rem 0; padding: 1.5rem 1.8rem; color: var(--green-dark); background: var(--sage); border-left: 5px solid var(--terracotta); border-radius: 0 var(--radius) var(--radius) 0; font-family: Georgia, serif; font-size: 1.3rem; }
.prose blockquote p { margin: 0; }
.prose hr { margin: 3rem 0; border: 0; border-top: 1px solid var(--line); }
.content-image { margin: 2.2rem 0; }
.content-image img { width: 100%; max-height: 680px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.route-map { width: 100%; }
.route-map img { display: block; width: 100%; max-height: none; aspect-ratio: 2 / 1; object-fit: cover; box-shadow: 0 18px 44px rgba(24, 55, 45, .18); }
.route-map figcaption { margin-top: .65rem; color: var(--muted); font-size: .78rem; text-align: right; }
.route-map figcaption a { color: inherit; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.content-card { overflow: hidden; display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 30px rgba(30, 53, 45, .06); }
.content-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-image { aspect-ratio: 4 / 3; overflow: hidden; background: var(--sage); text-decoration: none; }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.content-card:hover .card-image img { transform: scale(1.035); }
.card-placeholder { height: 100%; display: grid; place-items: center; color: var(--green); font-family: Georgia, serif; font-size: 2rem; }
.card-body { padding: 1.4rem; }
.card-body h2 { margin: .3rem 0 .7rem; font-size: 1.55rem; }
.card-body h2 a { color: var(--green-dark); text-decoration: none; }
.card-body p { color: var(--muted); font-size: .94rem; }
.card-kicker { color: var(--terracotta-dark); font-size: .7rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.text-link { font-weight: 750; text-decoration: none; }
.course-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.course-layout .prose { margin-top: 1rem; }
.course-facts { position: sticky; top: 108px; margin: 1rem 0 4rem; padding: 1.5rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.course-facts h2 { margin-top: 0; font-size: 1.5rem; }
.course-facts dl > div { padding: .8rem 0; border-top: 1px solid var(--line); }
.course-facts dt { color: var(--muted); font-size: .75rem; font-weight: 800; text-transform: uppercase; }
.course-facts dd { margin: .15rem 0 0; color: var(--green-dark); font-weight: 750; }
.course-facts .button { width: 100%; margin-top: 1rem; }
.contact-band { margin: 3rem 0 5rem; padding: 2rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; background: var(--sage); border-radius: var(--radius); }
.contact-band h2 { margin: .2rem 0 0; }

.inquiry { margin: 3rem 0 6rem; padding: clamp(1.5rem, 5vw, 4rem); background: var(--paper); border: 1px solid var(--line); border-radius: calc(var(--radius) * 1.2); box-shadow: var(--shadow); }
.contact-form { max-width: 880px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.contact-form label { display: grid; gap: .35rem; color: var(--green-dark); font-weight: 700; }
.contact-form input, .contact-form textarea { width: 100%; padding: .8rem .9rem; color: var(--ink); background: #fff; border: 1px solid #b9c6bf; border-radius: .65rem; }
.contact-form input:focus, .contact-form textarea:focus { outline: 3px solid rgba(189,103,76,.2); border-color: var(--terracotta); }
.form-wide { grid-column: 1 / -1; }
.checkbox { grid-template-columns: auto 1fr !important; align-items: start; font-weight: 500 !important; }
.checkbox input { width: 1.2rem; height: 1.2rem; margin-top: .25rem; }
.contact-form .button { margin-top: 1.25rem; }
.form-note { margin-top: .7rem; color: var(--muted); font-size: .8rem; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.form-status { margin-bottom: 1rem; padding: 1rem; border-radius: .7rem; background: var(--sage); font-weight: 700; }
.form-status.error { color: #7d2c22; background: #f8ded8; }
.faq-list { max-width: 860px; margin: 2rem auto 5rem; }
.faq-list details { padding: 1.4rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.faq-list summary { color: var(--green-dark); font-family: Georgia, serif; font-size: 1.35rem; font-weight: 700; cursor: pointer; }
.faq-list .prose { margin: 1.5rem 0 0; }
.sitemap { margin: 2rem 0 5rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.sitemap-group { padding: 1.5rem; background: var(--paper); border-radius: var(--radius); }
.sitemap-group h2 { margin-top: 0; }
.sitemap-group ul { padding-left: 1.2rem; }
.post-meta { color: var(--muted); font-size: .85rem; }
.error-page { max-width: 700px; min-height: 55vh; margin: auto; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.legal-content { font-size: 1rem; }

.newsletter-cta { width: min(calc(100% - 2rem), var(--container)); margin: 4rem auto -2rem; padding: clamp(1.7rem, 4vw, 3rem); display: flex; justify-content: space-between; align-items: center; gap: 2rem; color: #fff; background: linear-gradient(135deg, var(--green), var(--green-dark)); border-radius: calc(var(--radius) * 1.2); box-shadow: var(--shadow); }
.newsletter-cta h2 { max-width: 18ch; margin: .25rem 0 0; color: #fff; }
.newsletter-cta .eyebrow { color: #f7c4ae; }
.newsletter-button { min-width: min(100%, 260px); padding: 1rem 1.6rem; font-size: 1.05rem; cursor: pointer; }
.modal-open { overflow: hidden; }
.newsletter-modal { position: fixed; z-index: 1000; inset: 0; padding: 1rem; display: grid; place-items: center; background: rgba(9, 24, 19, .72); backdrop-filter: blur(5px); }
.newsletter-modal[hidden] { display: none; }
.newsletter-dialog { position: relative; width: min(100%, 680px); max-height: calc(100vh - 2rem); overflow: auto; padding: clamp(1rem, 3vw, 2rem); background: var(--paper); border-radius: calc(var(--radius) * 1.2); box-shadow: 0 28px 80px rgba(0, 0, 0, .35); }
.newsletter-dialog-heading { padding: .5rem 3.5rem .6rem .5rem; }
.newsletter-dialog-heading h2 { margin: .2rem 0; font-size: clamp(1.8rem, 5vw, 2.7rem); overflow-wrap: break-word; hyphens: auto; }
.newsletter-close { position: absolute; z-index: 2; top: 1rem; right: 1rem; width: 2.75rem; height: 2.75rem; display: grid; place-items: center; color: var(--green-dark); background: #fff; border: 1px solid var(--line); border-radius: 50%; font-size: 1.8rem; line-height: 1; cursor: pointer; }
.newsletter-close:hover, .newsletter-close:focus-visible { color: #fff; background: var(--green); outline: none; }
.newsletter-form { padding: clamp(1rem, 3vw, 1.5rem); background: #f1f5f3; border: 1px solid var(--line); border-radius: var(--radius); }
.newsletter-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.newsletter-form label { min-width: 0; display: grid; gap: .4rem; color: var(--green-dark); font-weight: 700; }
.newsletter-form input, .newsletter-form select { width: 100%; min-width: 0; padding: .82rem .9rem; color: var(--ink); background: #fff; border: 1px solid #b9c6bf; border-radius: .65rem; }
.newsletter-form input:focus, .newsletter-form select:focus { outline: 3px solid rgba(189,103,76,.2); border-color: var(--terracotta); }
.newsletter-submit { width: 100%; margin-top: 1.15rem; cursor: pointer; }
.newsletter-consent { margin: .85rem 0 0; color: var(--muted); font-size: .8rem; }
.newsletter-fallback { margin: .8rem .5rem 0; color: var(--muted); font-size: .82rem; }

.site-footer { margin-top: 4rem; color: #d9e5de; background: var(--green-dark); }
.footer-inner { width: min(calc(100% - 2rem), var(--container)); margin: auto; padding: 4rem 0; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2rem; }
.footer-inner h2 { margin-top: 0; color: #fff; font-size: 1.2rem; font-family: inherit; }
.footer-inner a { color: #fff; }
.footer-brand { display: flex; gap: 1rem; align-items: center; }
.footer-brand strong { color: #fff; font-family: Georgia, serif; font-size: 2rem; }
.footer-bottom { width: min(calc(100% - 2rem), var(--container)); margin: auto; padding: 1rem 0 2rem; display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid rgba(255,255,255,.15); color: #aebeb6; font-size: .8rem; }
.agency-credit { text-align: right; }
.agency-credit .heart { color: #fff; display: inline-block; margin: 0 .15em; }
.agency-credit a { color: #fff; font-weight: 700; }

@media (max-width: 1120px) {
  .header-actions .button { display: none; }
  .page-hero.has-image { grid-template-columns: 1fr .6fr; }
}

@media (max-width: 780px) {
  .container { width: min(calc(100% - 1.2rem), var(--container)); }
  .header-inner { width: calc(100% - 1rem); min-height: 72px; gap: .6rem; }
  .brand-mark { width: 48px; height: 48px; border-radius: .75rem; }
  .brand small { display: none; }
  .primary-nav { inset: 72px .5rem auto; }
  .language-switcher a { padding: .2rem .35rem; }
  .page-hero, .page-hero.has-image { grid-template-columns: 1fr; min-height: auto; }
  .page-hero.has-image .hero-copy { min-height: 260px; }
  .page-hero h1 { font-size: clamp(2.1rem, 11vw, 3.6rem); overflow-wrap: break-word; hyphens: auto; word-break: normal; }
  .hero-media { min-height: 260px; }
  .home-hero { min-height: auto; grid-template-columns: 1fr; }
  .home-copy { padding: 2.2rem 1.4rem; }
  .home-media { min-height: 330px; order: -1; }
  .language-cards, .card-grid, .sitemap { grid-template-columns: 1fr; }
  .language-card { min-height: 210px; }
  .course-layout { grid-template-columns: 1fr; }
  .course-facts { position: static; order: -1; margin-bottom: 0; }
  .form-grid { grid-template-columns: 1fr; }
  .form-wide { grid-column: auto; }
  .contact-band { align-items: flex-start; flex-direction: column; }
  .newsletter-cta { margin-top: 2.5rem; padding: 1.5rem; align-items: flex-start; flex-direction: column; }
  .newsletter-button { width: 100%; }
  .newsletter-dialog { padding: .75rem; }
  .newsletter-dialog-heading { padding: .5rem 3.2rem .7rem .25rem; }
  .newsletter-form { padding: 1rem; }
  .newsletter-form-grid { grid-template-columns: 1fr; }
  .newsletter-form .form-wide { grid-column: auto; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: no-preference) {
  .button, .language-card, .content-card, .card-image img { transition: .22s ease; }
}

@media print {
  .site-header, .site-footer, .inquiry, .contact-band, .breadcrumbs { display: none; }
  body { background: #fff; }
  .container { width: 100%; }
}
