/* ZRS Engineering — landing page
   Palette taken from the business card: black, red, white. */

:root {
  --black: #0d0d0d;
  --ink: #161616;
  --charcoal: #232323;
  --line-dark: #2e2e2e;
  --red: #e32b2b;
  --red-dark: #c21f1f;
  --white: #ffffff;
  --paper: #f4f3f1;
  --text: #1b1b1b;
  --muted: #5d5d5d;
  --muted-light: #a9a9a9;
  --line: #e2e0dc;

  --radius: 6px;
  --container: 1200px;
  --head-font: "Archivo", "Arial Black", Arial, sans-serif;
  --body-font: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--body-font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head-font); line-height: 1.1; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.red { color: var(--red); }
.ico { width: 18px; height: 18px; fill: currentColor; flex-shrink: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--head-font); font-weight: 700; font-size: 15px;
  letter-spacing: .02em; text-transform: uppercase; text-decoration: none;
  padding: 14px 24px; border-radius: var(--radius); border: 2px solid transparent;
  cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--sm { padding: 10px 16px; font-size: 14px; }
.btn--lg { padding: 17px 28px; font-size: 16px; }
.btn--block { width: 100%; }
.btn--red { background: var(--red); color: var(--white); }
.btn--red:hover { background: var(--red-dark); }
.btn--outline { border-color: #4a4a4a; color: var(--white); }
.btn--outline:hover { border-color: var(--white); }
.btn--black { background: var(--black); color: var(--white); }
.btn--black:hover { background: #262626; }
.btn--white { background: var(--white); color: var(--black); }
.btn--white:hover { background: var(--paper); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--head-font); font-weight: 700; font-size: 13px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--red);
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 3px; background: var(--red); }

/* ---------- header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: var(--black); color: var(--white);
  border-bottom: 1px solid var(--line-dark);
}
.header__inner { display: flex; align-items: center; gap: 32px; height: 72px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--white); }
.logo__mark { display: flex; color: var(--white); }
.logo__text { font-family: var(--head-font); font-weight: 900; font-size: 20px; letter-spacing: .02em; text-transform: uppercase; }
.logo__text b { font-weight: 800; color: var(--red); }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a {
  position: relative; text-decoration: none; font-weight: 600; font-size: 15px; color: #d8d8d8;
  padding: 6px 0; transition: color .2s;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.nav a:hover { color: var(--white); }
.nav a:hover::after { transform: scaleX(1); }

.menu-btn { display: none; }
.mobile-nav { display: none; }

/* ---------- hero ---------- */
.hero { background: var(--black); color: var(--white); padding-top: 72px; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; padding-bottom: 80px; }
.hero__title { font-size: clamp(36px, 4.6vw, 58px); font-weight: 900; margin-bottom: 24px; }
.hero__lead { font-size: 19px; color: #c9c9c9; max-width: 540px; margin-bottom: 36px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 36px; }

.rating {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 18px; border: 1px solid var(--line-dark); border-radius: var(--radius);
  background: var(--ink); text-decoration: none; transition: border-color .2s;
}
.rating:hover { border-color: #555; }
.rating__g { display: flex; background: var(--white); border-radius: 50%; padding: 4px; }
.rating__score { font-family: var(--head-font); font-weight: 800; font-size: 20px; }
.rating__label { color: var(--muted-light); font-size: 14px; }
.stars { color: #f5b301; letter-spacing: 2px; font-size: 16px; }
.stars--lg { font-size: 22px; }

.hero__media { position: relative; min-height: 480px; }
.hero__block {
  position: absolute; right: -24px; top: 40px; width: 62%; height: 78%;
  background: var(--red); border-radius: var(--radius);
}
.hero__img { margin: 0; position: absolute; overflow: hidden; border-radius: var(--radius); box-shadow: 0 20px 40px rgba(0,0,0,.45); }
.hero__img img { width: 100%; height: 100%; object-fit: cover; }
.hero__img--main { left: 0; top: 0; width: 88%; height: 330px; }
.hero__img--small { right: 0; bottom: 0; width: 46%; height: 230px; border: 6px solid var(--black); }
.hero__img--main img { animation: slowzoom 18s ease-in-out infinite alternate; }
@keyframes slowzoom { from { transform: scale(1); } to { transform: scale(1.08); } }

.hero__tag {
  position: absolute; left: 0; bottom: 30px;
  display: flex; align-items: center; gap: 10px;
  background: var(--white); color: var(--black); font-weight: 600; font-size: 14px;
  padding: 10px 16px; border-radius: var(--radius);
}
.hero__tag-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red); animation: pulse 1.8s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(227,43,43,.6); }
  100% { box-shadow: 0 0 0 10px rgba(227,43,43,0); }
}

