/* ============================================
   MADAR — Main Stylesheet
   Font: Syne (headings) + DM Sans (body)
   Theme: Dark (#090909) + Yellow (#F5C842)
   ============================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --y:       #F5C842;
  --y2:      #FFD96B;
  --y-dim:   rgba(245, 200, 66, 0.12);
  --y-border:rgba(245, 200, 66, 0.22);
  --dark:    #090909;
  --dark2:   #111111;
  --dark3:   #181818;
  --dark4:   #222222;
  --text:    #F0F0F0;
  --muted:   #888888;
  --dim:     #444444;
  --border:  rgba(255,255,255,0.07);
  --radius:  16px;
  --radius-lg: 24px;
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
}

html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--dark);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { overflow-wrap: break-word; word-break: break-word; }

h1, h2, h3, h4 { font-family: 'Syne', sans-serif; }

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 2rem;
}

.gold { color: var(--y); }
.thin { font-weight: 300; color: var(--muted); }

/* ---- BUTTONS ---- */
.btn-y {
  display: inline-flex; align-items: center;
  padding: 13px 30px;
  background: var(--y); color: #090909;
  border: none; border-radius: 50px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px; font-weight: 500;
  cursor: pointer; transition: all var(--transition);
  letter-spacing: 0.2px;
}
.btn-y:hover { background: var(--y2); transform: translateY(-2px); }

.btn-ghost {
  display: inline-flex; align-items: center;
  padding: 13px 30px;
  background: transparent; color: var(--text);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px; cursor: pointer;
  transition: all var(--transition);
}
.btn-ghost:hover { border-color: var(--y-border); color: var(--y); transform: translateY(-2px); }

.btn-nav {
  display: inline-flex; align-items: center;
  padding: 10px 22px;
  background: var(--y); color: #090909;
  border-radius: 50px;
  font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all var(--transition);
  white-space: nowrap;
}
.btn-nav:hover { background: var(--y2); }

.btn-wa {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 30px;
  background: rgba(37,211,102,0.1);
  color: #2ecc71;
  border: 1px solid rgba(46,204,113,0.3);
  border-radius: 50px;
  font-size: 15px; cursor: pointer;
  transition: all var(--transition);
}
.btn-wa:hover { background: #2ecc71; color: #090909; transform: translateY(-2px); }

.wa-pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: #2ecc71; flex-shrink: 0;
  animation: wapulse 1.8s ease-in-out infinite;
}
@keyframes wapulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.3;transform:scale(0.6)} }

/* ---- NAV ---- */
/* ============ NAV ============ */
.nav {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 64px;
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%);
  width: calc(100% - 3rem); max-width: 960px;
  z-index: 1000;
  border-radius: 16px;
  background: rgba(17,17,17,0.7);
  border: 1px solid rgba(255,255,255,0.07);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
}
.nav.scrolled {
  background: rgba(17,17,17,0.92);
  border-color: rgba(245,200,66,0.14);
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
  top: 10px;
}

/* LOGO */
.logo {
  display: flex; align-items: center; gap: 10px;
  cursor: pointer; text-decoration: none; flex-shrink: 0;
}
.logo-mark {
  width: 30px; height: 30px; border-radius: 50%;
  border: 1.5px solid var(--y);
  display: flex; align-items: center; justify-content: center;
  position: relative; flex-shrink: 0;
  transition: transform 0.5s ease;
}
.logo:hover .logo-mark { transform: rotate(180deg); }
.logo-mark.small { width: 26px; height: 26px; }
.logo-ring {
  position: absolute; inset: 5px; border-radius: 50%;
  border: 1px solid rgba(245,200,66,0.3);
}
.logo-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--y); position: absolute;
}
.logo-mark.small .logo-dot { width: 5px; height: 5px; }
.logo-name {
  font-family: 'Syne', sans-serif;
  font-size: 19px; font-weight: 700;
  color: var(--text); letter-spacing: 0.5px;
}
.logo-name em { color: var(--y); font-style: normal; }

