/* ==========================================================================
   Swenson Digital — pitch site styles
   Palette: deep pine green, warm off-white, clay/rust accent, gold highlight
   ========================================================================== */

:root {
  --pine: #1f3d2e;
  --pine-dark: #16291e;
  --pine-light: #2d5240;
  --cream: #faf5ea;
  --cream-dark: #f0e6d2;
  --clay: #c1622d;
  --clay-dark: #a34f22;
  --gold: #c99a3e;
  /* Same gold family, darkened for use as text on the cream background —
     the base --gold only clears WCAG contrast on dark backgrounds or as a
     small badge fill; large numerals set directly on cream need this. */
  --gold-text: #97742e;
  --ink: #262620;
  --ink-light: #55534a;
  --white: #fffdf8;
  --border: #e3d9c4;

  --font-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius: 12px;
  --shadow-sm: 0 2px 10px rgba(22, 41, 30, 0.06);
  --shadow-md: 0 10px 30px rgba(22, 41, 30, 0.12);
  --max-width: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-serif);
  color: var(--pine-dark);
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
a { color: var(--pine); }
ul, ol { padding-left: 0; list-style: none; margin: 0; }

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

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--pine);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  z-index: 100;
}
.skip-link:focus { left: 0; }

section { padding: clamp(2.75rem, 6vw, 5rem) 0; }

.section-sub {
  color: var(--ink-light);
  max-width: 46ch;
  margin-top: -0.25em;
}

.page-header {
  background: radial-gradient(120% 180% at 50% -20%, var(--white), var(--cream-dark) 75%);
  padding: clamp(2.5rem, 6vw, 4rem) 0;
  text-align: center;
}
.page-header h1 { font-size: clamp(2rem, 4.5vw, 2.6rem); }
.page-header .section-sub { margin-left: auto; margin-right: auto; }

.cta-banner {
  background: radial-gradient(120% 180% at 50% 120%, var(--white), var(--cream-dark) 75%);
  text-align: center;
}
.cta-banner .section-sub { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }

/* clay + white text is only ~4.16:1 — fails WCAG AA (4.5:1) for
   normal-weight text. clay-dark passes comfortably (~5.7:1) and reads
   as the more grounded, confident version of the same color anyway. */
.btn-primary {
  background: var(--clay-dark);
  color: var(--white);
  box-shadow: 0 0 0 rgba(193, 98, 45, 0);
  transition: transform 0.15s ease, background-color 0.2s ease, box-shadow 0.25s ease;
}
.btn-primary:hover {
  background: var(--clay);
  box-shadow: 0 8px 22px rgba(193, 98, 45, 0.32);
}

/* Only used on the dark hero — a light-bordered button for a dark bg. */
.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(250, 245, 234, 0.5);
}
.btn-ghost:hover { background: rgba(250, 245, 234, 0.12); border-color: var(--white); }

.btn-outline {
  background: transparent;
  color: var(--pine-dark);
  border-color: var(--border);
  text-align: center;
}
.btn-outline:hover { border-color: var(--pine-dark); }

.btn-block { width: 100%; text-align: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 245, 234, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* On the home page, the header starts transparent over the dark hero and
   solidifies once the hero scrolls out of view (toggled via .scrolled by
   script.js) — no hard seam between a light nav bar and a dark hero. */
body.hero-page .site-header {
  position: fixed;
  width: 100%;
  background: transparent;
  backdrop-filter: none;
  border-bottom-color: transparent;
}
body.hero-page .site-header.scrolled {
  position: sticky;
  background: rgba(250, 245, 234, 0.92);
  backdrop-filter: blur(6px);
  border-bottom-color: var(--border);
}
body.hero-page .site-header:not(.scrolled) .logo,
body.hero-page .site-header:not(.scrolled) .header-phone,
body.hero-page .site-header:not(.scrolled) .primary-nav a:not(.nav-cta) {
  color: var(--white);
}
body.hero-page .site-header:not(.scrolled) .nav-toggle span {
  background: var(--white);
}
body.hero-page { padding-top: 0; }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--pine-dark);
  text-decoration: none;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--pine-dark);
  border-radius: 2px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.header-phone {
  display: none;
  color: var(--pine-dark);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.header-phone:hover { color: var(--clay); }

.primary-nav {
  display: none;
  align-items: center;
  gap: 1.75rem;
}
.primary-nav a {
  position: relative;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}
.primary-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background: var(--clay);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.primary-nav a:hover { color: var(--clay); }
.primary-nav a:hover::after,
.primary-nav a[aria-current="page"]:not(.nav-cta)::after { transform: scaleX(1); }
.primary-nav .nav-cta::after { display: none; }
.primary-nav .nav-cta {
  background: var(--pine);
  color: var(--white);
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-weight: 600;
}
.primary-nav .nav-cta:hover { background: var(--pine-dark); color: var(--white); }

.site-header.nav-open .primary-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--cream);
  padding: 1.25rem;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}
