/* ==========================================================================
   XAVISI front end. Bootstrap 5 + this theme layer.
   Palette and shape rules come from the supplied design system
   (copper / charcoal / cream, 4px corners). Typeface: DM Sans.
   ========================================================================== */

@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 100 1000; font-display: swap; src: url('../fonts/dm-sans-latin-wght-normal.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: italic; font-weight: 100 1000; font-display: swap; src: url('../fonts/dm-sans-latin-wght-italic.woff2') format('woff2'); }
@font-face { font-family: 'Material Symbols Outlined'; font-style: normal; font-weight: 100 700; font-display: block; src: url('../fonts/material-symbols-subset.woff2') format('woff2'); }

:root {
  --xv-copper: #B87333;
  --xv-copper-dark: #9C5E28;
  --xv-copper-light: #E0A57A;
  --xv-charcoal: #1F2A37;
  --xv-slate: #334155;
  --xv-muted: #4b5a6b;
  --xv-paper: #FBF8F4;
  --xv-cream: #F6EDE4;
  --xv-cream-deep: #EBDCCB;
  --xv-line: #E4DDD3;
  --xv-white: #FFFFFF;
  --xv-radius: 4px;

  --bs-body-font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --bs-body-color: var(--xv-charcoal);
  --bs-body-bg: var(--xv-white);
  --bs-primary: var(--xv-copper);
  --bs-primary-rgb: 184, 115, 51;
  --bs-border-color: var(--xv-line);
  --bs-border-radius: var(--xv-radius);
  --bs-link-color-rgb: 156, 94, 40;
  --bs-link-hover-color-rgb: 31, 42, 55;
}

html { scroll-behavior: smooth; scroll-padding-top: 96px; }
/* Safety net: nothing may ever make the page scroll sideways. clip (unlike hidden) keeps sticky headers working. */
html, body { overflow-x: clip; }
body {
  font-family: var(--bs-body-font-family);
  font-size: 1.0625rem; line-height: 1.65; color: var(--xv-charcoal); background: #fff;
  -webkit-font-smoothing: antialiased; font-feature-settings: 'tnum' 1;
}
::selection { background: var(--xv-copper); color: #fff; }
h1, h2, h3, h4 { font-weight: 700; color: var(--xv-charcoal); letter-spacing: -0.025em; line-height: 1.1; }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.4rem); letter-spacing: -0.04em; line-height: 1.02; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); }
h3 { font-size: 1.3rem; letter-spacing: -0.015em; line-height: 1.2; }
p { color: var(--xv-muted); }
a { text-decoration: none; }
.lead { font-size: 1.2rem; line-height: 1.6; color: var(--xv-muted); font-weight: 400; }
.text-copper { color: var(--xv-copper-dark) !important; }
.bg-paper { background: var(--xv-paper) !important; }
.bg-cream { background: var(--xv-cream) !important; }
.maxw-560 { max-width: 560px; } .maxw-640 { max-width: 640px; } .maxw-760 { max-width: 760px; }

.material-symbols-outlined {
  font-family: 'Material Symbols Outlined'; font-weight: 400; font-style: normal; font-size: 22px; line-height: 1;
  letter-spacing: normal; text-transform: none; display: inline-block; white-space: nowrap; direction: ltr; vertical-align: middle;
  width: 1em; overflow: hidden; /* if the icon font ever fails, the ligature name stays clipped instead of widening the page */
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}
.ms-sm { font-size: 19px; } .ms-xs { font-size: 16px; }

/* ---------- nav ---------- */

.xv-nav { background: var(--xv-cream); border-bottom: 1px solid var(--xv-cream-deep); position: sticky; top: 0; z-index: 1030; }
.xv-nav .navbar { padding: 0; min-height: 78px; }
.xv-nav .navbar-brand { padding: 0; margin: 0; }
.xv-nav .navbar-brand img { height: 46px; width: auto; display: block; }
.xv-nav .nav-link { color: var(--xv-slate); font-weight: 600; font-size: 1rem; padding: 1.75rem 1.05rem !important; position: relative; }
.xv-nav .nav-link:hover { color: var(--xv-copper-dark); }
.xv-nav .nav-link.active { color: var(--xv-charcoal); }
.xv-nav .nav-link.active::after { content: ''; position: absolute; left: 1.05rem; right: 1.05rem; bottom: 0; height: 3px; background: var(--xv-copper); }
.nav-toggle { border: 0; background: transparent; width: 46px; height: 46px; display: grid; place-items: center; border-radius: var(--xv-radius); color: var(--xv-charcoal); }
.nav-toggle:hover { background: var(--xv-cream-deep); }
.nav-toggle .material-symbols-outlined { font-size: 30px; }

/* right-hand drawer (below lg) */
@media (max-width: 991.98px) {
  .xv-nav .offcanvas { width: min(86vw, 360px); background: var(--xv-cream); border-left: 1px solid var(--xv-cream-deep); }
  .offcanvas-backdrop.show { opacity: .5; }
  .drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 1.1rem 1.4rem; border-bottom: 1px solid var(--xv-cream-deep); }
  .drawer-head img { height: 38px; width: auto; }
  .drawer-body { padding: .5rem 1.4rem 1.6rem; display: flex; flex-direction: column; height: calc(100% - 77px); overflow-y: auto; }
  .xv-nav .navbar-nav { margin-bottom: 1.5rem; }
  .xv-nav .nav-link { font-size: 1.35rem; font-weight: 700; letter-spacing: -.02em; padding: 1rem 0 !important; border-bottom: 1px solid var(--xv-cream-deep); display: flex; justify-content: space-between; align-items: center; }
  .xv-nav .nav-link.active { color: var(--xv-copper-dark); }
  .xv-nav .nav-link.active::after { display: none; }
  .xv-nav .nav-link::before { content: 'chevron_right'; font-family: 'Material Symbols Outlined'; font-size: 22px; order: 2; color: var(--xv-copper); font-weight: 400; }
  .drawer-foot { margin-top: auto; padding-top: 1.5rem; font-size: .95rem; }
  .drawer-foot a.tel { display: block; font-size: 1.15rem; font-weight: 700; color: var(--xv-charcoal); margin-bottom: .25rem; }
}
@media (min-width: 992px) { .drawer-head, .drawer-foot { display: none; } .drawer-body { display: contents; } }
@media (max-width: 575.98px) {  }

