/* ==========================================================
   TALME DIGITAL - shared shell
   Loaded LAST so it re-skins the older pages to match the
   home page: Montserrat, brand orange, dark nav and footer.
   ========================================================== */

/* ----------------------------------------------------------
   1. SHAPE + TYPE - identical on every theme. This is the
      TALME layout signature; only the colours change below.
   ---------------------------------------------------------- */
:root,[data-theme]{
  --tal-f:'Montserrat',system-ui,-apple-system,'Segoe UI',sans-serif;
  --font-display:'Montserrat',system-ui,sans-serif;
  --font-body:'Montserrat',system-ui,sans-serif;
  --display-weight:800;
  --display-tracking:-.03em;
  --display-transform:none;
  --radius:10px; --radius-lg:14px;
}

/* ----------------------------------------------------------
   2. COLOUR - two brand themes, TALME Light and TALME Dark.
      Both use the brand orange #ED4308. Chosen in the dashboard
      (Super Admin only) and shared with the site via localStorage.
      --primary      brand accent
      --primary-ink  readable text ON the accent
      --tal-page     page background
      --tal-surface  cards, inputs, panels
      --tal-text/-2/-3   body copy, secondary, muted
      --tal-border   hairlines
      --tal-ink      the dark chrome (top bar + footer)
   ---------------------------------------------------------- */

/* TALME Light - the brand default, used when no theme is set */
:root,
:root[data-theme="signal"]{
  --primary:#ed4308; --primary-2:#f4601f; --primary-dk:#cf3800; --primary-ink:#ffffff;
  --tal-page:#f7f4ee; --tal-surface:#ffffff; --tal-surface-2:#fbf9f5;
  --tal-text:#111111; --tal-text-2:#66635f; --tal-text-3:#8b8880;
  --tal-border:rgba(17,17,17,.12);
  --tal-ink:#111111; --tal-ink-2:#1a1a1a;
  --tal-tint:rgba(237,67,8,.10); --tal-glow:rgba(237,67,8,.16);
  --tal-cast:rgba(237,67,8,.95);
}
/* TALME Dark - the same brand orange on near-black */
:root[data-theme="dark"]{
  --primary:#ed4308; --primary-2:#f4601f; --primary-dk:#cf3800; --primary-ink:#ffffff;
  --tal-page:#0d0d0d; --tal-surface:#161616; --tal-surface-2:#1c1c1c;
  --tal-text:#f7f4ee; --tal-text-2:#b8b4ac; --tal-text-3:#8b8880;
  --tal-border:rgba(247,244,238,.13);
  --tal-ink:#080808; --tal-ink-2:#111111;
  --tal-tint:rgba(237,67,8,.14); --tal-glow:rgba(237,67,8,.22);
  --tal-cast:rgba(237,67,8,.85);
}

/* ----------------------------------------------------------
   3. Feed the theme into the palette the older pages already
      use, so every page follows without being rewritten.
   ---------------------------------------------------------- */
:root,[data-theme]{
  --tal-muted:var(--tal-text-3);
  --tal-line-d:rgba(255,255,255,.10);
  --tal-line-l:var(--tal-border);
  --line-l:var(--tal-border);
  --accent:var(--primary);
  --accent-2:var(--primary-2);
  --accent-3:var(--primary-2);
  --accent-ink:var(--primary-ink);
  --grad:linear-gradient(135deg,var(--primary-2),var(--primary));
  --grad-text:linear-gradient(100deg,var(--primary),var(--primary-2));
  --glow-1:var(--tal-tint);
  --glow-3:var(--tal-tint);
}
body{font-family:var(--tal-f)}
h1,h2,h3,h4,h5{font-family:var(--tal-f);letter-spacing:-.02em}

/* ---------------- shared top bar ---------------- */
.tal-nav{position:sticky;top:0;z-index:200;background:var(--tal-ink);
  -webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);
  border-bottom:1px solid var(--tal-line-d)}
