/* ================================================
   IdealHubs — Main Stylesheet
   ================================================ */

/* ---------- DESIGN TOKENS — DARK (default) ---------- */
:root,
[data-theme="dark"] {
  --color-bg:           #0a0c10;
  --color-bg-2:         #0f1219;
  --color-surface:      #141820;
  --color-surface-2:    #1a2030;
  --color-border:       rgba(255,255,255,0.08);
  --color-border-hover: rgba(255,255,255,0.18);

  --color-text:         #f0f2f8;
  --color-text-muted:   #8892a4;
  --color-text-faint:   #525e74;
}

/* ---------- DESIGN TOKENS — LIGHT ---------- */
[data-theme="light"] {
  --color-bg:           #f4f6fb;
  --color-bg-2:         #eaecf4;
  --color-surface:      #ffffff;
  --color-surface-2:    #f0f2fa;
  --color-border:       rgba(0,0,0,0.08);
  --color-border-hover: rgba(0,0,0,0.16);

  --color-text:         #0f1219;
  --color-text-muted:   #50607a;
  --color-text-faint:   #9aaabb;
}

/* Light-mode specific overrides */
[data-theme="light"] .hero {
  background: linear-gradient(160deg, #eef1fb 0%, #f9f5ff 50%, #fff0f7 100%);
}
[data-theme="light"] .hero__orb--1 { opacity: 0.18; }
[data-theme="light"] .hero__orb--2 { opacity: 0.15; }
[data-theme="light"] .hero__orb--3 { opacity: 0.12; }
[data-theme="light"] .hero__grid   {
  background-image:
    linear-gradient(rgba(0,0,0,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.04) 1px, transparent 1px);
}
[data-theme="light"] .section--dark { background: var(--color-bg-2); }
[data-theme="light"] .btn--ghost {
  background: rgba(0,0,0,0.05);
  color: var(--color-text);
  border-color: var(--color-border);
}
[data-theme="light"] .btn--ghost:hover { background: rgba(0,0,0,0.09); }
[data-theme="light"] .nav__menu.open  { background: rgba(244,246,251,0.97); }
[data-theme="light"] .about__card--front {
  box-shadow: 0 20px 60px rgba(79,127,255,0.12), 0 4px 24px rgba(0,0,0,0.08);
}
[data-theme="light"] .section-tag--light {
  color: var(--color-primary);
  background: rgba(79,127,255,0.08);
  border-color: rgba(79,127,255,0.18);
}
[data-theme="light"] .section-title--light,
[data-theme="light"] .section-desc--light { color: var(--color-text); }
[data-theme="light"] .how__step p,
[data-theme="light"] .how__step h3 { color: var(--color-text); }

/* ---------- ARABIC FONT ---------- */
[lang="ar"], [lang="ar"] * { font-family: 'Cairo', sans-serif; }

/* ---------- RTL OVERRIDES ---------- */
[dir="rtl"] .nav__menu  { direction: rtl; }
[dir="rtl"] .hero__scroll-indicator { direction: rtl; }
[dir="rtl"] .about__grid { direction: rtl; }
[dir="rtl"] .about__card-stack .about__card--front { left: auto; right: 11%; }
[dir="rtl"] .about__card-stack .about__card--mid   { left: auto; right: 5%; }
[dir="rtl"] .about__card-stack .about__card--back  { left: auto; right: 10%; }
[dir="rtl"] .pillar { flex-direction: row-reverse; text-align: right; }
[dir="rtl"] .section-tag { direction: rtl; }
[dir="rtl"] .sector-card--wide { direction: rtl; }
[dir="rtl"] .offer-card__badge { right: auto; left: 16px; }
[dir="rtl"] .offer-card__header { direction: rtl; padding-right: 0; padding-left: 64px; }
[dir="rtl"] .contact__grid { direction: rtl; }
[dir="rtl"] .contact__detail { flex-direction: row-reverse; text-align: right; }
[dir="rtl"] .footer__top { direction: rtl; }
[dir="rtl"] .footer__bottom { direction: rtl; }
[dir="rtl"] .footer__links { direction: rtl; }
[dir="rtl"] .how__steps { direction: rtl; }
[dir="rtl"] .how__connector::after {
  right: auto; left: -4px;
  border-left: none;
  border-right: 6px solid rgba(79,127,255,0.6);
}
[dir="rtl"] .form__group { text-align: right; }
[dir="rtl"] .form__group input,
[dir="rtl"] .form__group select,
[dir="rtl"] .form__group textarea { text-align: right; direction: rtl; }
[dir="rtl"] .nav__actions { flex-direction: row-reverse; }
[dir="rtl"] .hero__content { direction: rtl; }
[dir="rtl"] .stat { direction: rtl; }
[dir="rtl"] .marquee-content { direction: ltr; }  /* keep marquee direction */

/* ---------- SHARED TOKENS (theme-independent) ---------- */
:root {
  --color-primary:      #4f7fff;
  --color-primary-dark: #3a66e8;
  --color-primary-glow: rgba(79,127,255,0.25);

  /* Sector palette */
  --medical:        #22d3a0;  --medical-light:   rgba(34,211,160,0.12);
  --malls:          #f97316;  --malls-light:     rgba(249,115,22,0.12);
  --fitness:        #a855f7;  --fitness-light:   rgba(168,85,247,0.12);
  --beauty:         #ec4899;  --beauty-light:    rgba(236,72,153,0.12);
  --restaurants:    #eab308;  --restaurants-light: rgba(234,179,8,0.12);
  --sports:         #3b82f6;  --sports-light:    rgba(59,130,246,0.12);
  --hotels:         #f43f5e;  --hotels-light:    rgba(244,63,94,0.12);

  --gradient-primary: linear-gradient(135deg, #4f7fff 0%, #9d7fff 50%, #f472b6 100%);
  --gradient-glow:    linear-gradient(135deg, rgba(79,127,255,0.15), rgba(157,127,255,0.15));

  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-xl:   32px;
  --radius-full: 9999px;

  --shadow-sm:   0 2px 8px rgba(0,0,0,0.3);
  --shadow-md:   0 8px 24px rgba(0,0,0,0.4);
  --shadow-lg:   0 20px 60px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 40px rgba(79,127,255,0.2);

  --transition: 0.25s cubic-bezier(0.4,0,0.2,1);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--font); }
input, select, textarea { font-family: var(--font); }

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

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section { padding: 100px 0; }
.section--dark { background: var(--color-bg-2); }

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: rgba(79,127,255,0.1);
  border: 1px solid rgba(79,127,255,0.2);
  border-radius: var(--radius-full);
  padding: 5px 14px;
  margin-bottom: 16px;
}
.section-tag--light {
  color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.12);
}
.section-tag--center { display: flex; justify-content: center; }

