/*
Theme Name: Voicebook Pipeline OS
Theme URI: https://voicebooksrl.it
Author: Voicebook SRL
Description: Multilingual B2B website for Voicebook, corporate sales systems company.
Version: 1.3.0
Requires at least: 6.0
Tested up to: 6.8
Text Domain: voicebook-pipeline-os
*/

:root {
  --bg: #f5f7fa;
  --surface: #ffffff;
  --ink: #111827;
  --muted: #5f6f83;
  --line: #d8e0ea;
  --teal: #0f4c81;
  --blue: #173f68;
  --gold: #a7833d;
  --dark: #0b1422;
  --radius: 8px;
  --shadow: 0 16px 45px rgba(15, 23, 36, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a { color: inherit; text-decoration: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(220, 227, 234, 0.82);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
}

.nav-wrap,
.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, #0b1422, #173f68);
  color: #fff;
  letter-spacing: 0;
}

.brand span:last-child {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #334155;
  font-size: 14px;
  font-weight: 700;
}

.language-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.language-switcher a {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #334155;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 9px;
}

.language-switcher a.active {
  border-color: var(--teal);
  background: #edf4fa;
  color: var(--teal);
}

.hero {
  position: relative;
  min-height: 640px;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
  background: #0b1422;
}

.hero::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(7, 14, 25, 0.96) 0%, rgba(7, 14, 25, 0.86) 38%, rgba(7, 14, 25, 0.34) 68%, rgba(7, 14, 25, 0.08) 100%),
    url("assets/images/voicebook-hero.png");
  background-position: center;
  background-size: cover;
  content: "";
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 42px 0 34px;
}

.eyebrow {
  margin: 0 0 14px;
  color: #b8d4ea;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  max-width: 1040px;
  margin: 0;
  font-size: clamp(36px, 4.1vw, 52px);
  line-height: 1.03;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 760px;
  margin: 20px 0 0;
  color: #d7e2ee;
  font-size: 19px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.18);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  line-height: 1.1;
  padding: 0 18px;
}

.button.primary { background: var(--blue); color: #fff; border-color: var(--blue); }
.button.secondary { background: rgba(255,255,255,0.07); color: #fff; }

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 760px;
  gap: 10px;
  margin-top: 24px;
}

.metric {
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 8px;
  background: rgba(255,255,255,0.07);
  padding: 12px;
}

.metric strong { display: block; font-size: 23px; line-height: 1; }
.metric span { display: block; margin-top: 8px; color: #cbd5e1; font-size: 13px; }

section { padding: 86px 0; }

.section-head {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: 0;
}

.section-head p {
  color: var(--muted);
  font-size: 18px;
}

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

.card {
  min-height: 220px;
  border: 1px solid var(--line);
  border-top: 3px solid #b8c7d8;
  border-radius: var(--radius);
  background: var(--surface);
  padding: 24px;
  box-shadow: 0 1px 2px rgba(15, 23, 36, 0.035);
}

.card h3 {
  margin: 0 0 12px;
  font-size: 21px;
}

.card p { margin: 0; color: var(--muted); }

.process {
  background: #ffffff;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  counter-reset: step;
}

.step {
  counter-increment: step;
  border-left: 4px solid var(--blue);
  background: #f8fafc;
  border-radius: 8px;
  padding: 22px;
}

.step::before {
  display: block;
  color: var(--blue);
  font-weight: 900;
  margin-bottom: 10px;
  content: "0" counter(step);
}

.control-room {
  background: #0b1422;
  color: #fff;
}

.control-room .section-head p { color: #cbd5e1; }

.dashboard-panel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
}

.screen {
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  background: #111d2f;
  padding: 18px;
}

.screen-row {
  display: grid;
  grid-template-columns: 1fr 80px 120px;
  gap: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  color: #dbeafe;
  padding: 12px 0;
}

.screen-row:last-child { border-bottom: 0; }

.status {
  display: inline-flex;
  justify-content: center;
  border-radius: 999px;
  background: rgba(184, 212, 234, 0.16);
  color: #b8d4ea;
  font-size: 12px;
  font-weight: 900;
  padding: 5px 8px;
}

.cta {
  background: #eef3f8;
}

.cta-box {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1fr);
  gap: 34px;
  align-items: start;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 42px;
}

.cta-box h2 {
  margin: 0;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1;
}

.cta-copy p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
}

.contact-form {
  display: grid;
  gap: 14px;
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: #334155;
  font-size: 13px;
  font-weight: 900;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  color: var(--ink);
  font: inherit;
  font-weight: 500;
  padding: 13px 14px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 3px solid rgba(15, 118, 110, 0.18);
  border-color: var(--teal);
  background: #fff;
}

.contact-form textarea {
  min-height: 132px;
  resize: vertical;
}

.contact-form .button {
  justify-content: center;
  width: fit-content;
}

.form-fallback {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.form-fallback a,
.footer a,
.legal-links a {
  color: var(--teal);
  font-weight: 900;
}

.legal-section {
  background: #ffffff;
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.legal-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  padding: 28px;
}

.legal-card h2 {
  margin: 0 0 14px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.05;
}

.legal-card p {
  color: var(--muted);
}

.legal-note {
  border-top: 1px solid var(--line);
  margin: 18px 0 0;
  padding-top: 16px;
  font-size: 14px;
}

.legal-links {
  display: flex;
  gap: 18px;
  margin-top: 18px;
  font-size: 14px;
}

.footer {
  background: #0b1220;
  color: #cbd5e1;
  padding: 34px 0;
}

.footer .container {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

@media (max-width: 900px) {
  .nav-wrap { align-items: flex-start; flex-direction: column; padding: 14px 0; }
  .nav-links { flex-wrap: wrap; }
  .hero { min-height: 610px; }
  .grid,
  .steps,
  .dashboard-panel,
  .cta-box,
  .legal-grid {
    grid-template-columns: 1fr;
  }
  .hero-metrics {
    grid-template-columns: repeat(3, minmax(155px, 1fr));
    max-width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }
  section { padding: 62px 0; }
}

@media (max-width: 560px) {
  .nav-wrap,
  .container,
  .hero-content {
    width: min(100% - 28px, 1180px);
  }
  .nav-wrap { gap: 10px; padding: 10px 0; }
  .nav-links { gap: 12px; font-size: 13px; }
  .hero { min-height: 455px; }
  .hero-content { padding: 26px 0 24px; }
  h1 { font-size: 25px; line-height: 1.07; }
  .hero-copy { margin-top: 14px; font-size: 15px; line-height: 1.45; }
  .actions { gap: 8px; margin-top: 18px; }
  .button { min-height: 42px; font-size: 14px; padding: 0 12px; }
  .button.secondary { display: none; }
  .hero-metrics { display: none; }
  .cta-box { padding: 26px; }
  .footer .container { flex-direction: column; }
}
