:root {
  --blue: #4054b2;
  --navy: #192974;
  --gold: #e4bc36;
  --sky: #4fcae2;
  --text: #1f2433;
  --muted: #5d6475;
  --line: #e3e6ef;
  --bg: #ffffff;
  --soft: #f4f6fb;
  --radius: 10px;
  --wrap: 1140px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}
img, video, iframe { max-width: 100%; }
img, video { height: auto; }
a { color: var(--blue); }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.25; margin: 1.4em 0 .5em; }
h1 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.25rem; }
p, ul, ol, figure, details, table { margin: 0 0 1em; }
figure { margin-inline: 0; }
figcaption { color: var(--muted); font-size: .9em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
table { border-collapse: collapse; width: 100%; }
th, td { border: 1px solid var(--line); padding: .5em .75em; text-align: left; }

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

/* Top bar & header */
.topbar { background: var(--blue); color: #fff; font-size: .9rem; font-weight: 600; padding: .35rem 0; }
.topbar p { margin: 0; display: flex; flex-wrap: wrap; gap: .2rem 1.2rem; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 76px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.logo { height: 56px; width: auto; display: block; }
.logo-text { font-weight: 700; font-size: 1.4rem; color: var(--navy); }

/* Menu */
.nav ul { list-style: none; margin: 0; padding: 0; }
.menu { display: flex; gap: .25rem; }
.menu > li { position: relative; }
.menu a { display: block; padding: .6rem .8rem; color: var(--navy); text-decoration: none; font-weight: 600; font-size: .95rem; border-radius: 6px; }
.menu a:hover, .menu .active > a { color: var(--blue); background: var(--soft); }
.menu .has-children > a::after { content: " ▾"; font-size: .8em; }
.submenu {
  position: absolute; left: 0; top: 100%; min-width: 260px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 30px rgba(25, 41, 116, .12);
  padding: .4rem; display: none;
}
.submenu a { font-weight: 500; }
.menu li:hover > .submenu, .menu li:focus-within > .submenu { display: block; }
.nav-toggle, .nav-button { display: none; }

@media (max-width: 900px) {
  .nav-button { display: flex; flex-direction: column; gap: 5px; cursor: pointer; padding: 10px; }
  .nav-button span { width: 24px; height: 2px; background: var(--navy); }
  .nav-toggle { display: block; position: absolute; opacity: 0; width: 44px; height: 44px; right: 16px; cursor: pointer; z-index: 2; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); padding: .5rem 16px 1rem; max-height: calc(100vh - 76px); overflow-y: auto; }
  .nav-toggle:checked ~ .nav { display: block; }
  .menu { flex-direction: column; }
  .submenu { position: static; display: block; border: 0; box-shadow: none; padding: 0 0 0 1rem; min-width: 0; }
  .menu .has-children > a::after { content: ""; }
  .header-inner { position: relative; }
}

/* Hero */
.hero {
  min-height: clamp(220px, 38vw, 420px); background: var(--navy) center / cover no-repeat;
  display: flex; align-items: flex-end;
}
.hero h1 {
  margin: 0; width: 100%; color: #fff; padding: 2rem max(16px, calc((100% - var(--wrap)) / 2 + 16px));
  background: linear-gradient(transparent, rgba(25, 41, 116, .75));
}

/* Content */
.content { padding-top: 1rem; padding-bottom: 3rem; min-height: 50vh; }
.page-title { margin-top: 1.2em; }
.content > :first-child { margin-top: 1.2em; }

.button, a.button {
  display: inline-block; background: var(--gold); color: var(--navy); font-weight: 700;
  padding: .7em 1.4em; border-radius: 999px; text-decoration: none; border: 0; cursor: pointer; font-size: 1rem;
}
.button:hover, a.button:hover { background: #d6aa1f; color: var(--navy); }

/* Layout blocks inserted from the editor */
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; margin: 1.5rem 0; align-items: start; }
.cols > .col > :first-child { margin-top: 0; }
.cols > .col > figure img { width: 100%; max-height: 460px; object-fit: cover; border-radius: var(--radius); }
.cols > .col > .card { height: 100%; display: flex; flex-direction: column; }
.cols > .col > .card > :last-child { margin-top: auto; }
/* Columns holding only cards: the cards share one grid so every box is the same size. */
.cols:has(> .col > .card):not(:has(> .col > :not(.card))) { grid-auto-rows: 1fr; align-items: stretch; }
.cols:has(> .col > .card):not(:has(> .col > :not(.card))) > .col { display: contents; }
.cols:has(> .col > .card):not(:has(> .col > :not(.card))) > .col > .card { margin-bottom: 0; }
@media (min-width: 900px) {
  /* Keep reading down each column, as the columns were written. */
  .cols:not(:has(> .col > :not(.card))):has(> .col > .card + .card) { grid-auto-flow: column; grid-template-rows: repeat(2, 1fr); }
  .cols:not(:has(> .col > :not(.card))):has(> .col > .card + .card + .card) { grid-template-rows: repeat(3, 1fr); }
}
.card {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff;
  box-shadow: 0 2px 10px rgba(25, 41, 116, .06); margin-bottom: 1.5rem;
}
.card > img, .card > a > img, .card > p:first-child img { display: block; width: 100%; aspect-ratio: 3 / 2; max-height: 340px; object-fit: cover; margin: 0; }
.card .button { display: block; text-align: center; font-size: .82rem; line-height: 1.3; padding: .6em .6em; border-radius: 8px; }
/* A card that is only an image (e.g. partner logos): show it whole. */
.card > p:only-child img { object-fit: contain; padding: 1rem; background: #fff; }
.card > p:first-child { margin: 0; }
.card > :not(img):not(:first-child) { padding-inline: 1.1rem; }
.card h3 { margin: 1rem 0 .4rem; }
.card h3 a { text-decoration: none; color: var(--navy); }
.card > :last-child { padding-bottom: 1.1rem; margin-bottom: 0; }
.subnav { list-style: none; padding: 0; border-left: 3px solid var(--gold); }
.subnav a { display: block; padding: .35rem .9rem; text-decoration: none; color: var(--navy); }
.subnav a:hover { background: var(--soft); }
/* Columns that start with a sub-menu: narrow sidebar (sub-menu, picture) + wide text column. */
@media (min-width: 700px) {
  .cols:has(> .col:first-child > .subnav) { grid-template-columns: minmax(220px, 1fr) 2fr; gap: 2.5rem; }
}
.cols > .col > .subnav + figure { margin-top: 1.5rem; }
.map iframe { width: 100%; height: 320px; border: 0; border-radius: var(--radius); }
/* A map alone in a column grows to the height of the column next to it. */
.cols > .col:has(> .map:only-child) { align-self: stretch; }
.cols > .col > .map:only-child, .cols > .col > .map:only-child iframe { height: 100%; min-height: 320px; }
.box { background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.5rem; }
.box > :first-child { margin-top: 0; }
.box > :last-child { margin-bottom: 0; }
.box h2 { font-size: 1.25rem; margin: 1.4em 0 .6em; }
.contact-list { list-style: none; padding: 0; display: grid; gap: .5rem; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }
.box [class^="ico-"]::before { background: var(--blue); }
details { border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem 1.1rem; background: var(--soft); }
details[open] { background: #fff; }
summary { cursor: pointer; font-weight: 700; color: var(--navy); }
details > :not(summary) { margin-top: .8rem; }
.align-center, .aligncenter { text-align: center; }

/* Contact icons: <a class="ico-phone" href="tel:…">, <span class="ico-fax">, <a class="ico-mobile" …>, ico-mail, ico-pin, ico-clock (Lucide icons, ISC licence) */
:is(.ico-phone, .ico-fax, .ico-mobile, .ico-mail) { white-space: nowrap; }
:is(.ico-phone, .ico-fax, .ico-mobile, .ico-mail, .ico-pin, .ico-clock)::before {
  content: ""; display: inline-block; width: 1.05em; height: 1.05em; margin-right: .35em; vertical-align: -.15em;
  background: currentColor; -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat;
}
.ico-phone { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E"); }
.ico-fax { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 6 2 18 2 18 9'/%3E%3Cpath d='M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2'/%3E%3Crect x='6' y='14' width='12' height='8'/%3E%3C/svg%3E"); }
.ico-mobile { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='2' width='14' height='20' rx='2' ry='2'/%3E%3Cpath d='M12 18h.01'/%3E%3C/svg%3E"); }
.ico-mail { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7'/%3E%3C/svg%3E"); }
.ico-pin { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0Z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E"); }
.ico-clock { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolyline points='12 6 12 12 16 14'/%3E%3C/svg%3E"); }

/* Contact form */
.contact-form { max-width: 720px; display: grid; gap: 1rem; }
.contact-form .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.contact-form label { display: grid; gap: .3rem; font-weight: 600; color: var(--navy); font-size: .95rem; }
.contact-form input:not([type=checkbox]), .contact-form textarea {
  font: inherit; padding: .65rem .8rem; border: 1px solid #cdd2e0; border-radius: 8px; width: 100%;
}
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.contact-form fieldset { border: 1px solid var(--line); border-radius: 8px; padding: .8rem 1rem; display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }
.contact-form legend { font-weight: 600; color: var(--navy); padding: 0 .3rem; }
.contact-form label.check { display: flex; align-items: center; gap: .4rem; font-weight: 400; color: var(--text); }
.contact-form .hp { position: absolute; left: -9999px; }
.contact-form button { justify-self: start; }
.notice { padding: 1rem 1.2rem; border-radius: 8px; margin-bottom: 1rem; }
.notice.ok { background: #e7f6ec; color: #1b5e33; }
.notice.err { background: #fdecec; color: #8a1f1f; }

/* Footer */
.site-footer { background: var(--navy); color: #dfe4f5; padding: 2.5rem 0 1.5rem; font-size: .95rem; }
.site-footer h2, .site-footer h3, .site-footer h4 { color: #fff; margin-top: 0; }
.site-footer a { color: #fff; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer .cols { margin-top: 0; }
.site-footer .box { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .15); }
.site-footer .box h2 ~ h2 { margin-top: 1.3em; }
.site-footer .box [class^="ico-"]::before { background: var(--gold); }
.copyright { border-top: 1px solid rgba(255, 255, 255, .15); padding-top: 1rem; margin: 1.5rem 0 0; color: #aab3d6; font-size: .85rem; }
