/* ============================================================
   ADJ Serviços — estilos (editorial minimalista)
   Paleta da logo · laranja como único acento · grid editorial
   ============================================================ */
:root {
  --orange:      #F58634;
  --orange-deep: #DD6E1C;
  --orange-soft: #FDE7D3;
  --gray:        #727376;
  --ink:         #202226;
  --line:        #E7E4DF;
  --line-2:      #D8D3CB; /* hairline um tom mais presente (números) */
  --paper:       #F6F4F0;
  --white:       #FFFFFF;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Hanken Grotesk", system-ui, sans-serif;

  --maxw: 1200px;
  --pad: clamp(20px, 5vw, 48px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.balance { text-wrap: balance; }
.pretty { text-wrap: pretty; }

.display {
  font-family: var(--font-display);
  font-weight: 300;
  font-optical-sizing: auto;
  letter-spacing: -0.015em;
  line-height: 1.08;
}
.display em { font-style: italic; font-weight: 400; color: var(--orange); }

/* ---------- progress bar (scroll-driven, CSS nativo) ---------- */
.progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: 0 50%;
  z-index: 200;
}
@supports (animation-timeline: scroll()) {
  .progress {
    animation: progress-grow linear both;
    animation-timeline: scroll(root);
  }
}
@keyframes progress-grow { to { transform: scaleX(1); } }

/* ---------- grão sutil (textura, mata o "flat") ---------- */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 60;
  opacity: 0.045;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- HEADER ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  background: rgba(246, 244, 240, 0.78);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.header__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 12px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; }
/* width:auto preserva a proporção (sem distorção); clamp = grande, mas responsivo */
.brand__logo { height: clamp(38px, 4.4vw, 48px); width: auto; display: block; }

.nav { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 38px); }
.nav a {
  font-size: 0.92rem;
  font-weight: 500;
  position: relative;
  transition: color 0.25s var(--ease);
}
.nav a:not(.nav__cta)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -5px;
  width: 0; height: 1.5px;
  background: var(--orange);
  transition: width 0.3s var(--ease);
}
.nav a:not(.nav__cta):hover::after { width: 100%; }
.nav__cta {
  padding: 9px 20px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 0.9rem;
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}
.nav__cta:hover { background: var(--ink); color: var(--paper); }

.nav-toggle { display: none; flex-direction: column; gap: 6px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 1.5px; background: var(--ink); transition: 0.3s var(--ease); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 132px 0 64px;
  overflow: hidden;
  background:
    radial-gradient(70% 60% at 92% 0%, var(--orange-soft) 0%, transparent 55%),
    var(--paper);
}
.hero__route {
  position: absolute;
  top: 50%; right: clamp(-120px, -2vw, -40px);
  transform: translateY(-50%);
  width: clamp(360px, 42vw, 620px);
  height: auto;
  color: var(--orange);
  opacity: 0.5;
  z-index: 1;
}
.hero__route-line {
  stroke-dasharray: 6 10;
  stroke-dashoffset: 900;
  animation: route-draw 2.4s var(--ease) 0.3s forwards;
}
@keyframes route-draw { to { stroke-dashoffset: 0; } }
.hero__route-dot { animation: route-pulse 2.6s ease-in-out 1.4s infinite; transform-origin: 30px 500px; }
@keyframes route-pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

