/* ============================================================
   LJ Digital — main.css (v3, nateherk.com aesthetic)
   Geist font · band-dark/paper alternation · cyan primary
   ============================================================ */

:root {
  /* Core */
  --black:   #000000;
  --dark:    #0d0d0d;
  --paper:   #f5f0eb;

  /* Text */
  --text-light:      #ffffff;
  --text-muted:      rgba(255,255,255,0.65);
  --text-dark:       #111111;
  --text-dark-muted: #555555;

  /* Accent */
  --cyan:    #22d3ee;
  --cyan-dk: #06b6d4;
  --orange:  #F97316;

  /* Borders */
  --border-dark:  rgba(255,255,255,0.08);
  --border-paper: #e5e0da;

  /* Layout */
  --max: 1160px;
  --nav-h: 64px;
  --radius: 6px;
  --transition: 0.2s ease;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-light);
  background: var(--black);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; }
a { color: inherit; }

h1, h2, h3, h4 { margin: 0; letter-spacing: -0.02em; font-weight: 700; line-height: 1.15; }
p { margin: 0 0 1rem; }

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

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 96px 0; }

/* ============================================================
   Nav
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 9999;
  height: var(--nav-h);
  min-height: var(--nav-h);
  background: #000;
  border-bottom: 1px solid var(--border-dark);
  overflow: visible;
  /* Safe area for notch/browser chrome on mobile */
  padding-top: env(safe-area-inset-top, 0px);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--nav-h);
  overflow: visible;
}
/* Logo — constrained to nav height always */
.nav__logo { display: inline-flex; align-items: center; line-height: 1; overflow: visible; }
.nav__logo img {
  height: 38px;
  width: auto;
  max-height: 38px;
  display: inline-block;
  vertical-align: middle;
}
.nav__logo { text-decoration: none; color: #fff; }
.nav__logo-text { font-weight: 700; font-size: 13px; letter-spacing: 0.01em; }

.nav__links { display: flex; align-items: center; gap: 32px; }
.nav__links a {
  color: rgba(255,255,255,0.7);
  font-size: 15px; font-weight: 500;
  text-decoration: none;
  transition: color var(--transition);
}
.nav__links a:hover { color: #fff; }

.btn-nav {
  background: var(--cyan); color: #000; font-weight: 600;
  padding: 10px 20px; border-radius: var(--radius); border: none;
  font-size: 14px; cursor: pointer;
  transition: all var(--transition);
}
.btn-nav:hover { background: var(--cyan-dk); }

.nav__mobile-cta { display: none; } /* shown only in mobile nav */

.nav__toggle {
  display: none; /* shown via mobile media query */
  background: transparent; border: 0; padding: 8px;
  cursor: pointer;
}
.nav__toggle span {
  display: block; width: 22px; height: 2px; margin: 4px 0;
  background: #fff; transition: transform var(--transition), opacity var(--transition);
}
.nav__toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ============================================================
   Buttons
   ============================================================ */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--cyan); color: #000; font-weight: 600;
  padding: 14px 28px; border-radius: var(--radius); border: none;
  font-size: 15px; cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary:hover {
  background: var(--cyan-dk);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(34,211,238,0.25);
}

.btn-ghost-light {
  display: inline-flex; align-items: center; gap: 6px;
  color: rgba(255,255,255,0.8); font-size: 15px; text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  padding-bottom: 2px;
  transition: all var(--transition);
}
.btn-ghost-light:hover { color: #fff; border-bottom-color: #fff; }

.btn-ghost-dark {
  display: inline-flex; align-items: center;
  color: #111; font-size: 15px; text-decoration: none; font-weight: 500;
  border-bottom: 1px solid rgba(0,0,0,0.3);
  padding-bottom: 2px;
  transition: all var(--transition);
}
.btn-ghost-dark:hover { color: #000; border-bottom-color: #000; }

/* ============================================================
   Eyebrow
   ============================================================ */
.eyebrow {
  display: flex; align-items: center; gap: 10px;
  color: var(--orange);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  margin-bottom: 1rem;
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--orange); flex-shrink: 0;
}
.eyebrow .dash {
  width: 20px; height: 1.5px; background: var(--orange);
}
.band-paper .eyebrow { color: #999; }
.band-paper .eyebrow .dot,
.band-paper .eyebrow .dash { background: #999; }

/* ============================================================
   Section bands
   ============================================================ */
.band-dark { background: var(--dark); color: var(--text-light); }
.band-dark h2, .band-dark h3 { color: #fff; }
.band-dark p { color: rgba(255,255,255,0.65); }

.band-paper { background: var(--paper); color: var(--text-dark); }
.band-paper h2, .band-paper h3 { color: #111; }
.band-paper p { color: #555; }

.section-heading {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 3rem;
  max-width: 720px;
}

/* ============================================================
   Cards
   ============================================================ */
.card-dark {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 2rem;
  transition: border-color var(--transition), background var(--transition);
}
.card-dark:hover {
  border-color: rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.06);
}

.card-paper {
  background: #fff;
  border: 1px solid var(--border-paper);
  border-radius: 10px;
  padding: 2rem;
  transition: box-shadow var(--transition), transform var(--transition);
  position: relative;
}
.card-paper:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.card-icon {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px;
  background: rgba(34,211,238,0.1);
  color: var(--cyan);
  margin-bottom: 1.25rem;
}
.card-icon svg { width: 22px; height: 22px; }
.band-paper .card-icon {
  background: rgba(34,211,238,0.12);
  color: var(--cyan-dk);
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.card-lede {
  font-style: normal;
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
}
.band-dark .card-lede { color: rgba(255,255,255,0.85); }
.band-paper .card-lede { color: #222; }

.card-link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--cyan);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: color var(--transition);
}
.band-paper .card-link { color: var(--cyan-dk); }
.card-link:hover { color: var(--cyan-dk); }

.badge {
  position: absolute; top: 1rem; right: 1rem;
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--orange);
  background: rgba(249,115,22,0.1);
  padding: 4px 10px; border-radius: 999px;
}

/* ============================================================
   Hero — 5-layer stack
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: #000;
  overflow: clip;
  /* overflow:clip prevents fixed children being clipped unlike overflow:hidden */
}

/* Layer 1 */
.hero-img-wrap { position: absolute; inset: 0; }
.hero-img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center right;
  opacity: 0.75;
}
.hero-img-wrap.fallback {
  background:
    radial-gradient(ellipse at 70% 40%, rgba(34,211,238,0.12) 0%, transparent 55%),
    radial-gradient(ellipse at 30% 80%, rgba(249,115,22,0.06) 0%, transparent 45%),
    #000;
}

/* Layer 2 */
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.55) 50%, rgba(0,0,0,0.15) 100%),
    linear-gradient(to bottom, rgba(0,0,0,0) 40%, rgba(0,0,0,0.95) 100%);
}

