/* styles.css — AI-MICH Group | Merged | 2026-04-29
   Colors:  #CC1F2B · #A01820 · #1A1A1A · #FFFFFF · #FDF0F0 · #F5F5F5
   Fonts:   Montserrat · Inter · Barlow Condensed · Barlow
*/

/* ============================================================
   VARIABLES
   ============================================================ */
:root {
  --clr-red:       #CC1F2B;
  --clr-red-dark:  #A01820;
  --clr-red-light: #E8636B;
  --clr-red-bg:    rgba(204,31,43,0.06);
  --clr-dark:      #1A1A1A;
  --clr-white:     #FFFFFF;
  --clr-pink-bg:   #FDF0F0;
  --clr-gray:      #F5F5F5;
  --clr-text:      #222222;
  --clr-muted:     #666666;
  --clr-border:    rgba(204,31,43,0.15);
  --clr-line:      rgba(0,0,0,0.07);

  --ff-display: 'Montserrat', 'Arial Black', sans-serif;
  --ff-body:    'Inter', 'Arial', sans-serif;
  --ff-heading: 'Barlow Condensed', 'Arial Black', sans-serif;
  --ff-btext:   'Barlow', Arial, sans-serif;

  --header-h:   72px;
  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  32px;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-bounce:   cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Partners */
  --color-red:       #CC1F2B;
  --color-red-dark:  #a8181f;
  --color-white:     #FFFFFF;
  --color-dark:      #1A1A1A;
  --color-gray-100:  #F7F7F7;
  --color-gray-200:  #EEEEEE;
  --color-gray-400:  #AAAAAA;
  --color-gray-600:  #666666;
  --font-heading: 'Barlow Condensed', 'Arial Black', Arial, sans-serif;
  --font-body:    'Barlow', Arial, sans-serif;
  --marquee-speed-ltr: 40s;
  --marquee-speed-rtl: 35s;
  --logo-height-mobile: 36px;
  --logo-height-desktop: 48px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*,*::before,*::after { box-sizing:border-box; margin:0; padding:0; }
html {
  scroll-behavior: smooth;
  font-size: 16px;
  /* Prevents layout shift during scroll */
  scrollbar-gutter: stable;
}
body {
  font-family: var(--ff-body);
  color: var(--clr-text);
  background: var(--clr-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  /* Momentum scrolling on iOS */
  -webkit-overflow-scrolling: touch;
  /* Prevent pull-to-refresh jank */
  overscroll-behavior-y: none;
}
img,video { display:block; max-width:100%; }
a { text-decoration:none; color:inherit; }
ul { list-style:none; }
button { cursor:pointer; font-family:inherit; border:none; background:none; }
address { font-style: normal; }

/* ============================================================
   LAYOUT
   ============================================================ */
.container { width:100%; max-width:1200px; margin:0 auto; padding:0 24px; }

/* ============================================================
   UNIFIED SECTION TITLE SYSTEM
   Used across all sections for consistent visual language
   ============================================================ */
.section-title-block {
  margin-bottom: 48px;
}
.section-title-block--center {
  text-align: center;
}
.section-title-block--white {
  margin-bottom: 32px;
}

.section-eyebrow {
  display: inline-block;
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--clr-red);
  margin-bottom: 12px;
}
.section-eyebrow--white {
  color: rgba(255,255,255,0.7);
}

.section-heading {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: clamp(32px, 5vw, 56px);
  color: var(--clr-dark);
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin-bottom: 16px;
}
.section-heading--white {
  color: var(--clr-white);
}
.heading-accent {
  color: var(--clr-red);
}

.section-heading-line {
  width: 48px;
  height: 3px;
  background: var(--clr-red);
  border-radius: 2px;
}
.section-title-block--center .section-heading-line {
  margin: 0 auto;
}
.section-heading-line--white {
  background: rgba(255,255,255,0.4);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display:inline-flex; align-items:center; gap:8px;
  font-family:var(--ff-display); font-weight:600; font-size:14px;
  letter-spacing:0.02em; padding:10px 24px; border-radius:100px;
  transition:all 0.25s var(--ease-out-expo); white-space:nowrap;
}
.btn--solid   { background:var(--clr-red); color:var(--clr-white); border:2px solid var(--clr-red); }
.btn--solid:hover,.btn--solid:focus-visible  { background:var(--clr-red-dark); border-color:var(--clr-red-dark); transform:translateY(-2px); }
.btn--outline { background:transparent; color:var(--clr-red); border:2px solid var(--clr-red); }
.btn--outline:hover,.btn--outline:focus-visible { background:var(--clr-red); color:var(--clr-white); transform:translateY(-2px); }
.btn--ghost   { background:rgba(255,255,255,.12); color:var(--clr-white); border:2px solid rgba(255,255,255,.5); backdrop-filter:blur(8px); }
.btn--ghost:hover,.btn--ghost:focus-visible { background:rgba(255,255,255,.25); border-color:var(--clr-white); transform:translateY(-2px); }
.btn--lg  { font-size:16px; padding:14px 36px; }
.btn--md  { font-size:14px; padding:12px 28px; }
.btn--full{ width:100%; justify-content:center; }
.btn:focus-visible { outline:3px solid var(--clr-red); outline-offset:3px; }

@keyframes ctaPulse { 0%,100%{transform:scale(1)} 50%{transform:scale(1.04)} }
.btn--pulse { animation:ctaPulse 2.5s ease-in-out infinite; }
.btn--pulse:hover { animation-play-state:paused; transform:scale(1.06); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position:fixed; top:0; left:0; right:0;
  height:var(--header-h); z-index:1000;
  transition:background .4s, backdrop-filter .4s, box-shadow .4s;
}
.site-header.scrolled {
  background:rgba(255,255,255,.88);
  backdrop-filter:blur(18px) saturate(1.6);
  box-shadow:0 1px 0 rgba(0,0,0,.08);
}
/* الحاوية الرئيسية (الرابط) */
.logo {
    display: flex;
    align-items: center;
    height: 100%; /* ليأخذ نفس ارتفاع الهيدر */
    text-decoration: none;
}

/* تنسيق صورة اللوجو نفسها */
.logo-img {
    height: 45px;    /* تحكم في حجم اللوجو من هنا */
    width: auto;     /* للحفاظ على أبعاد الصورة بدون مط */
    display: block;  /* لمنع وجود مسافات غريبة أسفل الصورة */
    object-fit: contain; /* يضمن احتواء الصورة داخل المساحة المحددة */
}

/* تعديل بسيط على الهيدر لضمان التوسط */
.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 32px;
}
.header-inner { height:100%; display:flex; align-items:center; gap:32px; }
.site-header:not(.scrolled) .logo-main { color:var(--clr-white); }
.site-header:not(.scrolled) .logo-sub  { color:rgba(255,255,255,.6); }
.primary-nav { flex:1; display:none; }
@media(min-width:1024px){ .primary-nav{display:block;} }
.primary-nav ul { display:flex; gap:4px; justify-content:center; }
.nav-link { font-family:var(--ff-body); font-weight:500; font-size:14px; color:var(--clr-text); padding:6px 12px; border-radius:var(--radius-sm); transition:color .2s,background .2s; }
.nav-link:hover,.nav-link.active { color:var(--clr-red); }
.site-header:not(.scrolled) .nav-link { color:rgba(255,255,255,.85); }
.site-header:not(.scrolled) .nav-link:hover,.site-header:not(.scrolled) .nav-link.active { color:var(--clr-white); }
.header-cta { display:none; gap:10px; flex-shrink:0; }
@media(min-width:900px){ .header-cta{display:flex;} }
.header-cta .btn { padding:8px 20px; font-size:13px; }
.site-header:not(.scrolled) .header-cta .btn--outline { color:var(--clr-white); border-color:rgba(255,255,255,.6); }
.site-header:not(.scrolled) .header-cta .btn--outline:hover { background:rgba(255,255,255,.15); border-color:var(--clr-white); }
.hamburger { display:flex; flex-direction:column; gap:5px; padding:8px; margin-left:auto; }
@media(min-width:1024px){ .hamburger{display:none;} }
.hamburger span { display:block; width:22px; height:2px; background:var(--clr-dark); border-radius:2px; transition:all .3s; }
.site-header:not(.scrolled) .hamburger span { background:var(--clr-white); }
.hamburger.open span:nth-child(1) { transform:translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity:0; transform:scaleX(0); }
.hamburger.open span:nth-child(3) { transform:translateY(-7px) rotate(-45deg); }
.mobile-nav { background:var(--clr-white); border-top:1px solid var(--clr-border); padding:16px 24px 24px; }
.mobile-nav[hidden] { display:none; }
.mobile-nav ul { display:flex; flex-direction:column; gap:4px; }
.mobile-nav .nav-link { display:block; padding:10px 0; font-size:16px; color:var(--clr-text); border-bottom:1px solid rgba(0,0,0,.05); }
.mobile-cta-row { display:flex; gap:12px; margin-top:16px; border-bottom:none !important; }
.mobile-cta-row .btn { flex:1; justify-content:center; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position:relative; min-height:100svh; display:flex; align-items:center; justify-content:center; overflow:hidden; background:linear-gradient(135deg,#1a0305 0%,#3a0812 100%); }
.hero-media { position:absolute; inset:0; z-index:0; }
.hero-video { width:100%; height:100%; object-fit:cover; will-change:transform; }
.hero-overlay { position:absolute; inset:0; background:linear-gradient(135deg,rgba(20,2,4,.75) 0%,rgba(180,20,30,.4) 60%,rgba(20,2,4,.65) 100%); }
.hero-grid { position:absolute; inset:0; z-index:1; background-image:linear-gradient(rgba(255,255,255,.04) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.04) 1px,transparent 1px); background-size:60px 60px; }
.hero-content { position:relative; z-index:2; text-align:center; padding-top:var(--header-h); }
.hero-tagline { margin-bottom:24px; }
.tagline-row { display:flex; justify-content:center; gap:0.25em; flex-wrap:wrap; }
.word {
  font-family:var(--ff-display); font-weight:900;
  font-size:clamp(52px,10vw,120px);
  color:var(--clr-white); letter-spacing:-0.03em; line-height:1;
  display:inline-block;
  opacity:0; transform:translateY(40px);
  animation:wordUp .7s var(--ease-out-expo) forwards;
  /* MODIFICATION: Increased base delay so words appear after page settles */
  animation-delay:calc(0.6s + var(--i) * 0.12s);
}
.row-2 .word:last-child { color:var(--clr-red); }
@keyframes wordUp { to{opacity:1;transform:translateY(0)} }
.hero-sub {
  font-family:var(--ff-body); font-size:clamp(16px,2vw,20px); color:rgba(255,255,255,.75); margin-bottom:36px;
  opacity:0;
  animation:wordUp .7s var(--ease-out-expo) calc(1.1s + var(--i)*0.12s) forwards;
}
.hero-sub strong { color:var(--clr-white); font-weight:600; }
.hero-actions {
  display:flex; gap:16px; justify-content:center; flex-wrap:wrap;
  opacity:0;
  animation:wordUp .7s var(--ease-out-expo) calc(1.1s + var(--i)*0.12s) forwards;
}
.hero-dots { position:absolute; bottom:36px; left:50%; transform:translateX(-50%); display:flex; gap:8px; z-index:3; }
.dot { width:8px; height:8px; border-radius:50%; background:rgba(255,255,255,.3); border:none; transition:all .35s; }
.dot--active { background:var(--clr-red); transform:scale(1.4); }
.scroll-indicator { position:absolute; bottom:36px; right:40px; display:flex; flex-direction:column; align-items:center; z-index:3; }
.scroll-line { width:1.5px; height:48px; background:linear-gradient(to bottom,rgba(255,255,255,.6),transparent); animation:scrollBounce 2s ease infinite; }
@keyframes scrollBounce { 0%,100%{transform:translateY(0);opacity:.5} 50%{transform:translateY(8px);opacity:1} }

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar { position:relative; padding:60px 0 80px; background:linear-gradient(180deg,#fff 0%,#fdf0f0 60%,#fff 100%); overflow:hidden; }
.stats-container { position:relative; width:100%; max-width:1200px; margin:0 auto; padding:0 32px; min-height:420px; }
.wave-wrapper { position:absolute; top:50%; left:32px; right:32px; transform:translateY(-50%); height:160px; pointer-events:none; }
.wave-svg { width:100%; height:100%; overflow:visible; }
.wave-path { stroke-dasharray:1400; stroke-dashoffset:1400; transition:stroke-dashoffset 1.6s cubic-bezier(.16,1,.3,1); }
.wave-path.drawn { stroke-dashoffset:0; }
.stats-track { position:relative; width:100%; height:420px; }
.stat-node { position:absolute; display:flex; flex-direction:column; align-items:center; width:160px; opacity:0; transform:translateY(24px); transition:opacity .55s var(--ease-out-expo),transform .55s var(--ease-out-expo); }
.stat-node.visible { opacity:1; transform:translateY(0); }
.stat-node[style*="--pos:0"] { left:calc(0 / 5 * 100%); }
.stat-node[style*="--pos:1"] { left:calc(1 / 5 * 100% - 80px); }
.stat-node[style*="--pos:2"] { left:calc(2 / 5 * 100% - 80px); }
.stat-node[style*="--pos:3"] { left:calc(3 / 5 * 100% - 80px); }
.stat-node[style*="--pos:4"] { left:calc(4 / 5 * 100% - 80px); }
.stat-node[style*="--pos:5"] { left:calc(5 / 5 * 100% - 160px); }
.stat-node--above { top:0; flex-direction:column; justify-content:flex-end; transform:translateY(-24px); }
.stat-node--below { bottom:0; flex-direction:column; justify-content:flex-start; }
.stat-node--above.visible,.stat-node--below.visible { transform:translateY(0); }
.stat-dot-wrap { display:flex; flex-direction:column; align-items:center; flex-shrink:0; }
.stat-dot { width:52px; height:52px; border-radius:50%; border:1.5px solid var(--clr-red); background:var(--clr-white); display:flex; align-items:center; justify-content:center; color:var(--clr-red); position:relative; z-index:2; transition:transform .3s var(--ease-bounce),background .25s,color .25s; cursor:default; }
.stat-node:hover .stat-dot { transform:scale(1.15); background:var(--clr-red); color:var(--clr-white); }
.stat-connector { width:1.5px; flex-shrink:0; }
.stat-connector--down { height:40px; background:linear-gradient(to bottom,var(--clr-red),rgba(204,31,43,.15)); }
.stat-connector--up   { height:40px; background:linear-gradient(to bottom,rgba(204,31,43,.15),var(--clr-red)); }
.stat-content { text-align:center; display:flex; flex-direction:column; gap:4px; }
.stat-content--above { padding-bottom:8px; }
.stat-content--below { padding-top:8px; }
.stat-number { font-family:var(--ff-display); font-weight:900; font-size:clamp(22px,2.8vw,34px); color:var(--clr-dark); letter-spacing:-0.02em; line-height:1; }
.stat-number--red { color:var(--clr-red); }
.stat-label-txt { font-family:var(--ff-body); font-size:12px; font-weight:400; color:var(--clr-muted); line-height:1.4; max-width:130px; margin:0 auto; }
.stat-detail { display:flex; flex-direction:column; gap:2px; }
.stat-bold { font-family:var(--ff-body); font-size:13px; font-weight:600; color:var(--clr-text); }
.stat-sub-line { font-family:var(--ff-body); font-size:12px; color:var(--clr-muted); line-height:1.4; }
.stat-node[data-index="0"] { transition-delay:0.0s; }
.stat-node[data-index="1"] { transition-delay:0.15s; }
.stat-node[data-index="2"] { transition-delay:0.30s; }
.stat-node[data-index="3"] { transition-delay:0.45s; }
.stat-node[data-index="4"] { transition-delay:0.60s; }
.stat-node[data-index="5"] { transition-delay:0.75s; }

/* ============================================================
   ABOUT SNIPPET
   ============================================================ */
.about-snippet { padding:100px 0 120px; background:var(--clr-white); overflow:hidden; }
.about-inner { display:grid; grid-template-columns:1fr; gap:60px; align-items:center; }
@media(min-width:900px){ .about-inner{ grid-template-columns:1fr 1fr; gap:80px; } }
.about-text {
  opacity:0; transform:translateX(-50px);
  transition:opacity .8s var(--ease-out-expo),transform .8s var(--ease-out-expo);
}
.about-text.in-view { opacity:1; transform:translateX(0); }
.about-heading { font-family:var(--ff-display); font-weight:900; font-size:clamp(32px,5vw,52px); color:var(--clr-dark); letter-spacing:-0.02em; line-height:1.1; margin-bottom:24px; }
.about-body { font-size:16px; line-height:1.75; color:var(--clr-muted); margin-bottom:16px; }
.about-badges { display:flex; gap:10px; margin-bottom:32px; flex-wrap:wrap; }
.badge { font-family:var(--ff-display); font-weight:700; font-size:12px; letter-spacing:.08em; color:var(--clr-red); border:1.5px solid var(--clr-red); border-radius:4px; padding:5px 14px; background:var(--clr-red-bg); transition:background .2s,color .2s; }
.badge:hover { background:var(--clr-red); color:var(--clr-white); }
.about-image-wrap {
  position:relative;
  opacity:0; transform:translateX(50px);
  transition:opacity .8s var(--ease-out-expo) .2s,transform .8s var(--ease-out-expo) .2s;
}
.about-image-wrap.in-view { opacity:1; transform:translateX(0); }
.about-image-bg { position:absolute; top:24px; right:0; width:90%; height:95%; background:var(--clr-pink-bg); border-radius:var(--radius-xl); z-index:0; }
.about-image-clip { position:relative; z-index:1; border-radius:var(--radius-xl); overflow:hidden; clip-path:inset(0 100% 0 0); transition:clip-path 1s var(--ease-out-expo) .4s; }
.about-image-wrap.in-view .about-image-clip { clip-path:inset(0 0% 0 0); }
.about-img { width:100%; height:560px; object-fit:cover; object-position:top center; background:linear-gradient(160deg,#f9d6d8 0%,#e8a0a5 100%); }
.ceo-card { position:absolute; bottom:32px; left:-24px; z-index:2; background:var(--clr-red); color:var(--clr-white); border-radius:var(--radius-md); padding:14px 22px; display:flex; flex-direction:column; gap:2px; box-shadow:0 12px 40px rgba(204,31,43,.35); }
.ceo-card strong { font-family:var(--ff-display); font-weight:700; font-size:16px; }
.ceo-card span { font-size:12px; opacity:.85; }
.ceo-exp { font-size:11px !important; opacity:.7 !important; margin-top:2px; }

/* ============================================================
   SERVICES SECTION — Sticky Stacking Cards
   ============================================================ */
.services-section { background: var(--clr-white); border-top: 1px solid var(--clr-line); }

.services-header {
  padding: 80px 24px 48px;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}
.services-sub {
  font-size: 16px;
  color: var(--clr-muted);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── STICKY STACKING LAYOUT ── */
.svc-stack-layout {
  display: grid;
  /* Left panel fixed smaller — cards get the rest */
  grid-template-columns: 260px 1fr;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 24px 120px;
  gap: 48px;
  align-items: start;
}

/* LEFT — sticky panel (compact) */
.svc-stack-left { position: sticky; top: calc(var(--header-h) + 40px); }

.svc-stack-sticky { padding: 32px 0; }

.svc-brand-line { display:flex; align-items:center; gap:10px; margin-bottom:20px; }
.svc-brand-rule { display:block; width:24px; height:2px; background:var(--clr-red); flex-shrink:0; }
.svc-brand-label { font-family:var(--ff-display); font-size:10px; font-weight:700; letter-spacing:.2em; text-transform:uppercase; color:var(--clr-red); }

.svc-stack-heading {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: clamp(20px, 2.2vw, 32px);
  color: var(--clr-dark);
  line-height: 1.1;
  letter-spacing: -.02em;
  margin-bottom: 14px;
}

.svc-stack-desc {
  font-size: 13px;
  color: var(--clr-muted);
  line-height: 1.75;
  margin-bottom: 24px;
  max-width: 240px;
}

.svc-stack-stats {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
  padding: 20px 0;
  border-top: 1px solid var(--clr-line);
  border-bottom: 1px solid var(--clr-line);
}

.svc-stack-stat { display: flex; align-items: baseline; gap: 10px; }
.svc-stack-stat-num {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: 24px;
  color: var(--clr-red);
  letter-spacing: -.02em;
  line-height: 1;
}
.svc-stack-stat-label {
  font-size: 12px;
  color: var(--clr-muted);
  font-family: var(--ff-body);
  letter-spacing: .04em;
}

/* RIGHT — stacking cards container */
.svc-stack-right { padding-top: 40px; }

.svc-stack-cards {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ── STICKY STACKING CARD ── */
.svc-stack-card {
  position: sticky;
  border-radius: 20px;
  overflow: hidden;
  will-change: transform, opacity;
  background: var(--clr-dark);
  border: 1px solid var(--clr-line);
  box-shadow: 0 4px 20px rgba(0,0,0,.1), 0 1px 4px rgba(0,0,0,.06);
  transform-origin: center top;
  margin-bottom: 20px;
  isolation: isolate;
}
.svc-stack-card:hover {
  box-shadow: 0 16px 48px rgba(0,0,0,.2), 0 4px 16px rgba(204,31,43,.15);
}

/* Stagger top offsets — must match cardTops[] in JS */
.svc-stack-card:nth-child(1) { top: calc(var(--header-h) + 20px); z-index: 1; }
.svc-stack-card:nth-child(2) { top: calc(var(--header-h) + 34px); z-index: 2; }
.svc-stack-card:nth-child(3) { top: calc(var(--header-h) + 48px); z-index: 3; }
.svc-stack-card:nth-child(4) { top: calc(var(--header-h) + 62px); z-index: 4; }
.svc-stack-card:nth-child(5) { top: calc(var(--header-h) + 76px); z-index: 5; }
.svc-stack-card:nth-child(6) { top: calc(var(--header-h) + 90px); z-index: 6; }
.svc-stack-card:nth-child(7) { top: calc(var(--header-h) + 104px); z-index: 7; }

/* ── CARD INNER — image fills entire card, content is overlay ── */
.svc-stack-card-inner {
  position: relative;
  min-height: 480px;
}

/* Image fills the full card */
.svc-stack-card-image {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.svc-stack-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(.5);
  transition: transform .6s var(--ease-out-expo), filter .4s;
}
.svc-stack-card:hover .svc-stack-card-image img {
  transform: scale(1.04);
  filter: brightness(.38);
}

/* Dark gradient — bottom heavy for readability */
.svc-stack-card-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10,10,10,.93) 0%,
    rgba(10,10,10,.52) 45%,
    rgba(204,31,43,.15) 100%
  );
}

/* Content sits above image — NO red background */
.svc-stack-card-content {
  position: relative;
  z-index: 2;
  padding: 44px 48px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 480px;
  background: transparent;
}

/* Ghost number top-right */
.svc-stack-card-content::after {
  content: attr(data-num);
  position: absolute;
  right: 28px; top: 24px;
  font-family: var(--ff-display);
  font-size: 130px;
  font-weight: 900;
  color: rgba(255,255,255,.05);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

/* Red left accent bar */
.svc-stack-card-content::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--clr-red);
  opacity: .9;
}

.svc-stack-card-num {
  font-family: var(--ff-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
  color: rgba(255,255,255,.45);
  text-transform: uppercase;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.svc-stack-card-num::after {
  content: '';
  display: block;
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,.12);
}

.svc-stack-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(204,31,43,.22);
  border: 1.5px solid rgba(204,31,43,.45);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: background .3s, transform .4s var(--ease-bounce), border-color .3s;
}
.svc-stack-card:hover .svc-stack-icon-wrap {
  background: rgba(204,31,43,.55);
  border-color: var(--clr-red);
  transform: rotate(10deg) scale(1.1);
}
.svc-stack-icon-wrap svg { width: 24px; height: 24px; }

.svc-stack-card-title {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: clamp(22px, 2.4vw, 34px);
  color: var(--clr-white);
  letter-spacing: -.01em;
  line-height: 1.1;
  margin-bottom: 14px;
}

.svc-stack-card-desc {
  font-size: 14px;
  color: rgba(255,255,255,.72);
  line-height: 1.75;
  flex: 1;
  max-width: 540px;
}

/* Footer divider + CTA */
.svc-stack-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  margin-top: 20px;
  border-top: 1px solid rgba(255,255,255,.1);
  position: relative;
}

.svc-stack-card-cta {
  font-family: var(--ff-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  transition: color .25s;
}
.svc-stack-card:hover .svc-stack-card-cta { color: var(--clr-white); }

.svc-stack-card-arrow {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.22);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.5);
  transition: background .25s, border-color .25s, color .25s, transform .3s;
}
.svc-stack-card:hover .svc-stack-card-arrow {
  background: var(--clr-red);
  border-color: var(--clr-red);
  color: white;
  transform: translateX(3px);
}

/* Responsive */
@media(max-width:900px) {
  .svc-stack-layout { grid-template-columns: 1fr; gap: 40px; padding-bottom: 80px; }
  .svc-stack-left { position: relative; top: 0; }
  .svc-stack-heading { font-size: clamp(26px, 5vw, 40px); }
  .svc-stack-desc { max-width: 100%; }
  .svc-stack-card-inner { min-height: 400px; }
  .svc-stack-card-content { min-height: 400px; padding: 32px 28px; }
  .svc-stack-card:nth-child(1) { top: calc(var(--header-h) + 12px); }
  .svc-stack-card:nth-child(2) { top: calc(var(--header-h) + 20px); }
  .svc-stack-card:nth-child(3) { top: calc(var(--header-h) + 28px); }
  .svc-stack-card:nth-child(4) { top: calc(var(--header-h) + 36px); }
  .svc-stack-card:nth-child(5) { top: calc(var(--header-h) + 44px); }
  .svc-stack-card:nth-child(6) { top: calc(var(--header-h) + 52px); }
  .svc-stack-card:nth-child(7) { top: calc(var(--header-h) + 60px); }
}
@media(max-width:600px) {
  .services-header { padding: 60px 20px 32px; }
  .svc-stack-layout { padding: 0 16px 80px; gap: 28px; }
  .svc-stack-card-content { padding: 28px 20px; min-height: 360px; }
  .svc-stack-card-inner { min-height: 360px; }
}

/* ============================================================
   CLIENTS & PARTNERS
   ============================================================ */
.clients-section {
  background: var(--clr-white);
  padding: clamp(60px, 8vw, 100px) 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.clients-section.is-visible { opacity:1; transform:translateY(0); }

.clients-section__header { text-align:center; padding:0 1rem; margin-bottom: clamp(32px,5vw,56px); }

.clients-section__subtitle {
  font-family: var(--font-body);
  font-size: clamp(13px,2vw,15px);
  color: var(--color-gray-600);
  line-height: 1.6;
  max-width: 520px;
  margin: 0 auto;
  opacity:0; transform:translateY(12px);
  transition: opacity 0.6s ease 0.4s, transform 0.6s ease 0.4s;
}
.clients-section.is-visible .clients-section__subtitle { opacity:1; transform:translateY(0); }
.clients-section__subtitle strong { color:var(--color-dark); font-weight:600; }

.marquee-wrapper {
  position:relative; width:100%; overflow:hidden; margin-bottom:20px;
  -webkit-mask-image: linear-gradient(to right,transparent 0%,black 8%,black 92%,transparent 100%);
  mask-image: linear-gradient(to right,transparent 0%,black 8%,black 92%,transparent 100%);
}
.marquee-wrapper--second { margin-bottom:0; }
.marquee { display:flex; width:100%; }
.marquee__track {
  display:flex; align-items:center; list-style:none;
  gap:clamp(32px,4vw,60px); padding:16px 0; will-change:transform;
}
.marquee--ltr .marquee__track { animation:marquee-ltr var(--marquee-speed-ltr) linear infinite; }
.marquee--rtl .marquee__track { animation:marquee-rtl var(--marquee-speed-rtl) linear infinite; }
.marquee-wrapper:hover .marquee__track,
.marquee-wrapper:focus-within .marquee__track { animation-play-state:paused; }
.marquee__item { flex-shrink:0; display:flex; align-items:center; justify-content:center; }
.logo-img {
  height:var(--logo-height-mobile); width:auto; max-width:120px; object-fit:contain;
  filter:grayscale(100%) opacity(0.55);
  transition:filter .35s ease, transform .35s ease; cursor:pointer; display:block;
}
.marquee__item:hover .logo-img,.marquee__item:focus-within .logo-img { filter:grayscale(0%) opacity(1); transform:scale(1.08); }
.logo-placeholder {
  display:flex; align-items:center; justify-content:center;
  height:var(--logo-height-mobile); min-width:80px; padding:0 16px;
  background:var(--color-gray-200); border-radius:4px;
  font-family:var(--font-heading); font-size:13px; font-weight:700; letter-spacing:.05em;
  color:var(--color-gray-400); white-space:nowrap;
  filter:grayscale(100%) opacity(0.55); transition:filter .35s ease,transform .35s ease;
}
.marquee__item:hover .logo-placeholder { filter:grayscale(0%) opacity(1); transform:scale(1.06); background:var(--color-gray-100); color:var(--color-dark); }

.clients-section__stats {
  display:flex; align-items:center; justify-content:center;
  gap:clamp(24px,4vw,56px); flex-wrap:wrap;
  margin-top:clamp(36px,5vw,60px); padding:0 1rem;
  opacity:0; transform:translateY(16px);
  transition:opacity 0.6s ease 0.6s, transform 0.6s ease 0.6s;
}
.clients-section.is-visible .clients-section__stats { opacity:1; transform:translateY(0); }

.stat-pill { display:flex; align-items:baseline; gap:6px; flex-direction:column; text-align:center; }
.stat-pill__number { font-family:var(--font-heading); font-size:clamp(30px,5vw,46px); font-weight:800; color:var(--color-red); letter-spacing:-0.01em; line-height:1; font-variant-numeric:tabular-nums; }
.stat-pill__plus   { font-family:var(--font-heading); font-size:clamp(20px,3vw,30px); font-weight:800; color:var(--color-red); line-height:1; }
.stat-pill__label  { font-family:var(--font-body); font-size:clamp(11px,1.5vw,13px); color:var(--color-gray-600); text-transform:uppercase; letter-spacing:.08em; font-weight:500; }
.stat-pill__divider{ width:1px; height:40px; background:var(--color-gray-200); align-self:center; }

@keyframes marquee-ltr { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }
@keyframes marquee-rtl { 0%{transform:translateX(-50%)} 100%{transform:translateX(0)} }

/* ============================================================
   CERTIFICATIONS
   ============================================================ */
.certs-hero { background:var(--clr-red); padding:40px 0 60px; }
.certs-hero .container { position:relative; }
.certs-hero-body {
  margin-top:32px;
  display:grid; grid-template-columns:1fr; gap:24px;
}
.certs-divider-left  { width:100%; height:1px; background:rgba(255,255,255,0.25); grid-column:1/-1; }
.certs-desc { font-family:var(--ff-body); font-size:clamp(14px,1.6vw,16px); color:rgba(255,255,255,.88); line-height:1.75; max-width:640px; text-align:justify; justify-self:end; }
.certs-divider-right { width:60%; height:1px; background:rgba(255,255,255,0.25); grid-column:1/-1; justify-self:end; }
@media(min-width:768px) {
  .certs-hero-body { grid-template-columns:1fr 1fr; gap:20px 60px; }
  .certs-divider-left  { grid-column:1/2; align-self:center; }
  .certs-desc          { grid-column:2/3; justify-self:start; }
  .certs-divider-right { grid-column:2/3; width:80%; justify-self:end; }
}

.certs-badges-wrap { background:var(--clr-pink-bg); padding:60px 0 80px; }
.certs-grid {
  display:grid; grid-template-columns:repeat(2,1fr); gap:16px;
}
@media(min-width:600px){ .certs-grid{grid-template-columns:repeat(3,1fr);} }
@media(min-width:900px){ .certs-grid{grid-template-columns:repeat(4,1fr);gap:20px;} }

/* MODIFICATION: Longer base delays for badge entrance */
.cert-badge {
  perspective:800px; height:160px; cursor:default;
  opacity:0; transform:scale(0) translateY(20px);
  transition:
    opacity 0.5s var(--ease-out-expo) var(--delay),
    transform 0.6s var(--ease-bounce) var(--delay);
}
.cert-badge.in-view { opacity:1; transform:scale(1) translateY(0); }
.cert-badge:hover .cert-badge-inner,
.cert-badge:focus-within .cert-badge-inner { transform:rotateY(360deg); }
.cert-badge-inner { position:relative; width:100%; height:100%; transform-style:preserve-3d; transition:transform .9s var(--ease-out-expo); }
.cert-badge-front,.cert-badge-back {
  position:absolute; inset:0; backface-visibility:hidden; -webkit-backface-visibility:hidden;
  border-radius:var(--radius-md); display:flex; align-items:center; justify-content:center;
  background:var(--clr-white); border:1px solid rgba(204,31,43,0.12);
  box-shadow:0 4px 20px rgba(0,0,0,.06);
}
.cert-badge-front img { max-width:80%; max-height:70%; object-fit:contain; }
.cert-badge-back { background:var(--clr-red); transform:rotateY(180deg); }
.cert-badge-label { font-family:var(--ff-display); font-weight:900; font-size:18px; color:var(--clr-white); letter-spacing:.04em; }

/* ============================================================
   EVENTS
   ============================================================ */
.events-hero { background:var(--clr-red); padding:40px 0 60px; }
.events-hero .container { position:relative; }
.events-hero-body { margin-top:32px; display:grid; grid-template-columns:1fr; gap:24px; }
.events-divider-left  { width:100%; height:1px; background:rgba(255,255,255,0.25); grid-column:1/-1; }
.events-desc { font-family:var(--ff-body); font-size:clamp(14px,1.6vw,16px); color:rgba(255,255,255,.88); line-height:1.75; max-width:640px; justify-self:end; }
.events-divider-right { width:60%; height:1px; background:rgba(255,255,255,0.25); grid-column:1/-1; justify-self:end; }
@media(min-width:768px){
  .events-hero-body { grid-template-columns:1fr 1fr; gap:20px 60px; }
  .events-divider-left  { grid-column:1/2; align-self:center; }
  .events-desc          { grid-column:2/3; justify-self:start; }
  .events-divider-right { grid-column:2/3; width:80%; justify-self:end; }
}

.events-gallery-wrap { background:var(--clr-white); padding:64px 0 80px; }

.events-gallery {
  display:flex; gap:10px; height:380px; overflow:hidden; border-radius:var(--radius-md);
}
@media(max-width:639px){
  .events-gallery { flex-direction:column; height:auto; gap:8px; }
  .events-photo { flex:none !important; height:220px; width:100% !important; }
  .events-photo--wide { height:260px; }
}

/* MODIFICATION: Much longer delay for photo entrance */
.events-photo {
  position:relative; flex:1; overflow:hidden; cursor:pointer;
  border-radius:var(--radius-md);
  opacity:0; transform:scale(0.96);
  transition:
    flex 0.55s var(--ease-out-expo),
    opacity 0.5s var(--ease-out-expo) var(--ep-delay),
    transform 0.5s var(--ease-out-expo) var(--ep-delay),
    box-shadow 0.35s;
}
.events-photo--wide { flex:2.5; }
.events-photo.in-view { opacity:1; transform:scale(1); }
.events-gallery:hover .events-photo       { flex:0.55; }
.events-gallery:hover .events-photo--wide { flex:1.2; }
.events-gallery .events-photo:hover       { flex:3.5 !important; box-shadow:0 16px 40px rgba(204,31,43,0.2); }
.events-photo img { width:100%; height:100%; object-fit:cover; object-position:center top; transition:transform .6s var(--ease-out-expo); display:block; }
.events-photo:hover img { transform:scale(1.04); }
.events-photo-overlay {
  position:absolute; bottom:0; left:0; right:0;
  padding:28px 16px 16px;
  background:linear-gradient(to top,rgba(20,2,4,.72) 0%,transparent 100%);
  transform:translateY(100%); transition:transform .4s var(--ease-out-expo);
  border-radius:0 0 var(--radius-md) var(--radius-md);
}
.events-photo:hover .events-photo-overlay { transform:translateY(0); }
.events-photo-caption { font-family:var(--ff-display); font-size:13px; font-weight:600; color:var(--clr-white); letter-spacing:.04em; text-transform:uppercase; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.events-photo::before { content:''; position:absolute; left:0; top:0; bottom:0; width:3px; background:var(--clr-red); transform:scaleY(0); transform-origin:bottom; transition:transform .4s var(--ease-out-expo); z-index:2; }
.events-photo:hover::before { transform:scaleY(1); }
.events-photo.kb-expanded { flex:3.5 !important; box-shadow:0 16px 40px rgba(204,31,43,0.2); }
.events-photo.kb-expanded .events-photo-overlay { transform:translateY(0); }
.events-photo.kb-expanded::before { transform:scaleY(1); }

/* ============================================================
   WHY CHOOSE US
   ============================================================ */
.why-hero { background:var(--clr-red); padding:40px 0 60px; }
.why-hero .container { position:relative; }
.why-hero-body { margin-top:32px; display:grid; grid-template-columns:1fr; gap:24px; }
.why-divider-left  { width:100%; height:1px; background:rgba(255,255,255,0.25); grid-column:1/-1; }
.why-desc { font-family:var(--ff-body); font-size:clamp(14px,1.6vw,16px); color:rgba(255,255,255,.88); line-height:1.75; max-width:640px; text-align:justify; justify-self:end; }
.why-desc strong { color:var(--clr-white); font-weight:600; }
.why-divider-right { width:60%; height:1px; background:rgba(255,255,255,0.25); grid-column:1/-1; justify-self:end; }
@media(min-width:768px){
  .why-hero-body { grid-template-columns:1fr 1fr; gap:20px 60px; }
  .why-divider-left  { grid-column:1/2; align-self:center; }
  .why-desc          { grid-column:2/3; justify-self:start; }
  .why-divider-right { grid-column:2/3; width:80%; justify-self:end; }
}

.why-features-wrap { background:var(--clr-white); padding:72px 0 96px; }
.why-features-list { display:flex; flex-direction:column; gap:56px; }

/* MODIFICATION: Longer delay for why-feature elements */
.why-feature {
  display:flex; align-items:center; gap:40px;
  opacity:0;
}
.why-feature--from-left  { transform:translateX(-60px); }
.why-feature--from-right { transform:translateX(60px); }
.why-feature.in-view {
  opacity:1; transform:translateX(0);
  transition:opacity 0.7s var(--ease-out-expo) 0.2s,
              transform 0.7s var(--ease-out-expo) 0.2s;
}
@media(max-width:640px){
  .why-feature { flex-direction:column; align-items:flex-start; gap:20px; }
  .why-feature--from-right { flex-direction:column-reverse; }
}

.why-feature-icon-wrap {
  flex-shrink:0; width:80px; height:80px; border-radius:50%;
  background:var(--clr-pink-bg); border:2px solid var(--clr-border);
  display:flex; align-items:center; justify-content:center;
  transition:background .3s,transform .35s var(--ease-out-expo);
}
.why-feature:hover .why-feature-icon-wrap { background:var(--clr-red); transform:scale(1.08) rotate(-4deg); }
.why-feature:hover .why-feature-icon-wrap svg path,
.why-feature:hover .why-feature-icon-wrap svg circle { stroke:var(--clr-white); }

.why-icon { width:40px; height:40px; overflow:visible; }
.why-icon-path { stroke-dasharray:300; stroke-dashoffset:300; transition:stroke .3s; }
.why-feature.in-view .why-icon-path { animation:drawPath 1.4s var(--ease-out-expo) forwards; }
.why-feature:nth-child(1).in-view .why-icon-path { animation-delay:0.4s; }
.why-feature:nth-child(2).in-view .why-icon-path { animation-delay:0.5s; }
.why-feature:nth-child(3).in-view .why-icon-path { animation-delay:0.4s; }
.why-feature:nth-child(4).in-view .why-icon-path { animation-delay:0.5s; }
@keyframes drawPath { to{stroke-dashoffset:0;} }

.why-feature-title { font-family:var(--ff-display); font-weight:700; font-size:clamp(20px,2.5vw,28px); color:var(--clr-dark); margin-bottom:12px; letter-spacing:-0.01em; }
.why-feature-body  { font-family:var(--ff-body); font-size:15px; color:var(--clr-muted); line-height:1.7; max-width:520px; }
.why-feature-title::after { content:''; display:block; width:0; height:3px; background:var(--clr-red); border-radius:2px; margin-top:8px; transition:width .4s var(--ease-out-expo); }
.why-feature:hover .why-feature-title::after { width:48px; }

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact-section {
  background:var(--clr-white);
  padding:60px 0 80px;
  position:relative; overflow:hidden;
  border-top:1px solid var(--clr-line);
}

.contact-deco { position:absolute; top:0; bottom:0; width:90px; pointer-events:none; opacity:0.5; }
.contact-deco--left  { left:0; }
.contact-deco--right { right:0; transform:scaleX(-1); }
.contact-deco--left::before,.contact-deco--left::after {
  content:''; position:absolute; left:20px; top:0; bottom:0; width:1.5px;
  background:linear-gradient(to bottom,transparent 0%,var(--clr-red) 30%,var(--clr-red) 70%,transparent 100%);
}
.contact-deco--left::before { left:12px; opacity:0.35; }
.contact-deco--left::after  { left:28px; opacity:0.6; }
.contact-deco-line3 { position:absolute; left:44px; top:0; bottom:0; width:1.5px; background:linear-gradient(to bottom,transparent 0%,var(--clr-red) 30%,var(--clr-red) 70%,transparent 100%); opacity:0.2; }

.contact-grid {
  display:grid; grid-template-columns:1fr; gap:32px; position:relative;
}
@media(min-width:768px){
  .contact-grid { grid-template-columns:1fr auto 1fr; gap:0 40px; align-items:start; }
}

.contact-divider { display:none; }
@media(min-width:768px){
  .contact-divider { display:block; width:1px; background:linear-gradient(to bottom,transparent,var(--clr-border) 20%,var(--clr-border) 80%,transparent); align-self:stretch; }
}

.contact-col { display:flex; flex-direction:column; gap:32px; }

/* MODIFICATION: Much longer delays for contact items */
.contact-item {
  display:flex; align-items:flex-start; gap:20px;
  opacity:0; transform:translateY(20px);
}
.contact-item.in-view {
  animation:contactFadeUp 0.65s var(--ease-out-expo) var(--ci-delay, 0.3s) forwards;
}
@keyframes contactFadeUp { to{opacity:1;transform:translateY(0);} }

.contact-icon-wrap { flex-shrink:0; width:48px; height:48px; border-radius:50%; border:1.5px solid var(--clr-border); display:flex; align-items:center; justify-content:center; background:var(--clr-pink-bg); transition:background .3s,transform .3s var(--ease-out-expo); }
.contact-item:hover .contact-icon-wrap { background:var(--clr-red); transform:scale(1.08); }
.contact-item:hover .contact-icon-wrap svg { stroke:var(--clr-white); }
.contact-info { display:flex; flex-direction:column; gap:4px; padding-top:4px; }
.contact-label { font-family:var(--ff-display); font-weight:700; font-size:15px; color:var(--clr-red); letter-spacing:.01em; }
.contact-value { font-family:var(--ff-body); font-size:14px; color:var(--clr-text); line-height:1.5; transition:color .2s; }
.contact-address { font-size:13px; color:var(--clr-muted); line-height:1.6; }
.contact-value--link { color:var(--clr-red); text-decoration:underline; text-underline-offset:2px; }
a.contact-value:hover { color:var(--clr-red); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background:var(--clr-dark); color:rgba(255,255,255,.75); padding:64px 0 0; font-family:var(--ff-body); }
.footer-inner { display:grid; grid-template-columns:1fr; gap:40px 48px; padding-bottom:48px; border-bottom:1px solid rgba(255,255,255,.08); }
@media(min-width:640px){ .footer-inner{grid-template-columns:1fr 1fr;} }
@media(min-width:1024px){ .footer-inner{grid-template-columns:2fr 1fr 1fr 1.4fr;} }
.footer-logo { margin-bottom:16px; }
.logo-main--footer { color:var(--clr-white); font-size:20px; }
.logo-sub--footer  { color:rgba(255,255,255,.4); border-color:var(--clr-red); }
.footer-tagline { font-family:var(--ff-display); font-weight:700; font-size:13px; color:var(--clr-red); letter-spacing:.08em; text-transform:uppercase; margin-bottom:12px; }
.footer-about { font-size:13px; line-height:1.7; color:rgba(255,255,255,.5); margin-bottom:24px; max-width:280px; }
.footer-social { display:flex; gap:10px; }
.footer-social-link { display:flex; align-items:center; justify-content:center; width:36px; height:36px; border-radius:50%; border:1px solid rgba(255,255,255,.15); color:rgba(255,255,255,.6); transition:background .25s,color .25s,border-color .25s,transform .25s var(--ease-out-expo); }
.footer-social-link:hover { background:var(--clr-red); color:var(--clr-white); border-color:var(--clr-red); transform:translateY(-2px); }
.footer-col-title { font-family:var(--ff-display); font-weight:700; font-size:12px; letter-spacing:.12em; text-transform:uppercase; color:var(--clr-white); margin-bottom:18px; position:relative; padding-bottom:10px; }
.footer-col-title::after { content:''; position:absolute; bottom:0; left:0; width:28px; height:2px; background:var(--clr-red); border-radius:1px; }
.footer-nav ul,.footer-services ul,.footer-contact ul { display:flex; flex-direction:column; gap:10px; }
.footer-link { font-size:13px; color:rgba(255,255,255,.55); transition:color .2s; line-height:1.4; }
.footer-link:hover { color:var(--clr-white); }
.footer-contact-item { display:flex; align-items:flex-start; gap:8px; }
.footer-contact-item svg { flex-shrink:0; margin-top:2px; color:var(--clr-red); opacity:.85; }
.footer-addr { font-size:12px; color:rgba(255,255,255,.45); line-height:1.65; }
.footer-bottom { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:16px; padding:20px 0; }
.footer-copy { font-size:12px; color:rgba(255,255,255,.3); }
.footer-cert-badges { display:flex; gap:8px; }
.footer-cert { font-family:var(--ff-display); font-weight:700; font-size:10px; letter-spacing:.08em; color:rgba(255,255,255,.5); border:1px solid rgba(255,255,255,.15); padding:3px 10px; border-radius:100px; text-transform:uppercase; }

/* ============================================================
   QUOTE MODAL
   ============================================================ */
.modal-overlay { position:fixed; inset:0; z-index:2000; background:rgba(0,0,0,.55); backdrop-filter:blur(6px); display:flex; align-items:center; justify-content:center; padding:24px; opacity:0; animation:modalFadeIn .3s var(--ease-out-expo) forwards; }
.modal-overlay[hidden] { display:none; }
@keyframes modalFadeIn { to{opacity:1} }
.modal { background:var(--clr-white); border-radius:var(--radius-lg); padding:40px 36px; width:100%; max-width:520px; max-height:90svh; overflow-y:auto; position:relative; transform:scale(.88); animation:modalScaleIn .35s var(--ease-bounce) forwards; }
@keyframes modalScaleIn { to{transform:scale(1)} }
.modal-close { position:absolute; top:16px; right:20px; font-size:24px; color:var(--clr-muted); line-height:1; transition:color .2s; }
.modal-close:hover { color:var(--clr-red); }
.modal h2 { font-family:var(--ff-display); font-weight:800; font-size:24px; color:var(--clr-dark); margin-bottom:8px; }
.form-progress { height:4px; background:var(--clr-gray); border-radius:2px; overflow:hidden; }
.form-progress-bar { height:100%; background:var(--clr-red); border-radius:2px; transition:width .4s var(--ease-out-expo); }
.form-step { display:flex; flex-direction:column; gap:12px; }
.form-step[hidden] { display:none; }
.form-step label { font-size:13px; font-weight:500; color:var(--clr-text); margin-bottom:-6px; }
.form-step input,.form-step select,.form-step textarea { width:100%; border:1.5px solid #ddd; border-radius:var(--radius-sm); padding:10px 14px; font-family:var(--ff-body); font-size:14px; color:var(--clr-text); outline:none; transition:border-color .2s; background:var(--clr-white); }
.form-step input:focus,.form-step select:focus,.form-step textarea:focus { border-color:var(--clr-red); }
.form-step textarea { resize:vertical; min-height:80px; }
.form-step--confirm { text-align:center; padding:20px 0; }
.confirm-icon { display:flex; justify-content:center; margin-bottom:16px; }
.form-step--confirm h3 { font-family:var(--ff-display); font-size:20px; font-weight:700; color:var(--clr-red); margin-bottom:10px; }
.form-step--confirm p { color:var(--clr-muted); line-height:1.6; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media(max-width:1023px){
  .services-header { padding:60px 24px 36px; }
}
@media(max-width:767px){
  .hero-actions { flex-direction:column; align-items:center; }
  .ceo-card { left:0; right:0; bottom:0; border-radius:0 0 var(--radius-xl) var(--radius-xl); }
  .scroll-indicator { display:none; }
  .about-image-bg { display:none; }
  .stats-container { min-height:auto; padding:0 20px; }
  .wave-wrapper { display:none; }
  .stats-track { position:static; height:auto; display:grid; grid-template-columns:1fr 1fr; gap:32px 16px; }
  .stat-node { position:static; width:100%; }
  .stat-node--above,.stat-node--below { flex-direction:column; justify-content:center; top:auto; bottom:auto; }
  .stat-connector { height:20px; }
}
@media(min-width:768px){
  .stat-pill { flex-direction:row; align-items:baseline; text-align:left; }
  .stat-pill__label { align-self:center; margin-left:4px; }
}
@media(min-width:1024px){
  :root { --logo-height-desktop:52px; }
  .logo-img,.logo-placeholder { height:var(--logo-height-desktop); max-width:140px; }
}

/* ============================================================
   LOGO (certifications / events / why hero sections)
   ============================================================ */
.certs-hero .logo-main,
.events-hero .logo-main,
.why-hero .logo-main { color:var(--clr-white); }
.certs-hero .logo-sub,
.events-hero .logo-sub,
.why-hero .logo-sub   { color:rgba(255,255,255,.6); border-bottom:1.5px solid rgba(255,255,255,.4); padding-bottom:2px; }

/* ============================================================
   ACCESSIBILITY + REDUCED MOTION
   ============================================================ */
:focus-visible { outline:2px solid var(--clr-red); outline-offset:3px; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after { animation-duration:.01ms !important; transition-duration:.01ms !important; }
}
@media(prefers-reduced-motion:reduce){
  .marquee--ltr .marquee__track,.marquee--rtl .marquee__track { animation:none; }
  .clients-section,.clients-section__title,.clients-section__subtitle,.clients-section__stats { opacity:1; transform:none; transition:none; }
}
.marquee__item:focus-visible { outline:2px solid var(--color-red); outline-offset:4px; border-radius:4px; }

/* ============================================================
   PORTFOLIO SECTION
   ============================================================ */

/* Hero header */
.portfolio-hero {
  background: var(--clr-red);
  padding: 40px 0 60px;
}
.portfolio-hero .container { position: relative; }
.portfolio-hero .logo-main { color: var(--clr-white); }
.portfolio-hero .logo-sub  { color: rgba(255,255,255,.6); border-bottom: 1.5px solid rgba(255,255,255,.4); padding-bottom: 2px; }

.portfolio-hero-desc {
  margin-top: 32px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.portfolio-divider-left  { width: 100%; height: 1px; background: rgba(255,255,255,0.25); }
.portfolio-desc { font-family: var(--ff-body); font-size: clamp(14px,1.6vw,16px); color: rgba(255,255,255,.88); line-height: 1.75; max-width: 640px; justify-self: end; }
.portfolio-divider-right { width: 60%; height: 1px; background: rgba(255,255,255,0.25); justify-self: end; }

@media(min-width:768px) {
  .portfolio-hero-desc { grid-template-columns: 1fr 1fr; gap: 20px 60px; }
  .portfolio-divider-left  { align-self: center; }
  .portfolio-desc          { grid-column: 2/3; justify-self: start; }
  .portfolio-divider-right { grid-column: 2/3; width: 80%; justify-self: end; }
}

/* App wrapper */
.portfolio-app-wrap {
  background: #f7f4f0;
  padding: 0;
  overflow: hidden;
}

.portfolio-app {
  display: flex;
  height: 940px;
  max-height: 94vh;
  min-height: 640px;
}

/* ── SIDEBAR ── */
.pf-sidebar {
  width: 220px;
  min-width: 220px;
  background: #0a0a0a;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 10;
}

.pf-sidebar-search { padding: 20px 16px 10px; }
.pf-search-wrap { position: relative; }
.pf-search-icon { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); opacity: .35; pointer-events: none; }
.pf-search-box {
  width: 100%;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  padding: 8px 12px 8px 32px;
  color: rgba(255,255,255,.7);
  font-size: 12px;
  font-family: var(--ff-body);
  outline: none;
}
.pf-search-box::placeholder { color: rgba(255,255,255,.3); }

.pf-sidebar-title {
  padding: 14px 20px 8px;
  font-size: 9px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.25);
  font-weight: 500;
  font-family: var(--ff-display);
}

.pf-sectors-list {
  flex: 1;
  overflow-y: auto;
  padding: 0 10px;
  scrollbar-width: none;
}
.pf-sectors-list::-webkit-scrollbar { display: none; }

.pf-sector-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 12px;
  border: none;
  background: transparent;
  color: rgba(255,255,255,.45);
  font-family: var(--ff-body);
  font-size: 12.5px;
  font-weight: 400;
  text-align: left;
  cursor: pointer;
  border-radius: 7px;
  transition: all .2s ease;
  position: relative;
  margin-bottom: 1px;
}
.pf-sector-btn:hover { color: rgba(255,255,255,.85); background: rgba(255,255,255,.05); }
.pf-sector-btn.active { color: #fff; background: rgba(200,16,46,.18); font-weight: 500; }
.pf-sector-btn.active::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 60%;
  background: var(--clr-red);
  border-radius: 0 3px 3px 0;
}
.pf-sector-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; opacity: .7; }
.pf-sector-btn.active .pf-sector-dot { opacity: 1; }

.pf-sidebar-nav {
  padding: 12px 16px 20px;
  border-top: 1px solid rgba(255,255,255,.06);
  display: flex;
  justify-content: center;
  gap: 8px;
}
.pf-nav-arrow {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.12);
  background: transparent;
  color: rgba(255,255,255,.5);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s;
}
.pf-nav-arrow:hover { border-color: var(--clr-red); color: var(--clr-red); }

/* ── MAIN AREA ── */
.pf-main {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.pf-slides-container {
  width: 100%;
  height: 100%;
  position: relative;
}

.pf-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transform: translateY(30px);
  transition: opacity .5s ease, transform .5s ease;
}
.pf-slide.active {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

/* Slide hero — 65% height */
.pf-slide-hero {
  position: relative;
  flex: 0 0 65%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 36px 48px 40px;
}

/* Products section — 35% height, white panel */
.pf-products-section {
  flex: 0 0 35%;
  background: #fff;
  padding: 20px 40px 24px;
  border-top: 3px solid var(--clr-red);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 10;
}
.pf-hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(.6) saturate(.85);
  transition: transform 8s ease, background-image .3s ease;
}
.pf-slide.active .pf-hero-bg { transform: scale(1.04); }
.pf-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,.85) 0%,
    rgba(0,0,0,.45) 40%,
    rgba(0,0,0,.15) 70%,
    transparent 100%
  );
}
.pf-hero-accent  { position: absolute; bottom: 0; left: 0; height: 3px; width: 0; transition: width .8s ease .3s; }
.pf-slide.active .pf-hero-accent { width: 100%; }
.pf-hero-content { position: relative; z-index: 2; }

