/* Go Abroad public site (goabroad.works). Brand colours match the staff app (styles.css). */
:root {
  --navy: #2E3A87;
  --navy-deep: #0E2A5A;
  --ink: #0A1A3F;
  --green: #6BBE45;
  --green-dark: #4E9A2F;
  --green-soft: #EAF6E3;
  --bg: #F6F8FC;
  --card: #FFFFFF;
  --fg: #17213A;
  --muted: #5B6884;
  --line: #E2E8F2;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(14, 42, 90, .06), 0 12px 32px -12px rgba(14, 42, 90, .18);
  --head: "Montserrat", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); line-height: 1.1; margin: 0; color: var(--navy-deep); letter-spacing: -.02em; }
p { margin: 0; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 6px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 0; font: 700 15px/1 var(--head); text-decoration: none; cursor: pointer; transition: transform .15s ease, background .15s ease, box-shadow .15s ease; white-space: nowrap; }
.btn svg { width: 18px; height: 18px; transition: transform .15s ease; }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn-green { background: var(--green); color: var(--ink); box-shadow: 0 8px 20px -8px rgba(107, 190, 69, .7); }
.btn-green:hover { background: #7ccb57; }
.btn-ghost { background: rgba(255, 255, 255, .08); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .35); }
.btn-ghost:hover { background: rgba(255, 255, 255, .16); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-deep); }
.btn-line { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-line:hover { box-shadow: inset 0 0 0 1.5px var(--navy); }

/* Header */
.top { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .25s ease, box-shadow .25s ease; }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 72px; }
.top.solid { background: rgba(255, 255, 255, .92); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand svg { height: 34px; width: auto; }
.wm-abroad, .wm-bang { fill: #fff; transition: fill .25s ease; }
.top.solid .wm-abroad { fill: var(--navy); }
.top.solid .wm-bang { fill: var(--navy-deep); }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { padding: 10px 12px; border-radius: 10px; font: 600 14px/1 var(--head); color: rgba(255, 255, 255, .85); text-decoration: none; }
.nav a:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.top.solid .nav a { color: var(--muted); }
.top.solid .nav a:hover { color: var(--navy); background: var(--bg); }
.top-cta { display: flex; gap: 10px; align-items: center; }
.top .btn { min-height: 42px; padding: 0 18px; font-size: 14px; }
.portal-link { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .35); background: transparent; }
.top.solid .portal-link { color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--line); }
.portal-link svg { width: 16px; height: 16px; }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 12px; border: 0; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; }
.top.solid .menu-btn { background: var(--bg); color: var(--navy); }
.menu-btn svg { width: 22px; height: 22px; margin: auto; }

/* Hero */
.hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(1200px 600px at 85% -10%, #3b4ba8 0%, transparent 60%), radial-gradient(900px 500px at -10% 110%, #1d3f7a 0%, transparent 60%), linear-gradient(160deg, var(--navy-deep), var(--ink)); padding: 148px 0 96px; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px); background-size: 26px 26px; mask-image: linear-gradient(180deg, #000 30%, transparent 95%); }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.flight { position: absolute; inset: 0; pointer-events: none; }
.flight path { fill: none; stroke: rgba(107, 190, 69, .35); stroke-width: 1.5; stroke-dasharray: 2 9; stroke-linecap: round; }
.plane { position: absolute; top: 0; left: 0; width: 30px; height: 30px; color: var(--green); offset-path: path("M -40 520 C 260 380, 520 470, 760 260 S 1180 60, 1500 140"); offset-rotate: auto; animation: fly 16s linear infinite; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .35)); }
@keyframes fly { from { offset-distance: 0%; } to { offset-distance: 100%; } }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 8px; border-radius: 999px; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); font: 600 13px/1 var(--head); letter-spacing: .02em; }
.eyebrow b { background: var(--green); color: var(--ink); padding: 5px 9px; border-radius: 999px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.hero h1 { color: #fff; font-size: clamp(42px, 6.4vw, 76px); font-weight: 800; margin: 22px 0 18px; letter-spacing: -.035em; }
.hero h1 em { font-style: normal; color: var(--green); }
.hero .lede { font-size: clamp(17px, 1.6vw, 19px); color: rgba(255, 255, 255, .78); max-width: 34em; }
.dest { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 30px; }
.dest span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); font-size: 14px; font-weight: 500; }
.dest i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.trust { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 34px; color: rgba(255, 255, 255, .72); font-size: 14px; }
.trust span { display: inline-flex; align-items: center; gap: 8px; }
.trust svg { width: 18px; height: 18px; color: var(--green); }

