/*
 * ============================================================
 * CEDRO REDESIGN — Vasilyev Design
 * Clean, minimal, typography-driven. Light default + lime accent.
 * Scoped to body.cd-page — other pages unaffected.
 * ============================================================
 */

/* ── LIGHT DEFAULT (body.cd-page) ────────────────────────────── */
body.cd-page {
  --accent:          #C4F000;
  --accent-contrast: #111;
  --accent-muted:    rgba(196, 240, 0, 0.12);
  --bg-deep:         #FAFAFA;
  --bg-card:         #FFFFFF;
  --border-soft:     rgba(0, 0, 0, 0.08);
  --border-accent:   rgba(196, 240, 0, 0.35);
  --text-primary:    rgba(10, 10, 15, 0.92);
  --text-secondary:  rgba(40, 40, 50, 0.65);
  --text-muted:      rgba(100, 100, 110, 0.5);
  --card-bg:         #FFFFFF;
  --card-border:     rgba(0, 0, 0, 0.06);
  --card-shadow:     0 2px 24px rgba(0, 0, 0, 0.04);
  background: var(--bg-deep) !important;
  color: var(--text-primary) !important;
}

/* ── DARK THEME OVERRIDE ─────────────────────────────────────── */
[data-theme="dark"] body.cd-page,
html[data-theme="dark"] body.cd-page {
  --bg-deep:         #0A0A0C;
  --bg-card:         rgba(255, 255, 255, 0.035);
  --border-soft:     rgba(255, 255, 255, 0.08);
  --border-accent:   rgba(196, 240, 0, 0.22);
  --text-primary:    rgba(255, 255, 255, 0.95);
  --text-secondary:  rgba(180, 180, 190, 0.7);
  --text-muted:      rgba(140, 140, 150, 0.5);
  --card-bg:         rgba(255, 255, 255, 0.04);
  --card-border:     rgba(255, 255, 255, 0.07);
  --card-shadow:     0 2px 24px rgba(0, 0, 0, 0.3);
  background: var(--bg-deep) !important;
}

/* ── GLOBAL TYPOGRAPHY (scoped) ──────────────────────────────── */
body.cd-page h1,
body.cd-page h2,
body.cd-page h3,
body.cd-page h4 {
  font-family: 'Space Grotesk', sans-serif;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  line-height: 1.08;
}
body.cd-page p {
  color: var(--text-secondary);
}
body.cd-page a {
  color: var(--text-primary);
}

/* Fix gradient text fill for light theme */
body.cd-page .section-title h2 {
  background: none !important;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: var(--text-primary) !important;
}

/* ── UTILITY CLASSES ─────────────────────────────────────────── */
.cd-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.cd-eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.cd-section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(36px, 4.5vw, 64px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.cd-section-subtitle {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 540px;
}

/* ── SCROLL REVEAL ───────────────────────────────────────────── */
.cd-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.cd-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════════════════════════════
   1. HERO
   ══════════════════════════════════════════════════════════════ */
.cd-hero {
  padding: 160px 0 100px;
  position: relative;
  overflow: hidden;
}
.cd-hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.cd-hero__inner {
  max-width: 820px;
}

/* Hero video block */
.cd-hero__media {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--card-border);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.08);
  aspect-ratio: 4 / 3;
}
.cd-hero__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
[data-theme="dark"] body.cd-page .cd-hero__media,
html[data-theme="dark"] body.cd-page .cd-hero__media {
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
}
.cd-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 32px;
}
.cd-hero__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: cd-pulse 2s infinite;
}
@keyframes cd-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}
.cd-hero__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(44px, 6vw, 80px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  margin-bottom: 28px;
}
.cd-hero__accent {
  color: var(--accent);
}
/* In light theme, lime on white is hard to read — use darker variant */
body.cd-page .cd-hero__accent {
  color: #8AAD00;
}
[data-theme="dark"] body.cd-page .cd-hero__accent,
html[data-theme="dark"] body.cd-page .cd-hero__accent {
  color: var(--accent);
}

.cd-hero__subtitle {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 540px;
  margin-bottom: 40px;
}
.cd-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ══════════════════════════════════════════════════════════════
   2. STATS
   ══════════════════════════════════════════════════════════════ */
.cd-stats {
  padding: 72px 0;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}
