/**
 * BOUCH Business Site — bouch.dev
 * Adapted from cv-site design system
 */

:root {
  --charcoal: #1C1917;
  --orange: #D97757;
  --cream: #FAF9F5;
  --gray: #e8e6dc;
  --mid-gray: #b0aea5;
  --bg: var(--cream);
  --card: #ffffff;
  --text: var(--charcoal);
  --text-muted: rgba(28, 25, 23, 0.6);
  --border: rgba(28, 25, 23, 0.12);
}

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

body {
  font-family: 'Space Mono', monospace;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 14px;
}

a { color: inherit; }
a:hover { color: var(--orange); }
img { max-width: 100%; }

/* ── Layout ── */

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-wide {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Typography ── */

h1, h2, h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 1px;
}

h1 { font-size: clamp(2.2rem, 6vw, 3.2rem); }
h2 { font-size: 1.8rem; color: var(--orange); }
h3 { font-size: 1.3rem; }

.eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--mid-gray);
  margin-bottom: 8px;
}

.text-muted { color: var(--text-muted); }

/* ── Header (dark, sticky) ── */

.site-header {
  padding: 20px 0;
  background: var(--charcoal);
  border-bottom: 2px solid var(--orange);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header .container-wide {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header .logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.4rem;
  letter-spacing: 2px;
  text-decoration: none;
  color: var(--cream);
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.site-header nav a {
  text-decoration: none;
  color: var(--mid-gray);
  transition: color 0.2s;
}

.site-header nav a:hover,
.site-header nav a.active {
  color: var(--cream);
}

.site-header nav .btn-nav {
  padding: 8px 16px;
  font-size: 11px;
  font-weight: 700;
  font-family: 'Space Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-decoration: none;
  background: var(--orange);
  color: var(--cream);
  transition: background 0.2s;
}

.site-header nav .btn-nav:hover {
  background: #c4694d;
  color: var(--cream);
}

/* ── Footer ── */

.cta-strip {
  background: var(--orange);
  padding: 48px 0;
  text-align: center;
}

.cta-strip h2 {
  color: var(--cream);
  font-size: 2rem;
  margin-bottom: 8px;
}

.cta-strip p {
  color: var(--cream);
  font-size: 14px;
  margin-bottom: 24px;
  opacity: 0.9;
}

.cta-strip .btn {
  background: var(--charcoal);
  color: var(--cream);
}

.cta-strip .btn:hover {
  background: #2d2926;
}

.site-footer {
  background: var(--charcoal);
  padding: 40px 0;
  font-size: 12px;
  color: var(--mid-gray);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-contact div {
  margin-bottom: 4px;
}

.footer-contact a {
  text-decoration: none;
  color: var(--mid-gray);
}

.footer-contact a:hover {
  color: var(--orange);
}

.footer-links {
  display: flex;
  gap: 16px;
}

.footer-links a {
  text-decoration: none;
  color: var(--mid-gray);
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

/* ── Buttons ── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 12px;
  font-weight: 700;
  font-family: 'Space Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--charcoal);
  color: var(--cream);
}

.btn:hover { background: #2d2926; color: var(--cream); }

.btn.secondary {
  background: transparent;
  color: var(--charcoal);
  border: 2px solid var(--charcoal);
}

.btn.secondary:hover {
  background: rgba(28, 25, 23, 0.06);
  color: var(--charcoal);
}

/* ── Tags ── */

.tag {
  display: inline-block;
  font-size: 10px;
  padding: 2px 8px;
  background: var(--gray);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ── Sections ── */

section {
  padding: 64px 0;
}

.section-header {
  margin-bottom: 32px;
}

/* ── Hero ── */

.hero {
  padding: 100px 0 72px;
}

.hero h1 {
  margin-bottom: 20px;
  max-width: 640px;
}

.hero .lede {
  font-size: 15px;
  line-height: 1.8;
  max-width: 560px;
  color: var(--text-muted);
}

.hero .actions {
  margin-top: 36px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ── Service Cards ── */

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 640px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}

.service-card {
  padding: 28px 24px;
  border-left: 4px solid var(--orange);
  background: var(--card);
}

.service-card h3 {
  margin-bottom: 4px;
}

.service-card .question {
  font-size: 13px;
  color: var(--orange);
  margin-bottom: 12px;
}

.service-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

.service-card .service-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--orange);
  text-decoration: none;
}

.service-card .service-link:hover {
  text-decoration: underline;
}

/* ── Stat Bar ── */

.stat-bar {
  background: var(--charcoal);
  padding: 48px 0;
}

.stat-bar .stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.stat-bar .stat {
  text-align: center;
  max-width: 240px;
}

.stat-bar .stat-number {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.4rem;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-bar .stat-label {
  font-size: 12px;
  color: var(--mid-gray);
  line-height: 1.5;
}

.stat-bar .stat-source {
  font-size: 10px;
  color: rgba(255,255,255,0.3);
  margin-top: 4px;
}

/* ── Case Study Cards ── */

.case-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 640px) {
  .case-grid { grid-template-columns: 1fr 1fr; }
}

.case-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--orange);
  padding: 28px 24px;
  text-decoration: none;
  display: block;
  transition: border-color 0.2s, transform 0.2s;
}

.case-card:hover {
  border-color: var(--orange);
  transform: translateY(-2px);
  color: inherit;
}

.case-card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.case-card .outcome {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.case-card .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

/* ── Testimonial ── */

.testimonial {
  background: var(--charcoal);
  padding: 64px 0;
}

.testimonial blockquote {
  max-width: 640px;
  margin: 0 auto;
  padding-left: 20px;
  border-left: 3px solid var(--orange);
}

.testimonial blockquote p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--cream);
  margin-bottom: 12px;
}

