/**
 * Website Design page - custom animations and layout
 */

/* Hero entrance animation */
body.website-design .hero-content .hero-title,
body.website-design .hero-content .hero-desc,
body.website-design .hero-content .hero-stats {
  opacity: 0;
  animation: wdFadeUp 0.8s ease forwards;
}

body.website-design .hero-content .hero-title { animation-delay: 0.1s; }
body.website-design .hero-content .hero-desc { animation-delay: 0.25s; }
body.website-design .hero-content .hero-stats { animation-delay: 0.45s; }

@keyframes wdFadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Light hero scheme – distinct from reactivation dark hero */
.wd-hero-light {
  background: #f2f7f4;
  color: var(--color-dark-green);
}

.wd-hero-light .hero-title,
.wd-hero-light .hero-title-highlight {
  color: var(--color-dark-green);
}

.wd-hero-light .hero-title-highlight {
  color: var(--color-accent-green);
}

.wd-hero-light .hero-desc {
  color: var(--color-text);
}

.wd-hero-light .hero-stat-value {
  color: var(--color-dark-green);
}

.wd-hero-light .hero-stat-label {
  color: var(--color-text-muted);
}

/* Lighter overlay – soft tint, not dark */
.wd-hero-bg .hero-background-image {
  transform: translateX(20%);
  opacity: 0.6;
  object-position: right center;
}

.wd-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to right,
    #f2f7f4 0%,
    rgba(242, 247, 244, 0.98) 35%,
    rgba(242, 247, 244, 0.7) 55%,
    rgba(242, 247, 244, 0.35) 75%,
    transparent 100%
  );
  z-index: 1;
}

@media (max-width: 768px) {
  .wd-hero-overlay {
    background: linear-gradient(
      to bottom,
      #f2f7f4 0%,
      rgba(242, 247, 244, 0.95) 50%,
      rgba(242, 247, 244, 0.7) 100%
    );
  }
}

/* Light header at top (override dark hero header) */
.wd-header-light {
  --header-scroll: 1 !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

/* Hero stat hover lift */
body.website-design .hero-stat {
  transition: transform 0.3s ease;
}

body.website-design .hero-stat:hover {
  transform: translateY(-4px);
}

/* Design mockup animation (Step 1) */
.wd-design-mockup {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(26, 44, 33, 0.15);
  overflow: hidden;
}

.wd-browser-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  background: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
}

.wd-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5e1;
}

.wd-dot:nth-child(1) { background: #ef4444; }
.wd-dot:nth-child(2) { background: #f59e0b; }
.wd-dot:nth-child(3) { background: #22c55e; }

.wd-url {
  flex: 1;
  margin-left: 12px;
  padding: 6px 12px;
  background: #fff;
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--color-text-muted);
  border: 1px solid #e2e8f0;
}

.wd-page-sections {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
}

.wd-section {
  height: 40px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px dashed #cbd5e1;
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.5s ease, transform 0.5s ease, background 0.3s ease, border-color 0.3s ease;
}

.wd-section span {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

.wd-section.visible {
  opacity: 1;
  transform: translateX(0);
  background: #eef5f0;
  border-color: var(--color-accent-green);
  border-style: solid;
}

.wd-section.visible span {
  color: var(--color-dark-green);
}

.wd-section-header { transition-delay: 0.2s; }
.wd-section-hero { transition-delay: 0.4s; }
.wd-section-services { transition-delay: 0.6s; }
.wd-section-team { transition-delay: 0.8s; }
.wd-section-contact { transition-delay: 1s; }

.wd-section.visible.wd-section-header { transition-delay: 0s; }
.wd-section.visible.wd-section-hero { transition-delay: 0.15s; }
.wd-section.visible.wd-section-services { transition-delay: 0.3s; }
.wd-section.visible.wd-section-team { transition-delay: 0.45s; }
.wd-section.visible.wd-section-contact { transition-delay: 0.6s; }

/* Build progress animation (Step 2) */
.wd-build-progress {
  width: 100%;
  max-width: 380px;
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 8px 32px rgba(26, 44, 33, 0.12);
}

.wd-build-title {
  margin: 0 0 20px;
  font-family: var(--font-sans);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-dark-green);
}

.wd-build-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wd-build-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  opacity: 0.5;
  transform: translateX(-10px);
  transition: opacity 0.4s ease, transform 0.4s ease, background 0.3s ease, border-color 0.3s ease;
}

.wd-build-step.complete {
  opacity: 1;
  transform: translateX(0);
  background: #eef5f0;
  border-color: var(--color-accent-green);
}

.wd-build-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #94a3b8;
  font-size: 0.75rem;
  font-weight: 700;
  transition: all 0.3s ease;
}