.tal-nav .tal-in{max-width:1240px;margin:0 auto;padding:0 28px;height:76px;
  display:flex;align-items:center;justify-content:space-between;gap:22px}
.tal-logo img{height:34px;width:auto;display:block}
.tal-menu{display:flex;align-items:center;gap:28px;font-size:14.5px;font-weight:600}
.tal-menu a{color:rgba(255,255,255,.78);text-decoration:none;position:relative;padding:6px 0;
  transition:color .2s;white-space:nowrap}
.tal-menu a:hover,.tal-menu a.on{color:#fff}
.tal-menu a.on::after{content:'';position:absolute;left:0;right:0;bottom:-2px;height:2px;
  background:var(--primary-2);border-radius:2px}
.tal-cta{display:inline-flex;align-items:center;gap:8px;background:var(--primary);color:var(--primary-ink)!important;
  padding:12px 22px;border-radius:10px;font-weight:700;font-size:14px;text-decoration:none;
  box-shadow:0 10px 26px -14px var(--tal-cast);transition:background .2s,transform .2s}
.tal-cta:hover{background:var(--primary-dk);transform:translateY(-2px)}
.tal-cta::after{display:none!important}
.tal-signin{color:rgba(255,255,255,.72)!important;font-weight:600;font-size:14.5px;padding:6px 0;
  text-decoration:none;transition:color .2s;white-space:nowrap}
.tal-signin:hover{color:#fff!important}
.tal-signin::after{display:none!important}
.tal-burger{display:none;background:none;border:0;color:#fff;font-size:24px;cursor:pointer;line-height:1;
  width:44px;height:44px;place-items:center;margin-right:-10px;border-radius:10px}
.tal-burger:hover{background:rgba(255,255,255,.08)}
.tal-burger:focus-visible{outline:2px solid var(--primary);outline-offset:2px}

/* ---------------- shared footer ---------------- */
.tal-foot{background:var(--tal-ink);color:#fff;padding:64px 0 0;font-family:var(--tal-f)}
.tal-foot .tal-in{max-width:1240px;margin:0 auto;padding:0 28px}
.tal-grid{display:grid;grid-template-columns:1.4fr repeat(3,1fr) 1.3fr;gap:34px;padding-bottom:44px}
.tal-foot img.fl{height:32px;width:auto;object-fit:contain;margin-bottom:14px}
.tal-promise{font-size:13px;color:var(--primary-2);font-weight:700;letter-spacing:.04em;margin:0 0 20px}
.tal-foot h4{font-size:12px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;
  color:rgba(255,255,255,.5);margin:0 0 16px}
.tal-foot ul{list-style:none;display:grid;gap:11px;margin:0;padding:0}
.tal-foot li a,.tal-ct{font-size:14px;color:rgba(255,255,255,.72);text-decoration:none;transition:color .2s}
.tal-foot li a:hover,.tal-ct a:hover{color:var(--primary-2)}
.tal-ct{display:flex;gap:10px;align-items:flex-start;margin-bottom:11px}
.tal-ct svg{color:var(--primary-2);flex:none;margin-top:2px}
.tal-social{display:flex;gap:10px;margin-top:18px}
.tal-social a{width:36px;height:36px;border-radius:9px;background:rgba(255,255,255,.07);
  display:grid;place-items:center;font-size:14px;font-weight:700;color:#fff;text-decoration:none;
  transition:background .2s,transform .2s}
.tal-social a:hover{background:var(--primary);color:var(--primary-ink);transform:translateY(-2px)}
.tal-news{display:flex;gap:8px;margin-top:14px}
.tal-news input{flex:1;min-width:0;padding:12px 14px;border-radius:10px;background:rgba(255,255,255,.07);
  border:1px solid var(--tal-line-d);color:#fff;font-family:inherit;font-size:14px}
.tal-news input::placeholder{color:rgba(255,255,255,.4)}
.tal-news button{background:var(--primary);border:0;color:var(--primary-ink);border-radius:10px;padding:0 16px;
  font-size:17px;cursor:pointer}
.tal-bottom{border-top:1px solid var(--tal-line-d);padding:20px 0;display:flex;justify-content:space-between;
  gap:16px;flex-wrap:wrap;font-size:13px;color:rgba(255,255,255,.5)}
.tal-bottom a{color:rgba(255,255,255,.5);text-decoration:none}
.tal-bottom a:hover{color:#fff}

/* the older pages had their own header/footer - keep them out of the way */
header.nav,footer.ft{display:none!important}

@media(max-width:1080px){ .tal-grid{grid-template-columns:1fr 1fr 1fr} }
@media(max-width:900px){
  .tal-menu{position:fixed;left:0;right:0;top:76px;background:var(--tal-ink);flex-direction:column;
    align-items:flex-start;gap:0;padding:12px 28px 24px;border-bottom:1px solid var(--tal-line-d);display:none}
  .tal-menu.open{display:flex}
  .tal-menu a{padding:13px 0;width:100%;border-bottom:1px solid rgba(255,255,255,.06)}
  .tal-menu a.tal-cta{margin-top:14px;justify-content:center;border-bottom:0}
  .tal-burger{display:grid}
}
@media(max-width:700px){ .tal-grid{grid-template-columns:1fr 1fr} }
@media(max-width:520px){ .tal-grid{grid-template-columns:1fr} }

/* ==========================================================
   PAGE CONTENT - re-skinned to match the home page
   ========================================================== */
:root,[data-theme]{
  --bg:var(--tal-page); --bg-2:var(--tal-surface);
  --ink:var(--tal-text); --ink-2:var(--tal-text-2); --ink-3:var(--tal-text-3);
  --surface:var(--tal-surface); --surface-2:var(--tal-surface-2);
  --line:var(--tal-border); --line-2:var(--tal-border);
  --shadow:0 18px 40px -24px rgba(0,0,0,.45);
}
body{background:var(--tal-page);color:var(--tal-text)}

/* ---- headings: sentence case, not shouting ---- */
h1,h2,h3,h4,h5{text-transform:none!important;font-weight:800;letter-spacing:-.025em;line-height:1.14}
h1{font-size:clamp(34px,4.6vw,54px)}
h2{font-size:clamp(26px,3.4vw,40px)}
h3{font-size:clamp(17px,1.9vw,21px)}
.eyebrow,.crumb{font-size:12px!important;font-weight:700!important;letter-spacing:.16em!important;
  text-transform:uppercase!important;color:var(--primary)!important}
.crumb{color:var(--tal-text-3)!important}
.lead,.muted,.small{color:var(--tal-text-3)}
em,.acc{color:var(--primary);font-style:normal}

/* ---- page hero ---- */
.page-hero{background:var(--tal-surface);border-bottom:1px solid var(--line-l);padding:clamp(56px,7vw,92px) 0}
.page-hero .orb{opacity:.5}

/* ---- soft orange glows instead of the old tint ---- */
.orb{background:radial-gradient(circle,var(--tal-glow),transparent 66%)!important;filter:blur(10px)}

/* ---- cards ---- */
.card{background:var(--tal-surface);border:1px solid var(--line-l);border-radius:14px;box-shadow:none;
  transition:transform .28s ease,box-shadow .28s ease,border-color .28s ease}
.card:hover{transform:translateY(-6px);box-shadow:0 22px 46px -24px rgba(0,0,0,.32);border-color:var(--primary)}
.card .ic{width:46px;height:46px;border-radius:12px;display:grid;place-items:center;
  background:var(--tal-tint);font-size:21px;margin-bottom:14px}
/* The whole site now draws its icons from one 24x24 line set instead of the
   operating system's emoji font, which rendered differently on every device. */
.card .ic svg{width:23px;height:23px;display:block;color:var(--primary)}
.card:hover .ic svg{color:var(--primary)}
/* the assistant's service cards use the same icon set as the pages */
.hd-card-h svg,.hd-list a svg,.hd-msg a svg{flex:0 0 auto;color:var(--primary);vertical-align:-3px}
.svc-glyph{width:58px;height:58px;border-radius:15px;display:grid;place-items:center;
  background:var(--tal-tint);border:1px solid var(--line-l);color:var(--primary)}
.svc-glyph svg{display:block;width:28px;height:28px}
.track .ti svg{display:block;margin:0 auto;color:var(--primary)}
.tal-social a svg{display:block}


/* ---- pricing plans ---- */
.plan{background:var(--tal-surface);border:1px solid var(--line-l);border-radius:16px;
  transition:transform .28s,box-shadow .28s}
.plan:hover{transform:translateY(-6px);box-shadow:0 24px 50px -26px rgba(0,0,0,.34)}
.plan.on,.plan.feat{border-color:var(--primary);box-shadow:0 22px 48px -26px var(--tal-cast)}
.pn{color:var(--tal-text)}
.pp{color:var(--primary)!important}

/* ==========================================================
   BUTTONS - one system, used everywhere
   sizes: .btn-sm / default / .btn-lg
   kinds: .btn-primary (solid) / .btn-ghost (outline) / .btn-wa
   states: hover, active, keyboard focus, disabled
   ========================================================== */
.btn,.tal-cta{
  --btn-h:46px;
  display:inline-flex;align-items:center;justify-content:center;gap:9px;
  min-height:var(--btn-h);padding:0 24px;
  font-family:var(--tal-f)!important;font-size:14.5px!important;font-weight:700!important;
  line-height:1;letter-spacing:0!important;text-transform:none!important;text-decoration:none;
  white-space:nowrap;border:1.5px solid transparent!important;border-radius:10px!important;
  cursor:pointer;-webkit-appearance:none;appearance:none;box-shadow:none;
  transition:background .18s ease,border-color .18s ease,color .18s ease,
             transform .16s ease,box-shadow .18s ease;
}
.btn:hover,.tal-cta:hover{transform:translateY(-2px)}
.btn:active,.tal-cta:active{transform:translateY(0);transition-duration:.06s}
/* a visible ring for keyboard users, on both themes */
.btn:focus-visible,.tal-cta:focus-visible{
  outline:none;box-shadow:0 0 0 3px var(--tal-page),0 0 0 5px var(--primary)}
.btn[disabled],.btn.is-disabled,.btn[aria-disabled="true"]{
  opacity:.45;pointer-events:none;transform:none}
.btn>svg,.tal-cta>svg{width:18px;height:18px;flex:none}
.btn-sm{--btn-h:38px;padding:0 16px;font-size:13.5px!important}
.btn-lg{--btn-h:54px;padding:0 30px;font-size:15.5px!important}
/* white-space:nowrap above means a long label is cut off rather than wrapped.
   Measured: a long label lost its last word at 320px, and the three
   "Start with ..." buttons on the service pages did between 920 and 1000px.
   Below a laptop, let them wrap. */
@media(max-width:1024px){
  .btn,.tal-cta{white-space:normal;text-align:center;max-width:100%;
    line-height:1.25;padding-top:10px;padding-bottom:10px;height:auto}
}

/* solid */
.btn-primary{background:var(--primary)!important;color:var(--primary-ink)!important;
  box-shadow:0 10px 24px -14px var(--tal-cast)!important}
.btn-primary:hover{background:var(--primary-dk)!important;
  box-shadow:0 15px 30px -14px var(--tal-cast)!important}
.btn-primary:active{box-shadow:0 6px 14px -10px var(--tal-cast)!important}

/* outline */
.btn-ghost{background:transparent!important;color:var(--tal-text)!important;
  border-color:var(--tal-border)!important}
.btn-ghost:hover{border-color:var(--primary)!important;color:var(--primary)!important;
  background:var(--tal-tint)!important}

/* WhatsApp keeps its own colour, at a readable depth */
.btn-wa:hover{background:#0f7a6d!important;border-color:#0f7a6d!important}

/* comfortable thumb size on phones */
@media(max-width:640px){
  .btn,.tal-cta{--btn-h:48px;padding:0 20px}
  .btn-sm{--btn-h:42px}
}
@media(prefers-reduced-motion:reduce){
  .btn,.tal-cta{transition:background .18s ease,color .18s ease,border-color .18s ease}
  .btn:hover,.tal-cta:hover,.btn:active,.tal-cta:active{transform:none}
}

/* ---- pills / chips ---- */
.pill{border-radius:999px!important;border:1px solid var(--line-l)!important;background:var(--tal-surface)!important;
  color:var(--tal-text-2)!important;font-weight:600!important;font-size:13px!important;text-transform:none!important;
  letter-spacing:0!important;padding:9px 18px!important;transition:border-color .2s,color .2s}
.pill:hover,.pill.on{border-color:var(--primary)!important;color:var(--primary)!important}

/* ---- stats / key values ----
   site.css lays .stat out as a flex item separated by a right border and a
   40px right margin - no card, no padding on the other three sides. This
   theme then gave it a background and a border, which turned that divider
   geometry into a lopsided box: unequal widths and labels like "REPLY TIME"
   spilling out of the bottom-right corner. Reset the old geometry outright
   and lay them out as an equal grid instead. */
.stats{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;
  border-top:1px solid var(--line-l);padding-top:30px;margin-top:52px}
.stat,.kv{background:var(--tal-surface);border:1px solid var(--line-l);border-radius:14px}
.stat{display:flex;flex-direction:column;justify-content:center;gap:9px;min-width:0;
  padding:24px 22px!important;margin:0!important;border-right:1px solid var(--line-l)!important;
  transition:transform .3s cubic-bezier(.22,1,.36,1),box-shadow .3s,border-color .3s}
.stat:hover{transform:translateY(-4px);border-color:var(--primary);
  box-shadow:0 18px 40px -24px rgba(0,0,0,.32)}
.kv b,.stat b{color:var(--primary)}
/* Tabular figures: without them the card width twitches while the number
   counts up, because proportional digits are not the same width. */
.stat b{font-variant-numeric:tabular-nums;font-feature-settings:"tnum" 1;line-height:1.04}
.stat span{line-height:1.35}
@media(max-width:900px){.stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .stat{min-width:0!important}}
@media(max-width:430px){.stats{grid-template-columns:1fr}}

/* ---- WhatsApp as a second route on every lead form ----
   A quiet secondary link, not a competing primary button: the form stays the
   default and WhatsApp is there for anyone who would rather just message. */
.wa-alt{display:flex;align-items:center;justify-content:center;gap:10px;
  margin:14px 0 0;font-size:13.5px;color:var(--tal-text-2,#666)}
.wa-alt span{opacity:.7}
.wa-inline{display:inline-flex;align-items:center;gap:7px;font-weight:700;color:#128c4a}
.wa-inline:hover{text-decoration:underline}
.btn-wa{background:#25d366!important;color:#fff!important;border-color:#25d366!important}
.btn-wa:hover{background:#1fb855!important;border-color:#1fb855!important}

/* ---- service request form (assets/service-form.js) ---- */
.sf-sec{background:var(--tal-surface)}
.sf-head{max-width:60ch;margin-bottom:30px}
.sf-head h2{margin:6px 0 12px}
.sf-lede{color:var(--tal-text-2,#666);font-size:16px}
.sf-form{max-width:820px}
.sf-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 18px}
.sf-f{margin-bottom:18px;min-width:0}
.sf-opt{font-weight:600;font-size:11.5px;letter-spacing:.04em;text-transform:uppercase;
  color:var(--tal-text-2,#666);margin-left:6px}
.sf-f label,.sf-set legend{display:block;font-size:13px;font-weight:700;margin-bottom:7px;
  color:var(--tal-text,#111)}
.sf-f input,.sf-f textarea{width:100%;font:inherit;font-size:15px;padding:12px 14px;
  border:1px solid var(--line-l);border-radius:10px;background:var(--tal-page,#fff);
  color:var(--tal-text,#111)}
.sf-f input:focus-visible,.sf-f textarea:focus-visible{outline:none;border-color:var(--primary);
  box-shadow:0 0 0 3px rgba(237,67,8,.18)}
.sf-set{border:0;padding:0;margin:6px 0 20px}
.sf-items{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:4px}
.sf-item{display:flex;align-items:center;gap:11px;padding:11px 13px;cursor:pointer;
  border:1px solid var(--line-l);border-radius:10px;background:var(--tal-page,#fff);
  transition:border-color .2s,background .2s}
.sf-item:hover{border-color:var(--primary)}
.sf-item.on{border-color:var(--primary);background:var(--tal-tint,rgba(237,67,8,.06))}
.sf-item input{position:absolute;opacity:0;width:0;height:0}
.sf-tick{flex:0 0 auto;width:19px;height:19px;border-radius:5px;border:1.5px solid var(--line-l);
  display:grid;place-items:center;transition:all .2s}
.sf-item.on .sf-tick{background:var(--primary);border-color:var(--primary)}
.sf-item.on .sf-tick::after{content:'';width:5px;height:9px;border:solid #fff;
  border-width:0 2px 2px 0;transform:rotate(45deg) translate(-1px,-1px)}
.sf-txt{min-width:0}
.sf-txt b{display:block;font-size:13.8px;font-weight:600;line-height:1.3}
.sf-txt small{display:block;font-size:12px;color:var(--tal-text-2,#666);margin-top:2px}
.sf-item.sf-quote{grid-column:1/-1;border-style:dashed}
.sf-item.sf-quote .sf-txt small{font-style:italic}
.sf-points{list-style:none;margin:22px 0 0;padding:0;display:grid;gap:10px}
.sf-points li{position:relative;padding-left:26px;font-size:14px;line-height:1.45;
  color:var(--tal-text-2,#666)}
.sf-points li::before{content:'';position:absolute;left:0;top:5px;width:15px;height:15px;
  border-radius:50%;background:var(--primary)}
.sf-points li::after{content:'';position:absolute;left:5px;top:8px;width:4px;height:7px;
  border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg)}
/* This form is now the first thing under the hero on every service page, so on
   a wide screen it fills the row: the pitch on the left, the fields on the
   right, instead of an 820px column with half the viewport left empty. */
@media (min-width:1024px){
  #svcForm{display:grid;grid-template-columns:minmax(280px,360px) minmax(0,1fr);
    gap:clamp(34px,4vw,70px);align-items:start}
  .sf-head{margin-bottom:0;position:sticky;top:96px}
  .sf-form{max-width:none}
}
@media (min-width:1440px){.sf-items{grid-template-columns:repeat(3,minmax(0,1fr))}}
.sf-total{margin-top:14px;font-size:13.5px;font-weight:600;color:var(--primary)}
.sf-err{margin:0 0 14px;font-size:13.5px;font-weight:600;color:#c02626}
.sf-go{width:100%;margin-top:4px}
.sf-note{margin-top:12px;font-size:13.5px;color:var(--tal-text-2,#666);min-height:1.2em}
.sf-note.ok{color:#128c4a;font-weight:600}
.sf-note.warn{color:#a35400;font-weight:600}
@media(max-width:700px){
  .sf-grid,.sf-items{grid-template-columns:1fr}
}

/* ---- process steps ---- */
.step .n,.steps .n{color:var(--primary)}

/* ---- forms ---- */
.field input,.field textarea,.field select,input[type=text],input[type=email],input[type=url],textarea,select{
  border-radius:10px!important;border:1px solid var(--line-l)!important;background:var(--tal-surface)!important;color:var(--tal-text)!important;
  font-family:var(--tal-f)!important}
.field input:focus,.field textarea:focus,.field select:focus{border-color:var(--primary)!important;outline:none}

/* ---- notes ---- */
.note,.note-box{background:var(--tal-surface);border:1px solid var(--line-l);border-left:3px solid var(--primary);border-radius:12px}

/* ---- scroll motion (same feel as the home page) ---- */
.reveal{opacity:0;transform:translateY(22px);
  transition:opacity .7s cubic-bezier(.22,1,.36,1),transform .7s cubic-bezier(.22,1,.36,1)}
.reveal.in,.reveal.is-in,.reveal.visible,.reveal.show{opacity:1;transform:none}
@media(prefers-reduced-motion:reduce){.reveal{opacity:1!important;transform:none!important}}

/* ==========================================================
   CROSS-BROWSER + FIT-TO-SCREEN HARDENING
   ========================================================== */
html,body{max-width:100%;overflow-x:hidden;-webkit-text-size-adjust:100%;text-size-adjust:100%}
*,*::before,*::after{min-width:0}
img,svg,video,canvas,iframe{max-width:100%;height:auto}
img{-o-object-fit:cover;object-fit:cover}
pre,code,table{max-width:100%;overflow-x:auto}
.tbl-wrap,.table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch}

/* ==========================================================
   TOUCH TARGETS  (audited, not guessed)
   Measured on iPhone SE / 14 Pro / iPad Mini (WebKit),
   Pixel 7 / Galaxy S9+ / Tab S4 (Blink) and Firefox across
   every page: footer links came out 14-19px tall, social
   icons 36x36, filter pills and the term toggle 35px, and
   some buttons 38-40px. Apple asks for 44pt, Android 48dp.
   Scoped to coarse pointers so the desktop layout is
   untouched -- a mouse does not need a 44px footer link.
   ========================================================== */
/* Also at narrow widths, not just on touch hardware: a desktop window
   dragged narrow reports pointer:fine but is still a phone-shaped layout. */
@media (pointer:coarse), (max-width:820px){
  .tal-foot a,.foot a,.crumb a{display:inline-flex;align-items:center;min-height:44px}
  .tal-social a,.socials a{min-width:44px;min-height:44px;
    display:inline-flex;align-items:center;justify-content:center}
  .pill{min-height:44px;display:inline-flex;align-items:center;justify-content:center}
  .btn{--btn-h:48px;min-height:48px}
  .tal-logo,.logo,.tal-nav .tal-logo{display:inline-flex;align-items:center;min-height:44px}
  /* the burger is the only way to navigate on a phone */
  #burger,.burger,.tal-burger{min-width:44px;min-height:44px}
}
/* No table may set the page width; it scrolls inside its own box instead. */
table{max-width:100%}

input,select,textarea,button{font-family:inherit;max-width:100%}
@media(max-width:640px){ input,select,textarea{font-size:16px} } /* stops iOS zooming on focus */
a,button{-webkit-tap-highlight-color:var(--tal-tint)}
.tal-nav{-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
  .tal-nav{background:var(--tal-ink)}
}
/* ---- full-width shell ----
   No centred cap anywhere: the page runs edge to edge with a gutter that
   grows a little with the viewport. site.css caps .wrap at 1280px and the
   nav/footer at 1240px, so these have to win outright.
   Readability is protected at the text level instead of the container
   level - .lead (62ch), .sec-lede (56ch) and .hero p (50ch) keep their own
   measure, so nothing runs 250 characters per line on a wide monitor. */
/* One content shell for the whole site.
   Section backgrounds still run edge to edge, because the colour lives on the
   <section>; only the content inside is held to a readable column. 1320px is
   the width the layout was designed at: on a 1440 laptop the shell plus its
   gutters uses nearly the whole screen, so nothing looks narrower there, and
   on a 27 inch monitor the page centres instead of stretching a four column
   row across 2500px where no one can scan from one side to the other. */
:root{--gutter:clamp(20px,3vw,44px);--shell:1320px}
.wrap,.tal-nav .tal-in,.tal-foot .tal-in{
  width:100%;max-width:var(--shell)!important;margin-left:auto;margin-right:auto;
  padding-left:max(var(--gutter),env(safe-area-inset-left))!important;
  padding-right:max(var(--gutter),env(safe-area-inset-right))!important}

/* wrap-narrow stays centred - it exists to hold prose, not to fill space */
.wrap-narrow{max-width:920px;margin-left:auto;margin-right:auto;
  padding-left:max(var(--gutter),env(safe-area-inset-left));
  padding-right:max(var(--gutter),env(safe-area-inset-right))}
/* A three-across grid on a 2500px shell gives cards no one wants to read. */
/* Three across is the right count inside a 1320px shell: any more and a
   service card is too narrow to hold its own title. */
.tal-foot{padding-bottom:env(safe-area-inset-bottom)}
/* long words / URLs must never push the layout wide */
p,li,h1,h2,h3,h4,h5,td,th,.lead{overflow-wrap:anywhere;word-break:break-word}
/* grids collapse cleanly on small screens */
@media(max-width:820px){
  .grid,.g2,.g3,.g4,.grid-2,.grid-3,.grid-4,.plans,.cmp,.split{grid-template-columns:1fr!important}
}
@media(max-width:1080px) and (min-width:821px){
  .g3,.g4,.grid-3,.grid-4{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}


/* ==========================================================
   OLDER-BROWSER FALLBACKS
   ========================================================== */
/* aspect-ratio landed in Safari 15 / Firefox 89. Without it a
   ratio box collapses to zero height, so give those engines a
   real height to work with. */
@supports not (aspect-ratio:1/1){
  .case .ph,.post .ph{min-height:190px}
  .phone{min-height:420px}
}
/* gap in flex containers landed in Safari 14.1 - fall back to margins */
@supports not (gap:1px){
  .tal-menu>*{margin-right:22px}
  .tal-social>*{margin-right:10px}
  .hero-cta>*{margin-right:12px;margin-bottom:12px}
}

/* ---- currency picker in the nav ---- */
.cx-pick{display:inline-flex;align-items:center;gap:2px;padding:3px;border-radius:999px;
  background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.14);flex:0 0 auto}
.cx-pick button{font:inherit;font-size:12px;font-weight:700;letter-spacing:.03em;
  padding:5px 10px;border:0;border-radius:999px;background:none;color:rgba(255,255,255,.68);
  cursor:pointer;line-height:1;transition:background .18s,color .18s}
.cx-pick button:hover{color:#fff}
.cx-pick button.on{background:var(--primary);color:var(--primary-ink,#fff)}
.cx-pick button:focus-visible{outline:2px solid var(--primary);outline-offset:2px}
.cx-note{display:none}
.cx-line{font-size:12.5px;color:var(--tal-text-2,#666);margin-top:10px}
@media (pointer:coarse),(max-width:820px){.cx-pick button{min-height:36px;padding:0 12px}}

/* Nilna's mark is gold on transparent, which vanishes against the white tile
   the other client logos need. Its own tile is black. */
.trust .tl.on-black,.logo-plate.on-black{background:#0d0d0d}

/* the real estate page's "what it is made of" list */
.re-list{list-style:none;margin:0;padding:0;display:grid;gap:10px;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));max-width:900px}
.re-list li{display:flex;justify-content:space-between;gap:14px;align-items:baseline;
  padding:13px 16px;border:1px solid var(--line-l);border-radius:12px;
  background:var(--tal-surface);font-size:14.5px}
.re-list li a{font-weight:700;color:var(--ink)}
.re-list li a:hover{color:var(--primary)}
