/* Jamestown Digital — homepage styles */

:root {
  --ink: #0E1C2B;
  --ink-2: #1E2F42;
  --bg: #F5F0E8;
  --surface: #EDE8DF;
  --surface-2: #E5DFD2;
  --gold: #C8820C;
  --gold-deep: #9C6406;
  --muted: #6E6456;
  --rule: #D4CBB7;
  --brick: #C8421E;
  --brick-deep: #A33418;
  --serif: "DM Serif Display", "Lora", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
  background-image:
    radial-gradient(1200px 600px at 80% -10%, rgba(184,135,58,0.08), transparent 60%),
    radial-gradient(900px 500px at -5% 30%, rgba(27,42,59,0.05), transparent 60%);
}
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 1;
  opacity: 0.045;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.1  0 0 0 0 0.08  0 0 0 0 0.05  0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: multiply;
}

main, header, footer { position: relative; z-index: 2; }

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(40px, 5.4vw, 76px); line-height: 1.02; letter-spacing: -0.022em; }
h2 { font-size: clamp(28px, 3.2vw, 44px); line-height: 1.08; }
h3 { font-size: clamp(20px, 1.6vw, 24px); line-height: 1.2; }
p { margin: 0; text-wrap: pretty; }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── Layout ── */
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 32px; }
section { padding: 96px 0; position: relative; }
section + section { border-top: 1px solid var(--rule); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center; justify-content: center;
  gap: 10px; padding: 16px 26px;
  border-radius: 4px;
  font-family: var(--sans); font-size: 16px; font-weight: 600;
  letter-spacing: 0.005em;
  text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  transition: transform .15s ease, background .15s ease, color .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--brick);
  color: #FAF5EE;
  box-shadow: 0 1px 0 rgba(255,255,255,.10) inset, 0 4px 18px rgba(200,66,30,.28);
  letter-spacing: 0.01em;
}
.btn-primary:hover { background: var(--brick-deep); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(200,66,30,.34); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: var(--bg); }
.btn-gold {
  background: var(--gold);
  color: #0E1C2B;
  font-weight: 700;
  box-shadow: 0 4px 18px rgba(200,130,12,.32);
}
.btn-gold:hover { background: #B07008; color: #fff; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(200,130,12,.38); }
.btn-block { width: 100%; }

/* ── Cards ── */
.card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 6px; padding: 28px;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-2px); border-color: var(--gold); box-shadow: 0 12px 28px rgba(14,28,43,.1); }

/* ── Reveal ── */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ── Header ── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; padding-top: 18px; padding-bottom: 18px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-mark {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--ink); color: var(--bg);
  display: grid; place-items: center;
  font-family: var(--serif); font-weight: 700; font-size: 18px; letter-spacing: 0;
}
.brand-name { font-family: var(--serif); font-weight: 600; font-size: 20px; line-height: 1; }
.brand-tag { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--gold-deep); }
.nav-phone { font-family: var(--mono); font-size: 13.5px; letter-spacing: 0.04em; color: var(--ink); border-left: 1px solid var(--rule); padding-left: 24px; white-space: nowrap; }

/* ── Hero ── */
.hero { padding-top: 56px; padding-bottom: 88px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; column-gap: 72px; align-items: start; }
.hero-media { grid-column: 2; grid-row: 1 / 3; align-self: center; }
.hero h1 .accent { color: var(--brick); font-style: italic; font-weight: 500; }
.hero .lede { font-size: 19px; color: var(--ink-2); margin-top: 22px; max-width: 52ch; }
.hero-ctas { display: flex; gap: 14px; align-items: center; margin-top: 32px; flex-wrap: wrap; }
.hero-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 6px; display: block; box-shadow: 0 6px 32px rgba(27,42,59,0.13); }

/* ── Trust bar ── */
.trust { padding: 22px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: var(--surface); }
.trust .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.trust-item { display: flex; align-items: center; gap: 12px; font-size: 14.5px; color: var(--ink-2); }
.trust-item svg { color: var(--gold-deep); flex-shrink: 0; }