/* NAV LINKS — icon + text style */
.nav-links {
  display: flex; gap: 4px; align-items: center;
}
.nav-links a {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--muted);
  transition: all 0.25s ease;
  padding: 7px 13px; border-radius: 10px;
  border: 1px solid transparent;
  white-space: nowrap; text-decoration: none;
}
.nav-links a i { font-size: 15px; transition: color 0.2s; }
.nav-links a:hover {
  color: var(--text);
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.07);
}
.nav-links a.active {
  color: var(--y);
  background: rgba(245,200,66,0.08);
  border-color: rgba(245,200,66,0.2);
}
.nav-links a.active i { color: var(--y); }

/* CTA */
.btn-nav {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 18px;
  background: var(--y); color: #090909;
  border-radius: 10px;
  font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all 0.25s ease;
  white-space: nowrap; flex-shrink: 0;
  border: none; text-decoration: none;
}
.btn-nav:hover { background: var(--y2); transform: translateY(-1px); box-shadow: 0 4px 20px rgba(245,200,66,0.3); }

/* BURGER */
.burger {
  display: none; flex-direction: column; gap: 5px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px; cursor: pointer; padding: 10px;
  transition: all 0.2s;
}
.burger:hover { border-color: rgba(245,200,66,0.3); }
.burger span {
  width: 18px; height: 1.5px; background: var(--text);
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1); display: block;
}
.burger.open { background: rgba(245,200,66,0.08); border-color: rgba(245,200,66,0.3); }
.burger.open span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); background: var(--y); }
.burger.open span:nth-child(2) { transform: rotate(-45deg) translate(4px, -4px); background: var(--y); }

/* MOBILE MENU */
.mobile-menu {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(320px, 100vw);
  background: var(--dark2);
  border-left: 1px solid var(--border);
  display: flex; flex-direction: column;
  justify-content: center; gap: 0;
  z-index: 999;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
  padding: 3rem 2.5rem;
  overflow-y: auto;
}
.mobile-menu.open { transform: translateX(0); }

.mobile-menu-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s ease;
}
.mobile-menu-backdrop.open { opacity: 1; pointer-events: all; }

.mobile-menu .mob-logo {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 3rem;
}
.mobile-menu a {
  font-family: 'Syne', sans-serif;
  font-size: 24px; font-weight: 700; color: var(--muted);
  transition: all 0.2s; padding: 12px 0;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  text-decoration: none;
}
.mobile-menu a:last-of-type { border-bottom: none; }
.mobile-menu a:hover { color: var(--y); padding-left: 6px; }
.mobile-menu a svg { opacity: 0; transition: opacity 0.2s; }
.mobile-menu a:hover svg { opacity: 1; }

.mob-dropdown { border-bottom: 1px solid var(--border); }
.mob-dropdown-toggle {
  width: 100%; background: none; border: none; cursor: pointer;
  font-family: 'Syne', sans-serif;
  font-size: 24px; font-weight: 700; color: var(--muted);
  transition: all 0.2s; padding: 12px 0;
  display: flex; align-items: center; justify-content: space-between;
  text-align: inherit;
}
.mob-dropdown-toggle:hover { color: var(--y); }
.mob-dropdown-toggle .mob-caret { transition: transform 0.25s ease; }
.mob-dropdown.open .mob-dropdown-toggle { color: var(--y); }
.mob-dropdown.open .mob-caret { transform: rotate(90deg); }
.mob-submenu { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.mob-dropdown.open .mob-submenu { max-height: 160px; }
.mob-submenu a {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px; font-weight: 500;
  padding: 10px 0 10px 12px;
  border-bottom: none;
  color: var(--muted);
}
.mob-submenu a:hover { color: var(--y); padding-left: 18px; }
.mobile-menu .btn-y {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px; font-weight: 600;
  margin-top: 2rem; justify-content: center;
  border-radius: 10px; padding: 14px;
  text-decoration: none; color: var(--dark);
}

/* ---- HERO ---- */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 120px 2rem 6rem;
  position: relative; overflow: hidden;
}

