/* ATX Home Rescue — Base reset, typography utilities, shared components */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; }

body {
  font-family: 'Archivo', system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Typography utilities ---------- */
.slab  { font-family: 'Anton', 'Oswald', sans-serif; font-weight: 400; letter-spacing: .01em; line-height: .95; text-transform: uppercase; }
.os    { font-family: 'Oswald', sans-serif; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.mono  { font-family: 'JetBrains Mono', monospace; }
.caveat{ font-family: 'Caveat', cursive; }

/* ---------- Container ---------- */
.container { max-width: 1240px; margin: 0 auto; padding: 0 28px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--orange);
  color: #fff;
  padding: 10px 18px;
  border-radius: 2px;
  font-weight: 700;
  font-size: 14px;
  font-family: inherit;
  text-decoration: none;
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: .06em;
  box-shadow: 0 2px 0 rgba(0,0,0,.12);
  transition: transform .15s, background .15s;
}
.btn:hover { background: var(--orange-hot); transform: translateY(-1px); }
.btn.lg    { padding: 14px 22px; font-size: 15px; }
.btn.ghost { background: transparent; color: var(--ink); border: 2px solid var(--ink); box-shadow: none; }
.btn.ghost:hover { background: var(--ink); color: #fff; transform: translateY(-1px); }
.btn.navy  { background: var(--navy); color: #fff; }
.btn.navy:hover { background: var(--navy-deep); }
.btn.wide  { width: 100%; justify-content: center; }

/* ---------- Language toggle ---------- */
.lang-toggle {
  background: transparent;
  border: 1.5px solid var(--ink);
  padding: 6px 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  cursor: pointer;
  border-radius: 2px;
  color: var(--ink);
}
.lang-toggle .lang-flag.off { color: var(--ink-soft); opacity: .5; }
.lang-toggle:hover { background: var(--ink); color: #fff; }
.lang-toggle:hover .lang-flag.off { color: #fff; opacity: .7; }

/* ---------- Live indicator dot ---------- */
.dot-live {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(43,182,115,.2);
  margin-left: auto;
}

/* ---------- Shared chat bubble & suggestions ---------- */
.bubble {
  background: #fff;
  border: 1px solid var(--rule);
  padding: 10px 12px;
  border-radius: 14px 14px 14px 4px;
  font-size: 14px;
  line-height: 1.4;
  max-width: 85%;
  margin-bottom: 10px;
}
.bubble.me {
  background: var(--navy);
  color: #fff;
  margin-left: auto;
  border-radius: 14px 14px 4px 14px;
  border-color: var(--navy);
}

.suggestions { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; }
.sug {
  background: #fff;
  border: 1px solid var(--rule);
  padding: 6px 10px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all .15s;
}
.sug:hover { background: var(--orange); color: #fff; border-color: var(--orange); }
