/* ---------- Design tokens: clean, editorial, DAAD-inspired ---------- */
:root {
  --ink: #1a1a1a;
  --text: #4a4a4a;
  --muted: #767676;
  --accent: #ffcc00;
  --accent-ink: #1a1a1a;
  --surface: #f7f7f5;
  --line: #e2e2e0;
  --white: #ffffff;
  --footer-bg: #1a1a1a;
  --footer-text: #b8b8b8;
  --sans: 'Inter', Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: 0; background: none; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 48px; }

/* ---------- Header (Now Dark) ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--footer-bg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.site-header .container {
  height: 100px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.site-header .logo-img {
  width: 220px;
  height: auto;
  max-height: 90px;
  object-fit: contain;
  display: block;
}
.main-nav { display: flex; gap: 36px; align-items: center; }
.main-nav a { font-size: 15px; font-weight: 500; color: var(--footer-text); }
.main-nav a:hover { color: var(--white); }
.header-actions { display: flex; gap: 16px; align-items: center; }
.btn-small {
  background: var(--white); color: var(--ink);
  padding: 10px 22px; border-radius: 4px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.2px;
}
.btn-small:hover { background: #e2e2e0; }

/* ---------- Hero (Now Dark) ---------- */
.hero { background: var(--footer-bg); padding: 180px 68px 88px; overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 40px; align-items: center;
  width: 100%; max-width: 100%;
}
.hero-content { grid-column: 1 / span 7; min-width: 0; }
.eyebrow {
  display: inline-block;
  font-size: 13px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase;
  color: var(--white);
  border-bottom: 3px solid var(--accent);
  padding-bottom: 6px;
  margin-bottom: 24px;
  max-width: 100%; word-break: break-word;
}
.hero h1 {
  font-weight: 800; font-size: 48px; line-height: 1.12;
  letter-spacing: -0.8px; color: var(--white); margin-bottom: 20px;
  max-width: 620px; overflow-wrap: break-word; word-break: break-word;
}
.hero-lead {
  font-size: 18px; line-height: 1.6; color: var(--footer-text);
  max-width: 560px; margin-bottom: 36px; overflow-wrap: break-word;
}
.action-buttons { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 44px; }
.btn-primary, .btn-secondary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 15px 26px; border-radius: 4px;
  font-size: 14px; font-weight: 700; letter-spacing: 0.2px;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #e6b800; }
.btn-secondary { background: transparent; color: var(--white); border: 1.5px solid var(--white); }
.btn-secondary:hover { background: var(--white); color: var(--ink); }

.highlights {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 28px; display: flex; gap: 32px;
}
.highlight { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.highlight-num {
  font-size: 13px; font-weight: 800; color: #666; letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.highlight h3 {
  font-weight: 700; font-size: 16px; line-height: 1.4; color: var(--white);
}
.highlight p { font-size: 14px; line-height: 1.5; color: var(--footer-text); }

.hero-photo {
  grid-column: 8 / span 5;
  height: 520px; border-radius: 4px; overflow: hidden; position: relative;
  background: var(--surface);
}
.hero-photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.hero-photo::after {
  content: ""; position: absolute; inset: 0;
  box-shadow: inset 0 -80px 80px -40px rgba(0,0,0,0.25);
  pointer-events: none;
}

/* ---------- Master's Guidance ---------- */
.guidance {
  background: var(--white);
  padding: 96px 20px;
  border-bottom: 1px solid var(--line);
}
.guidance .container {
  display: flex;
  flex-direction: column;
  gap: 64px;
  max-width: 760px;
}

.guidance-head {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.guidance-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 5px;
  align-self: flex-start;
}
.guidance-head h2 {
  font-weight: 800;
  font-size: 36px;
  line-height: 1.15;
  letter-spacing: -0.5px;
  color: var(--ink);
  max-width: 640px;
}
.guidance-lead {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  max-width: 640px;
}

.roadmap { display: flex; flex-direction: column; gap: 8px; }
.roadmap-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
}

.roadmap-list { display: flex; flex-direction: column; }
.roadmap-item { display: flex; gap: 24px; align-items: flex-start; }
.roadmap-track {
  flex-shrink: 0;
  width: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 4px;
}
.roadmap-dot {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.roadmap-line {
  flex: 1;
  width: 2px;
  background: var(--line);
  margin: 8px 0;
  min-height: 32px;
}
.roadmap-item:last-child .roadmap-line { display: none; }

.roadmap-body {
  flex: 1;
  min-width: 0;
  padding-bottom: 36px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 10px;
}
.roadmap-item:last-child .roadmap-body { padding-bottom: 0; }
.roadmap-body h3 {
  font-weight: 700;
  font-size: 18px;
  line-height: 1.3;
  color: var(--ink);
}
.roadmap-body p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
}