/* ---------- buttons ---------- */
.btn { font-weight: 600; font-size: 1rem; border-radius: var(--xv-radius); padding: .8rem 1.4rem; border-width: 1px; display: inline-flex; align-items: center; justify-content: center; gap: .55rem; transition: background .15s, border-color .15s, color .15s; line-height: 1.2; }
.btn-copper { background: var(--xv-copper); border-color: var(--xv-copper); color: #fff; }
.btn-copper:hover, .btn-copper:focus { background: var(--xv-copper-dark); border-color: var(--xv-copper-dark); color: #fff; }
.btn-outline-ink { background: transparent; border-color: var(--xv-charcoal); color: var(--xv-charcoal); }
.btn-outline-ink:hover { background: var(--xv-charcoal); color: #fff; border-color: var(--xv-charcoal); }
.btn-light-x { background: #fff; border-color: #fff; color: var(--xv-charcoal); }
.btn-light-x:hover { background: var(--xv-cream); border-color: var(--xv-cream); color: var(--xv-charcoal); }
.btn-line-light { background: transparent; border-color: rgba(255,255,255,.55); color: #fff; }
.btn-line-light:hover { background: #fff; color: var(--xv-charcoal); border-color: #fff; }
.btn-sm { padding: .55rem 1rem; font-size: .92rem; }
.text-link { font-weight: 600; color: var(--xv-copper-dark); display: inline-flex; align-items: center; gap: .35rem; border-bottom: 1px solid var(--xv-copper-light); padding-bottom: 1px; }
.text-link:hover { color: var(--xv-charcoal); border-color: var(--xv-charcoal); }
.text-link .material-symbols-outlined { transition: transform .15s; }
.text-link:hover .material-symbols-outlined { transform: translateX(3px); }

/* ---------- layout helpers ---------- */
.section { padding: 6rem 0; }
.section-sm { padding: 4rem 0; }
@media (max-width: 767.98px) { .section { padding: 3.75rem 0; } .section-sm { padding: 2.75rem 0; } }
.eyebrow { font-weight: 700; font-size: .95rem; color: var(--xv-copper-dark); margin-bottom: .9rem; display: block; }
.eyebrow.on-dark { color: var(--xv-copper-light); }
.small-note { font-size: .88rem; color: #7a8696; }

.photo { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: var(--xv-radius); background: var(--xv-cream); }
.frame { position: relative; }
.frame::before { content: ''; position: absolute; inset: 1.4rem -1.4rem -1.4rem 1.4rem; background: var(--xv-cream); border-radius: var(--xv-radius); z-index: 0; }
.frame.flip::before { inset: 1.4rem 1.4rem -1.4rem -1.4rem; }
.frame > img, .frame > .ratio { position: relative; z-index: 1; }
@media (max-width: 767.98px) { .frame::before { inset: .8rem -.5rem -.8rem .8rem; } .frame.flip::before { inset: .8rem .8rem -.8rem -.5rem; } }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--xv-paper); min-height: 640px; }
.hero-copy { padding: 5.5rem 3.5rem 5.5rem max(1.5rem, calc((100vw - 1320px) / 2 + .75rem)); display: flex; flex-direction: column; justify-content: center; }
.hero-copy h1 { max-width: 12ch; }
.hero-copy h1 span { color: var(--xv-copper); }
.hero-photo { position: relative; min-height: 420px; }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 6% center; }
.hero-note {
  position: absolute; left: 1.5rem; bottom: 2rem; background: #fff; border-radius: var(--xv-radius); padding: 1rem 1.2rem; display: flex; gap: .9rem; align-items: center;
  box-shadow: 0 4px 0 0 rgba(31,42,55,.1); border: 1px solid var(--xv-charcoal); max-width: 330px;
}
.hero-note b { display: block; line-height: 1.25; }
.hero-note span.s { font-size: .88rem; color: #6b7787; }
.hero-note .ic { width: 42px; height: 42px; border-radius: 50%; background: var(--xv-cream); color: var(--xv-copper-dark); display: grid; place-items: center; flex: none; }
@media (max-width: 991.98px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { padding: 3.5rem 1.5rem 3rem; }
  .hero-copy h1 { max-width: none; }
  .hero-photo { min-height: 0; aspect-ratio: 4 / 3; margin-bottom: 1.8rem; }
  .hero-note { left: 1rem; right: 1rem; bottom: -1.8rem; max-width: none; }
}
@media (max-width: 575.98px) { .hero-cta .btn { flex: 1 1 100%; } .hero-photo img { object-position: 10% center; } }
.hero-facts { display: flex; flex-wrap: wrap; gap: .6rem 1.8rem; margin-top: 2.4rem; font-size: .98rem; color: var(--xv-slate); font-weight: 500; }
.hero-facts span { display: inline-flex; align-items: center; gap: .5rem; }
.hero-facts .material-symbols-outlined { color: var(--xv-copper); font-size: 20px; }

/* ---------- page header (inner pages) ---------- */
.page-head { background: var(--xv-paper); border-bottom: 1px solid var(--xv-line); }
.page-head .copy { padding: 4.5rem 0 4rem; }
.page-head h1 { font-size: clamp(2.3rem, 4.6vw, 3.7rem); max-width: 16ch; }
.crumbs { font-size: .92rem; color: #7a8696; margin-bottom: 1.2rem; }
.crumbs a { color: #7a8696; } .crumbs a:hover { color: var(--xv-copper-dark); }
.page-head .pic { height: 100%; min-height: 320px; position: relative; }
.page-head .pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 991.98px) { .page-head .copy { padding: 3rem 0 2.5rem; } .page-head .pic { min-height: 0; aspect-ratio: 16 / 9; } }

/* ---------- statement ---------- */
.statement { font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.3; letter-spacing: -.025em; font-weight: 600; color: var(--xv-charcoal); max-width: 26em; }
.statement em { font-style: normal; color: var(--xv-copper); }

/* ---------- two-up route cards (home) ---------- */
.route { position: relative; display: block; overflow: hidden; border-radius: var(--xv-radius); color: #fff; min-height: 460px; background: var(--xv-charcoal); }
.route img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.route::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(18,25,34,.88) 0%, rgba(18,25,34,.25) 55%, rgba(18,25,34,.05) 100%); }
.route:hover img { transform: scale(1.03); }
.route .in { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 2rem; }
.route h3 { color: #fff; font-size: 1.9rem; margin-bottom: .5rem; }
.route p { color: #dbe2ea; margin-bottom: 1rem; max-width: 30em; }
.route .go { font-weight: 600; display: inline-flex; gap: .4rem; align-items: center; border-bottom: 1px solid var(--xv-copper-light); padding-bottom: 1px; }

/* ---------- editorial service list ---------- */
.svc { display: grid; grid-template-columns: 220px 1fr auto; gap: 2rem; align-items: center; padding: 1.6rem 0; border-top: 1px solid var(--xv-line); color: inherit; }
.svc:last-child { border-bottom: 1px solid var(--xv-line); }
.svc .thumb { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--xv-radius); }
.svc .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.svc:hover .thumb img { transform: scale(1.06); }
.svc h3 { font-size: 1.6rem; margin-bottom: .35rem; }
.svc p { margin: 0; max-width: 40em; }
.svc .arrow { width: 48px; height: 48px; border: 1px solid var(--xv-charcoal); border-radius: 50%; display: grid; place-items: center; color: var(--xv-charcoal); transition: .15s; }
.svc:hover .arrow { background: var(--xv-copper); border-color: var(--xv-copper); color: #fff; }
@media (max-width: 767.98px) { .svc { grid-template-columns: 110px 1fr; gap: 1rem; } .svc .arrow { display: none; } .svc h3 { font-size: 1.25rem; } .svc p { font-size: .96rem; } }

/* ---------- steps ---------- */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; }
.steps li { counter-increment: s; position: relative; padding: 0 0 2rem 3.4rem; }
.steps li:last-child { padding-bottom: 0; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: .1rem; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--xv-charcoal); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .95rem; }
.steps li::after { content: ''; position: absolute; left: 1.1rem; top: 2.5rem; bottom: .3rem; width: 1px; background: #cfc6ba; }
.steps li:last-child::after { display: none; }
.steps h3 { margin-bottom: .3rem; font-size: 1.25rem; }
.steps p { margin: 0; }

/* ---------- field checklist mock ---------- */
.sheet { background: #fff; border: 1px solid var(--xv-charcoal); border-radius: var(--xv-radius); box-shadow: 0 4px 0 0 rgba(31,42,55,.1); overflow: hidden; }
.sheet .top { background: var(--xv-charcoal); color: #fff; padding: .85rem 1.1rem; display: flex; justify-content: space-between; font-weight: 600; font-size: .95rem; }
.sheet .top span:last-child { color: var(--xv-copper-light); }
.sheet .ln { display: flex; align-items: center; gap: .8rem; padding: .8rem 1.1rem; border-bottom: 1px solid var(--xv-line); font-size: .98rem; }
.sheet .ln .bx { width: 20px; height: 20px; border: 1.5px solid var(--xv-charcoal); border-radius: 3px; display: grid; place-items: center; flex: none; }
.sheet .ln.done .bx { background: var(--xv-charcoal); color: #fff; }
.sheet .ln.done .t { color: #8a95a3; text-decoration: line-through; }
.sheet .ln .sync { margin-left: auto; font-size: .78rem; font-weight: 600; color: var(--xv-copper-dark); background: var(--xv-cream); padding: .15rem .5rem; border-radius: 3px; display: inline-flex; gap: .25rem; align-items: center; }
.sheet .note { padding: .9rem 1.1rem; background: var(--xv-paper); font-size: .92rem; color: var(--xv-muted); }

/* ---------- tiers ---------- */
.tier { height: 100%; display: flex; flex-direction: column; padding: 2.1rem 1.9rem; background: #fff; border: 1px solid var(--xv-line); border-radius: var(--xv-radius); position: relative; }
.tier.pick { border-color: var(--xv-charcoal); box-shadow: 0 4px 0 0 rgba(31,42,55,.1); }
.tier .tag { position: absolute; top: -.8rem; left: 1.9rem; background: var(--xv-copper); color: #fff; font-size: .82rem; font-weight: 700; padding: .15rem .7rem; border-radius: 3px; }
.tier h3 { font-size: 1.6rem; margin-bottom: .4rem; }
.tier ul { list-style: none; padding: 0; margin: 1.4rem 0 2rem; flex: 1; }
.tier li { display: flex; gap: .7rem; padding: .55rem 0; color: var(--xv-slate); font-size: 1rem; }
.tier li .material-symbols-outlined { color: var(--xv-copper); font-size: 20px; flex: none; margin-top: .1rem; }

/* ---------- discipline rows (services) ---------- */
.disc { padding: 4.5rem 0; }
.disc + .disc { border-top: 1px solid var(--xv-line); }
.disc .specs { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.disc .specs li { display: flex; justify-content: space-between; gap: 1.5rem; padding: .65rem 0; border-top: 1px solid var(--xv-line); font-size: .98rem; }
.disc .specs li span:first-child { color: #7a8696; }
.disc .specs li span:last-child { font-weight: 600; text-align: right; }

/* ---------- machines ---------- */
.mcard { display: flex; flex-direction: column; height: 100%; background: #fff; border-radius: var(--xv-radius); overflow: hidden; border: 1px solid var(--xv-line); transition: border-color .15s, transform .2s; }
.mcard:hover { border-color: var(--xv-charcoal); transform: translateY(-3px); }
.mcard .pic { aspect-ratio: 4 / 3; overflow: hidden; background: var(--xv-cream); position: relative; }
.mcard .pic img { width: 100%; height: 100%; object-fit: cover; }
.mcard .cond { position: absolute; left: .8rem; top: .8rem; background: #fff; border-radius: 3px; font-size: .82rem; font-weight: 600; padding: .15rem .55rem; color: var(--xv-charcoal); }
.mcard .body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.mcard h3 { font-size: 1.2rem; margin-bottom: .2rem; }
.mcard .meta { color: #7a8696; font-size: .95rem; margin-bottom: 1rem; }
.mcard .facts { font-size: .95rem; color: var(--xv-slate); margin-bottom: 1.2rem; }
.mcard .facts span + span::before { content: '\00b7'; margin: 0 .5rem; color: #b6beca; }
.mcard .foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.price { font-size: 1.5rem; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.filter-bar { display: flex; flex-wrap: wrap; gap: .5rem; }
.filter-bar button { background: #fff; border: 1px solid #cfc6ba; border-radius: 999px; padding: .5rem 1.1rem; font-weight: 600; font-size: .96rem; color: var(--xv-slate); transition: .15s; }
.filter-bar button:hover { border-color: var(--xv-charcoal); }
.filter-bar button.active { background: var(--xv-charcoal); border-color: var(--xv-charcoal); color: #fff; }
.mitem.hide { display: none; }

/* ---------- calculator ---------- */
.calc { background: #fff; border: 1px solid var(--xv-line); border-radius: var(--xv-radius); padding: 2.5rem; }
@media (max-width: 767.98px) { .calc { padding: 1.5rem; } }
.calc .readout { color: var(--xv-copper-dark); font-weight: 700; font-size: 1.15rem; }
.form-range::-webkit-slider-runnable-track { background: #d9d0c4; height: 4px; border-radius: 4px; }
.form-range::-moz-range-track { background: #d9d0c4; height: 4px; border-radius: 4px; }
.form-range::-webkit-slider-thumb { background: var(--xv-copper); border: 3px solid #fff; border-radius: 50%; width: 24px; height: 24px; margin-top: -10px; box-shadow: 0 0 0 1px var(--xv-copper); }
.form-range::-moz-range-thumb { background: var(--xv-copper); border: 3px solid #fff; border-radius: 50%; width: 24px; height: 24px; box-shadow: 0 0 0 1px var(--xv-copper); }
.form-range:focus { box-shadow: none; }
.form-range:focus::-webkit-slider-thumb { outline: 2px solid var(--xv-charcoal); outline-offset: 2px; }
.calc-out { background: var(--xv-cream); border-radius: var(--xv-radius); padding: 2rem; }
.calc-out .big { font-size: clamp(1.7rem, 2.6vw, 2.2rem); overflow-wrap: anywhere; font-weight: 700; letter-spacing: -.045em; color: var(--xv-copper-dark); line-height: 1; font-variant-numeric: tabular-nums; }

/* ---------- forms ---------- */
.form-label { font-weight: 600; font-size: .95rem; color: var(--xv-charcoal); margin-bottom: .35rem; }
.form-control, .form-select { border: 1px solid #aeb6c1; border-radius: var(--xv-radius); padding: .75rem .9rem; color: var(--xv-charcoal); background-color: #fff; font-size: 1rem; }
.form-control:focus, .form-select:focus { border-color: var(--xv-copper); box-shadow: none; outline: 2px solid rgba(184,115,51,.35); outline-offset: 0; }
.form-control::placeholder { color: #9aa5b3; }
.form-check-input { border: 1px solid var(--xv-charcoal); border-radius: 3px; width: 1.15rem; height: 1.15rem; margin-top: .25rem; }
.form-check-input:checked { background-color: var(--xv-charcoal); border-color: var(--xv-charcoal); }
.form-check-input:focus { box-shadow: none; outline: 2px solid rgba(184,115,51,.5); outline-offset: 2px; }
.form-text { color: #7a8696; }
.sev-opt { cursor: pointer; display: block; height: 100%; }
.sev-opt input { position: absolute; opacity: 0; }
.sev-opt .box { display: block; height: 100%; padding: .8rem 1rem; border: 1px solid #cfc6ba; border-radius: var(--xv-radius); background: #fff; font-weight: 600; transition: .15s; }
.sev-opt .box small { display: block; color: #7a8696; font-weight: 400; font-size: .88rem; }
.sev-opt input:checked + .box { border-color: var(--xv-copper); background: var(--xv-cream); box-shadow: inset 4px 0 0 var(--xv-copper); }
.sev-opt input:focus-visible + .box { outline: 2px solid var(--xv-charcoal); outline-offset: 2px; }
.nav-tabs-x { border-bottom: 1px solid var(--xv-charcoal); gap: .25rem; flex-wrap: nowrap; overflow-x: auto; }
.nav-tabs-x .nav-link { border: 1px solid transparent; border-bottom: 0; border-radius: var(--xv-radius) var(--xv-radius) 0 0; color: var(--xv-slate); font-weight: 600; padding: .85rem 1.3rem; white-space: nowrap; }
.nav-tabs-x .nav-link:hover { background: var(--xv-cream); }
.nav-tabs-x .nav-link.active { background: var(--xv-charcoal); color: #fff; border-color: var(--xv-charcoal); }
.form-card { background: #fff; border: 1px solid var(--xv-charcoal); border-top: 0; border-radius: 0 0 var(--xv-radius) var(--xv-radius); padding: 2.4rem; }
@media (max-width: 575.98px) { .form-card { padding: 1.4rem; } }
.ticket-ok { background: var(--xv-charcoal); color: #fff; border-radius: var(--xv-radius); padding: 2.2rem; }
.ticket-ok h3, .ticket-ok p { color: #fff; } .ticket-ok p { opacity: .85; }
.ticket-ok .tn { font-size: 2.4rem; font-weight: 700; color: var(--xv-copper-light); letter-spacing: -.03em; }

/* ---------- FAQ ---------- */
.accordion-x .accordion-item { border: 0; border-top: 1px solid #d9d0c4; border-radius: 0; background: transparent; }
.accordion-x .accordion-item:last-child { border-bottom: 1px solid #d9d0c4; }
.accordion-x .accordion-button { background: transparent; box-shadow: none; font-weight: 600; font-size: 1.15rem; padding: 1.4rem .25rem; color: var(--xv-charcoal); }
.accordion-x .accordion-button:not(.collapsed) { color: var(--xv-copper-dark); background: transparent; }
.accordion-x .accordion-button:focus { box-shadow: none; outline: 2px solid rgba(184,115,51,.4); outline-offset: -2px; }
.accordion-x .accordion-body { padding: 0 .25rem 1.5rem; color: var(--xv-muted); max-width: 46em; }

/* ---------- table ---------- */
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-weight: 600; font-size: .92rem; color: #7a8696; padding: .75rem 1rem; border-bottom: 1px solid var(--xv-charcoal); }
.tbl td { padding: .95rem 1rem; border-bottom: 1px solid var(--xv-line); }
.tbl .r { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- photo CTA ---------- */
.cta-photo { position: relative; color: #fff; overflow: hidden; background: var(--xv-charcoal); }
.cta-photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.cta-photo::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(20,28,38,.94) 0%, rgba(20,28,38,.8) 45%, rgba(20,28,38,.35) 100%); }
.cta-photo > .container { position: relative; z-index: 2; }
.cta-photo h2 { color: #fff; } .cta-photo p { color: #d6dde6; }

/* ---------- small content blocks ---------- */
.fact-list { list-style: none; padding: 0; margin: 0; }
.fact-list li { display: flex; gap: 1rem; padding: 1rem 0; border-top: 1px solid var(--xv-line); }
.fact-list li:last-child { border-bottom: 1px solid var(--xv-line); }
.fact-list .material-symbols-outlined { color: var(--xv-copper); margin-top: .15rem; }
.fact-list b { display: block; color: var(--xv-charcoal); }
.fact-list span.d { color: var(--xv-muted); font-size: .98rem; }
.note-card { background: var(--xv-cream); border-radius: var(--xv-radius); padding: 1.6rem; }
.info-card { background: #fff; border: 1px solid var(--xv-line); border-radius: var(--xv-radius); padding: 1.6rem; }
.kicker { font-size: .92rem; font-weight: 600; color: #7a8696; }
.mapbox { background: var(--xv-cream); border-radius: var(--xv-radius); overflow: hidden; }
.mapbox svg { display: block; width: 100%; height: auto; }

/* ---------- footer ---------- */
.xv-footer { background: var(--xv-charcoal); color: #cfd6df; padding: 5rem 0 0; }
.xv-footer img.flogo { height: 50px; width: auto; display: block; margin-bottom: 1.3rem; }
.xv-footer h6 { color: #fff; font-size: 1rem; font-weight: 700; margin-bottom: 1.1rem; letter-spacing: 0; }
.xv-footer ul { list-style: none; padding: 0; margin: 0; }
.xv-footer li { margin-bottom: .6rem; }
.xv-footer a { color: #cfd6df; } .xv-footer a:hover { color: var(--xv-copper-light); }
.xv-footer p { color: #98a4b3; }
.xv-footer .legal { border-top: 1px solid rgba(255,255,255,.14); margin-top: 3.5rem; padding: 1.5rem 0; font-size: .9rem; color: #98a4b3; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.xv-footer .legal a { margin-left: 1.4rem; font-size: .9rem; }
.xv-footer .form-control { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.28); color: #fff; }
.xv-footer .form-control::placeholder { color: #98a4b3; }

/* ---------- motion + focus ---------- */
.rv { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } .route img, .svc .thumb img { transition: none; } html { scroll-behavior: auto; } }
a:focus-visible, button:focus-visible { outline: 2px solid var(--xv-copper); outline-offset: 2px; }
#toTop { position: fixed; right: 1.2rem; bottom: 1.2rem; width: 46px; height: 46px; border: 1px solid var(--xv-charcoal); background: #fff; border-radius: 50%; display: none; place-items: center; z-index: 1000; }
#toTop.show { display: grid; }
.container { --bs-gutter-x: 3rem; }
@media (max-width: 575.98px) { .row.g-5 { --bs-gutter-x: 1.5rem; --bs-gutter-y: 2.5rem; } .container { --bs-gutter-x: 2rem; } }

/* desktop: the drawer markup behaves as a plain inline nav */
@media (min-width: 992px) {
  .xv-nav .offcanvas { display: flex; flex-direction: row; align-items: center; flex-grow: 1; justify-content: space-between; }
  .xv-nav .navbar-nav { flex-direction: row; }
}

/* ---------- technician cards ---------- */
.tcard { height: 100%; background: #fff; border: 1px solid var(--xv-line); border-radius: var(--xv-radius); padding: 1.7rem 1.5rem 1.4rem; display: flex; flex-direction: column; transition: border-color .15s, transform .2s; }
.tcard:hover { border-color: var(--xv-charcoal); transform: translateY(-3px); }
.tcard .av { width: 64px; height: 64px; border-radius: 50%; background: var(--xv-cream); color: var(--xv-copper-dark); display: grid; place-items: center; font-weight: 700; font-size: 1.3rem; letter-spacing: -.02em; margin-bottom: 1.1rem; border: 1px solid var(--xv-cream-deep); }
.tcard h3 { font-size: 1.25rem; margin-bottom: .1rem; }
.tcard .role { color: var(--xv-copper-dark); font-weight: 600; margin-bottom: .9rem; }
.tcard .meta { display: flex; flex-wrap: wrap; gap: .3rem 1rem; color: var(--xv-slate); font-size: .94rem; margin-bottom: 1rem; }
.tcard .meta span { display: inline-flex; align-items: center; gap: .3rem; }
.tcard .meta .material-symbols-outlined { color: #94a0ae; }
.tcard .skills { list-style: none; padding: 0; margin: 0 0 1.3rem; border-top: 1px solid var(--xv-line); }
.tcard .skills li { padding: .5rem 0; border-bottom: 1px solid var(--xv-line); font-size: .95rem; color: var(--xv-slate); }
.tcard .foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: .5rem; flex-wrap: wrap; font-size: .85rem; font-weight: 600; }
.avail { display: inline-flex; align-items: center; gap: .4rem; color: #7a8696; }
.avail i { width: 8px; height: 8px; border-radius: 50%; background: #c0c8d2; display: inline-block; }
.avail.ok { color: #2F7D5B; } .avail.ok i { background: #2F7D5B; }
.chip-ok { display: inline-flex; align-items: center; gap: .25rem; color: var(--xv-slate); }

/* ---------- blog ---------- */
.pmeta { display: flex; flex-wrap: wrap; gap: .25rem 1rem; font-size: .9rem; color: #7a8696; font-weight: 500; margin-bottom: .8rem; }
.pmeta span:first-child { color: var(--xv-copper-dark); font-weight: 700; }
.pcard { display: flex; flex-direction: column; height: 100%; color: inherit; }
.pcard .pic { aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--xv-radius); margin-bottom: 1.2rem; background: var(--xv-cream); }
.pcard .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.pcard:hover .pic img { transform: scale(1.04); }
.pcard h3 { font-size: 1.35rem; margin-bottom: .6rem; transition: color .15s; }
.pcard:hover h3 { color: var(--xv-copper-dark); }
.pcard p { margin-bottom: 1rem; }
.feature { display: block; color: inherit; background: var(--xv-paper); border: 1px solid var(--xv-line); border-radius: var(--xv-radius); overflow: hidden; }
.feature .fpic { height: 100%; min-height: 340px; position: relative; overflow: hidden; }
.feature .fpic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.feature:hover .fpic img { transform: scale(1.03); }
.feature .fbody { padding: 2.6rem; display: flex; flex-direction: column; justify-content: center; height: 100%; }
.feature h2 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); margin-bottom: 1rem; }
.feature:hover h2 { color: var(--xv-copper-dark); }
@media (max-width: 991.98px) { .feature .fpic { min-height: 0; aspect-ratio: 16 / 10; } .feature .fbody { padding: 1.6rem; } }
.post-head { background: var(--xv-paper); padding: 3.5rem 0 3rem; }
.post-head h1 { font-size: clamp(2.2rem, 4.6vw, 3.5rem); }
.post-head .back { color: var(--xv-slate); font-weight: 600; display: inline-flex; align-items: center; gap: .35rem; }
.post-head .back:hover { color: var(--xv-copper-dark); }
.byline { display: flex; align-items: center; gap: .9rem; line-height: 1.35; }
.av-sm { width: 44px; height: 44px; border-radius: 50%; background: var(--xv-charcoal); color: #fff; display: grid; place-items: center; font-weight: 700; }
.post-hero { margin-top: -0px; }
.post-hero img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; border-radius: var(--xv-radius); display: block; margin-top: -1.5rem; position: relative; }
.prose { font-size: 1.15rem; line-height: 1.75; }
.prose p { color: #3a4757; margin-bottom: 1.4rem; }
.prose h2 { font-size: 1.7rem; margin: 2.6rem 0 1rem; }
.prose ul { padding-left: 1.2rem; margin-bottom: 1.6rem; color: #3a4757; }
.prose li { margin-bottom: .55rem; padding-left: .3rem; }
.prose li::marker { color: var(--xv-copper); }
.flex-none { flex: none; }
@media (min-width: 992px) and (max-width: 1199.98px) { .xv-nav .nav-link { padding-left: .6rem !important; padding-right: .6rem !important; font-size: .95rem; } .xv-nav .nav-link.active::after { left: .6rem; right: .6rem; } .xv-nav .navbar-brand img { height: 40px; } }

/* ---------- detail pages ---------- */
a.tcard, a.mcard { display: block; color: inherit; }
.tcard img.av { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; display: block; background: #fff; }
a.tcard { transition: border-color .15s, transform .15s; }
a.tcard:hover { border-color: var(--xv-copper); transform: translateY(-2px); }
a.tcard:hover h3, a.mcard:hover h3 { color: var(--xv-copper-dark); }
.profile-ph { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; border: 4px solid #fff; box-shadow: 0 4px 0 0 rgba(31,42,55,.1); background: #fff; display: block; }
@media (max-width: 575.98px) { .profile-ph { width: 96px; height: 96px; } }
.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.tags li { background: var(--xv-cream); color: var(--xv-charcoal); padding: .45rem .9rem; border-radius: 999px; font-weight: 600; font-size: .95rem; }
.glance { margin: .8rem 0 1.6rem; }
.glance > div { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--xv-line); }
.glance dt { color: #7a8696; font-weight: 500; }
.glance dd { margin: 0; font-weight: 700; color: var(--xv-charcoal); text-align: right; }
.sticky-side { position: sticky; top: 100px; }
@media (max-width: 991.98px) { .sticky-side { position: static; } }
.machine-ph { position: relative; border-radius: var(--xv-radius); overflow: hidden; aspect-ratio: 16 / 10; background: var(--xv-cream); }
.machine-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.machine-ph .cond { position: absolute; left: 1rem; top: 1rem; }
.spec-tbl { width: 100%; border-collapse: collapse; }
.spec-tbl th, .spec-tbl td { padding: .85rem 0; border-bottom: 1px solid var(--xv-line); text-align: left; }
.spec-tbl th { color: #7a8696; font-weight: 500; width: 45%; }
.spec-tbl td { font-weight: 700; color: var(--xv-charcoal); }
.price-big { font-size: 2.4rem; font-weight: 700; color: var(--xv-charcoal); letter-spacing: -.02em; }
.fact-list.tight li { margin-bottom: .6rem; }
.machine-ph .cond { background: #fff; color: var(--xv-charcoal); font-size: .8rem; font-weight: 700; padding: .25rem .6rem; border-radius: 3px; }


/* ---- additions: nowrap nav buttons, blog read buttons, filter links, pagination ---- */
.xv-nav .btn { white-space: nowrap; }
.pcard .btn-read, .feature .btn-read { align-self: flex-start; margin-top: auto; }
.feature .btn-read { margin-top: .4rem; }
.pcard:hover .btn-read, .feature:hover .btn-read { background: var(--xv-charcoal); color: #fff; border-color: var(--xv-charcoal); }
.pcard:hover .btn-read .material-symbols-outlined, .feature:hover .btn-read .material-symbols-outlined { transform: translateX(3px); }
.btn-read .material-symbols-outlined { transition: transform .15s; font-size: 1.1em; }
.pcard .body { display: flex; flex-direction: column; flex: 1; }
.filter-bar a { display: inline-block; background: #fff; border: 1px solid #cfc6ba; border-radius: 999px; padding: .5rem 1.1rem; font-weight: 600; font-size: .96rem; color: var(--xv-slate); transition: .15s; }
.filter-bar a:hover { border-color: var(--xv-charcoal); color: var(--xv-slate); }
.filter-bar a.active { background: var(--xv-charcoal); border-color: var(--xv-charcoal); color: #fff; }
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .4rem; margin: 2.4rem 0 0; }
.pager a, .pager span.cur, .pager span.gap, .pager span.off { min-width: 44px; height: 44px; padding: 0 .9rem; display: inline-flex; align-items: center; justify-content: center; gap: .3rem; border-radius: var(--xv-radius); font-weight: 600; font-size: .98rem; border: 1px solid #cfc6ba; background: #fff; color: var(--xv-slate); }
.pager a:hover { border-color: var(--xv-charcoal); color: var(--xv-charcoal); }
.pager .cur { background: var(--xv-charcoal); border-color: var(--xv-charcoal); color: #fff; }
.pager .gap { border-color: transparent; background: transparent; min-width: 24px; padding: 0; }
.pager .off { opacity: .4; }
.pager .material-symbols-outlined { font-size: 1.2em; }
.pager-info { text-align: center; color: var(--xv-muted); font-size: .92rem; margin-top: .8rem; }
@media (max-width: 575px) { .pager .hide-xs { display: none; } }

.err-num { font-size: clamp(5rem, 16vw, 11rem); font-weight: 700; line-height: .9; letter-spacing: -.05em; color: var(--xv-cream-deep); margin: .6rem 0 .4rem; }

/* mobile drawer: actions fill the width and sit at the bottom */
@media (max-width: 991.98px) { .drawer-actions { margin-top: auto; padding-top: 1.5rem; } .drawer-actions .btn { width: 100%; padding: .95rem 1rem; font-size: 1rem; } }

/* areas we work in (home) */
.area { display: block; height: 100%; background: #fff; border: 1px solid var(--xv-line); border-radius: var(--xv-radius); padding: 1.8rem 1.8rem 1.6rem; color: inherit; transition: border-color .15s, transform .15s; }
.area:hover { border-color: var(--xv-copper); transform: translateY(-2px); }
.area .ic { width: 48px; height: 48px; border-radius: 50%; background: var(--xv-cream); display: grid; place-items: center; color: var(--xv-copper-dark); margin-bottom: 1.1rem; }
.area .ic .material-symbols-outlined { font-size: 26px; }
.area h3 { font-size: 1.35rem; margin-bottom: .5rem; }
.area p { margin: 0 0 1rem; font-size: 1rem; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.chips li { font-size: .84rem; font-weight: 500; color: var(--xv-slate); background: var(--xv-paper); border: 1px solid var(--xv-line); border-radius: 999px; padding: .2rem .7rem; }
.chips li.more { background: transparent; border-style: dashed; color: var(--xv-copper-dark); }
.area-more { display: grid; grid-template-columns: auto 1fr auto; gap: 1.4rem; align-items: center; height: auto; background: var(--xv-cream); border-color: var(--xv-cream-deep); }
.area-more .ic { background: #fff; margin: 0; }
.area-more h3 { margin-bottom: .2rem; }
.area-more p { margin: 0; }
.area-more .arrow { width: 44px; height: 44px; border: 1px solid var(--xv-charcoal); border-radius: 50%; display: grid; place-items: center; color: var(--xv-charcoal); }
.area-more:hover .arrow { background: var(--xv-copper); border-color: var(--xv-copper); color: #fff; }
@media (max-width: 575.98px) { .area { padding: 1.4rem 1.3rem; } .area-more { grid-template-columns: auto 1fr; } .area-more .arrow { display: none; } }

/* footer social icons */
.xv-footer .social { display: flex; gap: .6rem; margin-top: 1.4rem; }
.xv-footer .social a { width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; display: grid; place-items: center; color: #cfd6df; transition: .15s; }
.xv-footer .social a:hover { background: var(--xv-copper); border-color: var(--xv-copper); color: #fff; }

/* calculator: UGX figures are long, keep them on one line */
.calc .readout { white-space: nowrap; margin-left: .75rem; }
.calc-out { padding: 1.6rem 1.3rem; }
.calc-out #lossNow { font-size: 1.25rem !important; white-space: nowrap; }
.calc-out .big { font-size: clamp(1.3rem, 1.9vw, 1.6rem); white-space: nowrap; overflow-wrap: normal; letter-spacing: -.03em; }
@media (max-width: 767.98px) { .calc-out .big { font-size: 1.65rem; } .calc-out #lossNow { font-size: 1.5rem !important; } }

/* marketplace: enquiry section side panel */
.enq-side { display: flex; flex-direction: column; gap: 1rem; }
.enq-item { display: flex; gap: 1rem; align-items: center; background: var(--xv-cream); border-radius: var(--xv-radius); padding: 1rem; }
.enq-item img { width: 96px; height: 72px; object-fit: cover; border-radius: 8px; flex: none; }
.enq-item b { display: block; color: var(--xv-charcoal); line-height: 1.25; }
.enq-item .eyebrow-s { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--xv-muted); font-weight: 700; margin-bottom: .15rem; }
.enq-item .enq-price { display: block; font-weight: 700; color: var(--xv-copper-dark); margin-top: .15rem; }
.enq-item small { color: var(--xv-muted); }
.enq-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.enq-steps li { display: flex; gap: .9rem; align-items: flex-start; }
.enq-steps li > span { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--xv-charcoal); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .9rem; }
.enq-steps b { display: block; color: var(--xv-charcoal); }
.enq-steps small { display: block; color: var(--xv-muted); font-size: .95rem; line-height: 1.45; margin-top: .1rem; }
.enq-call { display: flex; flex-wrap: wrap; gap: .8rem 1.2rem; align-items: center; justify-content: space-between; border: 1px dashed #c9bfae; border-radius: var(--xv-radius); padding: 1rem 1.2rem; }
.enq-call b { display: block; color: var(--xv-charcoal); }
.enq-call small { color: var(--xv-muted); }

/* Rich-text article body (output of the blog editor). */
.prose h3 { font-size: 1.35rem; margin: 2rem 0 .8rem; }
.prose h4 { font-size: 1.1rem; margin: 1.6rem 0 .6rem; }
.prose ol { padding-left: 1.3rem; margin-bottom: 1.6rem; color: #3a4757; }
.prose a { color: var(--xv-copper); text-decoration: underline; text-underline-offset: 2px; }
.prose blockquote { border-left: 4px solid var(--xv-copper); margin: 1.8rem 0; padding: .4rem 0 .4rem 1.2rem; color: #3a4757; font-style: italic; }
.prose hr { border: 0; border-top: 1px solid rgba(31,42,55,.18); margin: 2.2rem 0; }
.prose img { max-width: 100%; height: auto; border-radius: 10px; }
.prose figure { margin: 1.8rem 0; }
.prose figure.image { display: table; clear: both; text-align: center; margin: 1.8rem auto; max-width: 100%; }
.prose figure.image img { display: block; margin: 0 auto; }
.prose figure.image-style-align-left, .prose .image-style-align-left { float: left; margin: .4rem 1.5rem 1rem 0; max-width: 50%; }
.prose figure.image-style-align-right, .prose .image-style-align-right { float: right; margin: .4rem 0 1rem 1.5rem; max-width: 50%; }
.prose figcaption { font-size: .9rem; color: #66727f; text-align: center; padding-top: .5rem; }
.prose figure.table { overflow-x: auto; margin: 1.8rem 0; }
.prose table { border-collapse: collapse; width: 100%; font-size: 1rem; }
.prose th, .prose td { border: 1px solid rgba(31,42,55,.2); padding: .55rem .8rem; vertical-align: top; }
.prose th { background: #f6ede4; text-align: left; }
.prose pre { background: #1f2a37; color: #f6ede4; padding: 1rem 1.2rem; border-radius: 10px; overflow-x: auto; font-size: .95rem; margin-bottom: 1.6rem; }
.prose code { background: rgba(184,115,51,.12); padding: .1rem .35rem; border-radius: 5px; font-size: .92em; }
.prose pre code { background: none; padding: 0; }
.prose figure.media { position: relative; padding-bottom: 56.25%; height: 0; margin: 1.8rem 0; }
.prose figure.media iframe, .prose iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 10px; }
.prose .todo-list { list-style: none; padding-left: 0; }
.prose::after { content: ""; display: block; clear: both; }
.prose mark.marker-yellow { background: #fff3a3; } .prose mark.marker-green { background: #bff0c9; }
.prose mark.marker-pink { background: #ffc9de; } .prose mark.marker-blue { background: #c4e3ff; }
@media (max-width: 359.98px) { .calc .readout { white-space: normal; margin-left: 0; } }
/* Closed menu drawer parks inside the viewport (it is hidden anyway) so iOS Safari never sees content off to the right. */
.xv-nav .offcanvas-end:not(.show):not(.showing):not(.hiding) { right: auto; left: 0; transform: none; }
