/* OBTS public website — brand colours and type from the OBTS brand guide. */
:root {
  --navy: #244A66; --blue: #417B9B; --gold: #C5A35B; --ivory: #FAF8F1; --pale: #EDF3F6;
  --ink: #1d2a35; --muted: #4a5a68; --line: #d9d2bd; --white: #fff;
  --serif: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --radius: 10px; --wrap: 1120px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--ivory); }
img { max-width: 100%; height: auto; }
a { color: var(--blue); }
a:hover { color: var(--navy); }
h1, h2, h3 { font-family: var(--serif); color: var(--navy); line-height: 1.25; }
h1 { font-size: clamp(1.7rem, 4.2vw, 2.6rem); margin: 0 0 .6em; }
h2 { font-size: clamp(1.3rem, 3vw, 1.75rem); margin: 1.6em 0 .6em; }
h3 { font-size: 1.15rem; margin: 0 0 .4em; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }

.preview { background: #fbe9e9; color: #8a1a1a; text-align: center; font-size: .85rem; padding: 6px 16px; font-weight: 600; }

/* Header */
.site-header { background: var(--ivory); border-bottom: 3px solid var(--gold); position: sticky; top: 0; z-index: 20; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.brand img { height: 56px; width: auto; display: block; }
.brand span { font-family: var(--serif); font-weight: 700; font-size: 1rem; line-height: 1.2; max-width: 15ch; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; color: var(--navy); font-weight: 600; font-size: .95rem; padding: 8px 9px; border-radius: 6px; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--pale); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--gold); }
.lang { display: flex; gap: 2px; margin-left: 8px; border: 1px solid var(--line); border-radius: 8px; padding: 2px; background: #fff; }
.lang a { padding: 4px 8px; font-size: .85rem; font-weight: 700; border-radius: 6px; text-decoration: none; color: var(--navy); }
.lang a[aria-current="true"] { background: var(--navy); color: #fff; }
.menu-btn { display: none; background: var(--navy); color: #fff; border: 0; border-radius: 8px; padding: 10px 14px; font: 600 .95rem var(--sans); cursor: pointer; }

@media (max-width: 1320px) { .brand span { display: none; } }
@media (max-width: 1100px) {
  .menu-btn { display: inline-block; }
  .brand span { display: none; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--ivory); flex-direction: column; align-items: stretch;
         padding: 8px 16px 16px; border-bottom: 3px solid var(--gold); box-shadow: 0 8px 18px rgba(0,0,0,.08); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 10px; font-size: 1rem; }
  .lang { margin: 8px 0 0; align-self: flex-start; }
}

/* Hero */
.hero { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -60px; top: 0; bottom: 0; width: 180px; transform: skewX(-18deg);
               background: linear-gradient(90deg, var(--gold) 0 14px, var(--blue) 14px 100%); opacity: .9; }
.hero .wrap { position: relative; z-index: 1; padding-top: 48px; padding-bottom: 52px; display: grid; grid-template-columns: 1.4fr .8fr; gap: 32px; align-items: center; }
.hero h1 { color: #fff; }
.hero p.lead { font-size: 1.15rem; color: #e6eef3; max-width: 46ch; }
.hero .seal { justify-self: center; width: min(240px, 60vw); }
.kicker { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; color: var(--gold); margin-bottom: .8em; }
@media (max-width: 780px) { .hero .wrap { grid-template-columns: 1fr; } .hero .seal { order: -1; width: 150px; } .hero::after { display: none; } }

.page-head { background: var(--navy); color: #fff; padding: 36px 0 30px; border-bottom: 4px solid var(--gold); }
.page-head h1 { color: #fff; margin: 0; }
.page-head p { color: #e6eef3; margin: .5em 0 0; max-width: 60ch; }

main { padding-bottom: 40px; }
.section { padding: 28px 0 8px; }
.wrap.section { padding: 28px 16px 8px; }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.card { background: #fff; border-radius: var(--radius); padding: 20px; border-top: 4px solid var(--blue); box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.card.gold { border-top-color: var(--gold); }
.card p:last-child { margin-bottom: 0; }
.tag { display: inline-block; font-size: .78rem; font-weight: 700; color: var(--navy); background: var(--pale); border-radius: 999px; padding: 2px 10px; margin: 0 6px 6px 0; }
.tag.wait { background: #fff4dc; color: #6b5214; }
.note { background: var(--pale); border-left: 4px solid var(--blue); padding: 14px 16px; border-radius: 6px; margin: 16px 0; }
.note.gold { border-left-color: var(--gold); background: #fbf6ea; }
ol.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
ol.steps li { counter-increment: s; position: relative; padding: 0 0 16px 52px; }
ol.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%;
                      background: var(--navy); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.btn { display: inline-block; background: var(--gold); color: var(--ink); font-weight: 700; text-decoration: none; padding: 12px 20px;
       border-radius: 8px; border: 0; font: 700 1rem var(--sans); cursor: pointer; }
.btn:hover { background: #d6b878; color: var(--ink); }
.btn.secondary { background: transparent; color: #fff; border: 2px solid #fff; }
.btn.secondary:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn.navy { background: var(--navy); color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }

details { background: #fff; border-radius: 8px; margin: 0 0 10px; border: 1px solid #e3e8ec; }
summary { cursor: pointer; padding: 14px 16px; font-weight: 700; color: var(--navy); }
details > div { padding: 0 16px 14px; }

form.reg { background: #fff; border-radius: var(--radius); padding: 20px; border-top: 4px solid var(--gold); }
.field { margin: 0 0 16px; }
.field label, .field legend { display: block; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.field input[type=text], .field input[type=tel], .field input[type=url], .field select, .field textarea {
  width: 100%; font: 1rem var(--sans); padding: 11px 12px; border: 1px solid #b9c6cf; border-radius: 8px; background: #fff; color: var(--ink); }
.field textarea { min-height: 96px; }
fieldset.field { border: 0; padding: 0; }
.checks { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.checks label { font-weight: 500; color: var(--ink); display: flex; gap: 8px; align-items: flex-start; }
.checks input, .consent input { margin-top: 5px; }
.consent { display: flex; gap: 8px; align-items: flex-start; }
.hint { font-size: .88rem; color: var(--muted); }
.error { color: #a11b1b; font-weight: 600; min-height: 1.2em; }
.field [aria-invalid="true"] { border: 2px solid #a11b1b; }
[hidden] { display: none !important; }
.registration-prepared { overflow-wrap: anywhere; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

table.simple { width: 100%; border-collapse: collapse; background: #fff; border-radius: 8px; overflow: hidden; }
table.simple th { background: var(--navy); color: #fff; text-align: left; padding: 10px; }
table.simple td { padding: 10px; border-bottom: 1px solid #e3e8ec; vertical-align: top; }
.table-scroll { overflow-x: auto; }

/* Footer */
.site-footer { background: var(--navy); color: #dfe8ee; padding: 32px 0 18px; border-top: 4px solid var(--gold); font-size: .95rem; }
.site-footer a { color: #fff; }
.foot { display: grid; gap: 22px; grid-template-columns: 1.3fr 1fr 1fr; }
.foot img { width: 72px; height: 72px; }
.foot h3 { color: #fff; font-size: 1rem; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin: 0 0 6px; }
.copy { border-top: 1px solid rgba(255,255,255,.18); margin-top: 20px; padding-top: 14px; font-size: .85rem; color: #b9c9d4; }
@media (max-width: 780px) { .foot { grid-template-columns: 1fr; } }

.wa-float { position: fixed; right: 16px; bottom: 16px; z-index: 30; background: #1f7a4d; color: #fff; text-decoration: none; font-weight: 700;
            border-radius: 999px; padding: 12px 18px; box-shadow: 0 4px 14px rgba(0,0,0,.25); font-size: .95rem; }
.wa-float:hover { color: #fff; background: #17633e; }
td.nowrap { white-space: nowrap; }