.path-card { position: relative; padding: 28px; border-radius: 24px; background: linear-gradient(160deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .04)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16), 0 30px 60px -20px rgba(0, 0, 0, .5); backdrop-filter: blur(14px); }
.path-card h2 { color: #fff; font-size: 20px; margin-bottom: 4px; }
.path-card > p { color: rgba(255, 255, 255, .65); font-size: 14px; margin-bottom: 20px; }
.steps-mini { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.steps-mini li { display: grid; grid-template-columns: 36px 1fr auto; gap: 14px; align-items: center; padding: 12px; border-radius: 14px; }
.steps-mini li:first-child { background: rgba(107, 190, 69, .14); box-shadow: inset 0 0 0 1px rgba(107, 190, 69, .4); }
.steps-mini .n { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font: 800 14px var(--head); background: rgba(255, 255, 255, .1); }
.steps-mini li:first-child .n { background: var(--green); color: var(--ink); }
.steps-mini b { display: block; font: 700 15px/1.3 var(--head); }
.steps-mini small { color: rgba(255, 255, 255, .6); font-size: 13px; }
.steps-mini .tag { font: 700 11px var(--head); letter-spacing: .06em; text-transform: uppercase; padding: 5px 9px; border-radius: 999px; background: var(--green); color: var(--ink); }
.path-card .btn { width: 100%; margin-top: 18px; }

/* Ribbon */
.ribbon { background: var(--green); color: var(--ink); }
.ribbon .wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 22px 0; }
.ribbon p { font: 700 clamp(16px, 1.8vw, 20px)/1.3 var(--head); }
.ribbon .btn { background: var(--ink); color: #fff; }
.ribbon .btn:hover { background: var(--navy-deep); }

/* Sections */
section.block { padding: 96px 0; }
.kicker { font: 700 13px var(--head); letter-spacing: .14em; text-transform: uppercase; color: var(--green-dark); }
.sec-head { max-width: 640px; margin-bottom: 44px; }
.sec-head h2 { font-size: clamp(32px, 4vw, 46px); font-weight: 800; margin: 10px 0 14px; }
.sec-head p { color: var(--muted); font-size: 17px; }
.sec-head.center { text-align: center; margin-inline: auto; }

.programs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.program { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); border: 1px solid var(--line); text-align: left; font: inherit; color: inherit; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.program:hover { transform: translateY(-4px); border-color: rgba(107, 190, 69, .6); box-shadow: 0 2px 4px rgba(14, 42, 90, .06), 0 22px 40px -16px rgba(14, 42, 90, .28); }
.program .ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--green-soft); color: var(--green-dark); margin-bottom: 6px; }
.program .ic svg { width: 24px; height: 24px; }
.program h3 { font-size: 18px; font-weight: 700; }
.program p { color: var(--muted); font-size: 14.5px; flex: 1; }
.program .go { display: inline-flex; align-items: center; gap: 6px; font: 700 13.5px var(--head); color: var(--navy); margin-top: 6px; }
.program .go svg { width: 16px; height: 16px; transition: transform .15s ease; }
.program:hover .go svg { transform: translateX(4px); }