/* The open dropdown always has an opaque cream background, even when the
   header itself is still in its transparent-over-hero state — so its
   links need to stay dark regardless. Without this, opening the mobile
   menu on the home page left white-on-cream text that was nearly
   unreadable (the bug in the screenshot). */
body.hero-page .site-header.nav-open .primary-nav a:not(.nav-cta) {
  color: var(--ink);
}

@media (min-width: 860px) {
  .nav-toggle { display: none; }
  .header-phone { display: block; }
  .primary-nav {
    display: flex;
    position: static;
    background: none;
    padding: 0;
    box-shadow: none;
    border: none;
  }
}

/* ---------- Hero ----------
   Dark, atmospheric, typography-led — no illustration, no boxed photo.
   With no real photography of Robert or his work available yet, a
   confident dark gradient + bold type does more for "this looks current"
   than a flat-vector pine-tree scene ever could. */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--pine-dark);
  padding: clamp(5rem, 13vw, 8.5rem) 0 clamp(4rem, 10vw, 6rem);
}
.hero::before {
  /* Two soft glows (clay + gold) drifting slowly — the atmosphere itself
     is the visual, standing in for a hero photo. */
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(60% 55% at 18% 15%, rgba(193, 98, 45, 0.35), transparent 70%),
    radial-gradient(50% 60% at 88% 85%, rgba(201, 154, 62, 0.28), transparent 70%),
    radial-gradient(circle, rgba(250, 245, 234, 0.05) 1.3px, transparent 1.3px);
  background-size: 100% 100%, 100% 100%, 26px 26px;
}
@media (prefers-reduced-motion: no-preference) {
  .hero::before { animation: hero-drift 16s ease-in-out infinite; }
}
@keyframes hero-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-1.5%, 1.5%) scale(1.03); }
}
.hero-inner { position: relative; z-index: 1; }

/* Cursor-reactive glow — layered above the ambient drift, below the
   copy. Falls back to a fixed soft position (see --mx/--my defaults)
   until JS starts updating it on mousemove; desktop/hover only. */
.hero-spotlight {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  --mx: 50%;
  --my: 35%;
  background: radial-gradient(480px circle at var(--mx) var(--my), rgba(201, 154, 62, 0.22), transparent 70%);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pine-dark);
  background: var(--gold);
  padding: 0.5em 0.9em;
  border-radius: 999px;
  transform: rotate(-2.5deg);
  margin-bottom: 1.75rem;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.4rem, 6.5vw, 4.4rem);
  line-height: 1.06;
  max-width: 16ch;
}
.hero h1 em {
  font-style: italic;
  color: var(--gold);
}
.hero-sub {
  font-size: 1.15rem;
  color: var(--cream-dark);
  max-width: 48ch;
  margin-top: 1.25rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}
.hero-actions-note {
  font-size: 0.9rem;
  color: rgba(250, 245, 234, 0.65);
  margin-top: 0.85rem;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  margin-top: 2.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(250, 245, 234, 0.15);
}
.hero-trust-item {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 0.92rem;
  color: rgba(250, 245, 234, 0.8);
}
.hero-trust-item strong {
  font-family: var(--font-serif);
  color: var(--white);
  font-size: 1.05rem;
}

/* ---------- Problem ---------- */
.problem {
  background: linear-gradient(155deg, var(--pine) 0%, var(--pine-dark) 70%);
  color: var(--cream);
}
.problem h2 { color: var(--white); }
.problem-list {
  display: grid;
  gap: 0.9rem;
  margin: 1.5rem 0;
  max-width: 60ch;
}
.problem-list li {
  padding-left: 1.6rem;
  position: relative;
  font-size: 1.05rem;
}
.problem-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--gold);
}
.problem-close {
  color: var(--cream-dark);
  font-style: italic;
  max-width: 60ch;
}

