/* ==========================================================================
   Turbo7x — styles.css
   Mobile-first. Written by hand, no framework.
   Palette: near-black base, single warm accent ramp (ember -> amber).
   ========================================================================== */

:root {
  /* Surfaces — taken from the brand mark's black plate */
  --bg:          #0a0a0b;
  --bg-alt:      #0f0f11;
  --surface:     #16161a;
  --surface-2:   #1c1c1e;
  --line:        rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);

  /* Text */
  --text:        #f4f5f4;
  --text-muted:  #9aa0a0;
  --text-dim:    #6b7280;

  /* Accent — brand green */
  --accent:      #3af07a;
  --accent-2:    #0fb84e;
  --accent-soft: rgba(58, 240, 122, 0.13);
  --grad:        linear-gradient(135deg, #3af07a 0%, #0fb84e 100%);

  /* Type */
  --font-display: "Space Grotesk", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;

  /* Rhythm */
  --wrap:      1160px;
  --gutter:    20px;
  --radius:    16px;
  --radius-sm: 10px;
  --section-y: 72px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.14; letter-spacing: -0.022em; margin: 0; }
p { margin: 0 0 1rem; }
ul { list-style: none; margin: 0; padding: 0; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--accent);
  color: #05140a;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  padding: 15px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
              background-color 0.25s var(--ease), border-color 0.25s var(--ease),
              color 0.25s var(--ease);
}
.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--grad);
  color: #04120a;
  box-shadow: 0 8px 26px -10px rgba(15, 184, 78, 0.8);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px -10px rgba(58, 240, 122, 0.85);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn-sm { padding: 10px 18px; font-size: 0.875rem; }
.btn-block { width: 100%; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 11, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(10, 10, 11, 0.94);
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}
.logo:hover { text-decoration: none; }
.logo-mark {
  width: 34px;
  height: 34px;
  flex: none;
  transition: transform 0.3s var(--ease);
}
.logo:hover .logo-mark { transform: translateX(2px); }
.logo-mark-sm { width: 28px; height: 28px; }
.logo-accent {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav {
  position: fixed;
  inset: 68px 0 auto 0;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.9);
  max-height: 0;
  overflow: hidden;
  visibility: hidden;
  transition: max-height 0.35s var(--ease), visibility 0.35s;
}
.nav.is-open {
  max-height: calc(100vh - 68px);
  visibility: visible;
  overflow-y: auto;
}
.nav-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px var(--gutter) 24px;
}
.nav-list a:not(.btn) {
  display: block;
  padding: 13px 4px;
  color: var(--text-muted);
  font-weight: 500;
  border-bottom: 1px solid var(--line);
  transition: color 0.2s var(--ease);
}
.nav-list a:not(.btn):hover,
.nav-list a.is-active:not(.btn) { color: var(--text); text-decoration: none; }
.nav-cta-item { margin-top: 14px; }
.nav-cta-item .btn { width: 100%; }

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); }
.section-alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--line);
}

.section-kicker {
  display: inline-block;
  margin: 0 0 14px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-title {
  font-size: clamp(1.85rem, 6vw, 2.9rem);
  font-weight: 700;
  margin-bottom: 18px;
}

.section-intro {
  color: var(--text-muted);
  max-width: 62ch;
  margin-bottom: 42px;
  font-size: 1.02rem;
}

.lead { font-size: 1.06rem; color: var(--text-muted); }
.section p:not(.section-kicker):not(.lead):not(.stat-label) { color: var(--text-muted); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: 76px 68px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-glow {
  position: absolute;
  top: -220px;
  left: 50%;
  width: 760px;
  height: 620px;
  margin-left: -380px;
  pointer-events: none;
  background:
    radial-gradient(closest-side, rgba(15, 184, 78, 0.30), transparent 72%),
    radial-gradient(closest-side, rgba(58, 240, 122, 0.14), transparent 70%);
  filter: blur(28px);
}
.hero-inner { position: relative; }

.eyebrow {
  display: inline-block;
  margin: 0 0 20px;
  padding: 7px 15px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.hero-title {
  font-size: clamp(2.2rem, 9vw, 4.1rem);
  font-weight: 700;
  max-width: 17ch;
  margin-bottom: 22px;
}
.hero-brand {
  display: block;
  font-size: 0.42em;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 12px;
}
.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-tagline {
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 56ch;
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.btn-arrow {
  width: 15px;
  height: 15px;
  flex: none;
  transition: transform 0.25s var(--ease);
}
.btn:hover .btn-arrow { transform: translateX(3px); }

.hero-note {
  margin: 0 0 34px;
  font-size: 0.88rem;
  color: var(--text-dim);
}
.hero-note strong { color: var(--text-muted); font-weight: 600; }

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  font-size: 0.88rem;
  color: var(--text-dim);
}
.hero-trust li {
  position: relative;
  padding-left: 20px;
}
.hero-trust li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--grad);
}

/* ---------- About ---------- */
.about-grid { display: grid; gap: 46px; }
.about-copy p:last-child { margin-bottom: 0; }

.stats { display: grid; gap: 14px; }
.stat {
  padding: 22px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.stat:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-label {
  display: block;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ---------- Service cards ---------- */
.cards { display: grid; gap: 18px; }
.card {
  position: relative;
  padding: 28px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.card:hover {
  transform: translateY(-5px);
  border-color: var(--line-strong);
  background: var(--surface-2);
}
.card:hover::before { transform: scaleX(1); }

.card-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: var(--accent-soft);
  border: 1px solid rgba(58, 240, 122, 0.26);
  color: var(--accent);
}
.card-icon svg { width: 23px; height: 23px; }
.card h3 { font-size: 1.14rem; font-weight: 600; margin-bottom: 10px; }
.card p { margin: 0; font-size: 0.945rem; }

/* Single feature card — Services is one statement, not a grid */
.cards.cards-single { grid-template-columns: 1fr; max-width: 720px; }
.card-feature { padding: 32px 26px; }
.card-feature .card-icon { width: 54px; height: 54px; border-radius: 14px; margin-bottom: 22px; }
.card-feature .card-icon svg { width: 27px; height: 27px; }
.card-feature h3 { font-size: clamp(1.35rem, 5vw, 1.75rem); margin-bottom: 14px; }
.card-feature p { font-size: 1.02rem; }
.card-feature p strong { color: var(--text); font-weight: 600; }

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
}
.card-link:hover { text-decoration: none; }
.card-link svg { width: 14px; height: 14px; flex: none; transition: transform 0.25s var(--ease); }
.card-link:hover svg { transform: translate(2px, -2px); }

/* ---------- Testimonials ---------- */
.quotes { display: grid; gap: 18px; }
.quote {
  position: relative;
  padding: 28px 24px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.quote:hover { transform: translateY(-4px); }
.quote-empty {
  background: transparent;
  border-style: dashed;
  border-color: var(--line-strong);
}
.quote-mark {
  display: block;
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 0.6;
  margin-bottom: 14px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.55;
}
.quote-text {
  font-size: 1.02rem;
  color: var(--text-muted) !important;
  margin-bottom: 14px;
}
.quote-empty .quote-text { color: var(--text-dim) !important; font-style: italic; }
.quote-meta {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim) !important;
}

/* ---------- Contact ---------- */
.contact-line {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 5vw, 2.3rem);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: var(--text) !important;
  margin: 0;
  max-width: 24ch;
}
.contact-line a {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  word-break: break-word;
  border-bottom: 2px solid rgba(58, 240, 122, 0.32);
  transition: border-color 0.25s var(--ease);
}
.contact-line a:hover {
  text-decoration: none;
  border-bottom-color: var(--accent);
}

/* ---------- Work ---------- */
.work-list { display: grid; gap: 18px; }

.work-link {
  display: block;
  height: 100%;
  padding: 28px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: inherit;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease),
              background-color 0.3s var(--ease);
}
.work-link:hover {
  text-decoration: none;
  transform: translateY(-5px);
  border-color: rgba(58, 240, 122, 0.42);
  background: var(--surface-2);
}

