/* ==========================================================================
   California Trademark Pools — Concierge widget
   Scripted (no AI at runtime). Paired with assets/js/concierge.js
   ========================================================================== */
.ctp-root{
  --ctp-teal:#19b3c6; --ctp-teal-dp:#0e7d8c; --ctp-teal-br:#5fd5e4;
  --ctp-ink:#0e2a34; --ctp-abyss:#08191f; --ctp-body:#28383e; --ctp-slate:#6b8087; --ctp-hair:#dfeaec;
}
.ctp-root, .ctp-root *{ box-sizing:border-box; }
.ctp-root button{ font-family:inherit; }
.ctp-hide{ display:none !important; }

/* -------- Launcher bubble -------- */
.ctp-btn{
  position:fixed; right:26px; bottom:24px; z-index:99998;
  display:flex; align-items:center; gap:11px;
  background:linear-gradient(180deg,#1ec0d3,#12a2b5); color:#fff; border:none; border-radius:32px;
  padding:14px 22px 14px 17px; box-shadow:0 14px 34px rgba(8,25,31,.42); cursor:pointer;
  font-family:'Helvetica Neue',Helvetica,Arial,sans-serif; font-size:14.5px; font-weight:600;
  transition:transform .2s ease, box-shadow .2s ease, bottom .28s ease, opacity .2s ease;
}
.ctp-btn:hover{ transform:translateY(-2px); box-shadow:0 18px 42px rgba(8,25,31,.5); }
.ctp-btn:active{ transform:translateY(0); }
.ctp-btn svg{ width:23px; height:23px; flex:none; }

/* -------- First-visit nudge -------- */
.ctp-nudge{
  position:fixed; right:26px; bottom:88px; z-index:99998;
  background:#fff; color:var(--ctp-ink); border:1px solid #e3edef; border-radius:14px;
  padding:12px 40px 12px 16px; max-width:288px; line-height:1.35;
  font-family:'Helvetica Neue',Helvetica,Arial,sans-serif; font-size:13.5px; font-weight:600;
  box-shadow:0 12px 34px rgba(8,25,31,.26); cursor:pointer;
  opacity:0; transform:translateY(8px); pointer-events:none;
  transition:opacity .3s ease, transform .3s ease, bottom .28s ease;
}
.ctp-nudge.show{ opacity:1; transform:none; pointer-events:auto; }
.ctp-nudge small{ display:block; font-weight:400; color:var(--ctp-slate); font-size:12px; margin-top:2px; }
/* The ×: its hit area is about 44×49 px (it was 11×17, so a click a few px off the glyph landed on the bubble and opened the
   chat; Ryan, 2026-11-23). The padding grows the box and top/right move back by the same amounts, so the glyph sits exactly
   where it did (top 7, right 10). Its left edge stays inside the bubble's 40 px right padding, clear of the text. */
.ctp-nudge .ctp-nx{ position:absolute; top:-9px; right:-6.5px; padding:16px 16.5px; background:none; border:none; color:#8aa0a6; font-size:17px; line-height:1; cursor:pointer; border-radius:8px; }
.ctp-nudge .ctp-nx:focus{ outline:none; }
.ctp-nudge .ctp-nx:focus-visible{ outline:2px solid var(--ctp-teal); outline-offset:-13px; }
.ctp-nudge::after{ content:""; position:absolute; bottom:-8px; right:40px; width:14px; height:14px; background:#fff; border-right:1px solid #e3edef; border-bottom:1px solid #e3edef; transform:rotate(45deg); }

/* -------- Panel -------- */
.ctp-panel{
  position:fixed; right:26px; bottom:24px; z-index:99999;
  width:436px; max-height:min(680px, calc(100vh - 120px));
  background:#fff; border-radius:18px; box-shadow:0 22px 56px rgba(8,25,31,.36);
  overflow:hidden; overscroll-behavior:contain; display:flex; flex-direction:column;
  font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;
  transform-origin:bottom right; opacity:0; transform:translateY(14px) scale(.98); pointer-events:none;
  transition:opacity .24s ease, transform .24s ease, bottom .28s ease;
}
.ctp-panel.open{ opacity:1; transform:none; pointer-events:auto; }

.ctp-hd{ background:var(--ctp-abyss); color:#fff; padding:18px 22px 16px; display:flex; align-items:flex-start; justify-content:space-between; flex:none; }
/* Logo lockup on one line: same fonts as the site nav logo (.nav .brand): "Script" for California / Pools, InterV 800 for TRADEMARK with a teal underline.
   Both @font-face families are declared in home.css, which every page loads. */
.ctp-hd .ctp-nm{ line-height:1.05; }
.ctp-hd .ctp-brand{ display:flex; flex-direction:row; align-items:baseline; gap:8px; white-space:nowrap; width:fit-content; line-height:1.1; color:#fff; }
.ctp-hd .ctp-brand .b1{ font-family:"Script",cursive; font-size:26px; line-height:1; color:#fff; }
.ctp-hd .ctp-brand .b2{ font-family:"InterV","Inter","Helvetica Neue",Arial,sans-serif; font-weight:800; font-size:24px; letter-spacing:2.5px; color:var(--ctp-teal-br);
  text-decoration:underline; text-decoration-color:var(--ctp-teal); text-decoration-thickness:2.5px; text-underline-offset:4px; }
.ctp-hd .ctp-brand .b3{ font-family:"Script",cursive; font-size:23px; line-height:1; color:#fff; }
.ctp-hd .ctp-sub{ display:block; font-family:'Helvetica Neue',Arial,sans-serif; font-style:normal; font-size:14px; letter-spacing:.3px; color:#9fd0d8; margin-top:11px; }
.ctp-hd .ctp-x{ background:none; border:none; color:#7fa6ad; font-size:30px; line-height:1; cursor:pointer; padding:0 2px; transition:color .15s; }
.ctp-hd .ctp-x:hover{ color:#fff; }

.ctp-bd{ overscroll-behavior:contain; padding:16px 16px 8px; overflow-y:auto; flex:1; background:#f3f8f9; -webkit-overflow-scrolling:touch; display:flex; flex-direction:column; }
.ctp-msg{ align-self:flex-start; max-width:92%; background:#fff; border:1px solid var(--ctp-hair); border-radius:3px 14px 14px 14px; padding:13px 16px; font-size:15.4px; line-height:1.52; color:var(--ctp-body); margin-bottom:13px; box-shadow:0 2px 8px rgba(8,25,31,.05); }
.ctp-msg b{ color:var(--ctp-ink); }
.ctp-msg ul{ margin:7px 0 4px; padding-left:2px; list-style:none; }
.ctp-msg li{ position:relative; padding-left:15px; margin-bottom:3px; }
.ctp-msg li::before{ content:""; position:absolute; left:2px; top:7px; width:5px; height:5px; background:var(--ctp-teal-dp); border-radius:50%; }
.ctp-user{ align-self:flex-end; max-width:82%; background:linear-gradient(180deg,#1ec0d3,#12a2b5); color:#fff; border-radius:14px 14px 3px 14px; padding:11px 15px; font-size:15px; line-height:1.45; margin-bottom:13px; font-weight:500; }

.ctp-typing{ align-self:flex-start; display:inline-flex; gap:4px; background:#fff; border:1px solid var(--ctp-hair); border-radius:3px 14px 14px 14px; padding:13px 14px; margin-bottom:12px; box-shadow:0 2px 8px rgba(8,25,31,.05); }
.ctp-typing span{ width:6px; height:6px; border-radius:50%; background:#9db6bb; animation:ctpBounce 1.2s infinite ease-in-out; }
.ctp-typing span:nth-child(2){ animation-delay:.15s; }
.ctp-typing span:nth-child(3){ animation-delay:.3s; }
@keyframes ctpBounce{ 0%,60%,100%{ transform:translateY(0); opacity:.5; } 30%{ transform:translateY(-4px); opacity:1; } }

.ctp-opts{ display:flex; flex-direction:column; gap:9px; padding-bottom:6px; }
.ctp-opt{ background:#fff; border:1.5px solid #cfe6ea; color:#0e6070; border-radius:12px; padding:13px 17px; font-size:14.8px; font-weight:600; text-align:left; cursor:pointer; transition:border-color .15s, background .15s; }
.ctp-opt:hover{ border-color:var(--ctp-teal); background:#f0fbfc; }
.ctp-opt.pri{ background:linear-gradient(180deg,#1ec0d3,#12a2b5); color:#fff; border-color:#12a2b5; box-shadow:0 6px 16px rgba(25,179,198,.3); margin-top:2px; }
.ctp-opt.pri:hover{ filter:brightness(1.04); }
.ctp-more{ background:none; border:none; color:var(--ctp-teal-dp); font-size:14px; font-weight:700; text-align:center; padding:4px 6px 2px; cursor:pointer; letter-spacing:.2px; }
.ctp-more:hover{ text-decoration:underline; }

.ctp-ft{ border-top:1px solid #e6eef0; padding:14px 16px 16px; background:#fff; flex:none; }
.ctp-in{ display:flex; gap:8px; align-items:center; }
.ctp-in input{ flex:1; border:1px solid #d8e5e7; border-radius:22px; padding:12px 16px; font-size:15px; color:var(--ctp-body); outline:none; font-family:inherit; }
.ctp-in input:focus{ border-color:var(--ctp-teal); }
.ctp-in .ctp-snd{ width:38px; height:38px; flex:none; border:none; border-radius:50%; background:var(--ctp-teal); color:#fff; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:background .15s; }
.ctp-in .ctp-snd:hover{ background:var(--ctp-teal-dp); }
/* Call button: same ghost-button language as the site nav phone, adapted to the light footer */
.ctp-call{ display:flex; align-items:center; justify-content:center; gap:9px; width:100%; height:48px; margin-top:12px;
  border:1.5px solid var(--ctp-teal); border-radius:10px; background:rgba(25,179,198,.07); color:var(--ctp-ink); text-decoration:none;
  font-size:15px; font-weight:700; letter-spacing:.8px; white-space:nowrap; transition:background .2s, color .2s, border-color .2s, box-shadow .2s; }
.ctp-call .g{ color:var(--ctp-teal-dp); font-size:18px; font-weight:400; line-height:1; transition:color .2s; }
.ctp-call:hover, .ctp-call:focus-visible{ background:var(--ctp-teal); border-color:var(--ctp-teal); color:#fff; box-shadow:0 8px 20px rgba(25,179,198,.30); outline:none; }
.ctp-call:hover .g, .ctp-call:focus-visible .g{ color:#fff; }

/* -------- Lifted above the home hero credential strip (.cred), desktop only -------- */
.ctp-lifted .ctp-btn, .ctp-lifted .ctp-panel{ bottom:108px; }
.ctp-lifted .ctp-nudge{ bottom:172px; }

/* -------- Mobile -------- */
@media (max-width:480px){
  .ctp-hd .ctp-brand{ gap:6px; }
  .ctp-hd .ctp-brand .b1{ font-size:22px; }
  .ctp-hd .ctp-brand .b2{ font-size:20px; letter-spacing:1.6px; }
  .ctp-hd .ctp-brand .b3{ font-size:19px; }
}
@media (max-width:360px){
  .ctp-hd .ctp-brand{ gap:4px; }
  .ctp-hd .ctp-brand .b1{ font-size:18px; }
  .ctp-hd .ctp-brand .b2{ font-size:16px; letter-spacing:1.2px; text-underline-offset:3px; }
  .ctp-hd .ctp-brand .b3{ font-size:16px; }
}
@media (max-width:480px){
  .ctp-btn{ right:16px; bottom:16px; padding:13px 18px 13px 15px; font-size:14px; }
  .ctp-nudge{ right:16px; bottom:76px; max-width:calc(100vw - 92px); }
  .ctp-panel{ width:calc(100vw - 20px); right:10px; bottom:10px; max-height:calc(100vh - 20px); border-radius:16px; }
  /* on phones the panel fills the screen, so never lift */
  .ctp-lifted .ctp-btn{ bottom:16px; }
  .ctp-lifted .ctp-panel{ bottom:10px; }
  .ctp-lifted .ctp-nudge{ bottom:76px; }
}

/* Ride above a page footer bar (.req-foot), set by concierge.js updateFoot(); --ctp-foot = visible bar height. */
.ctp-above-foot .ctp-btn{ bottom:calc(var(--ctp-foot, 0px) + 16px); }
.ctp-above-foot .ctp-nudge{ bottom:calc(var(--ctp-foot, 0px) + 80px); }
.ctp-above-foot .ctp-panel{ bottom:calc(var(--ctp-foot, 0px) + 16px); max-height:calc(100vh - var(--ctp-foot, 0px) - 120px); }

/* Phones (<=640px), Ryan 2026-11-16: small icon-only circle in the lower-right corner, no nudge bubble, so it never
   blocks the footer or page content. The label stays for screen readers via the button's aria-label. */
@media (max-width:640px){
  .ctp-btn{ width:54px; height:54px; padding:0; justify-content:center; gap:0; border-radius:50%; right:14px; bottom:14px; }
  .ctp-btn .ctp-lbl{ display:none; }
  .ctp-btn svg{ width:24px; height:24px; }
  .ctp-nudge{ display:none !important; }
  .ctp-lifted .ctp-btn{ bottom:14px; }
}

/* Narrower panel and a clear left/right split (Ryan 2026-11-17): the team's replies sit on the left, the visitor's
   messages and the tap-to-answer choices sit on the right, each capped well short of full width. */
@media (min-width:481px){ .ctp-panel{ width:384px; } }
.ctp-msg{ max-width:82%; }
.ctp-user{ max-width:74%; margin-left:auto; }
.ctp-opts{ align-items:flex-end; }
.ctp-opts .ctp-opt, .ctp-opts .ctp-more{ max-width:82%; text-align:left; }
@media (max-width:480px){ .ctp-msg{ max-width:88%; } .ctp-user{ max-width:80%; } .ctp-opts .ctp-opt, .ctp-opts .ctp-more{ max-width:88%; } }
.ctp-hd{ padding:16px 18px 14px; }
.ctp-hd .ctp-brand{ gap:6px; }
.ctp-hd .ctp-brand .b1{ font-size:22px; }
.ctp-hd .ctp-brand .b2{ font-size:20px; letter-spacing:2px; }
.ctp-hd .ctp-brand .b3{ font-size:20px; }
/* Chat: the Cloudflare Turnstile slot above the input (empty and out of the way unless Cloudflare needs a click) */
.ctp-ts{ margin:0 0 10px; }
.ctp-ts:empty{ display:none; }

/* The panel takes focus when the chat opens on a touch screen (no keyboard pops up); it needs no focus ring of its own. */
.ctp-panel:focus{ outline:none; }

/* The chat header is the logo alone, filling the header beside the close button (Ryan, 2026-11-24: "just get rid of that all
   together and have it only be our logo taking up the whole chat box header"). The header is a size container: the logo's size
   follows its width (100cqw less the close button and the gap). At 20px for TRADEMARK the logo measures 289px wide, so 20/289
   of the room is the size that fills it; each word keeps its proportion to TRADEMARK. */
.ctp-hd{ container-type:inline-size; align-items:center; padding:18px 18px; }
.ctp-hd .ctp-nm{ flex:1 1 auto; min-width:0; margin-right:14px; }
.ctp-hd .ctp-brand{ font-size:calc((100cqw - 38px) * 20 / 289); gap:.3em; }
.ctp-hd .ctp-brand .b1{ font-size:1.1em; }
.ctp-hd .ctp-brand .b2{ font-size:1em; letter-spacing:.1em; }
.ctp-hd .ctp-brand .b3{ font-size:1em; }
