/* My Water Damage Hero — TEST app. Navy palette from the brand/site
   (--navy #101F33), gold accent from the logo, drop blue for highlights. */
:root {
  --navy: #101F33;
  --navy2: #1B3350;
  --gold: #F2B01E;
  --blue: #1E9BD7;
  --ink: #16222E;
  --muted: #5C6B7A;
  --bg: #EEF2F6;
  --card: #FFFFFF;
  --line: #D8E0E8;
  --good: #1E7B34;
  --warn: #B26A00;
  --radius: 14px;
}
* { box-sizing: border-box; }
body {
  margin: 0; font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg); color: var(--ink); -webkit-text-size-adjust: 100%;
}
.hidden { display: none !important; }

/* ── header ── */
/* v12 (Nov 18, 2026): stacked app-style header — logo + name on their
   own line, tagline full width under it, actions in their own row.
   The old single-row flex squeezed the text block to ~110px at phone
   width (one word per line, buttons overlapping the tagline). */
.topbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px;
  background: var(--navy); color: #fff; padding: 10px 14px 12px;
  position: sticky; top: 0; z-index: 20;
}
.topbar-main { display: flex; align-items: center; gap: 12px; flex: 1 1 auto; min-width: 0; }
.topbar .logo { width: 52px; height: 52px; object-fit: contain; flex: none; }
.topbar .brand { font-weight: 800; font-size: 18px; letter-spacing: .2px; white-space: nowrap; }
.topbar .tagline { flex: 1 1 100%; font-size: 12.5px; line-height: 1.35; color: #BCD0E4; }
.call-btn {
  background: var(--gold); color: var(--navy); font-weight: 800; text-decoration: none;
  padding: 9px 12px; border-radius: 999px; font-size: 14px; white-space: nowrap;
}

main { max-width: 680px; margin: 0 auto; padding: 14px 12px 48px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; margin-bottom: 14px; box-shadow: 0 1px 3px rgba(16,31,51,.06);
}
.hero-card { background: var(--navy); color: #fff; border: none; }
.hero-card h1 { margin: 2px 0 8px; font-size: 22px; }
.hero-card p { margin: 0 0 8px; color: #D7E4F2; line-height: 1.45; }
.demo-banner {
  display: inline-block; background: var(--gold); color: var(--navy); font-weight: 800;
  padding: 3px 10px; border-radius: 999px; font-size: 12px; margin: 4px 0 0 !important;
}
h2 { font-size: 18px; margin: 4px 0 10px; }
h3 { font-size: 15px; margin: 14px 0 8px; }
p.sub { color: var(--muted); font-size: 13.5px; line-height: 1.45; margin: 0 0 10px; }

/* ── forms ── */
label { display: block; font-size: 13.5px; font-weight: 600; margin: 10px 0 4px; }
input, select, textarea {
  width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px;
  font-size: 16px; background: #fff; color: var(--ink); margin-top: 4px; font-weight: 400;
}
textarea { min-height: 74px; resize: vertical; }
.btn {
  display: inline-block; border: none; cursor: pointer; border-radius: 10px;
  padding: 12px 16px; font-size: 15px; font-weight: 700; text-align: center; text-decoration: none;
}
.btn.primary { background: var(--gold); color: var(--navy); width: 100%; margin-top: 14px; }
.btn.primary.big { font-size: 16px; padding: 14px; }
.btn.navy { background: var(--navy); color: #fff; }
.btn.ghost { background: transparent; color: var(--muted); width: 100%; margin-top: 6px; }
.btn.small { padding: 8px 12px; font-size: 13.5px; width: auto; margin-top: 0; }
.btn.danger { background: #FDECEC; color: #9B1C1C; }
.err { color: #B3261E; font-size: 13.5px; min-height: 18px; margin: 8px 0 0; }
.ok-msg { color: var(--good); font-size: 14px; font-weight: 600; }
.linklike { background: none; border: none; color: var(--blue); font-size: 13.5px; cursor: pointer; padding: 0; font-weight: 600; }
.notsure { font-size: 12px; margin-left: 8px; }

.seg-toggle { display: flex; background: var(--bg); border-radius: 10px; padding: 4px; margin-bottom: 8px; }
.seg { flex: 1; border: none; background: transparent; padding: 10px; border-radius: 8px; font-weight: 700; font-size: 14.5px; cursor: pointer; color: var(--muted); }
.seg.active { background: var(--navy); color: #fff; }
.demo-creds { margin-top: 14px; background: #FFF7E0; border: 1px dashed var(--gold); border-radius: 10px; padding: 10px 12px; font-size: 13px; }
.demo-creds p { margin: 3px 0; }

/* ── tabs ── */
.tabs { display: flex; gap: 6px; margin-bottom: 8px; flex-wrap: wrap; }
.tab {
  flex: 1 1 auto; border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 10px 8px; font-size: 13.5px; font-weight: 700; cursor: pointer; color: var(--navy2);
}
.tab.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.whoami { font-size: 13px; color: var(--muted); margin: 2px 2px 12px; }

/* ── property cards / lists ── */
.prop-card { cursor: pointer; }
.prop-card .pname { font-size: 17px; font-weight: 800; }
.chip {
  display: inline-block; font-size: 11.5px; font-weight: 700; padding: 2.5px 9px;
  border-radius: 999px; background: #E3EDF7; color: var(--navy2); margin-left: 6px; vertical-align: 2px;
}
.chip.gold { background: #FCEFC7; color: #7A5200; }
.chip.green { background: #E2F3E5; color: var(--good); }
.chip.gray { background: #E8ECEF; color: var(--muted); }
.addr { color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.row { display: flex; gap: 8px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.spread { justify-content: space-between; }
.item {
  border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 10px; background: #FBFCFE;
}
.item .it-title { font-weight: 800; font-size: 15px; }
.item .it-sub { font-size: 13.5px; color: var(--ink); line-height: 1.5; margin-top: 3px; white-space: pre-wrap; }
.item .it-label { font-size: 11.5px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; margin-top: 8px; }
.item img.photo { width: 100%; max-height: 260px; object-fit: cover; border-radius: 10px; margin-top: 8px; }
.section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.section-head h2 { margin: 0; }
details.survey-sec { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; background: #fff; }
details.survey-sec summary { font-weight: 800; padding: 12px 14px; cursor: pointer; font-size: 15px; }
details.survey-sec .sec-body { padding: 0 14px 14px; }
.q-block { border-top: 1px solid var(--line); padding-top: 8px; margin-top: 8px; }
.q-block .q-label { font-weight: 700; font-size: 14px; }

/* ── billing ── */
.stage { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 8px; background: #FBFCFE; }
.stage .s-info { flex: 1; }
.stage .s-label { font-weight: 800; }
.stage .s-amt { color: var(--muted); font-size: 13.5px; }
.status { font-size: 11.5px; font-weight: 800; padding: 3px 9px; border-radius: 999px; }
.status.paid { background: #E2F3E5; color: var(--good); }
.status.due { background: #FCEFC7; color: var(--warn); }
.status.upcoming { background: #E8ECEF; color: var(--muted); }

/* ── partners ── */
.partner .pname { font-weight: 800; font-size: 15px; }
.partner .pcontact { color: var(--muted); font-size: 13px; }
.partner .plinks { margin-top: 6px; display: flex; gap: 14px; font-size: 14px; font-weight: 700; }
.partner .plinks a { color: var(--blue); text-decoration: none; }

/* ── modal / toast ── */
.modal { position: fixed; inset: 0; background: rgba(10, 20, 32, .66); display: flex; align-items: center; justify-content: center; z-index: 50; padding: 18px; }
.modal-card { background: #fff; border-radius: 18px; padding: 22px; max-width: 420px; width: 100%; text-align: center; border-top: 6px solid var(--gold); }
.modal-card .modal-logo { width: 84px; height: 84px; object-fit: contain; }
.modal-card h2 { margin: 8px 0; }
.modal-card p { color: var(--muted); line-height: 1.5; font-size: 14.5px; }
.toast {
  position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%);
  background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 999px;
  font-size: 14px; font-weight: 600; z-index: 60; box-shadow: 0 4px 16px rgba(0,0,0,.25);
  max-width: 92vw; text-align: center;
}
.req-urgent { border: 2px solid #C62828; border-radius: var(--radius); padding: 14px; background: #FFF5F5; margin-bottom: 14px; }
.req-urgent .btn.primary { background: #C62828; color: #fff; margin-top: 8px; }

/* ── employee space ── */
.it-label { font-size: 11.5px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; margin-top: 8px; }
.job-num { font-size: 20px; font-weight: 800; color: var(--navy); }
.clock-banner {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  border: 2px solid var(--good); background: #F2FAF3; font-size: 14.5px;
}
.btn.big-clock { width: 100%; padding: 18px; font-size: 19px; margin-top: 10px; border-radius: 12px; }
.btn.big-clock.go { background: var(--good); color: #fff; }
.btn.big-clock.stop { background: #C62828; color: #fff; }
.photo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.photo-grid figure { margin: 0; }
.photo-grid img { width: 100%; height: 130px; object-fit: cover; border-radius: 10px; display: block; }
.photo-grid figcaption { font-size: 12px; color: var(--ink); margin-top: 4px; line-height: 1.35; }
.photo-grid figcaption span { color: var(--muted); }
.feed-item { display: flex; gap: 9px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.feed-item:last-child { border-bottom: none; }
.feed-item .feed-ic { font-size: 16px; line-height: 1.4; }

/* ── Nov 17, 2026 (night): front door + build-out ── */
.topbar-actions { flex: 1 1 100%; display: flex; align-items: stretch; gap: 8px; margin-top: 2px; }
.topbar-actions .call-btn, .topbar-actions .text-btn {
  flex: 1 1 0; display: flex; align-items: center; justify-content: center; text-align: center;
}
.topbar-actions .menu-btn { flex: 0 0 42px; margin-left: auto; }
/* Desktop: tagline sits under the name, actions take one row at right. */
@media (min-width: 860px) {
  .topbar {
    display: grid; grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "main actions" "tagline actions"; column-gap: 16px;
  }
  .topbar-main { grid-area: main; }
  .topbar .tagline { grid-area: tagline; }
  .topbar-actions { grid-area: actions; flex: none; align-self: center; margin-top: 0; }
  .topbar-actions .call-btn, .topbar-actions .text-btn { flex: 0 0 auto; }
}
.text-btn {
  background: #FFD54D; color: #101F33; font-weight: 800; text-decoration: none;
  padding: 9px 12px; border-radius: 999px; font-size: 14px; white-space: nowrap;
  animation: tus-blink 1.06s steps(1, end) infinite;
}
@keyframes tus-blink { 0%, 54% { opacity: 1; } 55%, 100% { opacity: .07; } }
@media (prefers-reduced-motion: reduce) { .text-btn { animation: none; } }
.portal-btn {
  background: #fff; color: #101F33; font-weight: 800; border: none; cursor: pointer;
  padding: 9px 14px; border-radius: 999px; font-size: 14px; white-space: nowrap; min-height: 40px;
}
.menu-btn {
  background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.55); cursor: pointer;
  width: 42px; height: 42px; border-radius: 10px; font-size: 19px; line-height: 1;
}
.menu-drawer {
  position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 2px solid var(--line);
  padding: 10px 14px 14px; display: flex; flex-direction: column; gap: 2px;
  box-shadow: 0 10px 24px rgba(16,31,51,.18);
}
.menu-item {
  display: block; width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  font-size: 16px; font-weight: 600; color: var(--ink); padding: 10px 6px; text-decoration: none;
  border-bottom: 1px solid #EEF2F6;
}
.menu-item:last-child { border-bottom: none; }
.entry-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
@media (max-width: 520px) { .entry-grid { grid-template-columns: 1fr; } }
.entry-btn {
  background: #101F33; color: #fff; border: none; cursor: pointer; border-radius: var(--radius);
  padding: 18px 14px; font-size: 17px; font-weight: 800; text-align: center; min-height: 64px;
}
.entry-btn.small { padding: 14px 10px; font-size: 15.5px; min-height: 54px; }
.entry-btn:active { transform: scale(.99); }
.hero-card h1 { margin-top: 0; }
.stop-sign {
  width: 150px; height: 150px; margin: 6px auto 14px; background: #C62828; color: #fff;
  font-size: 37px; font-weight: 900; letter-spacing: 1px; display: flex; align-items: center; justify-content: center;
  clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
  border: 4px solid #fff; box-shadow: 0 0 0 3px #C62828;
}
.rule-box {
  background: #FFF5F5; border: 1.5px solid #C62828; border-radius: 10px;
  padding: 10px 12px; font-size: 14px; margin: 10px 0; line-height: 1.45;
}
ol.steps { padding-left: 20px; }
ol.steps li { margin-bottom: 10px; line-height: 1.5; }
.cal-month { margin-top: 14px; }
.cal-month h3 { margin-bottom: 6px; }
.cal-now { background: #FFF7E0; border-radius: 10px; padding: 8px 10px; }
.cal-check { display: flex; gap: 8px; align-items: flex-start; font-weight: 600; margin: 0; }
.cal-check input { width: 20px; height: 20px; margin-top: 1px; flex: none; }
select, input[type="date"] { font: inherit; }
details > summary { padding: 6px 0; }

/* v12 (Nov 18, 2026): front door is an app screen — Schedule Now is a
   big entry-style button under the audience buttons; the emergency
   menu item reads as an emergency. */
.entry-btn.schedule { background: var(--gold); color: var(--navy); width: 100%; margin-bottom: 14px; }
.menu-item.urgent { color: #C62828; font-weight: 800; }

/* Inspection scheduling (Nov 18, 2026): day + start-time pickers */
.slot-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.slot-grid .btn[disabled] { opacity: .45; }
