/* ==========================================================================
   SalesFlowz — shared stylesheet
   WordPress note: map this file to style.css in the theme, or enqueue it
   from functions.php. Header / footer blocks are marked in each HTML file.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  --navy: #070f18;
  --navy-mid: #0e1a26;
  --navy-soft: #152433;
  --teal: #00d4b8;
  --teal-dark: #00c2a8;
  --teal-soft: rgba(0, 194, 168, 0.16);
  --ink: #e8eef2;
  --muted: #8b9bab;
  --line: rgba(255, 255, 255, 0.08);
  --paper: #0a141d;
  --white: #f4f7f8;
  --surface: #0c1722;
  --danger: #ff6b5b;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --shadow-sm: 0 10px 28px rgba(0, 0, 0, 0.28);
  --header-h: 72px;
  --max: 1120px;
  --font-display: "Outfit", "Segoe UI", sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
}

/* --------------------------------------------------------------------------
   2. Reset
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: #05090e;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: var(--teal-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--teal);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
  color: var(--white);
}

h1 {
  font-size: clamp(2.25rem, 4.4vw, 3.5rem);
  font-weight: 650;
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 620;
}

h3 {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

p {
  margin: 0 0 1rem;
}

p:last-child {
  margin-bottom: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

/* --------------------------------------------------------------------------
   3. Layout helpers
   -------------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: 1rem;
  top: 0;
  z-index: 100;
  background: var(--teal);
  color: var(--navy);
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  font-weight: 600;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0.75rem);
}

.wrap {
  width: min(calc(100% - 2.5rem), var(--max));
  margin-inline: auto;
}

.section {
  padding: 5.5rem 0;
}

.section--tight-top {
  padding-top: 0;
}

.section--paper {
  background: var(--paper);
}

.section--navy {
  background: var(--navy);
  color: #d5dee5;
}

.section--navy h2,
.section--navy h3 {
  color: var(--white);
}

.section-head {
  max-width: 640px;
  margin: 0 auto 3rem;
  text-align: center;
}

.section-head--left {
  margin-left: 0;
  text-align: left;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 0.7rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
}

.lede {
  color: var(--muted);
  font-size: 1.125rem;
}

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 1.25rem;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 46px;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: 0.18s ease;
}

.btn--primary {
  background: var(--teal);
  color: #041014;
}

.btn--primary:hover {
  background: #14edce;
  color: #041014;
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.16);
}

.btn--ghost:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.btn--on-dark {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.22);
}

.btn--on-dark:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* --------------------------------------------------------------------------
   5. Header / nav  (header.php)
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(5, 9, 14, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.site-header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}

.brand img,
.brand svg {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem 1.6rem;
}

.site-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.25rem 1.5rem;
  margin: 0;
  padding: 0;
}

.site-nav li {
  list-style: none;
  margin: 0;
}

.site-nav a {
  color: #c5d0d8;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.94rem;
  font-weight: 500;
}

.site-nav a:hover,
.site-nav a.is-active,
.site-nav .current-menu-item > a,
.site-nav .current_page_item > a {
  color: var(--teal);
}

.nav-cta {
  margin-left: 0.5rem;
}

.nav-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.nav-toggle-label {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--line);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: var(--surface);
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  position: relative;
}

.nav-toggle-label span::before,
.nav-toggle-label span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-label span::before {
  top: -6px;
}

.nav-toggle-label span::after {
  top: 6px;
}

/* --------------------------------------------------------------------------
   6. Footer  (footer.php)
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--navy);
  color: #b7c4ce;
  padding: 3.5rem 0 1.75rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem 1.5rem;
}

.site-footer .brand {
  color: var(--white);
  margin-bottom: 0.85rem;
}

.site-footer p {
  color: #9aabb7;
  font-size: 0.98rem;
}

.site-footer h4 {
  color: var(--white);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}

.footer-links {
  list-style: none;
}

.footer-links li + li {
  margin-top: 0.45rem;
}

.footer-links a {
  color: #b7c4ce;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--teal);
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.88rem;
  color: #7f909c;
}

/* --------------------------------------------------------------------------
   7. Cards
   -------------------------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.card h3 {
  margin-bottom: 0.45rem;
}

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

.icon-mark {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--teal-soft);
  color: var(--teal-dark);
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  font-family: var(--font-display);
  font-weight: 700;
}

.stat {
  padding: 1.25rem 0;
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.85rem;
  letter-spacing: -0.03em;
  color: var(--white);
}

.stat span {
  color: var(--muted);
  font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   8. Hero
   -------------------------------------------------------------------------- */