/* ── Format identifier ── */
.formats-head { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: end; margin-bottom: 40px; }

.tape-placeholder {
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 8px;
  border: 1.5px dashed var(--rule); border-radius: 3px;
  background: var(--surface-2);
  font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
  padding: 8px;
}

.format-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.format-card {
  background: var(--surface); border: 1px solid var(--rule); border-radius: 4px; padding: 20px;
  cursor: pointer; text-align: left; transition: all .2s ease;
  font-family: var(--sans); color: var(--ink);
  display: flex; flex-direction: column; gap: 12px; min-height: 200px;
  appearance: none; -webkit-appearance: none;
}
.format-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.format-card.active { border-color: var(--ink); background: var(--bg); box-shadow: 0 0 0 1px var(--ink) inset; }
.format-thumb { height: 96px; display: grid; place-items: center; overflow: hidden; }
.tape-img { max-width: 100%; max-height: 96px; object-fit: contain; display: block; }
.format-name { font-family: var(--serif); font-size: 19px; font-weight: 600; }
.format-meta { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.format-detail {
  margin-top: 24px; padding: 28px 32px;
  background: var(--surface); border: 1px solid var(--rule); border-radius: 4px;
  display: grid; grid-template-columns: 1fr 2fr auto; gap: 28px; align-items: center;
}
.format-detail .desc { color: var(--ink-2); font-size: 16px; }
.formats-hint { margin-top: 18px; text-align: center; font-size: 15px; color: var(--muted); font-style: italic; }
.formats-hint a { color: var(--gold-deep); text-decoration: underline; text-underline-offset: 3px; }

/* ── Services ── */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.service-card { padding: 26px; display: flex; flex-direction: column; gap: 10px; min-height: 180px; }
.service-card .num { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--muted); text-transform: uppercase; }
.service-card .name { font-family: var(--serif); font-size: 22px; font-weight: 600; }
.service-card .desc { color: var(--ink-2); font-size: 15px; flex: 1; }
.service-card .price { font-family: var(--mono); font-size: 13px; color: var(--gold-deep); border-top: 1px dashed var(--rule); padding-top: 12px; margin-top: 4px; }
.service-card.coming { opacity: .7; }
.service-card.coming .price { color: var(--muted); }

/* ── How it works ── */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 56px; }
.step { position: relative; padding: 28px 24px 24px; }
.step .n { font-family: var(--serif); font-size: 56px; font-weight: 600; color: var(--gold); line-height: 1; }
.step h3 { margin-top: 14px; margin-bottom: 8px; }
.step p { color: var(--ink-2); font-size: 15px; }
.step:not(:last-child)::after { content: ""; position: absolute; top: 38px; right: -20px; width: 40px; height: 1px; background: var(--rule); }

/* ── Pricing ── */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.price-card { padding: 30px; display: flex; flex-direction: column; gap: 14px; min-height: 280px; }
.price-card.featured {
  background: var(--bg);
  color: var(--ink);
  border-color: var(--ink);
  border-width: 2px;
  box-shadow: 0 8px 32px rgba(14,28,43,.10);
  position: relative;
  overflow: hidden;
}
.price-card.featured::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--gold);
}
.price-card.featured h3 { color: var(--ink); }
.price-card.featured .price-num { color: var(--ink); }
.price-card.featured .price-list li { color: var(--ink-2); }
.price-card.featured .price-list li::before { color: var(--gold-deep); }
.price-card.featured:hover { border-color: var(--gold); box-shadow: 0 12px 36px rgba(14,28,43,.14); }
.price-num { font-family: var(--serif); font-size: 44px; font-weight: 600; color: var(--ink); line-height: 1; letter-spacing: -0.02em; }
.price-num small { font-size: 16px; font-weight: 400; color: var(--muted); margin-left: 6px; font-family: var(--sans); }
.price-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.price-list li { font-size: 15px; color: var(--ink-2); padding-left: 22px; position: relative; }
.price-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--gold-deep); font-weight: 700; }
.pricing-note { margin-top: 28px; text-align: center; font-size: 15px; color: var(--muted); }
.pricing-note strong { color: var(--ink); font-weight: 600; }
.pricing-single { margin-top: 20px; border: 1px dashed var(--rule); border-radius: 4px; background: var(--bg); }
.pricing-single-inner { padding: 26px 32px; display: flex; align-items: center; justify-content: center; gap: 36px; flex-wrap: wrap; text-align: center; }