.hero-bg {
  position: absolute; inset: 0;
  pointer-events: none;
}
.hero-glow {
  position: absolute;
  width: 700px; height: 700px; border-radius: 50%;
  background: radial-gradient(circle, rgba(245,200,66,0.055) 0%, transparent 70%);
  top: 50%; left: 50%; transform: translate(-50%, -50%);
}
.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.6) 0%, transparent 70%);
}
.orbit {
  position: absolute; border-radius: 50%;
  border: 1px solid var(--y-border);
  top: 50%; left: 50%; transform: translate(-50%, -50%);
}
.orbit-1 { width: 320px; height: 320px; animation: rotate 20s linear infinite; }
.orbit-2 { width: 520px; height: 520px; animation: rotate 35s linear infinite reverse; border-style: dashed; opacity: 0.4; }
.orbit-3 { width: 720px; height: 720px; border-color: rgba(245,200,66,0.06); }
@keyframes rotate { from{transform:translate(-50%,-50%) rotate(0deg)} to{transform:translate(-50%,-50%) rotate(360deg)} }
.orbit-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--y);
  position: absolute; top: -4px; left: 50%; transform: translateX(-50%);
}
.orbit-dot.dot-dim { width: 5px; height: 5px; top: -2.5px; background: var(--dim); }

.hero-content { position: relative; z-index: 2; max-width: 780px; }

.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; padding: 7px 18px; border-radius: 50px;
  border: 1px solid var(--y-border); background: var(--y-dim);
  color: var(--y); margin-bottom: 28px;
  letter-spacing: 1.5px; text-transform: uppercase;
}
.pulse {
  width: 6px; height: 6px; border-radius: 50%; background: var(--y);
  animation: pulse 2s ease-in-out infinite; flex-shrink: 0;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.15} }

.hero-title {
  font-size: 78px; font-weight: 800; line-height: 1.0;
  color: var(--text); margin-bottom: 22px;
  letter-spacing: -2px;
}
.hero-sub {
  font-size: 18px; color: var(--muted); max-width: 500px;
  line-height: 1.85; margin: 0 auto 38px;
}
.hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---- HERO WORK PICKER ---- */
.work-picker { position: relative; display: inline-block; }
.work-picker-btn { cursor: pointer; }
.work-picker-caret { margin-inline-start: 8px; transition: transform 0.3s cubic-bezier(0.4,0,0.2,1); }
.work-picker.open .work-picker-caret { transform: rotate(180deg); }

/*
 * position:fixed + JS-computed top/left (see main.js) — deliberately NOT
 * absolute-under-.hero. .hero has overflow:hidden to contain its decorative
 * background; an absolutely-positioned popover would get clipped by that
 * whenever it didn't fit in the remaining hero space (short viewports),
 * colliding with the scroll indicator/marquee below. Fixed positioning
 * escapes that clip and floats above the page as a proper overlay.
 */
.work-picker-menu {
  position: fixed; top: 0; left: 0;
  transform: translateY(-10px) scale(0.96);
  display: flex; gap: 10px;
  background: var(--dark2); border: 1px solid var(--y-border);
  border-radius: 20px; padding: 10px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.28s ease, transform 0.28s cubic-bezier(0.22,1,0.36,1), visibility 0.28s;
  box-shadow: 0 24px 60px rgba(0,0,0,0.55);
  z-index: 1200;
}
.work-picker-menu::before {
  content: '';
  position: absolute; top: -7px; left: var(--wp-arrow-left, 50%); transform: translateX(-50%) rotate(45deg);
  width: 13px; height: 13px;
  background: var(--dark2);
  border-left: 1px solid var(--y-border);
  border-top: 1px solid var(--y-border);
}
/* .work-picker-menu is portaled to <body> by main.js, so it's no longer a
   DOM descendant of .work-picker — state is toggled on the menu itself. */
.work-picker-menu.open {
  opacity: 1; visibility: visible; pointer-events: all;
  transform: translateY(0) scale(1);
}

.wp-option {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  width: 168px; padding: 16px 14px;
  border-radius: 14px; background: var(--dark3);
  border: 1px solid transparent;
  text-decoration: none; color: var(--text);
  transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease, opacity 0.25s ease;
  opacity: 0; transform: translateY(6px);
}
.work-picker-menu.open .wp-option {
  opacity: 1; transform: translateY(0);
}
.wp-option:nth-child(2) { transition-delay: 0.05s; }
.wp-option:hover { border-color: var(--y-border); background: var(--dark4); transform: translateY(-3px); }
.wp-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--y-dim); border: 1px solid var(--y-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--y); flex-shrink: 0;
}
.wp-text strong { display: block; font-family: 'Syne', sans-serif; font-size: 14px; font-weight: 700; margin-bottom: 3px; letter-spacing: -0.2px; }
.wp-text small { display: block; font-size: 11px; color: var(--muted); line-height: 1.5; }

