/* ==========================================================================
   Listo Ltd — site stylesheet
   Plain CSS, no framework. Brand red #BD242D, Poppins headings, Open Sans body.
   ========================================================================== */

:root {
  --red: #bd242d;
  --red-dark: #9c1c24;
  --red-soft: #fbeaeb;
  --ink: #1b1f24;
  --ink-2: #2f353c;
  --text: #33393f;
  --muted: #6b7178;
  --line: #e4e6e9;
  --bg: #ffffff;
  --bg-alt: #f5f6f7;
  --bg-dark: #1b1f24;
  --radius: 14px;
  --shadow: 0 8px 30px rgba(20, 24, 30, 0.08);
  --font-head: "Poppins", "Segoe UI", Arial, sans-serif;
  --font-body: "Open Sans", "Segoe UI", Arial, sans-serif;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 0.5em;
  font-weight: 600;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 20px; }
.skip-link {
  position: absolute; left: -999px; top: 8px; background: var(--red); color: #fff;
  padding: 8px 14px; border-radius: 6px; z-index: 1000;
}
.skip-link:focus { left: 8px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: 0.98rem;
  padding: 13px 24px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .15s;
  text-decoration: none !important; line-height: 1.2;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #f0f0f0; }
.btn-ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn svg { width: 18px; height: 18px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 78px; }
/* flex-shrink: 0 - without this, a logo image (a replaced element with
   width:auto) can get crushed far below its natural size by flexbox's
   shrink algorithm when sibling nav/button content is tight for space,
   since text content protected by white-space:nowrap can't shrink at all
   and dumps the whole deficit onto whatever still can. A logo should
   never be the thing that compresses. */
.logo { display: inline-flex; align-items: center; text-decoration: none !important; flex-shrink: 0; }
.logo img { height: 42px; width: auto; }
.logo-text {
  font-family: var(--font-head); font-weight: 700; font-size: 2rem; color: var(--red);
  letter-spacing: -0.03em; line-height: 1;
}
.logo-text span { color: var(--red); }
.nav { margin-left: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; align-items: center; }
.nav a {
  display: block; padding: 10px 12px; font-family: var(--font-head); font-weight: 500;
  font-size: 0.93rem; color: var(--ink-2); border-radius: 8px; white-space: nowrap;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--red); text-decoration: none; background: var(--red-soft); }
