/* ==========================================================================
   Marafi Al Tamyeez — design system
   Engineering clarity: paper white · deep navy · logo teal. Flat colour, square edges.
   RTL-first with logical properties; LTR for /en/.
   ========================================================================== */

:root {
  --navy-950: #0e1b2e;
  --navy-900: #13253f;
  --navy-800: #1b3150;
  --navy-700: #26426a;
  --blue: #3a598a;        /* logo blue */
  --teal: #58a79f;        /* logo teal — accents on dark, rules, icons */
  --teal-700: #2c726b;    /* teal for text/buttons on light (AA) */
  --teal-800: #235e58;
  --teal-50: #e9f4f2;
  --paper: #f4f6f5;
  --paper-2: #e9edec;
  --white: #ffffff;
  --ink: #142033;
  --text: #1e2a3a;
  --muted: #566273;
  --on-dark: #eef3f8;
  --on-dark-muted: rgba(238, 243, 248, 0.72);
  --line: rgba(20, 32, 51, 0.12);
  --line-strong: rgba(20, 32, 51, 0.22);
  --line-dark: rgba(238, 243, 248, 0.14);
  --wa: #15803d;

  --f-head: 'Readex Pro', 'Noto Sans Arabic', system-ui, sans-serif;
  --f-body: 'Noto Sans Arabic', 'Readex Pro', system-ui, sans-serif;
  --head-weight: 600;
  --tracking: 0;

  --r: 2px;
  --r-frame: 56px;
  --shadow: 0 18px 40px -26px rgba(14, 27, 46, 0.45);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --hdr-h: 76px;
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --sec: clamp(64px, 9vw, 120px);
  --flip: -1; /* arrows point left in RTL */
}
html[dir='ltr'] { --flip: 1; }
html[lang='en'] {
  --f-head: 'Archivo', 'Inter', system-ui, sans-serif;
  --f-body: 'Inter', system-ui, sans-serif;
  --head-weight: 700;
  --tracking: -0.015em;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr-h) + 16px); }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text);
  background: var(--white);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