.testimonial blockquote p:last-of-type {
  margin-bottom: 0;
}

/* ── Contact ── */

.contact-info {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 48px;
}

@media (min-width: 640px) {
  .contact-info { grid-template-columns: 1fr 1fr; }
}

.contact-details h2 {
  margin-bottom: 16px;
}

.contact-details a {
  text-decoration: none;
  display: block;
  padding: 8px 0;
  font-size: 14px;
}

.contact-details .email {
  font-weight: 700;
  font-size: 16px;
}

.contact-note {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── Service Detail (services page) ── */

.service-detail {
  padding: 48px 0;
  border-top: 1px solid var(--border);
}

.service-detail .eyebrow {
  color: var(--orange);
}

.service-detail h2 {
  color: var(--text);
  margin-bottom: 16px;
}

.service-detail .description {
  font-size: 14px;
  line-height: 1.8;
  max-width: 640px;
  margin-bottom: 24px;
}

.service-detail ul {
  list-style: none;
  padding: 0;
  max-width: 640px;
}

.service-detail ul li {
  padding: 6px 0 6px 20px;
  position: relative;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
}

.service-detail ul li::before {
  content: "\2014";
  position: absolute;
  left: 0;
  color: var(--orange);
}

.service-detail .timescale {
  margin-top: 16px;
  font-size: 12px;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ── Funding Note ── */

.funding-note {
  padding: 24px;
  border-left: 3px solid var(--orange);
  margin-top: 48px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}

.funding-note strong {
  color: var(--text);
}

/* ── About Page ── */

.founder-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 48px;
}

.founder-bio h2 {
  margin-bottom: 12px;
}

.founder-bio p {
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 16px;
  max-width: 640px;
}

.approach-section {
  padding: 48px 0;
  border-top: 1px solid var(--border);
}

.approach-section h2 {
  margin-bottom: 16px;
}

.approach-section p {
  font-size: 14px;
  line-height: 1.8;
  max-width: 640px;
  margin-bottom: 16px;
}

/* ── Case Study Detail ── */

.breadcrumb {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--mid-gray);
  margin-bottom: 24px;
}

.breadcrumb a {
  text-decoration: none;
  color: var(--mid-gray);
}

.breadcrumb a:hover {
  color: var(--orange);
}

.case-detail {
  max-width: 640px;
}

.case-detail h2 {
  margin-top: 48px;
  margin-bottom: 16px;
}

.case-detail p {
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 16px;
}

.case-detail ul {
  list-style: none;
  padding: 0;
  margin-bottom: 16px;
}

