/* Applied Stoicism Labs — Production CSS */

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

:root {
  --bg:        #0d0f14;
  --surface:   #161820;
  --surface-2: #1e2028;
  --border:    #2a2d38;
  --accent:    #f97316;
  --accent-dk: #c2610f;
  --text:      #e4e5ea;
  --text-2:    #8b8fa8;
  --text-3:    #555870;
  --radius:    6px;
  --max-w:     1100px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ── CONTACT BAR ─────────────────────────────────────────────── */
.contact-bar {
  background: var(--accent);
  color: #000;
  text-align: center;
  padding: 0.5rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
}
.contact-bar a { color: #000; text-decoration: none; }
.contact-bar a:hover { text-decoration: underline; }
.contact-bar .sep { margin: 0 0.6rem; opacity: 0.5; }

/* ── HEADER / NAV ────────────────────────────────────────────── */
header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.logo {
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--text);
  white-space: nowrap;
}
.logo span { color: var(--accent); }

nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}
nav a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.15s;
}
nav a:hover { color: var(--text); }
.nav-cta {
  background: var(--accent);
  color: #000 !important;
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius);
  font-weight: 700;
}
.nav-cta:hover { background: var(--accent-dk) !important; }

.menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-direction: column;
  gap: 5px;
}
.menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: 0.25s;
}

@media (max-width: 720px) {
  .menu-btn { display: flex; }
  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.5rem 1.25rem;
    gap: 1rem;
  }
  nav.open { display: flex; }
  header { position: relative; }
}

/* ── LAYOUT ──────────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}
section { padding: 4rem 1.5rem; }
.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

/* ── HERO ────────────────────────────────────────────────────── */
.hero {
  padding: 5rem 1.5rem 4rem;
  background: linear-gradient(175deg, var(--surface) 0%, var(--bg) 60%);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.hero h1 {
  font-size: clamp(2rem, 5.5vw, 3.6rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 1.25rem;
}
.hero h1 em { color: var(--accent); font-style: normal; }
.hero .lead {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-2);
  max-width: 620px;
  margin: 0 auto 2rem;
}
.hero-actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }

/* ── BUTTONS ─────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #000; }
.btn-primary:hover { background: var(--accent-dk); }
.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-lg { padding: 1rem 2.2rem; font-size: 1rem; }

/* ── BADGE STRIP ─────────────────────────────────────────────── */
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-top: 2.5rem;
}
.badge {
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-2);
}
.badge strong { color: var(--accent); }

/* ── SECTION HEADER ──────────────────────────────────────────── */
.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}
h2.section-title {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}
.section-sub {
  color: var(--text-2);
  font-size: 1.05rem;
  max-width: 580px;
  margin-bottom: 2.5rem;
}

/* ── CARDS ───────────────────────────────────────────────────── */
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr 1fr; }

@media (min-width: 600px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.2s;
}
.card:hover { border-color: var(--accent); }
.card-icon { font-size: 1.6rem; margin-bottom: 0.75rem; }
.card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.4rem; }
.card p { font-size: 0.875rem; color: var(--text-2); line-height: 1.65; }

/* ── WHY-LOCAL STRIP ─────────────────────────────────────────── */
.why-strip {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  text-align: center;
}
@media (min-width: 768px) {
  .stat-row { grid-template-columns: repeat(4, 1fr); }
}
.stat-num {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
}
.stat-lbl {
  font-size: 0.82rem;
  color: var(--text-2);
  margin-top: 0.4rem;
  font-weight: 500;
}

/* ── PROCESS STEPS ───────────────────────────────────────────── */
.steps { display: grid; gap: 0; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(3, 1fr); } }

.step {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
}
.step-num {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.step h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.4rem; }
.step p { font-size: 0.875rem; color: var(--text-2); }

/* ── CITIES GRID ─────────────────────────────────────────────── */
.city-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .city-links { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
  .city-links { grid-template-columns: repeat(5, 1fr); }
}
.city-link {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
  transition: border-color 0.2s, color 0.2s;
}
.city-link:hover { border-color: var(--accent); color: var(--accent); }
.city-link .city-state { display: block; font-size: 0.75rem; color: var(--text-2); font-weight: 400; margin-top: 0.2rem; }

/* ── CTA BLOCK ───────────────────────────────────────────────── */
.cta-block {
  text-align: center;
  padding: 5rem 1.5rem;
}
.cta-block h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 0.85rem;
}
.cta-block p {
  color: var(--text-2);
  font-size: 1.05rem;
  max-width: 480px;
  margin: 0 auto 2rem;
}
.cta-email {
  display: block;
  font-size: 0.9rem;
  color: var(--text-2);
  margin-top: 1rem;
}
.cta-email a { color: var(--accent); text-decoration: none; }
.cta-email a:hover { text-decoration: underline; }

/* ── FOOTER ──────────────────────────────────────────────────── */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 3rem 1.5rem 1.5rem;
}
.footer-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem 3rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 640px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}
.footer-logo {
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 0.6rem;
}
.footer-logo span { color: var(--accent); }
.footer-desc {
  font-size: 0.85rem;
  color: var(--text-2);
  line-height: 1.65;
}
.footer-head {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 0.75rem;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.45rem; }
.footer-links a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--accent); }
.footer-links .nolink {
  color: var(--text-2);
  font-size: 0.875rem;
}
.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--text-3);
}

