/* ============================================================
   BadCookie Cannabis Consulting — Extraction & Lab Operations Consulting
   Charcoal / amber industrial palette. System font stack.
   ============================================================ */

:root {
  --ink: #14161a;
  --graphite: #1b1e24;
  --steel: #2a2f37;
  --steel-2: #353b45;
  --line: #3c434e;
  --amber: #f0a014;
  --amber-deep: #c8820a;
  --paper: #f4f5f7;
  --text: #d7dbe2;
  --text-dim: #a3aab6;
  --text-on-light: #1c1f25;
  --focus: #ffd166;
  --radius: 4px;
  --maxw: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    transition-duration: 0.001s !important;
  }
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--graphite);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

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

/* Phone links: keep the site palette; never default UA blue/purple */
a { color: var(--amber); }
a[href^="tel:"], a[href^="sms:"] { color: var(--amber); text-decoration: none; }
a[href^="tel:"]:hover, a[href^="sms:"]:hover { color: #ffb536; text-decoration: underline; }
/* Filled buttons stay dark-ink on amber: a[href^="tel:"] (0,1,1) outranks .btn-primary
   (0,1,0), so anchor-button rules must carry higher specificity (0,2,1+). */
a.btn, a.btn-primary, a.btn-ghost { color: var(--ink); }
a.btn-ghost { color: var(--text); }
a.btn-primary:hover, a.btn-primary:focus-visible, a.btn-primary:visited { color: var(--ink); }
a.btn-ghost:hover, a.btn-ghost:focus-visible, a.btn-ghost:visited { color: inherit; }
a.btn-primary svg, a.btn-ghost svg { color: inherit; }

/* ---------- Accessibility helpers ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0); clip-path: inset(50%);
  overflow: hidden; white-space: nowrap;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--amber); color: var(--ink);
  padding: 10px 16px; font-weight: 700; z-index: 100;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(20, 22, 26, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}

.header-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 64px;
}

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand-mark { width: 30px; height: 30px; color: var(--amber); flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 800; letter-spacing: 0.04em; font-size: 0.95rem; text-transform: uppercase; }
.brand-tag { font-size: 0.68rem; color: var(--text-dim); letter-spacing: 0.06em; text-transform: uppercase; }

.nav-toggle {
  display: none;
  background: transparent; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 9px 10px; cursor: pointer;
}
.nav-toggle-bar {
  display: block; width: 20px; height: 2px; background: var(--text);
  margin: 4px 0; transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.site-nav ul { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; align-items: center; }
.site-nav a {
  display: block; padding: 8px 12px; color: var(--text);
  text-decoration: none; font-size: 0.92rem; font-weight: 600;
  border-radius: var(--radius);
}
.site-nav a:hover { background: var(--steel); color: #fff; }
.nav-cta {
  background: var(--amber); color: var(--ink) !important;
  border: 1px solid var(--amber-deep);
}
.nav-cta:hover { background: var(--amber-deep); color: var(--ink) !important; }

/* ---------- Hero ---------- */
.hero {
  background:
    linear-gradient(180deg, rgba(20,22,26,0.25), rgba(20,22,26,0.9)),
    repeating-linear-gradient(90deg, transparent 0 39px, rgba(255,255,255,0.045) 39px 40px);
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  gap: 40px; padding-top: 64px; padding-bottom: 64px;
  align-items: center;
}
.eyebrow {
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--amber); margin: 0 0 12px;
}
h1 {
  font-size: clamp(2rem, 4.6vw, 3.3rem); line-height: 1.08;
  margin: 0 0 18px; color: #fff; letter-spacing: -0.015em; font-weight: 800;
}
.lede { font-size: 1.1rem; color: var(--text-dim); margin: 0 0 28px; max-width: 34em; }

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

.btn {
  display: inline-block; padding: 13px 22px; border-radius: var(--radius);
  font-weight: 700; text-decoration: none; font-size: 0.95rem;
  border: 1px solid transparent; cursor: pointer; font-family: inherit;
}
.btn-primary { background: var(--amber); color: var(--ink); border-color: var(--amber-deep); }
.btn-primary:hover { background: var(--amber-deep); color: var(--ink); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--text-dim); color: #fff; text-decoration: none; }
.btn-sm { padding: 10px 16px; font-size: 0.9rem; }
.btn-ico { width: 15px; height: 15px; margin-right: 7px; vertical-align: -2px; }

.hero-panel {
  background: var(--steel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
}
.spec-list { list-style: none; margin: 0; padding: 0; }
.spec-list li {
  display: grid; grid-template-columns: 96px 1fr; gap: 12px;
  padding: 10px 0; border-bottom: 1px dashed var(--line);
}
.spec-list li:last-child { border-bottom: 0; }
.spec-k { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); padding-top: 3px; }
.spec-v { font-size: 0.92rem; color: var(--text); }
.spec-v a { color: var(--amber); text-decoration: none; font-weight: 600; }
.spec-v a:hover { text-decoration: underline; }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-alt { background: var(--ink); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head { max-width: 44em; margin-bottom: 36px; }
h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem); margin: 0 0 12px;
  color: #fff; letter-spacing: -0.01em; font-weight: 800; line-height: 1.15;
}
.section-sub { color: var(--text-dim); margin: 0; }