/* ── Urgency ── */
.urgency { background: var(--surface); }
.urgency-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.urgency-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat { background: var(--bg); border: 1px solid var(--rule); border-left: 3px solid var(--brick); padding: 22px 24px; }
.stat .num { font-family: var(--serif); font-size: 38px; font-weight: 700; color: var(--brick); line-height: 1; letter-spacing: -0.02em; }
.stat .lbl { font-size: 14px; color: var(--ink-2); margin-top: 8px; line-height: 1.4; }
.urgency .eyebrow { color: var(--brick); }

/* ── Service area ── */
.area-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.area-list { columns: 2; column-gap: 32px; margin: 24px 0 0; padding: 0; list-style: none; }
.area-list li { break-inside: avoid; padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 16px; color: var(--ink-2); display: flex; align-items: center; gap: 10px; }
.area-list li::before { content: ""; width: 6px; height: 6px; background: var(--gold); border-radius: 50%; flex-shrink: 0; }

.map-placeholder {
  aspect-ratio: 1.1 / 1;
  border: 1px solid var(--rule); border-radius: 4px;
  background: var(--surface);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  color: var(--muted);
}
.map-placeholder .ph-label { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); text-align: center; max-width: 28ch; line-height: 1.7; }

/* ── FAQ ── */
.faq-grid { max-width: 820px; margin: 48px auto 0; }
.faq-item { border-bottom: 1px solid var(--rule); }
.faq-item:first-child { border-top: 1px solid var(--rule); }
.faq-q {
  width: 100%; background: transparent; border: 0;
  padding: 22px 0;
  font-family: var(--serif); font-size: 20px; font-weight: 600; color: var(--ink);
  text-align: left; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  letter-spacing: -0.005em;
}
.faq-q .ico {
  width: 28px; height: 28px; border: 1px solid var(--rule); border-radius: 50%;
  display: grid; place-items: center; flex-shrink: 0;
  transition: all .2s ease;
  font-family: var(--sans); font-size: 14px; color: var(--muted);
}
.faq-item.open .faq-q .ico { background: var(--ink); color: var(--bg); border-color: var(--ink); transform: rotate(45deg); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .35s ease, padding .35s ease, opacity .35s ease;
  opacity: 0; color: var(--ink-2); font-size: 16.5px; line-height: 1.65; padding: 0;
}
.faq-item.open .faq-a { max-height: 400px; padding: 0 0 24px; opacity: 1; }
.faq-a-inner { padding-right: 40px; }

/* ── Final CTA ── */
.cta { background: var(--ink); color: var(--bg); position: relative; overflow: hidden; }
.cta::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 20% 50%, rgba(184,135,58,.18), transparent 50%);
  pointer-events: none;
}
.cta h2 { color: var(--bg); }
.cta .eyebrow { color: var(--gold); }
.cta-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: start; position: relative; z-index: 1; }
.cta-text p { color: rgba(245,240,232,.78); font-size: 17px; margin-top: 18px; max-width: 42ch; }
.cta-call { margin-top: 32px; padding-top: 28px; border-top: 1px solid rgba(245,240,232,.18); }
.cta-call .label { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: rgba(245,240,232,.5); }
.cta-call .num { font-family: var(--serif); font-size: 32px; font-weight: 600; color: var(--bg); display: block; margin-top: 6px; text-decoration: none; }
.cta-call .num:hover { color: var(--gold); }