.section-title {
  font-size: clamp(28px, 4.5vw, 46px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.section-title--light { color: var(--color-text); }
.section-title--center { text-align: center; }

.section-desc {
  font-size: 16px;
  color: var(--color-text-muted);
  max-width: 560px;
}
.section-desc--light { color: rgba(255,255,255,0.55); }

.section-body {
  font-size: 15px;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-header .section-desc { margin: 0 auto; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
}
.btn--primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 4px 20px rgba(79,127,255,0.3);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(79,127,255,0.45);
}
.btn--ghost {
  background: rgba(255,255,255,0.06);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}
.btn--ghost:hover { background: rgba(255,255,255,0.1); border-color: var(--color-border-hover); }
.btn--outline {
  background: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
}
.btn--outline:hover { background: rgba(79,127,255,0.08); }

.btn--sm  { font-size: 13px; padding: 8px 18px; }
.btn--md  { font-size: 14px; padding: 11px 24px; }
.btn--lg  { font-size: 15px; padding: 14px 32px; }
.btn--full { width: 100%; }

/* ================================================
   HEADER
   ================================================ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
}
.header.scrolled {
  background: rgba(10,12,16,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
  padding: 12px 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.logo-icon {
  font-size: 22px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav__menu {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}
.nav__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-muted);
  padding: 7px 14px;
  border-radius: var(--radius-full);
  transition: var(--transition);
}
.nav__link:hover { color: var(--color-text); background: rgba(255,255,255,0.06); }

.nav__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}
.nav__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ---------- THEME TOGGLE ---------- */
.theme-toggle {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
  transition: var(--transition);
  flex-shrink: 0;
  padding: 0;
}
.theme-toggle:hover { color: var(--color-text); border-color: var(--color-border-hover); }
.theme-toggle svg { width: 16px; height: 16px; }

/* Show sun in dark mode, moon in light mode */
[data-theme="dark"]  .theme-toggle__sun  { display: none; }
[data-theme="dark"]  .theme-toggle__moon { display: block; }
[data-theme="light"] .theme-toggle__sun  { display: block; }
[data-theme="light"] .theme-toggle__moon { display: none; }

/* ---------- LANGUAGE TOGGLE ---------- */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-text-muted);
  transition: var(--transition);
  letter-spacing: 0.03em;
  flex-shrink: 0;
}
.lang-toggle:hover { color: var(--color-text); border-color: var(--color-border-hover); }
.lang-toggle__sep   { opacity: 0.35; }
.lang-toggle__en,
.lang-toggle__ar    { transition: var(--transition); }
/* Highlight active language */
[lang="en"] .lang-toggle__en { color: var(--color-primary); }
[lang="ar"] .lang-toggle__ar { color: var(--color-primary); }