.cd-stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
.cd-stats__item {
  text-align: center;
}
.cd-stats__number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(40px, 5vw, 60px);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  display: block;
  line-height: 1;
}
.cd-stats__label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 10px;
  display: block;
  letter-spacing: 0.02em;
}

/* ══════════════════════════════════════════════════════════════
   3. EXPERTISE (cedro-style grid)
   ══════════════════════════════════════════════════════════════ */
.cd-expertise {
  padding: 120px 0;
}
.cd-expertise__header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 40px;
  margin-bottom: 56px;
}
.cd-expertise__desc {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 480px;
}
.cd-expertise__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border-soft);
  border: 1px solid var(--border-soft);
  border-radius: 24px;
  overflow: hidden;
}
.cd-exp-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 36px 32px;
  background: var(--bg-deep);
  text-decoration: none;
  color: inherit;
  transition: background 0.3s ease;
}
.cd-exp-card:hover {
  background: var(--card-bg);
}
.cd-exp-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #C4F000;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: #fff;
  transition: transform 0.3s ease;
}
.cd-exp-card__icon img {
  width: 30px;
  height: 30px;
}
.cd-exp-card:hover .cd-exp-card__icon {
  transform: scale(1.06);
}
.cd-exp-card__label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}
body.cd-page .cd-exp-card__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
  letter-spacing: -0.02em;
  margin-bottom: 0;
  flex: 1;
}
.cd-exp-card__meta {
  display: flex;
  gap: 16px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border-soft);
  width: 100%;
}
.cd-exp-card__meta span {
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
}
.cd-svc-card:hover .cd-svc-card__arrow {
  color: var(--accent);
  transform: rotate(45deg);
}

/* ══════════════════════════════════════════════════════════════
   4. CASES / PORTFOLIO
   ══════════════════════════════════════════════════════════════ */
.cd-cases {
  padding: 120px 0;
  border-top: 1px solid var(--border-soft);
}
.cd-cases__header {
  margin-bottom: 56px;
}
.cd-cases__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.cd-case-card {
  border-radius: 24px;
  overflow: hidden;
  position: relative;
}
.cd-case-card:first-child {
  grid-column: span 2;
}
.cd-case-card a {
  display: block;
  text-decoration: none;
  color: #fff;
  position: relative;
}
.cd-case-card__image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.cd-case-card:first-child .cd-case-card__image {
  aspect-ratio: 21 / 9;
}
.cd-case-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.cd-case-card:hover .cd-case-card__image img {
  transform: scale(1.05);
}
/* Overlay with text at bottom-left */
.cd-case-card__info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 28px;
  background: linear-gradient(0deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.35) 55%, transparent 100%);
  display: flex;
  flex-direction: column;
  gap: 0;
}
.cd-case-card__type {
  margin-bottom: 12px;
}
.cd-case-card__type {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  padding: 6px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  line-height: 1.3;
  align-self: flex-start;
}
/* Force white text on portfolio cards — always over dark gradient */
.cd-case-card__title,
body.cd-page .cd-case-card__title,
[data-theme="light"] body.cd-page .cd-case-card__title,
html[data-theme="light"] .cd-case-card__title {
  font-size: 20px;
  font-weight: 600;
  color: #fff !important;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.cd-case-card__info,
[data-theme="light"] .cd-case-card__info {
  color: #fff !important;
}
.cd-case-card__type,
[data-theme="light"] .cd-case-card__type {
  color: #fff !important;
}
body.cd-page .cd-case-card__desc,
[data-theme="light"] body.cd-page .cd-case-card__desc,
[data-theme="dark"] body.cd-page .cd-case-card__desc {
  font-size: 14px;
  color: rgba(255,255,255,0.7) !important;
  line-height: 1.45;
  margin-top: 3px;
  font-weight: 400;
}
.cd-cases__more {
  text-align: center;
  margin-top: 48px;
}

/* ══════════════════════════════════════════════════════════════
   5. PROCESS
   ══════════════════════════════════════════════════════════════ */
.cd-process {
  padding: 120px 0;
  border-top: 1px solid var(--border-soft);
}
.cd-process__header {
  margin-bottom: 64px;
}
.cd-process__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.cd-process__step {
  padding: 0;
}
.cd-process__num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 52px;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.25;
  line-height: 1;
  margin-bottom: 20px;
}
.cd-process__step-title {
  font-size: 19px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.cd-process__step-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* ══════════════════════════════════════════════════════════════
   6. REVIEWS (override existing .vd-reviews)
   ══════════════════════════════════════════════════════════════ */
body.cd-page .cd-reviews {
  padding: 120px 0;
  border-top: 1px solid var(--border-soft);
}
body.cd-page .cd-reviews__header {
  text-align: center;
  margin-bottom: 56px;
}
body.cd-page .cd-reviews__header .cd-section-subtitle {
  margin: 0 auto;
}
body.cd-page .cd-reviews__footer {
  text-align: center;
  margin-top: 48px;
}
/* Override review card for light theme */
body.cd-page .vd-review-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
  backdrop-filter: none;
}
body.cd-page .vd-review-card:hover {
  border-color: var(--border-accent);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}