/* ticker */
.ticker { background: var(--red); overflow: hidden; border-top: 1px solid var(--red-dark); }
.ticker__track { display: flex; width: max-content; animation: ticker 32s linear infinite; }
.ticker__track span {
  font-family: var(--head-font); font-weight: 800; font-size: 18px; text-transform: uppercase;
  letter-spacing: .04em; padding: 18px 28px; white-space: nowrap; display: flex; align-items: center; gap: 56px;
}
.ticker__track span::after { content: "✱"; font-size: 14px; color: var(--black); margin-left: 28px; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: 110px 0; }
.section--gray { background: var(--paper); }
.section__head { max-width: 720px; margin-bottom: 56px; }
.section__head--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.section__title { font-size: clamp(30px, 3.6vw, 44px); font-weight: 800; }
.section__title--light { color: var(--white); }
.section__note { color: var(--muted); font-size: 15px; }

/* services */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: border-color .25s, transform .3s var(--ease), box-shadow .3s;
}
.service:hover { transform: translateY(-6px); border-color: var(--black); box-shadow: 0 16px 32px rgba(0,0,0,.08); }
.service__img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper); }
.service__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.service:hover .service__img img { transform: scale(1.06); }
.service__body { padding: 24px 22px 28px; position: relative; }
.service__num {
  position: absolute; top: -22px; right: 18px;
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--red); color: var(--white); font-family: var(--head-font); font-weight: 800; font-size: 14px;
  border: 4px solid var(--white);
}
.service h3 { font-size: 21px; font-weight: 800; margin-bottom: 10px; }
.service p { color: var(--muted); font-size: 16px; }

