/* ============================================================
   service.css — shared stylesheet for the Crewsive service pages
   (ai-automation, custom-software, web-design, seo-services,
   paid-advertising, marketing-funnels).

   Self-contained + light by design. These are SEO/AEO landing
   pages: the content lives in static HTML, so crawlers (Google,
   GPTBot, PerplexityBot, ClaudeBot) read it with zero JS. The
   visual system mirrors the live React site — same OKLCH ink-blue
   palette, Instrument Serif / Inter Tight pairing, engineering-
   paper dot grid, atmosphere light-pool + grain — but none of the
   heavy canvas/shader/scrolljack machinery, to keep Core Web
   Vitals fast (a ranking input).
   ============================================================ */

:root {
  --bg:        oklch(0.145 0.012 245);
  --bg-2:      oklch(0.180 0.014 245);
  --bg-3:      oklch(0.225 0.016 245);
  --ink:       oklch(0.97 0.008 245);
  --ink-2:     oklch(0.84 0.010 245);
  --ink-3:     oklch(0.62 0.012 245);
  --ink-4:     oklch(0.42 0.012 245);
  --rule:      oklch(1 0 0 / 0.10);
  --rule-2:    oklch(1 0 0 / 0.05);
  --accent:    oklch(0.70 0.090 245);
  --accent-2:  oklch(0.78 0.075 240);
  --accent-soft: oklch(0.70 0.090 245 / 0.14);
  --good:      oklch(0.78 0.13 160);

  --serif: "Instrument Serif", "EB Garamond", Georgia, serif;
  --sans:  "Inter Tight", "Inter", ui-sans-serif, system-ui, sans-serif;
  --mono:  "Helvetica Neue", Helvetica, Arial, sans-serif;

  --max:    1140px;
  --gutter: clamp(20px, 5vw, 56px);
  /* Square design language — every box, card, input, and button has
     hard corners. No rounding anywhere. */
  --radius: 0px;
  --radius-lg: 0px;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
/* No CSS smooth-scroll — Lenis (loaded per page) owns scroll momentum,
   and the two fighting causes janky anchor jumps. */
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.68;
  font-size: clamp(17px, 1.25vw, 20px);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ---- Atmosphere FX (static, GPU-cheap) — light-pool + vignette
        + film grain, ported from the live site so the near-black
        reads as a dimly-lit room, not a flat void. ---- */
.fx-atmosphere,
.fx-grain { position: fixed; inset: 0; pointer-events: none; }
.fx-atmosphere {
  z-index: 0;
  background:
    radial-gradient(120% 80% at 50% -12%,
      color-mix(in oklch, var(--accent) 12%, transparent), transparent 55%),
    radial-gradient(145% 125% at 50% 48%,
      transparent 62%, rgba(0, 0, 0, 0.30) 100%);
}
.fx-grain {
  z-index: 0; opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

/* Everything above the FX layers. */
.nav, main, .foot { position: relative; z-index: 1; }

a { color: var(--accent-2); text-decoration: none; text-underline-offset: 3px; transition: color .2s ease; }
a:hover { color: var(--ink); }
strong { color: var(--ink); font-weight: 500; }
.serif { font-family: var(--serif); font-weight: 400; }
em { font-family: var(--serif); font-style: italic; color: var(--ink); }

/* ============================================================
   Nav — wordmark + single primary CTA. Mirrors the live header.
   ============================================================ */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--max); margin: 0 auto;
  padding: clamp(18px, 3vw, 26px) var(--gutter);
}
.brand { display: inline-flex; line-height: 0; color: var(--ink); }
.brand svg { height: 30px; width: auto; }
.nav__right { display: flex; align-items: center; gap: 18px; }
.cta {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-weight: 500; font-size: 12px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink);
  padding: 12px 20px; border: 1px solid var(--rule); border-radius: 0;
  background: oklch(1 0 0 / 0.02); transition: all .25s var(--ease-out-expo);
}
.cta:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); }
.cta span { transition: transform .25s var(--ease-out-expo); }
.cta:hover span { transform: translate(2px, -2px); }

/* ============================================================
   Layout helpers
   ============================================================ */
main { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) 40px; }
.wrap { max-width: 760px; }

.crumbs {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-4);
  margin: clamp(8px, 2vh, 20px) 0 clamp(28px, 5vh, 52px);
}
.crumbs a { color: var(--ink-3); }
.crumbs a:hover { color: var(--ink); }
.crumbs span[aria-current] { color: var(--ink-2); }

