/* ═══════════════════════════════════════════════
   SYVEL plus s.r.o. — sdílené styly
   Brandové barvy: červená, zlatá, šedá, navy
═══════════════════════════════════════════════ */

/* ── Variables ── */
:root {
  /* Brand (z loga) */
  --red:    #CC2828;
  --red-dk: #A82020;
  --gold:   #F0A020;
  --sq-gray:#8C8C8C;

  /* Layout */
  --navy:   #1C2540;
  --text:   #1C2540;
  --muted:  #6B7280;
  --light:  #F6F6F4;
  --white:  #FFFFFF;
  --border: #E6E6E4;

  /* Design tokens */
  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 20px;
  --shadow:    0 2px 16px rgba(28,37,64,.08);
  --shadow-md: 0 6px 32px rgba(28,37,64,.12);
  --t:         .25s cubic-bezier(.4,0,.2,1);

  --max-w: 1120px;
}

/* Dark mode (OS preference or data-theme attribute) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --text:   #E8EAED;
    --muted:  #9CA3AF;
    --light:  #2A2E3F;
    --white:  #1A1E2E;
    --border: #3A3F4F;
    --shadow: 0 2px 16px rgba(0,0,0,.3);
    --shadow-md: 0 6px 32px rgba(0,0,0,.4);
  }
  :root:not([data-theme="light"]) body { background: var(--white); color: var(--text); }
  :root:not([data-theme="light"]) a { color: #FFB366; }
  :root:not([data-theme="light"]) input, :root:not([data-theme="light"]) textarea, :root:not([data-theme="light"]) select { background: var(--light); color: var(--text); border-color: var(--border); }
}

/* Manual dark theme (data-theme="dark") */
html[data-theme="dark"] {
  --text:   #E8EAED;
  --muted:  #9CA3AF;
  --light:  #2A2E3F;
  --white:  #1A1E2E;
  --border: #3A3F4F;
  --shadow: 0 2px 16px rgba(0,0,0,.3);
  --shadow-md: 0 6px 32px rgba(0,0,0,.4);
}
html[data-theme="dark"] body { background: var(--white); color: var(--text); }
html[data-theme="dark"] a { color: #FFB366; }
html[data-theme="dark"] input, html[data-theme="dark"] textarea, html[data-theme="dark"] select { background: var(--light); color: var(--text); border-color: var(--border); }

/* Dark-mode readability: components that hard-code color:var(--navy) for text
   would otherwise be near-invisible on the dark content background.
   These selectors live on the dark page body (not the always-light nav),
   so flip them to the (light) text colour. Higher specificity than the
   per-page component rules thanks to the theme ancestor + :is(). */
html[data-theme="dark"] :is(
  .legal h2, .faq__item summary, .office-card__body h3, .company-info__item dd,
  .faktury-notice strong, .form-intro__contact-text strong, .form-group label,
  .project-card h3, .project-card__title, .why-card h4, .why-work__card h4,
  .job-card__title, .cert-card__title, .cert-doc__label strong, .partner-card__text-logo,
  .testimonial-card__name, .person-card strong, .process-step h4, .err-title,
  .cert-strip__badge span
) { color: var(--text); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) :is(
    .legal h2, .faq__item summary, .office-card__body h3, .company-info__item dd,
    .faktury-notice strong, .form-intro__contact-text strong, .form-group label,
    .project-card h3, .project-card__title, .why-card h4, .why-work__card h4,
    .job-card__title, .cert-card__title, .cert-doc__label strong, .partner-card__text-logo,
    .testimonial-card__name, .person-card strong, .process-step h4, .err-title,
    .cert-strip__badge span
  ) { color: var(--text); }
}