/* ================================================
   HERO
   ================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 100px;
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  animation: orb-float 8s ease-in-out infinite;
}
.hero__orb--1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #4f7fff, transparent);
  top: -100px; left: -150px;
  animation-delay: 0s;
}
.hero__orb--2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #9d7fff, transparent);
  top: 100px; right: -100px;
  animation-delay: 3s;
}
.hero__orb--3 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #f472b6, transparent);
  bottom: -50px; left: 30%;
  animation-delay: 6s;
}
@keyframes orb-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(20px, -30px) scale(1.05); }
  66%       { transform: translate(-15px, 15px) scale(0.95); }
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-full);
  padding: 7px 18px;
  margin-bottom: 28px;
  backdrop-filter: blur(8px);
}
.badge-dot {
  width: 7px; height: 7px;
  background: var(--color-primary);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--color-primary);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(0.85); }
}

.hero__title {
  font-size: clamp(38px, 7vw, 80px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  max-width: 900px;
}

.hero__subtitle {
  font-size: clamp(15px, 2vw, 18px);
  color: var(--color-text-muted);
  max-width: 580px;
  line-height: 1.7;
  margin-bottom: 40px;
}

.hero__cta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 64px;
}

.hero__stats {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 20px 40px;
  backdrop-filter: blur(12px);
  flex-wrap: wrap;
  justify-content: center;
}
.stat {
  text-align: center;
  padding: 0 32px;
}
.stat__number {
  display: block;
  font-size: 36px;
  font-weight: 900;
  letter-spacing: -0.04em;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.stat__plus { font-size: 24px; font-weight: 800; color: var(--color-primary); vertical-align: top; margin-top: 4px; }
.stat__label { font-size: 12px; color: var(--color-text-faint); font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; margin-top: 6px; display: block; }
.stat__divider { width: 1px; height: 40px; background: var(--color-border); }

.hero__scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-faint);
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--color-text-faint), transparent);
  animation: scroll-grow 1.5s ease-in-out infinite;
}
@keyframes scroll-grow {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50%       { transform: scaleY(0.4); opacity: 0.4; }
}

/* ================================================
   ABOUT
   ================================================ */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about__visual { position: relative; height: 400px; }
.about__card-stack { position: relative; width: 100%; height: 100%; }
.about__card {
  position: absolute;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}
.about__card--back {
  width: 80%; height: 80%;
  top: 10%; left: 10%;
  background: var(--color-surface);
  transform: rotate(-6deg);
  opacity: 0.4;
}
.about__card--mid {
  width: 80%; height: 80%;
  top: 5%; left: 5%;
  background: var(--color-surface-2);
  transform: rotate(-2deg);
  opacity: 0.7;
}
.about__card--front {
  width: 78%;
  padding: 32px;
  background: linear-gradient(135deg, var(--color-surface-2), var(--color-surface));
  left: 11%; top: 8%;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}
