/* ==========================================================================
   Components
   ========================================================================== */

/* ---- Buttons ---- */
.btn {
  --btn-bg: var(--graphite); --btn-fg: var(--white); --btn-bd: var(--graphite);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  padding: 0.95rem 1.7rem; font-family: var(--font-sans);
  font-weight: 700; font-size: 0.92rem; letter-spacing: 0.01em;
  background: var(--btn-bg); color: var(--btn-fg); border: 1px solid var(--btn-bd);
  border-radius: var(--radius); cursor: pointer; position: relative; overflow: hidden;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.lang-ar .btn { font-family: var(--font-ar); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn .ico { width: 1.05em; height: 1.05em; transition: transform var(--dur-fast) var(--ease); }
.btn:hover .ico { transform: translateX(3px); }
.lang-ar .btn:hover .ico { transform: translateX(-3px); }

.btn--accent { --btn-bg: var(--emerald); --btn-bd: var(--emerald); }
.btn--accent:hover { --btn-bg: var(--emerald-deep); --btn-bd: var(--emerald-deep); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--text); --btn-bd: var(--line-strong); }
.btn--ghost:hover { --btn-bg: var(--graphite); --btn-fg: var(--white); --btn-bd: var(--graphite); }
.btn--light { --btn-bg: var(--white); --btn-fg: var(--graphite); --btn-bd: var(--white); }
.on-dark .btn--ghost, .section--dark .btn--ghost { --btn-fg: var(--white); --btn-bd: var(--line-dark); }
.on-dark .btn--ghost:hover, .section--dark .btn--ghost:hover { --btn-bg: var(--white); --btn-fg: var(--graphite); }
.btn--sm { padding: 0.6rem 1.1rem; font-size: 0.82rem; }
.btn--block { width: 100%; }

/* Text-arrow link */
.arrow-link {
  display: inline-flex; align-items: center; gap: 0.55em;
  font-weight: 700; font-size: 0.92rem; letter-spacing: 0.01em; color: var(--text);
}
.arrow-link .ico { width: 1.1em; height: 1.1em; color: var(--emerald); transition: transform var(--dur-fast) var(--ease); }
.arrow-link:hover .ico { transform: translateX(4px); }
.lang-ar .arrow-link:hover .ico { transform: translateX(-4px); }
.on-dark .arrow-link { color: var(--white); }
.on-dark .arrow-link .ico { color: var(--metallic); }

/* ---- Top contact bar ---- */
.topbar {
  background: var(--graphite); color: var(--text-on-dark-soft);
  font-size: 0.8rem; letter-spacing: 0.02em;
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 40px; flex-wrap: wrap; }
.topbar a { color: var(--text-on-dark-soft); transition: color var(--dur-fast); }
.topbar a:hover { color: var(--white); }
.topbar__contact { display: flex; gap: 1.4rem; align-items: center; flex-wrap: wrap; }
.topbar__contact span, .topbar__contact a { display: inline-flex; align-items: center; gap: 0.45em; }
.topbar .ico { width: 0.95em; height: 0.95em; color: var(--metallic); }
.topbar__ext { color: var(--titanium); }

/* ---- Header ---- */
.header {
  position: fixed; inset-block-start: 0; inset-inline: 0; z-index: var(--z-header);
  transition: transform var(--dur) var(--ease), background var(--dur-fast) var(--ease),
    box-shadow var(--dur-fast) var(--ease), backdrop-filter var(--dur-fast);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: var(--header-h); }
.header[data-transparent="true"] { background: transparent; }
/* Interior pages (never transparent) get a solid cream bar so dark nav stays readable */
.header[data-transparent="false"],
.header[data-scrolled="true"] {
  background: rgba(244, 241, 234, 0.92); backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 var(--line);
}
.header[data-hidden="true"] { transform: translateY(-100%); }
.header.is-light-text[data-transparent="true"] .nav__link,
.header.is-light-text[data-transparent="true"] .header__brand-text,
.header.is-light-text[data-transparent="true"] .lang-switch a,
.header.is-light-text[data-transparent="true"] .burger { color: var(--white); }
.header.is-light-text[data-transparent="true"] .logo-mbi { filter: brightness(0) invert(1); opacity: 0.95; }

.brand { display: inline-flex; align-items: center; width: auto; height: auto; }
.logo-mbi { width: clamp(78px, 7vw, 104px); height: auto; object-fit: contain; display: block; }
.header[data-scrolled="true"] .logo-mbi { width: clamp(70px, 6vw, 92px); }
.header__brand-text { display: none; }

.nav { display: flex; align-items: center; gap: 0.3rem; }
.nav__link {
  position: relative; padding: 0.6rem 0.95rem; font-size: 0.9rem; font-weight: 600;
  color: var(--text); transition: color var(--dur-fast);
}
.lang-ar .nav__link { font-weight: 700; }
.nav__link::after {
  content: ""; position: absolute; inset-inline: 0.95rem; bottom: 0.35rem; height: 1px;
  background: var(--emerald); transform: scaleX(0); transform-origin: inline-start;
  transition: transform var(--dur-fast) var(--ease);
}
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__link:hover { color: var(--emerald); }

.has-mega { position: relative; }
.mega {
  position: absolute; inset-block-start: calc(100% + 0.4rem); inset-inline-start: 50%;
  transform: translateX(-50%) translateY(8px); width: min(760px, 88vw);
  background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  border-radius: var(--radius-lg); padding: 1.6rem; opacity: 0; visibility: hidden;
  transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.lang-ar .mega { inset-inline-start: auto; inset-inline-end: 50%; transform: translateX(50%) translateY(8px); }
.has-mega:hover .mega, .has-mega:focus-within .mega {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.lang-ar .has-mega:hover .mega, .lang-ar .has-mega:focus-within .mega { transform: translateX(50%) translateY(0); }
.mega__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.4rem 1.4rem; }
.mega__col-title { font-size: var(--fs-eyebrow); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--text-muted); margin: 0.4rem 0 0.6rem; font-weight: 700; }
.mega a { display: block; padding: 0.4rem 0; font-size: 0.88rem; font-weight: 600; color: var(--text-soft); transition: color var(--dur-fast); }
.mega a:hover { color: var(--emerald); }

.header__actions { display: flex; align-items: center; gap: 1rem; }
.lang-switch { display: inline-flex; gap: 0.35rem; font-size: 0.82rem; font-weight: 700; align-items: center; }
.lang-switch a { color: var(--text-muted); padding: 0.2rem 0.3rem; transition: color var(--dur-fast); }
.lang-switch a[aria-current] { color: var(--emerald); }
.lang-switch .sep { color: var(--line-strong); }

.burger { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; }
.burger span { position: relative; width: 22px; height: 2px; background: currentColor; transition: background var(--dur-fast); }
.burger span::before, .burger span::after { content: ""; position: absolute; inset-inline: 0; height: 2px; background: currentColor; transition: transform var(--dur-fast) var(--ease); }
.burger span::before { top: -7px; }
.burger span::after { top: 7px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

/* ---- Mobile menu ---- */
.mobile-menu {
  position: fixed; inset: 0; z-index: var(--z-overlay); background: var(--graphite); color: var(--white);
  display: flex; flex-direction: column; padding: calc(var(--header-h)) var(--gutter) var(--gutter);
  transform: translateX(100%); transition: transform var(--dur) var(--ease); overflow-y: auto;
}
.lang-ar .mobile-menu { transform: translateX(-100%); }
.mobile-menu[data-open="true"] { transform: translateX(0); }
.mobile-menu__list { margin-top: 1rem; }
.mobile-menu__list a { display: block; padding: 0.9rem 0; font-family: var(--font-serif); font-size: 1.6rem; border-bottom: 1px solid var(--line-dark); color: var(--white); }
.lang-ar .mobile-menu__list a { font-family: var(--font-ar); font-weight: 700; }
.mobile-menu__sub { padding: 0.2rem 0 0.8rem; }
.mobile-menu__sub a { font-family: var(--font-sans); font-size: 1rem; padding: 0.45rem 0; border: 0; color: var(--text-on-dark-soft); }
.lang-ar .mobile-menu__sub a { font-family: var(--font-ar); }
.mobile-menu__foot { margin-top: auto; padding-top: 1.5rem; color: var(--text-on-dark-soft); font-size: 0.9rem; }
.mobile-menu__foot a { color: var(--metallic); }

/* ---- Cards ---- */
.card { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease), border-color var(--dur); display: flex; flex-direction: column; }
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: var(--line-strong); }
.card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--stone); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.card:hover .card__media img { transform: scale(1.05); }
.card__badge { position: absolute; inset-block-start: 1rem; inset-inline-start: 1rem; background: rgba(24,26,27,0.82); color: var(--white); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.4rem 0.7rem; border-radius: 2px; backdrop-filter: blur(4px); }
.card__body { padding: 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.card__meta { font-size: 0.78rem; letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--text-muted); font-weight: 700; display: flex; gap: 0.6rem; flex-wrap: wrap; }
.card__title { font-family: var(--font-serif); font-size: 1.45rem; line-height: 1.1; }
.lang-ar .card__title { font-family: var(--font-ar); font-weight: 700; }
.card__desc { color: var(--text-soft); font-size: 0.95rem; }
.card__foot { margin-top: auto; padding-top: 1rem; }