body.cd-page .vd-review-card__text {
  color: var(--text-secondary);
}
body.cd-page .vd-review-card__name {
  color: var(--text-primary);
}
body.cd-page .vd-review-card__quote {
  color: var(--accent);
}

/* ══════════════════════════════════════════════════════════════
   7. CTA (override existing .call-to-action-area)
   ══════════════════════════════════════════════════════════════ */
body.cd-page .call-to-action-area {
  padding: 100px 0;
}
body.cd-page .cta-founder-wrap {
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  box-shadow: var(--card-shadow);
}
body.cd-page .cta-founder-content h2 {
  color: var(--text-primary);
}
body.cd-page .cta-founder-content p {
  color: var(--text-secondary);
}
body.cd-page .cta-founder-badge {
  color: #8AAD00;
}
body.cd-page .cta-founder-badge::before {
  background: #8AAD00;
}
body.cd-page .cta-founder-tags span {
  border-color: var(--card-border);
  color: var(--text-secondary);
  background: var(--bg-deep);
}
body.cd-page .cta-founder-tags span i {
  color: #8AAD00;
}
/* Dark theme restores lime */
[data-theme="dark"] body.cd-page .cta-founder-badge,
html[data-theme="dark"] body.cd-page .cta-founder-badge {
  color: var(--accent);
}
[data-theme="dark"] body.cd-page .cta-founder-badge::before,
html[data-theme="dark"] body.cd-page .cta-founder-badge::before {
  background: var(--accent);
}
[data-theme="dark"] body.cd-page .cta-founder-tags span i,
html[data-theme="dark"] body.cd-page .cta-founder-tags span i {
  color: var(--accent);
}

/* ══════════════════════════════════════════════════════════════
   8. BUTTONS (light theme override)
   ══════════════════════════════════════════════════════════════ */
body.cd-page .theme-btn {
  box-shadow: none;
  border-radius: 14px;
  font-size: 15px;
  padding: 16px 32px;
  color: #000;
  background: var(--accent);
}
body.cd-page .theme-btn:hover {
  color: #000;
}
body.cd-page .theme-btn--outline {
  border-color: var(--border-soft);
  color: var(--text-primary);
  background: transparent;
}
body.cd-page .theme-btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ══════════════════════════════════════════════════════════════
   8a. SERVICES DROPDOWN
   ══════════════════════════════════════════════════════════════ */