.hero {
  padding: 4.75rem 0 3.5rem;
  background:
    radial-gradient(circle at 88% 8%, rgba(0, 212, 184, 0.22), transparent 34%),
    radial-gradient(circle at 0% 80%, rgba(0, 80, 70, 0.18), transparent 40%),
    linear-gradient(180deg, #071018 0%, #05090e 70%);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3.5rem;
  align-items: center;
}

.hero p {
  color: var(--muted);
  font-size: 1.15rem;
  max-width: 34rem;
}

.trust-row {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.4rem;
  color: #7a8a94;
  font-size: 0.88rem;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pipeline {
  background: #07131c;
  border: 1px solid rgba(0, 212, 184, 0.22);
  border-radius: 20px;
  padding: 1.25rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 212, 184, 0.08);
  color: #d5dee5;
}

.pipeline__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-family: var(--font-display);
  font-size: 0.86rem;
  color: #9eb0bc;
}

.pipeline__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  display: inline-block;
  margin-right: 0.4rem;
}

.stage-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
}

.stage {
  background: var(--navy-mid);
  border-radius: 12px;
  padding: 0.75rem;
  min-height: 210px;
}

.stage header {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #8ea0ac;
  margin-bottom: 0.7rem;
  font-family: var(--font-display);
}

.deal {
  background: var(--navy-soft);
  border-radius: 9px;
  padding: 0.65rem 0.7rem;
  margin-bottom: 0.5rem;
}

.deal strong {
  display: block;
  color: var(--white);
  font-size: 0.82rem;
  font-family: var(--font-display);
  font-weight: 560;
}

.deal span {
  font-size: 0.75rem;
  color: #93a5b1;
}

.deal--live {
  outline: 1px solid rgba(0, 194, 168, 0.45);
}

/* --------------------------------------------------------------------------
   9. Page hero (inner pages)
   -------------------------------------------------------------------------- */
.page-hero {
  padding: 4rem 0 2.5rem;
  background:
    radial-gradient(circle at 100% 0%, rgba(0, 194, 168, 0.12), transparent 32%),
    var(--paper);
  border-bottom: 1px solid var(--line);
}

.page-hero p {
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.15rem;
}

/* --------------------------------------------------------------------------
   10. How it works
   -------------------------------------------------------------------------- */
.steps {
  display: grid;
  gap: 0;
}

.step {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 1.25rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}

.step:last-child {
  border-bottom: 1px solid var(--line);
}

.step__num {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: -0.04em;
}

.step p {
  color: var(--muted);
  max-width: 46rem;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.timeline article {
  position: relative;
}

.timeline article::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 36px;
  right: -18px;
  height: 1px;
  background: var(--line);
}

.timeline article:last-child::before {
  display: none;
}

/* --------------------------------------------------------------------------
   11. Features
   -------------------------------------------------------------------------- */
.feature-list {
  display: grid;
  gap: 1.5rem;
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  padding: 2rem 0;
}

.feature-row:nth-child(even) {
  direction: rtl;
}

.feature-row:nth-child(even) > * {
  direction: ltr;
}

.feature-copy ul {
  margin: 1rem 0 0 1.1rem;
  color: var(--muted);
}

.feature-copy li + li {
  margin-top: 0.35rem;
}

