/* Site styles, shared by the website and the wiki.
   Look: Aruban limestone background, flag blue, flag-yellow sun, the red four-pointed star.
   No external resources: system font stacks only (keeps the CSP strict and pages fast). */
:root {
  --flag: #418FDE;      /* Aruban flag blue, PMS 279 C (AB 1991 no. 101, art. 2): the brand colour */
  --flag-soft: #E8F2FB;
  --ink: #081A2C;       /* small text, links, focus ring; 5.2:1 on flag blue */
  --focus: var(--ink);
  --lagoon: #5BC7C0;
  --lagoon-soft: #DDF3F1;
  --sun: #F4C534;
  --star: #E2483D;
  --ochre: #F2A93B;
  --sand: #E8D6B0;
  --leaf: #3E8F5A;
  --leaf-deep: #2E7349;
  --bark: #5A4632;
  --cactus: #4E8A5B;
  --bg: #F3F7F6;
  --paper: #FFFFFF;
  --text: #12263A;
  --muted: #4A5D6E;
  --line: #CFDCE0;
  --line-strong: #768896;

  --display: ui-rounded, "SF Pro Rounded", "Nunito", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3rem;
  --step-2: 1.7rem;
  --step-3: clamp(1.9rem, 3.4vw, 2.6rem);
  --step-4: clamp(2.6rem, 7vw, 5.4rem);

  --gutter: 16px;
  --max: 1160px;
  --radius-s: 8px;
  --radius-l: 22px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); font-size: var(--step-0); line-height: 1.6; }
img, svg { display: block; max-width: 100%; }
a { color: var(--ink); text-underline-offset: 3px; text-decoration-color: var(--flag); text-decoration-thickness: 2px; }
a:hover { color: var(--ink); text-decoration-color: var(--ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--display); line-height: 1.12; margin: 0 0 .5em; color: var(--flag); text-wrap: balance; }
h2 { font-size: var(--step-3); font-weight: 800; letter-spacing: -0.015em; max-width: 24ch; }
h3 { font-size: var(--step-1); font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
.wrap--narrow { max-width: 820px; }
@media (min-width: 720px) { :root { --gutter: 32px; } }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--sun); color: var(--ink); padding: 8px 14px; z-index: 20; }
.skip:focus { left: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.section-lead { color: var(--muted); max-width: 62ch; font-size: 1.1rem; }
.note { color: var(--muted); font-size: var(--step--1); max-width: 70ch; }
.more { font-weight: 700; }

/* Bands: page sections with their own vertical rhythm */
.band { padding-block: clamp(56px, 8vw, 104px); }
.band--paper { background: var(--paper); }
.band--sea { background: var(--flag); color: var(--ink); }
.band--sea h2, .band--sea h3 { color: #fff; }
.band--sea .section-lead { color: var(--ink); }
.band--lagoon { background: var(--lagoon-soft); }
.band--lagoon h2, .band--lagoon h3 { color: var(--ink); }
.band--sun { background: var(--sun); }
.band--sun h2, .band--sun .section-lead { color: var(--ink); }

/* Buttons */
.btn { display: inline-block; background: var(--flag); color: var(--ink); text-decoration: none; font: inherit; font-weight: 700; padding: 14px 22px; border-radius: 999px; border: 2px solid var(--flag); cursor: pointer; }
.btn:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--flag-soft); color: var(--ink); }
.btn--small { padding: 10px 16px; min-height: 44px; font-size: var(--step--1); }
.btn[disabled] { opacity: .6; cursor: wait; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }

/* The red four-pointed star from the Aruban flag, used as a list marker */
.stars { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.stars li { padding-left: 26px; position: relative; }
.stars li::before { content: ""; position: absolute; left: 0; top: .32em; width: 15px; height: 15px; background: var(--star);
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); }

/* Header */
.top { background: var(--bg); border-bottom: 1px solid var(--line); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 11; background: var(--bg); }
.top__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; min-height: 68px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 1.35rem; letter-spacing: -0.01em; color: var(--flag); }
.brand img { width: 36px; height: 36px; }
.nav { display: flex; align-items: center; gap: 6px 20px; flex-wrap: wrap; }
.nav a:not(.btn) { text-decoration: none; color: var(--text); font-weight: 600; font-size: .95rem; padding: 4px 0; border-bottom: 2px solid transparent; }
.nav a:not(.btn):hover { color: var(--ink); border-bottom-color: var(--flag); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--star); }
.menu-btn { display: none; }