.case-detail ul li {
  padding: 6px 0 6px 20px;
  position: relative;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
}

.case-detail ul li::before {
  content: "\2014";
  position: absolute;
  left: 0;
  color: var(--orange);
}

.case-detail .client-note {
  padding: 24px;
  border-left: 3px solid var(--orange);
  margin: 32px 0;
  font-size: 14px;
  color: var(--text);
  font-style: italic;
  line-height: 1.7;
}

/* ── Product Cards (listing page) ── */

.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 640px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
}

.product-card {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 28px 24px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s;
}

.product-card:hover {
  border-color: var(--orange);
  color: inherit;
}

.product-card .category {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--orange);
  margin-bottom: 8px;
}

.product-card h3 {
  margin-bottom: 4px;
}

.product-card .tagline {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
  flex-grow: 1;
}

.product-card .price-tag {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.6rem;
  color: var(--charcoal);
  margin-bottom: 12px;
}

.product-card .price-note {
  font-size: 11px;
  color: var(--mid-gray);
}

/* ── Product Detail Page ── */

.product-hero {
  padding: 80px 0 48px;
}

.product-hero .category {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--orange);
  margin-bottom: 8px;
}

.product-hero h1 {
  margin-bottom: 8px;
}

.product-hero .tagline {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.product-hero .price-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}

.product-hero .price-tag {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.4rem;
  color: var(--charcoal);
}

.product-hero .price-note {
  font-size: 12px;
  color: var(--mid-gray);
}

.feature-list {
  list-style: none;
  padding: 0;
  max-width: 640px;
}

.feature-list li {
  padding: 8px 0 8px 24px;
  position: relative;
  font-size: 14px;
  line-height: 1.6;
}

.feature-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--orange);
  font-weight: 700;
}

.quick-start {
  counter-reset: step;
  list-style: none;
  padding: 0;
  max-width: 640px;
}

.quick-start li {
  counter-increment: step;
  padding: 12px 0 12px 40px;
  position: relative;
  font-size: 14px;
  line-height: 1.6;
}

.quick-start li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  width: 28px;
  height: 28px;
  background: var(--charcoal);
  color: var(--cream);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.includes-list {
  list-style: none;
  padding: 0;
  max-width: 640px;
}

.includes-list li {
  padding: 6px 0 6px 24px;
  position: relative;
  font-size: 13px;
  color: var(--text-muted);
}

.includes-list li::before {
  content: "\2014";
  position: absolute;
  left: 0;
  color: var(--orange);
}

.trust-strip {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--mid-gray);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 16px;
}

.related-products {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) {
  .related-products { grid-template-columns: 1fr 1fr; }
}

/* ── Skip Nav ── */

.skip-nav {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--charcoal);
  color: var(--cream);
  padding: 8px 16px;
  font-size: 12px;
  z-index: 100;
}

.skip-nav:focus {
  left: 0;
}

/* ── Mobile Nav ── */

.nav-toggle { display: none; }
.nav-burger { display: none; }

@media (max-width: 560px) {
  .hero { padding: 60px 0 48px; }

  .services-grid { gap: 16px; }

  .stat-bar .stats {
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }

  .nav-burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 24px;
    height: 24px;
    cursor: pointer;
  }

  .nav-burger span,
  .nav-burger::before,
  .nav-burger::after {
    content: "";
    display: block;
    width: 100%;
    height: 2px;
    background: var(--cream);
    transition: transform 0.2s;
  }

  .site-header nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--charcoal);
    border-bottom: 2px solid var(--orange);
    padding: 16px 24px;
    flex-direction: column;
    gap: 12px;
  }

  .nav-toggle:checked ~ nav {
    display: flex;
  }

  .nav-toggle:checked ~ .nav-burger span {
    opacity: 0;
  }

  .nav-toggle:checked ~ .nav-burger::before {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle:checked ~ .nav-burger::after {
    transform: translateY(-7px) rotate(-45deg);
  }

  .site-header .container-wide {
    position: relative;
  }

  .footer-grid {
    flex-direction: column;
    gap: 24px;
  }
}