/* Project card (editorial overlay variant) */
.pcard { display: block; position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--graphite); }
.pcard__media { aspect-ratio: 4 / 3; }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.pcard:hover .pcard__media img { transform: scale(1.06); }
.pcard__overlay { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(1.4rem, 2.2vw, 2.1rem); color: var(--white);
  background: linear-gradient(180deg, rgba(10,14,14,0.04) 0%, rgba(10,14,14,0.18) 38%, rgba(10,14,14,0.78) 74%, rgba(10,14,14,0.96) 100%); }
.pcard:hover .pcard__overlay { background: linear-gradient(180deg, rgba(10,14,14,0.10) 0%, rgba(10,14,14,0.30) 36%, rgba(10,14,14,0.84) 72%, rgba(10,14,14,0.97) 100%); }
.pcard__type { font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--metallic); font-weight: 800; }
.pcard__title { font-family: var(--font-serif); color: #fff; font-size: clamp(1.45rem, 1.1rem + 1.1vw, 2rem); line-height: 1.02; margin-top: 0.4rem; text-shadow: 0 1px 18px rgba(0,0,0,0.35); overflow-wrap: break-word; }
.lang-ar .pcard__title { font-family: var(--font-ar); font-weight: 700; }
.pcard__loc { font-size: 0.9rem; color: rgba(255,255,255,0.82); margin-top: 0.4rem; display: inline-flex; align-items: center; gap: 0.4em; }
.pcard__scope { color: rgba(255,255,255,0.82); }
.pcard__reveal { max-height: 0; overflow: hidden; opacity: 0; transition: max-height var(--dur) var(--ease), opacity var(--dur) var(--ease), margin var(--dur) var(--ease); }
.pcard:hover .pcard__reveal, .pcard:focus-visible .pcard__reveal { max-height: 120px; opacity: 1; margin-top: 0.9rem; }
.pcard__scope { font-size: 0.85rem; color: var(--text-on-dark-soft); }
.pcard__cta { margin-top: 0.8rem; display: inline-flex; align-items: center; gap: 0.5em; font-weight: 700; font-size: 0.85rem; color: var(--white); }
.pcard__cta .ico { color: var(--metallic); width: 1.1em; height: 1.1em; }

/* ---- Stats ---- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gutter); }
.stat__num { font-family: var(--font-serif); font-size: clamp(2.6rem, 1.6rem + 3vw, 4.6rem); line-height: 1; color: var(--text); }
.on-dark .stat__num, .section--dark .stat__num { color: var(--white); }
.stat__num .suffix { color: var(--emerald); }
.section--dark .stat__num .suffix, .on-dark .stat__num .suffix { color: var(--metallic); }
.stat__label { margin-top: 0.7rem; font-size: 0.86rem; color: var(--text-muted); letter-spacing: 0.02em; max-width: 22ch; }
.section--dark .stat__label { color: var(--text-on-dark-soft); }
.stat { padding-top: 1.2rem; border-top: 1px solid var(--line); }
.section--dark .stat, .on-dark .stat { border-color: var(--line-dark); }

/* ---- Breadcrumb ---- */
.breadcrumb { font-size: 0.82rem; color: var(--text-muted); display: flex; flex-wrap: wrap; gap: 0.5em; align-items: center; }
.breadcrumb a { color: var(--text-muted); transition: color var(--dur-fast); }
.breadcrumb a:hover { color: var(--emerald); }
.breadcrumb .sep { opacity: 0.5; }
.breadcrumb [aria-current] { color: var(--text); font-weight: 600; }
.on-dark .breadcrumb, .on-dark .breadcrumb a { color: var(--text-on-dark-soft); }
.on-dark .breadcrumb [aria-current] { color: var(--white); }

/* ---- Pills / chips ---- */
.pill { display: inline-flex; align-items: center; gap: 0.4em; padding: 0.4rem 0.9rem; border: 1px solid var(--line-strong); border-radius: 100px; font-size: 0.8rem; font-weight: 600; color: var(--text-soft); background: var(--white); }
.on-dark .pill { border-color: var(--line-dark); color: var(--text-on-dark-soft); background: transparent; }
.tag { display: inline-block; padding: 0.3rem 0.7rem; background: var(--stone); color: var(--text-soft); font-size: 0.76rem; font-weight: 700; letter-spacing: 0.04em; border-radius: 2px; }

/* ---- Accordion ---- */
.accordion__item { border-bottom: 1px solid var(--line); }
.accordion__trigger { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.3rem 0; text-align: start; font-weight: 700; font-size: 1.05rem; }
.accordion__trigger .ico { flex: none; width: 1.3em; height: 1.3em; color: var(--emerald); transition: transform var(--dur-fast) var(--ease); }
.accordion__trigger[aria-expanded="true"] .ico { transform: rotate(45deg); }
.accordion__panel { overflow: hidden; height: 0; transition: height var(--dur) var(--ease); }
.accordion__panel-inner { padding-block: 0 1.4rem; color: var(--text-soft); }
.accordion__panel-inner p { max-width: 72ch; }

/* ---- Footer ---- */
.footer { background: var(--graphite); color: var(--text-on-dark-soft); padding-top: clamp(3.5rem, 2rem + 5vw, 6rem); }
.footer a { color: var(--text-on-dark-soft); transition: color var(--dur-fast); }
.footer a:hover { color: var(--white); }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: clamp(2rem, 1rem + 3vw, 4rem); padding-bottom: 3rem; }
.footer__brand .logo-mbi { filter: brightness(0) invert(1); opacity: 0.95; width: clamp(104px, 11vw, 132px); height: auto; margin-bottom: 1.5rem; }
.footer__statement { max-width: 34ch; color: var(--text-on-dark-soft); font-size: 0.95rem; }
.footer__col-title { font-size: var(--fs-eyebrow); letter-spacing: var(--tracking-eyebrow); text-transform: uppercase; color: var(--metallic); font-weight: 700; margin-bottom: 1.3rem; }
.footer__list li { margin-bottom: 0.7rem; font-size: 0.92rem; }
.footer__contact li { display: flex; gap: 0.7em; margin-bottom: 0.9rem; font-size: 0.92rem; align-items: flex-start; }
.footer__contact .ico { flex: none; width: 1.1em; height: 1.1em; color: var(--metallic); margin-top: 0.2em; }
.footer__bottom { border-top: 1px solid var(--line-dark); padding-block: 1.6rem 2rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: 0.82rem; }
.footer__legal { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.to-top { display: inline-flex; align-items: center; gap: 0.5em; font-weight: 700; color: var(--metallic); }
.to-top .ico { width: 1.1em; height: 1.1em; }

/* ---- Forms ---- */
.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field label, .form-label { font-size: 0.84rem; font-weight: 700; letter-spacing: 0.01em; color: var(--text); }
.field .req { color: var(--emerald); }
.input, .select, .textarea {
  width: 100%; padding: 0.85rem 1rem; background: var(--white); border: 1px solid var(--line-strong);
  border-radius: var(--radius); font-size: 0.98rem; color: var(--text); transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.textarea { min-height: 130px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--emerald); box-shadow: 0 0 0 3px rgba(12,103,89,0.12); }
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: #b3261e; box-shadow: 0 0 0 3px rgba(179,38,30,0.12); }
.field__error { font-size: 0.8rem; color: #b3261e; font-weight: 600; min-height: 1em; }
.hint { font-size: 0.8rem; color: var(--text-muted); }

.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 0.7rem; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice__box { display: flex; align-items: center; gap: 0.6rem; padding: 0.9rem 1rem; border: 1px solid var(--line-strong); border-radius: var(--radius); font-weight: 600; font-size: 0.9rem; transition: border-color var(--dur-fast), background var(--dur-fast); height: 100%; }
.choice input:checked + .choice__box { border-color: var(--emerald); background: rgba(12,103,89,0.06); box-shadow: inset 0 0 0 1px var(--emerald); }
.choice input:focus-visible + .choice__box { outline: 2px solid var(--emerald); outline-offset: 2px; }
.choice__box .dot { width: 0.9rem; height: 0.9rem; border: 1px solid var(--line-strong); border-radius: 50%; flex: none; position: relative; }
.choice input[type="checkbox"] + .choice__box .dot { border-radius: 3px; }
.choice input:checked + .choice__box .dot { border-color: var(--emerald); background: var(--emerald); }
.choice input:checked + .choice__box .dot::after { content: ""; position: absolute; inset: 3px; background: var(--white); border-radius: inherit; }

.consent { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.88rem; color: var(--text-soft); }
.consent input { margin-top: 0.25rem; width: 1.1rem; height: 1.1rem; accent-color: var(--emerald); flex: none; }

/* Multi-step form */
.steps-nav { display: flex; gap: 0.4rem; margin-bottom: 2rem; flex-wrap: wrap; }
.steps-nav__item { flex: 1; min-width: 90px; }
.steps-nav__bar { height: 3px; background: var(--line); border-radius: 2px; overflow: hidden; }
.steps-nav__bar span { display: block; height: 100%; width: 0; background: var(--emerald); transition: width var(--dur) var(--ease); }
.steps-nav__item[data-done="true"] .steps-nav__bar span,
.steps-nav__item[data-active="true"] .steps-nav__bar span { width: 100%; }
.steps-nav__item[data-active="true"] .steps-nav__bar span { background: var(--metallic); }
.steps-nav__label { font-size: 0.74rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-muted); margin-top: 0.5rem; font-weight: 700; }
.steps-nav__item[data-active="true"] .steps-nav__label { color: var(--text); }
.form-step { display: none; }
.form-step[data-active="true"] { display: block; animation: fadeInUp var(--dur) var(--ease); }
.form-step__title { font-family: var(--font-serif); font-size: 1.6rem; margin-bottom: 0.4rem; }
.lang-ar .form-step__title { font-family: var(--font-ar); font-weight: 700; }
.form-actions { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2rem; }
.form-status { padding: 1.1rem 1.3rem; border-radius: var(--radius); font-weight: 600; margin-top: 1rem; }
.form-status[data-type="success"] { background: rgba(12,103,89,0.1); color: var(--emerald-deep); border: 1px solid rgba(12,103,89,0.3); }
.form-status[data-type="error"] { background: rgba(179,38,30,0.08); color: #8a1f17; border: 1px solid rgba(179,38,30,0.3); }
.dropzone { border: 1.5px dashed var(--line-strong); border-radius: var(--radius-lg); padding: 2rem; text-align: center; color: var(--text-muted); transition: border-color var(--dur-fast), background var(--dur-fast); cursor: pointer; }
.dropzone[data-hover="true"] { border-color: var(--emerald); background: rgba(12,103,89,0.04); }
.filelist { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.5rem; }
.filelist li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.6rem 0.9rem; background: var(--stone); border-radius: var(--radius); font-size: 0.85rem; }
.filelist button { color: #b3261e; font-weight: 700; }

/* CTA band */
.cta-band { background: var(--emerald); color: var(--white); border-radius: var(--radius-lg); padding: clamp(2rem, 1rem + 4vw, 4rem); display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; position: relative; overflow: hidden; }
.cta-band h2, .cta-band h3 { color: var(--white); }
.cta-band__grid { position: absolute; inset: 0; opacity: 0.12; background-image: linear-gradient(var(--white) 1px, transparent 1px), linear-gradient(90deg, var(--white) 1px, transparent 1px); background-size: 48px 48px; pointer-events: none; }

/* Floating mobile enquiry shortcut */
.fab { position: fixed; inset-block-end: 1rem; inset-inline-end: 1rem; z-index: var(--z-sidenav); display: none; }
.fab a { box-shadow: var(--shadow-lg); }

/* ==========================================================================
   Icon sizing system (base .ico = 1em is set in reset.css)
   ========================================================================== */
.topbar .ico { width: 14px; height: 14px; }
.nav .ico, .nav__link .ico { width: 15px; height: 15px; }
.btn .ico { width: 18px; height: 18px; }
.btn--sm .ico { width: 16px; height: 16px; }
.arrow-link .ico { width: 18px; height: 18px; }
.breadcrumb .ico { width: 13px; height: 13px; }
.pcard__loc .ico { width: 15px; height: 15px; }
.pcard__cta .ico { width: 17px; height: 17px; }
.pill .ico, .tag .ico { width: 15px; height: 15px; }
.footer__contact .ico { width: 18px; height: 18px; }
.to-top .ico { width: 16px; height: 16px; }
.accordion__trigger .ico { width: 22px; height: 22px; }
.search .ico { width: 18px; height: 18px; }
.view-toggle .ico { width: 18px; height: 18px; }
.hero__btn .ico, .hero__pause .ico { width: 20px; height: 20px; }
.lightbox__close .ico, .lightbox__nav .ico { width: 22px; height: 22px; }
.svc-index__item .ico { width: 18px; height: 18px; }
.bim-stack + * .ico, .map-marker .ico { width: 16px; height: 16px; }
.cta-band .ico { width: 18px; height: 18px; }

/* Refined icon badges (rounded-square, subtle tint) */
.value-card__ico {
  width: 56px; height: 56px; border-radius: 14px;
  background: color-mix(in srgb, var(--emerald) 10%, transparent);
  color: var(--emerald);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 1.3rem;
}
.value-card__ico .ico { width: 26px; height: 26px; }
.discipline__ico { width: 30px; height: 30px; color: var(--emerald); }
.discipline__ico .ico { width: 100%; height: 100%; }
.section--dark .value-card__ico { background: rgba(255,255,255,0.06); color: var(--metallic); }
.section--dark .discipline__ico { color: var(--metallic); }

/* ==========================================================================
   Forms on dark sections — readable labels + glass inputs
   ========================================================================== */
.section--dark .field label, .section--dark .form-label { color: var(--text-on-dark); }
.section--dark .hint { color: rgba(255,255,255,0.6); }
.section--dark .consent { color: var(--text-on-dark-soft); }
.section--dark .input,
.section--dark .select,
.section--dark .textarea {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.18);
  color: var(--white);
}
.section--dark .input::placeholder,
.section--dark .textarea::placeholder { color: rgba(255,255,255,0.48); }
.section--dark .input:focus,
.section--dark .select:focus,
.section--dark .textarea:focus {
  border-color: var(--metallic);
  background: rgba(255,255,255,0.1);
  box-shadow: 0 0 0 3px rgba(167,122,58,0.25);
}
.section--dark .field__error { color: #ffb4ac; }
.section--dark .consent input { accent-color: var(--metallic); }
.section--dark .choice__box { border-color: rgba(255,255,255,0.2); color: var(--text-on-dark); }

/* ==========================================================================
   Polish pass — header rhythm, hero CTAs on dark, card radius, sectors
   ========================================================================== */
/* Header: 3-column grid with truly centred nav */
.header__inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: clamp(1.5rem, 3vw, 3.5rem); }
.nav { justify-content: center; gap: clamp(0.4rem, 1.5vw, 1.4rem); }
.nav__link { padding: 0.6rem 0.5rem; font-size: 0.94rem; font-weight: 700; letter-spacing: 0.005em; }
.nav__link::after { inset-inline: 0.5rem; }
.header__actions { gap: 1.25rem; justify-content: flex-end; }
.logo-mbi { width: clamp(96px, 7vw, 128px); }
.header[data-scrolled="true"] .logo-mbi { width: clamp(88px, 6vw, 112px); }
.has-mega > .nav__link { gap: 0.4em; }

/* Hero / dark cinematic ghost buttons stay readable */
.hero .btn--ghost { --btn-fg: var(--white); --btn-bd: rgba(255,255,255,0.55); }
.hero .btn--ghost:hover { --btn-bg: var(--white); --btn-fg: var(--graphite); --btn-bd: var(--white); }
.hero .btn--light { box-shadow: 0 10px 30px rgba(0,0,0,0.25); }

/* Cards: rounded, consistent height, refined hover */
.pcard { border-radius: var(--radius-lg); }
.pcard__media img { transition: transform 0.7s var(--ease); }
.pcard:hover .pcard__media img { transform: scale(1.04); }
.card, .value-card, .sector-card { border-radius: var(--radius-lg); }

/* Sector cards: never look empty */
.sector-card { min-height: clamp(300px, 30vw, 400px); background: var(--charcoal); }
.sector-card img { width: 100%; height: 100%; object-fit: cover; }

/* Subtle layered shadow on light cards */
.card { box-shadow: var(--shadow-sm); }
.value-card { transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease); }
.value-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