@media (max-width: 900px) {
  .guidance { padding: 64px 20px; }
  .guidance-head h2 { font-size: 28px; }
  .guidance-lead { font-size: 16px; }
}
@media (max-width: 600px) {
  .guidance { padding: 52px 20px; }
  .guidance .container { gap: 40px; }
  .guidance-head h2 { font-size: 22px; letter-spacing: -0.2px; }
  .guidance-lead { font-size: 15px; }
  .roadmap-item { gap: 16px; }
  .roadmap-dot { width: 36px; height: 36px; font-size: 12px; }
  .roadmap-track { width: 36px; }
  .roadmap-body h3 { font-size: 16px; }
  .roadmap-body p { font-size: 14px; }
}

/* ---------- Course structure strip ---------- */
.course-strip { background: var(--surface); padding: 80px 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.course-strip .container { display: flex; flex-direction: column; gap: 40px; max-width: 760px; }
.strip-head { text-align: center; }
.strip-head .tag {
  font-size: 13px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase;
  color: var(--muted); margin-bottom: 10px;
}
.strip-head h2 {
  font-weight: 800; font-size: 28px; letter-spacing: -0.3px; color: var(--ink);
}

.cefr-list { display: flex; flex-direction: column; }
.cefr-item { display: flex; gap: 20px; align-items: flex-start; }
.cefr-track { flex-shrink: 0; width: 44px; display: flex; flex-direction: column; align-items: center; padding-top: 7px; }
.cefr-dot {
  width: 40px; height: 40px; border-radius: 50%; background: var(--ink);
  color: var(--white); font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.cefr-line { flex: 1; width: 2px; background: var(--line); margin: 6px 0; }
.cefr-item:last-child .cefr-line { display: none; }
.cefr-body { flex: 1; min-width: 0; padding-bottom: 28px; }
.cefr-item:last-child .cefr-body { padding-bottom: 0; }
.cefr-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  text-align: left; padding: 7px 0;
  cursor: pointer;
}
.cefr-trigger-text { display: flex; flex-direction: column; gap: 2px; }
.cefr-level { font-weight: 800; font-size: 19px; color: var(--ink); overflow-wrap: break-word; }
.cefr-name { font-size: 13px; font-weight: 500; color: var(--muted); }
.cefr-chevron { flex-shrink: 0; transition: transform 0.2s ease; }
.cefr-item.open .cefr-chevron { transform: rotate(180deg); }
.cefr-item.open .cefr-dot { background: var(--accent); color: var(--accent-ink); }

.cefr-panel {
  display: none;
  margin-top: 14px; padding: 24px;
  background: var(--white); border: 1px solid var(--line); border-radius: 4px;
}
.cefr-item.open .cefr-panel { display: block; }
.cefr-objective { font-size: 14px; line-height: 1.6; color: var(--text); margin-bottom: 18px; }
.cefr-objective strong { color: var(--ink); font-weight: 700; }
.cefr-subhead {
  font-size: 11px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase;
  color: var(--muted); margin-bottom: 10px;
}
.cefr-topics { list-style: none; margin-bottom: 18px; }
.cefr-topics li {
  font-size: 14px; line-height: 1.5; color: var(--text);
  padding: 6px 0 6px 18px; position: relative;
  border-bottom: 1px solid var(--surface);
}
.cefr-topics li:last-child { border-bottom: none; }
.cefr-topics li::before {
  content: ""; position: absolute; left: 0; top: 14px;
  width: 6px; height: 6px; background: var(--accent); border-radius: 50%;
}
.cefr-outcome {
  font-size: 14px; line-height: 1.6; color: var(--ink);
  background: var(--surface); border-radius: 4px; padding: 14px 16px;
}
.cefr-outcome strong { font-weight: 700; }
@media (max-width: 600px) {
  .cefr-item { gap: 14px; }
  .cefr-track { width: 36px; }
  .cefr-dot { width: 32px; height: 32px; font-size: 12px; }
  .cefr-panel { padding: 18px; }
}

/* ---------- Enquiry form ---------- */
.enquiry { background: var(--white); padding: 96px 20px; }
.enquiry .container { display: flex; flex-direction: column; align-items: center; gap: 44px; }
.enquiry-head { max-width: 560px; text-align: center; display: flex; flex-direction: column; gap: 12px; }
.enquiry-head h2 {
  font-weight: 800; font-size: 32px; letter-spacing: -0.4px; color: var(--ink);
}
.enquiry-head p { font-size: 16px; line-height: 1.6; color: var(--muted); }
.form-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 40px;
  width: 560px; max-width: 100%;
}
.form { display: flex; flex-direction: column; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 13px; font-weight: 700; letter-spacing: 0.2px; color: var(--ink);
}
.field label .opt { font-weight: 400; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; background: var(--white); border: 1px solid #ccc; border-radius: 4px;
  padding: 13px 14px; font: inherit; font-size: 15px; color: var(--ink);
  outline: none;
}
.input, .select { height: 46px; }
textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
.input::placeholder, .textarea::placeholder { color: #9b9b9b; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(26,26,26,0.08); }
.phone-row { display: flex; gap: 8px; }
.phone-row .select { width: 104px; flex-shrink: 0; padding-right: 8px; }
.phone-row .input { flex: 1; min-width: 0; }
.submit-btn {
  width: 100%; height: 48px; margin-top: 8px; border-radius: 4px;
  background: var(--accent); color: var(--accent-ink); font-size: 14px; font-weight: 700;
  letter-spacing: 0.2px;
}
.submit-btn:hover { background: #e6b800; }
.submit-btn:disabled { opacity: 0.6; cursor: wait; }
.form-status { font-size: 14px; line-height: 1.5; min-height: 0; }
.form-status.success { color: #0f7a3d; }
.form-status.error { color: #c22b2b; }
.privacy-note { text-align: center; font-size: 13px; line-height: 1.5; color: var(--muted); padding-top: 4px; }

/* ---------- FAQ ---------- */
.faq { background: var(--white); padding: 88px 240px; }
.faq-inner { max-width: 800px; margin: 0 auto; padding: 0 48px; display: flex; flex-direction: column; gap: 44px; }
.faq h2 {
  font-weight: 800; font-size: 32px; letter-spacing: -0.4px;
  color: var(--ink); text-align: center;
}
.faq-group { display: flex; flex-direction: column; gap: 4px; padding-top: 8px; }
.faq-group-title {
  font-size: 13px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; color: var(--muted);
  margin-bottom: 12px;
}
.faq-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.accordion { border-bottom: 1px solid var(--line); }
.accordion-btn {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  text-align: left; padding: 20px 0;
}
.accordion-btn span {
  font-weight: 600; font-size: 16px; line-height: 1.4; color: var(--ink);
}
.chevron { flex-shrink: 0; transition: transform 0.2s ease; }
.accordion.open .chevron { transform: rotate(180deg); }
.accordion-body { display: none; padding: 0 0 20px; font-size: 15px; line-height: 1.65; color: var(--text); }
.accordion.open .accordion-body { display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer-bg); color: var(--footer-text); padding: 0 20px; }
.site-footer .container { padding-top: 56px; padding-bottom: 36px; }
.footer-grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  padding-bottom: 36px;
}
.footer-brand { grid-column: 1 / span 5; }
.footer-brand .logo { margin-bottom: 14px; }
.footer-brand .logo-img {
  width: 200px;
  opacity: 0.92;
}
.footer-brand p { font-size: 15px; line-height: 1.6; color: var(--footer-text); max-width: 360px; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col.nav { grid-column: 6 / span 3; }
.footer-col.contact { grid-column: 9 / span 4; }
.footer-col h4 {
  font-size: 12px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; color: var(--white);
  margin-bottom: 4px;
}
.footer-col a, .footer-col p { font-size: 15px; line-height: 1.7; color: var(--footer-text); }
.footer-col a:hover { color: var(--white); }
.footer-col a.underline { text-decoration: underline; }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  padding-top: 20px; font-size: 13px; color: var(--footer-text);
}
.footer-bottom nav { display: flex; gap: 4px; }

/* ---------- Hamburger / Mobile nav ---------- */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px; height: 44px;
  border-radius: 4px;
  background: none;
  cursor: pointer;
  border: none;
  padding: 0;
}
.burger-bar {
  display: block;
  width: 22px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
/* X state */
.nav-open .nav-toggle .burger-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle .burger-bar:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle .burger-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Overlay */
.mobile-nav-overlay {
  position: fixed; inset: 0; z-index: 149;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.mobile-nav-overlay.active { opacity: 1; pointer-events: auto; }

/* Drawer */
.mobile-nav {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 150;
  width: min(320px, 85vw);
  background: var(--footer-bg);
  padding: 24px 28px 40px;
  display: flex; flex-direction: column; gap: 4px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}
.mobile-nav.active { transform: translateX(0); }

.mobile-nav-close {
  align-self: flex-end;
  font-size: 20px; color: var(--footer-text);
  background: none; border: none; cursor: pointer;
  padding: 8px; margin-bottom: 20px; line-height: 1;
  min-width: 44px; min-height: 44px;
  display: flex; align-items: center; justify-content: flex-end;
}
.mobile-nav-close:hover { color: var(--white); }

.mobile-nav-link {
  font-size: 17px; font-weight: 500; color: var(--footer-text);
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  min-height: 48px; display: flex; align-items: center;
}
.mobile-nav-link:hover { color: var(--white); }

.mobile-nav-cta {
  margin-top: 24px;
  background: var(--accent); color: var(--accent-ink);
  font-size: 15px; font-weight: 700;
  padding: 15px 20px; border-radius: 4px; text-align: center;
  min-height: 48px; display: flex; align-items: center; justify-content: center;
}
.mobile-nav-cta:hover { background: #e6b800; }

/* Prevent body scroll when drawer is open */
body.nav-open { overflow: hidden; }

/* ---------- Responsive ---------- */
/* Prevent horizontal overflow globally */
html, body { overflow-x: hidden; }

/* All top-level sections clip their own overflow */
.site-header, .hero, .guidance, .course-strip, .enquiry, .faq, .site-footer {
  max-width: 100vw;
  overflow: hidden;
}

@media (max-width: 1100px) {
  .container { padding: 0 32px; }
  .faq { padding: 88px 32px; }
  .faq-inner { padding: 0; }
  .main-nav { gap: 24px; }
}

@media (max-width: 900px) {
  /* Show hamburger, hide desktop nav and "Book" button in header */
  .main-nav { display: none; }
  .header-actions .btn-small { display: none; }
  .nav-toggle { display: flex; }

  .hero { padding: 110px 20px 48px; }
  .hero-grid { gap: 20px; }
  .hero-content, .hero-photo { grid-column: 1 / -1; }
  .hero h1 { font-size: 32px; max-width: 100%; }
  .hero-lead { max-width: 100%; font-size: 17px; }
  .hero-photo { height: auto; aspect-ratio: 4 / 3; margin-top: 24px; }
  .highlights { flex-direction: column; gap: 20px; }
  .footer-brand, .footer-col.nav, .footer-col.contact { grid-column: 1 / -1; }

  /* Larger tap targets for accordion & CEFR */
  .accordion-btn { min-height: 52px; padding: 14px 0; }
  /* Keep trigger height close to dot (40px) so text center ≈ dot center */
  .cefr-trigger { min-height: 44px; padding: 7px 0; }
}

@media (max-width: 600px) {
  .container { padding: 0 20px; }
  .site-header .container { height: 72px; }
  .site-header .logo-img { width: 140px; max-height: 58px; }

  .hero { padding: 96px 16px 40px; }
  .hero-grid { gap: 16px; }
  .hero h1 { font-size: 24px; letter-spacing: -0.3px; line-height: 1.2; }
  .hero-lead { font-size: 15px; margin-bottom: 28px; }
  .action-buttons { flex-direction: column; gap: 10px; margin-bottom: 32px; }
  .btn-primary, .btn-secondary { width: 100%; min-height: 50px; justify-content: center; padding: 14px 20px; }

  .hero-photo { aspect-ratio: 4 / 3; margin-top: 20px; }

  .course-strip { padding: 44px 0; }
  .cefr-level { font-size: 16px; }
  .cefr-panel { padding: 16px; }

  .enquiry { padding: 52px 20px; }
  .enquiry-head h2 { font-size: 22px; }
  .form-card { padding: 20px 16px; border-radius: 0; border-left: none; border-right: none; }

  .faq { padding: 44px 20px; }
  .faq-inner { padding: 0; }
  .faq h2 { font-size: 22px; }
  .accordion-btn span { font-size: 15px; }

  .phone-row { flex-direction: column; }
  .phone-row .select { width: 100%; }

  /* Footer tightening */
  .site-footer .container { padding-top: 40px; padding-bottom: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
}