/* ============ OMIYAL — small site-wide additions (all pages) ============ */

/* Sticky header (theme.js adds .fixed after scrolling): use the page's own theme
   background instead of the template's white bar. Home = cream (.bg-five). */
.main-page-wrapper.bg-five .theme-main-menu.fixed { background: #fff7ec; }

/* Inline SVG icons (replace the Bootstrap Icons web font; same 1em box & baseline) */
.bi { display: inline-block; line-height: 1; }
.bi svg { display: inline-block; width: 1em; height: 1em; fill: currentColor; vertical-align: -.125em; }

/* Failsafe: never leave the white preloader up if JavaScript fails to run.
   theme.js normally removes it at DOM-ready, long before this kicks in. */
#preloader { animation: omiyal-preloader-failsafe .3s ease 5s forwards; }
@keyframes omiyal-preloader-failsafe { to { opacity: 0; visibility: hidden; } }

/* Contact form honeypot: off-screen rather than display:none (some bots skip hidden inputs) */
.form-hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Cookie consent banner (js/consent.js). Accept and Reject are deliberately identical. */
.cookie-banner {
  position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%);
  z-index: 9999; width: calc(100% - 32px); max-width: 620px;
  display: flex; align-items: center; gap: 18px;
  padding: 16px 18px; background: #fff; color: #000;
  border: 2px solid #000; border-radius: 20px; box-shadow: 5px 5px 0 #000;
  font-size: 15px; line-height: 1.5;
}
.cookie-banner__text { margin: 0; flex: 1 1 auto; color: #000; }
.cookie-banner__text a { color: #000; text-decoration: underline; }
.cookie-banner__actions { display: flex; gap: 10px; flex: 0 0 auto; }
.cookie-banner__btn {
  min-width: 92px; padding: 10px 18px; border: 2px solid #000; border-radius: 12px;
  background: #000; color: #fff; font-size: 15px; font-weight: 500; line-height: 1.2; cursor: pointer;
}
.cookie-banner__btn:hover { background: #F49120; color: #000; }
.cookie-banner__btn:focus-visible, .cookie-banner__text a:focus-visible { outline: 3px solid #F49120; outline-offset: 2px; }
@media (max-width: 575px) {
  .cookie-banner { flex-direction: column; align-items: stretch; gap: 12px; bottom: 12px; width: calc(100% - 24px); }
  .cookie-banner__btn { flex: 1 1 0; padding: 12px; }
}

/* Privacy policy: cookie table + settings button */
.cookie-table { width: 100%; border-collapse: collapse; margin-top: 20px; font-size: 16px; }
.cookie-table th, .cookie-table td { border: 1px solid rgba(0,0,0,.2); padding: 10px 12px; text-align: left; vertical-align: top; }
.cookie-table th { background: #f6f6f6; font-weight: 500; color: #000; }
.cookie-table code { font-size: 14px; color: #000; }
.table-scroll { overflow-x: auto; }
.cookie-settings-btn { margin-top: 20px; padding: 12px 24px; border: 2px solid #000; border-radius: 12px; background: #000; color: #fff; font-weight: 500; cursor: pointer; }
.cookie-settings-btn:hover { background: #F49120; color: #000; }
@media (max-width: 575px) {
  /* stack the cookie table as labelled cards on phones */
  .cookie-table thead { position: absolute; left: -10000px; }
  .cookie-table, .cookie-table tbody, .cookie-table tr, .cookie-table td { display: block; width: 100%; }
  .cookie-table tr { border: 1px solid rgba(0,0,0,.2); border-radius: 12px; margin-bottom: 12px; padding: 6px 0; }
  .cookie-table td { border: 0; padding: 6px 14px; }
  .cookie-table td::before { content: attr(data-label); display: block; font-size: 13px; font-weight: 500; color: rgba(0,0,0,.55); }
}

/* About page: leadership cards (same black-outline card language as the work/service cards) */
.leader-card { height: 100%; display: flex; flex-direction: column; background: #fff; border: 2px solid #000; border-radius: 30px; box-shadow: 6px 6px 0 #000; overflow: hidden; }
.leader-card img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-bottom: 2px solid #000; }
.leader-card__body { flex: 1 1 auto; display: flex; flex-direction: column; padding: 24px 26px 26px; }
.leader-card__name { font-family: "Montserrat", sans-serif; font-weight: 900; font-size: 26px; line-height: 1.15; text-transform: uppercase; margin: 0 0 8px; color: #000; }
.leader-card__role { font-size: 17px; font-weight: 500; color: #000; margin: 0; line-height: 1.4; }
.leader-card__exp { display: inline-block; align-self: flex-start; margin: 12px 0 0; padding: 4px 12px; border-radius: 30px; background: #000; color: #fff; font-size: 13px; letter-spacing: .5px; text-transform: uppercase; line-height: 1.6; }
.leader-card__bio { font-size: 16px; line-height: 1.55; margin: 16px 0 0; color: rgba(0,0,0,.75); }
.leader-card__link { align-self: flex-start; margin-top: auto; padding-top: 18px; font-weight: 600; color: #000; text-decoration: underline; text-underline-offset: 3px; }
.leader-card__link:hover { color: #F49120; }
.leader-card__link:focus-visible { outline: 3px solid #F49120; outline-offset: 3px; border-radius: 4px; }
@media (max-width: 991px) { .leadership .col-md-6 + .col-md-6 { margin-top: 0; } .leadership .row > div { margin-bottom: 30px; } }

/* Footer: two offices */
.footer-office { margin-bottom: 18px; line-height: 1.6; }
.footer-office:last-child { margin-bottom: 0; }
.footer-office__city { display: inline-block; font-size: 13px; font-weight: 500; letter-spacing: 1px; text-transform: uppercase; opacity: .7; }

/* Contact page: offices */
.offices-jump { color: inherit; text-decoration: underline; text-underline-offset: 4px; }
.offices-jump:hover { color: #F49120; }
.offices-title { font-family: "Montserrat", sans-serif; font-weight: 900; font-size: 32px; text-transform: uppercase; text-align: center; margin: 0 0 30px; color: #000; }
.office-card { height: 100%; display: flex; flex-direction: column; padding: 26px 28px; background: #fff; border: 2px solid #000; border-radius: 24px; box-shadow: 6px 6px 0 #000; }
.office-card__city { margin: 0 0 12px; font-family: "Montserrat", sans-serif; font-weight: 900; font-size: 24px; text-transform: uppercase; color: #000; line-height: 1.2; }
.office-card__city span { display: block; margin-top: 4px; font-family: "Gordita", sans-serif; font-weight: 500; font-size: 13px; letter-spacing: 1px; opacity: .6; }
.office-card__address { margin: 0; font-style: normal; font-size: 18px; line-height: 1.6; color: rgba(0,0,0,.8); }
.office-card__link { align-self: flex-start; margin-top: auto; padding-top: 18px; font-weight: 600; color: #000; text-decoration: underline; text-underline-offset: 3px; }
.office-card__link:hover { color: #F49120; }
.office-card__link:focus-visible, .offices-jump:focus-visible { outline: 3px solid #F49120; outline-offset: 3px; border-radius: 4px; }
