/* ===== Virtual Staging — scoped for page-template-page-virtual-staging ===== */
/* Override parent theme on VS page */
body.page-template-page-virtual-staging {
  margin: 0 !important;
  font-family: 'Manrope', -apple-system, sans-serif !important;
  font-size: 1rem !important;
  line-height: 1.6 !important;
  color: #e8eaed !important;
  background: #0f1419 !important;
}

body.page-template-page-virtual-staging .vs-landing-wrap {
  margin: -1em 0;
  background: #0f1419;
}

body.page-template-page-virtual-staging .wrap > header {
  border-bottom: none !important;
  box-shadow: none !important;
}

/* ===== Base ===== */
:root {
  --color-bg: #0f1419;
  --color-bg-light: #1a2332;
  --color-bg-dark: #0a0e12;
  --color-accent: #c9a962;
  --color-accent-hover: #d4b873;
  --color-text: #e8eaed;
  --color-text-muted: #9aa0a6;
  --color-border: rgba(201, 169, 98, 0.2);
  --font-sans: 'Manrope', -apple-system, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.vs-landing { color: #e8eaed; }

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 20, 25, 0.9);
  backdrop-filter: blur(12px);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 16px 24px;
  flex-wrap: wrap;
  max-width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  font-weight: 600;
}

.logo__img {
  width: 64px;
  height: 64px;
  filter: invert(1);
}

.logo__text {
  white-space: nowrap;
}

.nav {
  display: flex;
  gap: 32px;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .header__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
  }

  .logo__img {
    width: 48px;
    height: 48px;
  }

  .logo__text {
    font-size: 0.9rem;
  }

  .nav {
    gap: 24px;
    padding-top: 12px;
    margin-top: 8px;
    border-top: 1px solid var(--color-border);
    width: 100%;
  }

  .nav__link {
    font-size: 0.9rem;
  }
}

.nav__link {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.nav__link:hover {
  color: var(--color-accent);
}

/* ===== Hero ===== */
.hero {
  padding: 80px 0 100px;
  background: linear-gradient(180deg, var(--color-bg-light) 0%, var(--color-bg) 100%);
}

.hero__logo {
  margin-bottom: 24px;
  width: 120px;
  height: 120px;
  filter: invert(1);
}

.hero__tagline {
  margin: 0 0 12px;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-accent);
}

.hero__title {
  margin: 0 0 24px;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 600;
  line-height: 1.2;
  color: #fff;
}

.hero__subtitle {
  margin: 0 0 40px;
  max-width: 600px;
  font-size: 1.125rem;
  color: var(--color-text-muted);
}

.hero__stats {
  display: flex;
  gap: 48px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat__value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-accent);
}

.stat__label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  transition: background 0.2s, transform 0.1s;
}

.btn--primary {
  background: var(--color-accent);
  color: #0f1419;
}

.btn--primary:hover {
  background: var(--color-accent-hover);
}

.btn--secondary {
  background: transparent;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
}

.btn--secondary:hover {
  background: rgba(201, 169, 98, 0.1);
}

/* ===== Sections ===== */
.section {
  padding: 80px 0;
}

.section--light {
  background: var(--color-bg-light);
}

.section--dark {
  background: var(--color-bg-dark);
}

.section--cta {
  background: linear-gradient(135deg, var(--color-bg-light) 0%, rgba(201, 169, 98, 0.08) 100%);
  text-align: center;
}

/* Секция What You Get — светлая схема для читабельности */
.section--services {
  background: #f5f6f8;
}
.section--services .section__title,
.section--services .feature__title {
  color: #1a2332;
}
.section--services .section__lead,
.section--services .feature__text,
.section--services .tech__text {
  color: #4a5568;
}
.section--services .feature {
  background: #fff;
  border-color: #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.section--services .tech {
  background: #fff;
  border-left-color: var(--color-accent);
}
.section--services .tech__label {
  color: #b8860b;
}

/* Секция How to Start — светлая схема для читабельности */
.section--howto {
  background: #f5f6f8;
}
.section--howto .section__title {
  color: #1a2332;
}
.section--howto .step__text {
  color: #4a5568;
}
.section--howto .step__num {
  background: var(--color-accent);
  color: #fff;
}

.section__title {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 600;
}

.section__lead {
  margin: 0 0 48px;
  font-size: 1.1rem;
  color: var(--color-text-muted);
}

/* ===== Features ===== */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  margin-bottom: 48px;
}