.vd-nav-dropdown {
  position: relative;
  display: inline-flex;
}
.vd-nav-dropdown__trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}
.vd-nav-dropdown__trigger i {
  font-size: 14px;
  transition: transform 0.25s;
}
.vd-nav-dropdown:hover .vd-nav-dropdown__trigger i {
  transform: rotate(180deg);
}
.vd-nav-dropdown__menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  transform: translateY(8px);
  width: max-content;
  background: var(--bg-deep);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.10), 0 0 0 1px rgba(0,0,0,0.03);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 100;
}
[data-theme="dark"] .vd-nav-dropdown__menu {
  background: #141416;
  border-color: rgba(255,255,255,0.1);
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
}
.vd-nav-dropdown:hover .vd-nav-dropdown__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.vd-nav-dropdown__grid {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.vd-nav-dropdown__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  text-decoration: none;
  color: var(--text-primary);
  border-radius: 8px;
  transition: background 0.15s;
}
.vd-nav-dropdown__item i {
  font-size: 18px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid var(--card-border);
  color: var(--text-primary);
  background: transparent;
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.vd-nav-dropdown__item:hover {
  background: rgba(0,0,0,0.04);
  border-radius: 8px;
}
[data-theme="dark"] .vd-nav-dropdown__item:hover {
  background: rgba(255,255,255,0.06);
}
.vd-nav-dropdown__item:hover i {
  background: var(--accent);
  color: #111;
  border-color: var(--accent);
}
.vd-nav-dropdown__item div {
  line-height: 1.4;
}
.vd-nav-dropdown__item strong {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  text-transform: none;
  letter-spacing: 0;
}
.vd-nav-dropdown__item span {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  margin-top: 1px;
  transition: color 0.2s;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}
.vd-nav-dropdown__item:hover span {
  color: var(--text-secondary);
}

/* Mobile expand subnav */
/* Make button look identical to .vd-mob__nav a */
.vd-mob__expand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  /* Copy exact styles from .vd-mob__nav a */
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: rgba(255,255,255,0.55);
  padding: 12px 0;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: color 0.2s;
}
.vd-mob__expand:hover {
  color: #fff;
}
[data-theme="light"] .vd-mob__expand {
  color: rgba(20,20,25,0.5);
  border-bottom-color: rgba(0,0,0,0.06);
}
[data-theme="light"] .vd-mob__expand:hover {
  color: rgba(20,20,25,0.9);
}
.vd-mob__expand i {
  font-size: 20px;
  transition: transform 0.25s;
}
.vd-mob__expand.is-open i {
  transform: rotate(180deg);
}
body.cd-page .vd-mob__subnav {
  display: none;
  flex-direction: column;
  padding: 8px 0 8px 0;
  gap: 0;
}
body.cd-page .vd-mob__subnav.is-open {
  display: flex;
}
body.cd-page .vd-mob__subnav a {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  padding: 10px 0 10px 4px;
  border-bottom: none;
  opacity: 1;
}
[data-theme="light"] body.cd-page .vd-mob__subnav a {
  color: rgba(20,20,25,0.7);
}
body.cd-page .vd-mob__subnav a i {
  font-size: 20px;
  color: var(--accent);
  width: 28px;
  text-align: center;
}
body.cd-page .vd-mob__subnav a:hover {
  color: #fff;
}
[data-theme="light"] body.cd-page .vd-mob__subnav a:hover {
  color: rgba(20,20,25,0.95);
}

@media (max-width: 992px) {
  .vd-nav-dropdown__menu {
    display: none !important;
  }
}

/* ══════════════════════════════════════════════════════════════
   8b. CONTACT CARDS overrides for light
   ══════════════════════════════════════════════════════════════ */
body.cd-page .contact-cards-section {
  padding-bottom: 80px;
}
body.cd-page .contact-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
}
body.cd-page .contact-card--link:hover {
  border-color: var(--border-accent);
  box-shadow: var(--card-shadow);
}
body.cd-page .contact-card__icon {
  color: #7A9E00;
  background: var(--accent-muted);
}
body.cd-page .contact-card__label {
  color: var(--text-muted);
}
body.cd-page .contact-card__value {
  color: var(--text-primary);
}
body.cd-page .contact-card__desc {
  color: var(--text-secondary);
}
body.cd-page .rekv-row span {
  color: var(--text-muted);
}
body.cd-page .rekv-row strong {
  color: var(--text-primary);
}
body.cd-page .rekv-row strong a {
  color: #7A9E00;
}

/* ══════════════════════════════════════════════════════════════
   8c. SEO-SECTION & PORTFOLIO overrides
   ══════════════════════════════════════════════════════════════ */
body.cd-page .vd-seo-section {
  border-top: 1px solid var(--border-soft);
}
body.cd-page .vd-seo-stats {
  border-color: var(--border-soft);
  border-top-color: var(--text-primary);
}
body.cd-page .vd-seo-stat {
  background: transparent;
  border-right-color: var(--border-soft);
}
body.cd-page .vd-seo-stat:hover {
  background: var(--card-bg);
}
body.cd-page .vd-seo-stat__num {
  color: var(--text-primary);
}
body.cd-page .vd-seo-stat__num em {
  color: var(--text-primary);
}
body.cd-page .vd-seo-stat__label {
  color: var(--text-muted);
}
body.cd-page .portfolio-box {
  border-radius: 16px;
}
body.cd-page .portfolio-box .portfolio-caption h2 {
  color: #fff;
}

/* ══════════════════════════════════════════════════════════════
   8d. SEO INTERNAL LINKS overrides
   ══════════════════════════════════════════════════════════════ */