.why { background: var(--card); border-block: 1px solid var(--line); }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.why-item { padding: 32px 28px; border-right: 1px solid var(--line); }
.why-item:last-child { border-right: 0; }
.why-item .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--navy); color: #fff; margin-bottom: 18px; }
.why-item .ic svg { width: 22px; height: 22px; }
.why-item h3 { font-size: 19px; margin-bottom: 8px; }
.why-item p { color: var(--muted); font-size: 15px; }

.process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; position: relative; }
.process::before { content: ""; position: absolute; top: 27px; left: 12%; right: 12%; height: 2px; background: repeating-linear-gradient(90deg, var(--green) 0 8px, transparent 8px 16px); }
.process li { position: relative; text-align: center; padding: 0 8px; }
.process .n { position: relative; width: 56px; height: 56px; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center; background: var(--card); color: var(--navy); font: 800 20px var(--head); box-shadow: 0 0 0 6px var(--bg), inset 0 0 0 2px var(--navy); }
.process li:first-child .n { background: var(--green); color: var(--ink); box-shadow: 0 0 0 6px var(--bg); }
.process h3 { font-size: 18px; margin-bottom: 8px; }
.process p { color: var(--muted); font-size: 15px; }
.process .free { display: inline-block; margin-top: 10px; font: 700 11px var(--head); letter-spacing: .08em; text-transform: uppercase; color: var(--green-dark); background: var(--green-soft); padding: 5px 10px; border-radius: 999px; }
.center-cta { display: flex; justify-content: center; margin-top: 44px; }

.offices { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.office { position: relative; overflow: hidden; padding: 32px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.office .city { font: 800 13px var(--head); letter-spacing: .14em; text-transform: uppercase; color: var(--green-dark); }
.office h3 { font-size: 26px; margin: 8px 0 14px; }
.office address { font-style: normal; color: var(--muted); font-size: 16px; margin-bottom: 22px; display: flex; gap: 10px; }
.office address svg { flex: none; width: 20px; height: 20px; color: var(--navy); margin-top: 3px; }
.office .soon { color: var(--muted); font-style: italic; }
.office::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle, var(--green-soft), transparent 70%); }

