/* ==========================================================
   PraJá Desentupidora & Caça Vazamentos
   ========================================================== */

:root {
  --ink: #0a1f4d;
  --ink-2: #0d2760;
  --deep: #061536;
  --blue: #1e7bff;
  --sky: #6cc6ff;
  --sun: #ffd21f;
  --paper: #f3f5f9;
  --white: #ffffff;
  --text: #0c1a36;
  --muted: #5a6680;
  --line: rgba(10, 31, 77, 0.12);
  --line-inv: rgba(255, 255, 255, 0.14);
  --line-inv-strong: rgba(255, 255, 255, 0.28);
  --muted-inv: #aab8d4;

  --font: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;

  --gutter: clamp(16px, 5vw, 128px);
  --maxw: 1440px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--text);
  font-family: var(--font); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.025em; line-height: 1.05; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--sun); outline-offset: 3px; }

.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--sun); color: var(--ink); padding: 10px 16px; font-weight: 600; }
.skip:focus { top: 16px; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.04em; }
.label { text-transform: uppercase; color: var(--muted); }
.eyebrow {
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--sun); margin-bottom: 1.4rem; display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.eyebrow--dark { color: var(--blue); }
.h2 { font-size: clamp(2rem, 4.2vw, 3.6rem); max-width: 18ch; }
.h2 em { font-style: italic; color: var(--sun); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 14px; padding: 18px 30px; min-height: 56px;
  font: 500 1rem var(--font); text-decoration: none; border: 1px solid transparent;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn span { transition: transform .3s var(--ease); }
.btn:hover span { transform: translateX(4px); }
.btn--solid { background: var(--white); color: var(--ink); }
.btn--solid:hover { background: var(--sun); }
.btn--ghost { border-color: var(--line-inv-strong); color: var(--white); background: rgba(6, 21, 54, 0.2); backdrop-filter: blur(6px); }
.btn--ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.08); }
.btn--sun { background: var(--sun); color: var(--ink); font-weight: 600; }
.btn--sun:hover { background: var(--white); }
.btn--ink { background: var(--ink); color: var(--white); }
.btn--ink:hover { background: var(--blue); }

/* ---------- Brand ---------- */
.brand { display: inline-flex; flex: none; }
.brand img { width: 108px; height: 72px; }
.footer .brand img { width: 168px; height: 112px; }

/* ---------- Nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; color: var(--ink); background: var(--white); border-bottom: 1px solid var(--line); transition: box-shadow .4s var(--ease); }
.nav.is-scrolled, .nav.menu-open { box-shadow: 0 12px 32px -18px rgba(6, 21, 54, 0.45); }
.nav__inner { max-width: var(--maxw); margin: 0 auto; padding: 12px var(--gutter); display: flex; align-items: center; gap: 32px; }
.nav__links { display: flex; gap: 40px; margin: 0 auto; }
.nav__links a { text-decoration: none; font-weight: 500; font-size: 0.98rem; opacity: .9; position: relative; }
.nav__links a::after { content: ""; position: absolute; left: 0; bottom: -6px; height: 1px; width: 100%; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav__links a:hover { opacity: 1; }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__cta { padding: 14px 22px; min-height: 48px; font-size: 0.95rem; }
.nav .btn--ghost { background: var(--ink); border-color: var(--ink); color: var(--white); backdrop-filter: none; }
.nav .btn--ghost:hover, .nav .btn--solid:hover { background: var(--blue); border-color: var(--blue); color: var(--white); }
.nav .btn--solid { background: var(--ink); color: var(--white); }
.nav__toggle, .nav__mobile { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr); align-content: end; padding-top: 140px; color: var(--white); isolation: isolate; overflow: hidden; background: var(--deep); }
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%; transform: scale(1.06); animation: heroZoom 14s var(--ease) forwards; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 21, 54, 0.92) 0%, rgba(6, 21, 54, 0.6) 45%, rgba(6, 21, 54, 0.15) 100%),
    linear-gradient(0deg, rgba(6, 21, 54, 0.96) 0%, rgba(6, 21, 54, 0) 45%),
    linear-gradient(180deg, rgba(6, 21, 54, 0.6) 0%, rgba(6, 21, 54, 0) 22%);
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero__content { max-width: var(--maxw); width: 100%; margin: 0 auto; padding: 0 var(--gutter); }
.hero__title { font-size: clamp(2.6rem, min(6.4vw, 10.5vh), 6.6rem); font-weight: 600; letter-spacing: -0.04em; line-height: 0.98; max-width: 12ch; margin-bottom: 1.6rem; }
.hero__title em { font-style: italic; font-weight: 700; color: var(--sun); }
.hero__lead { font-size: clamp(1.05rem, 1.4vw, 1.3rem); color: #d3dcee; max-width: 44ch; line-height: 1.55; margin-bottom: 2.4rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; }
.hero__facts { max-width: var(--maxw); width: 100%; margin: clamp(40px, 6vh, 72px) auto 0; padding: 0 var(--gutter); display: grid; grid-template-columns: repeat(3, 1fr); }
.hero__facts li { border-top: 1px solid var(--line-inv-strong); padding: 22px 0 30px; color: #dbe3f2; font-weight: 500; display: flex; gap: 16px; align-items: baseline; }
.hero__facts li + li { padding-left: 24px; }
.hero__facts .mono { color: var(--sun); }

/* ---------- Sections ---------- */
.section { padding: clamp(88px, 12vw, 168px) 0; scroll-margin-top: 40px; }
.section__head { margin-bottom: clamp(48px, 6vw, 88px); }
.section__head--split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: end; }
.section__head--split > p { color: var(--muted-inv); max-width: 42ch; margin: 0; }

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: 6fr 5fr; gap: clamp(40px, 7vw, 120px); align-items: center; }
.about__text .h2 { margin-bottom: 2rem; color: var(--ink); }
.about__text > p { color: #34405a; max-width: 56ch; font-size: 1.08rem; }
.about__stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 2.8rem 0 0; border-top: 1px solid var(--line); }
.about__stats div { padding: 24px 20px 0 0; }
.about__stats dt { font-size: clamp(1.4rem, 2.2vw, 2rem); font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.about__stats dd { margin: 6px 0 0; color: var(--muted); font-size: 0.92rem; line-height: 1.4; }
.about__media { margin: 0; position: relative; }
.about__media img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; border-radius: 4px; }
.about__media figcaption {
  position: absolute; left: -32px; bottom: 32px; max-width: 280px;
  background: var(--sun); color: var(--ink); padding: 20px 22px; font-weight: 500; line-height: 1.35;
  box-shadow: 0 20px 40px -20px rgba(6, 21, 54, 0.5);
}
.about__media figcaption .mono { display: block; margin-bottom: 6px; text-transform: uppercase; font-weight: 500; }

