/* Public storefront. Keep the catalogue, enquiry forms and branch pages on one grid. */
:root {
  --ink: #112d55;
  --brand: #204e9d;
  --paper: #f6f6f1;
  --rule: #ced5da;
}
body { background: #fff; }
.site-skip { position: fixed; z-index: 100; inset: .5rem auto auto .5rem; padding: .7rem 1rem; background: white; color: var(--ink); transform: translateY(-160%); }
.site-skip:focus { transform: none; }
.supply-intro { background: var(--paper); color: var(--ink); }
.supply-intro-grid { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: clamp(2rem,5vw,6rem); min-height: calc(100svh - 6.8rem); padding-block: clamp(3rem,6vw,6rem); }
.supply-company { font-size: .95rem; font-weight: 700; margin-bottom: 1.35rem; }
.supply-intro h1 { font-size: clamp(3rem,5.2vw,5.4rem); line-height: 1.24; font-weight: 800; }
.supply-intro h1 span { display: block; color: var(--brand); }
.supply-lead { max-inline-size: 42ch; margin-block: 1.5rem 2rem; color: #415269; font-size: clamp(1rem,1.45vw,1.25rem); line-height: 1.85; }
.supply-actions { display: flex; gap: .8rem; flex-wrap: wrap; }
.supply-shortcuts { background: var(--ink); color: white; }
.supply-shortcuts > div { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; }
.supply-shortcuts a { display: flex; align-items: center; justify-content: space-between; padding-block: 1.25rem; font-weight: 700; }
.supply-shortcuts a + a { margin-inline-start: 2rem; padding-inline-start: 2rem; border-inline-start: 1px solid #526783; }
.supply-shortcuts a:hover { text-decoration: underline; text-underline-offset: .4em; }
:dir(rtl) .supply-shortcuts a span { transform: scaleX(-1); }
main .btn-primary, main .btn-secondary { border-radius: .375rem; box-shadow: none; transition: background-color .18s, transform .18s; }
main .btn-primary { background: var(--brand); color: white; }
main .btn-primary:hover { background: var(--ink); transform: translateY(-2px); box-shadow: none; }
main .btn-secondary { background: white; border: 1px solid #8795a4; color: var(--ink); }
main .btn-secondary:hover { background: #e8eef3; color: var(--ink); transform: translateY(-2px); }
main .btn-primary::before, main .btn-secondary::before { content: none; }
main .page-hero { min-height: auto; padding-block: clamp(3rem,7vw,7rem); background: var(--paper); border-block-end: 1px solid var(--rule); }
main .page-hero > .industrial-texture, main .page-hero::after { display: none; }
main .page-hero > .max-w-container { width: 100%; text-align: start; }
main .page-hero p { margin-inline: 0; }
main .glass-card, main .metallic-card, main .contact-form-panel, main .contact-info-card, main .certificate-card { border-radius: .5rem; box-shadow: none; }
main .glass-card, main .metallic-card { background: var(--paper); backdrop-filter: none; }
main .precision-grid { background-image: none; }
main article { scroll-margin-top: 7rem; }
@media (prefers-reduced-motion: no-preference) {
  [data-enter] { animation: supply-enter .5s ease-out both; }
  @keyframes supply-enter { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: none; } }
}
@media (max-width: 760px) {
  .supply-intro-grid { grid-template-columns: minmax(0,1fr); min-height: auto; gap: 1.6rem; padding-block: 2.2rem 1.5rem; }
  .supply-intro h1 { font-size: clamp(2.4rem,9vw,3.5rem); }
  .supply-company { margin-bottom: .8rem; }
  .supply-lead { margin-block: .9rem 1.2rem; }
  .supply-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .supply-actions a { padding-inline: .6rem; }
  .supply-shortcuts a + a { padding-inline-start: .85rem; margin-inline-start: .85rem; }
}
.wrap { width: 100%; max-width: 1400px; margin-inline: auto; padding-inline: 24px; }
#brand-range { scroll-margin-top: 7rem; }
.supply-sales { background: var(--paper); color: var(--ink); padding-block: clamp(3rem,7vw,7rem); }
.supply-sales-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; align-items: center; }
.supply-sales h2 { font-size: clamp(2rem,3.5vw,3.75rem); font-weight: 800; line-height: 1.25; }
.supply-sales p { max-inline-size: 42ch; margin-block: 1rem 1.5rem; line-height: 1.85; }
.supply-sales img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
@media (min-width: 761px) {
  .supply-intro-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
}
@media (max-width: 760px) {
  .supply-intro-grid { min-height: calc(100svh - 7.75rem); align-content: center; }
  .supply-sales-grid { grid-template-columns: minmax(0,1fr); }
}

/* Full-bleed workshop photograph and interactive product spread. */
.supply-intro {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #091b2e;
  color: #fff;
  --photo-direction: 90deg;
}
[dir="rtl"] .supply-intro { --photo-direction: 270deg; }
.intro-photograph { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.supply-intro::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(var(--photo-direction), rgb(4 17 32 / .96), rgb(4 17 32 / .81) 34%, rgb(4 17 32 / .12) 83%);
}
.supply-intro h1 { font-size: clamp(3.25rem,5.8vw,6.25rem); line-height: 1.18; }
.supply-intro h1 span { color: #ffce75; }
.supply-company { display: flex; align-items: center; gap: .8rem; }
.supply-company::before { content: ""; width: 2.3rem; height: 2px; background: #ffce75; }
.supply-lead { color: #e1e8ef; }
.supply-intro .btn-primary { background: #ffd17f; color: #102536; }
.supply-intro .btn-primary:hover { background: #ffe0a7; }
.supply-intro .btn-secondary { background: #102536b8; color: #fff; border-color: #afbecb; }
.supply-intro .btn-secondary:hover { background: #24405a; }
.oil-exhibit { scroll-margin-top: 6.8rem; padding-block: clamp(3.5rem,7vw,7rem); background: #f7f6f0; color: #122e4e; }
.exhibit-heading { display: flex; gap: 1rem; align-items: baseline; justify-content: space-between; margin-bottom: 1.75rem; }
.exhibit-heading h2 { font-size: clamp(2.2rem,4.5vw,4.8rem); line-height: 1.25; font-weight: 800; }
.exhibit-heading a { display: inline-flex; align-items: center; gap: .6em; min-height: 44px; color: #254f82; font-weight: 700; text-decoration: underline; text-underline-offset: .35em; }
.exhibit-grid { position: relative; display: grid; grid-template-columns: repeat(var(--exhibits), minmax(0,1fr)); min-width: 0; }
.exhibit-grid > label {
  grid-row: 1; display: grid; place-items: center; min-height: 52px; padding: .45rem .25rem;
  cursor: pointer; color: #465a69; border-block: 1px solid #afbdc6; font-weight: 700;
}
.exhibit-grid > label:hover { background: #e2e7e7; }
.exhibit-choice:checked + label { color: white; background: #183954; box-shadow: inset 0 -3px #ebba66; }
.exhibit-choice:focus-visible + label { outline: 3px solid #c47915; outline-offset: -4px; }
.exhibit-panel { display: none; grid-row: 2; grid-column: 1/-1; min-width: 0; background: #fff; border: 1px solid #cdd5d8; border-top: 0; }
.exhibit-choice:checked + label + .exhibit-panel { display: grid; grid-template-columns: 1.15fr 1fr; }
.exhibit-stage {
  position: relative; isolation: isolate; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(ellipse at 50% 35%,#f5f6f1 0%,#dfe6e4 58%,#bccaca 100%);
}
.exhibit-wordmark { position: absolute; z-index: -1; color: #7d9497; opacity: .28; font: italic 800 clamp(4rem,9vw,10rem)/1 Georgia,serif; }
.exhibit-stage::after { content: ""; position: absolute; bottom: 8%; width: 35%; height: 8%; z-index: -1; background: #586d6b55; border-radius: 50%; filter: blur(13px); }
.exhibit-stage img { width: 85%; height: clamp(21rem,37vw,34rem); object-fit: contain; padding-block: 1.5rem; }
.exhibit-details { padding: clamp(1.6rem,4.2vw,4.5rem); align-self: center; min-width: 0; }
.exhibit-category { color: #516777; font-weight: 700; }
.exhibit-details h3 { margin-block: .85rem; font-size: clamp(2rem,3.7vw,4rem); line-height: 1.07; font-weight: 800; overflow-wrap: anywhere; }
.exhibit-description { max-width: 42ch; color: #40556b; line-height: 1.85; }
.exhibit-specs { display: flex; flex-wrap: wrap; gap: .4rem .85rem; padding-block: 1rem; margin-block: 1rem 1.4rem; border-block: 1px solid #d7dddf; font-size: .9rem; font-weight: 700; }
.exhibit-specs:empty { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .intro-photograph { animation: workshop-focus 1.35s ease-out both; }
  .exhibit-choice:checked + label + article img { animation: bottle-arrive .55s cubic-bezier(.2,.75,.25,1) both; }
  .exhibit-choice:checked + label + article .exhibit-details { animation: supply-enter .38s ease-out both; }
  .exhibit-grid > label { transition: background-color .2s, color .2s; }
  @keyframes workshop-focus { from { transform: scale(1.045); } to { transform: none; } }
  @keyframes bottle-arrive { from { opacity: .15; transform: translateY(15px) rotate(-3deg) scale(.96); } to { opacity: 1; transform: none; } }
}
@media (max-width: 760px) {
  .supply-intro-grid { min-height: clamp(32rem,75svh,45rem); align-content: end; padding-block-end: 3rem; }
  .supply-intro::before { background: linear-gradient(to top,#06172afc 0%,#06172ae8 37%,#06172a50 100%); }
  .intro-photograph { object-position: 50% 25%; }
  .supply-intro h1 { font-size: clamp(2.6rem,9vw,4rem); }
  .exhibit-choice:checked + label + .exhibit-panel { grid-template-columns: minmax(0,1fr); }
  .exhibit-stage img { height: clamp(15rem,33svh,21rem); padding-block: .8rem; }
  .exhibit-heading { flex-wrap: wrap; gap: .25rem 1rem; }
  .exhibit-heading a, .exhibit-grid > label { font-size: .85rem; }
  .exhibit-details { padding: 1.35rem; }
  .exhibit-details h3 { font-size: clamp(1.7rem,6vw,2.5rem); }
}

/* Interior pages share the home page palette, image treatment and motion. */
main .company-cover { isolation: isolate; position: relative; overflow: hidden; background: #0b2239; color: white; --cover-direction: 90deg; }
[dir="rtl"] .company-cover { --cover-direction: 270deg; }
.cover-photo { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 46%; }
.company-cover::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(var(--cover-direction),#081b2dfc 4%,#0b2239ed 36%,#0b22395c 85%); }
.company-cover-plain::before { border-inline-end: clamp(.5rem,2vw,2rem) solid #e3b263; }
.cover-inner { padding-block: clamp(3rem,6vw,6rem); }
.cover-inner > span:first-child { color: #ffce75; background: none; border: 0; padding: 0; }
.cover-inner h1, .story-masthead h1 { color: white; max-width: 22ch; font-size: clamp(2.5rem,5vw,5rem); font-weight: 800; line-height: 1.2; text-wrap: balance; }
.cover-inner > p { margin: 1rem 0 0; max-width: 54ch; color: #e3ebf1; line-height: 1.85; }
.cover-action, .cover-secondary { display: inline-flex; min-height: 44px; align-items: center; gap: 1rem; margin-block-start: 1.4rem; padding: .7rem 1.15rem; font-weight: 700; border-radius: .375rem; }
.cover-action { color: #0c2538; background: #ffd17f; }
.cover-action:hover { background: #ffe2b3; }
.cover-secondary { color: #fff; border: 1px solid #adbdcd; margin-inline-end: .75rem; }
main :is(section,article,form)[id] { scroll-margin-top: 7.5rem; }
.directory-search { max-width: 40rem; margin-block: 0 1.5rem; }
.directory-search label { display: grid; gap: .5rem; color: #163855; font-weight: 700; }
.directory-search input { width: 100%; min-height: 48px; padding: .7rem 1rem; border: 1px solid #7e909c; border-radius: .4rem; background: white; }
.directory-search p:not(:empty) { margin-block-start: .6rem; color: #324b60; }
[data-search-value][hidden] { display: none; }
.policy-index { display: grid; padding: .75rem 1.5rem; border-inline-start: 3px solid #d99f46; background: #eef2f1; }
.policy-index a { padding-block: .75rem; border-bottom: 1px solid #ccd6d8; color: #183855; font-weight: 700; }
.policy-index a:last-child { border: 0; }
.policy-index a:hover { text-decoration: underline; }
main .story-masthead { background: #102e49; border-inline-start: .4rem solid #efbe6a; padding: clamp(1.5rem,4vw,3rem); border-radius: .4rem; }
main .story-masthead h1 { color: #fff; }
main .story-masthead p, main .story-masthead .thmanyah-post-meta :is(span,div) { color: #e6edf2; }
main .status-page { background: #f6f5ee; border-block-start: .35rem solid #e6b05c; }
main .status-page h1 { color: #153653; }
main .input-field:focus-visible { outline: 2px solid #28619a; outline-offset: 2px; }
main .thmanyah-news-card:hover { border-color: #8c9ca6; }
@media (prefers-reduced-motion: no-preference) {
    .cover-inner, .story-masthead, .status-page h1 { animation: supply-enter .48s ease-out both; }
    .cover-photo { animation: workshop-focus 1.1s ease-out both; }
    .cover-action { transition: transform .2s, background-color .2s; }
    .cover-action:hover { transform: translateY(-2px); }
}
@media(max-width: 760px) {
    .company-cover::before { background: linear-gradient(var(--cover-direction),#081b2df5,#081b2db8); }
    .cover-inner { padding-block: 2.75rem; }
    main :is(section,article,form)[id] { scroll-margin-top: 5rem; }
}

/* Scroll reveal: hidden state applies only once reveal.js runs (desktop, motion allowed) */
@media (min-width: 1024px) {
  .reveal-on [data-aos] { opacity: 0; transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1); }
  .reveal-on [data-aos="fade-up"] { transform: translateY(28px); }
  .reveal-on [data-aos="fade-right"] { transform: translateX(-32px); }
  .reveal-on [data-aos="fade-left"] { transform: translateX(32px); }
  .reveal-on [data-aos="fade-down"] { transform: translateY(-20px); }
  [dir="rtl"].reveal-on [data-aos="fade-right"] { transform: translateX(32px); }
  [dir="rtl"].reveal-on [data-aos="fade-left"] { transform: translateX(-32px); }
  .reveal-on [data-aos].is-in { opacity: 1; transform: none; }
}

/* Desktop nav: keep every item on one line between 1024px and 1279px */
header nav a { white-space: nowrap; }
@media (min-width: 1024px) and (max-width: 1279px) {
  header nav.lg\:flex a { padding-inline: .55rem; font-size: .8125rem; }
  header a > img[alt="ZUREX"] { max-width: 150px; height: 2.75rem; }
}

/* Oil finder (oils page) */
.oil-finder { padding-block: clamp(3rem,6vw,5rem); background: #fff; border-block-end: 1px solid #e2e8f0; }
.oil-finder-note { margin-top: .75rem; max-width: 46rem; color: #475569; font-size: .95rem; line-height: 1.8; }
.oil-finder-step { margin-top: 2rem; border: 0; padding: 0; }
.oil-finder-step legend { margin-bottom: .9rem; font-weight: 800; font-size: 1.05rem; color: #051C4D; }
.oil-finder-or { margin: 1.25rem 0 .75rem; color: #475569; font-size: .9rem; font-weight: 600; }
.oil-finder-chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.oil-chip { min-height: 44px; padding: .6rem 1.1rem; border: 1.5px solid #cbd5e1; border-radius: .75rem; background: #fff; color: #1e293b; font-weight: 700; cursor: pointer; transition: border-color .2s, background-color .2s, color .2s, transform .2s; }
.oil-chip:hover { border-color: #1A3775; color: #1A3775; }
.oil-chip[aria-pressed="true"] { border-color: #1A3775; background: #1A3775; color: #fff; }
.oil-chip-wide { display: flex; flex-direction: column; align-items: flex-start; gap: .15rem; text-align: start; }
.oil-chip-wide small { font-weight: 500; font-size: .78rem; opacity: .8; }
.oil-finder-results { margin-top: 2.25rem; padding-top: 2rem; border-top: 1px solid #e2e8f0; }
.oil-finder-count { margin-bottom: 1.25rem; font-weight: 800; color: #051C4D; }
.oil-finder-results > .btn-primary { margin-top: 1rem; display: inline-flex; }
.oil-finder-specs { margin-top: .75rem; display: flex; flex-wrap: wrap; gap: .35rem; }
.oil-finder-specs span { padding: .15rem .5rem; border-radius: .4rem; background: #F3F3F3; color: #334155; font-size: .72rem; font-weight: 700; }
@media (prefers-reduced-motion: no-preference) { .oil-finder-results article { animation: supply-enter .4s ease-out both; } }

/* 3D branch map (homepage, resources/views/public/branch-map.blade.php) */
.ksa3d { position: relative; }
.ksa3d-stage { position: relative; transition: transform .35s cubic-bezier(.22,1,.36,1); will-change: transform; }
.ksa3d svg { display: block; width: 100%; height: auto; overflow: visible; }
.ksa3d-pins { list-style: none; margin: 0; padding: 0; }
.ksa3d-pins > li { position: absolute; transform: translate(-50%, -34px); z-index: 1; } /* 34px = pin tip, so the tip marks the exact location */
.ksa3d-pins > li:hover, .ksa3d-pins > li:focus-within, .ksa3d-pins > li.is-open { z-index: 5; }
.ksa3d-pin { position: relative; display: flex; flex-direction: column; align-items: center; min-width: 44px; min-height: 44px; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; text-decoration: none; }
.ksa3d-pin:focus-visible { outline: none; }
/* glossy teardrop standing on the map, with a ground shadow and pulse ring */
.ksa3d-head { position: relative; width: 26px; height: 26px; margin-top: 4px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: radial-gradient(circle at 35% 30%, #ffe1a6 0 12%, #F8B34B 38%, #b9761a 100%); box-shadow: inset -3px -3px 6px rgba(0,0,0,.25), 0 6px 10px rgba(3,12,36,.45); transition: transform .25s cubic-bezier(.22,1,.36,1); }
.ksa3d-head::after { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: #051C4D; box-shadow: inset 0 1px 2px rgba(0,0,0,.5); }
.ksa3d-head b { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; transform: rotate(45deg); color: #fff; font-size: .7rem; font-weight: 900; }
.ksa3d-pin::before { content: ""; position: absolute; top: 33px; left: 50%; width: 18px; height: 7px; translate: -50% 0; border-radius: 50%; background: rgba(3,12,36,.55); filter: blur(1.5px); }
.ksa3d-pin:hover .ksa3d-head, .ksa3d-pin:focus-visible .ksa3d-head, .is-open .ksa3d-head { transform: translateY(-6px) rotate(-45deg) scale(1.12); }
.ksa3d-pin:focus-visible .ksa3d-head { box-shadow: 0 0 0 3px #fff, 0 0 0 5px #F8B34B; }
.ksa3d-label { margin-top: 6px; padding: .1rem .45rem; border-radius: .35rem; background: rgba(5,28,77,.72); color: #fff; font-size: .72rem; font-weight: 800; line-height: 1.5; white-space: nowrap; backdrop-filter: blur(2px); }
.ksa3d-tip { position: absolute; bottom: calc(100% + 2px); left: 50%; translate: -50% 4px; padding: .35rem .65rem; border-radius: .45rem; background: #fff; color: #051C4D; font-size: .75rem; font-weight: 800; white-space: nowrap; box-shadow: 0 8px 24px rgba(3,12,36,.3); opacity: 0; pointer-events: none; transition: opacity .15s, translate .15s; }
.ksa3d-pin:hover .ksa3d-tip, .ksa3d-pin:focus-visible .ksa3d-tip { opacity: 1; translate: -50% 0; }
.ksa3d-pop { position: absolute; bottom: calc(100% + 4px); left: 50%; translate: -50% 0; min-width: 13rem; margin: 0; padding: .4rem; list-style: none; border-radius: .75rem; background: #fff; box-shadow: 0 16px 40px rgba(3,12,36,.35); }
.ksa3d-pop a { display: flex; justify-content: space-between; align-items: center; gap: .75rem; min-height: 44px; padding: .5rem .7rem; border-radius: .5rem; color: #051C4D; font-weight: 800; font-size: .85rem; text-decoration: none; }
.ksa3d-pop a:hover, .ksa3d-pop a:focus-visible { background: #F3F3F3; outline: none; }
.ksa3d-pop small { color: #b9761a; font-weight: 700; font-size: .72rem; white-space: nowrap; }
.ksa3d-credit { margin-top: .25rem; color: #94a3b8; font-size: .65rem; text-align: center; }
@media (prefers-reduced-motion: no-preference) {
  .ksa3d-pin::after { content: ""; position: absolute; top: 28px; left: 50%; width: 34px; height: 14px; translate: -50% 0; border-radius: 50%; border: 2px solid rgba(248,179,75,.75); animation: ksa-ping 2.6s ease-out infinite; }
  .ksa3d-pins > li:nth-child(even) .ksa3d-pin::after { animation-delay: 1.3s; }
  @keyframes ksa-ping { 0% { transform: scale(.4); opacity: 1; } 80%, 100% { transform: scale(1.9); opacity: 0; } }
}
@media (max-width: 640px) {
  .ksa3d-head { width: 20px; height: 20px; }
  .ksa3d-head::after { inset: 6px; }
  .ksa3d-pins > li { transform: translate(-50%, -28px); }
  .ksa3d-pin::before { top: 26px; }
  .ksa3d-pin::after { top: 22px !important; }
  .ksa3d-label { font-size: .6rem; padding: 0 .3rem; }
}
/* label beside the pin for close pairs; physical left/right because the map itself is never mirrored */
.ksa3d-pin.label-west .ksa3d-label, .ksa3d-pin.label-east .ksa3d-label { position: absolute; top: 8px; margin: 0; }
.ksa3d-pin.label-west .ksa3d-label { right: calc(50% + 14px); }
.ksa3d-pin.label-east .ksa3d-label { left: calc(50% + 14px); }
/* give the map more room beside the sales text on desktop */
@media (min-width: 761px) { .supply-sales-grid:has(.ksa3d) { grid-template-columns: minmax(0,.75fr) minmax(0,1.25fr); } }
.ksa3d { container-type: inline-size; overflow-x: clip; }
.ksa3d-list { display: none; }
@container (max-width: 520px) {
  .ksa3d-label, .ksa3d-tip { display: none; }
  .ksa3d-head { width: 16px; height: 16px; }
  .ksa3d-head::after { inset: 5px; }
  .ksa3d-head b { font-size: .55rem; }
  .ksa3d-pins > li { transform: translate(-50%, -24px); }
  .ksa3d-pin::before { top: 21px; width: 12px; height: 5px; }
  .ksa3d-pin::after { top: 18px !important; width: 24px !important; height: 10px !important; }
  .ksa3d-list { display: flex; flex-wrap: wrap; gap: .4rem; margin: .75rem 0 0; padding: 0; list-style: none; }
  .ksa3d-list a { display: inline-flex; align-items: center; min-height: 44px; padding: .3rem .7rem; border: 1px solid #cbd5e1; border-radius: 999px; background: #fff; color: #051C4D; font-size: .78rem; font-weight: 700; text-decoration: none; }
  .ksa3d-list a::after { content: "↗"; margin-inline-start: .35rem; color: #b9761a; }
}
/* 3D map on the branches page */
.branches-map-section { padding-block: clamp(3rem,6vw,5rem) 1rem; background: var(--paper); }
.branches-map-wrap { max-width: 960px; margin-inline: auto; }
@media (prefers-reduced-motion: no-preference) { .ksa3d-pop { animation: ksa-pop .18s ease-out; } @keyframes ksa-pop { from { opacity: 0; translate: -50% 6px; } } }

/* ==========================================================================
   Site-wide polish & motion (2026-11 redesign). One easing + duration set for everything.
   Movement only under prefers-reduced-motion: no-preference; reveal states only under html.reveal-on.
   ========================================================================== */
:root { --ease-out: cubic-bezier(.22,1,.36,1); --ease-in: cubic-bezier(.55,0,1,.45); --t-fast: .18s; --t-base: .35s; --t-slow: .7s; --gold: #F8B34B; --gold-soft: #ffd17f; --navy: #051C4D; }

/* Reading progress bar (created by reveal.js) */
.scroll-progress { position: fixed; z-index: 70; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--gold), #ffe2b3, var(--gold)); transform: scaleX(0); transform-origin: left; pointer-events: none; }
[dir="rtl"] .scroll-progress { transform-origin: right; }

/* Header: frosted glass once the page scrolls */
body > header { transition: background-color var(--t-base), box-shadow var(--t-base), backdrop-filter var(--t-base); view-transition-name: site-header; }
.is-scrolled body > header, .is-scrolled body > header > div.bg-white { background-color: rgb(255 255 255 / .82); }
.is-scrolled body > header { backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 10px 30px -12px rgb(5 28 77 / .25); }
/* Nav: gold underline grows from the centre on hover / current page */
header nav.lg\:flex a { position: relative; }
header nav.lg\:flex a::after { content: ""; position: absolute; inset: auto 22% 4px; height: 2px; border-radius: 2px; background: var(--gold); transform: scaleX(0); transition: transform var(--t-base) var(--ease-out); }
header nav.lg\:flex a:hover::after, header nav.lg\:flex a.\!text-rheinol-blue::after { transform: scaleX(1); }

/* Buttons: light sweep, lift, press */
main .btn-primary, main .btn-secondary, .cover-action, .cover-secondary { position: relative; overflow: hidden; isolation: isolate; transition: transform var(--t-fast) var(--ease-out), background-color var(--t-fast), box-shadow var(--t-base); }
main .btn-primary::after, .cover-action::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(110deg, transparent 30%, rgb(255 255 255 / .45) 50%, transparent 70%); transform: translateX(-120%); }
main .btn-primary:hover, .cover-action:hover { box-shadow: 0 12px 28px -10px rgb(5 28 77 / .45); }
main :is(.btn-primary, .btn-secondary):active, :is(.cover-action, .cover-secondary):active { transform: translateY(0) scale(.97); }

/* Cards: one lift + shadow language for every card type */
main article.group, main .certificate-card, main .portfolio-panel, main .glass-card, main .ksa3d-list a, main .oil-chip { transition: transform var(--t-base) var(--ease-out), box-shadow var(--t-base) var(--ease-out), border-color var(--t-base); }
main article.group:hover, main .certificate-card:hover, main .portfolio-panel:hover { transform: translateY(-6px); box-shadow: 0 22px 44px -18px rgb(5 28 77 / .35); border-color: rgb(248 179 75 / .55); }
main article.group img, main .portfolio-media img { transition: transform .6s var(--ease-out); }
main article.group:hover img { transform: scale(1.05); }

/* Section titles: gold bar draws in when the title reveals */
.section-title .bar { transform-origin: center; transition: transform .8s var(--ease-out) .15s; }
@media (min-width: 1024px) { .reveal-on .section-title[data-aos]:not(.is-in) .bar { transform: scaleX(0); } }

/* Homepage shortcuts: arrow nudges toward the link */
.supply-shortcuts a span { display: inline-block; transition: transform var(--t-base) var(--ease-out); }
.supply-shortcuts a:hover span { transform: translate(3px, -3px); }
:dir(rtl) .supply-shortcuts a:hover span { transform: scaleX(-1) translate(3px, -3px); }

/* Footer: links slide slightly and turn brand blue */
footer a { transition: color var(--t-fast), transform var(--t-fast) var(--ease-out); }
footer nav a:hover, footer ul a:hover { color: #1A3775; transform: translateX(3px); }
[dir="rtl"] footer nav a:hover, [dir="rtl"] footer ul a:hover { transform: translateX(-3px); }
footer > div:first-child { height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  /* Hero + page covers: content rises in line by line instead of as one block */
  .supply-intro-copy[data-enter], .cover-inner { animation: none; }
  .supply-intro-copy > *, .cover-inner > * { animation: rise-in var(--t-slow) var(--ease-out) both; }
  .supply-intro-copy > :nth-child(2), .cover-inner > :nth-child(2) { animation-delay: .09s; }
  .supply-intro-copy > :nth-child(3), .cover-inner > :nth-child(3) { animation-delay: .18s; }
  .supply-intro-copy > :nth-child(4), .cover-inner > :nth-child(4) { animation-delay: .27s; }
  .supply-intro-copy > :nth-child(n+5), .cover-inner > :nth-child(n+5) { animation-delay: .36s; }
  @keyframes rise-in { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

  /* Gold headline word gets one slow shimmer pass after it lands */
  .supply-intro h1 span { background: linear-gradient(100deg, #ffce75 0 40%, #fff3d6 50%, #ffce75 60% 100%) 0 0 / 250% 100% no-repeat; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer-once 2.4s var(--ease-out) .9s both; }
  @keyframes shimmer-once { from { background-position: 100% 0; } to { background-position: 0 0; } }

  /* Button sweep plays on hover */
  main .btn-primary:hover::after, .cover-action:hover::after { transform: translateX(120%); transition: transform .7s var(--ease-out); }
  main .btn-primary:hover, main .btn-secondary:hover, .cover-action:hover, .cover-secondary:hover { transform: translateY(-2px); }

  /* Cross-page transition (supported browsers only; others just navigate) */
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: page-out .2s var(--ease-in) both; }
  ::view-transition-new(root) { animation: page-in .38s var(--ease-out) both; }
  @keyframes page-out { to { opacity: 0; transform: translateY(-8px); } }
  @keyframes page-in { from { opacity: 0; transform: translateY(12px); } }
}
/* Parallax room: photos are taller than their frame so the scroll shift never shows an edge */
@media (prefers-reduced-motion: no-preference) {
  .intro-photograph, .cover-photo { top: -12%; height: 124%; will-change: translate; }
}
