/* ZOYO ECOSYSTEM UI v3 — premium dark header + colour-coded business units.
   Loaded after main.css / v2.css; only presentation, no behaviour. */

:root {
  --zo-fresh: #16a34a;
  --zo-fresh-soft: #e9f8ef;
  --zo-fix: #7c3aed;
  --zo-fix-soft: #f1ebfe;
  --zo-own: #f97316;
  --zo-own-soft: #fff0e4;
  --zo-zts: #2563eb;
  --zo-zts-soft: #e8f0ff;
  --zo-dark: #0d1117;
  --zo-dark-2: #161b22;
  --zo-line: #e7ecea;
  --zo-muted: #64748b;
  --zo-r: 18px;
  --zo-shadow: 0 10px 30px rgba(13, 17, 23, .08);
}

/* ---------- global safety: no horizontal overflow anywhere ---------- */
html, body { max-width: 100%; overflow-x: hidden; }
img, video, canvas, iframe { max-width: 100%; }
.container, .container-fluid { overflow-x: clip; }

/* ---------- Smart header ---------- */
.zo-header {
  position: fixed; inset: 0 0 auto 0; z-index: 1045;
  background: var(--zo-dark); color: #fff; border-bottom: 1px solid rgba(255,255,255,.08);
}
body.zo-shell { padding-top: 116px; }
@media (min-width: 992px) { body.zo-shell { padding-top: 78px; } }