/* Manual light theme override */
html[data-theme="light"] {
  --text:   #1C2540;
  --muted:  #6B7280;
  --light:  #F6F6F4;
  --white:  #FFFFFF;
  --border: #E6E6E4;
  --shadow: 0 2px 16px rgba(28,37,64,.08);
  --shadow-md: 0 6px 32px rgba(28,37,64,.12);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Outfit', system-ui, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
/* <picture> wrappers (WebP + fallback) must not affect layout — let the inner
   <img> behave as if it were a direct child of the picture's parent. */
picture { display: contents; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

/* ── Utility ── */
.container   { max-width: var(--max-w); margin: 0 auto; padding: 0 28px; }
.section     { padding: 88px 0; }
.section--alt{ background: var(--light); }
.section--dk { background: var(--navy); color: var(--white); }

/* Labels & headings */
.label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .72rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--red); margin-bottom: 14px;
}
.label::before {
  content: '';
  display: inline-block; width: 20px; height: 2px;
  background: var(--gold); border-radius: 2px;
}
.h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800; line-height: 1.08;
  letter-spacing: -.03em;
}
.h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700; line-height: 1.15;
  letter-spacing: -.02em;
  margin-bottom: 18px;
}
.h3 {
  font-size: 1.25rem;
  font-weight: 700; line-height: 1.3;
  margin-bottom: 10px;
}
.lead {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 580px;
  line-height: 1.75;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px;
  border-radius: 100px;
  font-size: .93rem; font-weight: 600;
  transition: var(--t);
  white-space: nowrap;
  border: 2px solid transparent;
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

.btn--red {
  background: var(--red); color: var(--white);
}
.btn--red:hover { background: var(--red-dk); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(204,40,40,.28); }

.btn--outline {
  border-color: var(--red); color: var(--red);
}
.btn--outline:hover { background: var(--red); color: var(--white); }

.btn--outline-white {
  border-color: rgba(255,255,255,.5); color: var(--white);
}
.btn--outline-white:hover { background: rgba(255,255,255,.12); }

.btn--sm { padding: 9px 18px; font-size: .83rem; }

/* Fade-in animation */
.fade { opacity: 0; transform: translateY(24px); transition: opacity .55s ease, transform .55s ease; }
.fade.visible { opacity: 1; transform: none; }

/* ═══════════════════════════════════════════════
   LOGO (inline HTML reconstruction)
═══════════════════════════════════════════════ */
.logo {
  display: flex; align-items: center; gap: 11px;
  text-decoration: none; flex-shrink: 0;
}
.logo__squares {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px; width: 30px; height: 30px;
}
.logo__sq { border-radius: 2px; }
.logo__sq--r { background: var(--red); }
.logo__sq--g { background: var(--sq-gray); }
.logo__sq--y { background: var(--gold); }
.logo__sq--e { background: transparent; }

.logo__text { line-height: 1; }
.logo__syvel {
  font-size: 1.22rem; font-weight: 800;
  color: var(--navy); letter-spacing: -.03em;
}
.logo__plus {
  font-size: 1.22rem; font-weight: 300;
  color: var(--sq-gray);
}

/* White logo variant (for dark bgs) */
.logo--white .logo__syvel { color: var(--white); }
.logo--white .logo__plus  { color: rgba(255,255,255,.65); }

/* ═══════════════════════════════════════════════
   NAVIGATION
═══════════════════════════════════════════════ */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 200;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--t);
}
.nav.scrolled { box-shadow: 0 2px 24px rgba(28,37,64,.09); }

.nav__inner {
  display: flex; align-items: center;
  justify-content: space-between;
  height: 66px; gap: 16px;
}

.nav__links {
  display: flex; list-style: none;
  gap: 8px; align-items: center;
}
.nav__links a {
  display: block;
  padding: 6px 14px;
  font-size: .88rem; font-weight: 500;
  color: var(--muted);
  border-radius: 6px;
  transition: color var(--t), background var(--t);
}
.nav__links a:hover { color: var(--navy); }
.nav__links a.active {
  color: var(--red); font-weight: 600;
}

.nav__right { display: flex; align-items: center; gap: 14px; }
.nav__phone {
  display: flex; align-items: center; gap: 6px;
  font-size: .83rem; font-weight: 500; color: var(--muted);
  transition: color var(--t); white-space: nowrap;
}
.nav__phone:hover { color: var(--navy); }
.nav__phone svg { width: 14px; height: 14px; stroke: var(--red); fill: none; }
.nav__theme-toggle {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  color: var(--red); cursor: pointer;
  background: rgba(204,40,40,.08);
  border: 1px solid rgba(204,40,40,.15);
  transition: all var(--t);
  border-radius: 8px;
}
.nav__theme-toggle:hover {
  background: rgba(204,40,40,.15);
  transform: rotate(20deg);
  border-color: rgba(204,40,40,.3);
}
.nav__theme-toggle svg {
  width: 18px; height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}
