/* ViRdtec – main stylesheet */
:root {
  --red: #e30613;
  --red-dark: #b8040f;
  --ink: #111214;
  --ink-2: #1c1e22;
  --text: #2a2d33;
  --muted: #6b7079;
  --line: #e6e7ea;
  --bg: #ffffff;
  --bg-alt: #f5f6f8;
  --wa: #25d366;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(17, 18, 20, .08);
  --shadow-lg: 0 20px 50px rgba(17, 18, 20, .18);
  --container: 1180px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, video, iframe { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

.eyebrow {
  display: inline-block;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--red); margin-bottom: .8rem;
}
.accent { color: var(--red); }
.muted { color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .9rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 8px 20px rgba(227, 6, 19, .3); }
.btn-primary:hover { background: var(--red-dark); }
.btn-ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--ink); }
.btn-sm { padding: .55rem 1.1rem; font-size: .92rem; box-shadow: none; }
.btn svg { flex: none; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(0,0,0,.05); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand img { height: 30px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 1.6rem; }
.site-nav a:not(.btn) { text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--ink); position: relative; }
.site-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px;
  background: var(--red); transform: scaleX(0); transition: transform .2s;
}
.site-nav a:not(.btn):hover::after { transform: scaleX(1); }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; 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); }

/* Hero */
.hero { position: relative; min-height: min(88vh, 760px); display: flex; align-items: center; color: #fff; overflow: hidden; background: var(--ink); }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% center; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(10,10,12,.92) 0%, rgba(10,10,12,.75) 45%, rgba(10,10,12,.25) 100%);
}
.hero-content { position: relative; z-index: 2; padding-top: 80px; padding-bottom: 80px; }
.hero h1 { color: #fff; max-width: 14ch; }
.hero .lead { font-size: 1.15rem; max-width: 46ch; color: rgba(255,255,255,.85); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.8rem 0 0; }
.hero-badges { list-style: none; padding: 0; margin: 2.4rem 0 0; display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; font-size: .95rem; color: rgba(255,255,255,.9); }
.hero-badges li { display: flex; align-items: center; gap: .5rem; }
.hero-badges svg { width: 20px; height: 20px; color: var(--red); }

/* Sections */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--ink); color: rgba(255,255,255,.82); }
.section-dark h2, .section-dark h3, .section-dark strong { color: #fff; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 3rem; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* Cards */
.cards { display: grid; gap: 24px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card p { color: var(--muted); margin: 0; }
.service-icon {
  width: 72px; height: 72px; border-radius: 18px; background: var(--bg-alt);
  display: grid; place-items: center; margin-bottom: 1.4rem;
}
.service-icon img { width: 48px; height: 48px; object-fit: contain; }
.service-icon svg { width: 36px; height: 36px; color: var(--ink); }
.card.featured { background: var(--ink); border-color: var(--ink); }
.card.featured h3 { color: #fff; }
.card.featured p { color: rgba(255,255,255,.75); }
.card.featured strong { color: #fff; }
.card.featured .service-icon { background: var(--red); }
.card.featured .service-icon svg { color: #fff; }

/* Split */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.split-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.checklist { list-style: none; padding: 0; margin: 1.8rem 0 0; display: grid; gap: 1.1rem; }
.checklist li { position: relative; padding-left: 40px; display: grid; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.checklist span { font-size: .95rem; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: s; }
.steps li { position: relative; padding: 28px 24px; border-radius: var(--radius); background: var(--bg-alt); }
.steps p { color: var(--muted); margin: 0; font-size: .95rem; }
.step-no {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: var(--ink); color: #fff; font-weight: 800; margin-bottom: 1.1rem;
}

/* Gallery */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-bottom: 2rem; }
.chip {
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  font: inherit; font-weight: 600; font-size: .92rem; padding: .5rem 1.1rem; border-radius: 999px; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.gallery-empty { grid-column: 1 / -1; text-align: center; color: var(--muted); }
.g-item {
  position: relative; display: block; width: 100%; margin: 0; padding: 0; border: 0; cursor: pointer;
  border-radius: var(--radius-sm); overflow: hidden; background: #ddd; aspect-ratio: 1 / 1;
  text-align: left; font: inherit;
}
.g-item img, .g-item video { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.g-item:hover img, .g-item:hover video { transform: scale(1.05); }
.g-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 14px;
  background: linear-gradient(transparent, rgba(0,0,0,.78)); color: #fff; line-height: 1.35;
}
.g-item figcaption strong { display: block; font-size: .98rem; }
.g-item figcaption span { font-size: .85rem; opacity: .85; }
.g-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 64px; height: 64px; border-radius: 50%; background: rgba(227, 6, 19, .92); color: #fff;
  display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.35);
}
.g-play svg { width: 26px; height: 26px; margin-left: 4px; }
.g-badge {
  position: absolute; top: 12px; left: 12px; background: rgba(0,0,0,.65); color: #fff;
  font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px;
}
.g-item[hidden] { display: none; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(8, 8, 10, .94);
  display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; padding: 24px 8px;
}
.lightbox[hidden] { display: none; }
.lb-stage { margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; max-height: 100%; min-width: 0; }
.lb-media { display: flex; justify-content: center; width: 100%; }
.lb-media img, .lb-media video { max-height: 80vh; width: auto; max-width: 100%; border-radius: 8px; }
.lb-media iframe { width: min(100%, 1100px); aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 8px; }
.lb-caption { color: #fff; text-align: center; margin-top: 14px; font-size: .95rem; }
.lb-caption span { opacity: .7; }
.lb-btn { background: rgba(255,255,255,.1); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 2rem; line-height: 1; cursor: pointer; justify-self: center; }
.lb-btn:hover { background: rgba(255,255,255,.22); }
.lb-close { position: absolute; top: 16px; right: 16px; font-size: 1.8rem; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item { background: var(--bg-alt); border-radius: var(--radius-sm); padding: 0 22px; }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 18px 32px 18px 0; position: relative;
  font-weight: 700; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 500; color: var(--red); line-height: 1;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { margin: 0; padding: 0 0 20px; color: var(--muted); }

/* CTA */
.cta {
  display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: center;
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-2) 60%, #3a0b0e 100%);
  color: rgba(255,255,255,.85); border-radius: 24px; padding: clamp(32px, 6vw, 64px);
}
.cta h2 { color: #fff; }
.cta-qr { margin: 0; text-align: center; background: #fff; border-radius: var(--radius); padding: 14px; color: var(--muted); font-size: .85rem; }
.cta-qr img { width: 200px; height: 200px; object-fit: cover; border-radius: 10px; }
.cta-qr figcaption { margin-top: 8px; }
.socials { list-style: none; padding: 0; margin: 1.6rem 0 0; display: flex; flex-wrap: wrap; gap: 1.4rem; }
.socials a { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; color: #fff; font-weight: 600; }
.socials a:hover { color: var(--red); }
.socials svg { width: 22px; height: 22px; }

/* Footer */
.site-footer { background: var(--ink); color: rgba(255,255,255,.75); padding: 48px 0; text-align: center; font-size: .95rem; }
.footer-logo { height: 28px; width: auto; margin: 0 auto 16px; }
.site-footer p { margin: .3rem 0; }
.site-footer .muted { color: rgba(255,255,255,.5); font-size: .85rem; }

/* WhatsApp floating button */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 60px; height: 60px; border-radius: 50%; background: var(--wa); color: #fff;
  display: grid; place-items: center; box-shadow: 0 10px 25px rgba(37, 211, 102, .45);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 32px; height: 32px; }

/* Back to top button (shown after scrolling, above the WhatsApp button) */
.to-top {
  position: fixed; right: 26px; bottom: 92px; z-index: 60;
  width: 48px; height: 48px; border-radius: 50%; background: var(--ink); color: #fff;
  display: grid; place-items: center; box-shadow: 0 8px 20px rgba(0,0,0,.25);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .2s, transform .2s, visibility .2s, background-color .15s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--red); }
.to-top svg { width: 22px; height: 22px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0s !important; }
}

/* Responsive */
@media (max-width: 960px) {
  .cards-3 { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .split { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .cta { grid-template-columns: 1fr; text-align: left; }
  .cta-qr { justify-self: start; }
}
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    padding: 8px 20px 20px; transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .site-nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .site-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .site-nav a:not(.btn)::after { display: none; }
  .site-nav .btn { margin-top: 16px; justify-content: center; padding: .85rem; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  :root { --header-h: 64px; }
  .brand img { height: 24px; }
  .hero { min-height: auto; }
  .hero::before { background: linear-gradient(180deg, rgba(10,10,12,.7) 0%, rgba(10,10,12,.88) 100%); }
  .hero-content { padding-top: 64px; padding-bottom: 64px; }
  .steps { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .g-item figcaption { padding: 30px 10px 10px; }
  .g-item figcaption strong { font-size: .85rem; }
  .g-item figcaption span { font-size: .75rem; }
  .g-play { width: 48px; height: 48px; }
  .lightbox { grid-template-columns: 1fr; padding: 64px 8px 80px; }
  .lb-prev, .lb-next { position: absolute; bottom: 20px; }
  .lb-prev { left: calc(50% - 60px); }
  .lb-next { right: calc(50% - 60px); }
  .cta-qr img { width: 160px; height: 160px; }
}