.hero__inner { position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); width: 100%; }
.hero__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-optical-sizing: auto;
  font-size: clamp(2.7rem, 6.6vw, 5.8rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  max-width: 17ch;
}
.hero__title em { font-style: italic; font-weight: 400; color: var(--orange); }
.hero__lead { margin-top: 30px; max-width: 48ch; font-size: clamp(1.05rem, 1.5vw, 1.22rem); color: var(--gray); }
.hero__actions { margin-top: 38px; display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.hero__meta {
  list-style: none;
  margin-top: clamp(48px, 7vw, 88px);
  padding-top: 30px;
  border-top: 1px solid var(--line-2);
  display: flex;
  gap: clamp(28px, 6vw, 84px);
  flex-wrap: wrap;
}
.hero__meta li { display: flex; flex-direction: column; gap: 4px; }
.hero__meta-v { font-family: var(--font-display); font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 400; }
.hero__meta-l { font-size: 0.85rem; color: var(--gray); }

/* ---------- botões ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.98rem; transition: transform 0.25s var(--ease), background 0.25s var(--ease); }
.btn--primary { padding: 15px 30px; border-radius: 999px; background: var(--ink); color: var(--paper); }
.btn--primary:hover { background: var(--orange); transform: translateY(-2px); }
.btn--link { color: var(--ink); }
.btn--link span { color: var(--orange); display: inline-block; transition: transform 0.25s var(--ease); }
.btn--link:hover span { transform: translateX(5px); }

/* ---------- sections + layout editorial ---------- */
.section { position: relative; padding: clamp(84px, 11vw, 150px) 0; }
.section--paper { background: var(--paper); }
.section--white { background: var(--white); }
.section::before {
  content: "";
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: calc(min(100%, var(--maxw)) - 2 * var(--pad));
  height: 1px;
  background: var(--line);
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 4.2fr) minmax(0, 7fr);
  gap: clamp(40px, 7vw, 110px);
  align-items: start;
}
.rail { position: sticky; top: 120px; align-self: start; }
.rail__rule { display: block; width: 40px; height: 2px; border-radius: 2px; background: var(--orange); margin-bottom: 22px; }
.rail__rule--center { margin-left: auto; margin-right: auto; }
.rail__label {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
  font-weight: 600;
  margin-bottom: 16px;
}
.rail__lead { font-size: clamp(1.5rem, 2.6vw, 2.1rem); max-width: 16ch; }

.main { min-width: 0; }
.prose p { color: var(--gray); margin-bottom: 18px; font-size: 1.06rem; max-width: 60ch; }
.prose strong { color: var(--ink); font-weight: 600; }

/* Missão / Visão */
.mv-grid { margin-top: clamp(36px, 4vw, 52px); display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.mv-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(24px, 2.4vw, 34px);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.section--white .mv-card { background: var(--white); }
.mv-card:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: 0 22px 50px -30px rgba(32,34,38,0.35); }
.tag { display: inline-block; font-family: var(--font-display); font-size: 1.1rem; font-weight: 500; margin-bottom: 12px; position: relative; padding-left: 18px; }
.tag::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.mv-card p { color: var(--gray); font-size: 0.98rem; }

/* Valores — grade bento */
.values { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.value { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: clamp(24px, 2.4vw, 34px) clamp(20px, 2vw, 28px) clamp(36px, 3.4vw, 48px); transition: background 0.35s var(--ease); }
.value:hover { background: var(--paper); }
.section--white .value:hover { background: var(--paper); }
.dot-mark { display: block; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.value h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.35rem; margin: 20px 0 10px; line-height: 1.15; }
.value p { color: var(--gray); font-size: 0.95rem; }

/* Serviços */
.svc { list-style: none; }
.svc__row {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: clamp(14px, 2vw, 26px);
  align-items: start;
  padding: clamp(24px, 2.6vw, 34px) 0;
  border-top: 1px solid var(--line);
  transition: padding-left 0.35s var(--ease);
}
.svc__row:first-child { border-top: none; padding-top: 0; }
.svc__row:hover { padding-left: 14px; }
.svc__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); margin-top: 0.7em; transition: transform 0.35s var(--ease); }
.svc__row:hover .svc__dot { transform: scale(1.4); }
.svc__content h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.35rem, 2.4vw, 1.85rem); letter-spacing: -0.01em; margin-bottom: 8px; }
.svc__content p { color: var(--gray); max-width: 52ch; }