.header-cta { display: flex; align-items: center; gap: 14px; }
.header-phone { font-family: var(--font-head); font-weight: 600; color: var(--ink); white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; }
.header-phone svg { width: 18px; height: 18px; color: var(--red); }
.header-cta .btn { padding: 10px 18px; font-size: 0.9rem; white-space: nowrap; }
.nav-toggle {
  display: none; margin-left: auto; background: none; border: 1px solid var(--line);
  border-radius: 8px; padding: 8px 10px; cursor: pointer;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1280px) {
  .header-phone span { display: none; }
  .nav a { padding: 10px 9px; font-size: 0.9rem; }
  .header-inner { gap: 16px; }
}
@media (max-width: 1040px) {
  .nav a { padding: 10px 7px; font-size: 0.85rem; }
  .header-cta .btn { padding: 9px 14px; font-size: 0.85rem; }
}
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    padding: 12px 20px 20px;
  }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav a { padding: 12px 10px; font-size: 1rem; border-radius: 8px; }
  .header-cta { display: none; }
  .nav .nav-mobile-extra { display: block; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
}
.nav .nav-mobile-extra { display: none; }
.nav .nav-mobile-extra .btn { width: 100%; justify-content: center; margin-bottom: 10px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; background: var(--bg-dark); overflow: hidden;
  background-image:
    radial-gradient(ellipse at 85% 20%, rgba(189,36,45,.55), transparent 55%),
    radial-gradient(ellipse at 10% 90%, rgba(189,36,45,.25), transparent 50%),
    linear-gradient(160deg, #23282e 0%, #15181c 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: .18; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.35) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.35) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), transparent 90%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), transparent 90%);
}
.hero .wrap { position: relative; padding-block: clamp(72px, 10vw, 128px); }
.hero h1 { color: #fff; max-width: 15ch; }
.hero p.lede { font-size: clamp(1.05rem, 1.8vw, 1.3rem); max-width: 60ch; color: rgba(255,255,255,.86); }
.hero .eyebrow { color: #ff8b92; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero-panel {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius); padding: 26px; backdrop-filter: blur(4px);
}
.hero-panel h3 { color: #fff; font-size: 1.05rem; margin-bottom: 14px; }
.hero-panel ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.hero-panel li { display: flex; gap: 10px; align-items: flex-start; color: rgba(255,255,255,.88); font-size: .98rem; }
.hero-panel li svg { flex: none; width: 20px; height: 20px; color: #ff8b92; margin-top: 3px; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }

/* Page hero (inner pages) */
.page-hero { background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.page-hero .wrap { padding-block: clamp(44px, 6vw, 72px); }
.page-hero h1 { margin-bottom: 8px; }
.page-hero p { max-width: 68ch; font-size: 1.1rem; color: var(--muted); margin: 0; }
.breadcrumb { font-size: .88rem; color: var(--muted); margin-bottom: 14px; font-family: var(--font-head); }
.breadcrumb a { color: var(--muted); }
.breadcrumb span { margin: 0 8px; }
.eyebrow {
  display: inline-block; font-family: var(--font-head); font-weight: 600; font-size: .8rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--red); margin-bottom: 10px;
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(56px, 8vw, 96px); }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--bg-dark); color: rgba(255,255,255,.88); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 70ch; margin-bottom: 40px; }
.section-head p { font-size: 1.1rem; color: var(--muted); }
.section-dark .section-head p { color: rgba(255,255,255,.75); }
.center { text-align: center; margin-inline: auto; }
.lead { font-size: 1.15rem; color: var(--muted); }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card h3 { margin-top: 14px; }
.card p:last-child { margin-bottom: 0; }
.card .icon {
  width: 52px; height: 52px; border-radius: 12px; background: var(--red-soft); color: var(--red);
  display: grid; place-items: center;
}
.card .icon svg { width: 26px; height: 26px; }
.card-link { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-head); font-weight: 600; margin-top: 14px; }
.card-link svg { width: 16px; height: 16px; }
a.card { color: inherit; text-decoration: none !important; display: block; }

/* Split (text + image) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } .split.reverse > :first-child { order: 0; } }
.figure {
  border-radius: var(--radius); overflow: hidden; background: var(--bg-alt);
  border: 1px solid var(--line); aspect-ratio: 4 / 3; position: relative;
}
.figure img { width: 100%; height: 100%; object-fit: cover; }
.figure.placeholder {
  display: grid; place-items: center;
  background: linear-gradient(135deg, #2b3138 0%, #1b1f24 60%, #3a1518 100%);
}
.figure.placeholder svg { width: 40%; max-width: 160px; opacity: .35; color: #fff; }
.figure.contain { aspect-ratio: auto; }
.figure.contain img { object-fit: contain; height: auto; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { padding: 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.stat strong { display: block; font-family: var(--font-head); font-size: 2.2rem; color: var(--red); line-height: 1.1; }
.stat span { color: var(--muted); font-size: .95rem; }
.section-dark .stat { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); }
.section-dark .stat span { color: rgba(255,255,255,.7); }

/* Check list */
.checks { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks li svg { flex: none; width: 22px; height: 22px; color: var(--red); margin-top: 2px; }

/* Client logos */
.logo-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
@media (max-width: 960px) { .logo-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 560px) { .logo-grid { grid-template-columns: repeat(2, 1fr); } }
.logo-tile {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; min-height: 96px;
  display: grid; place-items: center; padding: 18px;
}
.logo-tile img { max-height: 46px; width: auto; filter: grayscale(1); opacity: .8; transition: filter .2s, opacity .2s; }
.logo-tile:hover img { filter: none; opacity: 1; }
.logo-tile .logo-fallback { font-family: var(--font-head); font-weight: 600; color: var(--ink-2); text-align: center; font-size: .95rem; }

/* Customer cards */
.customer { display: flex; gap: 18px; align-items: flex-start; }
.customer .logo-tile { flex: none; width: 120px; min-height: 80px; padding: 12px; }
.customer h3 { margin: 0 0 4px; font-size: 1.1rem; }
.customer p { margin: 0; color: var(--muted); font-size: .97rem; }
.customer .sector { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--red); font-family: var(--font-head); font-weight: 600; }

/* Feature rows */
.feature-list { display: grid; gap: 18px; }
.feature { display: flex; gap: 16px; align-items: flex-start; }
.feature .icon { flex: none; width: 46px; height: 46px; border-radius: 10px; background: var(--red-soft); color: var(--red); display: grid; place-items: center; }
.feature .icon svg { width: 22px; height: 22px; }
.feature h3 { font-size: 1.08rem; margin-bottom: 4px; }
.feature p { margin: 0; color: var(--muted); }

/* Quote */
.quote {
  border-left: 4px solid var(--red); padding: 8px 0 8px 22px; margin: 28px 0;
  font-family: var(--font-head); font-size: 1.25rem; color: var(--ink);
}
.quote cite { display: block; font-style: normal; font-family: var(--font-body); font-size: .95rem; color: var(--muted); margin-top: 8px; }

/* ISO badge */
.iso-badge {
  display: flex; gap: 20px; align-items: center; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 26px;
}
.iso-badge img { width: 110px; height: auto; flex: none; }
.iso-badge .badge-fallback {
  flex: none; width: 110px; height: 110px; border-radius: 50%; border: 3px solid var(--red);
  display: grid; place-items: center; text-align: center; font-family: var(--font-head);
  font-weight: 700; color: var(--red); font-size: .8rem; line-height: 1.2; padding: 8px;
}
.iso-badge strong { display: block; font-family: var(--font-head); color: var(--ink); font-size: 1.05rem; }
.iso-badge p { margin: 4px 0 0; font-size: .95rem; color: var(--muted); }

/* CTA band */
.cta-band { background: var(--red); color: #fff; }
.cta-band .wrap { padding-block: 56px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-band h2 { color: #fff; margin: 0 0 6px; font-size: 1.8rem; }
.cta-band p { margin: 0; color: rgba(255,255,255,.88); }
.cta-band .actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .icon { flex: none; width: 44px; height: 44px; border-radius: 10px; background: var(--red-soft); color: var(--red); display: grid; place-items: center; }
.contact-list .icon svg { width: 22px; height: 22px; }
.contact-list strong { display: block; font-family: var(--font-head); font-size: .95rem; color: var(--ink); }
.contact-list a { color: var(--text); }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); margin-top: 28px; }
.map iframe { display: block; width: 100%; height: 300px; border: 0; }

form.contact-form { display: grid; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
label { font-family: var(--font-head); font-weight: 500; font-size: .92rem; color: var(--ink); display: block; margin-bottom: 6px; }
input, textarea, select {
  width: 100%; font: inherit; padding: 12px 14px; border: 1px solid #cfd3d8; border-radius: 10px;
  background: #fff; color: var(--text);
}
input:focus, textarea:focus { outline: 2px solid var(--red); outline-offset: 1px; border-color: var(--red); }
textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: .86rem; color: var(--muted); margin: 0; }
.form-status { display: none; padding: 12px 16px; border-radius: 10px; font-size: .95rem; }
.form-status.ok { display: block; background: #e8f6ec; color: #1d6b34; }
.form-status.err { display: block; background: var(--red-soft); color: var(--red-dark); }
.hp { position: absolute; left: -9999px; }

/* Prose pages */
.prose { max-width: 76ch; }
.prose h2 { font-size: 1.5rem; margin-top: 2em; }
.prose h3 { margin-top: 1.5em; }
.prose ul li { margin-bottom: .4em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-dark); color: rgba(255,255,255,.78); font-size: .95rem; }
.footer-top { padding-block: 60px 40px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
@media (max-width: 960px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: .95rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.site-footer a { color: rgba(255,255,255,.78); }
.site-footer a:hover { color: #fff; }
.footer-logo .logo-text { color: #fff; }
.footer-logo .logo-text span { color: var(--red); }
.footer-logo img { height: 40px; width: auto; }
.footer-iso { display: flex; gap: 12px; align-items: center; margin-top: 18px; font-size: .88rem; }
.footer-iso .mark {
  flex: none; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--red);
  display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: .55rem; color: #fff; text-align: center; line-height: 1.1;
}
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-block: 22px; display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: .86rem; color: rgba(255,255,255,.6); }
.footer-bottom a { color: rgba(255,255,255,.7); }
.social { display: inline-flex; align-items: center; gap: 8px; }
.social svg { width: 18px; height: 18px; }

/* FAQ */
.faq-list { max-width: 820px; display: grid; gap: 10px; }
.faq { border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 0 20px; }
.faq summary { cursor: pointer; font-family: var(--font-head); font-weight: 600; color: var(--ink); padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--red); font-size: 1.4rem; line-height: 1; flex: none; }
.faq[open] summary::after { content: "–"; }
.faq p { margin: 0 0 18px; color: var(--muted); }