/* Eyebrow accent line consistency on dark */
.section--dark .eyebrow::before, .section--charcoal .eyebrow::before { opacity: 0.8; }

/* ==========================================================================
   Strict icon caps (defensive) — no SVG can ever balloon
   ========================================================================== */
.ico { max-width: 40px; max-height: 40px; }
.pcard .ico, .card .ico { width: 15px; height: 15px; max-width: 15px; max-height: 15px; }
.pcard__cta .ico { width: 17px; height: 17px; max-width: 17px; max-height: 17px; }
.value-card__ico .ico { max-width: 28px; max-height: 28px; }

/* ==========================================================================
   Premium polish — section rhythm, card shadow, project grid gaps
   ========================================================================== */
.pcard { box-shadow: 0 10px 30px rgba(20,24,26,0.10); }
.pcard:hover { box-shadow: 0 26px 60px rgba(20,24,26,0.22); transform: translateY(-4px); transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease); }
.archive-grid, .grid-3 { gap: clamp(1.25rem, 2vw, 2.25rem); }
.pcard__media { aspect-ratio: 4 / 3; }

/* ==========================================================================
   HOMEPAGE HEADER (scoped to body.is-home) — slim topbar + balanced header
   Internal pages are unaffected.
   ========================================================================== */
.is-home { --topbar-h: 36px; --home-header-h: 86px; }