.feature {
  padding: 28px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

.feature__icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.feature__title {
  margin: 0 0 12px;
  font-size: 1.1rem;
  font-weight: 600;
}

.feature__text {
  margin: 0;
  font-size: 0.95rem;
  color: #c4cad1;
  line-height: 1.55;
}

/* ===== Tech ===== */
.tech {
  padding: 24px;
  background: rgba(201, 169, 98, 0.06);
  border-radius: var(--radius);
  border-left: 4px solid var(--color-accent);
}

.tech__label {
  margin: 0 0 8px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
}

.tech__text {
  margin: 0;
  color: #c4cad1;
}

/* ===== Pricing ===== */
.pricing-list {
  margin: 0 0 24px;
  padding-left: 24px;
  font-size: 1.05rem;
}

.pricing-list li {
  margin-bottom: 12px;
}

.upsell {
  padding: 24px;
  background: rgba(201, 169, 98, 0.08);
  border-radius: var(--radius);
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.upsell strong {
  color: var(--color-accent);
}

.upsell--bulk {
  margin-top: 16px;
  border-top: 1px solid var(--color-border);
  padding-top: 20px !important;
}

/* ===== Before/After Slider ===== */
.portfolio-grid {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.portfolio-item__title {
  margin: 0 0 16px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-accent);
}

.portfolio-note {
  margin: 0 0 32px;
  padding: 16px 20px;
  background: rgba(201, 169, 98, 0.08);
  border-radius: var(--radius);
  font-size: 0.95rem;
  color: var(--color-text-muted);
  border-left: 4px solid var(--color-accent);
}

.moodboard {
  margin-top: 24px;
}

.moodboard__label {
  margin: 0 0 12px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
}

.moodboard__img {
  width: 100%;
  max-width: 640px;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.before-after-slider {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: #1a2332;
  aspect-ratio: 16 / 10;
}

.before-after__before,
.before-after__after {
  position: absolute;
  inset: 0;
}

.before-after__before img,
.before-after__after img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.before-after__after {
  clip-path: inset(0 50% 0 0);
  z-index: 2;
}

.before-after__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  margin-left: -2px;
  background: var(--color-accent);
  cursor: ew-resize;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.before-after__handle-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  margin-left: -2px;
  background: var(--color-accent);
}

.before-after__handle-arrow {
  position: absolute;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent);
  color: #0f1419;
  font-size: 1.2rem;
  font-weight: 700;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.before-after__handle-arrow--left {
  left: 50%;
  margin-left: -46px;
}

.before-after__handle-arrow--right {
  left: 50%;
  margin-left: 10px;
}

.before-after__labels {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 5;
  pointer-events: none;
}

.before-after__label {
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 6px;
}

.before-after__label--before {
  color: #9aa0a6;
}

.before-after__label--after {
  color: var(--color-accent);
}

.before-after__position {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Legacy note (hidden when using slider) */
.before-after__note {
  margin: 0;
  padding: 24px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius);
  font-style: italic;
  color: var(--color-text-muted);
}

/* ===== Steps ===== */
.steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 24px;
}

.step__num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent);
  color: #0f1419;
  font-weight: 700;
  border-radius: 50%;
}

.step__text {
  font-size: 1.05rem;
}

/* ===== Footer ===== */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--color-border);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.footer__logo {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  filter: invert(1);
}

.footer__text {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* ===== Print / PDF ===== */
@media print {
  .logo__img,
  .hero__logo,
  .footer__logo {
    filter: none;
  }

  :root {
    --color-bg: #fff;
    --color-bg-light: #f8f9fa;
    --color-bg-dark: #f0f0f0;
    --color-accent: #8b6914;
    --color-text: #1a1a1a;
    --color-text-muted: #555;
    --color-border: #ddd;
  }

  body {
    background: #fff;
    color: #1a1a1a;
  }

  .header {
    background: #fff;
  }

  .nav__link {
    color: #333;
  }

  .hero {
    background: #f8f9fa;
    padding: 40px 0 60px;
  }

  .hero__title {
    color: #1a1a1a;
  }

  .hero__subtitle,
  .section__lead,
  .feature__text,
  .tech__text,
  .upsell,
  .before-after__note {
    color: #444;
  }

  .section--light {
    background: #f8f9fa;
  }

  .section--dark {
    background: #f0f0f0;
  }

  .section--cta {
    background: #f8f9fa;
  }

  .feature {
    background: #fff;
    border: 1px solid #e0e0e0;
    box-shadow: none;
  }

  .btn {
    border: 2px solid var(--color-accent);
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .btn--primary {
    background: transparent !important;
    color: var(--color-accent) !important;
  }

  a[href]:after {
    content: none !important;
  }

  .section {
    padding: 40px 0;
    break-inside: avoid;
  }

  /* Print: show Before + After as side-by-side */
  .before-after-slider {
    display: flex;
    overflow: visible;
  }

  .before-after__before,
  .before-after__after {
    position: relative;
    flex: 1;
    clip-path: none !important;
  }

  .before-after__before::after {
    content: 'Before';
    display: block;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 0;
  }

  .before-after__after::after {
    content: 'After';
    display: block;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 0;
  }

  .before-after__handle,
  .before-after__labels,
  .before-after__position {
    display: none !important;
  }
}