/* ---------- Services ---------- */
.services { background: var(--ink); color: var(--white); }
.tracks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.track { border: 1px solid var(--line-inv); padding: 36px 32px 40px; background: var(--ink-2); transition: transform .4s var(--ease), border-color .3s var(--ease); }
.track:hover { transform: translateY(-4px); border-color: rgba(108, 198, 255, 0.5); }
.track--feature { background: var(--blue); border-color: var(--blue); }
.track--feature:hover { border-color: var(--sun); }
.track__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 56px; }
.track__top .mono { color: var(--sun); }
.track svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.track h3 { font-size: clamp(1.6rem, 2.4vw, 2.2rem); margin-bottom: 24px; }
.track li { padding: 12px 0; border-top: 1px solid var(--line-inv); display: flex; gap: 12px; align-items: baseline; color: #dfe7f7; }
.track li::before { content: ""; width: 6px; height: 6px; background: var(--sun); border-radius: 50%; flex: none; transform: translateY(-2px); }
.track--feature li { color: var(--white); border-color: rgba(255, 255, 255, 0.25); }

.process { margin-top: clamp(64px, 8vw, 112px); }
.process .label { color: var(--muted-inv); margin-bottom: 24px; }
.process ol { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-inv-strong); }
.process li { padding: 28px 28px 0 0; position: relative; }
.process li::before { content: ""; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--sun); }
.process li .mono { color: var(--sky); display: block; margin-bottom: 14px; }
.process h4 { font-size: 1.25rem; margin-bottom: 8px; }
.process p { color: var(--muted-inv); font-size: 0.96rem; margin: 0; max-width: 30ch; }

