/* ============================================================
   The Bug Guy. Single-page demo styles.
   Auto dark/light via prefers-color-scheme. Hero stays black both modes.
   ============================================================ */

/* TOKENS, light mode default */
:root {
  --brand-black: #000000;
  --electric-blue: #1F6BFF;
  --electric-blue-bright: #2D7BFF;
  --navy-shadow: #0A1A3D;

  --bg: #FFFFFF;
  --bg-alt: #F4F6FB;
  --bg-card: #FFFFFF;
  --input-bg: #F4F6FB;
  --border: #E3E8F0;
  --text: #0A1A3D;
  --text-mute: #525A6B;
  --shadow-card: 0 12px 32px rgba(10, 26, 61, 0.12), 0 4px 8px rgba(10, 26, 61, 0.06);
  --shadow-hover: 0 18px 40px rgba(31, 107, 255, 0.20), 0 6px 12px rgba(10, 26, 61, 0.08);
}

/* TOKENS, dark mode override */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0A0D12;
    --bg-alt: #050709;
    --bg-card: #0F1623;
    --input-bg: #0A1A3D;
    --border: #1A2540;
    --text: #FFFFFF;
    --text-mute: #8D97A8;
    --shadow-card: 0 12px 32px rgba(0, 0, 0, 0.5), 0 4px 8px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 18px 40px rgba(31, 107, 255, 0.35), 0 6px 12px rgba(0, 0, 0, 0.4);
  }
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: var(--electric-blue); text-decoration: none; }
a:hover { color: var(--electric-blue-bright); }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--electric-blue); outline-offset: 3px; border-radius: 3px; }

/* Headlines inherit body font, semi-bold weight for a refined feel. */
.hero__title,
.section__title {
  font-family: inherit;
  font-weight: 700;
  letter-spacing: -0.015em;
}

/* CONTAINER */
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* EYEBROW */
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--electric-blue);
  margin: 0 0 12px;
}
.eyebrow--centered { text-align: center; }

/* SECTIONS */
.section { padding: 88px 0; }
.section--alt { background: var(--bg-alt); }
.section__title {
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.05;
  margin: 0 0 32px;
  text-align: center;
}
.section--alt .section__title { text-align: left; }
.section .container > .eyebrow--centered + .section__title { text-align: center; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav__logo { line-height: 0; }
.nav__logo img { height: 72px; width: auto; }
.nav__links {
  display: flex;
  gap: 28px;
  margin-left: auto;
}
.nav__links a {
  color: var(--text);
  font-weight: 500;
  font-size: 14px;
  opacity: 0.85;
  transition: opacity 0.15s, color 0.15s;
}
.nav__links a:hover { opacity: 1; color: var(--electric-blue); }
.nav__cta {
  background: var(--electric-blue);
  color: #fff;
  padding: 10px 18px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  transition: background 0.15s, transform 0.15s;
}
.nav__cta:hover { background: var(--electric-blue-bright); color: #fff; transform: translateY(-1px); }
.nav__burger {
  display: none;
  background: transparent;
  border: 0;
  padding: 8px;
  margin-left: auto;
}
.nav__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: transform 0.2s, opacity 0.2s;
}

@media (max-width: 760px) {
  .nav__cta { display: none; }
  .nav__burger { display: block; }
  .nav__links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    margin: 0;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s, opacity 0.2s;
  }
  .nav__links a {
    padding: 14px 24px;
    font-size: 16px;
    border-bottom: 1px solid var(--border);
  }
  .nav--open .nav__links {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav--open .nav__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav--open .nav__burger span:nth-child(2) { opacity: 0; }
  .nav--open .nav__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ============================================================
   HERO. Inherits theme (light in light mode, dark in dark mode).
   ============================================================ */
.hero {
  background: var(--bg);
  color: var(--text);
  padding: 100px 24px 140px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(31, 107, 255, 0.10), transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(31, 107, 255, 0.06), transparent 55%);
  pointer-events: none;
}
.hero__inner {
  max-width: 920px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.hero .eyebrow { color: var(--electric-blue); margin-bottom: 18px; }
.hero__title {
  font-size: clamp(40px, 6.5vw, 76px);
  line-height: 1.05;
  margin: 0 0 22px;
  color: var(--text);
}
.hero__title .accent { color: var(--electric-blue); }
.hero__sub {
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.6;
  color: var(--text-mute);
  max-width: 640px;
  margin: 0 auto 32px;
}
.hero__ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: transform 0.15s, background 0.15s, border-color 0.15s, color 0.15s;
  border: 0;
}
.btn--primary {
  background: var(--electric-blue);
  color: #fff;
}
.btn--primary:hover { background: var(--electric-blue-bright); color: #fff; transform: translateY(-2px); }
.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--text);
}
.btn--ghost:hover { border-color: var(--electric-blue); color: var(--electric-blue); transform: translateY(-2px); }