/* ---------- Services list (editorial numeral rows, no icon badges) ---------- */
.service-list {
  margin-top: 2rem;
  counter-reset: none;
}
.service-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: baseline;
  padding: 1.75rem 0;
  border-top: 1px solid var(--border);
}
.service-row:last-child { border-bottom: 1px solid var(--border); }
.service-num {
  font-family: var(--font-serif);
  font-weight: 600;
  font-style: italic;
  font-size: clamp(2rem, 5vw, 2.75rem);
  color: var(--gold-text);
  line-height: 1;
}
.service-row-body h3 { margin-bottom: 0.35rem; }
.service-row-body p { color: var(--ink-light); margin-bottom: 0; max-width: 60ch; }
@media (min-width: 640px) {
  .service-row { grid-template-columns: 100px 1fr; }
}

/* ---------- Sample social post mockup ---------- */
.social-mockup {
  margin-top: 2.5rem;
  text-align: center;
}
.mockup-label {
  font-weight: 600;
  color: var(--pine-dark);
  margin-bottom: 1rem;
}
.fb-post-mock {
  max-width: 380px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1rem 1.1rem;
  text-align: left;
}
.fb-post-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}
.fb-post-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--pine);
  color: var(--white);
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.fb-post-name { font-weight: 700; margin: 0; font-size: 0.92rem; }
.fb-post-meta { margin: 0; font-size: 0.78rem; color: var(--ink-light); }
.fb-post-text { font-size: 0.92rem; margin-bottom: 0.75rem; }
.fb-post-photo {
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 0.75rem;
  line-height: 0;
}
.fb-post-photo svg { width: 100%; height: auto; display: block; }
.fb-post-actions {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--ink-light);
  font-weight: 600;
  border-top: 1px solid var(--border);
  padding-top: 0.6rem;
}

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
  grid-template-columns: 1fr;
  align-items: stretch;
}
@media (min-width: 900px) {
  .pricing-grid { grid-template-columns: 1fr 1.15fr 1fr; }
}

.price-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.price-card-featured {
  background: var(--pine-dark);
  color: var(--white);
  border-color: var(--pine-dark);
  box-shadow: var(--shadow-md);
  transform: translateY(0);
  position: relative;
}
@media (min-width: 900px) {
  .price-card-featured { transform: scale(1.05); z-index: 2; }
}
.price-card-featured h3 { color: var(--white); }
.price-card-featured .price-note,
.price-card-featured .price-features li { color: var(--cream-dark); }

.price-badge {
  display: inline-block;
  background: var(--clay-dark);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1rem;
  align-self: flex-start;
}

.price-line {
  font-size: 1.05rem;
  margin-bottom: 0.15em;
}
.price-amount {
  font-family: var(--font-serif);
  font-size: 2.1rem;
  font-weight: 600;
}
.price-line-sub {
  color: var(--ink-light);
  margin-bottom: 1rem;
}
.price-card-featured .price-line-sub { color: var(--cream-dark); }
.price-was {
  display: block;
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 600;
}

.price-features {
  display: grid;
  gap: 0.5rem;
  margin: 1rem 0 1.5rem;
  flex-grow: 1;
}
.price-features li {
  padding-left: 1.4rem;
  position: relative;
  font-size: 0.95rem;
}
.price-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--clay);
  font-weight: 700;
}
.price-card-featured .price-features li::before { color: var(--gold); }

.price-note {
  font-size: 0.85rem;
  color: var(--ink-light);
  margin-bottom: 1.25rem;
}

/* ---------- Process ---------- */
.step-list {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
  grid-template-columns: 1fr;
  counter-reset: step;
}
@media (min-width: 700px) {
  .step-list { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .step-list { grid-template-columns: repeat(4, 1fr); }
}
/* No card box, no icon badge — a numbered rail instead, so this doesn't
   read as "another identical white card" next to services/pricing/proof. */
.step-card {
  position: relative;
  padding: 0 0 0 0.1rem;
  border-top: 2px solid var(--border);
  padding-top: 1.5rem;
}
@media (min-width: 1000px) {
  .step-card { border-top-color: transparent; }
  .step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 1.5rem;
    height: 2px;
    background: var(--border);
  }
  .step-card:first-child::before { background: var(--gold); }
}
.step-num {
  display: block;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  font-size: 2.25rem;
  color: var(--gold-text);
  line-height: 1;
  margin-bottom: 0.75rem;
  transition: color 0.2s ease;
}
.step-card p { color: var(--ink-light); margin-bottom: 0; font-size: 0.95rem; }