/* ---------- Bill (conta alta) ---------- */
.bill { position: relative; isolation: isolate; overflow: hidden; color: var(--white); padding: clamp(96px, 12vw, 170px) 0; background: var(--deep); }
.bill__media { position: absolute; inset: 0; z-index: -1; }
.bill__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.bill__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(270deg, rgba(6, 21, 54, 0.95) 0%, rgba(6, 21, 54, 0.8) 50%, rgba(6, 21, 54, 0.25) 100%); }
.bill__inner { display: flex; justify-content: flex-end; }
.bill__text { max-width: 560px; }
.bill__text > p:not(.eyebrow) { color: #d3dcee; font-size: 1.08rem; margin: 1.6rem 0 2.2rem; }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 16px; }
.quote { margin: 0; padding: 36px 32px; background: var(--white); border: 1px solid var(--line); display: flex; flex-direction: column; }
.quote--lead { background: var(--ink); color: var(--white); border-color: var(--ink); }
.stars { color: #f2b600; letter-spacing: 4px; font-size: 0.95rem; margin-bottom: 24px; }
.quote--lead .stars { color: var(--sun); }
.quote blockquote { margin: 0 0 32px; font-size: 1.1rem; line-height: 1.5; color: #24314d; }
.quote--lead blockquote { color: var(--white); font-size: clamp(1.25rem, 1.9vw, 1.65rem); line-height: 1.35; letter-spacing: -0.01em; }
.quote figcaption { margin-top: auto; display: flex; flex-direction: column; font-size: 0.92rem; }
.quote figcaption span { color: var(--muted); }
.quote--lead figcaption span { color: var(--muted-inv); }

/* ---------- Location ---------- */
.location { background: var(--white); border-top: 1px solid var(--line); }
.location__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 96px); align-items: stretch; }
.location__info .h2 { color: var(--ink); margin-bottom: 2.4rem; }
.contact { margin-bottom: 2.4rem; }
.contact li { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); align-items: baseline; }
.contact li:last-child { border-bottom: 1px solid var(--line); }
.contact a { text-decoration: none; font-weight: 600; color: var(--ink); }
.contact a:hover { color: var(--blue); }
.map { min-height: 480px; position: relative; overflow: hidden; border: 1px solid var(--line); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- FAQ ---------- */
.faq { background: var(--deep); color: var(--white); }
.faq__grid { display: grid; grid-template-columns: 4fr 7fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.faq .section__head { position: sticky; top: 120px; margin: 0; }
.faq .section__head p:not(.eyebrow) { color: var(--muted-inv); margin-top: 1.4rem; }
.faq .section__head a { color: var(--sun); }
.faq__list { border-top: 1px solid var(--line-inv); }
.faq details { border-bottom: 1px solid var(--line-inv); }
.faq summary { cursor: pointer; list-style: none; padding: 28px 48px 28px 0; position: relative; font-size: clamp(1.1rem, 1.6vw, 1.35rem); font-weight: 500; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 16px; height: 1.5px; background: var(--sun); transition: transform .35s var(--ease); }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0); }
.faq summary:hover { color: var(--sky); }
.faq details p { color: var(--muted-inv); max-width: 62ch; padding: 0 48px 28px 0; margin: 0; }

/* ---------- Footer ---------- */
.footer { background: var(--white); color: var(--muted); border-top: 1px solid var(--line); padding: 40px 0 110px; }
.footer__inner { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.footer__inner p { margin: 0; }
.footer__inner p:last-child { margin-left: auto; }

/* ---------- Floating WhatsApp ---------- */
.float-wa {
  position: fixed; right: clamp(16px, 3vw, 36px); bottom: clamp(16px, 3vw, 36px); z-index: 40;
  display: inline-flex; align-items: center; gap: 12px; padding: 16px 24px;
  background: #25d366; color: #05240f; text-decoration: none; font-weight: 600;
  box-shadow: 0 16px 32px -12px rgba(6, 21, 54, 0.55);
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.float-wa svg { width: 22px; height: 22px; fill: currentColor; }
.float-wa:hover { transform: translateY(-3px); }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

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

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .tracks { grid-template-columns: 1fr 1fr; }
  .track--feature { grid-column: 1 / -1; order: -1; }
  .process ol { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .quotes { grid-template-columns: 1fr 1fr; }
  .quote--lead { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .nav__inner { justify-content: space-between; }
  .nav__toggle { display: grid; place-content: center; gap: 7px; width: 48px; height: 48px; background: transparent; border: 1px solid var(--line); cursor: pointer; }
  .nav__toggle span { display: block; width: 20px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease); }
  .nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4.25px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4.25px) rotate(-45deg); }
  .nav__mobile:not([hidden]) { display: flex; flex-direction: column; gap: 4px; padding: 8px var(--gutter) 28px; }
  .nav__mobile a:not(.btn) { padding: 14px 0; text-decoration: none; font-size: 1.3rem; font-weight: 500; border-bottom: 1px solid var(--line); }
  .nav__mobile .btn { margin-top: 20px; justify-content: center; }

  .hero__facts { grid-template-columns: 1fr; margin-top: 48px; }
  .hero__facts li { padding: 14px 0; }
  .hero__facts li + li { padding-left: 0; }

  .section__head--split, .about__grid, .location__grid, .faq__grid { grid-template-columns: 1fr; }
  .section__head--split { gap: 24px; }
  .about__media { order: -1; }
  .about__media img { aspect-ratio: 4 / 3; }
  .about__media figcaption { left: 16px; bottom: 16px; }
  .faq .section__head { position: static; }
  .map { min-height: 380px; }
  .bill__media::after { background: linear-gradient(0deg, rgba(6, 21, 54, 0.96) 0%, rgba(6, 21, 54, 0.75) 60%, rgba(6, 21, 54, 0.45) 100%); }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .brand img { width: 90px; height: 60px; }
  .hero { padding-top: 110px; }
  .hero__actions .btn, .bill .btn, .location .btn { width: 100%; justify-content: space-between; }
  .tracks, .quotes, .process ol, .about__stats { grid-template-columns: 1fr; }
  .track--feature { grid-column: auto; }
  .about__stats div { padding: 18px 0; border-bottom: 1px solid var(--line); }
  .contact li { grid-template-columns: 1fr; gap: 2px; }
  .float-wa span { display: none; }
  .float-wa { padding: 16px; }
  .footer__inner p:last-child { margin-left: 0; }
}