/* ============================================================
   QUOTE FORM, overlaps hero seam
   ============================================================ */
.quote-wrap {
  margin-top: -80px;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}
.quote {
  max-width: 1080px;
  margin: 0 auto;
  background: var(--bg-card);
  border-radius: 10px;
  padding: 28px 32px 32px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
}
.quote__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 8px;
}
.quote__head h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.01em;
}
.quote__hint {
  font-size: 12px;
  color: var(--text-mute);
  font-weight: 500;
}
.quote__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1.4fr auto;
  gap: 12px;
  align-items: end;
}
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.field input,
.field select {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 12px 14px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  transition: border-color 0.15s, background 0.15s;
}
.field input::placeholder { color: var(--text-mute); opacity: 0.7; }
.field input:focus,
.field select:focus {
  outline: 0;
  border-color: var(--electric-blue);
  background: var(--bg-card);
}
.quote__submit {
  height: 46px;
  white-space: nowrap;
}

@media (max-width: 960px) {
  .quote__grid {
    grid-template-columns: 1fr 1fr;
  }
  .field--wide { grid-column: 1 / -1; }
  .quote__submit { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .quote-wrap { margin-top: -40px; padding: 0 16px; }
  .quote { padding: 22px 18px; }
  .quote__grid { grid-template-columns: 1fr; }
}

/* TOAST */
.toast {
  margin-top: 12px;
  padding: 12px 16px;
  background: var(--electric-blue);
  color: #fff;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
}
.toast--show {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   TRUST BAR
   ============================================================ */
.trust {
  padding: 32px 24px 0;
}
.trust__inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.trust__chip {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}

/* ============================================================
   SERVICES
   ============================================================ */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 900px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .services { grid-template-columns: 1fr; } }

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px 24px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  border-top: 3px solid var(--electric-blue);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-top-color: var(--electric-blue-bright);
}
.service-card__icon {
  width: 36px;
  height: 36px;
  color: var(--electric-blue);
  margin-bottom: 14px;
}
.service-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.01em;
}
.service-card p {
  margin: 0 0 14px;
  color: var(--text-mute);
  font-size: 14px;
}
.service-card__link {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1.5px solid currentColor;
  padding-bottom: 1px;
}

/* ============================================================
   WHY MARK
   ============================================================ */
.why {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 820px) {
  .why { grid-template-columns: 1fr; gap: 32px; }
}
.why__photo {
  aspect-ratio: 4 / 5;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
}
.why__photo-placeholder {
  background:
    repeating-linear-gradient(
      135deg,
      rgba(31, 107, 255, 0.05),
      rgba(31, 107, 255, 0.05) 12px,
      transparent 12px,
      transparent 24px
    ),
    var(--bg-card);
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  color: var(--text);
  font-weight: 700;
  text-align: center;
}
.why__photo-placeholder span {
  font-size: 24px;
  letter-spacing: -0.01em;
}
.why__photo-placeholder small {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-mute);
}
.why__photo-placeholder em {
  font-style: normal;
  margin-top: 14px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--electric-blue);
  font-weight: 700;
}
.why__copy .section__title { text-align: left; margin-bottom: 18px; }
.why__lede {
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  margin: 0 0 22px;
}
.why__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}
.why__list li {
  padding-left: 22px;
  position: relative;
  color: var(--text-mute);
  line-height: 1.55;
}
.why__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 12px;
  height: 12px;
  background: var(--electric-blue);
  border-radius: 2px;
}
.why__list strong { color: var(--text); display: block; margin-bottom: 2px; }

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step;
  position: relative;
}
.steps::before {
  content: '';
  position: absolute;
  top: 32px;
  left: 8%;
  right: 8%;
  height: 2px;
  background: linear-gradient(90deg, var(--electric-blue), var(--electric-blue) 50%, transparent 50%, transparent 100%);
  background-size: 8px 2px;
  z-index: 0;
}
@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; }
  .steps::before { display: none; }
}
.steps__item {
  text-align: center;
  position: relative;
  z-index: 1;
}
.steps__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: var(--electric-blue);
  color: #fff;
  border-radius: 50%;
  font-weight: 900;
  font-size: 26px;
  margin-bottom: 18px;
  box-shadow: 0 6px 16px rgba(31, 107, 255, 0.4);
  border: 4px solid var(--bg);
}
.steps__item h3 { margin: 0 0 8px; font-size: 18px; font-weight: 800; color: var(--text); }
.steps__item p { margin: 0; color: var(--text-mute); font-size: 14px; }

