/* =============================================
   NETREX — SEO Agency | Casablanca, Maroc
   Main Stylesheet
   ============================================= */

/* ---- Reset & Variables ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --c-bg:        #080c14;
  --c-surface:   #0d1421;
  --c-surface2:  #111827;
  --c-border:    rgba(255,255,255,.07);
  --c-text:      #e2e8f0;
  --c-muted:     #94a3b8;
  --c-accent:    #6366f1;
  --c-accent2:   #8b5cf6;
  --c-green:     #10b981;
  --c-white:          #ffffff;
  --c-heading-inline: #ffffff;

  --grad-main:   linear-gradient(135deg, #6366f1, #8b5cf6);
  --grad-green:  linear-gradient(135deg, #10b981, #059669);
  --grad-text:   linear-gradient(135deg, #818cf8, #c084fc);

  --radius-sm:  8px;
  --radius-md:  14px;
  --radius-lg:  22px;
  --radius-xl:  32px;

  --shadow-card: 0 4px 24px rgba(0,0,0,.35);
  --shadow-glow: 0 0 60px rgba(99,102,241,.15);

  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --fw-reg: 400;
  --fw-med: 500;
  --fw-semi: 600;
  --fw-bold: 700;
  --fw-black: 900;

  --section-py: 100px;
  --container: 1180px;
  --header-h: 72px;
}

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

body {
  font-family: var(--font);
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---- Utilities ---- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: var(--section-py) 0; }

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-family: var(--font);
  font-weight: var(--fw-semi);
  font-size: 15px;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all .25s ease;
  white-space: nowrap;
}

.btn--primary {
  background: var(--grad-main);
  color: #fff;
  box-shadow: 0 4px 20px rgba(99,102,241,.35);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(99,102,241,.5);
}

.btn--ghost {
  background: transparent;
  color: var(--c-text);
  border: 1px solid var(--c-border);
}
.btn--ghost:hover {
  border-color: var(--c-accent);
  color: #fff;
  background: rgba(99,102,241,.08);
}

.btn--white {
  background: #fff;
  color: #1e1b4b;
  font-weight: var(--fw-bold);
}
.btn--white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255,255,255,.2);
}

.btn--lg { padding: 15px 30px; font-size: 16px; border-radius: var(--radius-lg); }
.btn--full { width: 100%; justify-content: center; }

/* ---- Section Headers ---- */
.section__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}

.section__tag {
  display: inline-block;
  padding: 5px 14px;
  background: rgba(99,102,241,.12);
  color: #a5b4fc;
  border: 1px solid rgba(99,102,241,.25);
  border-radius: 999px;
  font-size: 13px;
  font-weight: var(--fw-semi);
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section__title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: var(--fw-black);
  line-height: 1.15;
  color: #fff;
  margin-bottom: 16px;
}

.section__sub {
  font-size: 17px;
  color: var(--c-muted);
  line-height: 1.7;
}

/* ===================== HEADER ===================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background .3s, backdrop-filter .3s, border-color .3s;
}

.header.scrolled {
  background: rgba(8,12,20,.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--c-border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo__mark {
  width: 36px;
  height: 36px;
  background: var(--grad-main);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: var(--fw-black);
  color: #fff;
}

.logo__name {
  font-size: 20px;
  font-weight: var(--fw-black);
  color: #fff;
  letter-spacing: -.01em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.nav__link {
  padding: 8px 14px;
  color: var(--c-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: var(--fw-med);
  border-radius: var(--radius-sm);
  transition: color .2s, background .2s;
}
.nav__link:hover { color: #fff; background: rgba(255,255,255,.06); }

.nav__cta {
  padding: 9px 20px;
  background: var(--grad-main);
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: var(--fw-semi);
  border-radius: var(--radius-md);
  margin-left: 8px;
  box-shadow: 0 2px 12px rgba(99,102,241,.3);
  transition: transform .2s, box-shadow .2s;
}
.nav__cta:hover { transform: translateY(-1px); box-shadow: 0 4px 20px rgba(99,102,241,.5); }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--c-text);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

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

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

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

.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: .25;
}
.hero__glow--1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #6366f1, transparent);
  top: -200px;
  right: -100px;
}
.hero__glow--2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #8b5cf6, transparent);
  bottom: -100px;
  left: -100px;
}

.hero__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 80px 0 60px;
  max-width: 820px;
  margin: 0 auto;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(99,102,241,.1);
  border: 1px solid rgba(99,102,241,.25);
  border-radius: 999px;
  font-size: 13px;
  font-weight: var(--fw-semi);
  color: #a5b4fc;
  margin-bottom: 28px;
}

.badge__dot {
  width: 7px;
  height: 7px;
  background: var(--c-green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(1.3); }
}

.hero__title {
  font-size: clamp(38px, 6vw, 72px);
  font-weight: var(--fw-black);
  line-height: 1.08;
  letter-spacing: -.02em;
  color: #fff;
  margin-bottom: 24px;
}

.hero__sub {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--c-muted);
  line-height: 1.7;
  max-width: 580px;
  margin: 0 auto 36px;
}

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

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--c-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--c-border);
}

.hero__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 22px 16px;
  background: rgba(255,255,255,.025);
  transition: background .2s;
}
.hero__stat:hover { background: rgba(99,102,241,.07); }

.stat__num {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: var(--fw-black);
  color: #fff;
  line-height: 1.1;
}

.stat__label {
  font-size: 12px;
  color: var(--c-muted);
  margin-top: 4px;
  text-align: center;
}

.hero__scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--c-muted);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.scroll__line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--c-accent), transparent);
  animation: scrollAnim 1.8s ease-in-out infinite;
}
@keyframes scrollAnim {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50% { transform: scaleY(.5); opacity: .4; }
}

/* ===================== LOGOS ===================== */
.logos {
  padding: 32px 0;
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  overflow: hidden;
}