/* ── Quote form ── */
.quote-form { background: var(--bg); color: var(--ink); padding: 36px; border-radius: 4px; border: 1px solid var(--rule); }
.quote-form h3 { margin-bottom: 6px; }
.quote-form .sub { color: var(--muted); font-size: 14.5px; margin-bottom: 22px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea, .field select {
  border: 1px solid var(--rule); background: var(--surface); border-radius: 3px;
  padding: 12px 14px; font-family: var(--sans); font-size: 16px; color: var(--ink);
  outline: none; transition: border-color .15s ease, background .15s ease;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--ink); background: var(--bg); }
.field textarea { resize: vertical; min-height: 76px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.check-pill {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--rule); background: var(--surface);
  padding: 8px 12px; border-radius: 999px; font-size: 13.5px;
  cursor: pointer; transition: all .15s ease; user-select: none;
  font-family: var(--sans); color: var(--ink);
}
.check-pill.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.form-success { text-align: center; padding: 32px 24px; display: none; }
.form-success .check-mk { width: 56px; height: 56px; border-radius: 50%; background: var(--gold); color: var(--ink); display: grid; place-items: center; margin: 0 auto 18px; font-size: 28px; }
.quote-form-fields { }

/* ── Footer ── */
.site-foot { background: var(--surface); border-top: 1px solid var(--rule); padding: 48px 0 28px; font-size: 14px; color: var(--muted); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.foot-grid h4 { font-family: var(--serif); font-size: 16px; margin-bottom: 14px; color: var(--ink); }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.foot-grid a { color: var(--ink-2); text-decoration: none; overflow-wrap: break-word; word-break: break-word; }
.foot-grid a:hover { color: var(--gold-deep); }
.foot-bottom { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--rule); display: flex; justify-content: space-between; font-size: 13px; }

/* ── Sticky CTA (mobile) ── */
.sticky-cta { display: none; }

/* ── Responsive ── */
@media (max-width: 900px) {
  section { padding: 64px 0; }
  .wrap { padding: 0 22px; }
  .hero { padding-top: 36px; padding-bottom: 56px; }
  .hero-grid, .urgency-grid, .area-grid, .cta-grid, .formats-head { grid-template-columns: 1fr; gap: 36px; }
  .hero-head  { grid-column: 1; grid-row: 1; }
  .hero-media { grid-column: 1; grid-row: 2; align-self: auto; }
  .hero-body  { grid-column: 1; grid-row: 3; }
  .hero .lede { margin-top: 0; }
  .nav a:not(.nav-phone) { display: none; }
  .nav-phone { border-left: 0; padding-left: 0; font-size: 12px; letter-spacing: 0.01em; }
  .trust .wrap { grid-template-columns: 1fr 1fr; gap: 18px 24px; }
  .format-grid { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; margin: 0 -22px; padding-left: 22px; padding-right: 22px; }
  .format-card { min-width: 220px; scroll-snap-align: start; flex-shrink: 0; }
  .format-detail { grid-template-columns: 1fr; gap: 14px; }
  .services-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; gap: 32px; }
  .step::after { display: none; }
  .pricing-grid { grid-template-columns: 1fr; }
  .urgency-stats { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .field-row { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .hero-ctas .btn { width: 100%; }

  /* Sticky CTA */
  .sticky-cta {
    display: flex;
    align-items: center;
    gap: 10px;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 100;
    background: var(--ink);
    padding: 14px 22px;
    padding-bottom: calc(14px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(245,240,232,.15);
    transform: translateY(100%);
    transition: transform .35s cubic-bezier(.4,0,.2,1);
  }
  .sticky-cta.visible { transform: translateY(0); }
  .sticky-cta .btn-gold { flex: 1; width: auto; padding: 14px 20px; font-size: 15px; }
  .sticky-cta-call {
    display: flex; align-items: center; justify-content: center;
    width: 50px; height: 50px;
    border-radius: 4px;
    border: 1px solid rgba(245,240,232,.25);
    color: rgba(245,240,232,.85);
    text-decoration: none;
    flex-shrink: 0;
    transition: background .15s ease;
  }
  .sticky-cta-call:hover { background: rgba(245,240,232,.1); }
}
