/* =========================================================
   Cashify UAE — shared styles
   Tokens come from the Figma "Cashify UAE" design system.
   Typography tokens live in type.css (fluid desktop→mobile).
   ========================================================= */

:root {
  /* Colour tokens */
  --neutral-0: #ffffff;
  --neutral-50: #f7f7f7;
  --neutral-200: #d3d3d3;
  --neutral-400: #aaaaab;
  --neutral-600: #707070;
  --neutral-800: #3f3f3f;
  --neutral-950: #0f0f0f;
  --neutral-1000: #000000;
  --surface-light-2: #f2f2f2;
  --green-50: #ecfaf0;
  --primary: #349f90;          /* action/primary-accessible */
  --primary-hover: #2b8a7d;
  --alert: #b42318;            /* supporting/color-1 */
  --text-primary: #0f0f0f;
  --text-secondary: #3f3f3f;
  --text-muted: #707070;
  --border: #d3d3d3;

  /* Layout */
  --container: 1280px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(48px, 6vw, 80px);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 200px;

  /* Motion */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --dur-fast: 180ms;
  --dur: 320ms;
  --dur-slow: 700ms;

  /* Header */
  --header-h: 72px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text-primary);
  background: var(--neutral-0);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, h5, h6, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); position: relative; }
.section-title { text-align: center; color: var(--text-primary); }
.section-head { display: flex; flex-direction: column; gap: 8px; align-items: center; text-align: center; margin-bottom: clamp(24px, 3vw, 24px); }
.section-head p { color: var(--text-secondary); max-width: 840px; }
.stack-24 > * + * { margin-top: 24px; }
.text-center { text-align: center; }
.c-white { color: var(--neutral-0); }
.c-muted { color: var(--neutral-400); }
.c-secondary { color: var(--text-secondary); }
.c-primary { color: var(--primary); }
.bg-light { background: var(--neutral-50); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Responsive grids */
.grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1100px) {
  .grid-5, .grid-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .grid-3, .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .grid-5, .grid-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-4.m-1 { grid-template-columns: minmax(0, 1fr); }
}

/* =========================================================
   LegoButton (UAE)
   Sizes: lg 52 / md 44 / sm 40 / xs(mini) 26 / xxs(micro) 22
   Text uses heading tokens, so buttons shrink on mobile.
   ========================================================= */
.btn {
  --btn-h: 44px; --btn-minw: 128px; --btn-px: 24px; --btn-bw: 2px;
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  height: var(--btn-h); min-width: var(--btn-minw); padding: 0 var(--btn-px);
  border-radius: var(--radius-pill);
  border: var(--btn-bw) solid transparent;
  background: var(--primary); color: var(--neutral-0);
  font-family: inherit; font-weight: 700; white-space: nowrap; text-align: center;
  position: relative; overflow: hidden; isolation: isolate;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur) var(--ease-out),
              background-color var(--dur-fast) ease, color var(--dur-fast) ease, border-color var(--dur-fast) ease;
  will-change: transform;
}
.btn .btn-icon { width: 1.15em; height: 1.15em; transition: transform var(--dur) var(--ease-out); }
.btn::after { /* sheen sweep on hover */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.28) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform 650ms var(--ease-out);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -10px rgba(52, 159, 144, .55); }
.btn:hover::after { transform: translateX(120%); }
.btn:hover .btn-icon { transform: translateX(3px); }
.btn:active { transform: translateY(0) scale(.98); box-shadow: none; }
.btn:not(.btn-outline):not(.btn-white):not(.btn-alert):hover { background: var(--primary-hover); }

/* Size scale — heights follow Figma; text follows heading tokens */
.btn-lg { --btn-h: clamp(44px, calc(44px + 8 * ((100vw - 375px) / 1065)), 52px); --btn-minw: 144px; --btn-px: clamp(24px, 3vw, 40px);
          font-size: var(--heading2-fs); line-height: var(--heading2-lh); }
.btn-md { --btn-h: clamp(40px, calc(40px + 4 * ((100vw - 375px) / 1065)), 44px); --btn-minw: 128px; --btn-px: clamp(24px, 3vw, 40px);
          font-size: var(--heading3-fs); line-height: var(--heading3-lh); }