.logos__label {
  text-align: center;
  font-size: 12px;
  color: var(--c-muted);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.logos__track { overflow: hidden; }

.logos__inner {
  display: flex;
  gap: 48px;
  animation: marquee 28s linear infinite;
  width: max-content;
}

.logo__client {
  font-size: 14px;
  font-weight: var(--fw-semi);
  color: rgba(255,255,255,.3);
  white-space: nowrap;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: color .2s;
}
.logo__client:hover { color: rgba(255,255,255,.7); }

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

/* ===================== SERVICES ===================== */
.services { background: var(--c-bg); }

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  padding: 32px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  transition: border-color .25s, transform .25s, box-shadow .25s;
}

.service-card:hover {
  border-color: rgba(99,102,241,.4);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card), 0 0 30px rgba(99,102,241,.08);
}

.service-card--featured {
  background: linear-gradient(135deg, rgba(99,102,241,.12), rgba(139,92,246,.06));
  border-color: rgba(99,102,241,.3);
  grid-column: span 1;
}

.service-card__icon {
  width: 52px;
  height: 52px;
  background: rgba(99,102,241,.12);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a5b4fc;
  margin-bottom: 20px;
}

.service-card__title {
  font-size: 20px;
  font-weight: var(--fw-bold);
  color: #fff;
  margin-bottom: 12px;
}

.service-card__desc {
  font-size: 14px;
  color: var(--c-muted);
  line-height: 1.65;
  margin-bottom: 20px;
}

.service-card__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.service-card__list li {
  font-size: 13px;
  color: var(--c-muted);
  padding-left: 18px;
  position: relative;
}
.service-card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  background: var(--c-accent);
  border-radius: 50%;
}

.service-card__link {
  font-size: 14px;
  font-weight: var(--fw-semi);
  color: #a5b4fc;
  text-decoration: none;
  transition: color .2s, gap .2s;
}
.service-card__link:hover { color: #fff; }

/* ===================== PROCESS ===================== */
.process {
  background: var(--c-surface);
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
}

.process__steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  max-width: 960px;
  margin: 0 auto;
  position: relative;
}

.process__step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 20px;
  border-radius: var(--radius-lg);
  transition: background .25s;
}
.process__step:hover { background: rgba(99,102,241,.05); }

.step__num {
  font-size: 48px;
  font-weight: var(--fw-black);
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 16px;
}

.step__title {
  font-size: 17px;
  font-weight: var(--fw-bold);
  color: #fff;
  margin-bottom: 10px;
}

.step__desc {
  font-size: 13px;
  color: var(--c-muted);
  line-height: 1.65;
  max-width: 200px;
}

.process__connector {
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, rgba(99,102,241,.4), rgba(139,92,246,.4));
  flex-shrink: 0;
  margin-top: 56px;
}

/* ===================== RESULTS ===================== */
.results { background: var(--c-bg); }

.results__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.result-card {
  padding: 36px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  transition: border-color .25s, transform .25s;
}
.result-card:hover {
  border-color: rgba(99,102,241,.3);
  transform: translateY(-4px);
}