.pf-sector-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10px; font-weight: 500; letter-spacing: .18em;
  text-transform: uppercase; color: rgba(255,255,255,.6); margin-bottom: 10px;
  font-family: var(--ff-display);
}
.pf-badge-dot { width: 6px; height: 6px; border-radius: 50%; }

.pf-brand-name {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: clamp(36px, 4.5vw, 62px);
  letter-spacing: -.02em;
  color: #fff;
  line-height: .95;
  margin-bottom: 10px;
  overflow: hidden;
}
.pf-brand-name-inner {
  display: block;
  transform: translateY(100%);
  transition: transform .6s cubic-bezier(.22,1,.36,1) .1s;
}
.pf-slide.active .pf-brand-name-inner { transform: translateY(0); }

.pf-brand-desc {
  font-size: 13px; color: rgba(255,255,255,.55); line-height: 1.65;
  max-width: 500px; font-weight: 300;
  opacity: 0; transform: translateY(10px);
  transition: opacity .5s ease .35s, transform .5s ease .35s;
}
.pf-slide.active .pf-brand-desc { opacity: 1; transform: translateY(0); }

.pf-slide-number {
  position: absolute; top: 24px; right: 40px;
  font-family: var(--ff-display); font-size: 13px;
  letter-spacing: .15em; color: rgba(255,255,255,.25); z-index: 2;
}