@media (max-width: 420px) {
  .hero-btns { flex-direction: column; align-items: center; }
  .work-picker-menu { flex-direction: column; width: max(260px, calc(100vw - 3rem)); }
  .wp-option { width: 100%; flex-direction: row; align-items: center; }
}

.hero-scroll {
  position: absolute; bottom: 2.5rem; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  z-index: 2;
}
.scroll-line {
  width: 1px; height: 40px; background: linear-gradient(to bottom, transparent, var(--dim));
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine { 0%,100%{opacity:0.3} 50%{opacity:1} }
.hero-scroll span { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--dim); }

/* ---- MARQUEE ---- */
.marquee-wrap {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--dark2);
  overflow: hidden; padding: 16px 0;
}
.marquee { display: flex; }
.marquee-track {
  display: flex; align-items: center; gap: 2.5rem;
  animation: marquee 22s linear infinite;
  white-space: nowrap; flex-shrink: 0;
  padding-right: 2.5rem;
}
.marquee-track span { font-size: 12px; color: var(--dim); letter-spacing: 1px; text-transform: uppercase; }
.sep { width: 4px; height: 4px; border-radius: 50%; background: var(--y); opacity: 0.5; flex-shrink: 0; }
@keyframes marquee { from{transform:translateX(0)} to{transform:translateX(-50%)} }

/* ---- SECTIONS ---- */
.section { padding: 7rem 0; }
.section-alt { background: var(--dark2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.sec-head { margin-bottom: 4rem; }
.sec-head.center { text-align: center; }
.sec-tag {
  display: block; font-size: 11px; letter-spacing: 3px;
  text-transform: uppercase; color: var(--y); margin-bottom: 14px;
}
.sec-title {
  font-size: 52px; font-weight: 800; color: var(--text);
  line-height: 1.0; letter-spacing: -1.5px; margin-bottom: 16px;
}
.sec-sub {
  font-size: 17px; color: var(--muted); line-height: 1.85;
  max-width: 500px;
}
.sec-head.center .sec-sub { margin: 0 auto; }

/* ---- SERVICES ---- */
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden;
}
.scard {
  background: var(--dark2); padding: 2.5rem 2rem;
  position: relative; overflow: hidden;
  transition: background var(--transition);
}
.scard:hover { background: var(--dark3); }
.scard-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.scard-num { font-size: 11px; color: var(--dim); letter-spacing: 2px; font-family: 'Syne', sans-serif; }
.scard-icon {
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--y-dim); border: 1px solid var(--y-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--y);
}
.scard-title { font-size: 20px; font-weight: 700; color: var(--text); margin-bottom: 12px; letter-spacing: -0.3px; }
.scard-body { font-size: 14px; color: var(--muted); line-height: 1.8; margin-bottom: 20px; }
.scard-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.scard-footer span { font-size: 12px; color: var(--dim); }
.arrow-circle {
  width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--border); color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.scard:hover .arrow-circle { border-color: var(--y-border); color: var(--y); }
.scard-bar {
  position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: var(--y); transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s ease;
}
.scard:hover .scard-bar { transform: scaleX(1); }