.btn-sm { --btn-h: clamp(36px, calc(36px + 4 * ((100vw - 375px) / 1065)), 40px); --btn-minw: 80px; --btn-px: 20px;
          font-size: var(--heading4-fs); line-height: var(--heading4-lh); }
.btn-xs { --btn-h: 26px; --btn-minw: 64px; --btn-px: 12px; --btn-bw: 1px;
          font-size: var(--heading5-fs); line-height: var(--heading5-lh); }
.btn-xxs { --btn-h: 22px; --btn-minw: 48px; --btn-px: 10px; --btn-bw: 1px;
           font-size: var(--caption3-fs); line-height: var(--caption3-lh); font-weight: 500; }

/* Styles / states */
.btn-outline { background: var(--neutral-0); color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--green-50); box-shadow: 0 10px 22px -12px rgba(52, 159, 144, .45); }
.btn-outline::after { background: linear-gradient(110deg, transparent 30%, rgba(52, 159, 144,.10) 50%, transparent 70%); }
.btn-alert { background: var(--neutral-0); color: var(--alert); }
.btn-outline.btn-alert { border-color: var(--alert); }
.btn[disabled], .btn.is-inactive { background: var(--neutral-200); color: var(--neutral-0); pointer-events: none; box-shadow: none; }
.btn-outline[disabled], .btn-outline.is-inactive { background: var(--neutral-50); color: var(--neutral-400); border-color: var(--border); }
.btn-white { background: var(--neutral-0); color: var(--primary); }
.btn-white:hover { box-shadow: 0 10px 22px -10px rgba(0, 0, 0, .35); }
.btn-block { width: 100%; }
@media (max-width: 480px) { .btn-block-m { width: 100%; } }

/* =========================================================
   Header
   ========================================================= */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 100; }
.nav-bar { background: var(--neutral-1000); height: var(--header-h); position: relative; z-index: 3;
  transition: box-shadow var(--dur) ease, background-color var(--dur) ease; }
.site-header.is-scrolled .nav-bar { box-shadow: 0 6px 24px rgba(0,0,0,.25); background: rgba(0,0,0,.92); backdrop-filter: saturate(140%) blur(10px); }
.nav-bar .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { width: 135px; height: 34px; }
@media (max-width: 767px) { .brand img { width: 112px; height: 28px; } }

.nav-menu { display: flex; align-items: center; gap: 40px; }
.nav-link { color: var(--neutral-0); position: relative; display: inline-flex; align-items: center; gap: 4px; padding-block: 6px; }
.nav-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--primary);
  transform: scaleX(0); transform-origin: left; transition: transform var(--dur) var(--ease-out); border-radius: 2px; }
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); }
.nav-link .chev { width: 24px; height: 24px; display: grid; place-items: center; transition: transform var(--dur) var(--ease-out); }
.nav-link .chev img { width: 12px; height: 6px; }
.nav-item { position: relative; }
.nav-item.is-open .chev { transform: rotate(180deg); }

/* Services dropdown */
.dropdown {
  position: absolute; top: calc(100% + 14px); left: 50%; width: 224px; padding: 8px 0;
  background: var(--neutral-0); border-radius: 8px; filter: drop-shadow(0 8px 12px rgba(0,0,0,.1));
  opacity: 0; visibility: hidden; transform: translate(-50%, -8px) scale(.98); transform-origin: top center;
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out), visibility 0s linear var(--dur);
}
.dropdown::before { content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 14px; } /* hover bridge */
.nav-item.is-open .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0) scale(1); transition-delay: 0s; }
.dropdown a { display: flex; align-items: center; min-height: 44px; padding: 12px 16px; font-size: 14px; line-height: 1.5; color: var(--text-primary);
  transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease, padding var(--dur) var(--ease-out); }
.dropdown a:hover, .dropdown a.is-active { background: var(--green-50); color: var(--primary); padding-left: 20px; }