.lang { position: relative; font-size: .9rem; }
.lang summary { cursor: pointer; list-style: none; font-weight: 700; color: var(--ink); padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); }
.lang summary::-webkit-details-marker { display: none; }
.lang ul { list-style: none; margin: 6px 0 0; padding: 6px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-s); position: absolute; right: 0; min-width: 160px; z-index: 12; box-shadow: 0 8px 24px rgba(8, 26, 44, .14); }
.lang a { display: block; padding: 8px 10px; text-decoration: none; color: var(--text); border-radius: 6px; }
.lang a:hover { background: var(--flag-soft); }
.lang a[aria-current="true"] { font-weight: 700; color: var(--ink); }

.js .menu-btn { background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font: inherit; font-weight: 700; color: var(--ink); cursor: pointer; }
@media (max-width: 960px) {
  .js .menu-btn { display: block; }
  .js .nav { display: none; width: 100%; flex-direction: column; align-items: flex-start; gap: 2px; padding: 8px 0 18px; }
  .js .nav.is-open { display: flex; }
  .js .nav a:not(.btn) { padding: 8px 0; font-size: 1.05rem; }
  .lang ul { position: static; box-shadow: none; }
}

/* Hero */
.hero { padding-block: clamp(36px, 7vw, 88px) clamp(32px, 6vw, 72px); overflow: hidden; }
.hero__grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .hero__grid { grid-template-columns: 1.2fr 1fr; } }
.hero__lang { color: var(--muted); font-size: var(--step--1); margin-bottom: .6em; }
.hero h1 { font-size: clamp(2.4rem, 5.4vw, 4.25rem); font-weight: 900; letter-spacing: -0.03em; line-height: 1.02; max-width: 15ch; margin-bottom: .35em; }
.lead { font-size: 1.2rem; max-width: 54ch; }
.hero .stars { margin-top: 28px; max-width: 54ch; color: var(--muted); }
.hero .stars strong { color: var(--text); }