/* feature */
.feature { background: var(--ink); color: var(--white); padding: 110px 0; }
.feature__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.feature__media { position: relative; }
.feature__product { width: 78%; border-radius: var(--radius); background: var(--white); }
.feature__install {
  position: absolute; right: 0; bottom: -40px; width: 52%;
  border-radius: var(--radius); border: 6px solid var(--ink);
}
.feature__text p { color: #c9c9c9; margin: 18px 0 26px; font-size: 18px; }
.checks { list-style: none; padding: 0; margin: 0 0 34px; display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 34px; color: #e5e5e5; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 4px; background: var(--red);
}
.checks li::after {
  content: ""; position: absolute; left: 7px; top: 7px; width: 5px; height: 10px;
  border: solid var(--white); border-width: 0 2px 2px 0; transform: rotate(45deg);
}

/* gallery */
.gallery {
  display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; grid-auto-flow: dense; gap: 14px;
}
.gallery__item {
  position: relative; padding: 0; border: 0; margin: 0; cursor: zoom-in;
  border-radius: var(--radius); overflow: hidden; background: var(--charcoal);
}
.gallery__item--tall { grid-row: span 2; }
.gallery__item--wide { grid-column: span 2; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery__item:hover img { transform: scale(1.06); }
.gallery__cap {
  position: absolute; left: 12px; bottom: 12px; right: 12px; text-align: left;
  font-family: var(--head-font); font-weight: 700; font-size: 14px; color: var(--white);
  background: rgba(13,13,13,.85); padding: 8px 12px; border-left: 3px solid var(--red); border-radius: 3px;
  opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s var(--ease);
}
.gallery__item:hover .gallery__cap, .gallery__item:focus-visible .gallery__cap { opacity: 1; transform: none; }
.gallery__item:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

/* steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: s; }
.step { padding: 0 28px 0 0; position: relative; }
.step::before {
  content: ""; position: absolute; top: 27px; left: 64px; right: 12px;
  border-top: 2px dashed var(--line);
}
.step:last-child::before { display: none; }
.step__num {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--black); color: var(--white); font-family: var(--head-font); font-weight: 900; font-size: 22px;
  margin-bottom: 22px; position: relative; transition: background .25s;
}
.step:hover .step__num { background: var(--red); }
.step h3 { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 16px; }

/* founder */
.founder { background: var(--black); color: var(--white); padding: 110px 0; }
.founder__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 72px; align-items: center; }
.founder__img { margin: 0; border-radius: var(--radius); overflow: hidden; position: relative; aspect-ratio: 4 / 5; }
.founder__img img { width: 100%; height: 100%; object-fit: cover; }
.founder__img::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 8px; background: var(--red); }
.founder blockquote {
  margin: 0 0 28px; font-family: var(--head-font); font-weight: 700;
  font-size: clamp(24px, 2.6vw, 32px); line-height: 1.3;
}
.founder__name { font-family: var(--head-font); font-weight: 800; font-size: 20px; }
.founder__role { color: var(--muted-light); margin-bottom: 40px; }
.pillars { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pillars li { border-top: 3px solid var(--red); padding-top: 14px; }
.pillars strong { display: block; font-family: var(--head-font); font-size: 18px; margin-bottom: 4px; }
.pillars span { color: var(--muted-light); font-size: 15px; }

/* reviews */
.reviews__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 48px; flex-wrap: wrap; }
.gscore {
  display: flex; align-items: center; gap: 16px; text-decoration: none;
  padding: 16px 22px; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s;
}
.gscore:hover { border-color: var(--black); }
.gscore__num { font-family: var(--head-font); font-weight: 900; font-size: 44px; line-height: 1; }
.gscore__meta { display: grid; font-size: 14px; color: var(--muted); }
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review {
  margin: 0; padding: 30px 28px; border: 1px solid var(--line); border-radius: var(--radius);
  display: flex; flex-direction: column; gap: 18px; background: var(--white);
  transition: border-color .25s, transform .3s var(--ease);
}
.review:hover { border-color: var(--red); transform: translateY(-4px); }
.review blockquote { margin: 0; font-size: 17px; color: #333; flex: 1; }
.review figcaption { display: flex; align-items: center; gap: 12px; padding-top: 18px; border-top: 1px solid var(--line); }
.review figcaption strong { display: block; font-family: var(--head-font); font-size: 16px; }
.review figcaption small { color: var(--muted); font-size: 14px; }
.avatar {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: var(--black); color: var(--white); font-family: var(--head-font); font-weight: 800;
}

/* CTA band */
.cta { background: var(--red); color: var(--white); padding: 64px 0; }
.cta__inner { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta h2 { font-size: clamp(26px, 3vw, 38px); font-weight: 900; margin-bottom: 8px; }
.cta p { font-size: 18px; opacity: .92; }
.cta__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* contact */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact__lead { color: var(--muted); margin: 14px 0 32px; font-size: 18px; }
.contact__list { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 20px; }
.contact__list li { display: flex; align-items: center; gap: 16px; font-weight: 600; font-size: 18px; }
.contact__list small { display: block; font-weight: 500; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.contact__list a { text-decoration: none; word-break: break-all; }
.contact__list a:hover { color: var(--red); }
.contact__ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--radius); background: var(--black); color: var(--white); flex-shrink: 0; }
.contact__card { width: 100%; max-width: 440px; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: 0 12px 28px rgba(0,0,0,.08); transform: rotate(-1.5deg); transition: transform .3s var(--ease); }
.contact__card:hover { transform: rotate(0); }

.form { background: var(--paper); border-radius: var(--radius); padding: 36px; border-top: 5px solid var(--red); }
.form h3 { font-size: 26px; font-weight: 800; margin-bottom: 6px; }
.form__hint { color: var(--muted); font-size: 15px; margin-bottom: 24px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; margin-bottom: 18px; }
.form input, .form select, .form textarea {
  font: inherit; font-weight: 400; padding: 13px 14px; border: 1px solid #cfcdc8; border-radius: var(--radius);
  background: var(--white); color: var(--text); transition: border-color .2s; width: 100%;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--black); box-shadow: 0 0 0 3px rgba(227,43,43,.18); }
.form textarea { resize: vertical; }