/* Announcement */
.announcement { background: radial-gradient(ellipse at center, #0a6197 0%, #02748d 100%);
  color: var(--neutral-0); padding-block: 12px; text-align: center; position: relative; z-index: 2; overflow: hidden; }
.announcement::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 35%, rgba(255,255,255,.14) 50%, transparent 65%);
  transform: translateX(-100%); animation: shimmer 6s var(--ease-in-out) infinite 1.2s; }
.announcement p { position: relative; }

/* Mobile nav */
.nav-toggle { display: none; width: 40px; height: 40px; border-radius: 10px; place-items: center; color: var(--neutral-0); }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px; position: relative;
  transition: transform var(--dur) var(--ease-out), background-color var(--dur-fast) ease; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -7px; } .nav-toggle span::after { top: 7px; }
.site-header.menu-open .nav-toggle span { background: transparent; }
.site-header.menu-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
.site-header.menu-open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: grid; }
  .nav-menu {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 2; background: var(--neutral-1000);
    flex-direction: column; align-items: stretch; gap: 0; padding: 16px var(--gutter) 32px; overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-12px);
    transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out), visibility 0s linear var(--dur);
  }
  .site-header.menu-open .nav-menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .nav-menu > * { opacity: 0; transform: translateY(10px); transition: opacity var(--dur) ease, transform var(--dur) var(--ease-out); }
  .site-header.menu-open .nav-menu > * { opacity: 1; transform: none; }
  .site-header.menu-open .nav-menu > *:nth-child(2) { transition-delay: 60ms; }
  .site-header.menu-open .nav-menu > *:nth-child(3) { transition-delay: 120ms; }
  .nav-menu .nav-link { width: 100%; justify-content: space-between; padding-block: 16px; border-bottom: 1px solid #262626; }
  .nav-menu .nav-link::after { display: none; }
  .dropdown { position: static; width: auto; transform: none; filter: none; background: transparent; padding: 0;
    max-height: 0; overflow: hidden; opacity: 1; visibility: inherit; transition: max-height var(--dur) var(--ease-out); }
  /* FIX (mWeb routing): while the menu is closed, nothing inside it may catch taps.
     Previously `.dropdown { visibility: visible }` overrode the hidden menu, leaving the
     Services links invisible-but-tappable over the top of every page. */
  .site-header:not(.menu-open) .nav-menu,
  .site-header:not(.menu-open) .nav-menu * { pointer-events: none !important; }
  .dropdown::before { display: none; }
  .nav-item.is-open .dropdown { transform: none; max-height: 320px; }
  /* Mobile menu always shows every link: Services list is permanently expanded */
  .nav-menu .dropdown, .nav-menu .nav-item .dropdown { max-height: none; overflow: visible; }
  .nav-menu .nav-item > .nav-link { pointer-events: none; cursor: default; color: var(--neutral-400); font-size: 12px; line-height: 18px;
    letter-spacing: .06em; text-transform: uppercase; padding-block: 20px 8px; border-bottom: 0; }
  .nav-menu .nav-item > .nav-link .chev { display: none; }
  .nav-menu .dropdown a { color: var(--neutral-0); font-size: 16px; line-height: 22px; font-weight: 500; padding: 14px 0; min-height: 52px; border-bottom: 1px solid #262626; }
  .nav-menu .dropdown a:hover, .nav-menu .dropdown a.is-active { color: var(--primary); background: transparent; padding-left: 0; }
  .nav-menu > .nav-link { padding-block: 18px; min-height: 56px; align-items: center; font-size: 16px; line-height: 22px; font-weight: 500; }
  .nav-menu > .nav-link.is-active { color: var(--primary); }
  /* the scrolled header's blur would trap the fixed menu inside the 72px bar — switch it off on mobile */
  .site-header.is-scrolled .nav-bar { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--neutral-1000); }
  .site-header.menu-open .nav-bar { box-shadow: none; }
  .nav-menu { height: calc(100dvh - var(--header-h)); bottom: auto; padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px)); overscroll-behavior: contain; }
  .dropdown a { color: var(--neutral-400); padding-left: 12px; border-bottom: 1px solid #1c1c1c; }
  .dropdown a:hover, .dropdown a.is-active { background: transparent; color: var(--neutral-0); }
  .nav-menu .btn { margin-top: 24px; width: 100%; }
  body.no-scroll { overflow: hidden; }
}

