/*
Theme Name: TRABO
Theme URI: https://trabo.lv
Author: RedDigital
Description: Brand theme for TRABO — bulk material quote-to-invoice platform. Bilingual (EN/LV), pairs with the TRABO Quotes plugin.
Version: 0.1.0
Requires at least: 6.4
Requires PHP: 8.1
Text Domain: trabo
*/

:root{
  --ink:#111827; --accent:#10b981; --accent-hover:#059669; --accent-press:#047857;
  --text-body:#374151; --text-muted:#6b7280; --text-faint:#9ca3af;
  --border:#e5e7eb; --surface:#ffffff; --surface-page:#f9fafb;
  --shadow:0 4px 6px rgba(0,0,0,.07); --shadow-lg:0 12px 28px rgba(17,24,39,.10);
  color-scheme: light;
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;overflow-x:clip}
body{overflow-x:clip}
body{font-family:'Manrope',system-ui,-apple-system,'Segoe UI',sans-serif;background:var(--surface-page);color:var(--text-body);line-height:1.5;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
img,svg{display:block;max-width:100%}
a{color:inherit;text-decoration:none}
.wrap{max-width:1200px;margin:0 auto;padding:0 24px}
.eyebrow{font-size:12px;font-weight:700;letter-spacing:.3em;text-transform:uppercase;color:var(--text-muted)}
.muted{color:var(--text-muted)}
h1,h2,h3,h4{color:var(--ink);letter-spacing:-.01em}

/* ---------- Buttons ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:var(--accent);color:#fff;border:none;border-radius:8px;padding:12px 22px;font-family:inherit;font-size:15px;font-weight:700;cursor:pointer;transition:background .15s,box-shadow .15s;white-space:nowrap}
.btn:hover{background:var(--accent-hover)}
.btn:active{background:var(--accent-press)}
.btn.sm{padding:9px 16px;font-size:13px}
.btn.lg{padding:15px 30px;font-size:16px}
.btn.ghost{background:transparent;color:var(--ink);border:1px solid var(--border)}
.btn.ghost:hover{background:var(--surface-page)}
.btn.on-dark{background:transparent;color:#fff;border:1px solid rgba(255,255,255,.22)}
.btn.on-dark:hover{background:rgba(255,255,255,.08)}
.btn.danger{background:transparent;color:#b91c1c;border:1px solid #fecaca}
.btn.danger:hover{background:#fef2f2}
:focus-visible{outline:none;box-shadow:0 0 0 3px rgba(16,185,129,.4);border-radius:8px}

/* ---------- Header ---------- */
.top{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.86);backdrop-filter:saturate(160%) blur(10px);border-bottom:1px solid var(--border)}
.top .wrap{display:flex;align-items:center;justify-content:space-between;height:68px;gap:24px}
.brand{display:flex;align-items:center}
.brand svg,.brand img{height:30px;width:auto}
.nav{display:flex;align-items:center;gap:28px}
.nav a{font-size:14px;font-weight:600;color:var(--text-body);transition:color .15s;white-space:nowrap}
.nav a:hover{color:var(--ink)}
.actions{display:flex;align-items:center;gap:12px}
.lang{display:inline-flex;border:1px solid var(--border);border-radius:9999px;overflow:hidden;background:#fff}
.lang a{font-size:12px;font-weight:700;padding:7px 12px;color:var(--text-muted);transition:all .15s}
.lang a.active{background:var(--ink);color:#fff}

/* ---------- Hero ---------- */
.hero{background:var(--ink);color:#fff;position:relative;overflow:hidden}
.hero::after{content:"";position:absolute;right:-120px;top:-80px;width:520px;height:520px;background:radial-gradient(closest-side,rgba(16,185,129,.16),transparent 70%);pointer-events:none}
.hero .wrap{position:relative;padding:96px 24px 104px}
.hero .eyebrow{color:#6ee7b7}
.hero h1{color:#fff;font-size:clamp(34px,5.2vw,60px);font-weight:800;line-height:1.04;letter-spacing:-.02em;max-width:15ch;margin-top:18px;text-wrap:balance}
.hero p.sub{color:#cbd5e1;font-size:clamp(16px,2vw,20px);line-height:1.55;max-width:52ch;margin:22px 0 34px}
.hero-cta{display:flex;gap:14px;flex-wrap:wrap}
.pill-row{display:flex;gap:10px;flex-wrap:wrap;margin-top:40px}
.pill{display:inline-flex;align-items:center;gap:8px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.14);color:#d1fae5;font-size:13px;font-weight:600;padding:9px 16px;border-radius:9999px}
.pill .dot{width:7px;height:7px;border-radius:50%;background:var(--accent)}

/* ---------- Sections ---------- */
.section{padding:84px 0}
.sec-head{max-width:60ch;margin-bottom:44px}
.sec-head h2{font-size:clamp(26px,3.4vw,34px);font-weight:800;margin-top:12px;text-wrap:balance}
.sec-head p{color:var(--text-muted);font-size:17px;margin-top:14px}

.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.step{background:var(--surface);border:1px solid var(--border);border-radius:16px;padding:28px;box-shadow:var(--shadow)}
.step .ic{width:44px;height:44px;border-radius:12px;background:#ecfdf5;display:flex;align-items:center;justify-content:center;margin-bottom:18px}
.step .ic svg{width:22px;height:22px}
.step .n{font-size:12px;font-weight:700;letter-spacing:.24em;color:var(--accent-press);text-transform:uppercase}
.step h3{font-size:20px;font-weight:700;margin:8px 0}
.step p{color:var(--text-muted);font-size:14.5px;line-height:1.6}

.mat-sec{background:var(--surface)}
.mats{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.mat{border:1px solid var(--border);border-radius:14px;padding:22px;background:var(--surface);transition:box-shadow .2s,border-color .2s}
.mat:hover{box-shadow:var(--shadow-lg);border-color:#d1d5db}
.mat .swatch{width:100%;height:96px;border-radius:10px;margin-bottom:16px}
.mat h4{font-size:17px;font-weight:700;display:flex;align-items:center;justify-content:space-between;gap:8px}
.mat .unit{font-size:11px;font-weight:700;letter-spacing:.06em;color:var(--text-muted);background:var(--surface-page);border:1px solid var(--border);padding:3px 9px;border-radius:9999px;text-transform:uppercase}
.mat p{color:var(--text-muted);font-size:13.5px;margin-top:8px;line-height:1.55}

/* ---------- Delivery & pickup ---------- */
.dlv{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.dlv-card{background:var(--surface);border:1px solid var(--border);border-radius:16px;padding:28px;box-shadow:var(--shadow)}
.dlv-card .ic{width:44px;height:44px;border-radius:12px;background:#ecfdf5;display:flex;align-items:center;justify-content:center;margin-bottom:18px}
.dlv-card .ic svg{width:22px;height:22px}
.dlv-head{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:10px}
.dlv-head h3{font-size:20px;font-weight:700}
.dlv-card p{color:var(--text-muted);font-size:14.5px;line-height:1.6}
/* The timing caveat is the one thing on the page that stops a customer
   expecting a load today, so it gets the dark band rather than a third card. */
.dlv-note{display:flex;align-items:flex-start;gap:20px;margin-top:20px;background:var(--ink);color:#cbd5e1;border-radius:16px;padding:26px 28px}
.dlv-note .ic{flex:0 0 auto;width:44px;height:44px;border-radius:12px;background:rgba(16,185,129,.14);display:flex;align-items:center;justify-content:center}
.dlv-note .ic svg{width:22px;height:22px}
.dlv-note h3{color:#fff;font-size:18px;font-weight:700}
.dlv-note p{font-size:14.5px;line-height:1.65;margin-top:8px;max-width:68ch}
.dlv-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}

.reviews{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.review{background:var(--surface);border:1px solid var(--border);border-radius:16px;padding:26px;box-shadow:var(--shadow)}
.stars{color:var(--accent);font-size:15px;letter-spacing:2px;margin-bottom:12px}
.review p{color:var(--text-body);font-size:15px;line-height:1.6}
.review .who{display:flex;align-items:center;gap:12px;margin-top:20px}
.review .av{width:38px;height:38px;border-radius:50%;background:var(--ink);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:14px}
.review .nm{font-size:14px;font-weight:700;color:var(--ink)}
.review .ro{font-size:12.5px;color:var(--text-muted)}

.cta-band .inner{background:var(--ink);border-radius:24px;padding:64px 48px;text-align:center;position:relative;overflow:hidden}
.cta-band .inner::after{content:"";position:absolute;left:50%;bottom:-160px;transform:translateX(-50%);width:640px;height:360px;background:radial-gradient(closest-side,rgba(16,185,129,.18),transparent 70%)}
.cta-band h2{position:relative;color:#fff;font-size:clamp(24px,3.4vw,36px);font-weight:800;max-width:20ch;margin:0 auto;text-wrap:balance}
.cta-band .btn{position:relative;margin-top:28px}
.tag{display:inline-block;font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--accent-press);background:#ecfdf5;border:1px solid #a7f3d0;padding:4px 10px;border-radius:9999px}

/* ---------- Footer ---------- */
.site-foot{background:var(--surface-page);border-top:1px solid var(--border);padding:52px 0 40px}
.foot{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:32px;align-items:start}
.foot .brand svg,.foot .brand img{height:26px;margin-bottom:16px}
.foot p.desc{color:var(--text-muted);font-size:13.5px;line-height:1.6;max-width:34ch}
.foot h5{font-size:11px;font-weight:700;letter-spacing:.2em;text-transform:uppercase;color:var(--text-muted);margin-bottom:14px}
.foot ul{list-style:none;display:flex;flex-direction:column;gap:9px}
.foot ul a{font-size:14px;font-weight:600;color:var(--text-body)}
.foot ul a:hover{color:var(--accent-press)}
.foot .rek{font-size:12.5px;color:var(--text-faint);line-height:1.7}
.foot-base{border-top:1px solid var(--border);margin-top:36px;padding-top:20px;display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px;color:var(--text-faint);font-size:12.5px}

/* ---------- Generic page + portal components (used by plugin shortcodes) ---------- */
.page-shell{padding:56px 0 80px}
.page-shell h1{font-size:34px;font-weight:800;margin-bottom:8px}
.page-content{font-size:16px;line-height:1.7;color:var(--text-body)}
.page-content h2{font-size:24px;margin:28px 0 10px}
.page-content p{margin-bottom:14px}
.card{background:var(--surface);border:1px solid var(--border);border-radius:16px;box-shadow:var(--shadow);padding:24px}
.field{display:block;margin-bottom:16px}
.field .cap{display:block;font-size:14px;font-weight:600;color:var(--ink);margin-bottom:6px}
input:not([type=radio]):not([type=checkbox]):not([type=hidden]),select,textarea{font-family:inherit;font-size:15px;color:var(--ink);width:100%;max-width:100%;padding:11px 14px;border:1px solid var(--border);border-radius:8px;background:#fff}
input:focus,select:focus,textarea:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px rgba(16,185,129,.3)}
/* segmented toggles use an off-screen radio behind a styled label — contain it so it can't widen the page */
.trabo-type-opt{position:relative}
.trabo-type-opt input{width:auto;height:auto}
.badge{display:inline-block;font-size:12px;font-weight:700;padding:4px 12px;border-radius:9999px}
.badge.gray{background:#f3f4f6;color:var(--text-muted)}
.badge.emerald{background:#d1fae5;color:#065f46}
.badge.amber{background:#fef3c7;color:#92400e}
.badge.blue{background:#dbeafe;color:#1e40af}
.badge.red{background:#fee2e2;color:#991b1b}
table{width:100%;border-collapse:collapse}
th{text-align:left;font-size:12px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--text-muted);padding:12px 16px;border-bottom:1px solid var(--border)}
td{padding:14px 16px;border-bottom:1px solid var(--border);font-size:14px;color:var(--text-body)}
tr:last-child td{border-bottom:none}
.portal{display:grid;grid-template-columns:220px 1fr;gap:24px;align-items:start;padding:40px 0 80px}
.sidebar{background:#fff;border:1px solid var(--border);border-radius:16px;padding:12px;position:sticky;top:84px}
.side-link{display:block;padding:11px 14px;border-radius:8px;color:var(--text-body);font-size:14px;font-weight:600;margin-bottom:2px}
.side-link:hover{background:var(--surface-page)}
.side-link.active{background:#ecfdf5;color:#065f46}
.side-sep{height:1px;background:var(--border);margin:8px 6px}

/* step tracker — scoped to .step-flow on purpose. These used to be bare
   `.step` selectors, which collided with the homepage "how it works" cards
   further up: same specificity, declared later, so they won and laid the
   cards out as a flex row with everything vertically centred. */
.step-flow{display:flex;align-items:center;gap:0;margin:8px 0 24px;flex-wrap:wrap}
.step-flow .step{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:700;color:var(--text-faint)}
.step-flow .step .dot{width:26px;height:26px;border-radius:50%;background:#f3f4f6;color:var(--text-muted);display:flex;align-items:center;justify-content:center;font-size:12px}
.step-flow .step.done{color:var(--accent-press)}
.step-flow .step.done .dot{background:var(--accent);color:#fff}
.step-flow .step.current{color:var(--ink)}
.step-flow .step.current .dot{background:var(--ink);color:#fff}
.step-line{width:32px;height:2px;background:var(--border);margin:0 4px}

/* filters */
.filters{display:flex;gap:12px;margin-bottom:16px;flex-wrap:wrap}
.filters select,.filters input{width:auto;min-width:160px}
.summary-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px 24px}
.summary-grid .lbl{font-size:13px;font-weight:600;color:var(--text-muted)}
.summary-grid .val{font-weight:700;color:var(--ink)}

/* responsive grid utilities (replace inline grids so they collapse on mobile) */
.tq-grid{display:grid;gap:16px}
.tq-grid-2{grid-template-columns:1fr 1fr}
.tq-grid-4{grid-template-columns:repeat(4,1fr)}
.tq-table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch}

/* truck-load picker */
.truck-picker{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.truck-card{display:flex;flex-direction:column;align-items:center;gap:6px;padding:16px 8px;background:var(--surface);border:1.5px solid var(--border);border-radius:14px;cursor:pointer;font-family:inherit;transition:border-color .15s,box-shadow .15s,background .15s}
.truck-card:hover{border-color:#d1d5db}
.truck-card .truck-ic{color:var(--text-muted);width:56px}
.truck-card .truck-ic svg{width:56px;height:auto}
.truck-card .cap-lbl{font-size:16px;font-weight:800;color:var(--ink)}
.truck-card.selected{border-color:var(--accent);background:#ecfdf5;box-shadow:0 0 0 3px rgba(16,185,129,.15)}
.truck-card.selected .truck-ic{color:var(--accent-press)}

/* quantity stepper */
.stepper{display:flex;align-items:center;gap:14px;justify-content:center;max-width:340px}
/* amount + unit sit on one row; the unit wraps under the stepper when narrow */
/* Generated imagery (scripts/generate-images.py). Both rules only ever apply
   when the file exists — see trabo_img(); without them the gradient swatch and
   the plain hero stay exactly as they were. */
.swatch.has-img{background-size:cover;background-position:center}
.hero.has-img{background-size:cover;background-position:center;position:relative}
.hero.has-img>.wrap{position:relative;z-index:1}
/* Dark scrim, not light: the hero is white text on var(--ink) by design, so a
   white overlay erases the headline. Weighted to the left, where the text sits,
   so the right of the photograph still reads as a photograph. */
.hero.has-img::before{content:"";position:absolute;inset:0;background:linear-gradient(100deg,rgba(17,24,39,.93) 0%,rgba(17,24,39,.86) 38%,rgba(17,24,39,.58) 72%,rgba(17,24,39,.42) 100%)}

/* Out-of-area notice, and a submit button that cannot be used. */
.calc-msg-block{color:#991b1b;background:#fef2f2;border:1px solid #fecaca;border-radius:12px;padding:12px 14px;font-weight:600}
.btn.is-disabled,.btn:disabled{opacity:.45;cursor:not-allowed;pointer-events:none}

.contact-cols{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.3fr);gap:20px;margin-top:22px;align-items:start}
.contact-cols .card{padding:24px}
.contact-details p{color:var(--text-muted);line-height:1.7;font-size:14.5px}
.contact-details strong{color:var(--ink)}
@media(max-width:820px){.contact-cols{grid-template-columns:1fr}}
.qty-row{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.qty-row .stepper{flex:1 1 200px}
.unit-toggle{display:inline-flex;border:1px solid var(--border);border-radius:12px;overflow:hidden;background:var(--surface);flex:0 0 auto}
.unit-toggle button{appearance:none;border:0;background:transparent;cursor:pointer;font:700 15px/1 Manrope,sans-serif;color:var(--text-muted);padding:14px 20px;min-width:60px}
.unit-toggle button+button{border-left:1px solid var(--border)}
.unit-toggle button:hover{color:var(--ink)}
.unit-toggle button.selected{background:var(--ink);color:#fff}
.stepper button{width:52px;height:52px;border-radius:50%;border:none;background:var(--ink);color:#fff;font-size:26px;line-height:1;cursor:pointer;font-family:inherit;flex-shrink:0;transition:background .15s}
.stepper button:hover{background:#000}
.stepper input{text-align:center;font-size:32px;font-weight:800;color:var(--ink);border:1px solid var(--border);border-radius:12px;padding:10px;-moz-appearance:textfield}
.stepper input::-webkit-outer-spin-button,.stepper input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}

/* address autocomplete */
.ac-wrap{position:relative;display:block}
.ac-list{position:absolute;z-index:30;top:calc(100% + 4px);left:0;right:0;background:#fff;border:1px solid var(--border);border-radius:12px;box-shadow:var(--shadow-lg);overflow:hidden;max-height:260px;overflow-y:auto}
.ac-item{display:block;padding:11px 14px;font-size:13.5px;color:var(--text-body);cursor:pointer;border-bottom:1px solid var(--surface-page)}
.ac-item:hover{background:var(--surface-page);color:var(--ink)}

/* sticky submit bar */
.req-sticky{position:sticky;bottom:0;z-index:20;max-width:720px;margin-top:16px;display:flex;justify-content:space-between;align-items:center;gap:16px;background:rgba(255,255,255,.92);backdrop-filter:blur(8px);border:1px solid var(--border);border-radius:14px;padding:14px 18px;box-shadow:0 -4px 12px rgba(17,24,39,.06)}
.req-sticky .req-summary{display:flex;flex-direction:column;gap:2px;min-width:0}
.req-sticky .req-summary strong{color:var(--ink);font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* ---------- Mobile navigation drawer ---------- */
.nav-toggle{display:none;flex-direction:column;justify-content:center;gap:5px;width:44px;height:44px;padding:0 10px;background:transparent;border:1px solid var(--border);border-radius:10px;cursor:pointer}
.nav-toggle span{display:block;height:2px;width:100%;background:var(--ink);border-radius:2px;transition:transform .2s,opacity .2s}
/* Off-canvas drawer. Hidden state is display:none so it can NEVER widen the
   page (an undisplayed element adds nothing to layout — bulletproof on iOS
   Safari, where clipped off-screen fixed elements still cause horizontal
   overflow). The wrapper stays as a viewport-sized clip layer for safety. */
.drawer-wrap{position:fixed;inset:0;z-index:120;overflow:hidden;pointer-events:none}
.mobile-drawer{position:absolute;top:0;right:0;width:min(86vw,340px);height:100%;background:var(--surface);box-shadow:-8px 0 32px rgba(17,24,39,.18);flex-direction:column;padding:16px 18px;overflow-y:auto;pointer-events:none;display:none}
.mobile-drawer.open{display:flex;pointer-events:auto;animation:trabo-drawer-in .25s ease}
@keyframes trabo-drawer-in{from{transform:translateX(100%)}to{transform:translateX(0)}}
.drawer-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}
.drawer-head .brand svg{height:28px}
.drawer-close{background:none;border:none;font-size:32px;line-height:1;color:var(--text-muted);cursor:pointer;padding:0 6px}
.drawer-nav{display:flex;flex-direction:column;gap:2px;margin-bottom:16px}
.drawer-nav a{padding:13px 12px;border-radius:10px;font-size:16px;font-weight:600;color:var(--text-body)}
.drawer-nav a:hover{background:var(--surface-page);color:var(--ink)}
.drawer-lang{display:flex;align-items:center;justify-content:space-between;padding:12px;border-top:1px solid var(--border);margin-bottom:16px}
.drawer-lang-label{font-size:13px;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:var(--text-muted)}
.drawer-actions{display:flex;flex-direction:column;gap:10px;margin-top:auto}
.drawer-actions .btn{width:100%}
.drawer-overlay{position:fixed;inset:0;z-index:110;background:rgba(17,24,39,.5);opacity:0;transition:opacity .25s ease}
.drawer-overlay.show{opacity:1}
body.trabo-no-scroll{overflow:hidden}

/* Measured, not guessed: logo + five nav items + the language switch + two
   buttons need ~1030px on one line, and below that the labels wrapped onto two
   or three lines inside the 68px bar. So the drawer takes over at 1040px —
   earlier than the 900px used for the content grids below. */
@media(max-width:1040px){
	.nav,.actions{display:none}
	.nav-toggle{display:flex}
}
@media(max-width:900px){
	.steps,.mats,.reviews{grid-template-columns:1fr 1fr}
	.foot{grid-template-columns:1fr 1fr}
	.portal{grid-template-columns:1fr}
	.sidebar{position:static}
	.tq-grid-4{grid-template-columns:1fr 1fr}
}
@media(max-width:680px){
	.steps,.mats,.reviews,.dlv,.foot{grid-template-columns:1fr}
	.dlv-note{flex-direction:column;gap:14px;padding:22px}
	.hero .wrap{padding:64px 24px 72px}
	.section{padding:60px 0}
	.cta-band .inner{padding:44px 24px}
	.tq-grid-2,.tq-grid-4,.summary-grid{grid-template-columns:1fr}
	.brand svg,.brand img{height:26px}
	.btn.lg{padding:13px 22px;font-size:15px}
	.card{padding:18px}
	.req-sticky{flex-direction:column;align-items:stretch;gap:10px}
	.req-sticky .btn{width:100%}
	.stepper{max-width:none}
	.truck-picker{gap:8px}
	.truck-card{padding:12px 4px}
	.truck-card .truck-ic,.truck-card .truck-ic svg{width:44px}
}

/* ---------- Price calculator (0.3.0) ---------- */
.calc{display:grid;grid-template-columns:1fr 1fr;gap:20px;align-items:start;max-width:900px;margin:0 auto}
.calc .calc-panel{background:var(--surface);border:1px solid var(--border);border-radius:16px;box-shadow:var(--shadow);padding:24px}
.calc .calc-panel .field:last-of-type{margin-bottom:0}
.calc .stepper{max-width:100%}
.calc-out{background:var(--surface);border:1px solid var(--border);border-radius:16px;box-shadow:var(--shadow);padding:24px;min-height:180px;display:flex;flex-direction:column;justify-content:center;transition:opacity .15s}
.calc-out.busy{opacity:.55}
.calc-hint{color:var(--text-muted);font-size:14px;text-align:center}
.calc-row{display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding:9px 0;font-size:14px;color:var(--text-body);border-bottom:1px solid var(--surface-page)}
.calc-row strong{color:var(--ink);font-weight:700;white-space:nowrap}
.calc-row.sub{color:var(--text-muted);font-size:13px;border-bottom:none;padding:4px 0}
.calc-total{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin-top:10px;padding-top:14px;border-top:2px solid var(--ink);font-size:15px;font-weight:600;color:var(--ink)}
.calc-total strong{font-size:26px;font-weight:800;white-space:nowrap}
.calc-msg{margin:4px 0 0;font-size:14px;color:var(--text-body);text-align:center}
.calc-cta{width:100%;margin-top:18px}

/* the same breakdown, inside the request form */
.calc-quote .calc-row:first-child{padding-top:0}
.calc-quote .calc-hint{text-align:left}

@media(max-width:860px){
	.calc{grid-template-columns:1fr}
	.calc-out{min-height:0}
}

/* ---------- Legal pages (privacy, terms) ---------- */
.legal{max-width:760px;margin:0 auto;padding:8px 0 48px;color:var(--text-body);line-height:1.7}
.legal h1{font-size:34px;margin-bottom:6px}
.legal h2{font-size:21px;margin:36px 0 10px;color:var(--ink)}
.legal h3{font-size:16px;margin:22px 0 6px;color:var(--ink)}
.legal p{margin:0 0 14px}
.legal ul,.legal ol{margin:0 0 16px;padding-left:22px}
.legal li{margin-bottom:8px}
.legal .legal-meta{color:var(--text-muted);font-size:13px;margin-bottom:22px}
.legal .legal-lead{font-size:17px;color:var(--ink)}
.legal .legal-company{background:var(--surface-page);border:1px solid var(--border);border-radius:12px;padding:16px 18px;line-height:1.6}
.legal .legal-todo{background:#fffbeb;border:1px solid #fde68a;color:#92400e;border-radius:12px;padding:14px 18px;font-size:14px}
.legal .legal-table{width:100%;border-collapse:collapse;margin:0 0 18px;font-size:14px}
.legal .legal-table th{text-align:left;padding:9px 12px 9px 0;border-bottom:2px solid var(--border);color:var(--text-muted);font-size:12px;text-transform:uppercase;letter-spacing:.04em}
.legal .legal-table td{padding:10px 12px 10px 0;border-bottom:1px solid var(--surface-page);vertical-align:top}
.legal .legal-table code{font-size:12.5px;background:var(--surface-page);padding:2px 6px;border-radius:5px}
.legal a{color:var(--accent-press);font-weight:600}
@media(max-width:640px){.legal h1{font-size:27px}.legal .legal-table{font-size:13px}}

/* --- Delivery page (plugin view [trabo_delivery]) + homepage zone teaser ----
   Zone colours are a sequential ramp, not four arbitrary hues: the zones are
   ordered by distance from the yard, so light -> dark carries that ordering.
   Kept in sync with ZONE_COLORS in the plugin's public.js. */
:root{
  --z1:#4FB0A0; --z2:#2A8E81; --z3:#186A62; --z4:#0B4741; --z-depot:#C96A12;
}
.dlvp-hero .sec-head h1{font-size:clamp(30px,4.4vw,44px);line-height:1.08;margin-bottom:12px}

/* Postal-code check — the only thing on the page that states a price. */
.dlvp-check{max-width:560px;margin-top:26px;background:var(--surface);border:1px solid var(--border);border-radius:16px;padding:22px 24px;box-shadow:var(--shadow)}
.dlvp-check-row{display:flex;gap:10px;align-items:stretch}
.dlvp-check-row input{flex:1 1 auto;text-transform:uppercase;letter-spacing:.04em}
.dlvp-check-row .btn{flex:0 0 auto}
.dlvp-result{margin-top:0}
.dlvp-result:not(:empty){margin-top:18px;padding-top:18px;border-top:1px solid var(--border)}
.dlvp-result p{font-size:14.5px;line-height:1.6;color:var(--text-muted);margin:0}
.dlvp-result.is-invalid p{color:#b45309}
.dlvp-result.is-unserved p{color:var(--ink)}
.tq-res-head{font-size:16px;color:var(--ink);font-weight:600}
.tq-res-zone{display:inline-block;margin-top:8px;font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--accent-press);background:#ecfdf5;border:1px solid #a7f3d0;padding:4px 10px;border-radius:9999px}
.tq-fees{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.tq-fee{display:flex;flex-direction:column;gap:2px;min-width:92px;background:var(--surface-page);border:1px solid var(--border);border-radius:10px;padding:9px 12px}
.tq-fee span{font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--text-faint)}
.tq-fee b{font-size:16px;color:var(--ink);font-variant-numeric:tabular-nums}

/* Map */
.dlvp-map-wrap{margin-top:4px}
.dlvp-map{height:clamp(360px,52vh,560px);border-radius:16px;overflow:hidden;border:1px solid var(--border);background:var(--surface-page);box-shadow:var(--shadow)}
.dlvp-map:focus-visible{outline:3px solid rgba(16,185,129,.45);outline-offset:2px}
.dlvp-noscript{padding:24px;color:var(--text-muted);font-size:14.5px}
.dlvp-mapnote{margin-top:12px;font-size:13.5px;line-height:1.6;color:var(--text-muted);max-width:74ch}
.tq-depot-icon span{display:block;width:18px;height:18px;border-radius:50%;border:3px solid #fff;box-shadow:0 1px 4px rgba(0,0,0,.35)}
.tq-pop{font-family:inherit;font-size:13.5px;line-height:1.55;color:var(--ink)}
.tq-pop-sub{color:var(--text-muted);font-size:12.5px}
.tq-pop-fee{font-variant-numeric:tabular-nums;font-size:12.5px;color:var(--ink)}
.leaflet-container{font:inherit}

/* Zone price table */
.dlvp-tablewrap{overflow-x:auto;border:1px solid var(--border);border-radius:16px;background:var(--surface);box-shadow:var(--shadow)}
.dlvp-table{border-collapse:collapse;width:100%;font-size:14.5px}
.dlvp-table th,.dlvp-table td{padding:13px 18px;text-align:left;border-bottom:1px solid var(--border);vertical-align:middle}
.dlvp-table thead th{font-size:11px;font-weight:700;letter-spacing:.09em;text-transform:uppercase;color:var(--text-faint);background:var(--surface-page);white-space:nowrap}
.dlvp-table tbody tr:last-child td{border-bottom:0}
.dlvp-table .num{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.dlvp-zname{display:flex;align-items:center;gap:9px;font-weight:600;color:var(--ink);white-space:nowrap}
.dlvp-sw{width:11px;height:11px;border-radius:3px;flex:none;background:var(--z1)}
.dlvp-sw[data-zi="1"]{background:var(--z2)}
.dlvp-sw[data-zi="2"]{background:var(--z3)}
.dlvp-sw[data-zi="3"]{background:var(--z4)}
.dlvp-codes{color:var(--text-muted);font-size:13px;line-height:1.7;min-width:22ch}
.dlvp-na{color:var(--text-faint)}
.dlvp-foot{margin-top:12px;font-size:13.5px;color:var(--text-muted)}

/* Info cards + closing CTA */
.dlvp-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:20px}
.dlvp-card{background:var(--surface);border:1px solid var(--border);border-radius:16px;padding:26px;box-shadow:var(--shadow);display:flex;flex-direction:column;gap:10px}
.dlvp-card h3{font-size:19px;font-weight:700}
.dlvp-card .tag{align-self:flex-start}
.dlvp-card p{color:var(--text-muted);font-size:14.5px;line-height:1.6;margin:0}
.dlvp-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:6px}
.dlvp-cta{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;margin-top:28px;background:var(--ink);border-radius:16px;padding:26px 30px}
.dlvp-cta p{color:#cbd5e1;font-size:15.5px;margin:0;max-width:52ch}

/* Homepage teaser: a static picture of the area that links to the page. */
.dlv-zones{margin-top:22px;background:var(--surface);border:1px solid var(--border);border-radius:16px;padding:26px 28px;box-shadow:var(--shadow);display:grid;grid-template-columns:1.1fr .9fr;gap:28px;align-items:center}
.dlv-zones h3{font-size:20px;font-weight:700;margin-bottom:8px}
.dlv-zones p{color:var(--text-muted);font-size:14.5px;line-height:1.6;margin-bottom:16px}
.dlv-zonelist{display:flex;flex-direction:column;gap:8px;margin:0 0 18px;padding:0;list-style:none}
.dlv-zonelist li{display:flex;align-items:center;gap:10px;font-size:14.5px;color:var(--ink)}
.dlv-zonelist .sw{width:11px;height:11px;border-radius:3px;flex:none}
.dlv-zonelist .nm{font-weight:600}
.dlv-zonelist .fee{margin-left:auto;color:var(--text-muted);font-variant-numeric:tabular-nums;font-size:13.5px}
.dlv-zonemap{width:100%;height:auto;display:block;border-radius:12px;background:var(--surface-page)}
@media (max-width:860px){
  .dlv-zones{grid-template-columns:1fr;gap:22px}
  .dlvp-check-row{flex-direction:column}
  .dlvp-cta{flex-direction:column;align-items:flex-start}
}

/* --- Delivery day + window picker (plugin view: request form) --------------
   Replaces a bare <input type="date"> that could name any day at all. Days the
   fleet cannot serve are disabled rather than hidden, so a customer can see
   that a day exists and is full — that is what sends them to the phone. */
.tq-slotpick{display:block}
.tq-cal{border:1px solid var(--border);border-radius:12px;padding:12px 14px;background:var(--surface);max-width:340px}
.tq-calhead{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px}
.tq-calhead strong{font-size:15px;color:var(--ink)}
.tq-calnav{width:28px;height:28px;border:1px solid var(--border);background:var(--surface);border-radius:8px;cursor:pointer;font-size:16px;line-height:1;color:var(--ink)}
.tq-calnav:hover{border-color:var(--accent);color:var(--accent-press)}
.tq-calgrid{display:grid;grid-template-columns:repeat(7,1fr);gap:3px}
.tq-dow{text-align:center;font-size:11px;font-weight:700;color:var(--text-faint);padding-bottom:4px;text-transform:uppercase}
.tq-day{aspect-ratio:1;display:flex;align-items:center;justify-content:center;border:1px solid transparent;border-radius:8px;background:var(--surface-page);color:var(--ink);font-size:13px;font-family:inherit;cursor:pointer;padding:0}
.tq-day.is-blank{background:none;cursor:default}
.tq-day.is-open{background:#ecfdf5;color:#065f46;font-weight:600}
.tq-day.is-limited{background:#fffbeb;color:#92400e;font-weight:600}
.tq-day.is-full{background:#fef2f2;color:#b91c1c;text-decoration:line-through}
.tq-day.is-closed{background:transparent;color:var(--text-faint)}
.tq-day:disabled{cursor:not-allowed}
.tq-day.is-open:hover,.tq-day.is-limited:hover{border-color:var(--accent)}
.tq-day.is-sel{background:var(--accent);color:#fff;border-color:var(--accent-press)}
.tq-slots{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.tq-slot{display:flex;flex-direction:column;gap:2px;align-items:flex-start;border:1px solid var(--border);border-radius:10px;background:var(--surface);padding:9px 13px;cursor:pointer;font-family:inherit;min-width:118px}
.tq-slot:hover{border-color:var(--accent)}
.tq-slot.is-off{opacity:.5;cursor:not-allowed;background:var(--surface-page)}
.tq-slot.is-off:hover{border-color:var(--border)}
.tq-slot.is-sel{border-color:var(--accent-press);background:#ecfdf5;box-shadow:0 0 0 2px rgba(16,185,129,.25)}
.tq-slot-time{font-size:14px;font-weight:600;color:var(--ink)}
.tq-slot-free{font-size:11.5px;color:var(--text-muted)}
.tq-slot.is-sel .tq-slot-free{color:var(--accent-press)}
.tq-slothint{font-size:13px;color:var(--text-muted);margin:2px 0 0}
.tq-slothint.is-warn{color:#b45309}
@media (max-width:480px){ .tq-cal{max-width:none} .tq-slot{flex:1 1 100%} }

/* --- Delivery or self-collection (request form) ----------------------------
   Two cards rather than a plain radio pair: this choice changes the price, the
   fields below it and whether a delivery window is needed at all, so it should
   not read like a minor preference tucked under the address. */
.ful-toggle{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:8px}
.ful-opt{display:block;border:1px solid var(--border);border-radius:12px;padding:14px 16px;cursor:pointer;background:var(--surface);transition:border-color .12s,box-shadow .12s}
.ful-opt:hover{border-color:var(--accent)}
.ful-opt.is-on{border-color:var(--accent-press);background:#ecfdf5;box-shadow:0 0 0 2px rgba(16,185,129,.25)}
.ful-opt input{position:absolute;opacity:0;width:0;height:0}
.ful-t{display:block;font-weight:700;font-size:15px;color:var(--ink)}
.ful-s{display:block;font-size:12.5px;color:var(--text-muted);margin-top:3px;line-height:1.5}
.ful-opt.is-on .ful-s{color:var(--accent-press)}
.tq-pickup-note{margin-top:18px;border:1px solid var(--border);border-left:3px solid var(--accent);border-radius:12px;padding:14px 16px;background:var(--surface-page)}
.tq-pickup-note p{margin:0;font-size:14px}
@media (max-width:560px){ .ful-toggle{grid-template-columns:1fr} }