/* Layer 3 */
.hero-grid {
  position: absolute; inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* Layer 4 */
.hero-bottom-fade {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 220px;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent 0%, #000000 100%);
}

/* Layer 5 */
.hero-content {
  position: relative; z-index: 10;
  padding-top: var(--nav-h);
  /* .container handles max-width and horizontal padding — no override needed */
}

.hero-title {
  font-size: clamp(1.8rem, 5.5vw, 5.2rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 1.5rem;
}
.hero-line-1 { color: var(--cyan); display: block; margin-bottom: 0.05em; }
.hero-line-2 { color: #ffffff; display: block; }

.hero-sub {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.72);
  max-width: 500px;
  line-height: 1.65;
  margin: 0 0 2.25rem;
  font-weight: 400;
}

.hero-cta-wrap {
  display: flex; align-items: center; gap: 24px;
  flex-wrap: wrap;
}

/* SCROLL hint */
.hero-scroll-hint {
  position: absolute; bottom: 2.5rem; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: rgba(255,255,255,0.35);
  font-size: 10px; font-weight: 500; letter-spacing: 0.15em;
  z-index: 10;
}
.scroll-line {
  width: 1px; height: 44px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
  animation: scrollPulse 2.2s ease-in-out infinite;
  transform-origin: top;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.35; transform: scaleY(1); }
  50%      { opacity: 0.9;  transform: scaleY(1.1); }
}

/* ============================================================
   Problem
   ============================================================ */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.problem-bridge {
  font-size: 1.15rem;
  max-width: 720px;
  color: rgba(255,255,255,0.8) !important;
}

/* ============================================================
   Services
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

/* ============================================================
   Lead capture
   ============================================================ */
.lead-inner { max-width: 900px; }
.lead-copy { font-size: 1.05rem; margin-bottom: 2rem; }
.lead-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
  margin-bottom: 0.75rem;
}
.lead-form input {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  color: #fff;
  padding: 14px 16px;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 15px;
  transition: border-color var(--transition), background var(--transition);
}
.lead-form input::placeholder { color: rgba(255,255,255,0.4); }
.lead-form input:focus {
  outline: none;
  border-color: var(--cyan);
  background: rgba(255,255,255,0.09);
}
.lead-note {
  font-size: 13px;
  color: rgba(255,255,255,0.4) !important;
}
.lead-status {
  min-height: 1.4em;
  font-size: 14px;
}
.lead-status.is-success { color: var(--cyan); }
.lead-status.is-error   { color: #f87171; }

/* ============================================================
   How it works
   ============================================================ */
.how-steps {
  list-style: none;
  padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.how-step {
  background: #fff;
  border: 1px solid var(--border-paper);
  border-radius: 10px;
  padding: 2rem;
  position: relative;
  transition: box-shadow var(--transition), transform var(--transition);
}
.how-step:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
.how-icon {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px;
  background: rgba(34,211,238,0.12);
  color: var(--cyan-dk);
  margin-bottom: 1rem;
}
.how-icon svg { width: 22px; height: 22px; }
.how-step-num {
  display: inline-block;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.5rem;
}
.how-title { font-size: 1.2rem; margin-bottom: 0.5rem; }

/* ============================================================
   Final CTA
   ============================================================ */
.cta-banner {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(34,211,238,0.1) 0%, transparent 60%),
    #000;
  text-align: center;
  padding: 120px 0;
}
.cta-banner-inner { max-width: 720px; margin: 0 auto; }
.cta-banner .eyebrow { justify-content: center; }
.cta-banner h2 {
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.cta-banner p {
  color: rgba(255,255,255,0.6);
  max-width: 480px;
  margin: 0 auto 2.5rem;
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: #000;
  color: rgba(255,255,255,0.6);
  border-top: 1px solid var(--border-dark);
  padding-top: 64px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 48px;
}
.footer-logo { display: inline-flex; align-items: center; text-decoration: none; }
.footer-logo img { height: 40px; }
.footer-tagline {
  color: rgba(255,255,255,0.7);
  margin-top: 1rem; margin-bottom: 0.25rem;
}
.footer-location { color: rgba(255,255,255,0.5); font-size: 14px; }

.footer-heading {
  color: #fff;
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px;
  transition: color var(--transition);
}
.footer-links a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid var(--border-dark);
  padding: 20px 0;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}
.footer-bottom p { margin: 0; color: rgba(255,255,255,0.4); }

/* ============================================================
   Scroll reveal
   ============================================================ */
/* ============================================================
   Scroll reveal
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-line { animation: none; }
  html { scroll-behavior: auto; }
}


/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  section { padding: 72px 0; }
}

@media (max-width: 720px) {
  /* ── Mobile Nav ────────────────────────── */
  /* Force nav to explicit height and ensure nothing clips it */
  .nav {
    /* Push nav content below browser chrome / address bar */
    padding-top: max(env(safe-area-inset-top), 8px) !important;
    height: auto !important;
    overflow: visible !important;
  }
  .nav__inner {
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    overflow: visible;
  }
  /* Logo — smaller on mobile, must not overflow nav height */
  .nav__logo img {
    height: 30px !important;
    width: auto;
    display: block;
  }
  /* Hide desktop CTA, show hamburger */
  .nav__cta { display: none !important; }
  .nav__toggle {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
  }
  .nav__toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.25s ease;
    transform-origin: center;
  }
  .nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* Mobile dropdown menu — vertical, slides down from nav */
  .nav__links {
    position: fixed;
    top: 0;
    padding-top: calc(52px + max(env(safe-area-inset-top), 8px));
    left: 0; right: 0;
    background: #000;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 16px;
    transform: translateY(-110%);
    transition: transform 0.25s ease;
    z-index: 999;
    display: flex;
  }
  .nav__links.is-open { transform: translateY(0); }
  .nav__links a {
    display: block;
    width: 100%;
    padding: 14px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    font-size: 16px;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
  }
  .nav__links a:last-child { border-bottom: none; }
  /* Real Book a free call button in mobile menu */
  .nav__mobile-cta {
    display: block;
    width: 100%;
    text-align: left;
    padding: 14px 20px;
    background: none;
    border: none;
    border-top: 1px solid rgba(255,255,255,0.06);
    color: #22d3ee;
    font-weight: 600;
    font-size: 16px;
    font-family: inherit;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  /* ── Mobile Hero ────────────────────────── */
  .hero { min-height: 100svh; }
  .hero-content { padding-top: calc(52px + max(env(safe-area-inset-top), 24px)) !important; }
  .hero-scroll-hint { display: none; }
  .hero-cta-wrap { flex-direction: column; align-items: flex-start; gap: 12px; }
  .btn-primary { width: 100%; justify-content: center; }

  /* Mobile headline — bigger font, natural 4-line wrap (no nowrap) */
  .hero-title {
    font-size: clamp(2.4rem, 10vw, 3.2rem);
    line-height: 1.08;
    letter-spacing: -0.02em;
  }
  .hero-line-1, .hero-line-2 { white-space: normal; }

  /* ── Other sections ─────────────────────── */
  section { padding: 72px 0; }
  .problem-grid,
  .services-grid { grid-template-columns: 1fr; }
  .how-steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .lead-form { grid-template-columns: 1fr; }
}