/* =========================================================
   Contact section (shared) + Footer
   ========================================================= */
.contact { background: var(--neutral-50); position: relative; overflow: hidden;
  padding-top: clamp(64px, 7vw, 120px); padding-bottom: clamp(140px, 14vw, 240px); }
.contact .container { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.contact h2 { text-transform: capitalize; }
.contact p { color: var(--text-secondary); }
.contact .skyline { position: absolute; left: 50%; bottom: 0; width: max(100%, 1100px); max-width: none; height: auto; transform: translateX(-50%); pointer-events: none; }
/* Mobile: dedicated skyline artwork (Figma 630:2005, 390×132) spanning the full width */
@media (max-width: 767px) {
  .contact .skyline { width: 100%; left: 0; transform: none; }
  .contact { padding-bottom: calc(100vw * 132 / 390 + 16px); }
}

.site-footer { background: var(--neutral-950); color: var(--neutral-0); padding-block: 60px; }
.c-light { color: var(--neutral-200); }
.footer-brand { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.footer-brand img { width: 190px; height: 48px; }
.footer-brand-text { display: flex; flex-direction: column; gap: 2px; }
.footer-mail { color: var(--neutral-0); transition: color var(--dur-fast) ease; width: fit-content; }
.footer-mail:hover { color: #5fd3c2; }
.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px; margin-top: 24px; }
.footer-col h3 { margin-bottom: 12px; }
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col a { color: var(--neutral-400); transition: color var(--dur-fast) ease; display: inline-block; position: relative; }
.footer-col a:hover { color: var(--neutral-0); }
.footer-col a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform var(--dur) var(--ease-out); }
.footer-col a:hover::after { transform: scaleX(1); }
.footer-offices li { display: flex; gap: 6px; align-items: flex-start; }
.footer-offices li img { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; }
.footer-offices li div { display: flex; flex-direction: column; gap: 2px; min-width: 0; color: var(--neutral-200); }
.footer-legal { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--neutral-800); color: var(--neutral-400); }
@media (max-width: 767px) {
  .site-footer { padding-block: 40px 32px; }
  .footer-brand { gap: 12px; }
  .footer-brand img { width: 150px; height: 38px; }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; margin-top: 28px; }
  .footer-offices { grid-column: 1 / -1; }
}

/* =========================================================
   Shared component patterns pages can reuse
   ========================================================= */
.card { background: var(--neutral-0); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden;
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), border-color var(--dur) ease; }
.card-hover:hover { transform: translateY(-6px); box-shadow: 0 18px 40px -18px rgba(15,15,15,.25); border-color: transparent; }
.img-zoom { overflow: hidden; }
.img-zoom img { transition: transform 900ms var(--ease-out); }
.card-hover:hover .img-zoom img, .img-zoom:hover img { transform: scale(1.06); }
.float { animation: float 6s ease-in-out infinite; }
.float-slow { animation: float 9s ease-in-out infinite; }
.spin-slow { animation: spinSlow 36s linear infinite; will-change: transform; }
.spin-slow:hover { animation-play-state: paused; }

/* =========================================================
   Motion
   ========================================================= */
