/* Omabert shared shell: skip link, header, mobile menu, footer, WhatsApp button.
   Loaded on every page. Every class is prefixed ob- so it never collides with a
   page's own CSS. Colours and type follow DESIGN.md. */

/* Size-matched fallbacks: while Barlow loads, text is drawn in a local font scaled to Barlow's width,
   so headings wrap the same and nothing jumps when the real font arrives (measured against Arial). */
@font-face { font-family: "Barlow Fallback"; src: local("Arial"), local("Helvetica"), local("Roboto"); size-adjust: 93%; }
@font-face { font-family: "Barlow SC Fallback"; src: local("Arial"), local("Helvetica"), local("Roboto"); size-adjust: 83%; }

:root {
  --ob-navy: #1A3A5C;
  --ob-navy-deep: #0F2740;
  --ob-gold: #E8A020;
  --ob-ink: #1B2430;
  --ob-muted: #5B6675;
  --ob-line: #DDE3EA;
  --ob-paper: #FFFFFF;
  --ob-mist: #F3F6F9;
  --ob-shadow-float: 0 8px 24px rgba(15, 39, 64, 0.18);
  --ob-head: 'Barlow Semi Condensed', 'Barlow SC Fallback', 'Barlow', 'Barlow Fallback', system-ui, sans-serif;
  --ob-body: 'Barlow', 'Barlow Fallback', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ob-header-h: 64px;
}
@media (min-width: 768px) { :root { --ob-header-h: 72px; } }

.ob-wrap { box-sizing: border-box; width: 100%; max-width: 1200px; margin: 0 auto; padding-inline: 20px; }
@media (min-width: 768px) { .ob-wrap { padding-inline: 32px; } }

[hidden].ob-panel, .ob-header [hidden] { display: none !important; }