.result-card--accent {
  background: linear-gradient(135deg, rgba(99,102,241,.1), rgba(139,92,246,.05));
  border-color: rgba(99,102,241,.25);
}

.result-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.result-card__industry {
  padding: 4px 12px;
  background: rgba(16,185,129,.12);
  color: #34d399;
  border-radius: 999px;
  font-size: 12px;
  font-weight: var(--fw-semi);
}

.result-card__period {
  font-size: 12px;
  color: var(--c-muted);
}

.result-card__title {
  font-size: 18px;
  font-weight: var(--fw-bold);
  color: #fff;
  margin-bottom: 12px;
}

.result-card__desc {
  font-size: 14px;
  color: var(--c-muted);
  line-height: 1.65;
  margin-bottom: 28px;
}

.result-card__metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.result-metric { text-align: center; }

.metric__value {
  display: block;
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: var(--fw-black);
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  margin-bottom: 4px;
}

.metric__label {
  font-size: 11px;
  color: var(--c-muted);
  line-height: 1.4;
}

/* ===================== VILLES ===================== */
.villes {
  background: var(--c-surface);
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
}

.villes__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.ville-card {
  padding: 28px;
  background: var(--c-surface2);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition: border-color .25s, transform .25s, box-shadow .25s;
  display: block;
}
.ville-card:hover {
  border-color: rgba(99,102,241,.4);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,.3);
}

.ville-card--main {
  grid-column: span 2;
  background: linear-gradient(135deg, rgba(99,102,241,.1), rgba(139,92,246,.05));
  border-color: rgba(99,102,241,.2);
}

.ville-card--other {
  border-style: dashed;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.ville-card__flag {
  font-size: 28px;
  margin-bottom: 12px;
}

.ville-card__name {
  font-size: 20px;
  font-weight: var(--fw-bold);
  color: #fff;
  margin-bottom: 8px;
}

.ville-card__desc {
  font-size: 14px;
  color: var(--c-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.ville-card__cta {
  font-size: 13px;
  font-weight: var(--fw-semi);
  color: #a5b4fc;
}

/* ===================== BLOG ===================== */
.blog { background: var(--c-bg); }

.blog__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.blog-card {
  padding: 32px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  transition: border-color .25s, transform .25s;
}
.blog-card:hover {
  border-color: rgba(99,102,241,.35);
  transform: translateY(-3px);
}

.blog-card--featured {
  grid-column: span 2;
  background: linear-gradient(135deg, rgba(99,102,241,.08), rgba(139,92,246,.04));
  border-color: rgba(99,102,241,.2);
}

.blog-card__tag {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(99,102,241,.12);
  color: #a5b4fc;
  border-radius: 999px;
  font-size: 11px;
  font-weight: var(--fw-semi);
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.blog-card__title {
  font-size: 20px;
  font-weight: var(--fw-bold);
  color: #fff;
  line-height: 1.3;
  margin-bottom: 12px;
}

.blog-card__excerpt {
  font-size: 14px;
  color: var(--c-muted);
  line-height: 1.65;
  margin-bottom: 20px;
}

.blog-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--c-muted);
}

.blog-card__link {
  color: #a5b4fc;
  text-decoration: none;
  font-weight: var(--fw-semi);
  transition: color .2s;
}
.blog-card__link:hover { color: #fff; }

/* ===================== TESTIMONIALS ===================== */
.testimonials {
  background: var(--c-surface);
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
}

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.testimonial-card {
  padding: 32px;
  background: var(--c-surface2);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: border-color .25s, transform .25s;
}
.testimonial-card:hover {
  border-color: rgba(99,102,241,.3);
  transform: translateY(-3px);
}

.testimonial-card--accent {
  background: linear-gradient(135deg, rgba(99,102,241,.1), rgba(139,92,246,.05));
  border-color: rgba(99,102,241,.2);
}

.testimonial-card__stars {
  color: #fbbf24;
  font-size: 16px;
  letter-spacing: 2px;
}

.testimonial-card__text {
  font-size: 15px;
  color: var(--c-text);
  line-height: 1.7;
  font-style: italic;
  flex: 1;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author__avatar {
  width: 42px;
  height: 42px;
  background: var(--grad-main);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: var(--fw-bold);
  color: #fff;
  flex-shrink: 0;
}

.testimonial-card__author strong {
  display: block;
  font-size: 14px;
  font-weight: var(--fw-semi);
  color: #fff;
}

.testimonial-card__author span {
  display: block;
  font-size: 12px;
  color: var(--c-muted);
  margin-top: 2px;
}

/* ===================== CTA BANNER ===================== */
.cta-banner { background: var(--c-bg); }

.cta-banner__inner {
  position: relative;
  padding: 72px 48px;
  background: linear-gradient(135deg, rgba(99,102,241,.15), rgba(139,92,246,.08));
  border: 1px solid rgba(99,102,241,.25);
  border-radius: var(--radius-xl);
  text-align: center;
  overflow: hidden;
}

.cta-banner__glow {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99,102,241,.2), transparent);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.cta-banner__content { position: relative; z-index: 1; }

.cta-banner__title {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: var(--fw-black);
  color: #fff;
  margin-bottom: 16px;
}

.cta-banner__sub {
  font-size: 17px;
  color: var(--c-muted);
  max-width: 500px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

/* ===================== CONTACT ===================== */
.contact { background: var(--c-surface); border-top: 1px solid var(--c-border); }

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: start;
}

@media (max-width: 768px) {
  .contact__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .contact__grid .contact__info { order: 2; }
  .contact__grid .contact__form-wrap { order: 1; }
}

.contact__title {
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: var(--fw-black);
  color: var(--c-white);
  line-height: 1.15;
  margin: 12px 0 16px;
}

.contact__desc {
  font-size: 16px;
  color: var(--c-muted);
  line-height: 1.7;
  margin-bottom: 32px;
}

.contact__features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 36px;
}

.contact__feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--c-text);
}