/* ── PAGE HERO (inner pages) ─────────────────────────────────── */
.page-hero {
  padding: 3rem 1.5rem 2.5rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.page-hero .breadcrumb {
  font-size: 0.8rem;
  color: var(--text-2);
  margin-bottom: 0.75rem;
}
.page-hero .breadcrumb a { color: var(--accent); text-decoration: none; }
.page-hero .breadcrumb a:hover { text-decoration: underline; }
.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 0.75rem;
}
.page-hero p {
  color: var(--text-2);
  font-size: 1.05rem;
  max-width: 620px;
}

/* ── FORM ────────────────────────────────────────────────────── */
.form-layout {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 860px) {
  .form-layout { grid-template-columns: 1fr 340px; }
}

.form-group { margin-bottom: 1.4rem; }
label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text);
}
label .req { color: var(--accent); margin-left: 2px; }
input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.7rem 1rem;
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s;
  -webkit-appearance: none;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
}
textarea { resize: vertical; min-height: 100px; }

.file-drop {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s;
  background: var(--surface-2);
}
.file-drop:hover,
.file-drop.dragover { border-color: var(--accent); }
.file-drop-icon { font-size: 2rem; margin-bottom: 0.6rem; }
.file-drop p { font-size: 0.875rem; color: var(--text-2); }
.file-drop p strong { color: var(--accent); }
.file-drop input { display: none; }
#file-name {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
}

.form-sidebar { display: flex; flex-direction: column; gap: 1rem; }

.callout {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
}
.callout .callout-title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.callout p { font-size: 0.875rem; color: var(--text-2); line-height: 1.6; margin-bottom: 0.5rem; }
.callout p:last-child { margin-bottom: 0; }
.callout a { color: var(--accent); }

.endpoint-notice {
  background: rgba(249,115,22,0.08);
  border: 1px solid rgba(249,115,22,0.35);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}
.endpoint-notice strong { color: var(--accent); }

/* ── TABLE ───────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; margin: 1.5rem 0; }
table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
thead th {
  background: var(--surface-2);
  padding: 0.8rem 1rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-2);
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}
tbody td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  line-height: 1.55;
}
tbody tr:hover td { background: var(--surface); }
.mat-name { font-weight: 700; color: var(--text); font-size: 0.95rem; }

.tag {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}
.tag-green  { background: rgba(34,197,94,0.12);  color: #4ade80; }
.tag-yellow { background: rgba(234,179,8,0.12);  color: #facc15; }
.tag-red    { background: rgba(239,68,68,0.12);  color: #f87171; }
.tag-orange { background: rgba(249,115,22,0.12); color: #fb923c; }
.tag-blue   { background: rgba(99,102,241,0.12); color: #a5b4fc; }

/* ── GALLERY ─────────────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (min-width: 600px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
.gcard {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s;
}
.gcard:hover { border-color: var(--accent); }
.photo-ph {
  aspect-ratio: 4/3;
  background: var(--surface-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.photo-ph .ph-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
}
.photo-ph .ph-text {
  font-size: 0.8rem;
  color: var(--text-2);
}
.gcard-body { padding: 0.9rem 1rem; }
.gcard-body h3 { font-size: 0.9rem; font-weight: 700; margin-bottom: 0.2rem; }
.gcard-body p { font-size: 0.78rem; color: var(--text-2); }

/* ── PROSE (city pages body copy) ───────────────────────────── */
.prose {
  max-width: 680px;
  color: var(--text-2);
  line-height: 1.75;
  font-size: 1rem;
}
.prose h2 {
  color: var(--text);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 2.25rem 0 0.65rem;
}
.prose h3 {
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 700;
  margin: 1.5rem 0 0.5rem;
}
.prose p { margin-bottom: 1rem; }
.prose ul { padding-left: 1.4rem; margin-bottom: 1rem; }
.prose li { margin-bottom: 0.35rem; }
.prose a { color: var(--accent); }
.prose strong { color: var(--text); }

/* ── HIGHLIGHT ROW ───────────────────────────────────────────── */
.hl-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.5rem 0;
}
.hl-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.5rem 0.9rem;
  font-size: 0.875rem;
  font-weight: 600;
}
.hl-item::before {
  content: '';
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* ── ALSO SERVING ────────────────────────────────────────────── */
.also-serving {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2rem 1.5rem;
}
.also-serving .section-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}
.also-serving .label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-2);
  flex-shrink: 0;
}
.also-serving a {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text-2);
  transition: border-color 0.15s, color 0.15s;
}
.also-serving a:hover { border-color: var(--accent); color: var(--accent); }

/* ── 404 ─────────────────────────────────────────────────────── */
.err-pg {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem;
}
.err-pg h1 { font-size: 5rem; font-weight: 900; color: var(--accent); line-height: 1; }
.err-pg h2 { font-size: 1.5rem; font-weight: 700; margin: 1rem 0 0.5rem; }
.err-pg p { color: var(--text-2); margin-bottom: 1.5rem; }

/* ── DIVIDER ─────────────────────────────────────────────────── */
hr { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