.panel {
  background: var(--navy);
  color: #c9d5dd;
  border-radius: 18px;
  padding: 1.4rem;
  min-height: 230px;
}

.panel h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.bar {
  height: 8px;
  background: var(--navy-soft);
  border-radius: 99px;
  overflow: hidden;
  margin: 0.45rem 0 0.9rem;
}

.bar > span {
  display: block;
  height: 100%;
  background: var(--teal);
  border-radius: inherit;
}

.bar > .w-42 { width: 42%; }
.bar > .w-55 { width: 55%; }
.bar > .w-62 { width: 62%; }
.bar > .w-64 { width: 64%; }
.bar > .w-70 { width: 70%; }
.bar > .w-78 { width: 78%; }
.bar > .w-84 { width: 84%; }
.bar > .w-88 { width: 88%; }

.metric-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
}

/* --------------------------------------------------------------------------
   12. About
   -------------------------------------------------------------------------- */
.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}

.person {
  text-align: left;
}

.avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--teal-soft);
  color: var(--teal);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 0.9rem;
}

.person .role {
  color: var(--teal-dark);
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
}

/* --------------------------------------------------------------------------
   13. Contact
   -------------------------------------------------------------------------- */
.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-aside p {
  color: var(--muted);
}

.contact-meta {
  list-style: none;
  margin-top: 1.5rem;
}

.contact-meta li {
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
}

.contact-meta strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.92rem;
}

.contact-form,
.form-success {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.field {
  margin-bottom: 0.9rem;
}

.field label {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 560;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
  background: #071018;
  color: var(--white);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid rgba(0, 194, 168, 0.35);
  border-color: var(--teal);
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.check {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.92rem;
  color: var(--muted);
  margin: 0.4rem 0 1.1rem;
}

.form-success {
  color: var(--white);
}

.form-success[hidden],
.contact-form[hidden] {
  display: none;
}

/* --------------------------------------------------------------------------
   14. Quote / CTA
   -------------------------------------------------------------------------- */
.quote {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.quote blockquote {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.4vw, 1.75rem);
  line-height: 1.35;
  letter-spacing: -0.03em;
  color: var(--white);
}

.quote cite {
  font-style: normal;
  color: var(--muted);
  font-size: 0.95rem;
}

.cta-band {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.cta-band p {
  color: #b7c4ce;
  max-width: 34rem;
}

/* --------------------------------------------------------------------------
   15. Logo strip
   -------------------------------------------------------------------------- */
.logo-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  padding: 1.25rem 0 0;
  color: #8a99a3;
  font-family: var(--font-display);
  font-weight: 650;
  letter-spacing: 0.04em;
}

/* --------------------------------------------------------------------------
   16. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .grid-2,
  .grid-3,
  .grid-4,
  .hero__grid,
  .feature-row,
  .feature-row:nth-child(even),
  .timeline,
  .values,
  .contact-layout,
  .footer-grid,
  .cta-band,
  .form-row {
    grid-template-columns: 1fr;
    direction: ltr;
    display: grid;
  }

  .cta-band,
  .footer-bottom {
    display: grid;
  }

  .nav-toggle-label {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1.25rem 1.1rem;
    background: #071018;
    border-bottom: 1px solid var(--line);
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .site-nav a,
  .nav-cta {
    margin: 0;
    padding: 0.7rem 0;
  }

  .nav-toggle:checked ~ .site-nav {
    display: flex;
  }

  .stage-col {
    grid-template-columns: 1fr;
  }

  .stage {
    min-height: 0;
  }

  .timeline article::before {
    display: none;
  }

  .step {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }

  .section {
    padding: 3.75rem 0;
  }

  .hero,
  .page-hero {
    padding-top: 2.75rem;
  }
}

@media (max-width: 600px) {
  .wrap {
    width: min(calc(100% - 1.5rem), var(--max));
  }

  .btn {
    width: 100%;
  }

  .btn-row .btn {
    flex: 1 1 auto;
  }
}
