/* ============================================================
   Alamagroups — Manpower Solutions (UAE)
   Design system: white + red, corporate & trustworthy
   ============================================================ */

:root {
  --red: #c8102e;
  --red-600: #b00d28;
  --red-700: #8f0a20;
  --red-tint: #fbe9ec;
  --navy: #1c2b7a;
  --navy-deep: #16225f;
  --ink: #16161a;
  --ink-2: #3a3a40;
  --muted: #6c6c75;
  --line: #e7e4e1;
  --line-2: #efece9;
  --bg: #ffffff;
  --bg-soft: #f7f5f3;
  --bg-dark: #141316;
  --bg-dark-2: #1d1b1f;
  --white: #ffffff;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow-sm: 0 1px 2px rgba(20,19,22,.04), 0 2px 8px rgba(20,19,22,.05);
  --shadow-md: 0 12px 30px -12px rgba(20,19,22,.18);
  --shadow-lg: 0 30px 60px -20px rgba(20,19,22,.28);
  --container: 1240px;
  --gutter: 32px;
  --header-h: 84px;
  --font-head: "Archivo", system-ui, sans-serif;
  --font-body: "Public Sans", system-ui, sans-serif;
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(64px, 9vw, 120px); }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--bg-dark); color: #efeef0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--red);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--red);
}
.section--dark .eyebrow { color: #ff7d8f; }
.section--dark .eyebrow::before { background: #ff7d8f; }

.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head h2 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  margin-top: 18px;
}
.section-head p {
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.12rem;
}
.section--dark .section-head p { color: #b6b4ba; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: .98rem;
  letter-spacing: .01em;
  border: 1.5px solid transparent;
  transition: transform .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease), color .2s, border-color .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--red); color: #fff; box-shadow: 0 10px 24px -10px rgba(200,16,46,.6); }
.btn--primary:hover { background: var(--red-600); box-shadow: 0 16px 30px -10px rgba(200,16,46,.6); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: #f1efed; }
.btn--on-red { background: #fff; color: var(--red); }
.btn--on-red:hover { background: #1a1a1a; color:#fff; }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn--outline-light:hover { background: #fff; color: var(--ink); border-color:#fff; }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--red);
  font-size: .98rem;
}
.link-arrow .arrow { transition: transform .25s var(--ease); }
.link-arrow:hover .arrow { transform: translateX(5px); }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--ink);
  color: #d7d6da;
  font-size: 13.5px;
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 42px;
}
.topbar a:hover { color: #fff; }
.topbar-left { display: flex; gap: 26px; }
.topbar-left .ti { display: flex; align-items: center; gap: 8px; }
.topbar-left .ti b { color: #fff; font-weight: 600; }
.topbar-right { display: flex; gap: 14px; align-items: center; }
.topbar-right .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--red); }
.topbar-right .lang { display: flex; gap: 10px; }
.topbar-right .lang span { cursor: pointer; opacity: .6; }
.topbar-right .lang span.is-active { opacity: 1; color: #fff; font-weight: 700; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-2);
  transition: box-shadow .3s, height .3s;
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  transition: height .3s var(--ease);
}
.header.is-scrolled { box-shadow: var(--shadow-sm); }
.header.is-scrolled .container { height: 68px; }

/* Logo lockup */
.logo { display: flex; align-items: center; gap: 13px; }
.logo .logo-img { height: 46px; width: auto; display: block; flex: none; transition: height .3s var(--ease); }
.header.is-scrolled .logo-img { height: 38px; }
.logo .mark {
  width: 40px; height: 40px;
  background: var(--red);
  display: grid; place-items: center;
  border-radius: 7px;
  position: relative;
  flex: none;
}
.logo .mark::after {
  content: "";
  position: absolute; inset: 9px;
  border: 2.5px solid #fff;
  border-radius: 3px;
  clip-path: polygon(0 0, 100% 0, 100% 55%, 55% 55%, 55% 100%, 0 100%);
}
.logo .wm { line-height: 1; }
.logo .wm b {
  display: block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -.02em;
  color: var(--navy);
}
.logo .wm small {
  display: block;
  font-size: 10.5px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-top: 3px;
}

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  padding: 10px 14px;
  font-size: .96rem;
  font-weight: 600;
  color: var(--ink-2);
  border-radius: 6px;
  position: relative;
  transition: color .2s;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 2px; background: var(--red);
  transform: scaleX(0); transform-origin: left;
  transition: transform .25s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }
.nav a.is-active { color: var(--ink); }

.header-cta { display: flex; align-items: center; gap: 14px; }

.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  flex-direction: column;
  align-items: center; justify-content: center;
  gap: 5px;
}
.menu-toggle span { width: 20px; height: 2px; background: var(--ink); transition: .3s var(--ease); }
.menu-toggle.is-open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2){ opacity: 0; }
.menu-toggle.is-open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(360px, 86vw);
  background: #fff;
  z-index: 70;
  transform: translateX(100%);
  transition: transform .4s var(--ease);
  box-shadow: var(--shadow-lg);
  padding: 28px;
  display: flex; flex-direction: column;
  overflow-y: auto;
}
.mobile-menu.is-open { transform: translateX(0); }
.mobile-menu .logo { padding: 0 0 18px; border-bottom: 1px solid var(--line-2); }
.mobile-menu .logo .logo-img { height: 40px; }
.mobile-menu a { padding: 14px 4px; font-weight: 600; font-size: 1.1rem; border-bottom: 1px solid var(--line-2); }
.mobile-menu .btn { margin-top: 24px; }
.scrim {
  position: fixed; inset: 0; background: rgba(20,19,22,.5);
  opacity: 0; visibility: hidden; transition: .3s; z-index: 65;
}
.scrim.is-open { opacity: 1; visibility: visible; }

