/* Bailey Design — design.jonbailey.xyz
   Sophisticated dark theme, mobile-first, local web design promo */

:root {
  --bg: #0c0f14;
  --bg-elevated: #12171f;
  --bg-card: #161c26;
  --bg-alt: #0f131a;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #e8eaef;
  --text-muted: #9aa3b2;
  --text-dim: #6b7485;
  --gold: #c4a574;
  --gold-soft: rgba(196, 165, 116, 0.15);
  --gold-hot: #d4b896;
  --accent: #7eb8c9;
  --success: #8fbc8f;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --font: "DM Sans", system-ui, -apple-system, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --header-h: 72px;
  --max: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--gold-hot);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: #e8d4b0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: var(--bg);
  padding: 0.75rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.container.narrow {
  width: min(100% - 2rem, 720px);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(12, 15, 20, 0.78);
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.site-header.scrolled {
  border-bottom-color: var(--border);
  background: rgba(12, 15, 20, 0.92);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(100% - 2rem, var(--max));
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.logo:hover {
  color: var(--text);
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--gold-hot), #9a7b4f);
  color: var(--bg);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1rem;
}

.logo-text {
  font-size: 1.05rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.15rem 1.25rem;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--text);
}

.nav .nav-cta {
  margin-left: 0.35rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-elevated);
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin-inline: auto;
  background: var(--text);
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.88rem;
}

.btn-lg {
  padding: 0.95rem 1.5rem;
  font-size: 1rem;
}

.btn-primary {
  background: linear-gradient(145deg, var(--gold-hot), var(--gold));
  color: #1a140c;
  box-shadow: 0 8px 28px rgba(196, 165, 116, 0.28);
}

.btn-primary:hover {
  color: #0c0f14;
  box-shadow: 0 12px 36px rgba(196, 165, 116, 0.4);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold-hot);
  background: var(--gold-soft);
}

.btn.full {
  width: 100%;
}

/* Hero */
.hero {
  position: relative;
  padding: 4.5rem 0 4rem;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  inset: -20% 10% auto;
  height: 70%;
  background:
    radial-gradient(ellipse 50% 60% at 70% 30%, rgba(196, 165, 116, 0.16), transparent 70%),
    radial-gradient(ellipse 40% 50% at 20% 60%, rgba(126, 184, 201, 0.08), transparent 70%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1rem;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 5vw, 3.55rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
}

.hero h1 em {
  font-style: italic;
  color: var(--gold-hot);
}

.lead {
  font-size: 1.12rem;
  color: var(--text-muted);
  max-width: 36rem;
  margin: 0 0 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.hero-trust {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.hero-trust li {
  position: relative;
  padding-left: 1.35rem;
  color: var(--text-dim);
  font-size: 0.95rem;
}

.hero-trust li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-soft);
}

/* Mock browser card */
.mock-browser {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transform: perspective(1000px) rotateY(-4deg) rotateX(2deg);
  transition: transform 0.5s var(--ease);
}

.hero-card:hover .mock-browser {
  transform: perspective(1000px) rotateY(0) rotateX(0);
}

.mock-chrome {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.85rem 1rem;
  background: #0a0d12;
  border-bottom: 1px solid var(--border);
}

.mock-chrome span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3a4150;
}

.mock-chrome span:nth-child(1) { background: #e36d6d; }
.mock-chrome span:nth-child(2) { background: #e0b45a; }
.mock-chrome span:nth-child(3) { background: #6fcf8a; }

.mock-url {
  margin-left: 0.5rem;
  flex: 1;
  background: var(--bg-elevated);
  border-radius: 6px;
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  color: var(--text-dim);
}

.mock-body {
  padding: 1.75rem 1.5rem 1.5rem;
}

.mock-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(126, 184, 201, 0.12);
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.mock-body h3 {
  font-family: var(--serif);
  font-size: 1.65rem;
  font-weight: 400;
  margin: 0 0 0.5rem;
}

.mock-body > p {
  color: var(--text-muted);
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
}

.mock-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.mock-stats div {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.5rem;
  text-align: center;
}

.mock-stats strong {
  display: block;
  font-size: 1.15rem;
  color: var(--gold-hot);
}

.mock-stats span {
  font-size: 0.72rem;
  color: var(--text-dim);
}

.mock-cta-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.pill {
  display: inline-flex;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: linear-gradient(145deg, var(--gold-hot), var(--gold));
  color: #1a140c;
  font-weight: 600;
  font-size: 0.85rem;
}

.pill-alt {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text);
}

/* Strip */
.strip {
  border-block: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 1rem 0;
}

.strip-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.75rem;
  color: var(--text-dim);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--border);
}

.section-head {
  margin-bottom: 2.75rem;
  max-width: 40rem;
}

.section-head.center {
  text-align: center;
  margin-inline: auto;
  max-width: 36rem;
}

.section-head h2,
.outcomes-copy h2,
.local-grid h2,
.cta-copy h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.9rem, 3.5vw, 2.65rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

.section-sub {
  color: var(--text-muted);
  margin: 0;
}

.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  transition: border-color 0.25s, transform 0.25s var(--ease);
}

.card:hover {
  border-color: rgba(196, 165, 116, 0.35);
  transform: translateY(-3px);
}