/* ---------- Services ---------- */
.card-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px;
}
.card {
  background: var(--steel); border: 1px solid var(--line);
  border-top: 3px solid var(--amber);
  border-radius: var(--radius); padding: 20px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--steel-2); }
/* seven-card layout: rows of 3 / 3, final card centered below (2 cols -> paired rows) */
.card-grid > .card:nth-last-child(1):nth-child(odd) { grid-column: 1 / -1; width: calc((100% - 36px) / 3); margin-inline: auto; }
.card-num { font-size: 0.75rem; font-weight: 800; color: var(--amber); letter-spacing: 0.14em; margin-bottom: 10px; }
.card h3 { margin: 0 0 8px; font-size: 1.05rem; color: #fff; }
.card p { margin: 0; font-size: 0.92rem; color: var(--text-dim); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
.about-copy > p { color: var(--text-dim); }
.about-copy > p:first-of-type { font-size: 1.05rem; color: var(--text); max-width: 46em; }

.chip-row { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; }
.chip-row li {
  font-size: 0.78rem; font-weight: 600; color: var(--text);
  background: var(--steel); border: 1px solid var(--line);
  padding: 5px 10px; border-radius: 999px;
}

/* ---------- Process ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps li {
  background: var(--steel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px;
}
.step-num {
  display: inline-grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%;
  border: 2px solid var(--amber); color: var(--amber);
  font-weight: 800; margin-bottom: 12px;
}
.steps h3 { margin: 0 0 8px; font-size: 0.98rem; color: #fff; }
.steps p { margin: 0; font-size: 0.86rem; color: var(--text-dim); }

.callout {
  margin-top: 28px; padding: 16px 20px;
  background: rgba(240, 160, 20, 0.07);
  border: 1px solid rgba(240, 160, 20, 0.35);
  border-left: 4px solid var(--amber);
  border-radius: var(--radius);
}
.callout p { margin: 0; font-size: 0.9rem; color: var(--text-dim); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; }

/* One compact contact panel: number + Call / Text / Copy */
.contact-panel {
  background: var(--steel); border: 1px solid var(--line);
  border-left: 4px solid var(--amber); border-radius: var(--radius);
  padding: 22px;
}
.phone-label {
  margin: 0 0 6px; font-size: 0.7rem; font-weight: 800;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim);
}
.phone-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.phone-number {
  font-size: 1.5rem; font-weight: 800; letter-spacing: 0.02em;
  color: var(--amber) !important; text-decoration: none; line-height: 1.2;
  user-select: all; -webkit-user-select: all;
}
.phone-number:hover { text-decoration: underline; }
.copy-btn {
  padding: 8px 14px; font-size: 0.8rem; font-weight: 700;
  background: var(--steel-2); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--radius);
  cursor: pointer; font-family: inherit; white-space: nowrap;
}
.copy-btn:hover { border-color: var(--amber); color: #fff; }
.copy-btn[aria-pressed="true"] { background: var(--amber); color: var(--ink); border-color: var(--amber-deep); }
.phone-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }

/* ---------- Footer ---------- */
.site-footer { background: #101216; border-top: 1px solid var(--line); padding: 28px 0; }
.footer-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
.footer-brand { margin: 0; font-size: 0.85rem; color: var(--text-dim); }
.footer-links { list-style: none; display: flex; gap: 18px; margin: 0; padding: 0; }
.footer-links a { color: var(--text) !important; font-size: 0.85rem; text-decoration: none; }
.footer-links a:hover { color: var(--amber) !important; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 48px; gap: 30px; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid > .card:nth-last-child(1):nth-child(odd) { width: calc((100% - 18px) / 2); }
  .contact-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 700px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--graphite); border-bottom: 1px solid var(--line);
    display: none; padding: 8px 20px 16px;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 4px; }
  .site-nav a { padding: 12px 14px; font-size: 1rem; }

  .section { padding: 44px 0; }
  .hero-grid { padding-top: 36px; padding-bottom: 36px; }
  .card-grid { grid-template-columns: 1fr; }
  .card-grid > .card:nth-last-child(1):nth-child(odd) { width: 100%; }
  .steps { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 auto; text-align: center; }
  .spec-list li { grid-template-columns: 1fr; gap: 2px; }
  .phone-row { gap: 10px; }
  .phone-number { font-size: 1.22rem; }
  .copy-btn { padding: 10px 14px; }
  .phone-actions .btn { flex: 1 1 auto; text-align: center; }
  .footer-row { flex-direction: column; align-items: flex-start; }
}

/* Approved email placeholder (plain text, no link) */
.email-note { margin: 12px 0 0; font-size: 0.85rem; color: var(--text-dim); }
.email-note .email-ph { color: var(--text); font-weight: 600; }

/* Coverage statement (hero + contact): international on-site, remote available */
.coverage {
  margin: 0 0 24px; font-size: 0.92rem; font-weight: 600; color: var(--text);
  display: inline-block; padding: 8px 12px; border: 1px solid var(--line);
  border-left: 3px solid var(--amber); border-radius: var(--radius);
  background: var(--steel);
}
.contact-copy .coverage { margin: 16px 0 0; font-weight: 600; }
.callout p + p { margin-top: 10px; }
