:root {
  --green-950: #062f25;
  --green-900: #0b4f3b;
  --green-800: #126448;
  --green-700: #1e7554;
  --green-500: #4f8d69;
  --green-300: #b9d9c5;
  --green-180: #dcecdf;
  --green-150: #e1efe5;
  --green-100: #edf6ef;
  --ink: #0b2722;
  --text: #3f514d;
  --line: #dce6df;
  --white: #ffffff;
  --shadow: 0 14px 40px rgba(7, 57, 43, .10);
  --radius: 18px;
  --shell: 1220px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.5;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
svg { display: block; width: 100%; height: 100%; }
button, input, textarea, select { font: inherit; }

.shell { width: min(calc(100% - 40px), var(--shell)); margin-inline: auto; }
.section { padding: 82px 0; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; z-index: 999; background: white; padding: 10px 14px; border-radius: 8px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(12,79,59,.08);
}
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { text-decoration: none; font-size: clamp(1.25rem, 2vw, 1.7rem); font-weight: 800; letter-spacing: -.03em; }
.main-nav { display: flex; align-items: center; gap: 34px; }
.main-nav a { text-decoration: none; font-weight: 650; color: #183e34; position: relative; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -8px; height: 2px; background: var(--green-700); transition: right .2s ease; }
.main-nav a:hover::after, .main-nav a:focus-visible::after { right: 0; }
.menu-toggle { display: none; width: 44px; height: 44px; background: transparent; border: 0; padding: 10px; }
.menu-toggle span { display: block; height: 2px; background: var(--ink); margin: 6px 0; }
.under-opbygning { color: #6f7f74;
}
.eyebrow { margin: 0 0 12px; color: var(--green-700); text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 800; }
.eyebrow.light { color: #d6eadc; }
h1, h2, h3 { margin: 0; line-height: 1.05; }
h1 { font-size: clamp(2.8rem, 5vw, 5rem); letter-spacing: -.055em; max-width: 560px; }
h2 { font-size: clamp(2rem, 3.4vw, 3.25rem); letter-spacing: -.04em; }
h3 { font-size: 1.2rem; letter-spacing: -.02em; }
.lead { margin: 24px 0 0; font-size: clamp(1.04rem, 1.55vw, 1.35rem); color: var(--text); max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 0 24px; border-radius: 9px; text-decoration: none; font-weight: 800; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--green-900); color: white; box-shadow: 0 8px 24px rgba(11,79,59,.18); }
.button-primary:hover { background: var(--green-800); }
.button-outline { border: 1px solid var(--green-900); color: var(--green-900); background: rgba(255,255,255,.4); }
.button-light { background: white; color: var(--green-950); }
.hero-points { display: flex; gap: 18px; margin-top: 34px; color: #315048; }
.hero-point { display: flex; align-items: center; gap: 10px; max-width: 180px; font-size: .88rem; line-height: 1.25; }
.icon-chip { flex: 0 0 36px; width: 36px; height: 36px; color: var(--green-700); display: grid; place-items: center; }
.icon-chip svg { width: 30px; height: 30px; }

/* Hero composition based on the approved mockup.
   Important: the text panel itself is NOT clipped. The diagonal is drawn over
   the image area, so the headline and buttons keep their full usable width. */
.hero {
  background: #fff;
  overflow: hidden;
  padding: 0;
}
.hero .shell { width: min(100%, 1440px); }
.hero-grid {
  min-height: 590px;
  display: grid;
  grid-template-columns: 42% 58%;
  position: relative;
  align-items: stretch;
}
.hero-copy {
  background: linear-gradient(100deg, #f2f8f3 0%, #edf6ef 78%, #e6f2e8 100%);
  padding: 48px 72px 44px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 4;
  min-width: 0;
}
.hero-copy h1 { font-size: clamp(2.55rem, 4vw, 4.15rem); max-width: 540px; }
.hero-copy .lead { max-width: 515px; }
.hero-visual {
  min-width: 0;
  display: grid;
  grid-template-columns: 59% 41%;
  min-height: 590px;
  position: relative;
  z-index: 1;
  overflow: hidden;
}
/* Green triangular mask creates the first diagonal without clipping the copy. */
.hero-visual::before {
  content: "";
  position: absolute;
  z-index: 5;
  left: -1px;
  top: 0;
  width: 118px;
  height: 100%;
  background: linear-gradient(100deg, #edf6ef 0%, #e6f2e8 100%);
  clip-path: polygon(0 0, 100% 0, 0 100%);
  pointer-events: none;
}
.hero-photo { margin: 0; overflow: hidden; position: relative; background:#e9efeb; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo-classroom {
  z-index: 1;
}
.hero-photo-classroom img { object-position: 53% 42%; }
.hero-photo-bus {
  z-index: 3;
  margin-left: -108px;
  width: calc(100% + 108px);
  clip-path: polygon(24% 0, 100% 0, 100% 100%, 0 100%);
}
.hero-photo-bus::before {
  content: "";
  position: absolute;
  z-index: 2;
  left: 12%;
  top: -3%;
  width: 4px;
  height: 108%;
  background: rgba(255,255,255,.95);
  transform: rotate(6.5deg);
  transform-origin: top center;
  pointer-events: none;
}
.hero-photo-bus img { object-position: 58% center; }

.courses { background: white; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.text-link, .card-link { font-weight: 800; color: var(--green-900); text-decoration: none; }
.text-link { border-bottom: 1px solid currentColor; padding-bottom: 3px; }
.course-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.course-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: white; box-shadow: 0 1px 0 rgba(0,0,0,.02); transition: transform .2s ease, box-shadow .2s ease; }
.course-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.course-card > img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.course-card-body { padding: 22px; display: flex; flex-direction: column; min-height: 215px; }
.course-card-body p { color: var(--text); margin: 12px 0 22px; }
.course-card .card-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  background: var(--green-150);
  border: 1px solid #d6e7db;
  color: var(--green-950);
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.course-card .card-link::after { content: "→"; margin-left: 8px; }
.course-card .card-link:hover { background: #d5e7da; border-color: #c4d9ca; transform: translateY(-1px); }

.why { background: linear-gradient(135deg, var(--green-100), #f8fbf9 65%); }
.why-heading {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: 34px;
  align-items: end;
  margin-bottom: 30px;
}
.why-heading > p { margin: 0; color: var(--text); font-size: 1.08rem; max-width: 760px; }
.benefits { display: grid; gap: 18px; }
.benefits-three { grid-template-columns: repeat(3, 1fr); }
.benefit { display: grid; grid-template-columns: 68px 1fr; gap: 18px; align-items: start; padding: 22px; background: rgba(255,255,255,.72); border: 1px solid rgba(12,79,59,.08); border-radius: 16px; }
.benefit-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #dceee0;
  color: var(--green-800);
  padding: 13px;
}
.benefit-icon svg { width: 32px; height: 32px; }
.benefit p { margin: 7px 0 0; color: var(--text); }

.contact-band { background: var(--green-950); color: white; }
.contact-grid { display: grid; grid-template-columns: 1fr .9fr; gap: 70px; align-items: center; }
.contact-copy p:not(.eyebrow) { color: #d9e6e0; font-size: 1.08rem; }
.contact-copy .button { margin-top: 12px; }
.contact-card { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); border-radius: 18px; padding: 28px; }
.contact-card h3 { margin-bottom: 20px; }
dl { margin: 0; }
dl > div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 11px 0; border-top: 1px solid rgba(255,255,255,.12); }
dt { color: #b9d2c8; font-weight: 700; }
dd { margin: 0; }
dd a { color: white; }

.site-footer { background: #04251d; color: #c8d7d2; }
.footer-inner { min-height: 76px; display: flex; justify-content: space-between; align-items: center; gap: 24px; font-size: .95rem; }
.footer-inner a { color: white; }

.toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 20px); background: #0b2f26; color: white; padding: 12px 16px; border-radius: 10px; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: .2s ease; z-index: 100; max-width: min(520px, calc(100% - 32px)); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1180px) {
  .hero-copy { padding-right: 54px; }
  .hero-visual::before { width: 90px; }
  .hero-photo-bus { margin-left: -82px; width: calc(100% + 82px); }
}

@media (max-width: 980px) {
  .hero .shell { width: 100%; }
  .hero-grid { grid-template-columns: 1fr; min-height: unset; }
  .hero-copy {
    clip-path: none;
    border-radius: 0;
    padding: 58px 40px 34px;
  }
  .hero-visual {
    min-height: 500px;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
  }
  .hero-visual::before { display: none; }
  .hero-photo-classroom,
  .hero-photo-bus { clip-path: none; margin: 0; width: auto; }
  .hero-photo-bus::before { display: none; }
  .course-grid { grid-template-columns: repeat(2, 1fr); }
  .why-heading, .benefits-three, .contact-grid { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 700px) {
  .shell { width: min(calc(100% - 28px), var(--shell)); }
  .section { padding: 58px 0; }
  .header-inner { min-height: 64px; }
  .menu-toggle { display: block; }
  .main-nav { position: absolute; top: 64px; left: 0; right: 0; background: white; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 10px 14px 18px; border-bottom: 1px solid var(--line); box-shadow: 0 12px 30px rgba(0,0,0,.06); }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 13px 6px; }
  .main-nav a::after { display: none; }
  h1 { font-size: clamp(2.35rem, 11vw, 3.6rem); }
  .lead { font-size: 1.06rem; }
  .hero-copy { padding: 42px 22px 28px; }
  .hero-actions { flex-direction: column; }
  .button { width: 100%; }
  .hero-points { display: grid; grid-template-columns: 1fr; gap: 12px; }
  .hero-point { max-width: none; }
  .hero-visual { min-height: 400px; grid-template-columns: 1fr; }
  .hero-photo-classroom { min-height: 220px; }
  .hero-photo-bus { min-height: 180px; }
  .section-heading { align-items: flex-start; }
  .course-grid { grid-template-columns: 1fr; }
  .course-card { display: grid; grid-template-columns: 38% 62%; }
  .course-card > img { height: 100%; aspect-ratio: auto; }
  .course-card-body { min-height: 160px; padding: 18px; }
  .course-card-body p { margin: 9px 0 14px; }
  .benefit { grid-template-columns: 52px 1fr; padding: 18px; }
  .benefit-icon { width: 46px; height: 46px; padding: 10px; }
  dl > div { grid-template-columns: 1fr; gap: 3px; }
  .footer-inner { padding: 18px 0; flex-direction: column; align-items: flex-start; gap: 5px; }
}

@media (max-width: 440px) {
  .section-heading { flex-direction: column; }
  .course-card { grid-template-columns: 1fr; }
  .course-card > img { aspect-ratio: 16/8; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
