/* DM shared extras: icons, back-to-top, footer, newsletter. Concepts restyle these through the custom properties and their own style.css. */

/* ---------- icons ---------- */
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn .ic, .fab .ic, .dock .ic { width: 18px; height: 18px; }
.fab .ic, .dock__wa .ic { width: 20px; height: 20px; }

/* ---------- back to top (base look; every concept re-skins it) ---------- */
.to-top { position: fixed; z-index: 47; inset-inline-end: 28px; bottom: 96px; width: 52px; height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0; border: 2px solid transparent; border-radius: 50%; background: var(--btn-bg); color: var(--btn-fg); box-shadow: 0 10px 26px -8px rgba(0, 0, 0, .45); font-family: var(--f-body); font-weight: 700; font-size: 13px; line-height: 1; opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity .3s ease, transform .3s ease, visibility 0s linear .3s, filter .2s; }
.to-top.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity .3s ease, transform .3s ease, visibility 0s; }
.to-top:hover { filter: brightness(1.12); }
.to-top__ic { display: inline-flex; transition: transform .25s ease; }
.to-top:hover .to-top__ic { transform: translateY(-3px); }
.to-top__lb { display: none; }
/* two-tone halo so the button stays visible over any section colour (light, dark or the same colour as the button) */
.to-top::after { content: ""; position: absolute; inset: -6px; border-radius: inherit; border: 3px solid var(--bg); outline: 2px solid var(--fg); pointer-events: none; }
@media (max-width: 759px) { .to-top { inset-inline-end: 14px; bottom: calc(86px + env(safe-area-inset-bottom)); width: 46px; height: 46px; } }

/* ---------- footer ---------- */
.ft { width: 100%; display: flex; flex-direction: column; gap: clamp(28px, 4vw, 48px); }
.ft__top { display: grid; grid-template-columns: 1.5fr 1fr 1.1fr 1.3fr; gap: 36px clamp(24px, 4vw, 56px); }
.ft__brand { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.ft__brand img { width: 150px; height: auto; }
.ft__brand p { font-size: 15px; line-height: 1.75; max-width: 38ch; }
.ft__tag { font-family: var(--font-en-head); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: 12px !important; }
.ft h2 { font-family: var(--f-head); font-weight: var(--f-head-w); font-size: 20px; line-height: 1.3; margin-bottom: 14px; }
.ft__col ul { display: flex; flex-direction: column; gap: 2px; }
.ft__col a { display: inline-block; padding: 5px 0; min-height: 28px; font-size: 15px; line-height: 1.5; border-bottom: 1.5px solid transparent; transition: border-color .2s; }
.ft__col a:hover { border-bottom-color: currentColor; }
.ft__contact li { display: flex; gap: 12px; align-items: flex-start; padding: 5px 0; font-size: 15px; line-height: 1.5; }
.ft__contact .ic { margin-top: 3px; width: 18px; height: 18px; }
.ft__social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.ft__social a { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1.5px solid currentColor; border-radius: var(--ft-ic-radius, 50%); transition: background-color .2s, color .2s, transform .2s; }
.ft__social a:hover { background: currentColor; transform: translateY(-3px); }
.ft__social a:hover .ic { color: var(--ft-bg, #000); }
.ft__news { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 12px 40px; align-items: end; padding: clamp(20px, 3vw, 32px) 0; border-block: 1px solid color-mix(in srgb, currentColor 30%, transparent); }
.ft__news h2 { margin-bottom: 6px; font-size: clamp(22px, 2.4vw, 30px); }
.ft__news p { font-size: 15px; line-height: 1.7; max-width: 52ch; }
.ft__news .nl { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.ft__bar { padding-inline-end: 84px; display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; font-size: 14px; }
.ft__bar ul { display: flex; gap: 20px; flex-wrap: wrap; }
.ft__bar a { display: inline-block; padding: 4px 0; text-decoration: underline; text-underline-offset: 4px; }

/* ---------- newsletter form (footer + pop-up) ---------- */
.nl label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.nl__row { display: flex; gap: 10px; }
.nl input { flex: 1; min-width: 0; min-height: 52px; padding: 0 18px; border-radius: var(--radius-field, 14px); border: 1.5px solid color-mix(in srgb, currentColor 72%, transparent); background: color-mix(in srgb, currentColor 8%, transparent); color: inherit; font-size: 16px; }
.nl input::placeholder { opacity: .7; }
.nl input:focus { outline: 3px solid var(--focus); outline-offset: 2px; border-color: currentColor; }
.nl input[aria-invalid="true"] { border-style: dashed; border-width: 2.5px; }
.nl__btn { min-height: 52px; padding: 0 22px; background: var(--nl-btn-bg, var(--ft-fg, #EED9BE)); color: var(--nl-btn-fg, var(--ft-bg, #000)); border: 2px solid transparent; }
.nl__msg { min-height: 1.6em; margin-top: 8px; font-size: 14px; font-weight: 700; }
.nl__msg.is-err::before { content: "\26A0\00A0"; }
.nl__msg.is-ok::before { content: "\2713\00A0"; }

/* pop-up */
.nl-sheet { max-width: 520px; gap: 14px; text-align: start; --nl-btn-bg: var(--modal-btn-bg); --nl-btn-fg: var(--modal-btn-fg); --bg: var(--modal-bg); --focus: var(--modal-accent); }
.nl__x { position: absolute; top: 16px; inset-inline-end: 16px; }
.nl__ic { width: 56px; height: 56px; border-radius: 50%; background: var(--modal-btn-bg); color: var(--modal-btn-fg); display: inline-flex; align-items: center; justify-content: center; }
.nl__ic .ic { width: 26px; height: 26px; }
.nl__title { font-size: clamp(28px, 4vw, 40px) !important; margin-top: 0 !important; padding-inline-end: 40px; }
.nl__text { font-size: 17px; line-height: 1.7; }
.nl__no { align-self: flex-start; background: none; border: 0; padding: 10px 4px; min-height: 44px; font-size: 15px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; color: inherit; }
.nl__note { font-size: 13px; opacity: .85; }

@media (max-width: 1000px) { .ft__top { grid-template-columns: 1fr 1fr; } .ft__news { grid-template-columns: 1fr; } .ft__news .nl { grid-column: 1; grid-row: auto; } }
@media (max-width: 759px) { .ft__bar { padding-inline-end: 0; } }
@media (max-width: 599px) { .ft__top { grid-template-columns: 1fr; } .nl__row { flex-direction: column; } .nl__btn { width: 100%; } .ft__bar { flex-direction: column; } }
@media (prefers-reduced-motion: reduce) { .to-top { transition: none; } }

/* ---------- page loader (shared base; each concept draws its own scene in .ld) ---------- */
.loader { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; overflow: hidden; background: var(--bg); color: var(--fg); --p: 0; transition: opacity .5s ease, transform .9s cubic-bezier(.7, 0, .2, 1), clip-path .9s cubic-bezier(.7, 0, .2, 1); }
html.no-loader .loader, html:not(.js) .loader { display: none; }
html.is-loaded .loader { pointer-events: none; }
.loader .lg-d { display: none; }
[data-theme="dark"] .loader .lg-l { display: none; }
[data-theme="dark"] .loader .lg-d { display: block; }
[data-lang="ar"] .l-en, [data-lang="en"] .l-ar { display: none; }
.ld { position: relative; }
@media (prefers-reduced-motion: reduce) { .loader, .loader * { animation: none !important; } }