.eyebrow {
  font-family: var(--mono); font-size: 13px; font-weight: 600; letter-spacing: 0.26em;
  text-transform: uppercase; color: var(--accent-2); margin: 0 0 22px;
  display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow::before {
  content: ""; width: 12px; height: 12px; background: var(--accent);
}

/* ============================================================
   Hero
   ============================================================ */
.hero { padding: clamp(8px, 3vh, 28px) 0 clamp(40px, 7vh, 80px); }
.hero h1 {
  font-family: var(--serif); font-weight: 400; color: var(--ink);
  font-size: clamp(46px, 8.4vw, 96px); line-height: 0.94;
  letter-spacing: -0.022em; margin: 0 0 26px; max-width: 15ch;
}
.hero h1 em { font-size: 1.04em; }
.hero .lede {
  font-size: clamp(20px, 1.7vw, 25px); line-height: 1.5;
  color: var(--ink-2); max-width: 56ch; margin: 0 0 30px;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--sans); font-weight: 500; font-size: 15px;
  padding: 14px 26px; border-radius: 999px; cursor: pointer;
  transition: all .25s var(--ease-out-expo); border: 1px solid transparent;
}
.btn { border-radius: 0; text-transform: uppercase; letter-spacing: 0.08em; font-size: 13px; font-family: var(--mono); }
.btn--primary { background: var(--ink); color: var(--bg); }
.btn--primary:hover { background: var(--accent-2); color: var(--bg); transform: translateY(-1px); }
.btn--ghost { border-color: var(--rule); color: var(--ink-2); }
.btn--ghost:hover { border-color: var(--accent); color: var(--ink); }
.btn span { transition: transform .25s var(--ease-out-expo); }
.btn:hover span { transform: translateX(3px); }

/* ============================================================
   Content bands
   ============================================================ */
.band { padding: clamp(32px, 6vh, 68px) 0; border-top: 1px solid var(--rule-2); }
.band:first-of-type { border-top: none; }
.band h2 {
  font-family: var(--serif); font-weight: 400; color: var(--ink);
  font-size: clamp(32px, 4.6vw, 56px); line-height: 1.02;
  letter-spacing: -0.014em; margin: 0 0 20px; max-width: 22ch;
}
.band h3 {
  font-family: var(--sans); font-weight: 500; color: var(--ink);
  font-size: clamp(20px, 1.7vw, 24px); margin: 28px 0 8px;
}
.band p { margin: 0 0 18px; max-width: 64ch; }
.band p.big { font-size: clamp(20px, 1.6vw, 24px); color: var(--ink-2); line-height: 1.5; }
.lead-in { color: var(--ink-3); }

/* Deliverables / checklists */
.ticks { list-style: none; margin: 22px 0 0; padding: 0; max-width: 64ch; }
.ticks li {
  position: relative; padding: 0 0 0 32px; margin: 0 0 14px;
  color: var(--ink-2);
}
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 16px; height: 9px; border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent); transform: rotate(-45deg);
}
.ticks li strong { display: block; color: var(--ink); font-weight: 500; margin-bottom: 2px; }

/* Card grid (process steps, who-it's-for, etc.) */
.cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px; margin: 26px 0 0;
}
.card {
  border: 1px solid var(--rule); border-radius: var(--radius);
  background: oklch(1 0 0 / 0.015); padding: 22px 22px 24px;
}
.card .num {
  font-family: var(--serif); font-size: 40px; line-height: 0.9; font-style: italic;
  color: var(--accent-2); display: block; margin-bottom: 14px;
}
.card h3 { margin: 0 0 8px; font-size: 19px; }
.card p { margin: 0; font-size: 16px; color: var(--ink-3); max-width: none; line-height: 1.6; }

/* Pull-stat strip */
.stats { display: flex; flex-wrap: wrap; gap: clamp(20px, 5vw, 56px); margin: 28px 0 0; }
.stat { min-width: 120px; }
.stat b { display: block; font-family: var(--serif); font-size: clamp(32px, 4vw, 48px); color: var(--ink); line-height: 1; }
.stat span { display: block; margin-top: 8px; font-size: 14px; color: var(--ink-3); max-width: 26ch; }

/* ============================================================
   FAQ — also the FAQPage schema source. Plain, scannable Q/A.
   ============================================================ */
.faq { padding: clamp(32px, 6vh, 68px) 0; border-top: 1px solid var(--rule-2); }
.faq > h2 {
  font-family: var(--serif); font-weight: 400; color: var(--ink);
  font-size: clamp(28px, 3.6vw, 42px); margin: 0 0 28px;
}
/* Lead-in line under the FAQ heading that points to the page's full
   standalone FAQ (deeper AEO content). */
.faq__more { margin: -8px 0 26px; font-size: 0.95em; color: var(--ink-3); }
.faq__more a { color: var(--accent-2); font-weight: 500; }
.faq__more a:hover { color: var(--ink); }
.faq__item { border-top: 1px solid var(--rule-2); padding: 22px 0; }
.faq__item:last-child { border-bottom: 1px solid var(--rule-2); }
.faq__item h3 {
  font-family: var(--sans); font-weight: 500; color: var(--ink);
  font-size: clamp(19px, 1.6vw, 22px); margin: 0 0 10px;
}
.faq__item p { margin: 0; max-width: 70ch; }

/* ============================================================
   Conversion band + lead form (Formspree, no backend)
   ============================================================ */