/* Ikona okamžitě správná dle data-theme (data-theme se nastaví v <head> před renderem) */
html[data-theme="dark"]  .theme-icon-light { display: none; }
html[data-theme="dark"]  .theme-icon-dark  { display: inline; }
html[data-theme="light"] .theme-icon-light { display: inline; }
html[data-theme="light"] .theme-icon-dark  { display: none; }

/* Mobile hamburger */
.nav__hamburger {
  display: none; flex-direction: column;
  gap: 5px; padding: 4px; cursor: pointer;
}
.nav__hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--navy); border-radius: 2px;
  transition: var(--t);
}

/* Mobile nav drawer */
.nav__drawer {
  display: none;
  position: fixed;
  top: 66px; left: 0; right: 0;
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 16px 28px 24px;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  z-index: 199;
}
.nav__drawer.open { display: flex; }
.nav__drawer a {
  padding: 10px 12px;
  font-size: .95rem; font-weight: 500;
  color: var(--muted); border-radius: 8px;
  transition: color var(--t), background var(--t);
}
.nav__drawer a:hover, .nav__drawer a.active {
  color: var(--red); background: rgba(204,40,40,.05);
}

/* ═══════════════════════════════════════════════
   PAGE HERO (inner pages)
═══════════════════════════════════════════════ */
.page-hero {
  padding: 130px 0 72px;
  background: var(--navy);
  position: relative; overflow: hidden;
}
.page-hero__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 50% 80% at 100% 50%, rgba(240,160,32,.08) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 10% 100%, rgba(204,40,40,.08) 0%, transparent 50%);
}
.page-hero__content { position: relative; }
.page-hero .h1 { color: var(--white); margin-bottom: 16px; }
.page-hero .lead { color: rgba(255,255,255,.65); max-width: 540px; }
.page-hero__crumbs {
  display: flex; align-items: center; gap: 8px;
  font-size: .8rem; color: rgba(255,255,255,.4);
  margin-bottom: 20px;
}
.page-hero__crumbs a { color: rgba(255,255,255,.5); transition: color var(--t); }
.page-hero__crumbs a:hover { color: white; }
.page-hero__crumbs span { color: var(--gold); }
.page-hero__crumbs svg { width: 12px; height: 12px; stroke: currentColor; fill: none; }

/* ═══════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════ */
.footer {
  background: var(--navy);
  padding: 64px 0 0;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer__desc {
  font-size: .88rem;
  color: rgba(255,255,255,.45);
  margin-top: 16px;
  line-height: 1.75;
  max-width: 300px;
}
.footer__col h4 {
  font-size: .82rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.35);
  margin-bottom: 18px;
}
.footer__col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer__col ul li a {
  font-size: .88rem;
  color: rgba(255,255,255,.55);
  transition: color var(--t);
  display: flex; align-items: center; gap: 6px;
}
.footer__col ul li a:hover { color: white; }
.footer__col ul li a svg { width: 13px; height: 13px; stroke: var(--gold); fill: none; flex-shrink: 0; }

.footer__bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0;
  font-size: .8rem;
  color: rgba(255,255,255,.3);
}
.footer__bottom a { color: rgba(255,255,255,.4); transition: color var(--t); }
.footer__bottom a:hover { color: white; }

/* Gold accent bar top of footer */
.footer__accent {
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--gold));
  border-radius: 2px 2px 0 0;
  margin-bottom: 0;
}