/* Orientation form */
.contact { background: linear-gradient(160deg, var(--navy-deep), var(--ink)); color: #fff; }
.contact .wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.contact .kicker { color: var(--green); }
.contact h2 { color: #fff; font-size: clamp(32px, 4vw, 46px); font-weight: 800; margin: 10px 0 16px; }
.contact .intro > p { color: rgba(255, 255, 255, .75); font-size: 17px; }
.points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.points li { display: flex; gap: 12px; align-items: flex-start; color: rgba(255, 255, 255, .85); }
.points svg { flex: none; width: 22px; height: 22px; color: var(--green); }
.form-card { background: var(--card); color: var(--fg); border-radius: 24px; padding: 32px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .55); }
.form-card h3 { font-size: 22px; margin-bottom: 4px; }
.form-card > p { color: var(--muted); font-size: 14.5px; margin-bottom: 22px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font: 600 13.5px var(--head); color: var(--navy-deep); }
.field input, .field select { width: 100%; min-height: 48px; padding: 0 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg); font: 16px var(--body); color: var(--fg); transition: border-color .15s ease, background .15s ease; }
.field input:focus, .field select:focus { outline: none; border-color: var(--navy); background: #fff; }
.field input[aria-invalid="true"] { border-color: #c63e51; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--muted); margin-top: 4px; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--green-dark); flex: none; }
.form-card .btn { width: 100%; margin-top: 18px; }
.form-note { margin-top: 14px; padding: 14px 16px; border-radius: 12px; font-size: 14.5px; display: none; }
.form-note.show { display: block; }
.form-note.ok { background: var(--green-soft); color: #2d5c1a; }
.form-note.err { background: #fde9ec; color: #8e2433; }

/* Contact shortcuts */
.reach { display: grid; gap: 10px; margin-top: 32px; }
.reach a { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); color: #fff; text-decoration: none; font: 700 15px/1.3 var(--head); overflow-wrap: anywhere; transition: background .15s ease; }
.reach a:hover { background: rgba(255, 255, 255, .12); }
.reach svg { flex: none; width: 22px; height: 22px; color: var(--green); }
.reach small, .office address small { display: block; font: 500 12.5px var(--body); color: rgba(255, 255, 255, .6); }
.office address small { color: var(--muted); margin-top: 2px; }
.office address a { color: var(--navy); font-weight: 600; text-decoration: none; }

/* Client stories */
.story-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.story { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.story video { display: block; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; background: var(--ink); }
.story figcaption { padding: 16px 18px 18px; }
.story blockquote { margin: 0 0 8px; color: var(--fg); font-size: 15px; }
.story b { font: 700 15px var(--head); color: var(--navy-deep); }
.story span { display: block; color: var(--muted); font-size: 13.5px; }

/* Footer */
footer.site { background: var(--ink); color: rgba(255, 255, 255, .7); padding: 56px 0 28px; font-size: 14px; }
.foot { display: grid; grid-template-columns: 1.3fr .8fr .8fr 1.2fr; gap: 32px; padding-bottom: 36px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.foot .brand svg { height: 30px; margin-bottom: 14px; }
.foot h4 { font: 700 13px var(--head); letter-spacing: .12em; text-transform: uppercase; color: #fff; margin: 0 0 14px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a { text-decoration: none; }
.foot a:hover { color: #fff; }
.legal { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding-top: 24px; }
.powered { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: rgba(255, 255, 255, .7); }
.powered:hover { color: #fff; }
.powered img { width: 32px; height: 20px; }

/* Reveal on scroll */
.rise { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
.rise.in { opacity: 1; transform: none; }

/* Portal page styles live in portal/portal.css. */

/* 404 */
.lost { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 32px 16px; background: linear-gradient(160deg, var(--navy-deep), var(--ink)); color: #fff; }
.lost h1 { color: #fff; font-size: clamp(36px, 6vw, 64px); margin: 24px 0 12px; }
.lost p { color: rgba(255, 255, 255, .75); margin-bottom: 28px; }

/* Responsive */
@media (max-width: 1020px) {
  .programs { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .why-item:nth-child(2) { border-right: 0; }
  .why-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .hero .wrap, .contact .wrap { grid-template-columns: 1fr; }
  .path-card { max-width: 520px; }
}
@media (max-width: 860px) {
  .nav, .top-cta .btn-green { display: none; }
  .menu-btn { display: grid; }
  .top-cta { margin-left: 0; }
  .top.open { background: #fff; box-shadow: 0 1px 0 var(--line); }
  .top.open .wm-abroad { fill: var(--navy); }
  .top.open .wm-bang { fill: var(--navy-deep); }
  .top.open .menu-btn { background: var(--bg); color: var(--navy); }
  .top.open .portal-link { color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--line); }
  .top.open .nav { display: grid; position: absolute; top: 72px; left: 0; right: 0; background: #fff; padding: 8px 16px 20px; box-shadow: 0 20px 30px -20px rgba(14, 42, 90, .3); }
  .top.open .nav a { color: var(--navy-deep); padding: 14px 12px; font-size: 16px; }
  .process { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .process::before { display: none; }
  .offices { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr 1fr; }
  .foot > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .hero { padding: 116px 0 64px; }
  .programs, .why-grid, .process, .fields { grid-template-columns: 1fr; }
  .why-item { border-right: 0 !important; border-bottom: 1px solid var(--line); }
  .why-item:last-child { border-bottom: 0; }
  .ribbon .wrap { flex-direction: column; align-items: stretch; text-align: center; }
  section.block { padding: 68px 0; }
  .form-card, .path-card { padding: 22px; }
  .portal-link span { display: none; }
  .portal-link { width: 42px; padding: 0; }
  .actions .btn { flex: 1 1 100%; }
  .foot { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .plane { animation: none; offset-distance: 62%; }
  .rise { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0s !important; }
}