/* ============================================================
   SERVICE AREAS
   ============================================================ */
.areas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 760px) { .areas { grid-template-columns: 1fr; gap: 24px; } }
.areas h2 { text-align: left; margin: 0 0 14px; }
.areas p { color: var(--text-mute); margin: 0; }
.areas__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 18px;
}
.areas__list li {
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--electric-blue);
  border-radius: 4px;
  font-weight: 600;
  color: var(--text);
  font-size: 14px;
}

/* ============================================================
   REVIEWS
   ============================================================ */
.reviews {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 900px) { .reviews { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .reviews { grid-template-columns: 1fr; } }

.review {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
}
.review__stars {
  color: var(--electric-blue);
  font-size: 16px;
  letter-spacing: 2px;
  margin-bottom: 12px;
}
.review p {
  margin: 0 0 14px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.55;
}
.review footer {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.reviews__more {
  text-align: center;
  margin-top: 32px;
}
.reviews__more a {
  font-weight: 700;
  border-bottom: 1.5px solid currentColor;
  padding-bottom: 2px;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-wrap { max-width: 820px; margin: 0 auto; }
.faq { display: grid; gap: 10px; }
.faq__item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}
.faq__item summary {
  padding: 18px 22px;
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: background 0.15s;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: '+';
  font-weight: 900;
  font-size: 24px;
  color: var(--electric-blue);
  transition: transform 0.2s;
  line-height: 1;
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item summary:hover { background: var(--bg-alt); }
.faq__item p {
  margin: 0;
  padding: 0 22px 22px;
  color: var(--text-mute);
  font-size: 15px;
  line-height: 1.6;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 760px) { .contact { grid-template-columns: 1fr; gap: 24px; } }
.contact h2 { text-align: left; margin: 0 0 14px; }
.contact > div > p { color: var(--text-mute); }
.contact__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}
.contact__list li {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: 15px;
  align-items: center;
}
.contact__list li > span:first-child {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-mute);
}

/* ============================================================
   FOOTER. Inherits theme.
   ============================================================ */
.footer {
  background: var(--bg-alt);
  color: var(--text);
  padding: 56px 0 32px;
  margin-top: 0;
  border-top: 1px solid var(--border);
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr;
  gap: 32px;
  align-items: start;
}
@media (max-width: 720px) { .footer__inner { grid-template-columns: 1fr; gap: 24px; } }
.footer__brand img { margin-bottom: 14px; }
.footer__brand p { margin: 0; color: var(--text-mute); font-size: 14px; }
.footer__nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer__nav a { color: var(--text); opacity: 0.85; font-size: 14px; }
.footer__nav a:hover { opacity: 1; color: var(--electric-blue); }
.footer__meta { font-size: 13px; color: var(--text-mute); }
.footer__meta p { margin: 0 0 6px; }
.footer__meta a { color: var(--electric-blue); }

/* ============================================================
   FLOATING WHATSAPP
   ============================================================ */
.wa {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4), 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 100;
  transition: transform 0.2s, box-shadow 0.2s;
}
.wa svg { width: 28px; height: 28px; }
.wa:hover {
  transform: translateY(-3px) scale(1.05);
  color: #fff;
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.5), 0 6px 16px rgba(0, 0, 0, 0.2);
}
@media (max-width: 480px) {
  .wa { bottom: 16px; right: 16px; width: 52px; height: 52px; }
  .wa svg { width: 26px; height: 26px; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