/* Products grid */
.pf-products-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
  flex-shrink: 0;
}
.pf-products-label { font-size: 10px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: #999; font-family: var(--ff-display); }
.pf-products-count { font-size: 11px; color: #bbb; font-family: var(--ff-display); }

.pf-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
  overflow-y: auto;
  flex: 1;
  scrollbar-width: none;
  align-content: start;
}
.pf-products-grid::-webkit-scrollbar { display: none; }

.pf-product-card {
  border: 1px solid #ececec;
  border-radius: 12px;
  overflow: hidden;
  display: flex; flex-direction: column;
  align-items: stretch;
  background: #f9f9f9;
  aspect-ratio: 1;
  cursor: default;
  transition: border-color .2s, transform .25s var(--ease-out-expo), box-shadow .2s;
  opacity: 0;
  transform: translateY(16px) scale(.96);
  position: relative;
}
.pf-slide.active .pf-product-card { opacity: 1; transform: translateY(0) scale(1); }
.pf-product-card:hover { border-color: var(--clr-red); transform: translateY(-3px) scale(1.04); box-shadow: 0 8px 24px rgba(204,31,43,.12); z-index: 2; }

.pf-product-img-wrap {
  width: 100%;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 10px;
  min-height: 0;
}
.pf-product-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform .35s ease;
}
.pf-product-card:hover .pf-product-img { transform: scale(1.1); }
.pf-product-img-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #bbb;
  opacity: 0.6;
}
.pf-product-label {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,.65), transparent);
  color: #fff;
  font-size: 9px;
  padding: 16px 6px 5px;
  text-align: center;
  opacity: 0;
  transition: opacity .2s;
  border-radius: 0 0 11px 11px;
  line-height: 1.3;
  font-family: var(--ff-body);
}
.pf-product-card:hover .pf-product-label { opacity: 1; }