/* The Aruban scene: watapana tree, cunucu house, kadushi cactus, star, sea with flag stripes */
.scene-wrap { margin: 0; }
.scene { width: 100%; max-width: 460px; margin: 0 auto; }
.scene-wrap figcaption { color: var(--muted); font-size: var(--step--1); max-width: 40ch; margin: 10px auto 0; text-align: center; }
.scene__sky { fill: var(--flag-soft); }
.scene__sea { fill: var(--flag); }
.scene__stripe { stroke: var(--sun); stroke-width: 5; }
.scene__sand { fill: var(--sand); }
.scene__trunk { fill: none; stroke: var(--bark); stroke-width: 14; stroke-linecap: round; }
.scene__trunk--thin { stroke-width: 8; }
.scene__leaf { fill: var(--leaf); }
.scene__leaf--back { fill: var(--leaf-deep); }
.scene__wall { fill: var(--ochre); }
.scene__roof { fill: var(--star); }
.scene__trim { fill: #fff; }
.scene__opening { fill: var(--ink); }
.scene__band { fill: var(--lagoon); }
.scene__cactus { fill: var(--cactus); }
.scene__rib { fill: none; stroke: #7FB58A; stroke-width: 2; }
.scene__star { fill: var(--star); stroke: #fff; stroke-width: 4; stroke-linejoin: round; }
.scene__wind path { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 10 8; opacity: .5; }
@media (prefers-reduced-motion: no-preference) {
  .scene__wind path { animation: wind 3.6s linear infinite; }
  .scene__wind path:nth-child(2) { animation-duration: 4.4s; }
  .scene__wind path:nth-child(3) { animation-duration: 3.1s; }
}
@keyframes wind { to { stroke-dashoffset: -108; } }

/* Page heads for inner pages */
.page-head { padding-block: clamp(40px, 7vw, 80px) clamp(24px, 4vw, 40px); }
.page-head h1 { font-size: clamp(2.2rem, 5.2vw, 3.8rem); font-weight: 900; letter-spacing: -0.03em; max-width: 20ch; }
.page-head .lead { color: var(--muted); }

/* Connect board: the one interactive moment */
.switch { --focus: #fff; display: inline-flex; background: var(--ink); border-radius: 999px; padding: 5px; margin: 8px 0 28px; }
.switch__btn { font: inherit; font-weight: 700; border: 0; background: transparent; color: #BFD3DE; padding: 10px 20px; border-radius: 999px; cursor: pointer; }
.switch__btn[aria-pressed="true"] { background: var(--sun); color: var(--ink); }
.board__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.node { background: var(--paper); border: 2px dashed var(--ink); border-radius: var(--radius-s); padding: 16px 18px; display: grid; gap: 4px; align-content: start; transition: border-color .3s, background-color .3s, transform .3s; }
.node__name { font-family: var(--display); font-weight: 800; color: var(--ink); font-size: 1.1rem; }
.node__today { color: var(--muted); }
.node__after { color: var(--leaf-deep); display: none; }
.board[data-state="today"] .node:nth-child(odd) { transform: rotate(-.8deg); }
.board[data-state="today"] .node:nth-child(even) { transform: rotate(.9deg) translateY(4px); }
.board[data-state="after"] .node { border-style: solid; border-color: var(--ink); background: var(--flag-soft); }
.board[data-state="after"] .node__today { display: none; }
.board[data-state="after"] .node__after { display: block; }
.board__hub { display: none; margin: 20px auto 0; width: max-content; max-width: 100%; background: var(--sun); color: var(--ink); font-family: var(--display); font-weight: 900; padding: 10px 26px; border-radius: 999px; }
.board[data-state="after"] .board__hub { display: block; }
.board__status { margin: 18px 0 0; color: var(--ink); font-size: var(--step--1); }
@media (prefers-reduced-motion: reduce) { .node { transition: none; } }

/* Generic column grids */
.cols { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); margin-top: 24px; }
.cols > * { min-width: 0; }
.cols p { color: var(--muted); }
.cols h3 a { text-decoration: none; color: inherit; }
.cols h3 a:hover { text-decoration: underline; }

/* Services */
.services__grid { display: grid; gap: 20px; margin-top: 12px; }
@media (min-width: 860px) {
  .services__grid { grid-template-columns: 1.3fr 1fr 1fr; }
  .service--main { grid-row: span 2; }
  .services__grid > .service:last-child { grid-column: span 2; }
}
.service { background: var(--paper); border-radius: var(--radius-s); padding: 24px; border-top: 4px solid var(--flag); min-width: 0; }
.service p:last-child { margin-bottom: 0; }
.service--main { background: var(--flag); color: var(--ink); border-top-color: var(--sun); border-radius: var(--radius-l); padding: 32px; }
.service--main h3 { color: #fff; font-size: var(--step-2); }
.service--main .ticks li::before { border-color: #fff; }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.ticks li { padding-left: 28px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 14px; height: 8px; border-left: 3px solid var(--sun); border-bottom: 3px solid var(--sun); transform: rotate(-45deg); }

/* Systems */
.system { display: grid; gap: 8px 40px; padding-block: 36px; border-top: 1px solid var(--line); }
.system:first-of-type { border-top: 3px solid var(--flag); }
@media (min-width: 900px) { .system { grid-template-columns: 280px 1fr; } }
.system__head p { color: var(--muted); }
.system dl { margin: 0; display: grid; gap: 14px; }
.system dt { font-weight: 700; color: var(--ink); }
.system dd { margin: 0; }
.tag { display: inline-block; width: max-content; font-family: var(--body); font-size: .78rem; font-weight: 700; background: var(--sun); color: var(--ink); padding: 2px 10px; border-radius: 999px; vertical-align: middle; }

.table-wrap { overflow-x: auto; background: var(--paper); border-radius: var(--radius-s); border: 1px solid var(--line); margin: 20px 0 14px; }
.table-wrap table { border-collapse: collapse; width: 100%; min-width: 680px; font-size: .97rem; }
.table-wrap th, .table-wrap td { text-align: left; vertical-align: top; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.table-wrap thead th { font-size: var(--step--1); color: var(--muted); font-weight: 700; background: var(--bg); }
.table-wrap tbody th { font-family: var(--display); color: var(--ink); font-size: 1.05rem; }
.table-wrap tbody tr:last-child > * { border-bottom: 0; }
.row-lead { background: #FFF8DF; }

/* Process: a real sequence, so numbered */
.steps { list-style: none; counter-reset: step; margin: 28px 0 0; padding: 0; display: grid; gap: 28px; }
@media (min-width: 900px) { .steps--row { grid-template-columns: repeat(5, 1fr); gap: 20px; } }
.steps li { counter-increment: step; position: relative; padding-top: 58px; min-width: 0; }
.steps li::before { content: counter(step); position: absolute; top: 0; left: 0; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--flag); color: #fff; font-family: var(--display); font-weight: 900; font-size: 1.2rem; }
@media (min-width: 900px) { .steps--row li:not(:last-child)::after { content: ""; position: absolute; top: 21px; left: 54px; right: -10px; border-top: 3px dotted var(--flag); } }
.steps h3 { font-size: 1.2rem; }
.steps p { color: var(--muted); font-size: .97rem; }
.steps--col li { padding-top: 0; padding-left: 64px; min-height: 44px; }

/* Aruba */
.split { display: grid; gap: 32px; align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: .9fr 1.1fr; } }
.split > * { min-width: 0; }
.emblem { width: min(220px, 60vw); margin: 8px 0 20px; }
.facts { margin: 0; display: grid; border-top: 3px solid var(--flag); }
.facts div { display: grid; gap: 4px; padding: 16px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 600px) { .facts div { grid-template-columns: 150px 1fr; gap: 20px; } }
.facts dt { font-family: var(--display); font-weight: 800; color: var(--ink); }
.facts dd { margin: 0; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 36px 18px 0; font-weight: 700; font-size: 1.08rem; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 1.6rem; color: var(--flag); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); max-width: 66ch; }

/* CTA */
.cta { display: grid; gap: 20px; align-items: center; }
@media (min-width: 860px) { .cta { grid-template-columns: 1.4fr auto; } }
.cta .actions { margin: 0; }
.band--sun .btn--ghost { color: var(--ink); border-color: var(--ink); }

/* Contact form */
.contact { display: grid; gap: 36px; align-items: start; }
@media (min-width: 960px) { .contact { grid-template-columns: .8fr 1.2fr; } }
.contact > * { min-width: 0; }
.direct { display: grid; gap: 12px; margin-top: 24px; }
.direct__item { background: var(--bg); border-radius: var(--radius-s); padding: 16px 20px; margin: 0; }
.direct__label { display: block; font-size: var(--step--1); color: var(--muted); }
.direct__value { font-family: var(--display); font-weight: 800; font-size: 1.2rem; color: var(--ink); overflow-wrap: anywhere; }
a.direct__value { display: inline-block; padding-block: 11px; margin-block: -8px; }
.form { background: var(--paper); border-radius: var(--radius-l); padding: clamp(20px, 4vw, 36px); display: grid; gap: 18px; border-top: 6px solid var(--sun); }
.form__row { display: grid; gap: 18px; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; min-width: 0; }
.field label, .field legend { font-weight: 700; color: var(--text); }
.field .hint { font-size: var(--step--1); color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea { width: 100%; font: inherit; color: var(--text); background: var(--bg); border: 2px solid var(--line-strong); border-radius: 10px; padding: 12px 14px; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--flag); }
.field [aria-invalid="true"] { border-color: var(--star); }
.check { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; font-size: .97rem; }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--flag); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__status { margin: 0; padding: 12px 16px; border-radius: var(--radius-s); font-weight: 600; }
.form__status:empty { display: none; }
.form__status[data-kind="ok"] { background: var(--lagoon-soft); color: var(--ink); }
.form__status[data-kind="error"] { background: #FDE6E4; color: #8A1F17; }
.form__status[data-kind="busy"] { background: var(--bg); color: var(--muted); }
.form__foot { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
.form__foot .note { margin: 0; }

/* Simple content pages */
.prose { max-width: 70ch; }
.prose h2 { font-size: var(--step-2); margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }

/* Footer: the two yellow stripes of the flag as its top edge, left out after a yellow band */
.foot { background: var(--flag); background-clip: padding-box; color: var(--ink); padding-block: 48px 28px; font-size: .95rem; border-top: 10px double var(--sun); }
main:has(> .band--sun:last-child) + .foot { border-top: 0; }
.foot__grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); }
.foot h2 { font-size: 1rem; color: var(--ink); margin-bottom: .8em; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot a { color: var(--ink); }
.band--sea a, .service--main a, .foot a { text-decoration-color: currentColor; }
.foot__brand { display: flex; gap: 14px; align-items: flex-start; }
.foot__brand img { width: 48px; height: 48px; flex: none; }
.foot__brand strong { color: var(--ink); font-family: var(--display); font-size: 1.2rem; display: block; }
.foot__bottom { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; margin-top: 36px; padding-top: 18px; border-top: 1px solid rgba(8, 26, 44, .25); font-size: var(--step--1); }
.foot__bottom p { margin: 0; }

@media print {
  .top, .switch, .menu-btn, .lang, .form { display: none; }
  .band--sea, .service--main, .band--sun, .foot { background: none; color: #000; }
}