.feature__icon {
  width: 24px;
  height: 24px;
  background: rgba(16,185,129,.15);
  color: var(--c-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: var(--fw-bold);
  flex-shrink: 0;
}

.contact__whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  background: rgba(37,211,102,.12);
  color: #4ade80;
  border: 1px solid rgba(37,211,102,.25);
  border-radius: var(--radius-md);
  text-decoration: none;
  font-size: 14px;
  font-weight: var(--fw-semi);
  transition: background .2s, color .2s;
}
.contact__whatsapp:hover {
  background: rgba(37,211,102,.22);
  color: #86efac;
}

/* ---- Contact info labels ---- */
.contact-office-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--c-text);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 12px;
}
.form-section-title {
  margin-bottom: 4px;
  font-size: 18px;
  font-weight: 800;
  color: var(--c-white);
}
[data-theme="light"] .form-section-title { color: #0f172a; }

/* ---- Form ---- */
.contact-form {
  background: var(--c-surface2);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-xl);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form__label {
  font-size: 13px;
  font-weight: var(--fw-med);
  color: var(--c-muted);
}

.form__input,
.form__textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  color: var(--c-text);
  font-family: var(--font);
  font-size: 14px;
  outline: none;
  transition: border-color .2s, background .2s;
  resize: none;
}
.form__input::placeholder, .form__textarea::placeholder { color: rgba(148,163,184,.45); }
.form__input:focus, .form__textarea:focus {
  border-color: var(--c-accent);
  background: rgba(99,102,241,.05);
}

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

.form__success {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: rgba(16,185,129,.1);
  border: 1px solid rgba(16,185,129,.25);
  border-radius: var(--radius-md);
  color: #34d399;
  font-size: 14px;
  font-weight: var(--fw-semi);
  justify-content: center;
}

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

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer__tagline {
  font-size: 14px;
  color: var(--c-muted);
  line-height: 1.65;
  margin: 14px 0 20px;
  max-width: 260px;
}

.footer__socials {
  display: flex;
  gap: 8px;
}