/* ---------- Placeholder imagery ---------- */
.ph {
  position: relative;
  background:
    repeating-linear-gradient(135deg, #ece8e4 0 2px, transparent 2px 14px),
    linear-gradient(180deg, #f1ede9, #e7e2dd);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #9a948c;
}
.ph span {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12.5px;
  letter-spacing: .04em;
  background: rgba(255,255,255,.7);
  padding: 7px 12px;
  border-radius: 4px;
  border: 1px solid var(--line);
}
.ph.is-dark {
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.04) 0 2px, transparent 2px 14px),
    linear-gradient(180deg, #26242a, #1a181d);
  border-color: rgba(255,255,255,.08);
  color: #8a868f;
}
.ph.is-dark span { background: rgba(0,0,0,.3); border-color: rgba(255,255,255,.12); color:#cfcbd3; }
.ph.has-img { background-size: cover; background-position: center; border-color: transparent; }
.ph.has-img span { display: none; }
.ph-av.has-img, .ph-sig.has-img { background-size: cover; background-position: center; }
.hero-trust .avatars i.has-img { background-size: cover; background-position: center; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 100% 0%, #fdf0f2 0%, transparent 55%),
    var(--bg);
}
.hero .container {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
  padding-block: clamp(56px, 8vw, 96px);
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid var(--line);
  padding: 7px 14px 7px 8px; border-radius: 100px;
  font-size: 13.5px; font-weight: 600; color: var(--ink-2);
  box-shadow: var(--shadow-sm);
}
.hero-badge b { background: var(--red-tint); color: var(--red); padding: 3px 9px; border-radius: 100px; font-size: 12px; letter-spacing: .04em; }
.hero h1 {
  font-size: clamp(2.7rem, 5.4vw, 4.4rem);
  margin-top: 24px;
}
.hero h1 .accent { color: var(--red); }
.hero-sub {
  margin-top: 24px;
  font-size: 1.18rem;
  color: var(--muted);
  max-width: 540px;
}
.hero-actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.hero-trust {
  margin-top: 40px;
  display: flex; align-items: center; gap: 18px;
  color: var(--muted); font-size: .92rem;
}
.hero-trust .avatars { display: flex; }
.hero-trust .avatars i {
  width: 38px; height: 38px; border-radius: 50%;
  border: 2px solid #fff; margin-left: -10px;
  background: linear-gradient(135deg,#d9d4ce,#c3bcb3);
}
.hero-trust .avatars i:first-child { margin-left: 0; }
.hero-trust b { color: var(--ink); }

.hero-visual { position: relative; }
.hero-visual .ph-main { aspect-ratio: 4/5; border-radius: 14px; box-shadow: var(--shadow-md); }
.hero-stat-card {
  position: absolute;
  left: -34px; bottom: 40px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 24px;
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 16px;
  max-width: 260px;
}
.hero-stat-card .num { font-family: var(--font-head); font-weight: 800; font-size: 2.2rem; color: var(--red); line-height: 1; }
.hero-stat-card .lbl { font-size: .86rem; color: var(--muted); line-height: 1.3; }
.hero-float-badge {
  position: absolute;
  top: 28px; right: -22px;
  background: var(--ink); color: #fff;
  border-radius: 10px; padding: 14px 18px;
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: 12px;
  font-size: .9rem;
}
.hero-float-badge .tick { width: 24px; height: 24px; border-radius: 50%; background: var(--red); display: grid; place-items: center; color: #fff; font-size: 13px; }

/* ---------- Marquee / sectors strip ---------- */
.strip { border-block: 1px solid var(--line); background: #fff; }
.strip .container { display: flex; align-items: center; gap: 40px; padding-block: 26px; }
.strip .label { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.marquee { overflow: hidden; flex: 1; -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: scrollx 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track .mi { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: #b9b3ab; white-space: nowrap; }
@keyframes scrollx { to { transform: translateX(-50%); } }

/* ============================================================
   STATS
   ============================================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}
.stat-cell { padding: 38px 34px; border-right: 1px solid var(--line); }
.stat-cell:last-child { border-right: none; }
.stat-cell .num { font-family: var(--font-head); font-weight: 800; font-size: clamp(2.4rem,3.4vw,3.2rem); color: var(--ink); line-height: 1; letter-spacing: -.03em; }
.stat-cell .num .suffix { color: var(--red); }
.stat-cell .lbl { margin-top: 12px; color: var(--muted); font-size: .98rem; }

/* ============================================================
   ABOUT
   ============================================================ */
.about .container { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-visual { position: relative; }
.about-visual .ph-a { aspect-ratio: 5/4; border-radius: 14px; }
.about-visual .ph-b {
  position: absolute; right: -26px; bottom: -36px;
  width: 46%; aspect-ratio: 1/1; border-radius: 12px;
  border: 6px solid #fff; box-shadow: var(--shadow-md);
}
.about-exp {
  position: absolute; left: -28px; top: 32px;
  background: var(--red); color: #fff;
  border-radius: 12px; padding: 18px 22px; box-shadow: var(--shadow-md);
}
.about-exp .n { font-family: var(--font-head); font-weight: 800; font-size: 2.4rem; line-height: 1; }
.about-exp .t { font-size: .82rem; opacity: .9; margin-top: 4px; }
.about-list { margin-top: 28px; display: grid; gap: 16px; }
.about-list li { display: flex; gap: 14px; align-items: flex-start; }
.about-list .ck { width: 26px; height: 26px; flex: none; border-radius: 50%; background: var(--red-tint); color: var(--red); display: grid; place-items: center; font-size: 13px; font-weight: 800; margin-top: 2px; }
.about-list b { display: block; font-size: 1.02rem; }
.about-list p { color: var(--muted); font-size: .96rem; }
.about-cta { margin-top: 34px; display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.signature { display: flex; align-items: center; gap: 14px; }
.signature .ph-sig { width: 56px; height: 56px; border-radius: 50%; }
.signature b { display: block; font-size: .98rem; }
.signature span { color: var(--muted); font-size: .86rem; }

/* ============================================================
   SERVICES
   ============================================================ */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px 30px;
  position: relative;
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.service-card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%;
  background: var(--red); transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.service-card .idx { font-family: var(--font-head); font-weight: 800; font-size: 1rem; color: var(--red); letter-spacing: .1em; }
.service-card .ic {
  width: 56px; height: 56px; border-radius: 12px;
  background: var(--bg-soft); border: 1px solid var(--line);
  display: grid; place-items: center; margin: 18px 0 22px;
  transition: background .35s, border-color .35s;
}
.service-card:hover .ic { background: var(--red); border-color: var(--red); }
.service-card .ic svg { width: 26px; height: 26px; stroke: var(--ink); transition: stroke .35s; }
.service-card:hover .ic svg { stroke: #fff; }
.service-card h3 { font-size: 1.32rem; }
.service-card p { margin-top: 12px; color: var(--muted); font-size: .98rem; }
.service-card .tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.service-card .tags span { font-size: 12.5px; color: var(--ink-2); background: var(--bg-soft); border: 1px solid var(--line); padding: 4px 10px; border-radius: 100px; }
.service-card .more { margin-top: 22px; }

/* ============================================================
   WHY / VALUE (dark)
   ============================================================ */
.why .container { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.why-visual .ph-w { aspect-ratio: 4/5; border-radius: 14px; }
.why-points { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 36px; margin-top: 8px; }
.why-point .ic { width: 48px; height: 48px; border-radius: 11px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); display: grid; place-items: center; margin-bottom: 16px; }
.why-point .ic svg { width: 24px; height: 24px; stroke: #ff7d8f; }
.why-point h4 { font-size: 1.14rem; color: #fff; }
.why-point p { margin-top: 8px; color: #b6b4ba; font-size: .95rem; }

/* ============================================================
   PROCESS
   ============================================================ */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
.process-step { position: relative; padding-top: 14px; }
.process-step .n {
  width: 58px; height: 58px; border-radius: 50%;
  background: #fff; border: 2px solid var(--red); color: var(--red);
  font-family: var(--font-head); font-weight: 800; font-size: 1.4rem;
  display: grid; place-items: center; position: relative; z-index: 2;
}
.process-step h4 { margin-top: 22px; font-size: 1.24rem; }
.process-step p { margin-top: 10px; color: var(--muted); font-size: .96rem; }
.process-step::after {
  content: ""; position: absolute; top: 29px; left: 58px; right: -24px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 16px);
}
.process-step:last-child::after { display: none; }

/* ============================================================
   SECTORS
   ============================================================ */
.sectors-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.sector-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 3/4; border: 1px solid var(--line);
  display: flex; align-items: flex-end;
  min-height: 220px;
}
.sector-card .ph { position: absolute; inset: 0; }
.sector-card .label {
  position: relative; z-index: 2; width: 100%;
  padding: 20px; color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1.18rem;
  background: linear-gradient(0deg, rgba(15,14,17,.85) 0%, rgba(15,14,17,0) 100%);
}
.sector-card .label small { display: block; font-family: var(--font-body); font-weight: 500; font-size: .82rem; opacity: .8; margin-top: 2px; }

/* ============================================================
   CASE STUDIES
   ============================================================ */
.cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.case-card { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #fff; transition: transform .35s var(--ease), box-shadow .35s; }
.case-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.case-card .ph-c { aspect-ratio: 16/10; }
.case-card .body { padding: 26px 26px 28px; }
.case-card .cat { font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--red); }
.case-card h3 { font-size: 1.3rem; margin-top: 12px; }
.case-card .metric { margin-top: 18px; display: flex; gap: 26px; }
.case-card .metric div b { display: block; font-family: var(--font-head); font-weight: 800; font-size: 1.5rem; color: var(--ink); }
.case-card .metric div span { font-size: .82rem; color: var(--muted); }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testi { position: relative; }
.testi-track { overflow: hidden; }
.testi-rail { display: flex; transition: transform .6s var(--ease); }
.testi-slide { min-width: 100%; padding: 4px; }
.testi-card {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 52px 56px; display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center;
}
.testi-card .quote-mark { font-family: var(--font-head); font-size: 5rem; color: var(--red-tint); line-height: .6; height: 40px; }
.testi-card blockquote { font-family: var(--font-head); font-weight: 600; font-size: clamp(1.3rem, 2.2vw, 1.9rem); line-height: 1.35; letter-spacing: -.01em; margin: 18px 0 28px; }
.testi-card .author { display: flex; align-items: center; gap: 14px; }
.testi-card .author .ph-av { width: 54px; height: 54px; border-radius: 50%; }
.testi-card .author b { display: block; }
.testi-card .author span { color: var(--muted); font-size: .9rem; }
.testi-card .aside { text-align: center; padding-left: 40px; border-left: 1px solid var(--line); }
.testi-card .aside .big { font-family: var(--font-head); font-weight: 800; font-size: 3rem; color: var(--red); line-height: 1; }
.testi-card .aside .cap { color: var(--muted); font-size: .88rem; margin-top: 8px; max-width: 140px; }
.testi-nav { display: flex; gap: 12px; justify-content: center; margin-top: 32px; align-items: center; }
.testi-nav button { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; display: grid; place-items: center; transition: .25s; }
.testi-nav button:hover { border-color: var(--red); background: var(--red); color: #fff; }
.testi-nav button svg { width: 18px; height: 18px; }
.testi-dots { display: flex; gap: 8px; margin-inline: 8px; }
.testi-dots .d { width: 8px; height: 8px; border-radius: 50%; background: var(--line); transition: .25s; cursor: pointer; }
.testi-dots .d.is-active { background: var(--red); width: 24px; border-radius: 10px; }

/* ============================================================
   CTA band
   ============================================================ */
.cta-band { background: var(--red); color: #fff; position: relative; overflow: hidden; }
.cta-band::after {
  content: ""; position: absolute; right: -80px; top: -80px;
  width: 360px; height: 360px; border: 60px solid rgba(255,255,255,.07); border-radius: 50%;
}
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 40px; position: relative; z-index: 2; flex-wrap: wrap; }
.cta-band h2 { color: #fff; font-size: clamp(1.9rem, 3.4vw, 2.8rem); max-width: 640px; }
.cta-band p { margin-top: 14px; color: rgba(255,255,255,.85); font-size: 1.1rem; }
.cta-band .actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ============================================================
   BLOG
   ============================================================ */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.post-card { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #fff; transition: transform .35s var(--ease), box-shadow .35s; }
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.post-card .ph-p { aspect-ratio: 16/10; }
.post-card .body { padding: 24px 24px 26px; }
.post-card .meta { display: flex; gap: 12px; align-items: center; font-size: .82rem; color: var(--muted); }
.post-card .meta .tag { color: var(--red); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.post-card h3 { font-size: 1.22rem; margin-top: 12px; line-height: 1.2; }
.post-card p { margin-top: 10px; color: var(--muted); font-size: .94rem; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact .container { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: start; }
.contact-info h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); }
.contact-lines { margin-top: 32px; display: grid; gap: 4px; }
.contact-line { display: flex; gap: 18px; align-items: flex-start; padding: 20px 0; border-bottom: 1px solid var(--line); }
.contact-line .ic { width: 48px; height: 48px; flex: none; border-radius: 11px; background: var(--red-tint); color: var(--red); display: grid; place-items: center; }
.contact-line .ic svg { width: 22px; height: 22px; stroke: var(--red); }
.contact-line .t small { color: var(--muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.contact-line .t b { display: block; font-size: 1.1rem; margin-top: 4px; }
.contact-line .t span { color: var(--ink-2); }

.contact-form {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 40px; box-shadow: var(--shadow-sm);
}
.contact-form h3 { font-size: 1.5rem; }
.contact-form > p { color: var(--muted); margin-top: 8px; margin-bottom: 26px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .86rem; font-weight: 600; color: var(--ink-2); }
.field label .req { color: var(--red); }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 1rem; color: var(--ink);
  padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 8px;
  background: #fcfbfa; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--red); box-shadow: 0 0 0 4px var(--red-tint); background: #fff;
}
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--red); background: #fff5f6; }
.field .err { color: var(--red); font-size: .8rem; display: none; }
.field.has-error .err { display: block; }
.form-submit { margin-top: 8px; }
.form-submit .btn { width: 100%; }
.form-note { font-size: .82rem; color: var(--muted); margin-top: 14px; text-align: center; }
.form-success {
  display: none; text-align: center; padding: 30px 10px;
}
.form-success.show { display: block; }
.form-success .badge { width: 72px; height: 72px; border-radius: 50%; background: var(--red-tint); color: var(--red); display: grid; place-items: center; margin: 0 auto 20px; }
.form-success .badge svg { width: 34px; height: 34px; }
.form-success h3 { font-size: 1.6rem; }
.form-success p { color: var(--muted); margin-top: 10px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--bg-dark); color: #b6b4ba; padding-top: 72px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer .logo .logo-img { height: 52px; background: #fff; padding: 9px 12px; border-radius: 9px; }
.footer .logo .wm b { color: #fff; }
.footer .logo .wm small { color: #87858c; }
.footer-about { margin-top: 22px; font-size: .96rem; max-width: 320px; }
.footer-social { display: flex; gap: 10px; margin-top: 24px; }
.footer-social a { width: 42px; height: 42px; border-radius: 9px; background: rgba(255,255,255,.06); display: grid; place-items: center; transition: .25s; }
.footer-social a:hover { background: var(--red); }
.footer-social svg { width: 18px; height: 18px; fill: #fff; }
.footer-col h5 { color: #fff; font-size: 1rem; font-family: var(--font-body); font-weight: 700; margin-bottom: 20px; }
.footer-col ul { display: grid; gap: 13px; }
.footer-col a { font-size: .95rem; transition: color .2s, padding .2s; }
.footer-col a:hover { color: #fff; padding-left: 4px; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-block: 26px; font-size: .88rem; flex-wrap: wrap; gap: 12px; }
.footer-bottom .links { display: flex; gap: 22px; }
.footer-bottom .links a:hover { color: #fff; }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: 26px; bottom: 26px; z-index: 50;
  width: 50px; height: 50px; border-radius: 12px;
  background: var(--red); color: #fff; border: none;
  display: grid; place-items: center;
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: .3s var(--ease);
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--red-600); }

/* ---- WhatsApp float ---- */
.wa-float {
  position: fixed; left: 26px; bottom: 26px; z-index: 55;
  display: flex; align-items: center;
  height: 58px; border-radius: 100px;
  background: #25d366; color: #fff;
  box-shadow: 0 14px 30px -8px rgba(37,211,102,.6), var(--shadow-md);
  overflow: hidden; max-width: 58px;
  transition: max-width .45s var(--ease), box-shadow .3s;
}
.wa-float .wa-ic { width: 58px; height: 58px; flex: none; display: grid; place-items: center; position: relative; z-index: 2; }
.wa-float .wa-ic svg { width: 30px; height: 30px; fill: #fff; }
.wa-float .wa-txt { white-space: nowrap; font-weight: 700; font-size: .96rem; padding-right: 24px; opacity: 0; transition: opacity .3s .05s; }
.wa-float:hover { max-width: 340px; box-shadow: 0 18px 36px -8px rgba(37,211,102,.7), var(--shadow-lg); }
.wa-float:hover .wa-txt { opacity: 1; }
.wa-float::before {
  content: ""; position: absolute; left: 14px; top: 14px; width: 30px; height: 30px;
  border-radius: 50%; background: #25d366; opacity: .55; z-index: 1;
  animation: waPulse 2.4s var(--ease) infinite;
}
@keyframes waPulse { 0% { transform: scale(1); opacity: .55; } 70%,100% { transform: scale(2.3); opacity: 0; } }
@media (max-width: 620px) {
  .wa-float { left: 16px; bottom: 16px; }
  .to-top { right: 16px; bottom: 16px; }
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .nav { display: none; }
  .header-cta .btn--ghost { display: none; }
  .menu-toggle { display: flex; }
  .why-points { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 920px) {
  :root { --gutter: 22px; }
  .hero .container { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 520px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-cell:nth-child(2) { border-right: none; }
  .stat-cell:nth-child(1), .stat-cell:nth-child(2) { border-bottom: 1px solid var(--line); }
  .about .container, .why .container, .contact .container { grid-template-columns: 1fr; gap: 44px; }
  .services-grid, .cases-grid, .blog-grid { grid-template-columns: 1fr 1fr; }
  .process-grid { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
  .process-step:nth-child(2)::after { display: none; }
  .sectors-grid { grid-template-columns: 1fr 1fr; }
  .testi-card { grid-template-columns: 1fr; gap: 24px; }
  .testi-card .aside { border-left: none; border-top: 1px solid var(--line); padding-left: 0; padding-top: 24px; display: flex; gap: 20px; align-items: center; justify-content: center; }
  .testi-card .aside .cap { max-width: none; text-align: left; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .topbar-left .ti:nth-child(2) { display: none; }
  .services-grid, .cases-grid, .blog-grid, .sectors-grid, .why-points, .form-grid { grid-template-columns: 1fr; }
  .hero-stat-card { left: 12px; }
  .hero-float-badge { right: 8px; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat-cell { border-right: none !important; border-bottom: 1px solid var(--line); }
  .stat-cell:last-child { border-bottom: none; }
  .contact-form { padding: 26px 22px; }
  .testi-card { padding: 32px 26px; }
  .cta-band .container { flex-direction: column; align-items: flex-start; }
  .about-exp { left: 12px; }
}

/* ============================================================
   FULL-BLEED HERO (homepage)
   ============================================================ */
.hero--full {
  position: relative;
  min-height: clamp(580px, 90vh, 940px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #0b0d15;
  padding-block: 64px;
}
.hero--full .hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.06);
  transition: opacity 1.4s var(--ease), transform 8s linear;
}
.hero-slide.is-active { opacity: 1; transform: scale(1); }
.hero--full::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(7,9,16,.95) 0%, rgba(7,9,16,.88) 44%, rgba(7,9,16,.72) 68%, rgba(7,9,16,.55) 100%),
    linear-gradient(0deg, rgba(7,9,16,.92) 0%, rgba(7,9,16,0) 48%);
}
.hero--full .container { display: block; padding-block: 0; position: relative; z-index: 2; }
.hero--full .hero-inner { max-width: 760px; color: #fff; }
.hero--full .hero-badge {
  background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.22);
  color: #fff; backdrop-filter: blur(6px); box-shadow: none;
}
.hero--full .hero-badge b { background: var(--red); color: #fff; }
.hero--full h1 {
  color: #fff;
  font-size: clamp(2.7rem, 6vw, 4.7rem);
  margin-top: 24px;
  text-shadow: 0 2px 36px rgba(0,0,0,.45);
}
.hero--full h1 .accent { color: #ff5f78; }
.hero--full .hero-sub {
  color: #ebeaef; max-width: 560px;
  text-shadow: 0 1px 16px rgba(0,0,0,.7);
}
.hero--full .hero-actions { margin-top: 34px; }
.hero--full .btn--ghost { color: #fff; border-color: rgba(255,255,255,.45); }
.hero--full .btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.hero-metrics {
  display: flex; gap: 44px; margin-top: 46px; flex-wrap: wrap;
}
.hero-metrics > div b {
  display: block; font-family: var(--font-head); font-weight: 800;
  font-size: clamp(2rem, 3vw, 2.6rem); line-height: 1; color: #fff;
}
.hero-metrics > div b .ac { color: #ff7d8f; }
.hero-metrics > div span { font-size: .9rem; color: #bdbcc4; margin-top: 8px; display: block; }
.hero-dots {
  position: absolute; z-index: 3; bottom: 26px; left: 50%;
  transform: translateX(-50%); display: flex; gap: 9px;
}
.hero-dots .d {
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(255,255,255,.4); cursor: pointer; transition: .25s; border: none; padding: 0;
}
.hero-dots .d.is-active { background: #fff; width: 26px; border-radius: 10px; }
@media (max-width: 620px) {
  .hero--full { min-height: 88vh; }
  .hero-metrics { gap: 26px; }
  .hero--full::after {
    background:
      linear-gradient(180deg, rgba(8,10,18,.7) 0%, rgba(8,10,18,.5) 40%, rgba(8,10,18,.88) 100%);
  }
}