/* footer */
.footer { background: var(--black); color: var(--white); padding: 44px 0 44px; border-top: 4px solid var(--red); }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.logo__text--footer { font-size: 22px; }
.footer__tag { color: var(--muted-light); font-size: 14px; }
.footer__nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer__nav a { text-decoration: none; color: #cfcfcf; font-size: 15px; }
.footer__nav a:hover { color: var(--white); }
.footer__copy { color: var(--muted-light); font-size: 14px; width: 100%; padding-top: 22px; border-top: 1px solid var(--line-dark); }

/* floating WhatsApp */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 40;
  width: 60px; height: 60px; border-radius: 50%; background: #25d366;
  display: grid; place-items: center; box-shadow: 0 8px 20px rgba(0,0,0,.25);
  transition: transform .2s var(--ease);
}
.wa-float svg { width: 32px; height: 32px; fill: var(--white); }
.wa-float:hover { transform: scale(1.08); }
.wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366;
  animation: ring 2.2s infinite;
}
@keyframes ring { from { transform: scale(1); opacity: .8; } to { transform: scale(1.5); opacity: 0; } }

.callbar { display: none; }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(8,8,8,.94);
  display: flex; align-items: center; justify-content: center; padding: 60px 70px;
}
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 1100px; width: 100%; text-align: center; }
.lightbox img { max-height: 78vh; width: auto; margin: 0 auto; border-radius: var(--radius); animation: lbIn .3s var(--ease); }
.lightbox figcaption { color: #ddd; margin-top: 14px; font-weight: 500; }
@keyframes lbIn { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
.lightbox button { background: none; border: 0; color: var(--white); cursor: pointer; font-size: 44px; line-height: 1; }
.lightbox__close { position: absolute; top: 14px; right: 22px; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,.08) !important; }
.lightbox__nav:hover { background: var(--red) !important; }
.lightbox__prev { left: 12px; }
.lightbox__next { right: 12px; }

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 44px; }
  .step:nth-child(2)::before { display: none; }
}

@media (max-width: 900px) {
  .nav, .header__cta { display: none; }
  .menu-btn {
    display: grid; gap: 6px; margin-left: auto; background: none; border: 0; padding: 10px; cursor: pointer;
  }
  .menu-btn span { display: block; width: 26px; height: 2px; background: var(--white); transition: transform .25s; }
  .menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .mobile-nav {
    display: grid; background: var(--black); max-height: 0; overflow: hidden; transition: max-height .35s var(--ease);
  }
  .mobile-nav.is-open { max-height: 400px; border-top: 1px solid var(--line-dark); }
  .mobile-nav a { padding: 16px 24px; text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--line-dark); }

  .hero { padding-top: 48px; }
  .hero__grid, .feature__grid, .founder__grid, .contact__grid { grid-template-columns: 1fr; gap: 48px; }
  .hero__media { min-height: 400px; }
  .feature__install { bottom: -24px; }
  .feature__media { margin-bottom: 24px; }
  .founder__img { aspect-ratio: 4 / 3; }
  .reviews { grid-template-columns: 1fr; }
  .section, .feature, .founder { padding: 80px 0; }

  /* mobile call bar */
  .callbar {
    display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    box-shadow: 0 -4px 16px rgba(0,0,0,.2);
  }
  .callbar a { text-align: center; padding: 16px; font-family: var(--head-font); font-weight: 800; text-transform: uppercase; text-decoration: none; color: var(--white); }
  .callbar__call { background: var(--red); }
  .callbar__wa { background: var(--black); }
  .wa-float { display: none; }
  body { padding-bottom: 56px; }
}

@media (max-width: 600px) {
  .container { padding: 0 16px; }
  body { font-size: 16px; }
  .hero__lead { font-size: 17px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__media { min-height: 330px; }
  .hero__img--main { width: 100%; height: 220px; }
  .hero__img--small { width: 55%; height: 150px; }
  .hero__block { right: -16px; }
  .hero__tag { bottom: 10px; font-size: 13px; }
  .rating { flex-wrap: wrap; }
  .services { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .gallery__item--wide { grid-column: span 2; }
  .gallery__cap { opacity: 1; transform: none; font-size: 12px; padding: 6px 8px; left: 8px; bottom: 8px; right: 8px; }
  .section__head--row { flex-direction: column; align-items: flex-start; }
  .steps { grid-template-columns: 1fr; }
  .step::before { display: none; }
  .pillars { grid-template-columns: 1fr; }
  .form { padding: 26px 20px; }
  .cta__actions .btn { flex: 1 1 100%; }
  .lightbox { padding: 60px 12px; }
  .lightbox__nav { top: auto; bottom: 16px; transform: none; }
  .lightbox__prev { left: calc(50% - 64px); }
  .lightbox__next { right: calc(50% - 64px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