@keyframes shimmer { 0% { transform: translateX(-100%); } 40%, 100% { transform: translateX(100%); } }
@keyframes spinSlow { to { transform: rotate(360deg); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes zoomOut { from { transform: scale(1.08); } to { transform: scale(1); } }

/* Hero entrance: add .hero-anim to children; stagger via --d */
.hero-anim { opacity: 0; animation: fadeUp 900ms var(--ease-out) forwards; animation-delay: calc(var(--d, 0) * 120ms + 150ms); }
.hero-bg-anim { animation: zoomOut 2.4s var(--ease-out) both; }

/* Scroll reveal: [data-reveal] (fade-up), ="left", ="right", ="zoom", ="fade". Stagger via data-reveal-stagger on parent */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out); transition-delay: var(--rd, 0ms); }
.js [data-reveal="left"] { transform: translateX(-36px); }
.js [data-reveal="right"] { transform: translateX(36px); }
.js [data-reveal="zoom"] { transform: scale(.94); }
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
  .hero-anim { opacity: 1; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* =========================================================
   Horizontal swipe carousel (used for category cards on mobile/tablet)
   Usage: add .h-scroll to a grid/flex row of cards. Below the breakpoint the
   row becomes a scroll-snap carousel bleeding to the screen edge.
   .h-scroll-md -> carousel below 1024px; .h-scroll -> carousel below 768px
   ========================================================= */
@media (max-width: 767px) {
  .h-scroll, .h-scroll-md {
    display: flex !important; grid-template-columns: none !important; flex-wrap: nowrap !important;
    gap: 12px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
    padding-bottom: 4px;
  }
  .h-scroll > *, .h-scroll-md > * { flex: 0 0 var(--h-item, 72%); max-width: var(--h-item, 72%); scroll-snap-align: start; min-width: 0; }
  .h-scroll::-webkit-scrollbar, .h-scroll-md::-webkit-scrollbar { display: none; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .h-scroll-md {
    display: flex !important; grid-template-columns: none !important; flex-wrap: nowrap !important;
    gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); padding-bottom: 4px;
  }
  .h-scroll-md > * { flex: 0 0 var(--h-item-md, 38%); max-width: var(--h-item-md, 38%); scroll-snap-align: start; min-width: 0; }
  .h-scroll-md::-webkit-scrollbar { display: none; }
}
/* Swipe hint dots (optional): <div class="h-dots" data-for="ID"></div> rendered by main.js */
.h-dots { display: none; justify-content: center; gap: 6px; margin-top: 16px; }
.h-dots button { width: 6px; height: 6px; border-radius: 99px; background: var(--neutral-200); transition: width var(--dur) var(--ease-out), background-color var(--dur) ease; }
.h-dots button.is-active { width: 20px; background: var(--primary); }
@media (max-width: 767px) { .h-dots { display: flex; } }
@media (min-width: 768px) and (max-width: 1023px) { .h-dots.md { display: flex; } }
.h-scroll, .h-scroll-md { position: relative; }

/* =========================================================
   Contact — Partnership enquiry form (home page, Figma 504:27769)
   ========================================================= */
[hidden] { display: none !important; }
#contact { scroll-margin-top: var(--hdr, 124px); }
.contact--form .container { gap: 24px; }
.enquiry { width: 100%; background: var(--neutral-0); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 24px; text-align: left;
  box-shadow: 0 1px 0 rgba(15,15,15,.02); position: relative; }
.enquiry h3 { color: var(--neutral-950); }
.enquiry__body { display: flex; flex-direction: column; gap: 16px; }
.enquiry__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { color: var(--neutral-950); }
.c-optional { color: var(--neutral-600); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px; border: 1px solid var(--neutral-200); border-radius: 4px; background: var(--neutral-0);
  color: var(--neutral-950); font-family: inherit; outline: none; appearance: none; -webkit-appearance: none;
  transition: border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
}
.field textarea { min-height: 98px; resize: vertical; padding-bottom: 12px; }
.field ::placeholder { color: var(--neutral-400); opacity: 1; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--neutral-400); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(52, 159, 144,.15); }
.field.is-invalid input, .field.is-invalid select { border-color: var(--alert); box-shadow: 0 0 0 3px rgba(180,35,24,.10); }
.field__error { color: var(--alert); min-height: 0; display: none; }
.field.is-invalid .field__error { display: block; animation: fadeUp 240ms var(--ease-out); }
.select { position: relative; }
.select select { padding-right: 44px; cursor: pointer; }
.select select:invalid { color: var(--neutral-950); }
.select img { position: absolute; right: 18px; top: 50%; width: 12px; height: 6px; transform: translateY(-50%); pointer-events: none; transition: transform var(--dur) var(--ease-out); }
.select select:focus + img { transform: translateY(-50%) rotate(180deg); }
.enquiry__foot { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.enquiry__submit { width: 200px; background: var(--primary); }
.enquiry__submit:hover { background: var(--primary-hover); }
.c-muted-2 { color: var(--neutral-600); }
.enquiry__spinner { display: none; width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
.enquiry.is-sending .enquiry__spinner { display: inline-block; }
.enquiry.is-sending .enquiry__label { opacity: .85; }
.enquiry.is-sending .enquiry__submit { pointer-events: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.enquiry__done { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 32px 8px; animation: fadeUp 500ms var(--ease-out); }
.enquiry__done[hidden] { display: none; }
.enquiry.is-done > :not(.enquiry__done) { display: none; }
.enquiry__tick { width: 56px; height: 56px; border-radius: 50%; background: var(--primary); display: grid; place-items: center; margin-bottom: 6px; animation: pop 520ms var(--ease-out); }
.enquiry__tick path { stroke-dasharray: 24; stroke-dashoffset: 24; animation: draw 520ms 240ms var(--ease-out) forwards; }
@keyframes pop { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.08); opacity: 1; } 100% { transform: scale(1); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.enquiry__fallback { margin-top: 8px; }
.enquiry__again { margin-top: 6px; padding: 8px 12px; border-radius: 8px; }
.enquiry__again:hover { background: var(--green-50); }
@media (max-width: 767px) {
  .enquiry { padding: 20px 16px; gap: 20px; border-radius: 12px; }
  .enquiry__grid { grid-template-columns: minmax(0, 1fr); }
  .enquiry__submit { width: 100%; }
  .field input, .field select, .field textarea { font-size: 16px; } /* prevents iOS zoom on focus */
}

/* ---- Touch-target fixes (audit) ---- */
.h-dots button { position: relative; }
.h-dots button::before { content: ""; position: absolute; inset: -14px -7px; }
@media (max-width: 900px) {
  .brand { padding-block: 6px; }
  .footer-col ul { gap: 0; }
  .footer-col a { padding-block: 7px; }
  .footer-col li { line-height: 0; }
  .footer-col li > a { line-height: inherit; }
  .footer-col ul.t-body5 a { line-height: var(--body5-lh); }
  .footer-offices ul { gap: 8px; }
  .footer-col h3 { margin-bottom: 4px; }
}
.refs-list a { padding-block: 4px; }

/* ---- Mobile: Partner With Us lives in the menu, right below About Us ---- */
@media (max-width: 900px) {
  .nav-menu .btn { display: inline-flex; margin-top: 24px; width: 100%; --btn-h: 48px; font-size: 16px; line-height: 22px; }
}

/* ---- Click-to-play video posters: <div data-video="file.mp4"> poster img + play button </div> ---- */
[data-video] { cursor: pointer; }
[data-video] > button { border: 0; padding: 0; background: none; cursor: pointer; z-index: 2; }
[data-video] > button:focus-visible { outline: 3px solid #fff; outline-offset: 4px; border-radius: 50%; }
[data-video] > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; z-index: 3;
  opacity: 0; transition: opacity 400ms ease; }
[data-video].is-playing > video { opacity: 1; }
[data-video].is-playing { cursor: default; }
[data-video].is-playing > button { opacity: 0; pointer-events: none; }
[data-video].is-playing > img { transform: none !important; }

/* ---- WhatsApp chat button: right of "Partner With Us" on web, left of the menu icon on mWeb ---- */
.nav-bar .brand { order: 0; margin-right: auto; }
.nav-bar .nav-menu { order: 1; }
.nav-wa { order: 2; flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  transition: transform var(--dur-fast) ease, background-color var(--dur-fast) ease; }
.nav-wa img { width: 32px; height: 32px; object-fit: contain; } /* matches the 40px Partner With Us button */
.nav-wa:hover { transform: scale(1.08); background: rgba(255,255,255,.08); }
.nav-wa:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.nav-bar .nav-toggle { order: 3; }
@media (max-width: 900px) {
  .nav-bar .container { gap: 8px; }
  .nav-wa { width: 44px; height: 44px; } /* touch target */
  .nav-wa img { width: 28px; height: 28px; } /* sits level with the 22px menu icon */
}
