/*
Theme Name: SaaSyLift
Theme URI: https://saasylift.com
Author: SaaSyLift
Description: Custom theme for SaaSyLift, a digital growth partner for SaaS, e-commerce and B2B companies. First build pass: header, hero, services, final CTA, footer.
Version: 0.1.0
Text Domain: saasylift
*/

/* ------------------------------------------------------------------ */
/* Tokens                                                              */
/* ------------------------------------------------------------------ */
:root {
  --paper: #F3F1EA;
  --paper-raised: #EDEAE0;
  --ink: #1A1B1E;
  --ink-soft: #4A4A46;
  --accent: #C2761A;
  --accent-deep: #8A5411;
  --stone: #8B8A82;
  --line: #DEDACD;
  --line-on-dark: #3A3B36;
  --on-dark: #F3F1EA;
  --on-dark-soft: #B8B6AC;

  --font-display: 'Space Grotesk', -apple-system, sans-serif;
  --font-body: 'IBM Plex Sans', -apple-system, sans-serif;

  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.01em;
  line-height: 1.08;
}

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

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

button { font-family: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ------------------------------------------------------------------ */
/* Buttons                                                             */
/* ------------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 3px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}
.btn-primary {
  background: var(--ink);
  color: var(--paper);
}
.btn-primary:hover { background: var(--accent-deep); }
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-secondary:hover { border-color: var(--ink); }
.btn-on-dark {
  background: var(--accent);
  color: var(--ink);
}
.btn-on-dark:hover { background: #D98A28; }
.btn-secondary-on-dark {
  background: transparent;
  color: var(--on-dark);
  border-color: var(--line-on-dark);
}
.btn-secondary-on-dark:hover { border-color: var(--on-dark); }

/* ------------------------------------------------------------------ */
/* Header                                                               */
/* ------------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(243, 241, 234, 0.92);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.site-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}
.site-logo span { color: var(--accent); }

.primary-nav { display: flex; align-items: center; gap: 2.25rem; }
.primary-nav ul {
  list-style: none;
  display: flex;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
}
.primary-nav a {
  font-size: 0.95rem;
  color: var(--ink-soft);
  transition: color 140ms ease;
}
.primary-nav a:hover { color: var(--ink); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  width: 22px; height: 2px; background: var(--ink); display: block;
  transition: transform 160ms ease, opacity 160ms ease;
}
.header-cta { display: flex; align-items: center; gap: 1.5rem; }

@media (max-width: 860px) {
  .primary-nav ul { display: none; }
  .nav-toggle { display: flex; }
  .header-cta .btn-primary { padding: 0.6rem 1rem; font-size: 0.85rem; }
  body.nav-open .primary-nav ul {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 72px 0 0 0;
    background: var(--paper);
    padding: 2rem var(--gutter);
    gap: 1.5rem;
    z-index: 49;
  }
  body.nav-open .primary-nav a { font-size: 1.15rem; }
}

/* ------------------------------------------------------------------ */
/* Hero                                                                 */
/* ------------------------------------------------------------------ */
.hero {
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(2.5rem, 6vw, 4rem);
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero-intro {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin: 0 0 1.25rem;
  max-width: 32ch;
}
.hero h1 {
  font-size: clamp(2.4rem, 4.6vw, 3.9rem);
  font-weight: 600;
}
.hero-sub {
  margin: 1.5rem 0 2.25rem;
  color: var(--ink-soft);
  font-size: 1.1rem;
  max-width: 46ch;
}
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-visual svg { width: 100%; height: auto; }
.hero-reveal > * {
  opacity: 0;
  transform: translateY(14px);
}
body.js-ready .hero-reveal > * {
  animation: rise 640ms cubic-bezier(.2,.7,.3,1) forwards;
}
body.js-ready .hero-reveal > *:nth-child(1) { animation-delay: 40ms; }
body.js-ready .hero-reveal > *:nth-child(2) { animation-delay: 140ms; }
body.js-ready .hero-reveal > *:nth-child(3) { animation-delay: 240ms; }
body.js-ready .hero-reveal > *:nth-child(4) { animation-delay: 340ms; }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  .hero-reveal > * { opacity: 1; transform: none; animation: none !important; }
}

.chart-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 480;
  stroke-dashoffset: 480;
}
body.js-ready .chart-line { animation: draw 1400ms 500ms ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .chart-line { stroke-dashoffset: 0; animation: none; }
}

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 320px; margin: 0 auto; }
}

/* ------------------------------------------------------------------ */
/* Services                                                             */
/* ------------------------------------------------------------------ */
.services { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.services-head {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
  align-items: end;
}
.services-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-weight: 600; }
.services-head p { color: var(--ink-soft); margin: 0; max-width: 46ch; }

.service-list {
  border-top: 1px solid var(--line);
}
.service-row {
  display: grid;
  grid-template-columns: 90px 1fr 1.4fr;
  gap: 2rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line);
  transition: background-color 160ms ease;
}
.service-row:hover { background: var(--paper-raised); }
.service-index {
  font-variant-numeric: tabular-nums;
  color: var(--stone);
  font-size: 0.95rem;
  padding-top: 0.2rem;
}
.service-name { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; }
.service-body p { margin: 0.15rem 0 0.85rem; color: var(--ink-soft); max-width: 52ch; }
.service-caps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  list-style: none;
  margin: 0 0 0.9rem;
  padding: 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
}
.service-caps li::before { content: "·"; margin-right: 0.5rem; color: var(--accent); }
.service-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-deep);
  border-bottom: 1px solid transparent;
  transition: border-color 140ms ease;
}
.service-link:hover { border-color: var(--accent-deep); }

@media (max-width: 860px) {
  .services-head { grid-template-columns: 1fr; }
  .service-row { grid-template-columns: 1fr; gap: 0.5rem; padding: 1.5rem 0; }
  .service-index { padding-top: 0; }
}

/* ------------------------------------------------------------------ */
/* Final CTA                                                            */
/* ------------------------------------------------------------------ */
.final-cta {
  background: var(--ink);
  color: var(--on-dark);
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}
.final-cta .wrap {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
.final-cta h2 {
  color: var(--on-dark);
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  font-weight: 600;
}
.final-cta p {
  color: var(--on-dark-soft);
  font-size: 1.05rem;
  max-width: 48ch;
  margin: 1.1rem 0 2rem;
}
.final-cta-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }
@media (max-width: 860px) {
  .final-cta .wrap { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------------ */
/* Footer (minimal placeholder for this pass)                          */
/* ------------------------------------------------------------------ */
.site-footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--line);
  color: var(--stone);
  font-size: 0.88rem;
}
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
