:root {
  --navy: #0f1a5c;
  --navy-dark: #141a4a;
  --text: #4a5160;
  --muted: #6b7280;
  --line: #dce5ee;
  --bg: #ffffff;
  --grad: linear-gradient(90deg, #2c3a9c 0%, #0d8f9b 100%);
  --radius: 20px;
  --shadow: 0 8px 24px rgba(15, 26, 92, 0.08);
  --font: "Proxima Nova", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.75 var(--font); overflow-x: hidden; }
img, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--navy); }
h1, h2, h3 { color: var(--navy); line-height: 1.2; letter-spacing: -0.01em; }
h1, .h1 { font-size: clamp(1.9rem, 4.5vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
.center { text-align: center; }
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 8px; top: 8px; background: #fff; padding: 8px 12px; z-index: 10; }

/* Header and navigation (works without JavaScript) */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1180px; margin: 0 auto; padding: 16px 20px; position: relative; }
.brand img { width: 198px; }
.menu > summary { list-style: none; display: none; cursor: pointer; align-items: center; gap: 8px; min-height: 44px; min-width: 44px; padding: 8px; color: var(--navy); font-weight: 700; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.08em; }
.menu > summary::-webkit-details-marker, .drop > summary::-webkit-details-marker { display: none; }
.bars, .bars::before, .bars::after { display: block; width: 24px; height: 2px; background: var(--navy); position: relative; content: ""; }
.bars::before { position: absolute; top: -7px; }
.bars::after { position: absolute; top: 7px; }
.nav { list-style: none; margin: 0; padding: 6px; display: flex; align-items: center; gap: 2px; border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow); background: #fff; }
.nav-link { display: flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; color: #303650; cursor: pointer; list-style: none; }
.nav-link:hover, .nav-link[aria-current] { background: #eef3f8; }
.nav-apply { background: var(--grad); color: #fff; }
.nav-apply:hover { background: var(--grad); filter: brightness(1.06); }
.nav-apply, .nav-apply:hover, .nav-apply:focus { color: #fff; }
summary, a { -webkit-tap-highlight-color: transparent; }
.drop { position: relative; }
.drop ul { list-style: none; margin: 0; padding: 8px; position: absolute; top: calc(100% + 8px); left: 0; min-width: 260px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); z-index: 20; }
.drop ul a { display: block; padding: 10px 12px; min-height: 44px; border-radius: 8px; text-decoration: none; color: #303650; font-size: 0.95rem; }
.drop ul a:hover { background: #eef3f8; }
@media (min-width: 961px) { .menu { display: none; } }
@media (max-width: 960px) {
  .nav-desktop { display: none; }
  .menu > summary { display: flex; }
  .menu > nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; z-index: 30; padding: 8px 16px 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav { flex-direction: column; align-items: stretch; border: 0; box-shadow: none; border-radius: 0; padding: 0; }
  .nav-link { justify-content: center; font-size: 0.95rem; letter-spacing: 0.1em; }
  .drop ul { position: static; box-shadow: none; border: 0; min-width: 0; text-align: center; padding: 0 0 8px; }
  .brand img { width: 160px; }
}

/* Heroes */
.hero-text { background: linear-gradient(110deg, #f8fbfd 30%, #d3f3f5 100%); padding: clamp(48px, 9vw, 110px) 20px; text-align: center; max-width: 1180px; margin: 0 auto; }
.hero-text h1 { margin: 0; }
.hero-sub { margin: 16px 0 0; font-size: 1.05rem; }
.hero-photo { background: var(--navy-dark); max-width: 1140px; margin: 0 auto; text-align: center; }
.hero-photo img { width: 100%; max-width: 900px; max-height: 560px; object-fit: cover; margin: 0 auto; }
.hero-photo h1 { color: #fff; margin: 0; padding: 18px 16px 22px; font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 500; text-transform: uppercase; letter-spacing: 0.02em; }

/* Layout */
main { display: block; }
.section { max-width: 1180px; margin: 0 auto; padding: clamp(32px, 6vw, 64px) 20px; }
.narrow { max-width: 900px; }
.prose p, .prose li { font-size: 1.02rem; }
.prose ul { padding-left: 1.2em; }
.choose { margin: 0 0 28px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }

/* Apply buttons */
.apply-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.apply-wide { grid-column: 1 / -1; }
.apply-card { padding: 28px 24px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; }
.apply-card p { margin: 4px 0 8px; font-size: 0.95rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 26px; border-radius: 14px; background: var(--grad); color: #fff; font-weight: 700; font-size: 0.9rem; letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none; text-align: center; box-shadow: 0 6px 14px rgba(44, 58, 156, 0.25); border: 0; cursor: pointer; font-family: inherit; max-width: 100%; }
.btn:hover { filter: brightness(1.06); }
.btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid #0d8f9b; outline-offset: 3px; }
.btn-dark { background: #222; box-shadow: none; border-radius: 4px; letter-spacing: 0.12em; }
@media (max-width: 700px) { .apply-grid { grid-template-columns: 1fr; } .apply-card { padding: 24px 16px; } }

/* Home */
.flyer { max-width: 610px; margin: 0 auto; padding: 14px; }
.flyer img { border-radius: 12px; width: 100%; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.tile { text-decoration: none; color: var(--text); }
.tile h2 { margin: 0 0 8px; font-size: 1.5rem; }
.tile p { margin: 0 0 16px; }
.tile img { border-radius: 16px; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
@media (max-width: 800px) { .tiles { grid-template-columns: 1fr; } }

/* Office pages */
.map iframe { width: 100%; height: 320px; border: 0; border-radius: 6px; display: block; }
.office-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.contact-form { padding: 0; border: 0; box-shadow: none; display: flex; flex-direction: column; gap: 14px; }
.contact-form fieldset { border: 0; padding: 0; margin: 0; }
.contact-form legend { color: #333; padding: 0; margin-bottom: 4px; }
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.contact-form label { display: flex; flex-direction: column; gap: 4px; font-size: 0.85rem; color: #333; }
.req { color: var(--muted); }
.contact-form input, .contact-form textarea { font: inherit; font-size: 16px; padding: 10px 12px; border: 1px solid #b8bec8; border-radius: 3px; background: #fafafa; width: 100%; }
.contact-form button { align-self: flex-start; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-details a { overflow-wrap: anywhere; }
.contact-details h3 { margin-top: 0; }
@media (max-width: 700px) { .office-grid { grid-template-columns: 1fr; } .contact-form .row { grid-template-columns: 1fr; } .map iframe { height: 260px; } }

/* Thank-you page */
.notice { max-width: 640px; margin: 0 auto; padding: 32px 24px; text-align: center; }

/* Footer */
.site-footer { background: var(--navy-dark); color: #fff; text-align: center; padding: 48px 20px 64px; font-size: 0.9rem; }
.site-footer p { margin: 4px 0; }
.site-footer a { color: #fff; display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; }
