/* Five Star Bath Solutions of Ottawa — shared prototype design system
   Built for the least technically confident reasonable user: large text,
   strong contrast, large tap targets, plain layout, minimal navigation. */

:root {
  --navy: #12324a;
  --navy-dark: #0b2032;
  --teal: #0f7a6b;
  --teal-dark: #0a5e52;
  --amber: #b5680a;
  --red: #b3261e;
  --green: #1e7a3d;
  --bg: #f6f7f8;
  --card: #ffffff;
  --ink: #1a2530;
  --ink-soft: #45525c;
  --line: #d8dee2;
  --focus: #0a5eff;
  --radius: 12px;
  --tap: 48px;
  font-size: 18px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

body { padding-bottom: 3rem; }

h1, h2, h3 { color: var(--navy); line-height: 1.25; }
h1 { font-size: 1.6rem; margin: 0 0 .25rem; }
h2 { font-size: 1.25rem; margin: 1.5rem 0 .5rem; }
h3 { font-size: 1.05rem; margin: 1rem 0 .35rem; }
p { margin: .35rem 0; }
a { color: var(--teal-dark); }

.small { font-size: .9rem; color: var(--ink-soft); }
.muted { color: var(--ink-soft); }

/* --- App shell --- */
.app-header {
  background: var(--navy);
  color: #fff;
  padding: .9rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 20;
}
.app-header .brand { font-weight: 700; font-size: 1.1rem; }
.app-header .brand small { display: block; font-weight: 400; font-size: .75rem; opacity: .85; }
.help-call {
  background: var(--teal);
  color: #fff;
  text-decoration: none;
  padding: .55rem .9rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: .95rem;
  white-space: nowrap;
  min-height: var(--tap);
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.help-call:active { background: var(--teal-dark); }

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 1rem;
}

/* --- Cards --- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
}
.card.highlight { border-left: 6px solid var(--teal); }
.card.warn { border-left: 6px solid var(--amber); background: #fff8ec; }
.card.danger { border-left: 6px solid var(--red); background: #fdf0ef; }

/* --- Buttons --- */
button, .btn {
  font-size: 1rem;
  font-family: inherit;
  min-height: var(--tap);
  padding: .65rem 1.1rem;
  border-radius: 10px;
  border: 2px solid var(--navy);
  background: #fff;
  color: var(--navy);
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
}
.btn-primary { background: var(--teal); border-color: var(--teal); color: #fff; }
.btn-primary:active { background: var(--teal-dark); }
.btn-block { width: 100%; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
button:disabled { opacity: .5; cursor: not-allowed; }

/* --- Status pills --- */
.pill {
  display: inline-block;
  font-size: .85rem;
  font-weight: 700;
  padding: .2rem .65rem;
  border-radius: 999px;
  background: #e6eef0;
  color: var(--navy);
}
.pill-tentative { background: #fdf0d8; color: #7a4a00; }
.pill-confirmed { background: #dcf1e4; color: var(--green); }
.pill-overdue { background: #fbe1df; color: var(--red); }
.pill-progress { background: #e3edfb; color: #14448c; }
.pill-done { background: #e0f0e6; color: var(--green); }

/* --- Forms --- */
label { display: block; font-weight: 700; margin: .9rem 0 .3rem; }
input[type=text], input[type=email], input[type=tel], input[type=date], input[type=number],
select, textarea {
  width: 100%;
  font-size: 1rem;
  font-family: inherit;
  padding: .65rem .7rem;
  min-height: var(--tap);
  border: 2px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}
textarea { min-height: 90px; }
fieldset { border: none; padding: 0; margin: 0; }
.field-hint { font-size: .85rem; color: var(--ink-soft); margin-top: .15rem; }
.choice-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .3rem; }
.choice-row label {
  font-weight: 500;
  margin: 0;
  border: 2px solid var(--line);
  border-radius: 999px;
  padding: .5rem 1rem;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  min-height: var(--tap);
}
.choice-row input { width: auto; min-height: auto; }

/* --- Tabs (portal nav) --- */
.tabbar {
  display: flex;
  overflow-x: auto;
  gap: .3rem;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: .4rem;
  position: sticky;
  top: 64px;
  z-index: 15;
}
.tabbar button {
  border: none;
  background: transparent;
  color: var(--ink-soft);
  font-weight: 700;
  border-radius: 999px;
  padding: .5rem .9rem;
  white-space: nowrap;
}
.tabbar button[aria-selected="true"] {
  background: var(--navy);
  color: #fff;
}
.tabpanel { display: none; }
.tabpanel.active { display: block; }

/* --- Lists --- */
.list-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .6rem 0;
  border-bottom: 1px solid var(--line);
  gap: .75rem;
}
.list-row:last-child { border-bottom: none; }

table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: .5rem .5rem; border-bottom: 1px solid var(--line); }
th { color: var(--ink-soft); font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; }
.table-wrap { overflow-x: auto; }

/* --- Utility --- */
.stack { display: flex; flex-direction: column; gap: .6rem; }
.row { display: flex; gap: .6rem; flex-wrap: wrap; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
@media (max-width: 480px) { .grid-2 { grid-template-columns: 1fr; } }
hr.rule { border: none; border-top: 1px solid var(--line); margin: 1rem 0; }
.banner {
  background: #fff8ec;
  border: 1px solid #f0d9a8;
  border-radius: var(--radius);
  padding: .75rem 1rem;
  margin-bottom: 1rem;
  font-size: .95rem;
}
.footer-note {
  text-align: center;
  color: var(--ink-soft);
  font-size: .85rem;
  padding: 1.5rem 1rem 0;
}
.proto-banner {
  background: var(--navy-dark);
  color: #fff;
  text-align: center;
  font-size: .8rem;
  padding: .35rem;
}