html[lang='en'] body { line-height: 1.65; font-size: 1rem; }
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--f-head); font-weight: var(--head-weight); letter-spacing: var(--tracking); line-height: 1.3; color: var(--ink); margin: 0 0 0.5em; }
html[lang='en'] :is(h1, h2, h3) { line-height: 1.15; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--teal-700); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--navy-900); color: #fff; padding: 10px 16px; }
.skip:focus { top: 12px; }
.ico { flex: none; }
[data-flip] { transform: scaleX(var(--flip)); }
.wrap { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.sec { padding-block: var(--sec); }
.sec--paper { background: var(--paper); }
.sec--navy { background: var(--navy-800); color: var(--on-dark); }
.sec--navy :is(h2, h3) { color: #fff; }
.sec--grid { background-color: var(--paper); background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 48px 48px; background-position: -1px -1px; }

/* ---------- type ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px; font-family: var(--f-head); font-weight: 600; font-size: 0.875rem; color: var(--teal-700); letter-spacing: 0.02em; }
html[lang='en'] .eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.75rem; }
.eyebrow::before { content: ''; width: 10px; height: 10px; background: var(--teal); flex: none; }
.eyebrow__num { font-family: 'Archivo', var(--f-head); color: var(--blue); }
.eyebrow--light { color: var(--teal); }
.shead { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.shead--center { margin-inline: auto; text-align: center; }
.shead--center .eyebrow { justify-content: center; }
.shead__t { font-size: clamp(1.8rem, 3.8vw, 3rem); margin: 0; text-wrap: balance; }
.shead__t::after { content: ''; display: block; width: 56px; height: 3px; margin-top: 18px; background: var(--teal); }
.shead--center .shead__t::after { margin-inline: auto; }
.shead__p { margin: 16px 0 0; color: var(--muted); font-size: 1.0625rem; }
.shead--light .shead__t { color: #fff; }
.shead--light .shead__p { color: var(--on-dark-muted); }
.lead { font-size: 1.15rem; color: var(--muted); }

/* ---------- buttons ---------- */
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 22px; border: 1px solid transparent; border-radius: var(--r);
  font-family: var(--f-head); font-weight: 600; font-size: 0.98rem; line-height: 1.2; cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn--sm { min-height: 42px; padding: 8px 16px; font-size: 0.92rem; }
.btn--primary { background: var(--teal-700); color: #fff; }
.btn--primary:hover { background: var(--teal-800); }
.btn--navy { background: var(--navy-800); color: #fff; }
.btn--navy:hover { background: var(--navy-900); }
.btn--ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); }
.btn--outline-light { border-color: rgba(255, 255, 255, 0.45); color: #fff; }
.btn--outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, 0.06); }
.btn--wa { background: var(--wa); color: #fff; }
.link { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-head); font-weight: 600; color: var(--teal-700); border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.tag { display: inline-block; font-size: 0.75rem; font-weight: 600; padding: 2px 8px; background: var(--teal-50); color: var(--teal-800); border-radius: var(--r); }

/* ---------- header ---------- */
.hdr { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
/* No backdrop-filter here: it turns the header into the containing block of the fixed phone menu, which then shrinks to the header. */
.hdr.is-scrolled { box-shadow: 0 6px 24px -18px rgba(14, 27, 46, 0.5); }
.hdr__in { display: flex; align-items: center; gap: 24px; height: var(--hdr-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.brand__mark { width: 38px; height: 44px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-family: var(--f-head); font-weight: 700; font-size: 1.15rem; color: var(--navy-800); }
.brand__sub { font-size: 0.78rem; color: var(--muted); }
.brand--light .brand__name { color: #fff; }
.brand--light .brand__sub { color: var(--on-dark-muted); }
.nav { margin-inline-start: auto; }
.nav__list { display: flex; list-style: none; gap: 4px; }
.nav__list a { display: block; padding: 8px 12px; font-family: var(--f-head); font-weight: 500; font-size: 0.95rem; color: var(--text); border-bottom: 2px solid transparent; }
.nav__list a:hover { color: var(--teal-700); }
.nav__list a[aria-current='page'] { color: var(--navy-800); border-bottom-color: var(--teal); }
.nav__n, .nav__list a > .ico, .nav__foot { display: none; }
.hdr__actions { display: flex; align-items: center; gap: 10px; }
.lang { display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; font-size: 0.9rem; font-weight: 500; color: var(--muted); }
.lang:hover { color: var(--ink); }
.burger { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border: 1px solid var(--line-strong); background: #fff; border-radius: var(--r); cursor: pointer; }
.burger[aria-expanded='true'] { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }

/* ---------- phone / tablet menu: a navy panel under the header that fits one screen ---------- */
@media (max-width: 1080px) {
  .burger { display: inline-flex; }
  .hdr__call span { display: none; }
  .hdr__call { padding-inline: 12px; }
  html.js .nav {
    position: fixed; z-index: 49; top: var(--hdr-h); inset-inline: 0; bottom: 0; margin: 0;
    display: flex; flex-direction: column; padding: clamp(4px, 1.5svh, 16px) var(--gutter) calc(clamp(12px, 2.5svh, 24px) + env(safe-area-inset-bottom));
    background: var(--navy-900); overflow-y: auto; overscroll-behavior: contain;
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity 0.25s, transform 0.3s var(--ease), visibility 0.25s;
  }
  html.js .nav.is-open { visibility: visible; opacity: 1; transform: none; }
  html.js .nav::before { content: ''; position: absolute; top: 0; bottom: 0; inset-inline-end: 12%; width: 56px; background: var(--teal); opacity: 0.07; transform: skewX(-24deg); pointer-events: none; }
  html[dir='rtl'].js .nav::before { transform: skewX(24deg); }
  html.js .nav__list { position: relative; flex-direction: column; gap: 0; }
  html.js .nav__list li { border-bottom: 1px solid var(--line-dark); opacity: 0; transform: translateY(6px); transition: opacity 0.3s var(--ease), transform 0.4s var(--ease); }
  html.js .nav.is-open .nav__list li { opacity: 1; transform: none; transition-delay: calc(var(--i) * 35ms + 40ms); }
  html.js .nav__list a { display: flex; align-items: center; gap: 16px; padding: clamp(7px, 1.9svh, 16px) 4px; border: 0; color: #fff; font-size: clamp(1.05rem, 2.6svh, 1.3rem); font-weight: 600; line-height: 1.4; }
  html.js .nav__list a:hover { color: var(--teal); }
  html.js .nav__n { display: inline-block; min-width: 22px; font-family: 'Archivo', sans-serif; font-weight: 600; font-size: 0.8rem; color: var(--teal); }
  html.js .nav__list a > .ico { display: block; margin-inline-start: auto; width: 18px; height: 18px; color: var(--on-dark-muted); transform: scaleX(var(--flip)); transition: transform 0.25s var(--ease); }
  html.js .nav__list a:hover > .ico { transform: scaleX(var(--flip)) translateX(4px); }
  html.js .nav__list a[aria-current='page'] { color: var(--teal); box-shadow: inset calc(var(--flip) * 3px) 0 0 var(--teal); padding-inline-start: 14px; }
  html.js .nav__list a[aria-current='page'] > .ico { color: var(--teal); }
  html.js .nav__foot { position: relative; display: grid; gap: 14px; margin-top: auto; padding-top: clamp(14px, 3svh, 28px); }
  .nav__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .nav__social { display: flex; justify-content: center; gap: 12px; list-style: none; }
  .nav__social .bchip { width: 44px; height: 44px; transition: transform 0.25s var(--ease); }
  .nav__social .bchip:hover { transform: translateY(-2px); }
  .nav__follow { margin: 0; text-align: center; font-family: var(--f-head); font-weight: 600; font-size: 0.85rem; color: var(--on-dark-muted); }
  body.nav-open { overflow: hidden; }
}
@media (max-width: 760px) {
  /* The phone contact bar (call · WhatsApp · More) stays visible under the menu, so the menu stops above it. */
  html.js .nav { bottom: calc(58px + env(safe-area-inset-bottom)); }
  .nav__btns { display: none; }
}
@media (max-width: 1080px) and (max-height: 620px) {
  /* Short screens (e.g. 320×568): drop the label so the seven links and icons still fit without scrolling. */
  .nav__follow { display: none; }
  html.js .nav__foot { padding-top: 10px; }
}
@media (max-width: 420px) {
  .brand__sub { display: none; }
  .lang span { display: none; }
}

/* Without JavaScript the menu cannot open, so on small screens it shows as a wrapped row of links. */
@media (max-width: 1080px) {
  html:not(.js) .burger { display: none; }
  html:not(.js) .hdr__in { flex-wrap: wrap; height: auto; padding-block: 10px; row-gap: 6px; }
  html:not(.js) .nav { order: 3; flex-basis: 100%; margin: 0; }
  html:not(.js) .nav__list { flex-direction: row; flex-wrap: wrap; }
  html:not(.js) .nav__list a { padding: 4px 8px; font-size: 0.95rem; border: 0; }
}

/* ---------- home hero ---------- */
.hero { position: relative; background: var(--navy-900); color: var(--on-dark); overflow: hidden; isolation: isolate; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); min-height: min(86vh, 780px); }
.hero__copy { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: center; padding: clamp(48px, 7vw, 96px) var(--gutter); padding-inline-start: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))); }
.hero__h { font-size: clamp(2.1rem, 5.2vw, 4rem); color: #fff; margin-bottom: 20px; }
.hero__h em { font-style: normal; color: var(--teal); }
.hero__lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--on-dark-muted); max-width: 560px; margin-bottom: 32px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line-dark); list-style: none; font-size: 0.92rem; color: var(--on-dark-muted); }
.hero__facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero__facts .ico { color: var(--teal); }
.hero__media { position: relative; overflow: hidden; } /* keeps the zoom/parallax photo inside its box */
.hero__media picture, .hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__media::before { /* diagonal navy edge, echoing the profile cover */
  content: ''; position: absolute; z-index: 1; inset-block: 0; inset-inline-start: -1px; width: 22%;
  background: var(--navy-900); clip-path: polygon(0 0, 100% 0, 0 100%);
}
html[dir='rtl'] .hero__media::before { clip-path: polygon(0 0, 100% 0, 100% 100%); }
.hero__stripes { position: absolute; z-index: 1; inset: 0; pointer-events: none; }
.hero__stripes::before, .hero__stripes::after { content: ''; position: absolute; top: -20%; height: 140%; width: 64px; background: var(--teal); opacity: 0.18; transform: skewX(-24deg); inset-inline-start: 46%; }
.hero__stripes::after { width: 22px; opacity: 0.35; inset-inline-start: calc(46% + 92px); background: var(--blue); }
html[dir='rtl'] .hero__stripes::before, html[dir='rtl'] .hero__stripes::after { transform: skewX(24deg); }
.hero__badge { position: absolute; z-index: 2; inset-block-start: 20px; inset-inline-end: 20px; display: flex; align-items: center; gap: 10px; margin: 0; padding: 8px 14px; max-width: 300px; background: rgba(14, 27, 46, 0.72); color: #fff; line-height: 1.35; border-inline-start: 3px solid var(--teal); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.hero__badge .ico { flex: none; color: var(--teal); width: 20px; height: 20px; }
.hero__badge b { display: block; font-family: var(--f-head); font-weight: 600; font-size: 0.88rem; }
.hero__badge-s { display: block; font-size: 0.76rem; color: var(--on-dark-muted); }
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; min-height: 0; }
  .hero__media { order: -1; aspect-ratio: 4 / 3; }
  .hero__media::before { display: none; }
  .hero__copy { padding-block: 40px 56px; padding-inline: var(--gutter); }
  .hero__stripes { display: none; }
  .hero__badge { inset-block-start: auto; inset-block-end: 12px; inset-inline-end: 12px; padding: 6px 12px; }
  .hero__badge-s { display: none; }
}

/* ---------- inner page hero ---------- */
.phero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--navy-900); color: var(--on-dark); min-height: 420px; }
.phero__media { position: relative; order: 2; overflow: hidden; }
.phero__media picture, .phero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.phero__panel { position: relative; display: flex; align-items: center; }
.phero__panel::after { content: ''; position: absolute; z-index: 1; inset-block: 0; inset-inline-end: -80px; width: 80px; background: var(--navy-900); clip-path: polygon(0 0, 100% 0, 0 100%); }
html[dir='rtl'] .phero__panel::after { clip-path: polygon(0 0, 100% 0, 100% 100%); }
.phero__in { position: relative; z-index: 2; padding: clamp(40px, 6vw, 72px) var(--gutter); padding-inline-start: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))); max-width: 760px; }
.phero__h { font-size: clamp(1.9rem, 4vw, 3rem); color: #fff; margin-bottom: 16px; }
.phero__lead { color: var(--on-dark-muted); font-size: 1.1rem; margin-bottom: 24px; }
.phero .crumbs { margin-bottom: 20px; }
.phero__meta { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 0.9rem; color: var(--on-dark-muted); margin-bottom: 8px; }
.phero--text { grid-template-columns: 1fr; min-height: 0; }
@media (max-width: 860px) {
  .phero { grid-template-columns: 1fr; min-height: 0; }
  .phero__media { order: 0; aspect-ratio: 16 / 9; }
  .phero__panel::after { display: none; }
  .phero__in { padding-inline: var(--gutter); }
}

/* ---------- breadcrumbs ---------- */
.crumbs ol { display: flex; flex-wrap: wrap; list-style: none; gap: 6px; font-size: 0.85rem; color: var(--on-dark-muted); }
.crumbs li + li::before { content: '/'; margin-inline-end: 6px; opacity: 0.5; }
.crumbs a:hover { color: #fff; }
.crumbs--dark ol { color: var(--muted); }
.crumbs--dark a:hover { color: var(--ink); }

/* ---------- credentials ---------- */
.creds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; border: 1px solid var(--line); background: #fff; }
.creds__i { display: grid; grid-template-columns: auto 1fr; grid-template-areas: 'icon label' 'icon issuer' 'icon num' 'icon valid' 'icon link'; column-gap: 16px; align-content: start; padding: 24px; }
.creds__i + .creds__i { border-inline-start: 1px solid var(--line); }
.creds__icon { grid-area: icon; display: grid; place-items: center; width: 48px; height: 48px; background: var(--teal-50); color: var(--teal-700); }
.creds__icon .ico { width: 26px; height: 26px; }
.creds__label { grid-area: label; font-family: var(--f-head); font-weight: 600; color: var(--ink); line-height: 1.4; }
.creds__issuer { grid-area: issuer; font-size: 0.9rem; color: var(--muted); }
.creds__num { grid-area: num; margin-top: 8px; font-family: 'Archivo', var(--f-head); font-size: 1.15rem; letter-spacing: 0.04em; color: var(--navy-800); }
.creds__valid { grid-area: valid; font-size: 0.85rem; color: var(--muted); }
.creds__link { grid-area: link; display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 0.88rem; font-weight: 600; color: var(--teal-700); }
.creds__link .ico { width: 14px; height: 14px; }
.creds__link:hover { text-decoration: underline; }
@media (max-width: 860px) {
  .creds { grid-template-columns: 1fr; }
  .creds__i + .creds__i { border-inline-start: 0; border-top: 1px solid var(--line); }
  .creds:not(.creds--detailed) .creds__i { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: 'icon label link' 'icon num link'; column-gap: 14px; align-items: center; padding: 14px 16px; }
  .creds:not(.creds--detailed) .creds__icon { width: 40px; height: 40px; }
  .creds:not(.creds--detailed) .creds__icon .ico { width: 22px; height: 22px; }
  .creds:not(.creds--detailed) .creds__label { font-size: 0.95rem; }
  .creds:not(.creds--detailed) .creds__issuer { display: none; }
  .creds:not(.creds--detailed) .creds__num { margin: 0; font-size: 1rem; }
  .creds:not(.creds--detailed) .creds__link { margin: 0; font-size: 0.82rem; }
}
.creds-band { position: relative; margin-top: -48px; z-index: 3; }
@media (max-width: 900px) { .creds-band { margin-top: 0; padding-top: 32px; } }

/* ---------- service cards ---------- */
.sgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); border-inline-start: 1px solid var(--line); }
.scard { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 28px 26px 26px; background: #fff; border-bottom: 1px solid var(--line); border-inline-end: 1px solid var(--line); transition: background-color 0.25s; }
.scard::after { content: ''; position: absolute; inset-inline: 0; bottom: -1px; height: 3px; background: var(--teal); transform: scaleX(0); transform-origin: var(--origin, right); transition: transform 0.35s var(--ease); }
html[dir='ltr'] .scard { --origin: left; }
.scard:hover { background: var(--paper); }
.scard:hover::after { transform: scaleX(1); }
.scard__num { position: absolute; top: 20px; inset-inline-end: 22px; font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 0.85rem; color: var(--line-strong); }
@media (max-width: 960px) { .sgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .sgrid { grid-template-columns: 1fr; } }
.scard__icon { display: grid; place-items: center; width: 52px; height: 52px; background: var(--navy-800); color: var(--teal); }
.scard__icon .ico { width: 26px; height: 26px; }
.scard__t { font-size: 1.15rem; margin: 10px 0 0; }
.scard__p { font-size: 0.95rem; color: var(--muted); margin: 0; flex: 1; }
.scard__more { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; font-family: var(--f-head); font-weight: 600; font-size: 0.9rem; color: var(--teal-700); }
.scard__more .ico { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.scard:hover .scard__more .ico { transform: scaleX(var(--flip)) translateX(4px); }

/* ---------- headline service photo cards ---------- */
.sfeats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.sfeat { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; isolation: isolate; background: var(--navy-900); color: #fff; border-start-start-radius: var(--r-frame); }
.sfeat__media, .sfeat__media picture, .sfeat__media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.sfeat__media img { object-fit: cover; transition: transform 0.8s var(--ease); }
.sfeat:hover .sfeat__media img { transform: scale(1.05); }
.sfeat::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(14, 27, 46, 0.97) 0%, rgba(14, 27, 46, 0.82) 38%, rgba(14, 27, 46, 0.3) 62%, rgba(14, 27, 46, 0) 80%); }
.sfeat::before { content: ''; position: absolute; z-index: 2; inset-inline: 0; bottom: 0; height: 4px; background: var(--teal); transform: scaleX(0); transform-origin: var(--origin, right); transition: transform 0.45s var(--ease); }
html[dir='ltr'] .sfeat { --origin: left; }
.sfeat:hover::before { transform: scaleX(1); }
.sfeat__body { position: absolute; z-index: 2; inset-inline: 0; bottom: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: clamp(20px, 2.4vw, 30px); }
.sfeat__num { display: inline-flex; align-items: center; gap: 10px; font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 0.85rem; color: var(--teal); }
.sfeat__num::after { content: ''; width: 32px; height: 2px; background: currentColor; }
.sfeat__t { margin: 0; color: #fff; font-size: clamp(1.3rem, 2vw, 1.65rem); }
.sfeat__p { font-size: 0.95rem; line-height: 1.6; color: var(--on-dark-muted); }
.sfeat__more { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; padding-bottom: 2px; border-bottom: 2px solid var(--teal); font-family: var(--f-head); font-weight: 600; font-size: 0.92rem; }
.sfeat__more .ico { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.sfeat:hover .sfeat__more .ico { transform: scaleX(var(--flip)) translateX(4px); }
@media (max-width: 900px) { .sfeats { grid-template-columns: 1fr; gap: 16px; } .sfeat { aspect-ratio: 16 / 9; } }
@media (max-width: 600px) { .sfeat { aspect-ratio: 4 / 3; } }
@media (max-width: 380px) { .sfeat { aspect-ratio: 1; } }

.stiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.stile { display: flex; align-items: center; gap: 14px; min-height: 84px; padding: 16px 18px; background: #fff; border: 1px solid var(--line); transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s var(--ease); }
.stile:hover { border-color: var(--teal); box-shadow: var(--shadow); transform: translateY(-2px); }
.stile__icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; background: var(--navy-800); color: var(--teal); transition: background-color 0.25s, color 0.25s; }
.stile:hover .stile__icon { background: var(--teal-700); color: #fff; }
.stile__icon .ico { width: 22px; height: 22px; }
.stile__t { flex: 1; margin: 0; font-family: var(--f-head); font-weight: 600; font-size: 1rem; line-height: 1.4; color: var(--ink); }
.stile > .ico { flex: none; width: 16px; height: 16px; color: var(--teal-700); transition: transform 0.25s var(--ease); }
.stile:hover > .ico { transform: scaleX(var(--flip)) translateX(4px); }
.stile--all { background: var(--navy-800); border-color: var(--navy-800); }
.stile--all .stile__t { color: #fff; }
.stile--all .stile__icon, .stile--all:hover .stile__icon { background: var(--teal-700); color: #fff; }
.stile--all > .ico { color: var(--teal); }
@media (max-width: 1080px) { .stiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .stiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
  .stile { flex-direction: column; align-items: flex-start; gap: 10px; min-height: 0; padding: 14px; }
  .stile__icon { width: 40px; height: 40px; }
  .stile__t { font-size: 0.95rem; }
  .stile > .ico { display: none; }
}

/* ---------- photo frame (one rounded corner, from the profile) ---------- */
.frame { position: relative; overflow: hidden; border-start-start-radius: var(--r-frame); border: 1px solid var(--navy-800); }
.frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.frame:hover img { transform: scale(1.03); }
.frame--tall { aspect-ratio: 4 / 5; }
.frame--wide { aspect-ratio: 16 / 10; }

/* ---------- split / feature ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.split--rev > :first-child { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split--rev > :first-child { order: 0; } }
.checks { list-style: none; display: grid; gap: 12px; margin: 24px 0; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks .ico { color: var(--teal-700); margin-top: 4px; }
.sec--navy .checks .ico { color: var(--teal); }
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); }
.pillar { padding: 28px; background: var(--navy-800); transition: background-color 0.25s; }
.pillar:hover { background: var(--navy-700); }
.pillar h3 { font-size: 1.1rem; color: #fff; display: flex; gap: 10px; align-items: center; }
.pillar h3 .ico { color: var(--teal); }
.pillar p { color: var(--on-dark-muted); margin: 0; font-size: 0.95rem; }

/* ---------- process timeline ---------- */
.steps { list-style: none; counter-reset: step; display: grid; gap: 0; position: relative; }
.step { position: relative; display: grid; grid-template-columns: 72px minmax(0, 1fr) minmax(0, 0.9fr); gap: 24px 32px; padding: 32px 0; border-top: 1px solid var(--line); align-items: start; }
.step__n { font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 2.2rem; line-height: 1; color: var(--teal-700); }
.step__t { font-size: 1.3rem; margin-bottom: 8px; }
.step__p { color: var(--muted); margin: 0; }
.step__media { aspect-ratio: 16 / 10; overflow: hidden; border: 1px solid var(--line); }
.step__media img { width: 100%; height: 100%; object-fit: cover; }
.step--noimg { grid-template-columns: 72px minmax(0, 1fr); }
@media (max-width: 760px) {
  .step, .step--noimg { grid-template-columns: 48px minmax(0, 1fr); }
  .step__media { grid-column: 2; }
  .step__n { font-size: 1.6rem; }
}
.steps--compact { grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); gap: 16px; padding-top: 32px; }
.steps--compact::before { content: ''; position: absolute; top: 0; inset-inline: 0; height: 3px; background: var(--navy-800); }
.steps--compact .step { display: block; padding: 24px 22px 26px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--teal); transition: box-shadow 0.25s, transform 0.25s var(--ease); }
.steps--compact .step:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.steps--compact .step::before { content: ''; position: absolute; top: -38px; inset-inline-start: 18px; width: 16px; height: 16px; background: var(--teal); border: 3px solid var(--paper); box-shadow: 0 0 0 2px var(--navy-800); }
.steps--compact .step::after { content: ''; position: absolute; top: -22px; inset-inline-start: 25px; width: 2px; height: 22px; background: var(--line-strong); }
.steps--compact .step__n { font-size: 2.4rem; font-weight: 800; color: var(--teal-700); margin-bottom: 14px; }
.steps--compact .step__t { font-size: 1.15rem; margin-bottom: 8px; }
.steps--compact .step__p { font-size: 0.93rem; line-height: 1.65; }
@media (max-width: 960px) { .steps--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) {
  .steps--compact { grid-template-columns: 1fr; gap: 12px; padding-top: 0; padding-inline-start: 28px; }
  .steps--compact::before { top: 0; bottom: 0; inset-inline: 7px auto; width: 3px; height: auto; }
  .steps--compact .step { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 4px 14px; padding: 18px; border-top-width: 1px; border-inline-start: 3px solid var(--teal); }
  .steps--compact .step::before { top: 22px; inset-inline-start: -27px; width: 14px; height: 14px; }
  .steps--compact .step::after { display: none; }
  .steps--compact .step__n { grid-row: span 2; align-self: start; font-size: 1.8rem; margin: 0; }
  .steps--compact .step__t { margin: 0; }
}

/* ---------- gallery ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip { min-height: 44px; padding: 8px 18px; border: 1px solid var(--line-strong); background: #fff; border-radius: var(--r); cursor: pointer; font-family: var(--f-head); font-weight: 500; }
.chip[aria-pressed='true'] { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 960px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .gallery { grid-template-columns: 1fr; } }
.gcard { margin: 0; background: #fff; border: 1px solid var(--line); transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s var(--ease); }
.gcard:hover { border-color: var(--teal); box-shadow: var(--shadow); transform: translateY(-3px); }
.gcard[hidden] { display: none; }
.gcard__btn { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; aspect-ratio: 4 / 3; overflow: hidden; }
.gcard__btn img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.gcard__btn:hover img { transform: scale(1.04); }
.gcard__cap { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px 16px; font-size: 0.92rem; color: var(--muted); }
.lightbox { padding: 0; border: 0; max-width: min(1200px, 94vw); max-height: 92vh; background: transparent; }
.lightbox::backdrop { background: rgba(14, 27, 46, 0.9); }
.lightbox img { max-height: 82vh; width: auto; margin-inline: auto; }
.lightbox p { color: #fff; text-align: center; margin: 12px 0 0; }
.lightbox__close { position: fixed; top: 16px; inset-inline-end: 16px; width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, 0.5); background: transparent; color: #fff; cursor: pointer; }

/* ---------- before / after ---------- */
.ba { position: relative; overflow: hidden; aspect-ratio: 3 / 4; max-height: 760px; background: var(--paper-2); user-select: none; border: 1px solid var(--navy-800); border-start-start-radius: var(--r-frame); --pos: 50%; }
.ba__layer { position: absolute; inset: 0; }
.ba__layer img { width: 100%; height: 100%; object-fit: cover; }
.ba__after { clip-path: inset(0 0 0 var(--pos)); }
html[dir='rtl'] .ba__after { clip-path: inset(0 var(--pos) 0 0); }
.ba__line { position: absolute; top: 0; bottom: 0; inset-inline-start: var(--pos); width: 2px; margin-inline-start: -1px; background: #fff; pointer-events: none; }
.ba__line::after { content: ''; position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; transform: translate(-50%, -50%); background: var(--teal-700) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='m9 6-6 6 6 6M15 6l6 6-6 6'/%3E%3C/svg%3E") center/22px no-repeat; border: 2px solid #fff; }
.ba__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ba__range:focus-visible + .ba__line::after { outline: 3px solid #fff; outline-offset: 3px; }
.ba__tag { position: absolute; top: 14px; padding: 4px 12px; background: rgba(14, 27, 46, 0.85); color: #fff; font-size: 0.82rem; font-weight: 600; pointer-events: none; }
.ba__tag--before { inset-inline-start: 14px; }
.ba__tag--after { inset-inline-end: 14px; background: var(--teal-700); }
.ba-wrap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
@media (max-width: 760px) { .ba-wrap { grid-template-columns: 1fr; } }
.ba-item figcaption { margin-top: 14px; }
.ba-item h3 { font-size: 1.15rem; margin-bottom: 4px; }
.ba-item p { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq__i { border-bottom: 1px solid var(--line); }
.faq__i summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; cursor: pointer; list-style: none; font-family: var(--f-head); font-weight: 600; font-size: 1.05rem; color: var(--ink); }
.faq__i summary::-webkit-details-marker { display: none; }
.faq__i summary .ico { color: var(--teal-700); transition: transform 0.25s; }
.faq__i[open] summary .ico { transform: rotate(45deg); }
.faq__a { padding-bottom: 20px; color: var(--muted); }
.faq__a p { margin: 0; }

/* ---------- CTA band ---------- */
.ctaband { position: relative; background: var(--navy-800); color: var(--on-dark); overflow: hidden; }
.ctaband::before { content: ''; position: absolute; inset-block: -20%; inset-inline-end: 8%; width: 90px; background: var(--teal); opacity: 0.16; transform: skewX(-24deg); }
html[dir='rtl'] .ctaband::before { transform: skewX(24deg); }
.ctaband__in { position: relative; display: grid; grid-template-columns: minmax(0, 1.3fr) auto; gap: 32px; align-items: center; padding-block: clamp(48px, 7vw, 88px); }
.ctaband__t { color: #fff; font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 12px; }
.ctaband__p { color: var(--on-dark-muted); margin: 0; max-width: 640px; }
@media (max-width: 860px) { .ctaband__in { grid-template-columns: 1fr; } }

/* ---------- blog cards & post ---------- */
.pgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
@media (max-width: 960px) { .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .pgrid { grid-template-columns: 1fr; } }
.pcard { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s var(--ease); }
.pcard:hover { border-color: var(--teal); box-shadow: var(--shadow); transform: translateY(-3px); }
.pcard__media { aspect-ratio: 16 / 10; overflow: hidden; }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.pcard:hover .pcard__media img { transform: scale(1.04); }
.pcard__body { padding: 20px 22px 24px; }
.pcard__meta { display: flex; gap: 14px; font-size: 0.8rem; color: var(--muted); margin-bottom: 8px; }
.pcard__meta span:first-child { color: var(--teal-700); font-weight: 600; }
.pcard__t { font-size: 1.15rem; margin: 0 0 8px; }
.pcard__t a:hover { color: var(--teal-700); }
.pcard__p { font-size: 0.93rem; color: var(--muted); margin: 0; }
.pcard--featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1.3fr 1fr; }
.pcard--featured .pcard__media { aspect-ratio: auto; min-height: 320px; }
.pcard--featured .pcard__body { padding: 32px; align-self: center; }
.pcard--featured .pcard__t { font-size: 1.6rem; }
@media (max-width: 760px) { .pcard--featured { grid-template-columns: 1fr; } .pcard--featured .pcard__media { min-height: 220px; } }

.post { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 56px; }
@media (max-width: 1000px) { .post { grid-template-columns: minmax(0, 1fr); } .post__aside { order: -1; } }
.prose { max-width: 760px; font-size: 1.08rem; }
.prose h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); margin: 2em 0 0.6em; padding-top: 0.6em; border-top: 1px solid var(--line); }
.prose h3 { font-size: 1.2rem; margin: 1.6em 0 0.5em; }
.prose a { color: var(--teal-700); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-inline-start: 1.4em; margin: 0 0 1.2em; }
.prose li { margin-bottom: 0.4em; }
.prose li::marker { color: var(--teal-700); }
.prose blockquote { margin: 1.5em 0; padding: 16px 20px; border-inline-start: 4px solid var(--teal); background: var(--paper); }
.prose blockquote p:last-child { margin: 0; }
.table-wrap { overflow-x: auto; margin: 1.5em 0; border: 1px solid var(--line); }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.prose th, .prose td { padding: 12px 14px; text-align: start; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--navy-800); color: #fff; font-family: var(--f-head); font-weight: 600; }
.toc { position: sticky; top: calc(var(--hdr-h) + 24px); padding: 20px; border: 1px solid var(--line); background: var(--paper); }
.toc h2 { font-size: 0.95rem; margin-bottom: 12px; }
.toc ol { list-style: none; display: grid; gap: 8px; font-size: 0.9rem; }
.toc a { color: var(--muted); }
.toc a:hover { color: var(--teal-700); }
@media (max-width: 1000px) { .toc { position: static; } }
.inline-cta { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; margin: 2em 0; padding: 24px; background: var(--navy-800); color: var(--on-dark); }
.inline-cta p { margin: 0; color: var(--on-dark-muted); }
.inline-cta__t { color: #fff !important; font-family: var(--f-head); font-weight: 600; font-size: 1.1rem; margin-bottom: 4px !important; }
@media (max-width: 600px) { .inline-cta { grid-template-columns: 1fr; } }

/* ---------- forms & contact ---------- */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; padding: clamp(24px, 4vw, 40px); background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--teal); }
.form__full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font-family: var(--f-head); font-weight: 500; font-size: 0.92rem; color: var(--ink); }
.field .opt { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: var(--r); background: #fff; font: inherit; color: var(--ink); }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--teal-700); outline-offset: 0; border-color: var(--teal-700); }
.field [aria-invalid='true'] { border-color: #b3261e; }
.field__err { font-size: 0.85rem; color: #b3261e; min-height: 1em; }
.form__note { font-size: 0.85rem; color: var(--muted); margin: 0; }
.cinfo { display: grid; gap: 0; border: 1px solid var(--line); }
.cinfo__i { display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding: 20px; align-items: center; }
.cinfo__i + .cinfo__i { border-top: 1px solid var(--line); }
.cinfo__icon { display: grid; place-items: center; width: 48px; height: 48px; background: var(--navy-800); color: var(--teal); }
.cinfo__l { display: block; font-size: 0.82rem; color: var(--muted); }
.cinfo__v { font-family: var(--f-head); font-weight: 600; color: var(--ink); }
.areas { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.areas li { padding: 6px 12px; border: 1px solid var(--line); font-size: 0.9rem; background: #fff; }

/* ---------- footer ---------- */
.ftr { position: relative; background: var(--navy-950); color: var(--on-dark-muted); padding-top: clamp(56px, 7vw, 88px); overflow: hidden; font-size: 0.95rem; }
.ftr__stripes { position: absolute; top: -10%; bottom: -10%; inset-inline-end: 6%; width: 140px; pointer-events: none; }
.ftr__stripes::before, .ftr__stripes::after { content: ''; position: absolute; inset-block: 0; width: 46px; background: var(--teal); opacity: 0.08; transform: skewX(-24deg); }
.ftr__stripes::after { inset-inline-start: 70px; width: 18px; background: var(--blue); opacity: 0.25; }
.ftr__grid { position: relative; display: grid; grid-template-columns: 1.3fr 1.4fr 0.8fr 1.2fr; gap: 40px; padding-bottom: 40px; }
@media (max-width: 1000px) { .ftr__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .ftr__grid { grid-template-columns: 1fr; } }
.ftr__about .brand { margin-bottom: 18px; }
.ftr__motto { color: var(--teal); font-family: var(--f-head); }
.ftr__h { font-size: 0.95rem; color: #fff; margin-bottom: 16px; }
.ftr__list { list-style: none; display: grid; gap: 10px; }
.ftr__list--cols { grid-template-columns: 1fr 1fr; column-gap: 20px; }
.ftr__list a:hover { color: #fff; }
.ftr__contact li { display: flex; gap: 10px; align-items: flex-start; }
.ftr__contact .ico { color: var(--teal); margin-top: 3px; width: 18px; height: 18px; }
.ftr__social { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; margin-top: 18px; }
.ftr__social a { display: inline-flex; align-items: center; gap: 8px; }
.ftr__social a:hover { color: #fff; }
.ftr__social .ico { width: 18px; height: 18px; color: var(--teal); }
.ftr__creds { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding-block: 20px; border-top: 1px solid var(--line-dark); }
.ftr__creds .ftr__h { margin: 0; }
.ftr__creds ul { display: flex; flex-wrap: wrap; gap: 10px 28px; list-style: none; font-size: 0.88rem; }
.ftr__creds li { display: inline-flex; align-items: baseline; gap: 8px; }
.ftr__creds b { color: #fff; font-family: 'Archivo', sans-serif; font-weight: 600; }
.ftr__bottom { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 20px 28px; border-top: 1px solid var(--line-dark); font-size: 0.85rem; }
.ftr__bottom p { margin: 0; }
.ftr__credit a { color: var(--teal); font-weight: 600; border-bottom: 1px solid transparent; transition: color 0.2s, border-color 0.2s; }
.ftr__credit a:hover { color: #fff; border-bottom-color: currentColor; }
@media (min-width: 761px) { html.js .ftr__bottom { padding-bottom: 96px; } } /* clear the floating contact button */

/* ---------- brand chips (contact hub + contact page) ---------- */
.bchip { flex: none; display: grid; place-items: center; width: 42px; height: 42px; color: #fff; background: var(--navy-800); }
.bchip .ico { width: 22px; height: 22px; }
.bchip--whatsapp { background: var(--wa); }
.bchip--call { background: var(--navy-800); color: var(--teal); }
.bchip--email { background: var(--blue); }
.bchip--snapchat { background: #fffc00; color: #000; }
.bchip--tiktok { background: #000; }
.bchip--tiktok .ico { filter: drop-shadow(1.2px 1.2px 0 #fe2c55) drop-shadow(-1.2px -1.2px 0 #25f4ee); }
.bchip--facebook { background: #1877f2; }
.bchip--instagram { background: #c13584; }
.bchip--x { background: #000; }
.bchip--linkedin { background: #0a66c2; }

.socials { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; list-style: none; }
.socials__a { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 6px 12px; border: 1px solid var(--line); background: #fff; font-family: var(--f-head); font-weight: 600; font-size: 0.85rem; color: var(--ink); text-align: center; transition: border-color 0.25s, background-color 0.25s, transform 0.25s var(--ease); }
.socials__a:hover { border-color: var(--teal); background: var(--paper); transform: translateY(-2px); }
.cinfo__follow { margin: 28px 0 12px; font-size: 1rem; }
.socials--page .socials__a { flex-direction: row; justify-content: center; gap: 10px; }

/* ---------- floating contact hub ---------- */
.hub { position: fixed; z-index: 46; inset-block-end: 24px; inset-inline-end: 24px; }
.hub__btn {
  display: inline-flex; align-items: center; gap: 12px; height: 58px; padding: 6px; padding-inline-end: 22px; border: 0; cursor: pointer;
  background: var(--navy-800); color: #fff; font-family: var(--f-head); font-weight: 600; font-size: 1rem; white-space: nowrap;
  border-inline-start: 4px solid var(--teal); box-shadow: 0 16px 36px -14px rgba(14, 27, 46, 0.7);
  transition: background-color 0.25s, transform 0.3s var(--ease);
}
.hub__btn:hover { background: var(--navy-900); transform: translateY(-2px); }
.hub__btn:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.hub__btn-ico { position: relative; width: 44px; height: 44px; flex: none; background: var(--teal-700); color: #fff; }
.hub__i { position: absolute; inset: 0; display: grid; place-items: center; transition: opacity 0.25s, transform 0.4s var(--ease); }
.hub__i .ico { width: 24px; height: 24px; }
.hub__i--close { opacity: 0; transform: rotate(-90deg) scale(0.6); }
.hub.is-open .hub__i--chat { opacity: 0; transform: rotate(90deg) scale(0.6); }
.hub.is-open .hub__i--close { opacity: 1; transform: none; }
.hub.is-open .hub__btn { background: var(--navy-950); }

.hub__panel {
  position: absolute; inset-block-end: calc(100% + 12px); inset-inline-end: 0;
  width: min(360px, calc(100vw - 32px)); max-height: calc(100svh - var(--hdr-h) - 110px); overflow-y: auto; overscroll-behavior: contain;
  padding: 20px; background: #fff; color: var(--text); border-top: 4px solid var(--teal); box-shadow: 0 30px 70px -20px rgba(14, 27, 46, 0.55), 0 0 0 1px var(--line);
  opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity 0.25s var(--ease), transform 0.4s var(--ease), visibility 0.25s;
}
.hub.is-open .hub__panel { opacity: 1; visibility: visible; transform: none; }
.hub__head { position: relative; padding-inline-end: 40px; margin-bottom: 16px; }
.hub__title { margin: 0 0 2px; font-family: var(--f-head); font-weight: 700; font-size: 1.25rem; color: var(--ink); line-height: 1.3; }
.hub__sub { margin: 0; font-size: 0.88rem; line-height: 1.6; color: var(--muted); }
.hub__x { position: absolute; top: -6px; inset-inline-end: -6px; display: grid; place-items: center; width: 40px; height: 40px; border: 0; background: none; color: var(--muted); cursor: pointer; }
.hub__x:hover { background: var(--paper); color: var(--ink); }
.hub__direct { display: grid; gap: 8px; list-style: none; }
.hub__row { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border: 1px solid var(--line); transition: border-color 0.25s, background-color 0.25s; }
.hub__row:hover { border-color: var(--teal); background: var(--paper); }
.hub__row > .ico { margin-inline-start: auto; width: 16px; height: 16px; color: var(--teal-700); transition: transform 0.25s var(--ease); }
.hub__row:hover > .ico { transform: scaleX(var(--flip)) translateX(4px); }
.hub__txt { display: grid; line-height: 1.35; }
.hub__txt b { font-family: var(--f-head); font-weight: 600; font-size: 1rem; color: var(--ink); }
.hub__txt small { font-size: 0.85rem; color: var(--muted); }
.hub__label { margin: 18px 0 10px; font-family: var(--f-head); font-weight: 600; font-size: 0.85rem; color: var(--muted); }
.hub__direct li, .hub__social li { opacity: 0; transform: translateY(8px); transition: opacity 0.3s var(--ease), transform 0.4s var(--ease); }
.hub.is-open .hub__direct li, .hub.is-open .hub__social li { opacity: 1; transform: none; transition-delay: calc(var(--i) * 40ms + 60ms); }
.hub__backdrop { display: none; }

/* ---------- mobile contact bar & no-JS WhatsApp button ---------- */
.mbar { display: none; }
.fab-wa { position: fixed; z-index: 40; inset-block-end: 24px; inset-inline-end: 24px; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: #fff; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5); transition: transform 0.2s; }
.fab-wa:hover { transform: scale(1.06); }
.fab-wa .ico { width: 30px; height: 30px; }
html.js .fab-wa { display: none; }
@media (max-width: 760px) {
  .fab-wa { display: none; }
  .mbar { position: fixed; z-index: 47; inset-inline: 0; bottom: 0; display: grid; grid-template-columns: 1fr 1fr 0.8fr; padding-bottom: env(safe-area-inset-bottom); background: var(--navy-900); box-shadow: 0 -8px 24px -12px rgba(0, 0, 0, 0.5); }
  .mbar a, .mbar button { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 58px; border: 0; font-family: var(--f-head); font-weight: 600; color: #fff; }
  .mbar__wa { background: var(--wa); }
  .mbar__more { background: var(--navy-700); cursor: pointer; }
  .mbar__more[aria-expanded='true'] { background: var(--teal-700); }
  body { padding-bottom: 58px; }
  .hub { inset-inline-end: 12px; inset-block-end: calc(70px + env(safe-area-inset-bottom)); }
  .hub__btn { display: none; }
  .hub__panel { inset-block-end: 0; width: calc(100vw - 24px); max-height: calc(100svh - var(--hdr-h) - 96px); }
  .hub__backdrop { position: fixed; inset: 0; display: block; background: rgba(14, 27, 46, 0.5); opacity: 0; visibility: hidden; transition: opacity 0.25s, visibility 0.25s; }
  .hub.is-open .hub__backdrop { opacity: 1; visibility: visible; }
}

/* ---------- controls that need JavaScript ---------- */
html:not(.js) :is(.hub, .mbar__more) { display: none; }
@media (max-width: 760px) { html:not(.js) .mbar { grid-template-columns: 1fr 1fr; } }
html:not(.js) .filters, html:not(.js) .ba__range, html:not(.js) .ba__line, html:not(.js) [data-email] { display: none; }
html:not(.js) .gcard__btn { cursor: default; }

/* ---------- misc ---------- */
.stack > * + * { margin-top: 16px; }
.center { text-align: center; }
.mt-l { margin-top: clamp(32px, 5vw, 56px); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 48px); }
@media (max-width: 860px) { .grid-2 { grid-template-columns: 1fr; } }
.note { padding: 16px 20px; background: var(--teal-50); border-inline-start: 4px solid var(--teal-700); font-size: 0.95rem; }
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding-block: var(--sec); }
.notfound__code { font-family: 'Archivo', sans-serif; font-weight: 800; font-size: clamp(5rem, 16vw, 9rem); line-height: 1; color: var(--paper-2); -webkit-text-stroke: 2px var(--navy-800); }

/* ==========================================================================
   Motion. Only opacity, translate/scale/transform and clip-path change, so the browser can animate
   on the compositor. Entrance keyframes always end visible (safe without JS); scroll reveals need
   the `reveal` class, which main.js adds only when the visitor has not asked for reduced motion.
   Reveals use `translate`/`scale` (not `transform`) so hover lifts keep working, and main.js removes
   data-reveal once an element has appeared so its own transitions apply again.
   ========================================================================== */

/* ---------- page entrance: hero copy rises in, photo settles from a slight zoom, stripes slide ---------- */
@keyframes heroRise { from { opacity: 0; translate: 0 28px; } to { opacity: 1; translate: none; } }
@keyframes heroZoom { from { transform: scale(1.12); } to { transform: none; } }
@keyframes stripeIn { from { opacity: 0; translate: 0 -80px; } }
.hero__copy > *, .phero__in > * { animation: heroRise 0.85s var(--ease) both; }
.hero__copy > :nth-child(2), .phero__in > :nth-child(2) { animation-delay: 0.08s; }
.hero__copy > :nth-child(3), .phero__in > :nth-child(3) { animation-delay: 0.18s; }
.hero__copy > :nth-child(4), .phero__in > :nth-child(4) { animation-delay: 0.3s; }
.hero__copy > :nth-child(5), .phero__in > :nth-child(5) { animation-delay: 0.42s; }
.hero__copy > :nth-child(n + 6), .phero__in > :nth-child(n + 6) { animation-delay: 0.52s; }
.hero__media img, .phero__media img { animation: heroZoom 1.8s var(--ease) both; }
.hero__stripes::before, .hero__stripes::after { animation: stripeIn 1.3s var(--ease) 0.15s both; }
.hero__stripes::after { animation-delay: 0.3s; }
.hero__badge { animation: heroRise 0.8s var(--ease) 0.8s both; }
@media (min-width: 901px) {
  .creds-band .creds__i { animation: heroRise 0.8s var(--ease) 0.55s both; }
  .creds-band .creds__i:nth-child(2) { animation-delay: 0.65s; }
  .creds-band .creds__i:nth-child(3) { animation-delay: 0.75s; }
}

/* ---------- scroll reveal: fade + rise; items arriving together are staggered via --rd ---------- */
html.reveal [data-reveal] { opacity: 0; translate: 0 26px; transition: opacity 0.8s var(--ease), translate 0.9s var(--ease); transition-delay: var(--rd, 0ms); }
html.reveal [data-reveal].is-in { opacity: 1; translate: none; }

/* photos: a diagonal wipe from the start edge (echoing the stripe motif) while the photo settles from a zoom.
   The wipe clips the photo inside; the observed card/frame itself stays unclipped so IntersectionObserver sees it. */
html.reveal .sfeat[data-reveal], html.reveal .frame[data-reveal] { opacity: 1; translate: none; }
html.reveal .frame[data-reveal] > picture, html.reveal .sfeat[data-reveal] .sfeat__media { clip-path: polygon(0 0, 0 0, -30% 100%, 0 100%); transition: clip-path 1.2s var(--ease) var(--rd, 0ms); }
html.reveal .frame[data-reveal].is-in > picture, html.reveal .sfeat[data-reveal].is-in .sfeat__media { clip-path: polygon(0 0, 130% 0, 100% 100%, 0 100%); }
html[dir='rtl'].reveal .frame[data-reveal] > picture, html[dir='rtl'].reveal .sfeat[data-reveal] .sfeat__media { clip-path: polygon(100% 0, 100% 0, 130% 100%, 100% 100%); }
html[dir='rtl'].reveal .frame[data-reveal].is-in > picture, html[dir='rtl'].reveal .sfeat[data-reveal].is-in .sfeat__media { clip-path: polygon(100% 0, -30% 0, 0 100%, 100% 100%); }
html.reveal .sfeat[data-reveal] img, html.reveal .frame[data-reveal] img { scale: 1.15; transition: scale 1.5s var(--ease) var(--rd, 0ms); }
html.reveal .sfeat[data-reveal].is-in img, html.reveal .frame[data-reveal].is-in img { scale: 1; }
html.reveal .sfeat[data-reveal] .sfeat__body { opacity: 0; translate: 0 20px; transition: opacity 0.7s var(--ease), translate 0.8s var(--ease); transition-delay: calc(var(--rd, 0ms) + 0.45s); }
html.reveal .sfeat[data-reveal].is-in .sfeat__body { opacity: 1; translate: none; }

/* section titles: the teal bar draws in after the title appears */
html.reveal .shead[data-reveal] .shead__t::after { scale: 0 1; transform-origin: right; transition: scale 0.9s var(--ease) calc(var(--rd, 0ms) + 0.3s); }
html[dir='ltr'].reveal .shead[data-reveal] .shead__t::after { transform-origin: left; }
html.reveal .shead--center[data-reveal] .shead__t::after { transform-origin: center; }
html.reveal .shead[data-reveal].is-in .shead__t::after { scale: 1; }

/* "how we build" timeline: the line draws across (down on phones) and each marker pops in with its card */
@supports selector(:has(*)) {
  html.reveal .steps--compact::before { scale: 0 1; transform-origin: right; transition: scale 1.4s var(--ease); }
  html[dir='ltr'].reveal .steps--compact::before { transform-origin: left; }
  html.reveal .steps--compact:has(.step.is-in)::before { scale: 1; }
  @media (max-width: 520px) {
    html.reveal .steps--compact::before, html[dir='ltr'].reveal .steps--compact::before { scale: 1 0; transform-origin: top; }
    html.reveal .steps--compact:has(.step.is-in)::before { scale: 1; }
  }
}
html.reveal .steps--compact .step[data-reveal]::before { scale: 0; transition: scale 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) calc(var(--rd, 0ms) + 0.35s); }
html.reveal .steps--compact .step[data-reveal].is-in::before { scale: 1; }

/* parallax (motion.mjs marks the moving element; the extra scale hides its edges while it drifts) */
.frame picture { height: 100%; }
.plx { scale: 1.1; will-change: translate; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-delay: 0s !important; }
}
@media print {
  .hdr, .mbar, .fab-wa, .hub, .ctaband, .ftr { display: none; }
  html.reveal [data-reveal], html.reveal [data-reveal] * { opacity: 1; translate: none; clip-path: none; }
}