/* ═══════════════════════════════════════════════
   STATS STRIP
═══════════════════════════════════════════════ */
.stats-strip {
  background: var(--red);
  padding: 52px 0;
}
.stats-strip__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  text-align: center;
}
.stat { }
.stat__num {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800; color: white;
  line-height: 1;
}
.stat__num sup { font-size: 60%; vertical-align: super; color: var(--gold); }
.stat__label {
  font-size: .83rem; color: rgba(255,255,255,.75);
  margin-top: 6px;
}
.stats-strip__divider {
  width: 1px; background: rgba(255,255,255,.2);
  align-self: stretch; margin: auto;
}

/* ═══════════════════════════════════════════════
   CARDS (shared)
═══════════════════════════════════════════════ */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: box-shadow var(--t), border-color var(--t), transform var(--t);
}
.card:hover {
  box-shadow: var(--shadow-md);
  border-color: transparent;
  transform: translateY(-3px);
}

.card__icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  transition: var(--t);
}
.card__icon svg {
  width: 24px; height: 24px;
  stroke: var(--white); fill: none; stroke-width: 1.8;
}
.card__icon--red  { background: var(--red); }
.card__icon--gold { background: var(--gold); }
.card__icon--navy { background: var(--navy); }

/* Service card with top accent */
.service-card {
  position: relative; overflow: hidden;
}
.service-card::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--gold));
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s ease;
}
.service-card:hover::after { transform: scaleX(1); }
/* Service cards used as links must keep body text colour, not the link colour */
a.card.service-card { color: inherit; cursor: pointer; }

/* ═══════════════════════════════════════════════
   MAP (Google Maps embed)
═══════════════════════════════════════════════ */
.map-embed {
  width: 100%; height: 260px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #f0ebe3;
}
.map-embed iframe {
  width: 100%; height: 100%;
  border: none;
  display: block;
}

/* ═══════════════════════════════════════════════
   CONTACT CARD
═══════════════════════════════════════════════ */
.contact-card { }
.contact-card__head {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 24px;
}
.contact-card__head-icon {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--red), var(--gold));
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-card__head-icon svg { width: 20px; height: 20px; stroke: white; fill: none; }
.contact-card h3 { font-size: 1.1rem; font-weight: 700; }
.contact-card .sub { font-size: .8rem; color: var(--muted); }

.contact-row {
  display: flex; gap: 12px;
  margin-bottom: 14px; font-size: .9rem;
}
.contact-row__icon {
  width: 32px; height: 32px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(204,40,40,.07);
  border-radius: 8px;
}
.contact-row__icon svg { width: 15px; height: 15px; stroke: var(--red); fill: none; }
.contact-row__body strong { display: block; font-weight: 600; font-size: .82rem; color: var(--muted); margin-bottom: 1px; }
.contact-row__body a, .contact-row__body span { color: var(--text); transition: color var(--t); }
.contact-row__body a:hover { color: var(--red); }

/* ═══════════════════════════════════════════════
   PERSON CARDS
═══════════════════════════════════════════════ */
.person-card { }
.person-card__avatar {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--navy);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .95rem; color: white;
  margin-bottom: 14px;
  font-family: 'Outfit', sans-serif;
}
.person-card strong { display: block; font-weight: 700; color: var(--navy); margin-bottom: 2px; }
.person-card .role { font-size: .82rem; color: var(--muted); margin-bottom: 12px; }
.person-card .phone {
  display: flex; align-items: center; gap: 6px;
  font-size: .88rem; font-weight: 600; color: var(--red);
  transition: color var(--t);
}
.person-card .phone:hover { color: var(--red-dk); }
.person-card .phone svg { width: 13px; height: 13px; stroke: currentColor; fill: none; }

