/* =========================================================
   MERIDIAN — Study Abroad Platform
   Design tokens
   ========================================================= */
:root {
  --ink: #16213e;
  --ink-soft: #1f2d52;
  --parchment: #f7f3ea;
  --parchment-dim: #efe8d8;
  --teal: #2f8f86;
  --teal-deep: #226b64;
  --gold: #d4a24c;
  --slate: #3a3f4b;
  --slate-soft: #6b7280;
  --white: #ffffff;
  --line: rgba(22, 33, 62, 0.12);
  --line-on-ink: rgba(247, 243, 234, 0.16);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --max-w: 1180px;
  --radius: 4px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--slate);
  background: var(--parchment);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.05; font-weight: 500; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); line-height: 1.15; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(212,162,76,0.18);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 26px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--gold); color: var(--ink); }
.btn-primary:hover { background: #e3b264; }
.btn-ghost { background: transparent; color: var(--parchment); border-color: var(--line-on-ink); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--parchment); }

/* ---------- Header ---------- */
.site-header {
  background: var(--ink);
  color: var(--parchment);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line-on-ink);
}
.notice-bar {
  background: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: rgba(247,243,234,0.75);
  letter-spacing: 0.02em;
}
.notice-bar .wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 24px;
}
.notice-bar svg { flex-shrink: 0; }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--parchment);
}
.brand .mark {
  width: 30px; height: 30px;
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0; padding: 0;
  font-size: 0.92rem;
  font-weight: 500;
}
.nav-links a {
  color: rgba(247,243,234,0.8);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--parchment);
  border-color: var(--gold);
}
.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-toggle {
  display: none;
  background: none; border: none; color: var(--parchment);
  font-size: 1.5rem; cursor: pointer;
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--ink);
    padding: 20px 24px 28px;
    gap: 18px;
    border-bottom: 1px solid var(--line-on-ink);
  }
}

/* ---------- Route / waypoint motif (signature element) ---------- */
.route-divider {
  width: 100%;
  height: 28px;
  display: block;
}
.route-divider line { stroke: var(--line); stroke-width: 1.5; stroke-dasharray: 1 8; stroke-linecap: round; }
.route-divider circle { fill: var(--gold); }

/* ---------- Hero ---------- */
.hero {
  background: var(--ink);
  color: var(--parchment);
  position: relative;
  overflow: hidden;
  padding: 80px 0 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  padding-bottom: 70px;
}
.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
  display: block;
}
.hero h1 { color: var(--parchment); }
.hero h1 em { color: var(--teal); font-style: normal; }
.hero p.lede {
  font-size: 1.1rem;
  color: rgba(247,243,234,0.78);
  max-width: 46ch;
  margin: 18px 0 32px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.route-illustration { position: relative; }
.route-illustration svg { width: 100%; height: auto; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .route-illustration { order: -1; max-width: 320px; margin: 0 auto; }
}

/* ---------- Sections ---------- */
section { padding: 90px 0; }
.section-head { max-width: 620px; margin-bottom: 50px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.bg-ink { background: var(--ink); color: var(--parchment); }
.bg-ink h2, .bg-ink h3 { color: var(--parchment); }
.bg-dim { background: var(--parchment-dim); }

/* ---------- Benefit cards ---------- */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover { border-color: var(--teal); transform: translateY(-3px); }
.card .icon {
  width: 42px; height: 42px;
  margin-bottom: 18px;
  color: var(--teal-deep);
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--slate-soft); margin-bottom: 0; font-size: 0.96rem; }

/* ---------- Audience strip ---------- */
.audience-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-on-ink); border: 1px solid var(--line-on-ink); }
@media (max-width: 760px) { .audience-grid { grid-template-columns: 1fr; } }
.audience-cell { background: var(--ink); padding: 36px 30px; }
.audience-cell .num { font-family: var(--font-mono); color: var(--gold); font-size: 0.8rem; letter-spacing: 0.1em; }
.audience-cell h3 { margin-top: 14px; }
.audience-cell p { color: rgba(247,243,234,0.7); margin-bottom: 0; }

/* ---------- Timeline ---------- */
.timeline { position: relative; padding-left: 28px; border-left: 1.5px dashed var(--line); }
.t-item { position: relative; padding-bottom: 34px; }
.t-item:last-child { padding-bottom: 0; }
.t-item::before {
  content: "";
  position: absolute; left: -33.5px; top: 4px;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--gold); border: 2px solid var(--parchment);
  box-shadow: 0 0 0 1.5px var(--gold);
}
.t-date { font-family: var(--font-mono); font-size: 0.78rem; color: var(--teal-deep); letter-spacing: 0.04em; }
.t-item h3 { margin: 4px 0 2px; font-size: 1.05rem; }

/* ---------- Programs / institution cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-3 { grid-template-columns: 1fr; } }

.program-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.program-card .tag-bar { height: 5px; background: var(--teal); }
.program-card .body { padding: 26px; }
.program-card h3 { margin-bottom: 6px; }
.program-card p { color: var(--slate-soft); font-size: 0.94rem; }
.program-card .meta { display: flex; gap: 14px; font-family: var(--font-mono); font-size: 0.74rem; color: var(--slate-soft); margin-top: 14px; }

/* ---------- FAQ accordion ---------- */
.accordion { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-trigger {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 22px 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  cursor: pointer;
  gap: 20px;
}
.acc-trigger .plus { font-family: var(--font-mono); color: var(--teal-deep); font-size: 1.1rem; transition: transform 0.2s; flex-shrink: 0; }
.acc-item.open .plus { transform: rotate(45deg); }
.acc-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.acc-panel-inner { padding: 0 4px 22px; color: var(--slate-soft); }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 20px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea {
  font-family: var(--font-body);
  font-size: 0.96rem;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--slate);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--teal);
}
.field textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: 0.85rem; color: var(--slate-soft); margin-top: 6px; }

/* ---------- Contact info cards ---------- */
.contact-info { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 60px; }
@media (max-width: 760px) { .contact-info { grid-template-columns: 1fr; } }
.contact-info .card h3 { font-size: 1.05rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(247,243,234,0.7); padding: 70px 0 30px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid var(--line-on-ink);
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h4 { color: var(--parchment); font-family: var(--font-body); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 18px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; font-size: 0.92rem; }
.footer-grid ul a:hover { color: var(--gold); }
.footer-brand p { max-width: 32ch; font-size: 0.92rem; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 26px; font-size: 0.82rem; flex-wrap: wrap; gap: 12px;
}
.social-row { display: flex; gap: 16px; }
.social-row a { width: 34px; height: 34px; border: 1px solid var(--line-on-ink); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: border-color 0.15s, color 0.15s; }
.social-row a:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: var(--ink); color: var(--parchment);
  padding: 64px 0 56px;
}
.page-hero p { color: rgba(247,243,234,0.75); max-width: 56ch; }

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
