/*
 * web-design.css
 * Loaded ONLY on the Web Design Service page template.
 * All classes are prefixed .wd- to avoid any conflict with main.css.
 * Relies only on CSS custom properties (--vars) defined in main.css.
 * No .container overrides. Grids use their own dedicated wrappers.
 */

/* ── Hero ───────────────────────────────────────────────── */
.wd-hero {
  padding: 100px 0 80px;
  border-bottom: 1px solid var(--border);
}

.wd-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.wd-hero-left  { min-width: 0; }
.wd-hero-right { min-width: 0; display: flex; flex-direction: column; gap: 20px; }

.wd-badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-dim);
  border: 1px solid rgba(59,130,246,0.2);
  padding: 5px 12px;
  margin-bottom: 28px;
}

.wd-hero-title {
  font-family: var(--display);
  font-size: clamp(36px, 5.5vw, 72px);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -2px;
  color: var(--text);
  margin-bottom: 28px;
}

.wd-hero-title .wd-sub {
  display: block;
  font-size: 0.52em;
  font-weight: 300;
  color: var(--text-2);
  letter-spacing: -0.5px;
  line-height: 1.4;
  margin-top: 10px;
}

.wd-hero-desc {
  font-size: 15px;
  font-weight: 300;
  color: var(--text-2);
  line-height: 1.85;
  max-width: 480px;
  margin-bottom: 40px;
  padding-left: 16px;
  border-left: 2px solid rgba(59,130,246,0.3);
}

.wd-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Terminal panel */
.wd-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.wd-stat {
  background: var(--bg2);
  padding: 20px;
  text-align: center;
}

.wd-stat-val {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: -1px;
  line-height: 1;
}

.wd-stat-label {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 1.5px;
  color: var(--text-3);
  text-transform: uppercase;
  margin-top: 6px;
}

/* ── Sections ───────────────────────────────────────────── */
.wd-section {
  padding: 100px 0;
  border-bottom: 1px solid var(--border);
}

.wd-section--alt { background: var(--bg2); }

/* ── Includes grid ──────────────────────────────────────── */
.wd-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 56px;
}

.wd-card {
  background: var(--bg);
  padding: 36px 32px;
  position: relative;
  transition: background 0.2s;
  overflow: hidden;
}

.wd-card:hover { background: var(--bg2); }

.wd-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.wd-card:hover::after { transform: scaleX(1); }

.wd-card-icon  { font-size: 24px; margin-bottom: 16px; display: block; }

.wd-card-name {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.3px;
  margin-bottom: 10px;
}

.wd-card-desc {
  font-size: 13px;
  font-weight: 300;
  color: var(--text-2);
  line-height: 1.85;
}

/* ── Who it's for ───────────────────────────────────────── */
.wd-who-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}

.wd-who-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
}

.wd-who-item {
  display: flex;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
  transition: background 0.2s;
}

.wd-who-item:last-child { border-bottom: none; }
.wd-who-item:hover      { background: var(--surface); }

.wd-who-icon {
  font-size: 13px;
  flex-shrink: 0;
  margin-top: 2px;
  width: 20px;
  text-align: center;
}

.wd-yes .wd-who-icon   { color: #22c55e; }
.wd-no  .wd-who-icon   { color: rgba(239,68,68,0.5); }

.wd-who-label {
  font-family: var(--display);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.2px;
  margin-bottom: 4px;
}

.wd-no .wd-who-label { color: var(--text-3); }

.wd-who-sub {
  font-size: 12px;
  font-weight: 300;
  color: var(--text-2);
  line-height: 1.7;
}

.wd-no .wd-who-sub { color: var(--text-3); }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .wd-hero-grid  { grid-template-columns: 1fr; gap: 48px; }
  .wd-cards      { grid-template-columns: 1fr 1fr; }
  .wd-who-grid   { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .wd-hero       { padding: 60px 0 48px; }
  .wd-section    { padding: 64px 0; }
  .wd-cards      { grid-template-columns: 1fr; }
  .wd-actions    { flex-direction: column; }
  .wd-actions .btn-primary,
  .wd-actions .btn-ghost { width: 100%; justify-content: center; }
}