/* ---- HOW IT WORKS ---- */
.how-steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden;
}
.hstep {
  padding: 2.5rem 1.8rem;
  background: var(--dark2);
  border-right: 1px solid var(--border);
  position: relative;
  transition: background var(--transition);
}
.hstep:hover { background: var(--dark3); }
.hstep:last-child { border-right: none; }
.hstep-num {
  font-family: 'Syne', sans-serif;
  font-size: 48px; font-weight: 800;
  color: var(--y); opacity: 0.18; line-height: 1;
  margin-bottom: 20px; letter-spacing: -2px;
}
.hstep-line {
  width: 100%; height: 1px; background: linear-gradient(to right, var(--y), transparent);
  margin-bottom: 20px; opacity: 0.3;
}
.hstep-line.last { background: transparent; }
.hstep-title { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.hstep-body { font-size: 13px; color: var(--muted); line-height: 1.75; }

/* ---- WHY US ---- */
.why-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
.wcard {
  background: var(--dark2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem 2rem 2.2rem;
  transition: border-color var(--transition), transform var(--transition);
}
.wcard:hover { border-color: var(--y-border); transform: translateY(-4px); }
.wcard-icon { color: var(--y); margin-bottom: 16px; }
.wcard-title { font-size: 19px; font-weight: 700; color: var(--text); margin-bottom: 10px; letter-spacing: -0.3px; }
.wcard-body { font-size: 14px; color: var(--muted); line-height: 1.8; }

/* ---- NUMBERS ---- */
.numbers-section {
  padding: 5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--dark2);
}
.numbers-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0; border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
}
.ncard {
  text-align: center; padding: 3rem 1.5rem;
  border-right: 1px solid var(--border);
  background: var(--dark2);
  transition: background var(--transition);
}
.ncard:hover { background: var(--dark3); }
.ncard:last-child { border-right: none; }
.ncard-num {
  font-family: 'Syne', sans-serif;
  font-size: 52px; font-weight: 800; color: var(--y);
  line-height: 1; letter-spacing: -2px; margin-bottom: 8px;
}
.ncard-label { font-size: 13px; color: var(--muted); line-height: 1.5; }

/* ---- CTA ---- */
.cta-section { padding: 7rem 0; }
.cta-card {
  background: var(--dark2);
  border: 1px solid var(--y-border);
  border-radius: 36px; padding: 5.5rem 3rem;
  text-align: center; position: relative; overflow: hidden;
}
.cta-glow {
  position: absolute; width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(245,200,66,0.065) 0%, transparent 70%);
  top: 50%; left: 50%; transform: translate(-50%,-50%);
  pointer-events: none;
}
.cta-inner { position: relative; z-index: 1; }
.cta-title {
  font-size: 58px; font-weight: 800; color: var(--text);
  line-height: 1.05; letter-spacing: -1.5px;
  margin: 12px 0 16px;
}
.cta-sub { font-size: 17px; color: var(--muted); margin-bottom: 36px; line-height: 1.8; max-width: 480px; margin-left: auto; margin-right: auto; }
.cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---- FOOTER ---- */
.footer {
  border-top: 1px solid var(--border);
  background: var(--dark);
  padding: 4rem 0 2rem;
}
.footer-inner {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 3rem; flex-wrap: wrap; margin-bottom: 3rem;
}
.footer-left { display: flex; flex-direction: column; gap: 10px; }
.footer-tagline { font-size: 13px; color: var(--dim); }
.footer-links { display: flex; gap: 4rem; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.col-title { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--dim); margin-bottom: 4px; }
.footer-col a { font-size: 14px; color: var(--muted); transition: color var(--transition); }
.footer-col a:hover { color: var(--y); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem; margin-top: 0;
  display: flex; justify-content: space-between;
  font-size: 12px; color: var(--dim);
  max-width: 960px; margin: 0 auto; padding: 1.5rem 2rem 0;
  flex-wrap: wrap; gap: 8px;
}

/* ---- SCROLL REVEAL ---- */
.reveal, .reveal-delay-1, .reveal-delay-2, .reveal-delay-3 {
  opacity: 0; transform: translateY(24px);
  animation: fadeUp 0.9s ease forwards;
}
.reveal-delay-1 { animation-delay: 0.12s; }
.reveal-delay-2 { animation-delay: 0.22s; }
.reveal-delay-3 { animation-delay: 0.32s; }
@keyframes fadeUp { to{ opacity:1; transform:translateY(0); } }