/* ═══════════════════════════════════════════════
   PROCESS STEPS
═══════════════════════════════════════════════ */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0; position: relative;
  counter-reset: step;
}
.process-steps::before {
  content: '';
  position: absolute;
  top: 34px; left: calc(12.5% + 18px); right: calc(12.5% + 18px);
  height: 2px;
  background: linear-gradient(90deg, var(--red), var(--gold));
}
.process-step { text-align: center; padding: 0 20px; }
.process-step__circle {
  width: 68px; height: 68px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px; position: relative; z-index: 1;
  transition: var(--t);
}
.process-step:hover .process-step__circle {
  border-color: var(--red);
  background: var(--red);
}
.process-step__circle svg { width: 26px; height: 26px; stroke: var(--red); fill: none; stroke-width: 1.8; transition: var(--t); }
.process-step:hover .process-step__circle svg { stroke: white; }
.process-step__num {
  position: absolute; top: -8px; right: -6px;
  width: 24px; height: 24px;
  background: var(--gold);
  border-radius: 50%;
  font-size: .68rem; font-weight: 800;
  color: var(--navy);
  display: flex; align-items: center; justify-content: center;
}
.process-step h4 { font-size: .95rem; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.process-step p { font-size: .83rem; color: var(--muted); }

/* ═══════════════════════════════════════════════
   CTA STRIP
═══════════════════════════════════════════════ */
.cta-strip {
  background: var(--navy);
  padding: 80px 0;
  text-align: center;
}
.cta-strip h2 { color: white; margin-bottom: 12px; }
.cta-strip p { color: rgba(255,255,255,.6); margin-bottom: 36px; }
.cta-strip__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ═══════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════ */
@media (max-width: 900px) {
  .nav__links, .nav__right .btn { display: none; }
  .nav__hamburger { display: flex; }

  .stats-strip__grid { grid-template-columns: repeat(2, 1fr); }
  .stats-strip__divider { display: none; }
  .process-steps { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .process-steps::before { display: none; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .section { padding: 60px 0; }
  .container { padding: 0 18px; }
  .stats-strip__grid { grid-template-columns: 1fr 1fr; }
  .process-steps { grid-template-columns: 1fr; gap: 32px; }
  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; gap: 6px; text-align: center; }
}

/* ── About checklist (index + careers) ── */
.about__checklist { list-style: none; display: flex; flex-direction: column; gap: 14px; margin: 24px 0 32px; }
.about__checklist li { display: flex; align-items: flex-start; gap: 12px; font-size: .93rem; line-height: 1.5; color: var(--text); }
.about__check { width: 22px; height: 22px; border-radius: 6px; background: rgba(204,40,40,.09); display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; }
.about__check svg { width: 13px; height: 13px; stroke: var(--red); fill: none; stroke-width: 2.5; }

/* ── Language switcher ── */
.lang-switch {
  display: flex; align-items: center; gap: 3px;
  margin-left: 8px;
}
.lang-btn {
  display: flex; align-items: center; gap: 5px;
  padding: 5px 8px; border-radius: 7px;
  font-size: .75rem; font-weight: 700; letter-spacing: .04em;
  color: var(--muted); text-decoration: none;
  transition: background var(--t), color var(--t);
  line-height: 1;
}
.lang-btn:hover { background: var(--light); color: var(--navy); }
.lang-btn--active { background: var(--light); color: var(--navy); }
.lang-btn svg { width: 22px; height: 15px; border-radius: 3px; flex-shrink: 0; overflow: hidden; }
.nav--white .lang-btn { color: rgba(255,255,255,.55); }
.nav--white .lang-btn:hover, .nav--white .lang-btn--active { background: rgba(255,255,255,.12); color: white; }

/* ── Mobile touch & UX enhancements ── */
html { scroll-behavior: smooth; }
body { -webkit-tap-highlight-color: transparent; overscroll-behavior-y: none; }

/* Larger touch targets on mobile */
@media (hover: none) and (pointer: coarse) {
  .btn { min-height: 44px; }
  .nav__links a { padding: 10px 14px; }
  .filter-btn { min-height: 40px; padding: 10px 18px; }
  .nav__hamburger { width: 44px; height: 44px; }
  a.phone, a.email-link { min-height: 38px; display: flex; }
}

/* Tablet landscape (1024px) */
@media (max-width: 1024px) {
  .hero__inner { gap: 32px; }
  .about__grid { gap: 40px; }
}

/* Tablet portrait (900px) — existing breakpoint enhanced */
@media (max-width: 900px) {
  h1, .h1 { font-size: clamp(2rem, 6vw, 3rem); }
  h2, .h2 { font-size: clamp(1.5rem, 4vw, 2.2rem); }
  .nav__links { display: none; }
  .nav__right .nav__phone { display: none; }
  .page-hero { padding: 100px 0 56px; }
  .stats-strip__grid { gap: 16px; }
  .card { padding: 24px 20px; }
  .people-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

/* Mobile (600px) — existing breakpoint enhanced */
@media (max-width: 600px) {
  .section { padding: 56px 0; }
  .container { padding: 0 16px; }
  h1, .h1 { font-size: clamp(1.75rem, 7vw, 2.5rem); }
  h2, .h2 { font-size: clamp(1.3rem, 5vw, 1.8rem); }
  .lead { font-size: 1rem; }

  /* Nav */
  .nav__inner { padding: 0 16px; }
  .nav__right { gap: 8px; }
  .btn--sm { padding: 8px 14px; font-size: .8rem; }

  /* Hero */
  .page-hero { padding: 90px 0 48px; min-height: auto; }
  .page-hero__crumbs { font-size: .75rem; }

  /* Stats */
  .stats-strip__grid { grid-template-columns: 1fr 1fr; row-gap: 20px; }
  .stats-strip__num { font-size: 2rem; }

  /* Cards */
  .card { padding: 20px 18px; border-radius: var(--radius); }
  .person-card { padding: 20px 16px; }

  /* People */
  .people-grid { grid-template-columns: 1fr; }

  /* Footer */
  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; gap: 6px; text-align: center; }
  .footer__col ul li a { font-size: .85rem; }

  /* Forms */
  .form-row { grid-template-columns: 1fr; gap: 12px; }
  .form-group input, .form-group textarea, .form-group select { font-size: 16px; } /* Prevent iOS zoom */

  /* CTA strip */
  .cta-strip { padding: 48px 0; }
  .cta-strip__inner { flex-direction: column; text-align: center; gap: 20px; }
}

/* Very small (400px) */
@media (max-width: 400px) {
  .container { padding: 0 12px; }
  .stats-strip__grid { grid-template-columns: 1fr 1fr; }
  .logo__syvel { font-size: 1.05rem; }
}

/* Safe area insets for notched phones (iPhone X+) */
@supports (padding: env(safe-area-inset-bottom)) {
  .footer { padding-bottom: calc(32px + env(safe-area-inset-bottom)); }
  #cookie-bar { padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
  .nav__drawer { padding-bottom: env(safe-area-inset-bottom); }
}

/* ── Back-to-top button ── */
#back-to-top {
  position: fixed; bottom: 80px; right: 24px; z-index: 200;
  width: 44px; height: 44px;
  background: var(--navy); color: white;
  border-radius: 50%; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0; transform: translateY(12px);
  transition: opacity .3s, transform .3s, background var(--t);
  pointer-events: none;
}
#back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
#back-to-top:hover { background: var(--red); }
#back-to-top svg { width: 20px; height: 20px; stroke: white; fill: none; }
@media (max-width: 600px) { #back-to-top { bottom: 74px; right: 16px; } }

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .fade { opacity: 1 !important; transform: none !important; }
  .fade.visible { opacity: 1 !important; transform: none !important; }
}

/* ── Cookie notice ── */
#cookie-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center; gap: 20px; flex-wrap: wrap;
  background: var(--navy); color: rgba(255,255,255,.85);
  font-size: .83rem; padding: 14px 24px;
  box-shadow: 0 -4px 24px rgba(0,0,0,.18);
  transition: opacity .4s, transform .4s;
}
#cookie-bar.hide { opacity: 0; transform: translateY(20px); pointer-events: none; }
#cookie-bar button {
  background: var(--red); color: white; border: none; cursor: pointer;
  padding: 7px 18px; border-radius: 100px; font-family: 'Outfit', sans-serif;
  font-size: .8rem; font-weight: 600; white-space: nowrap;
  transition: background var(--t);
}
#cookie-bar button:hover { background: var(--red-dk); }