.card-icon {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 1rem;
}

.card h3 {
  margin: 0 0 0.65rem;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
}

/* Outcomes */
.outcomes {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: start;
}

.check-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}

.check-list li {
  position: relative;
  padding: 0.85rem 0 0.85rem 1.75rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}

.check-list li:last-child {
  border-bottom: none;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}

.check-list.compact li {
  padding: 0.45rem 0 0.45rem 1.75rem;
  border: none;
  font-size: 0.95rem;
}

.quote-card {
  background: linear-gradient(160deg, #1a2230, var(--bg-card));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow);
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
}

.quote-card blockquote {
  margin: 0 0 1.25rem;
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.45;
  color: var(--text);
}

.quote-attr {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-dim);
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}

.price-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
}

.price-card.featured {
  border-color: rgba(196, 165, 116, 0.45);
  background: linear-gradient(180deg, rgba(196, 165, 116, 0.08), var(--bg-card) 40%);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  transform: scale(1.02);
}

.price-card .badge {
  position: absolute;
  top: -0.7rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: #1a140c;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  white-space: nowrap;
}

.price-card header h3 {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.price-tag {
  margin: 0.25rem 0 0;
  color: var(--text-dim);
  font-size: 0.9rem;
}

.price {
  margin: 1.25rem 0 0.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
}

.price .amount {
  font-family: var(--serif);
  font-size: 2.4rem;
  letter-spacing: -0.02em;
  color: var(--gold-hot);
}

.price .period {
  color: var(--text-dim);
  font-size: 0.85rem;
}

.price-range {
  margin: 0 0 1.25rem;
  font-size: 0.82rem;
  color: var(--text-dim);
}

.price-card ul {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  flex: 1;
}

.price-card li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
  color: var(--text-muted);
  padding-left: 1.2rem;
  position: relative;
}

.price-card li::before {
  content: "·";
  position: absolute;
  left: 0.25rem;
  color: var(--gold);
  font-weight: 700;
}

.pricing-note {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.9rem;
  margin: 2rem auto 0;
  max-width: 40rem;
}

/* Process */
.process {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  counter-reset: none;
}

.process li {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  background: var(--gold-soft);
  color: var(--gold-hot);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.process h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.process p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Local */
.local-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 2.5rem;
  align-items: start;
}

.lead-sm {
  color: var(--text-muted);
  max-width: 36rem;
}

.local-points {
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
}

.local-points h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.local-points p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.map-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
}

.map-card h3 {
  margin: 0 0 1rem;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.5rem;
}

.map-card ul {
  margin: 0 0 1rem;
  padding-left: 1.1rem;
  color: var(--text-muted);
}

.map-card li {
  margin-bottom: 0.4rem;
}

.map-note {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* FAQ */
.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  margin-bottom: 0.65rem;
  padding: 0 1.15rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  padding: 1.1rem 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  color: var(--gold);
  font-size: 1.25rem;
  font-weight: 400;
  flex-shrink: 0;
}

.faq details[open] summary::after {
  content: "−";
}

.faq details p {
  margin: 0 0 1.15rem;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.faq details a {
  color: var(--gold-hot);
}

/* CTA */
.cta-section {
  padding-bottom: 5.5rem;
}

.cta-box {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  background:
    radial-gradient(ellipse 60% 80% at 0% 50%, rgba(196, 165, 116, 0.12), transparent 60%),
    var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow);
}

.cta-panel {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  align-self: center;
}

.cta-panel h3 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.cta-email a {
  font-family: var(--serif);
  font-size: 1.55rem;
  color: var(--gold-hot);
  text-decoration: none;
  word-break: break-all;
}

.cta-email a:hover {
  text-decoration: underline;
}

.cta-hint {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0.75rem 0 1.25rem;
}

.cta-tiny {
  margin: 1rem 0 0;
  font-size: 0.8rem;
  color: var(--text-dim);
  text-align: center;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 2rem;
  background: #090b10;
}

.footer-inner {
  display: grid;
  gap: 1.5rem;
}

.footer-logo {
  margin-bottom: 0.5rem;
}

.site-footer p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.92rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
}

.footer-links a:hover {
  color: var(--gold-hot);
}

.copyright {
  font-size: 0.82rem !important;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}

/* Reveal animation helpers */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid,
  .outcomes,
  .local-grid,
  .cta-box,
  .pricing-grid,
  .process,
  .cards-3 {
    grid-template-columns: 1fr;
  }

  .price-card.featured {
    transform: none;
  }

  .mock-browser {
    transform: none;
  }

  .quote-card {
    position: static;
  }
}

@media (max-width: 780px) {
  .nav-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1rem 1.25rem;
    background: rgba(12, 15, 20, 0.97);
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s var(--ease), opacity 0.25s;
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav a {
    padding: 0.85rem 0.5rem;
    border-bottom: 1px solid var(--border);
  }

  .nav .nav-cta {
    margin: 0.75rem 0 0;
    text-align: center;
  }

  .hero {
    padding: 2.5rem 0 3rem;
  }

  .section {
    padding: 3.5rem 0;
  }

  .cta-box {
    padding: 1.75rem 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .mock-browser,
  .card,
  .btn {
    transition: none;
  }
}