/* Progress + dots */
.pf-progress-bar { position: absolute; bottom: 0; left: 0; height: 3px; background: rgba(0,0,0,.06); width: 100%; z-index: 5; }
.pf-progress-fill { height: 100%; background: var(--clr-red); transition: width .4s ease; }
.pf-scroll-hint {
  position: absolute;
  right: 20px;
  top: 30%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  z-index: 20;
}
.pf-scroll-dot { width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,.3); cursor: pointer; transition: all .25s; }
.pf-scroll-dot.active { height: 18px; border-radius: 3px; background: #fff; }

/* Responsive */
@media(max-width:900px){
  .pf-sidebar { width: 180px; min-width: 180px; }
  .pf-products-section { padding: 14px 20px 16px; }
  .pf-products-grid { grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); }
  .pf-slide-hero { flex: 0 0 60%; }
  .pf-products-section { flex: 0 0 40%; }
}
@media(max-width:600px){
  .portfolio-app { flex-direction: column; height: auto; }
  .pf-sidebar { width: 100%; min-width: unset; height: auto; flex-direction: row; overflow-x: auto; padding: 8px; }
  .pf-sidebar-search, .pf-sidebar-title { display: none; }
  .pf-sectors-list { display: flex; flex-direction: row; padding: 0; overflow-x: auto; }
  .pf-sector-btn { white-space: nowrap; padding: 6px 14px; }
  .pf-slides-container { height: 680px; }
  .pf-slide-hero { flex: 0 0 55%; }
  .pf-products-section { flex: 0 0 45%; padding: 12px 16px 14px; }
  .pf-products-grid { grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 8px; }
}