.reveal-up {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-up.visible { opacity: 1; transform: translateY(0); }

/* ---- RESPONSIVE ---- */
@media (max-width: 860px) {
  .nav {
    width: calc(100% - 2rem); top: 8px;
    height: auto; min-height: 52px;
    padding: 7px 1rem;
  }
  .nav.scrolled { top: 6px; }
  .nav .logo-mark { width: 24px; height: 24px; }
  .nav .logo-name { font-size: 16px; }
  .nav-links, .btn-nav { display: none; }
  .burger { display: flex; }
  .hero { padding: 100px 1.5rem 4.5rem; }
  .hero-title { font-size: 44px; }
  .sec-title { font-size: 38px; }
  .services-grid, .how-steps, .numbers-grid { grid-template-columns: 1fr; }
  .scard:not(:last-child) { border-bottom: 1px solid var(--border); }
  .hstep { border-right: none; border-bottom: 1px solid var(--border); }
  .ncard { border-right: none; border-bottom: 1px solid var(--border); }
  .ncard:last-child { border-bottom: none; }
  .why-grid { grid-template-columns: 1fr; }
  .cta-title { font-size: 40px; }
  .footer-inner { flex-direction: column; }
  .footer-links { flex-direction: column; gap: 2rem; }

  /* Compact touch targets on mobile */
  .burger { min-width: 38px; min-height: 38px; padding: 8px; align-items: center; justify-content: center; }
  .burger span { width: 15px; }
  .lang-switcher .lb { min-height: 28px; padding: 5px 10px; font-size: 11px; }
}

@media (max-width: 600px) {
  .hero-title { font-size: 40px; letter-spacing: -1px; }
  .hero-sub { font-size: 16px; }
  .sec-title { font-size: 32px; }
  .cta-title { font-size: 34px; }
  .cta-card { padding: 3.5rem 1.5rem; }
}

@media (max-width: 380px) {
  .container { padding: 0 1.25rem; }
  .hero { padding: 110px 1.25rem 5rem; }
  .hero-title { font-size: 32px; }
  .hero-tag { font-size: 11px; padding: 6px 14px; }
  .sec-title { font-size: 26px; }
  .cta-title { font-size: 28px; }
  .cta-card { padding: 2.75rem 1.25rem; }
  .mobile-menu { padding: 2.5rem 1.5rem; }
  .mobile-menu a, .mob-dropdown-toggle { font-size: 20px; }
}

/* ---- LANG SWITCHER ---- */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
}

.lb {
  background: none;
  border: 1px solid var(--dim);
  color: var(--muted);
  padding: 5px 11px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'DM Sans', 'Cairo', sans-serif;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  letter-spacing: 0.4px;
  line-height: 1;
}
.lb:hover { border-color: var(--y-border); color: var(--y); }
.lb.on    { border-color: var(--y); color: var(--y); background: var(--y-dim); }

/* ---- ARABIC (RTL) FONT OVERRIDES ---- */
[dir="rtl"] body {
  font-family: 'Cairo', 'DM Sans', sans-serif;
}
[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3,
[dir="rtl"] h4 {
  font-family: 'Cairo', 'Syne', sans-serif;
  letter-spacing: 0;
}
[dir="rtl"] .hero-title {
  line-height: 1.15;
}
[dir="rtl"] .btn-y,
[dir="rtl"] .btn-ghost,
[dir="rtl"] .btn-nav,
[dir="rtl"] .btn-wa,
[dir="rtl"] .lb {
  font-family: 'Cairo', 'DM Sans', sans-serif;
}
[dir="rtl"] .marquee { direction: ltr; } /* keep marquee scrolling direction */
[dir="rtl"] .hstep-line { margin-inline-start: 0; margin-inline-end: auto; }

/* Keep iframe previews in LTR so scale/transform-origin works correctly */
[dir="rtl"] .work-iframe-wrap { direction: ltr; }

/* Pop-card CSS animation fallback — fires at 0.4s even without JS observer */
@keyframes pop-in {
  from { opacity: 0; transform: translateY(60px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.pop-card {
  animation: pop-in 0.7s cubic-bezier(0.22,1,0.36,1) 0.4s both;
}
/* When JS adds .popped, disable animation so hover transitions work cleanly */
.pop-card.popped {
  animation: none;
}

/* dropdown menu */
.dropdown {
    position: relative;
}
.dropdown-toggle {
    cursor: pointer;
}
.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0; 
    display: none;
    min-width: 220px;
    background: #1b1b1b;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 8px 0;
    list-style: none;
    z-index: 1000;
}
.dropdown-menu li a {
    display: block;
    padding: 10px 16px;
    color: #fff;
    text-decoration: none;
}
.dropdown-menu li a:hover {
    background: #2a2a2a;
}
.dropdown:hover .dropdown-menu {
    display: block;
}



@media(max-width:768px){

.dropdown-menu{
    display:none;
}

.dropdown.show .dropdown-menu{
    display:block;
}

}