.zo-bar { display: flex; align-items: center; gap: .75rem; min-height: 62px; }
.zo-brand { display: flex; align-items: center; gap: .5rem; color: #fff; font-weight: 900; letter-spacing: -.02em; flex: 0 0 auto; }
.zo-brand:hover { color: #fff; }
.zo-brand-mark {
  width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; font-size: 1.05rem;
  background: linear-gradient(140deg, var(--zo-fresh), #34d399); box-shadow: 0 6px 16px rgba(22,163,74,.35);
}
.zo-brand b { font-size: 1.05rem; line-height: 1; display: block; }
.zo-brand small { font-size: .62rem; letter-spacing: .28em; color: #86efac; text-transform: uppercase; }

.zo-nav { display: none; gap: .15rem; align-items: center; min-width: 0; }
@media (min-width: 1200px) { .zo-nav { display: flex; } }
.zo-nav a {
  color: #cbd5e1; font-weight: 700; font-size: .78rem; letter-spacing: .04em; text-transform: uppercase;
  padding: .45rem .6rem; border-radius: 9px; white-space: nowrap; transition: background .2s, color .2s;
}
.zo-nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.zo-nav a.is-fresh.active, .zo-nav a.is-fresh:hover { color: #4ade80; }
.zo-nav a.is-fix.active, .zo-nav a.is-fix:hover { color: #c4b5fd; }
.zo-nav a.is-own.active, .zo-nav a.is-own:hover { color: #fdba74; }
.zo-nav a.is-zts.active, .zo-nav a.is-zts:hover { color: #93c5fd; }

.zo-search { position: relative; flex: 1 1 auto; min-width: 0; max-width: 420px; display: none; }
@media (min-width: 992px) { .zo-search { display: block; } }
.zo-search input {
  width: 100%; border: 0; border-radius: 12px; background: #fff; color: #0d1117;
  padding: .55rem 2.4rem .55rem .9rem; font-size: .88rem; outline: 0;
}
.zo-search input:focus { box-shadow: 0 0 0 3px rgba(22,163,74,.35); }
.zo-search .zo-search-btn {
  position: absolute; right: .3rem; top: 50%; transform: translateY(-50%); border: 0; background: transparent;
  color: #475569; padding: .25rem .4rem; line-height: 1;
}

.zo-tools { display: flex; align-items: center; gap: .4rem; margin-left: auto; flex: 0 0 auto; }
.zo-chip {
  display: inline-flex; align-items: center; gap: .35rem; color: #e2e8f0; font-size: .78rem; font-weight: 700;
  background: rgba(255,255,255,.08); border: 0; border-radius: 999px; padding: .4rem .7rem; max-width: 150px;
}
.zo-chip:hover { color: #fff; background: rgba(255,255,255,.16); }
.zo-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zo-icon-btn {
  position: relative; display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 12px;
  background: rgba(255,255,255,.08); color: #fff; border: 0; font-size: 1rem;
}
.zo-icon-btn:hover { background: rgba(255,255,255,.18); color: #fff; }
.zo-icon-btn .zo-count {
  position: absolute; top: -5px; right: -5px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px;
  background: var(--zo-own); color: #fff; font-size: .68rem; font-weight: 800; display: grid; place-items: center;
}
.zo-mobile-search { padding: 0 0 .55rem; }
@media (min-width: 992px) { .zo-mobile-search { display: none; } }
.zo-mobile-search input {
  width: 100%; border: 0; border-radius: 12px; padding: .55rem .9rem; font-size: .9rem; outline: 0;
}

/* offcanvas menu */
.zo-menu { background: var(--zo-dark); color: #fff; width: min(86vw, 320px); }
.zo-menu .btn-close { filter: invert(1) grayscale(1) brightness(2); }
.zo-menu a {
  display: flex; align-items: center; gap: .65rem; color: #e2e8f0; font-weight: 700; font-size: .95rem;
  padding: .65rem .8rem; border-radius: 12px; background: rgba(255,255,255,.05);
}
.zo-menu a:hover { background: rgba(255,255,255,.12); color: #fff; }
.zo-menu a.is-fresh { border-left: 4px solid var(--zo-fresh); }
.zo-menu a.is-fix { border-left: 4px solid var(--zo-fix); }
.zo-menu a.is-own { border-left: 4px solid var(--zo-own); }
.zo-menu a.is-zts { border-left: 4px solid var(--zo-zts); }
.zo-menu-sep { border-top: 1px solid rgba(255,255,255,.12); margin: .5rem 0; }

/* ---------- Hero ---------- */
.zo-hero { padding: 18px 0 6px; }
.zo-hero-card {
  position: relative; border-radius: 26px; overflow: hidden; background: linear-gradient(120deg, #f3fbf6, #eef6ff 65%, #fff7ed);
  border: 1px solid var(--zo-line); box-shadow: var(--zo-shadow);
}
.zo-hero-grid { display: grid; grid-template-columns: 1fr; }
@media (min-width: 992px) { .zo-hero-grid { grid-template-columns: 1.05fr .95fr; } }
.zo-hero-copy { padding: 26px 20px; }
@media (min-width: 992px) { .zo-hero-copy { padding: 44px; } }
.zo-hero-copy h1 { font-size: clamp(1.6rem, 5.4vw, 2.9rem); line-height: 1.1; margin: .35rem 0 .6rem; }
.zo-hero-copy h1 em { font-style: normal; color: var(--zo-fresh); }
.zo-hero-copy p { font-size: clamp(.95rem, 2.6vw, 1.05rem); max-width: 44ch; }
.zo-hero-badge {
  display: inline-flex; align-items: center; gap: .4rem; background: #fff; border: 1px solid var(--zo-line);
  border-radius: 999px; padding: .3rem .8rem; font-size: .74rem; font-weight: 800; color: var(--zo-fresh);
}
.zo-hero-usps { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: .55rem; margin: 1rem 0; }
.zo-hero-usp {
  background: #fff; border: 1px solid var(--zo-line); border-radius: 14px; padding: .55rem .7rem;
  display: flex; align-items: center; gap: .5rem; font-size: .78rem; font-weight: 700; min-width: 0;
}
.zo-hero-usp b { display: block; font-size: .8rem; }
.zo-hero-usp small { color: var(--zo-muted); font-weight: 600; font-size: .68rem; }
.zo-hero-cta { display: flex; flex-wrap: wrap; gap: .55rem; }
.zo-hero-media { position: relative; min-height: 210px; }
.zo-hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.zo-hero-offer {
  position: absolute; right: 14px; bottom: 14px; background: rgba(13,17,23,.88); color: #fff;
  border-radius: 18px; padding: 14px 16px; text-align: center; backdrop-filter: blur(8px); max-width: 62%;
}
.zo-hero-offer small { display: block; font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; opacity: .8; }
.zo-hero-offer b { display: block; font-size: 1.7rem; color: #fbbf24; line-height: 1; margin: .1rem 0 .35rem; }
.zo-hero-dots { display: flex; gap: .35rem; justify-content: center; padding: .7rem 0 0; }
.zo-hero-dots button { width: 8px; height: 8px; border-radius: 999px; border: 0; background: #cbd5e1; padding: 0; }
.zo-hero-dots button.on { background: var(--zo-fresh); width: 22px; }

/* ---------- Ecosystem cards ---------- */
.zo-eco { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
@media (min-width: 992px) { .zo-eco { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; } }
.zo-eco-card {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: .4rem;
  border-radius: var(--zo-r); padding: 18px 12px; border: 1px solid var(--zo-line); background: #fff;
  transition: transform .25s ease, box-shadow .25s ease; min-width: 0;
}
.zo-eco-card:hover { transform: translateY(-6px); box-shadow: var(--zo-shadow); }
.zo-eco-ico { width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; font-size: 1.8rem; }
.zo-eco-card h3 { font-size: .95rem; margin: 0; }
.zo-eco-card p { font-size: .74rem; margin: 0; color: var(--zo-muted); }
.zo-eco-card .zo-eco-btn {
  margin-top: .5rem; border-radius: 999px; color: #fff; font-weight: 800; font-size: .78rem; padding: .4rem 1rem;
  display: inline-block; width: 100%;
}
.zo-eco-fresh { background: var(--zo-fresh-soft); } .zo-eco-fresh h3 { color: var(--zo-fresh); } .zo-eco-fresh .zo-eco-btn { background: var(--zo-fresh); }
.zo-eco-fix { background: var(--zo-fix-soft); } .zo-eco-fix h3 { color: var(--zo-fix); } .zo-eco-fix .zo-eco-btn { background: var(--zo-fix); }
.zo-eco-own { background: var(--zo-own-soft); } .zo-eco-own h3 { color: var(--zo-own); } .zo-eco-own .zo-eco-btn { background: var(--zo-own); }
.zo-eco-zts { background: var(--zo-zts-soft); } .zo-eco-zts h3 { color: var(--zo-zts); } .zo-eco-zts .zo-eco-btn { background: var(--zo-zts); }

/* ---------- Circular tiles (categories / services) ---------- */
.zo-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; }
@media (min-width: 768px) { .zo-tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .zo-tiles { grid-template-columns: repeat(8, minmax(0, 1fr)); } }
.zo-tile { text-align: center; min-width: 0; display: block; }
.zo-tile-img {
  width: 100%; aspect-ratio: 1/1; border-radius: 50%; overflow: hidden; background: #f1f5f9;
  border: 1px solid var(--zo-line); display: grid; place-items: center; transition: transform .25s ease, box-shadow .25s ease;
}
.zo-tile:hover .zo-tile-img { transform: translateY(-5px) scale(1.03); box-shadow: var(--zo-shadow); }
.zo-tile-img img { width: 100%; height: 100%; object-fit: cover; }
.zo-tile-name { display: block; font-size: .74rem; font-weight: 700; color: #0d1117; margin-top: .45rem; line-height: 1.25; }
.zo-tile-fix .zo-tile-img { background: var(--zo-fix-soft); }
.zo-tile-zts .zo-tile-img { background: var(--zo-zts-soft); border-radius: 16px; }

/* ---------- Own product cards ---------- */
.zo-own-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
@media (min-width: 768px) { .zo-own-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .zo-own-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.zo-own-card {
  border: 1px solid var(--zo-line); border-radius: var(--zo-r); background: #fff; padding: 10px; min-width: 0;
  display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease;
}
.zo-own-card:hover { transform: translateY(-5px); box-shadow: var(--zo-shadow); }
.zo-own-card .thumb { aspect-ratio: 1/1; border-radius: 12px; overflow: hidden; background: var(--zo-own-soft); }
.zo-own-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.zo-own-card:hover .thumb img { transform: scale(1.06); }
.zo-own-card h3 { font-size: .84rem; margin: .55rem 0 .1rem; }
.zo-own-card small { color: var(--zo-muted); font-size: .72rem; }
.zo-own-foot { display: flex; align-items: center; justify-content: space-between; gap: .4rem; margin-top: auto; padding-top: .5rem; }
.zo-own-price { font-weight: 800; color: var(--zo-own); }
.zo-own-price del { color: var(--zo-muted); font-weight: 600; font-size: .74rem; margin-left: .25rem; }
.zo-own-add {
  width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--zo-own); color: #fff;
  font-size: 1.1rem; line-height: 1; flex: 0 0 auto;
}

/* ---------- Section heads ---------- */
.zo-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 14px; }
.zo-head h2 { font-size: clamp(1.05rem, 3.4vw, 1.35rem); margin: 0; min-width: 0; }
.zo-head a { font-size: .8rem; font-weight: 800; white-space: nowrap; }
.zo-head-fresh a { color: var(--zo-fresh); }
.zo-head-fix a { color: var(--zo-fix); }
.zo-head-own a { color: var(--zo-own); }
.zo-head-zts a { color: var(--zo-zts); }

/* ---------- Offer strip ---------- */
.zo-offers { display: grid; grid-template-columns: 1fr; gap: .75rem; }
@media (min-width: 768px) { .zo-offers { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.zo-offer {
  border-radius: var(--zo-r); padding: 18px; color: #fff; min-height: 120px; display: flex; flex-direction: column;
  justify-content: center; box-shadow: var(--zo-shadow);
}
.zo-offer b { font-size: 1.15rem; }
.zo-offer span { font-size: .82rem; opacity: .92; }
.zo-offer-1 { background: linear-gradient(130deg, #16a34a, #4ade80); }
.zo-offer-2 { background: linear-gradient(130deg, #7c3aed, #a78bfa); }
.zo-offer-3 { background: linear-gradient(130deg, #f97316, #fbbf24); }

/* ---------- Mobile bottom nav ---------- */
.zo-bottom {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1044; display: grid; grid-template-columns: repeat(5, 1fr);
  background: #fff; border-top: 1px solid var(--zo-line); box-shadow: 0 -6px 20px rgba(13,17,23,.08);
}
@media (min-width: 992px) { .zo-bottom { display: none; } }
body.zo-shell { padding-bottom: 64px; }
@media (min-width: 992px) { body.zo-shell { padding-bottom: 0; } }
.zo-bottom a {
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: .45rem 0 .5rem;
  font-size: .64rem; font-weight: 700; color: #475569; position: relative;
}
.zo-bottom a.active { color: var(--zo-fresh); }
.zo-bottom .ico { font-size: 1.08rem; line-height: 1; }
.zo-bottom .zo-count {
  position: absolute; top: 2px; right: calc(50% - 20px); min-width: 16px; height: 16px; border-radius: 999px;
  background: var(--zo-own); color: #fff; font-size: .6rem; font-weight: 800; display: grid; place-items: center; padding: 0 4px;
}

/* keep floating social above bottom nav on mobile */
@media (max-width: 991.98px) { .zf-social-float { bottom: 78px !important; } }

/* ---------- Mobile-first checkout / form fixes ---------- */
@media (max-width: 575.98px) {
  .zf-panel { padding: 16px; border-radius: 16px; }
  .section { padding: 26px 0; }
  .table-responsive { -webkit-overflow-scrolling: touch; }
  .btn { white-space: normal; }
  .zf-steps, .zo-steps { overflow-x: auto; }
}
.zo-steps { display: flex; gap: .5rem; padding-bottom: .35rem; }
.zo-steps .step { flex: 0 0 auto; }
.row { --bs-gutter-x: .9rem; }

/* Keep the ecosystem nav from colliding with the search field on laptops */
@media (max-width: 1399.98px) {
  .zo-nav a:nth-child(5) { display: none; }
  .zo-nav { gap: .1rem; }
  .zo-nav a { padding: .35rem .5rem; font-size: .82rem; }
}

/* ------------------------------------------------------------------
   Service booking grid (ZOYO FIX + ZOYO CUSTOM)
------------------------------------------------------------------ */
.zf-eyebrow-fix { color: #8b5cf6; }
.zf-eyebrow-own { color: #f97316; }

.zf-svc-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
}
.zf-svc-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, .1);
  background: #fff;
  box-shadow: 0 6px 20px rgba(15, 23, 42, .05);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  min-height: 100%;
}
.zf-svc-card:hover, .zf-svc-card:focus-visible { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(15, 23, 42, .12); }
.zf-svc-card.on { border-color: currentColor; box-shadow: 0 14px 32px rgba(15, 23, 42, .14); }
.zf-svc-card strong { font-size: .98rem; line-height: 1.25; }
.zf-svc-card small { color: #64748b; font-size: .78rem; line-height: 1.3; }
.zf-svc-icon {
  width: 42px; height: 42px; border-radius: 14px;
  display: grid; place-items: center; font-size: 1.25rem;
  background: rgba(15, 23, 42, .06);
}
.zf-svc-price { margin-top: auto; font-weight: 700; font-size: .82rem; }
.zf-accent-fix { color: #7c3aed; }
.zf-accent-fix .zf-svc-icon { background: rgba(124, 58, 237, .12); }
.zf-accent-own { color: #ea580c; }
.zf-accent-own .zf-svc-icon { background: rgba(234, 88, 12, .12); }

@media (max-width: 400px) {
  .zf-svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .zf-svc-card { padding: 12px; border-radius: 14px; }
}