/* Slim utility topbar sits above the header, over the hero */
.is-home .topbar {
  position: absolute; inset-block-start: 0; inset-inline: 0; z-index: calc(var(--z-header) + 2);
  height: var(--topbar-h); min-height: var(--topbar-h);
  background: rgba(17, 22, 21, 0.92); font-size: 0.8rem;
}
.is-home .topbar__inner { min-height: var(--topbar-h); }

/* Header at top of home: absolute, just below the topbar, glass-dark */
.is-home .header[data-scrolled="false"] {
  position: absolute; inset-block-start: var(--topbar-h); inset-inline: 0;
  background: rgba(17, 22, 21, 0.32); backdrop-filter: blur(14px) saturate(1.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08); box-shadow: none;
}
.is-home .header[data-scrolled="false"] .header__inner { height: var(--home-header-h); }
.is-home .header[data-scrolled="false"] .nav__link,
.is-home .header[data-scrolled="false"] .lang-switch,
.is-home .header[data-scrolled="false"] .lang-switch a,
.is-home .header[data-scrolled="false"] .burger { color: rgba(255, 255, 255, 0.92); }
.is-home .header[data-scrolled="false"] .lang-switch a[aria-current] { color: var(--metallic); }
.is-home .header[data-scrolled="false"] .lang-switch .sep { color: rgba(255,255,255,0.4); }
.is-home .header[data-scrolled="false"] .logo-mbi { filter: brightness(0) invert(1); opacity: 0.96; }
.is-home .header[data-scrolled="false"] .nav__link:hover { color: #fff; }

/* Scrolled: fixed solid cream bar with dark text (works regardless of data-transparent) */
.is-home .header[data-scrolled="true"] {
  position: fixed; inset-block-start: 0;
  background: rgba(244, 241, 234, 0.96); backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid rgba(32, 32, 32, 0.08);
}
.is-home .header[data-scrolled="true"] .nav__link,
.is-home .header[data-scrolled="true"] .lang-switch,
.is-home .header[data-scrolled="true"] .lang-switch a,
.is-home .header[data-scrolled="true"] .burger { color: var(--text); }
.is-home .header[data-scrolled="true"] .logo-mbi { filter: none; }

/* Balanced alignment: logo | centred nav | actions */
.is-home .brand { min-width: 120px; }
.is-home .logo-mbi { width: clamp(96px, 6.5vw, 132px); max-height: 64px; }
.is-home .nav { gap: clamp(1.5rem, 2.2vw, 2.6rem); }
.is-home .nav__link { font-size: 15px; }
.is-home .has-mega > .nav__link { gap: 0.35em; }
.is-home .header__actions { gap: clamp(1rem, 1.6vw, 1.5rem); }
.is-home .header .btn--accent { min-height: 46px; padding-inline: 1.4rem; }

/* Hero clears the topbar + header */
.is-home .hero__inner { padding-top: calc(var(--topbar-h) + var(--home-header-h) + 2.5rem); }

@media (max-width: 1100px) {
  .is-home .nav { gap: 1.4rem; }
  .is-home .nav__link { font-size: 14px; }
}

@media (max-width: 900px) {
  .is-home .topbar { display: none; }
  .is-home .header[data-scrolled="false"] { inset-block-start: 0; }
  .is-home .header[data-scrolled="false"] .header__inner,
  .is-home .header[data-scrolled="true"] .header__inner { height: 68px; }
  .is-home .logo-mbi { width: 92px; max-height: 46px; }
  .is-home .hero__inner { padding-top: calc(68px + 2.5rem); }
}