.about__card-icon {
  font-size: 32px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}
.about__card-title { font-size: 20px; font-weight: 800; margin-bottom: 6px; }
.about__card-sub { font-size: 13px; color: var(--color-text-muted); margin-bottom: 20px; }
.about__card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.about__card-tags span {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: var(--gradient-glow);
  border: 1px solid rgba(79,127,255,0.2);
  color: var(--color-primary);
}

.about__pillars { margin-top: 28px; display: flex; flex-direction: column; gap: 18px; }
.pillar { display: flex; gap: 14px; align-items: flex-start; }
.pillar__icon {
  flex-shrink: 0;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(79,127,255,0.1);
  border: 1px solid rgba(79,127,255,0.2);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--color-primary);
  margin-top: 2px;
}
.pillar strong { font-size: 14px; font-weight: 700; display: block; margin-bottom: 3px; }
.pillar p { font-size: 13px; color: var(--color-text-muted); }

/* ================================================
   SECTORS
   ================================================ */
.sectors__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.sector-card--wide { grid-column: span 3; }

.sector-card {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
}
.sector-card:hover {
  border-color: var(--color-border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.sector-card__glow {
  position: absolute;
  inset: 0;
  background: var(--gradient-glow);
  opacity: 0;
  transition: var(--transition);
  border-radius: inherit;
}
.sector-card:hover .sector-card__glow { opacity: 1; }

.sector-card__icon-wrap {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  position: relative;
  flex-shrink: 0;
}

/* per-sector icon colours */
[data-sector="medical"]     .sector-card__icon-wrap { background: var(--medical-light);     color: var(--medical); }
[data-sector="malls"]       .sector-card__icon-wrap { background: var(--malls-light);       color: var(--malls); }
[data-sector="fitness"]     .sector-card__icon-wrap { background: var(--fitness-light);     color: var(--fitness); }
[data-sector="beauty"]      .sector-card__icon-wrap { background: var(--beauty-light);      color: var(--beauty); }
[data-sector="restaurants"] .sector-card__icon-wrap { background: var(--restaurants-light); color: var(--restaurants); }
[data-sector="sports"]      .sector-card__icon-wrap { background: var(--sports-light);      color: var(--sports); }
[data-sector="hotels"]      .sector-card__icon-wrap { background: var(--hotels-light);      color: var(--hotels); }

[data-sector="hotels"] { --sector-bg: var(--color-surface); }

.sector-card__icon { width: 26px; height: 26px; }

.sector-card--wide {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}
.sector-card--wide .sector-card__icon-wrap { margin-bottom: 0; }
.sector-card--wide .sector-card__desc { margin-bottom: 0; }

.sector-card__title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}
.sector-card__desc {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.55;
  margin-bottom: 16px;
}
.sector-card__count {
  font-size: 12px;
  color: var(--color-text-faint);
  font-weight: 500;
  margin-bottom: 12px;
}
.sector-card__count span { color: var(--color-text); font-weight: 700; }
.sector-card__link {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.sector-card__link:hover { letter-spacing: 0.02em; }

/* ================================================
   OFFERS
   ================================================ */
.offers__filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  justify-content: center;
}

.filter-btn {
  font-size: 13px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  transition: var(--transition);
}
.filter-btn:hover {
  color: var(--color-text);
  border-color: var(--color-border-hover);
}
.filter-btn--active {
  background: var(--gradient-primary);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(79,127,255,0.3);
}

.offers__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.offer-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.offer-card:hover {
  border-color: var(--color-border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.offer-card.hidden { display: none; }

.offer-card__badge {
  position: absolute;
  top: 16px; right: 16px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}
.offer-card__badge--medical     { background: var(--medical-light);     color: var(--medical); }
.offer-card__badge--malls       { background: var(--malls-light);       color: var(--malls); }
.offer-card__badge--fitness     { background: var(--fitness-light);     color: var(--fitness); }
.offer-card__badge--beauty      { background: var(--beauty-light);      color: var(--beauty); }
.offer-card__badge--restaurants { background: var(--restaurants-light); color: var(--restaurants); }
.offer-card__badge--sports      { background: var(--sports-light);      color: var(--sports); }
.offer-card__badge--hotels      { background: var(--hotels-light);      color: var(--hotels); }

.offer-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-right: 64px;
}
.offer-card__brand-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.offer-card__brand-icon svg { width: 20px; height: 20px; }
.offer-card__brand { font-size: 13px; font-weight: 700; }
.offer-card__sector { font-size: 11px; color: var(--color-text-faint); }

.offer-card__title { font-size: 15px; font-weight: 700; line-height: 1.35; }
.offer-card__desc { font-size: 13px; color: var(--color-text-muted); line-height: 1.55; flex: 1; }

.offer-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.offer-card__price { display: flex; align-items: baseline; gap: 8px; }
.price-old { font-size: 12px; color: var(--color-text-faint); text-decoration: line-through; }
.price-new { font-size: 20px; font-weight: 800; color: var(--color-text); }
.offer-card__discount {
  font-size: 11px;
  font-weight: 800;
  color: #22d3a0;
  background: rgba(34,211,160,0.1);
  border-radius: var(--radius-full);
  padding: 3px 10px;
}

.offers__cta { text-align: center; margin-top: 48px; }

/* ================================================
   PARTNERS MARQUEE
   ================================================ */
.partners { padding: 64px 0; overflow: hidden; }
.partners .container { margin-bottom: 40px; }
.partners .section-title--center { margin-top: 10px; }

.marquee-track { overflow: hidden; padding: 12px 0; }
.marquee-content {
  display: flex;
  align-items: center;
  gap: 24px;
  width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee-content:hover { animation-play-state: paused; }

.marquee-item {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text-faint);
  white-space: nowrap;
  transition: var(--transition);
}
.marquee-item:hover { color: var(--color-text); }
.marquee-dot { color: var(--color-text-faint); font-size: 10px; }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ================================================
   HOW IT WORKS
   ================================================ */
.how__steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
}

.how__step {
  flex: 1;
  max-width: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 24px;
  position: relative;
}

.how__step-num {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  margin-bottom: 16px;
  opacity: 0.6;
}

.how__step-icon {
  width: 64px; height: 64px;
  border-radius: var(--radius-full);
  background: rgba(79,127,255,0.1);
  border: 1px solid rgba(79,127,255,0.2);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  color: var(--color-primary);
  transition: var(--transition);
}
.how__step:hover .how__step-icon {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 0 30px rgba(79,127,255,0.4);
  transform: scale(1.05);
}
.how__step-icon svg { width: 28px; height: 28px; }

.how__step h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.how__step p  { font-size: 13px; color: var(--color-text-muted); line-height: 1.6; }

.how__connector {
  flex-shrink: 0;
  width: 80px;
  height: 1px;
  background: linear-gradient(to right, rgba(79,127,255,0.3), rgba(79,127,255,0.6), rgba(79,127,255,0.3));
  margin-top: 56px;
  position: relative;
}
.how__connector::after {
  content: '';
  position: absolute;
  right: -4px; top: -3px;
  border: 4px solid transparent;
  border-left: 6px solid rgba(79,127,255,0.6);
}

/* ================================================
   CONTACT
   ================================================ */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact__details { margin-top: 32px; display: flex; flex-direction: column; gap: 20px; }
.contact__detail {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.contact__detail-icon {
  flex-shrink: 0;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(79,127,255,0.1);
  border: 1px solid rgba(79,127,255,0.2);
  border-radius: var(--radius-md);
  color: var(--color-primary);
  font-size: 16px;
  margin-top: 2px;
}
.contact__detail strong { font-size: 13px; font-weight: 700; display: block; margin-bottom: 3px; }
.contact__detail p { font-size: 13px; color: var(--color-text-muted); }

.contact__form {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form__group { display: flex; flex-direction: column; gap: 7px; }
.form__group label { font-size: 13px; font-weight: 600; color: var(--color-text); }
.form__group input,
.form__group select,
.form__group textarea {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  color: var(--color-text);
  font-size: 14px;
  transition: var(--transition);
  outline: none;
}
.form__group input::placeholder,
.form__group textarea::placeholder { color: var(--color-text-faint); }
.form__group input:focus,
.form__group select:focus,
.form__group textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-glow);
}
.form__group select { cursor: pointer; }
.form__group select option { background: var(--color-bg); }
.form__group textarea { resize: vertical; min-height: 100px; }

.form__note { font-size: 12px; color: var(--color-text-faint); text-align: center; }

/* ================================================
   FOOTER
   ================================================ */
.footer {
  background: var(--color-bg-2);
  border-top: 1px solid var(--color-border);
  padding: 64px 0 32px;
}

.footer__top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  margin-bottom: 48px;
}

