/* Zanibytes — single-page site. Mobile-first, plain modern CSS, no build. */

:root {
  --bg: #ffffff;
  --bg-alt: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #fbfbfc;
  --border: #e6e8ec;
  --text: #1a1d23;
  --muted: #5e6470;
  --accent: #e01818;        /* Zanibytes red */
  --accent-dark: #c01010;
  --grey: #686870;          /* logo grey */
  --radius: 14px;
  --maxw: 1080px;
  --ease: cubic-bezier(.2,.7,.2,1);
  --shadow: 0 1px 2px rgba(16,24,40,.04), 0 8px 24px rgba(16,24,40,.06);
}

/* Dark theme — applied when html[data-theme="dark"] (set by no-flash script). */
html[data-theme="dark"] {
  --bg: #0d1117;
  --bg-alt: #11161f;
  --surface: #151b26;
  --surface-2: #1a212e;
  --border: #232c3a;
  --text: #e8edf5;
  --muted: #97a1b2;
  --accent: #ff4d4d;
  --accent-dark: #e53535;
  --grey: #aab2c0;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px rgba(0,0,0,.35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 20px;
}

.skip { position: absolute; left: -999px; }
.skip:focus {
  left: 12px; top: 12px;
  background: var(--accent);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 100;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand { display: flex; align-items: center; }
.brand-logo { height: 34px; width: auto; display: block; }
.logo-dark { display: none; }
html[data-theme="dark"] .logo-light { display: none; }
html[data-theme="dark"] .logo-dark { display: block; }

/* Right side of nav: links + lang + theme */
.nav-right { display: flex; align-items: center; gap: 14px; }

/* Language switcher */
.lang-switch { display: flex; align-items: center; gap: 2px; font-size: .82rem; font-weight: 600; }
.lang-switch a {
  color: var(--muted);
  padding: 4px 7px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: .03em;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.lang-switch a:hover { color: var(--text); }
.lang-switch a[aria-current="true"] { color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.lang-sep { color: var(--border); }

/* Theme toggle */
.theme-toggle {
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.theme-toggle:hover { border-color: var(--accent); }
.theme-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .icon-moon { display: none; }
.theme-toggle .icon-sun { display: block; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: none; }

.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { color: var(--muted); font-weight: 500; font-size: .95rem; transition: color .2s var(--ease); }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  color: #fff !important;
  background: var(--accent);
  padding: 8px 18px;
  border-radius: 999px;
  transition: background .2s var(--ease);
}
.nav-cta:hover { background: var(--accent-dark); }

@media (max-width: 620px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .brand-logo { height: 28px; }
  .nav-right { gap: 8px; }
  .lang-switch { font-size: .78rem; }
  .nav-cta { padding: 7px 14px; }
}
@media (max-width: 380px) {
  .nav-cta { display: none; }
}

/* Hero */
.hero {
  padding-top: clamp(48px, 10vw, 104px);
  padding-bottom: clamp(48px, 9vw, 84px);
}
.eyebrow {
  color: var(--accent);
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin: 0 0 18px;
}
.hero h1 {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: clamp(2.2rem, 7vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 22px;
  color: var(--text);
}
.lead {
  color: var(--muted);
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  max-width: 60ch;
  margin: 0 0 32px;
}

/* Buttons */
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }
.cta-row.center { justify-content: center; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1rem;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform .15s var(--ease), background .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn .ico { width: 20px; height: 20px; fill: currentColor; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* Sections */
.section { padding-block: clamp(56px, 9vw, 96px); }
.section.alt { background: var(--bg-alt); border-block: 1px solid var(--border); }
.section-title {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: clamp(1.6rem, 4.5vw, 2.4rem);
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.section-sub { color: var(--muted); margin: 0 0 40px; font-size: 1.05rem; }

/* Service icon chip (shared by cards + featured) */
.svc-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 24%, transparent);
}
.svc-icon svg { width: 24px; height: 24px; }
.svc-icon-lg { width: 64px; height: 64px; border-radius: 16px; }
.svc-icon-lg svg { width: 32px; height: 32px; }

/* Featured (flagship) service — full-width banner above the grid */
.svc-featured {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  align-items: start;
  padding: 30px;
  margin-bottom: 16px;
  border-radius: var(--radius);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--border));
  background:
    radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 60%),
    var(--surface);
  box-shadow: var(--shadow);
}
.svc-featured-body { min-width: 0; }
.svc-tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.svc-featured h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}
.svc-featured p {
  color: var(--muted);
  margin: 0;
  font-size: 1.02rem;
  max-width: 70ch;
}
@media (max-width: 560px) {
  .svc-featured { grid-template-columns: 1fr; gap: 16px; padding: 24px; }
}

/* Services grid */
.grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 600px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 920px) { .grid { grid-template-columns: repeat(3, 1fr); } }

.card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: transform .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }
.card .svc-icon { margin-bottom: 16px; }
.card h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.15rem;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.card p { color: var(--muted); margin: 0; font-size: .98rem; }

/* Approach steps */
.steps { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
}
.step-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.step-num {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: color-mix(in srgb, var(--accent) 55%, var(--muted));
  letter-spacing: .1em;
}
.step h3 { font-family: "Space Grotesk", sans-serif; margin: 0 0 8px; font-size: 1.2rem; }
.step p { color: var(--muted); margin: 0; }

/* Trust / capability strip */
.trust {
  text-align: center;
  padding-block: clamp(40px, 7vw, 64px) 0;
}
.trust-title {
  color: var(--muted);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin: 0 0 22px;
}
.trust-logos {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px 30px;
}
.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  width: 78px;
  color: var(--muted);
  opacity: .72;
  transition: color .2s var(--ease), opacity .2s var(--ease), transform .2s var(--ease);
}
.logo:hover { color: var(--accent); opacity: 1; transform: translateY(-2px); }
.logo-mark { height: 30px; display: grid; place-items: center; }
.logo-mark svg { height: 28px; width: auto; max-width: 42px; }
.logo-name {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .02em;
  white-space: nowrap;
}
.trust-note {
  text-align: center;
  color: var(--muted);
  font-size: .9rem;
  margin: 30px auto 0;
  max-width: 62ch;
}

/* Testimonials (rendered only when real entries exist) */
.testimonials {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 760px) { .testimonials { grid-template-columns: repeat(2, 1fr); } }
.testimonial {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow);
}
.testimonial blockquote {
  margin: 0 0 16px;
  font-size: 1.1rem;
  line-height: 1.5;
  letter-spacing: -0.01em;
}
.testimonial blockquote::before { content: "\201C"; color: var(--accent); font-weight: 700; }
.testimonial figcaption { color: var(--muted); font-size: .92rem; font-weight: 600; }
.testimonial .t-role { font-weight: 400; }

/* Contact */
.contact { text-align: center; }
.contact .section-sub { margin-bottom: 28px; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-alt); padding-block: 28px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.footer-logo { height: 26px; width: auto; display: block; }
.muted { color: var(--muted); font-size: .9rem; }
.muted a:hover { color: var(--accent); }

/* WhatsApp floating button */
.wa-fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366;
  display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.22);
  transition: transform .18s var(--ease);
}
.wa-fab:hover { transform: scale(1.08); }
.wa-fab svg { width: 30px; height: 30px; fill: #fff; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