/* Diferenciais — chips em contorno */
.diffs { margin-top: clamp(40px, 5vw, 60px); }
.diffs__label { display: block; font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gray); font-weight: 600; margin-bottom: 20px; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 11px; }
.chips li { display: inline-flex; align-items: center; gap: 9px; padding: 10px 18px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 0.92rem; font-weight: 500; transition: border-color 0.25s var(--ease), transform 0.25s var(--ease); }
.chips li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }
.chips li:hover { border-color: var(--orange); transform: translateY(-2px); }

/* ---------- HISTÓRIA ---------- */
.historia__inner { display: grid; grid-template-columns: auto 1fr; gap: clamp(28px, 6vw, 90px); align-items: center; }
.historia__year { font-family: var(--font-display); font-weight: 300; font-size: clamp(5rem, 16vw, 13rem); line-height: 0.8; letter-spacing: -0.04em; color: transparent; -webkit-text-stroke: 1.5px var(--orange); }
.historia__text .rail__label { margin-bottom: 22px; }
.historia__text p { color: var(--gray); margin-bottom: 16px; max-width: 56ch; }
.historia__text strong { color: var(--ink); font-weight: 600; }

/* ---------- CTA ---------- */
.cta { background: var(--paper); }
.cta__inner { text-align: center; max-width: 760px; }
.cta .rail__label { display: inline-block; }
.cta__title { margin: 18px 0 20px; font-size: clamp(2rem, 4.5vw, 3.4rem); }
.cta__text { color: var(--gray); font-size: 1.1rem; margin: 0 auto 34px; max-width: 52ch; }

/* ---------- FOOTER ---------- */
.footer { background: var(--ink); color: var(--paper); padding: clamp(64px, 8vw, 96px) 0 30px; position: relative; z-index: 1; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.footer__badge { display: inline-block; background: var(--white); padding: 13px 17px; border-radius: 12px; margin-bottom: 20px; }
.footer__logo { box-sizing: content-box; height: 34px; width: auto; }
.footer__brand p { color: rgba(246,244,240,0.6); max-width: 30ch; }
.footer__col h3 { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--orange); margin-bottom: 16px; font-weight: 600; }
.footer__col address { font-style: normal; color: rgba(246,244,240,0.78); line-height: 1.85; }
.footer__col a { display: block; color: rgba(246,244,240,0.78); margin-bottom: 10px; transition: color 0.25s var(--ease); }
.footer__col a:hover { color: var(--orange); }
.footer__phone { font-family: var(--font-display); font-size: 1.35rem; color: var(--white) !important; }
.footer__email { margin-top: 4px; word-break: break-word; }
.footer__sub { margin-top: 26px; }
.footer__base { margin-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 0.84rem; color: rgba(246,244,240,0.5); }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .hero__route-line { stroke-dashoffset: 0; }
}

/* ---------- responsivo ---------- */
@media (max-width: 920px) {
  .layout { grid-template-columns: 1fr; gap: clamp(28px, 5vw, 44px); }
  .rail { position: static; }
  .rail__lead { max-width: 24ch; }
  .historia__inner { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero__route { opacity: 0.28; right: -140px; }
  .nav {
    position: fixed; inset: 70px 0 auto 0; flex-direction: column; align-items: flex-start; gap: 2px;
    background: var(--paper); padding: 14px var(--pad) 22px; border-bottom: 1px solid var(--line);
    transform: translateY(-130%); transition: transform 0.4s var(--ease);
  }
  .nav.is-open { transform: translateY(0); }
  .nav a { padding: 10px 0; font-size: 1.05rem; }
  .nav__cta { margin-top: 8px; }
  .nav-toggle { display: flex; }
  .nav-toggle.is-open span:nth-child(1) { transform: translateY(3.75px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2) { transform: translateY(-3.75px) rotate(-45deg); }
  .mv-grid, .values { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__meta { gap: 22px; }
}