.cta-band {
  margin: clamp(36px, 7vh, 76px) 0 0;
  padding: clamp(36px, 6vw, 64px) clamp(24px, 5vw, 56px);
  border: 1px solid var(--rule); border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 120% at 0% 0%, var(--accent-soft), transparent 60%),
    var(--bg-2);
  text-align: center;
}
.cta-band h2 {
  font-family: var(--serif); font-weight: 400; color: var(--ink);
  font-size: clamp(30px, 4.4vw, 52px); line-height: 1.05; margin: 0 0 12px;
}
.cta-band p.sub { color: var(--ink-2); max-width: 52ch; margin: 0 auto 28px; }
.lead-form {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
  max-width: 520px; margin: 0 auto;
}
.lead-form input[type="email"] {
  flex: 1 1 240px; min-width: 0;
  font-family: var(--sans); font-size: 15px; color: var(--ink);
  padding: 15px 18px; border: 1px solid var(--rule); border-radius: 0;
  background: oklch(1 0 0 / 0.03); transition: border-color .2s ease;
}
.lead-form input::placeholder { color: var(--ink-4); }
.lead-form input:focus { outline: none; border-color: var(--accent); }
.lead-form button {
  flex: 0 0 auto; font-family: var(--mono); font-weight: 500; font-size: 13px;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 15px 26px; border: none; border-radius: 0; cursor: pointer;
  background: var(--ink); color: var(--bg); transition: all .2s var(--ease-out-expo);
}
.lead-form button:hover:not(:disabled) { background: var(--accent-2); transform: translateY(-1px); }
.lead-form button:disabled { opacity: .6; cursor: default; }
.form-msg { margin: 16px 0 0; font-size: 14px; min-height: 1em; }
.form-msg.ok { color: var(--good); }
.form-msg.err { color: oklch(0.72 0.17 25); }
.mailto-alt { margin: 18px 0 0; font-size: 14px; color: var(--ink-3); }
.fineprint { margin: 22px 0 0; font-size: 12.5px; color: var(--ink-4); }
.fineprint a { color: var(--ink-3); }

/* ============================================================
   "More of what I build" cross-link mesh (internal linking)
   ============================================================ */
.more { padding: clamp(36px, 6vh, 64px) 0 clamp(8px, 2vh, 16px); }
.more h2 {
  font-family: var(--mono); font-weight: 400; font-size: 13px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3);
  margin: 0 0 22px;
}
.svc-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; list-style: none; margin: 0; padding: 0; }
.svc-links a {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 18px 20px; color: var(--ink); background: oklch(1 0 0 / 0.012);
  transition: all .25s var(--ease-out-expo);
}
.svc-links a:hover { border-color: var(--accent); background: var(--accent-soft); transform: translateY(-2px); }
.svc-links .svc-name { font-family: var(--serif); font-size: 19px; }
.svc-links .svc-arrow { color: var(--accent-2); transition: transform .25s var(--ease-out-expo); }
.svc-links a:hover .svc-arrow { transform: translate(3px, -3px); }

/* ============================================================
   Directory hub cards — used on /services.html and /faq.html to
   show "where to go next" with a one-line description each.
   ============================================================ */
.dir-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 14px; margin: 30px 0 0; list-style: none; padding: 0;
}
.dir-card {
  display: block; border: 1px solid var(--rule); border-radius: var(--radius);
  background: oklch(1 0 0 / 0.012); padding: 24px 24px 26px; color: var(--ink);
  transition: all .25s var(--ease-out-expo);
}
.dir-card:hover { border-color: var(--accent); background: var(--accent-soft); transform: translateY(-2px); }
.dir-card__name {
  font-family: var(--serif); font-size: clamp(22px, 2vw, 27px); line-height: 1.05;
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
}
.dir-card__name .arr { color: var(--accent-2); transition: transform .25s var(--ease-out-expo); }
.dir-card:hover .dir-card__name .arr { transform: translate(3px, -3px); }
.dir-card__desc { color: var(--ink-3); font-size: 0.92em; margin: 10px 0 0; line-height: 1.5; }
.dir-card__faq { display: inline-block; margin: 12px 0 0; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-2); }

/* ============================================================
   Footer — mirrors the live <Footer/>
   ============================================================ */
.foot {
  max-width: var(--max); margin: clamp(48px, 8vh, 88px) auto 0;
  padding: 26px var(--gutter) 48px; border-top: 1px solid var(--rule);
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px;
  font-size: 13px; color: var(--ink-3);
}
.foot .brand-foot { display: inline-flex; align-items: center; gap: 12px; color: var(--ink-2); }
.foot .brand-foot svg { height: 20px; width: auto; }
.foot .links { display: flex; gap: 18px; margin-left: auto; }

/* ============================================================
   Motion / responsive
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
  .fx-grain { opacity: 0.035; }
}
@media (max-width: 560px) {
  .nav__right .cta { padding: 9px 14px; font-size: 13px; }
  .foot { flex-direction: column; align-items: flex-start; }
  .foot .links { margin-left: 0; }
}