/* ---------- Recent work (real case study, not a fake testimonial grid) ---------- */
.work-card {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  /* Fast enough that the mousemove-driven tilt (script.js) feels like it's
     tracking the cursor, not lagging behind it — also used for the
     scroll-reveal entrance, where 0.3s still reads as a settled rise. */
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.3s ease,
              box-shadow 0.3s ease;
}
.work-card:hover { box-shadow: var(--shadow-md); }
.work-card:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; }
.work-shot {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  /* Grid items default to min-width:auto (can refuse to shrink below a
     child's intrinsic content size); explicit here defensively, though the
     real mobile image bug turned out to be in .work-shot img below. */
  min-width: 0;
}
.work-shot img {
  width: 100%;
  /* Without this, the width/height HTML attributes (added for CLS) map to
     a presentational height:806px hint that this rule's width:100% doesn't
     touch — so instead of scaling proportionally, the image was forced to
     a literal 806px-tall box on any layout narrower than 1200px (i.e. every
     mobile view), stretching it and pushing the card's text far offscreen.
     height:auto lets the aspect-ratio (also derived from those attributes)
     compute the height correctly instead. */
  height: auto;
  display: block;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.work-card:hover .work-shot img { transform: scale(1.02); }
.work-body { padding: clamp(1.5rem, 4vw, 2.25rem); }
.work-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--clay-dark);
  margin-bottom: 0.5rem;
}
.work-body h3 { font-size: 1.4rem; margin-bottom: 0.5rem; }
.work-body p { color: var(--ink-light); max-width: 60ch; }
.work-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-weight: 600;
  color: var(--pine-dark);
  text-decoration: none;
  border-bottom: 1.5px solid var(--gold);
  padding-bottom: 0.1em;
  transition: color 0.2s ease, gap 0.2s ease;
}
.work-link:hover { color: var(--clay); gap: 0.65em; }

@media (min-width: 780px) {
  .work-card { grid-template-columns: 1.2fr 1fr; align-items: stretch; }
  .work-shot { border-bottom: none; border-right: 1px solid var(--border); }
  .work-shot img { height: 100%; object-fit: cover; }
  .work-body { display: flex; flex-direction: column; justify-content: center; }
}

/* ---------- Proof ---------- */
.proof-grid { grid-template-columns: 1fr; }
@media (min-width: 700px) { .proof-grid { grid-template-columns: repeat(3, 1fr); } }
.proof-card {
  margin: 0;
  background: var(--white);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.proof-card p:not(.placeholder-tag) {
  font-style: italic;
  color: var(--ink);
}
.proof-card cite {
  display: block;
  margin-top: 0.75rem;
  font-style: normal;
  font-weight: 600;
  color: var(--pine);
  font-size: 0.9rem;
}
.placeholder-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--clay-dark);
  background: var(--cream-dark);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}
.placeholder-tag.inline {
  margin-bottom: 0;
  margin-left: 0.4rem;
  vertical-align: middle;
}

/* ---------- FAQ ---------- */
.faq-list {
  margin-top: 1.5rem;
  display: grid;
  gap: 0.75rem;
  max-width: 72ch;
}
.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--pine-dark);
  font-family: var(--font-serif);
  font-size: 1.05rem;
}
.faq-item p {
  color: var(--ink-light);
  margin: 0.85rem 0 0;
}

/* ---------- About ---------- */
.about-copy {
  max-width: 68ch;
}
.about-copy > .placeholder-tag { margin-bottom: 1rem; }
.about-copy h2 { margin-top: 2rem; }
.about-beliefs {
  color: var(--ink);
  max-width: none;
}
.about-beliefs li { color: var(--ink); }
.about-pull-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.2rem, 2.4vw, 1.45rem);
  color: var(--pine-dark);
  border-left: 3px solid var(--gold);
  padding-left: 1.25rem;
  margin: 1.75rem 0;
}

/* ---------- Contact ---------- */
.contact { background: var(--cream-dark); }
.contact-inner {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 900px) {
  .contact-inner { grid-template-columns: 1fr 1.1fr; align-items: start; }
}
.contact-direct {
  margin-top: 1.5rem;
  line-height: 2;
}
.contact-direct a { font-weight: 600; }

.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: grid;
  gap: 0.35rem;
  box-shadow: var(--shadow-sm);
}
.contact-form label {
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 0.75rem;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  font: inherit;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--cream);
  color: var(--ink);
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--pine);
  outline-offset: 1px;
}
.contact-form button { margin-top: 1.25rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--pine-dark);
  color: var(--cream-dark);
  padding: clamp(2.75rem, 6vw, 3.75rem) 0 1.75rem;
  font-size: 0.9rem;
}
.site-footer a { color: var(--cream); }