.work-domain {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent);
}
.work-domain svg { width: 14px; height: 14px; flex: none; transition: transform 0.25s var(--ease); }
.work-link:hover .work-domain svg { transform: translate(2px, -2px); }

.work-item h3 { font-size: 1.3rem; font-weight: 600; margin-bottom: 10px; color: var(--text); }
.work-item p { margin: 0; font-size: 0.95rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  padding-block: 46px 26px;
}
.footer-inner {
  display: grid;
  gap: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}
.footer-tag {
  margin: 14px 0 0;
  font-size: 0.92rem;
  color: var(--text-muted);
  max-width: 38ch;
}
.footer-nav ul { display: grid; gap: 10px; }
.footer-nav a { color: var(--text-muted); font-size: 0.93rem; transition: color 0.2s var(--ease); }
.footer-nav a:hover { color: var(--accent); }
.footer-contact a { font-size: 0.95rem; font-weight: 500; }

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 22px;
}
.footer-bottom p { margin: 0; font-size: 0.83rem; color: var(--text-dim); }

/* ---------- Scroll-in reveal ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
  will-change: opacity, transform;
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}
/* stagger children within a grid */
.js .cards .reveal:nth-child(2),
.js .quotes .reveal:nth-child(2) { transition-delay: 0.08s; }
.js .cards .reveal:nth-child(3),
.js .quotes .reveal:nth-child(3) { transition-delay: 0.16s; }

/* ==========================================================================
   Breakpoints
   ========================================================================== */

@media (min-width: 600px) {
  :root { --gutter: 28px; --section-y: 88px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .cards { grid-template-columns: 1fr 1fr; }
  .quotes { grid-template-columns: 1fr 1fr; }
  .work-list { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}

@media (min-width: 860px) {
  :root { --section-y: 108px; }
  html { scroll-padding-top: 96px; }

  .nav-toggle { display: none; }

  .nav {
    position: static;
    max-height: none;
    visibility: visible;
    overflow: visible;
    background: transparent;
    box-shadow: none;
    border: 0;
  }
  .nav-list {
    flex-direction: row;
    align-items: center;
    gap: 6px;
    padding: 0;
  }
  .nav-list a:not(.btn) {
    padding: 9px 13px;
    border: 0;
    border-radius: 999px;
    font-size: 0.93rem;
  }
  .nav-list a:not(.btn):hover { background: var(--surface); }
  .nav-list a.is-active:not(.btn) { color: var(--accent); background: var(--surface); }
  .nav-cta-item { margin: 0 0 0 8px; }
  .nav-cta-item .btn { width: auto; }
  .header-inner { min-height: 76px; }

  .hero { padding-block: 118px 100px; }
  .hero-title { max-width: 15ch; }

  .about-grid { grid-template-columns: 1.15fr 0.85fr; gap: 60px; align-items: start; }
  .cards { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .quotes { grid-template-columns: repeat(3, 1fr); }
  /* Two published quotes shouldn't leave a hole in a three-up grid */
  .quotes.quotes-two { grid-template-columns: repeat(2, 1fr); max-width: 860px; }
  .work-list { grid-template-columns: 1fr 1fr; gap: 20px; }

  .footer-inner { grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
  .footer-nav ul { gap: 12px; }
}

@media (min-width: 1024px) {
  .card { padding: 32px 28px; }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .nav-toggle, .hero-glow { display: none !important; }
  body { background: #fff; color: #000; }
}