body.cd-page .seo-internal-links {
  border-top: 1px solid var(--border-soft);
  background: transparent;
}
body.cd-page .seo-internal-links a {
  color: var(--text-secondary);
  border-color: var(--card-border);
}
body.cd-page .seo-internal-links a:hover {
  color: #7A9E00;
  border-color: var(--border-accent);
}

/* ══════════════════════════════════════════════════════════════
   9. HEADER overrides for light
   ══════════════════════════════════════════════════════════════ */
body.cd-page .main-header .header-upper {
  transition: none !important;
  animation: none !important;
  background: rgba(250, 250, 250, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
/* Kill vd-reveal on cd-page elements — but not on .vd-mob overlay */
body.cd-page [data-vd-reveal]:not(.vd-mob):not(.vd-mob *) {
  opacity: 1 !important;
  transform: none !important;
}
/* Ensure mobile overlay works correctly */
body.cd-page .vd-mob {
  opacity: 0;
  pointer-events: none;
}
body.cd-page .vd-mob.is-open {
  opacity: 1;
  pointer-events: all;
}
body.cd-page .vd-desktop-nav a {
  color: var(--text-secondary);
}
body.cd-page .vd-desktop-nav a:hover {
  color: var(--text-primary);
}
body.cd-page .site-logo--dark  { display: none !important; }
body.cd-page .site-logo--light { display: block !important; }

/* Dark theme: restore dark header */
[data-theme="dark"] body.cd-page .main-header .header-upper,
html[data-theme="dark"] body.cd-page .main-header .header-upper {
  background: rgba(10, 10, 12, 0.85);
}
[data-theme="dark"] body.cd-page .site-logo--dark  { display: block !important; }
[data-theme="dark"] body.cd-page .site-logo--light { display: none !important; }
[data-theme="dark"] body.cd-page .vd-desktop-nav a { color: var(--text-secondary); }

/* ══════════════════════════════════════════════════════════════
   10. FOOTER overrides for light
   ══════════════════════════════════════════════════════════════ */
body.cd-page .vd-footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--border-soft);
}
body.cd-page .vd-footer__desc,
body.cd-page .vd-footer__links a,
body.cd-page .vd-footer__copy,
body.cd-page .vd-footer__company {
  color: var(--text-secondary);
}
body.cd-page .vd-footer__title {
  color: var(--text-primary);
}
body.cd-page .vd-footer__links a:hover {
  color: var(--accent);
}
body.cd-page .vd-footer__tags span {
  border-color: var(--card-border);
  color: var(--text-muted);
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 1200px) {
  .cd-hero__title { font-size: clamp(40px, 5.5vw, 68px); }
  .cd-svc-card__title { font-size: 24px; }
}

@media (max-width: 992px) {
  .cd-hero { padding: 140px 0 80px; }
  .cd-hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .cd-hero__media { max-width: 520px; }
  .cd-stats__grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .cd-expertise, .cd-cases, .cd-process, body.cd-page .cd-reviews, body.cd-page .cd-cta {
    padding: 80px 0;
  }
  .cd-expertise__header { grid-template-columns: 1fr; gap: 16px; }
  .cd-expertise__grid { grid-template-columns: repeat(2, 1fr); }
  .cd-cases__grid { grid-template-columns: 1fr; }
  .cd-case-card:first-child { grid-column: span 1; }
  .cd-case-card:first-child .cd-case-card__image { aspect-ratio: 16/10; }
  .cd-process__grid { grid-template-columns: repeat(2, 1fr); }
  body.cd-page .vd-reviews__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .cd-hero { padding: 130px 0 80px; }
  .cd-hero__title { font-size: 36px; }
  .cd-hero__subtitle { font-size: 16px; }
  .cd-section-title { font-size: 32px; }
  .cd-expertise__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 576px) {
  .cd-hero { padding: 120px 0 60px; }
  .cd-hero__title { font-size: 32px; }
  .cd-hero__actions { flex-direction: column; }
  .cd-hero__actions .theme-btn { width: 100%; text-align: center; }
  .cd-stats__grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .cd-stats__number { font-size: 36px; }
  .cd-expertise__grid { grid-template-columns: 1fr; }
  .cd-process__grid { grid-template-columns: 1fr; }
  body.cd-page .vd-reviews__grid { grid-template-columns: 1fr; }
  .cd-expertise__header, .cd-cases__header, .cd-process__header {
    margin-bottom: 40px;
  }
}