.footer__brand .nav__logo { margin-bottom: 14px; }
.footer__brand p {
  font-size: 13px;
  color: var(--color-text-muted);
  max-width: 280px;
  line-height: 1.65;
}

.footer__links { display: flex; gap: 48px; }
.footer__col h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  margin-bottom: 14px;
}
.footer__col ul { display: flex; flex-direction: column; gap: 10px; }
.footer__col a {
  font-size: 13px;
  color: var(--color-text-muted);
  transition: var(--transition);
}
.footer__col a:hover { color: var(--color-text); }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
  font-size: 12px;
  color: var(--color-text-faint);
}

/* ================================================
   ANIMATIONS – scroll-triggered reveal
   ================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 1024px) {
  .about__grid    { grid-template-columns: 1fr; gap: 48px; }
  .about__visual  { height: 320px; }
  .contact__grid  { grid-template-columns: 1fr; gap: 48px; }
  .footer__top    { grid-template-columns: 1fr; gap: 40px; }
  .sectors__grid  { grid-template-columns: repeat(2, 1fr); }
  .sector-card--wide { grid-column: span 2; }
}

@media (max-width: 768px) {
  .section { padding: 72px 0; }

  .nav__menu { display: none; flex-direction: column; gap: 0; }
  .nav__menu.open {
    display: flex;
    position: fixed;
    inset: 0;
    background: rgba(10,12,16,0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 999;
    gap: 8px;
  }
  .nav__menu.open .nav__link { font-size: 20px; padding: 14px 24px; }
  .nav__burger { display: flex; z-index: 1001; }
  .nav__burger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
  .nav__burger.open span:nth-child(2) { opacity: 0; }
  .nav__burger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }
  .nav__actions .btn--primary { display: none; }

  .hero__stats { padding: 16px 20px; gap: 0; }
  .stat { padding: 0 16px; }
  .stat__number { font-size: 28px; }

  .sectors__grid { grid-template-columns: 1fr; }
  .sector-card--wide { grid-column: span 1; grid-template-columns: auto 1fr; grid-template-rows: auto auto; }
  .sector-card--wide .sector-card__count { grid-column: 2; }
  .sector-card--wide .sector-card__link  { grid-column: 1 / -1; }

  .how__steps { flex-direction: column; align-items: center; }
  .how__connector { width: 1px; height: 40px; margin-top: 0; background: linear-gradient(to bottom, rgba(79,127,255,0.3), rgba(79,127,255,0.6), rgba(79,127,255,0.3)); }
  .how__connector::after { right: -3px; top: auto; bottom: -4px; border-left: 3px solid transparent; border-right: 3px solid transparent; border-top: 5px solid rgba(79,127,255,0.6); border-left-color: transparent; }

  .footer__links { flex-wrap: wrap; gap: 32px; }
  .footer__bottom { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 480px) {
  .hero__title { font-size: 36px; }
  .hero__cta   { flex-direction: column; width: 100%; }
  .hero__cta .btn { width: 100%; justify-content: center; }
  .about__card--front { width: 90%; left: 5%; }
  .offers__grid { grid-template-columns: 1fr; }
}