.wd-build-step.complete .wd-build-icon {
  background: var(--color-accent-green);
  color: #fff;
}

.wd-build-label {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text);
}

.wd-build-step.complete .wd-build-label {
  color: var(--color-dark-green);
}

.wd-progress-bar-wrap {
  margin-top: 20px;
  height: 6px;
  background: #e2e8f0;
  border-radius: 3px;
  overflow: hidden;
}

.wd-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--color-accent-green), #5a9d6e);
  border-radius: 3px;
  transition: width 0.5s ease;
}

/* Metrics dashboard animation (Step 3) */
.wd-metrics-dashboard {
  width: 100%;
  max-width: 400px;
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 8px 32px rgba(26, 44, 33, 0.12);
}

.wd-metrics-title {
  margin: 0 0 20px;
  font-family: var(--font-sans);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-dark-green);
}

.wd-metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.wd-metric {
  padding: 20px;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  text-align: center;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.4s ease, transform 0.4s ease, background 0.3s ease;
}

.wd-metric.visible {
  opacity: 1;
  transform: scale(1);
  background: #eef5f0;
  border-color: rgba(64, 119, 86, 0.3);
}

.wd-metric-highlight.visible {
  background: linear-gradient(135deg, #eef5f0 0%, #e0ede5 100%);
  border-color: var(--color-accent-green);
  box-shadow: 0 4px 12px rgba(64, 119, 86, 0.2);
}

.wd-metric-value {
  font-family: var(--font-sans);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-accent-green);
  line-height: 1.2;
  margin-bottom: 4px;
}

.wd-metric-highlight .wd-metric-value {
  font-size: 2.25rem;
  color: var(--color-dark-green);
}

.wd-metric-label {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

/* Stagger delays for metrics */
.wd-metric[data-wd-metric="1"].visible { transition-delay: 0s; }
.wd-metric[data-wd-metric="2"].visible { transition-delay: 0.1s; }
.wd-metric[data-wd-metric="3"].visible { transition-delay: 0.2s; }
.wd-metric[data-wd-metric="4"].visible { transition-delay: 0.3s; }

/* Animation container backgrounds for website design page */
.wd-animation-container[data-active-step="1"] {
  background: #e0ede5;
}

.wd-animation-container[data-active-step="2"] {
  background: #dce8f0;
}

.wd-animation-container[data-active-step="3"] {
  background: #f0e8dc;
}

/* Pricing section: don't force full viewport height (we have enough content) */
body.website-design .pricing-section {
  min-height: auto;
}

/* Pricing two-column layout */
.wd-pricing-content {
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: start;
}

@media (max-width: 968px) {
  .wd-pricing-content {
    grid-template-columns: 1fr;
  }
}

/* Value breakdown card */
.wd-value-breakdown {
  background: var(--color-bg-green);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  border: 2px solid var(--color-border);
  box-shadow: 0 4px 24px rgba(26, 44, 33, 0.06);
}

.wd-value-title {
  margin: 0 0 12px;
  font-family: var(--font-sans);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--color-dark-green);
}

.wd-value-intro {
  margin: 0 0 24px;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--color-text);
}

.wd-value-groups {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 24px;
}

.wd-value-group {
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(64, 119, 86, 0.15);
}

.wd-value-group:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.wd-value-group-title {
  margin: 0 0 10px;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-accent-green);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.wd-value-list {
  margin: 0;
  padding: 0 0 0 20px;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--color-text);
}

.wd-value-list li {
  margin-bottom: 6px;
}

.wd-value-list li:last-child {
  margin-bottom: 0;
}

.wd-compare {
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 10px;
  border: 1px solid var(--color-border);
}

.wd-compare-label {
  margin: 0 0 6px;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
}

.wd-compare-text {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--color-text);
}

.pricing-upfront {
  margin: 8px 0 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-accent-green);
}

/* Responsive: animation container heights for stacked layout */
@media (max-width: 968px) {
  .scroll-how-animation-container .wd-anim.wd-anim-design,
  .scroll-how-animation-container .wd-anim.wd-anim-build,
  .scroll-how-animation-container .wd-anim.wd-anim-metrics {
    min-height: 320px;
    height: auto;
    padding: 24px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .wd-design-mockup,
  .wd-build-progress,
  .wd-metrics-dashboard {
    max-width: 100%;
  }
}