/* Skip link */
.ob-skip { position: absolute; left: 16px; top: -64px; z-index: 1000; background: var(--ob-navy); color: #fff; font: 600 15px/1 var(--ob-body); padding: 16px; border-radius: 6px; text-decoration: none; }
.ob-skip:focus { top: 8px; }

/* Buttons used inside the shell */
.ob-btn { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; min-height: 48px; padding: 0 20px; border-radius: 6px; font: 600 15px/1 var(--ob-body); text-decoration: none; white-space: nowrap; border: 1.5px solid transparent; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.ob-btn--primary { background: var(--ob-gold); color: var(--ob-navy); }
.ob-btn--primary:hover { background: #F0B23F; }

/* Header */
.ob-header { position: sticky; top: 0; z-index: 100; background: var(--ob-paper); border-bottom: 1px solid var(--ob-line); font-family: var(--ob-body); }
.ob-header *, .ob-footer *, .ob-panel * { box-sizing: border-box; }
.ob-header__bar { display: flex; align-items: center; gap: 12px; height: var(--ob-header-h); }
.ob-brand { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; flex-shrink: 0; text-decoration: none; color: var(--ob-navy); }
.ob-brand img { width: 32px; height: 32px; display: block; }
.ob-brand span { font: 700 17px/1 var(--ob-head); letter-spacing: .01em; white-space: nowrap; }
@media (min-width: 768px) { .ob-brand img { width: 36px; height: 36px; } .ob-brand span { font-size: 19px; } }
@media (max-width: 359px) { .ob-brand span { display: none; } }

.ob-nav { display: none; margin-left: auto; }
.ob-menu { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.ob-menu > li { position: relative; }
.ob-menu__link { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 12px; border: 0; border-radius: 6px; background: none; color: var(--ob-ink); font: 500 16px/1 var(--ob-body); text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color .15s, color .15s; }
.ob-menu__link:hover { background: var(--ob-mist); color: var(--ob-navy); }
.ob-menu__link[aria-current="page"], .ob-menu__link.is-current { color: var(--ob-navy); box-shadow: inset 0 -2px 0 var(--ob-gold); border-radius: 0; }
.ob-menu__link svg { width: 14px; height: 14px; transition: transform .15s; }
.ob-menu__link[aria-expanded="true"] svg { transform: rotate(180deg); }

.ob-sub { position: absolute; top: calc(100% + 8px); left: 0; min-width: 260px; list-style: none; margin: 0; padding: 8px; background: var(--ob-paper); border: 1px solid var(--ob-line); border-radius: 8px; box-shadow: var(--ob-shadow-float); display: none; }
.ob-sub.is-open { display: block; }
.ob-sub a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 6px; color: var(--ob-ink); font: 500 15px/1.3 var(--ob-body); text-decoration: none; }
.ob-sub a:hover, .ob-sub a[aria-current="page"] { background: var(--ob-mist); color: var(--ob-navy); }

.ob-header__cta { margin-left: auto; padding: 0 16px; }
.ob-burger { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; flex-shrink: 0; margin-right: -8px; border: 0; background: none; color: var(--ob-navy); border-radius: 6px; cursor: pointer; }
.ob-burger svg { width: 26px; height: 26px; }
.ob-burger .ob-i-close { display: none; }
.ob-burger[aria-expanded="true"] .ob-i-menu { display: none; }
.ob-burger[aria-expanded="true"] .ob-i-close { display: block; }

@media (min-width: 1140px) {
  .ob-nav { display: block; }
  .ob-header__cta { margin-left: 8px; }
  .ob-burger { display: none; }
}

/* Mobile menu panel (full screen under the header bar) */
.ob-panel { position: fixed; inset: var(--ob-header-h) 0 0 0; z-index: 99; overflow-y: auto; background: var(--ob-paper); border-top: 1px solid var(--ob-line); padding: 8px 0 32px; font-family: var(--ob-body); }
.ob-panel[hidden] { display: none; }
.ob-panel__group { margin: 16px 0 4px; padding: 0 20px; color: var(--ob-muted); font: 600 14px/1.4 var(--ob-body); }
.ob-panel ul { list-style: none; margin: 0; padding: 0; }
.ob-panel a { display: flex; align-items: center; min-height: 48px; padding: 0 20px; border-bottom: 1px solid var(--ob-mist); color: var(--ob-ink); font: 500 17px/1.3 var(--ob-body); text-decoration: none; }
.ob-panel a:hover, .ob-panel a[aria-current="page"] { background: var(--ob-mist); color: var(--ob-navy); }
.ob-panel__top a { font-weight: 600; color: var(--ob-navy); }
body.ob-menu-open { overflow: hidden; }

/* Footer */
.ob-footer { background: var(--ob-navy-deep); color: rgba(255,255,255,.82); font: 400 15px/1.6 var(--ob-body); padding: 64px 0 32px; }
.ob-footer a { color: #fff; text-decoration: none; }
.ob-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ob-footer__grid { display: grid; gap: 40px; }
@media (min-width: 768px) { .ob-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .ob-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; } }
.ob-footer .ob-brand { color: #fff; margin-bottom: 16px; }
.ob-footer__about p { margin: 0 0 16px; max-width: 34ch; }
.ob-footer__contact a { display: inline-flex; align-items: center; min-height: 44px; }
.ob-footer h2 { margin: 0 0 12px; color: #fff; font: 600 17px/1.3 var(--ob-head); letter-spacing: .01em; }
.ob-footer ul { list-style: none; margin: 0; padding: 0; }
.ob-footer li a { display: inline-flex; align-items: center; min-height: 44px; color: rgba(255,255,255,.82); }
.ob-footer li a:hover { color: #fff; }
.ob-footer__base { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.14); }
.ob-footer__base p { margin: 0; font-size: 14px; color: rgba(255,255,255,.7); }
.ob-socials { display: flex; gap: 8px; }
.ob-socials a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.22); border-radius: 6px; transition: background-color .15s, border-color .15s; }
.ob-socials a:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.5); text-decoration: none; }
.ob-socials svg { width: 20px; height: 20px; fill: currentColor; }
@media (max-width: 767px) { .ob-footer { padding-bottom: 96px; } } /* room for the WhatsApp button */

/* WhatsApp button */
.ob-wa { position: fixed; right: 16px; bottom: 16px; z-index: 90; display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; background: #1F8F4E; color: #fff; box-shadow: var(--ob-shadow-float); transition: background-color .15s, opacity .15s; }
.ob-wa:hover { background: #18773F; }
.ob-wa svg { width: 28px; height: 28px; fill: currentColor; }
.ob-wa.is-hidden { opacity: 0; pointer-events: none; }
@media (min-width: 768px) { .ob-wa { right: 24px; bottom: 24px; width: 56px; height: 56px; } }

/* Focus and motion */
.ob-header a:focus-visible, .ob-header button:focus-visible, .ob-panel a:focus-visible,
.ob-skip:focus-visible, .ob-wa:focus-visible { outline: 3px solid var(--ob-navy); outline-offset: 2px; }
.ob-footer a:focus-visible { outline: 3px solid var(--ob-gold); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  .ob-header *, .ob-footer *, .ob-panel *, .ob-btn, .ob-wa { transition: none !important; }
}