.social__link {
  width: 36px;
  height: 36px;
  background: var(--c-surface2);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: var(--fw-bold);
  transition: border-color .2s, color .2s;
}
.social__link:hover { border-color: var(--c-accent); color: #a5b4fc; }

.footer__heading {
  font-size: 13px;
  font-weight: var(--fw-semi);
  color: var(--c-text);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 16px;
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__links li,
.footer__links a {
  font-size: 14px;
  color: var(--c-muted);
  text-decoration: none;
  transition: color .2s;
}
.footer__links a:hover { color: var(--c-text); }

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

.footer__legal {
  display: flex;
  gap: 20px;
}
.footer__legal a {
  color: var(--c-muted);
  text-decoration: none;
  transition: color .2s;
}
.footer__legal a:hover { color: var(--c-text); }

/* ===================== RESPONSIVE ===================== */

/* Tablet */
@media (max-width: 1024px) {
  :root { --section-py: 72px; }

  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .service-card--featured { grid-column: span 2; }

  .process__steps { flex-wrap: wrap; justify-content: center; }
  .process__connector { display: none; }
  .process__step { flex: 0 0 calc(50% - 20px); }

  .results__grid { grid-template-columns: 1fr 1fr; }
  .result-card:last-child { grid-column: span 2; }

  .testimonials__grid { grid-template-columns: 1fr 1fr; }
  .testimonial-card:last-child { grid-column: span 2; }

  .villes__grid { grid-template-columns: repeat(2, 1fr); }
  .ville-card--main { grid-column: span 2; }

  .blog__grid { grid-template-columns: 1fr; }
  .blog-card--featured { grid-column: span 1; }

  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer__brand { grid-column: span 2; }
}

/* Mobile */
@media (max-width: 768px) {
  :root { --section-py: 60px; }

  /* ---- Header / Nav ---- */
  .nav {
    display: none;
    flex-direction: column;
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: rgba(8,12,20,.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 20px 24px 28px;
    gap: 4px;
    border-bottom: 1px solid var(--c-border);
    z-index: 999;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .nav.open { display: flex; }
  .nav__link { padding: 12px 16px; font-size: 16px; border-radius: var(--radius-md); }
  .nav__cta { margin-left: 0; margin-top: 8px; padding: 13px 20px; font-size: 15px; text-align: center; justify-content: center; }
  .burger { display: flex; }

  /* ---- Hero ---- */
  .hero__inner { padding: 56px 0 40px; }
  .hero__badge { font-size: 12px; padding: 5px 12px; }
  .hero__sub { font-size: 15px; }
  .hero__actions { flex-direction: column; align-items: stretch; width: 100%; max-width: 320px; margin-left: auto; margin-right: auto; }
  .hero__actions .btn { justify-content: center; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
  .hero__stat { padding: 16px 12px; }

  /* ---- Services ---- */
  .services__grid { grid-template-columns: 1fr; }
  .service-card--featured { grid-column: span 1; }
  .service-card { padding: 24px; }

  /* ---- Process ---- */
  .process__step { flex: 0 0 100%; }
  .process__connector { display: none; }
  .process__steps { flex-direction: column; gap: 20px; }

  /* ---- Results ---- */
  .results__grid { grid-template-columns: 1fr; }
  .result-card:last-child { grid-column: span 1; }
  .result-card__metrics { grid-template-columns: 1fr 1fr; gap: 12px; }

  /* ---- Testimonials ---- */
  .testimonials__grid { grid-template-columns: 1fr; }
  .testimonial-card:last-child { grid-column: span 1; }

  /* ---- Villes ---- */
  .villes__grid { grid-template-columns: 1fr; }
  .ville-card--main { grid-column: span 1; }

  /* ---- Contact ---- */
  .contact__grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-form { padding: 24px 18px; }
  .form__row { grid-template-columns: 1fr; }
  .contact__info { order: 2; }
  .contact__form-wrap { order: 1; }

  /* ---- CTA ---- */
  .cta-banner__inner { padding: 48px 24px; }
  .cta__actions { flex-direction: column; align-items: center; gap: 12px; }

  /* ---- Footer ---- */
  .footer { padding: 48px 0 24px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer__brand { grid-column: span 2; }
  .footer__bottom { flex-direction: column; gap: 10px; text-align: center; }
  .footer__legal { flex-wrap: wrap; justify-content: center; gap: 10px; }

  /* ---- Section header ---- */
  .section__header { margin-bottom: 40px; }
}

/* Small mobile */
@media (max-width: 480px) {
  :root { --header-h: 64px; }

  .container { padding: 0 16px; }

  .hero__title { font-size: 30px; letter-spacing: -.01em; }
  .hero__sub { font-size: 14px; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
  .hero__stat { padding: 14px 10px; }
  .stat__num { font-size: 22px; }
  .stat__label { font-size: 11px; }

  .section__title { font-size: 24px; }
  .section__sub { font-size: 15px; }

  .footer__grid { grid-template-columns: 1fr; }
  .footer__brand { grid-column: span 1; }
  .footer__socials { justify-content: flex-start; }
}

/* ---- Light mode: mobile nav background ---- */
@media (max-width: 768px) {
  [data-theme="light"] .nav {
    background: rgba(248,250,252,.98);
    border-color: rgba(15,23,42,.1);
  }
  [data-theme="light"] .nav__link { color: #334155; }
  [data-theme="light"] .nav__link:hover { background: rgba(99,102,241,.07); color: #0f172a; }
}

/* ---- Header right group (toggle + burger) ---- */
.header__right {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ===================== LIGHT MODE ===================== */
[data-theme="light"] {
  --c-bg:             #f8fafc;
  --c-surface:        #ffffff;
  --c-surface2:       #f1f5f9;
  --c-border:         rgba(15,23,42,.09);
  --c-text:           #334155;
  --c-muted:          #64748b;
  --c-heading-inline: #0f172a;
  --shadow-card:      0 4px 24px rgba(0,0,0,.08);
  --shadow-glow:      0 0 60px rgba(99,102,241,.08);
}

[data-theme="light"] .header.scrolled {
  background: rgba(248,250,252,.94);
  border-color: rgba(15,23,42,.1);
}

/* Heading colors */
[data-theme="light"] .hero__title,
[data-theme="light"] .section__title,
[data-theme="light"] .stat__num,
[data-theme="light"] .logo__name,
[data-theme="light"] .contact__title { color: #0f172a; }

/* Nav */
[data-theme="light"] .nav__link { color: #475569; }
[data-theme="light"] .nav__link:hover { color: #0f172a; background: rgba(15,23,42,.05); }

/* Burger */
[data-theme="light"] .burger span { background: #334155; }

/* Hero stats */
[data-theme="light"] .hero__stat { background: rgba(0,0,0,.025); }
[data-theme="light"] .hero__stat:hover { background: rgba(99,102,241,.06); }
[data-theme="light"] .hero__stats { background: rgba(15,23,42,.06); border-color: rgba(15,23,42,.08); }

/* Client logos marquee */
[data-theme="light"] .logos { border-color: rgba(15,23,42,.08); background: var(--c-surface); }
[data-theme="light"] .logo__client { color: rgba(15,23,42,.35); }
[data-theme="light"] .logo__client:hover { color: rgba(15,23,42,.7); }

/* Service cards */
[data-theme="light"] .service-card__title { color: #0f172a; }
[data-theme="light"] .service-card__link { color: #6366f1; }
[data-theme="light"] .service-card__link:hover { color: #4f46e5; }

/* Results / Process */
[data-theme="light"] .result-card__title,
[data-theme="light"] .result-card__metric { color: #0f172a; }
[data-theme="light"] .process__step-title,
[data-theme="light"] .process__num { color: #0f172a; }

/* Testimonials */
[data-theme="light"] .testimonial-card__name { color: #0f172a; }
[data-theme="light"] .testimonial-card__body { color: #475569; }

/* Villes */
[data-theme="light"] .ville-card__name { color: #0f172a; }

/* Blog */
[data-theme="light"] .blog-card__title { color: #0f172a; }
[data-theme="light"] .blog-card__link:hover { color: #4f46e5; }

/* CTA section */
[data-theme="light"] .cta { background: linear-gradient(135deg, rgba(99,102,241,.08), rgba(139,92,246,.05)); border-color: rgba(99,102,241,.15); }
[data-theme="light"] .cta__title { color: #0f172a; }
[data-theme="light"] .cta__sub { color: #475569; }

/* Form */
[data-theme="light"] .contact-form { background: #ffffff; border-color: rgba(15,23,42,.1); box-shadow: 0 4px 24px rgba(0,0,0,.06); }
[data-theme="light"] .form__input,
[data-theme="light"] .form__textarea { background: #f8fafc; border-color: rgba(15,23,42,.12); color: #0f172a; }
[data-theme="light"] .form__input::placeholder,
[data-theme="light"] .form__textarea::placeholder { color: #94a3b8; }
[data-theme="light"] .form__input:focus,
[data-theme="light"] .form__textarea:focus { background: #fff; border-color: var(--c-accent); }
[data-theme="light"] select.form__input { background: #f8fafc; color: #0f172a; }

/* Theme toggle button */
.theme-toggle {
  width: 38px;
  height: 38px;
  background: var(--c-surface2);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--c-muted);
  transition: border-color .2s, color .2s, background .2s;
  flex-shrink: 0;
  margin-right: 8px;
}
.theme-toggle:hover { border-color: var(--c-accent); color: var(--c-accent); }
.theme-toggle svg { width: 17px; height: 17px; pointer-events: none; }