/* ── Skip navigation link ── */
.skip-link {
  position: absolute;
  top: -100px; left: 16px; z-index: 9999;
  background: var(--navy); color: white;
  padding: 10px 22px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-size: .88rem; font-weight: 600;
  transition: top .2s;
  white-space: nowrap;
}
.skip-link:focus { top: 0; outline: none; }

/* ── Focus visible (keyboard navigation) ── */
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}
a:focus-visible, button:focus-visible { border-radius: 6px; }

/* ── Testimonials ── */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 48px;
}
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
  display: flex; flex-direction: column;
}
.testimonial-card::before {
  content: '\201C';
  font-size: 5rem; line-height: 1;
  color: var(--gold); opacity: .22;
  position: absolute; top: 14px; left: 20px;
  font-family: Georgia, serif;
}
.testimonial-card__stars {
  display: flex; gap: 3px; margin-bottom: 14px;
}
.testimonial-card__stars svg {
  width: 15px; height: 15px;
  fill: var(--gold); stroke: none;
}
.testimonial-card__text {
  font-size: .9rem; line-height: 1.75;
  color: var(--text);
  flex: 1; margin-bottom: 20px;
  padding-top: 8px;
}
.testimonial-card__author {
  display: flex; align-items: center; gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.testimonial-card__avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--navy);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .78rem; color: white; flex-shrink: 0;
}
.testimonial-card__name { font-weight: 700; font-size: .88rem; color: var(--navy); }
.testimonial-card__company { font-size: .78rem; color: var(--muted); }
@media (max-width: 900px) { .testimonial-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .testimonial-grid { grid-template-columns: 1fr; } }