.footer-brand-col .logo {
  color: var(--white);
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
}
.footer-brand-col .logo-mark path:first-child { fill: var(--cream); }
.footer-tagline { color: rgba(250, 245, 234, 0.65); max-width: 32ch; }

.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2.25rem;
}
@media (min-width: 640px) {
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; }
}
.footer-grid h3 {
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.9rem;
}
.footer-links {
  display: grid;
  gap: 0.6rem;
}
.footer-links a { text-decoration: none; font-weight: 500; }
.footer-links a:hover { color: var(--gold); }

.footer-bottom-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(250, 245, 234, 0.6);
  font-size: 0.82rem;
}

/* ---------- Sticky mobile CTA bar ---------- */
.mobile-cta-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
  background: var(--white);
  border-top: 1px solid var(--border);
  box-shadow: 0 -8px 24px rgba(22, 41, 30, 0.12);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}
.mobile-cta-bar.show { transform: translateY(0); }
.mobile-cta-bar .btn { flex: 1; justify-content: center; text-align: center; padding-top: 0.8rem; padding-bottom: 0.8rem; }
@media (min-width: 860px) {
  .mobile-cta-bar { display: none; }
}

/* ---------- Scroll reveals ----------
   The hidden starting state is scoped to .js-motion, which is set by a tiny
   inline script in <head> ONLY when JS runs and the visitor hasn't asked for
   reduced motion. So with JS off, or motion reduced, none of this applies and
   every element renders normally — nothing can get stuck invisible.

   NOTE: the selector list below is mirrored in script.js (REVEAL_SELECTOR).
   Keep the two in sync if you add a new element type here. */
.js-motion .service-row,
.js-motion .step-card,
.js-motion .proof-card,
.js-motion .price-card,
.js-motion .faq-item,
.js-motion .social-mockup,
.js-motion .work-card,
.js-motion .problem-list li {
  opacity: 0;
  transform: translateY(18px);
}

.service-row,
.step-card,
.proof-card,
.price-card,
.faq-item,
.social-mockup,
.work-card,
.problem-list li {
  /* Long, decelerating ease — motion should settle, not bounce. */
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Specificity must match or exceed every hidden-state selector above —
   ".problem-list li" (class+element) otherwise outranks a bare
   ".is-visible" (class only) and those items stay stuck at opacity:0
   even after the class is added. Repeating it here keeps that pair's
   specificity tied, so is-visible always wins regardless of source order. */
.js-motion .is-visible,
.js-motion .problem-list li.is-visible {
  opacity: 1;
  transform: none;
}

/* Hero entrance — runs on load rather than scroll, since it's already
   in view. Same restraint: one short, settled move. */
.js-motion .hero-copy > * {
  opacity: 0;
  transform: translateY(18px);
  animation: rise-in 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.js-motion .hero-copy > :nth-child(1) { animation-delay: 0.05s; }
.js-motion .hero-copy > :nth-child(2) { animation-delay: 0.13s; }
.js-motion .hero-copy > :nth-child(3) { animation-delay: 0.21s; }
.js-motion .hero-copy > :nth-child(4) { animation-delay: 0.29s; }
.js-motion .hero-copy > :nth-child(5) { animation-delay: 0.37s; }

/* The h1 gets word-by-word animation instead (script.js splits it into
   .word spans) — so it opts out of the block-level fade above rather than
   compounding with it. */
.js-motion .hero-copy > h1 {
  opacity: 1;
  transform: none;
  animation: none;
}
.js-motion .hero h1 .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.4em);
  animation: rise-in 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes rise-in {
  to { opacity: 1; transform: none; }
}

/* Card hover lift — subtle, and only where the whole card is a unit. */
.step-card,
.price-card {
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s ease;
}
.step-card:hover .step-num { color: var(--clay); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  /* Belt and braces: .js-motion is never set under reduced motion, but if a
     browser reports the preference late, make sure nothing animates or hides. */
  .service-row,
  .step-card,
  .proof-card,
  .price-card,
  .faq-item,
  .social-mockup,
  .work-card,
  .problem-list li,
  .hero-copy > *,
  .hero h1 .word {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }
  .hero::before { animation: none; }
  .hero-spotlight { display: none; }
}
