:root {
  --green: #8cb81c;
  --green-dark: #5f8a0f;
  --ink: #2f3a40;
  --text: #333a40;
  --muted: #5f676d;
  --line: #e3e7ea;
  --bg-soft: #f3f6ef;
  --orange: #f26722;
  --radius: 8px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: #fff;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-dark); }
h1, h2, h3 { color: var(--ink); line-height: 1.25; }
h1 { font-size: 1.9rem; margin: 0 0 .6em; }
h2 { font-size: 1.4rem; margin: 1.6em 0 .5em; }
h2 small { font-size: .95rem; font-weight: 500; color: var(--green-dark); margin-left: 6px; }
h3 { font-size: 1.1rem; margin: 1em 0 .3em; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* Top bar */
.topbar { background: var(--ink); color: #dde3e6; font-size: .9rem; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 12px; padding-top: 6px; padding-bottom: 6px; flex-wrap: wrap; }
.topbar a { color: #fff; font-weight: 600; text-decoration: none; margin-left: 16px; }

/* Header and menu */
.header { border-bottom: 3px solid var(--green); background: #fff; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.brand img { width: 240px; }
.menu ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px; }
.menu a { display: block; padding: 8px 10px; border-radius: var(--radius); color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; }
.menu a:hover { background: var(--bg-soft); }
.menu a[aria-current="page"] { background: var(--green); color: #fff; }
.menu-toggle { display: none; }

/* Main */
.main { padding-top: 24px; padding-bottom: 40px; }

/* Slider: banners with their own text and button, link to their page */
.slider { position: relative; aspect-ratio: 710 / 320; max-width: 900px; margin: 0 auto 28px; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); }
.slider a { position: absolute; inset: 0; opacity: 0; transition: opacity 1s; pointer-events: none; }
.slider a.active { opacity: 1; pointer-events: auto; }
.slider img { width: 100%; height: 100%; object-fit: cover; }

/* Buttons */
.btn { display: inline-block; background: var(--orange); color: #fff; border: 2px solid var(--orange); padding: 10px 20px; border-radius: var(--radius); font-weight: 600; text-decoration: none; font-size: 1rem; cursor: pointer; }
.btn:hover { background: #d9561a; border-color: #d9561a; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg-soft); border-color: var(--line); color: var(--ink); }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 1.4em; }

/* Text blocks */
.split { display: grid; grid-template-columns: minmax(0, 320px) 1fr; gap: 28px; align-items: start; margin: 8px 0 24px; }
.split-right { grid-template-columns: 1fr minmax(0, 420px); }
.split img { border-radius: var(--radius); }
.split h1, .split h2 { margin-top: 0; }
.highlight { font-size: 1.15rem; font-weight: 700; color: var(--green-dark); }
.checks { list-style: none; padding: 0; margin: .6em 0; }
.checks li { padding-left: 1.6em; position: relative; margin-bottom: .35em; }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }

/* Cards (home) */
.cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.cards a { display: block; height: 100%; background: var(--bg-soft); border-radius: var(--radius); overflow: hidden; color: inherit; text-decoration: none; }
.cards a:hover { box-shadow: 0 2px 10px rgba(0, 0, 0, .1); }
.cards img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.cards h3 { margin: 12px 14px 2px; }
.cards p { margin: 0 14px 14px; color: var(--muted); }

/* Courses and services */
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.toc a { padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink); font-size: .95rem; }
.toc a:hover { border-color: var(--green); }
.course { display: grid; grid-template-columns: 240px 1fr; gap: 24px; align-items: start; padding: 24px 0; border-top: 1px solid var(--line); scroll-margin-top: 12px; }
.course img { border-radius: var(--radius); width: 100%; object-fit: cover; }
.course h2 { margin-top: 0; }

/* Gallery */
.gallery { list-style: none; padding: 0; margin: 12px 0 24px; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.gallery a { display: block; border-radius: var(--radius); overflow: hidden; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .2s; }
.gallery a:hover img { transform: scale(1.04); }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 92vw; max-height: 92vh; }
.lightbox::backdrop { background: rgba(10, 15, 20, .85); }
.lightbox img { max-width: 92vw; max-height: 85vh; border-radius: var(--radius); background: #fff; }
.lightbox p { color: #fff; text-align: center; margin: 8px 0 0; }

/* How to get there */
.map { aspect-ratio: 16 / 9; max-height: 420px; width: 100%; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.map iframe { width: 100%; height: 100%; border: 0; }
.buses { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.buses li { display: flex; align-items: center; gap: 12px; padding: 8px; border: 1px solid var(--line); border-radius: var(--radius); }
.buses img { width: 110px; flex: none; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.4fr; gap: 32px; align-items: start; }
.contact dl { margin: 0; }
.contact dt { font-weight: 600; color: var(--ink); margin-top: 12px; }
.contact dd { margin: 0; }
.contact-form { background: var(--bg-soft); border-radius: var(--radius); padding: 20px; }
.contact-form h2 { margin-top: 0; }
.contact-form label { display: block; margin-bottom: 12px; font-weight: 500; }
.contact-form input, .contact-form textarea { display: block; width: 100%; margin-top: 4px; padding: 10px; font: inherit; border: 1px solid #c8d0c0; border-radius: 6px; background: #fff; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--green); outline-offset: 0; border-color: var(--green); }
.contact-form .hp { position: absolute; left: -9999px; }
.contact-form .g-recaptcha { margin: 4px 0 24px; }
.notice { padding: 10px 14px; border-radius: 6px; }
.notice.ok { background: #e6f4dc; color: #2f5a10; }
.notice.error { background: #fbe6e6; color: #8a1f1f; }

/* Footer */
.footer { background: var(--ink); color: #c9d1d5; padding: 28px 0 16px; font-size: .95rem; }
.footer a { color: #fff; }
.footer strong { color: #fff; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.copy { margin-top: 20px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .15); font-size: .85rem; }

/* Tablet: menu wraps under the logo */
@media (max-width: 980px) {
  .menu { width: 100%; }
}

/* Phone */
@media (max-width: 760px) {
  h1 { font-size: 1.6rem; }
  .topbar .wrap > span:first-child { display: none; }
  .topbar .wrap { justify-content: center; }
  .topbar a { margin: 0 8px; }
  .topbar a[href^="mailto"] { display: none; }
  .brand img { width: 190px; }
  .menu-toggle { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 14px; font: inherit; color: var(--ink); cursor: pointer; }
  .menu { display: none; }
  .menu.open { display: block; }
  .menu ul { flex-direction: column; }
  .split, .split-right, .contact, .course { grid-template-columns: 1fr; }
  .course img { max-height: 220px; }
  .split img { max-height: 200px; width: auto; }
  .cards { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cards h3 { margin: 8px 10px 0; font-size: 1rem; }
  .cards p { margin: 0 10px 10px; font-size: .9rem; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 8px; }
  .buses { grid-template-columns: 1fr; }
}