/* ── Mobile floating CTA (phone bar) ── */
#mobile-cta {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 300;
  background: var(--red);
  padding: 14px 20px;
  padding-bottom: max(14px, env(safe-area-inset-bottom));
  flex-direction: row; align-items: center; justify-content: center; gap: 10px;
  text-decoration: none;
  box-shadow: 0 -4px 20px rgba(204,40,40,.35);
  transition: opacity .3s, transform .3s;
}
#mobile-cta svg { width: 18px; height: 18px; stroke: white; fill: none; flex-shrink: 0; }
#mobile-cta span { color: white; font-size: .95rem; font-weight: 700; letter-spacing: .02em; }
#mobile-cta.hidden { opacity: 0; transform: translateY(100%); pointer-events: none; }
@media (hover: none) and (pointer: coarse) {
  #mobile-cta { display: flex; }
  body { padding-bottom: 58px; }
  #back-to-top { bottom: calc(70px + env(safe-area-inset-bottom, 0px)); right: 16px; }
  #cookie-bar { bottom: 58px; }
}

/* ── Map facade (click-to-load Google Maps — no third-party cookies until consent) ── */
.map-facade {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  background: var(--light); color: var(--muted);
  border: none; cursor: pointer;
  font-family: 'Outfit', sans-serif;
  transition: background var(--t), color var(--t);
}
.map-facade:hover { background: var(--border); color: var(--navy); }
.map-facade svg { width: 30px; height: 30px; margin-bottom: 6px; stroke: var(--red); }
.map-facade strong { font-size: .95rem; font-weight: 700; color: var(--navy); }
.map-facade span { font-size: .76rem; }

/* ── Print styles ── */
@media print {
  .nav, .nav__drawer, #cookie-bar, #back-to-top, #mobile-cta,
  .cta-strip, .hero__aside, .lang-switch { display: none !important; }
  body { font-size: 11pt; color: #000; background: #fff; padding-bottom: 0; }
  .section { padding: 20pt 0; }
  .hero, .page-hero { min-height: auto !important; padding: 16pt 0 12pt; }
  .page-hero .h1 { color: var(--navy) !important; font-size: 22pt; }
  .page-hero .lead, .hero .hero__sub { color: var(--muted) !important; }
  .page-hero__bg { display: none; }
  .footer { background: #f8f8f8 !important; padding: 12pt 0 0; }
  .footer__desc, .footer__col ul li a, .footer__col h4 { color: #333 !important; }
  .footer__inner { color: #333; }
  .footer__accent { display: none; }
  .map-embed { display: none; }
  .fade { opacity: 1 !important; transform: none !important; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #666; }
  .card { border: 1px solid #ccc !important; box-shadow: none !important; }
  .partner-card { border: 1px solid #ccc !important; }
}
