/* =========================================================================
   Orlei Despachante — site institucional
   Paleta, tipografia e formas herdadas do sistema do projeto (src/app/globals.css)
   ========================================================================= */

:root {
  color-scheme: dark;
  --ink: #f5f5f5;
  --muted: #aaa9a7;
  --accent-text: #ff9c42;
  --acid: #ff891c;
  --accent-line: #9c5927;
  --accent-soft: #342719;
  --paper: #101010;
  --surface: #191919;
  --surface-soft: #222222;
  --line: #3d3d3d;
  --success-text: #acd48e;
  --glow: rgba(255, 137, 28, 0.10);
  --shadow: 0 14px 40px rgba(0, 0, 0, 0.35);

  --font-body: "DM Sans", Arial, sans-serif;
  --font-display: "Space Grotesk", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --container: 1120px;
  --radius: 16px;
  --radius-sm: 10px;
}

:root[data-theme="light"] {
  color-scheme: light;
  --ink: #202020;
  --muted: #65615c;
  --accent-text: #aa4900;
  --acid: #ff891c;
  --accent-line: #d99c68;
  --accent-soft: #fff0df;
  --paper: #f5f3ef;
  --surface: #ffffff;
  --surface-soft: #faf8f5;
  --line: #d9d4ce;
  --success-text: #426b2e;
  --glow: rgba(255, 137, 28, 0.09);
  --shadow: 0 14px 40px rgba(22, 35, 27, 0.08);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background:
    radial-gradient(circle at 88% -4%, var(--glow), transparent 24%),
    var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0;
}

p { margin: 0; }

a { color: inherit; }

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin: 0 0 14px;
}

.skipLink {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100;
  background: var(--acid);
  color: #211307;
  padding: 10px 16px;
  border-radius: 0 0 10px 0;
  font-weight: 700;
}
.skipLink:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease, color 0.18s ease;
}
.btn b { font-weight: 700; }
.btnPrimary { background: var(--acid); color: #211307; }
.btnPrimary:hover { background: #ffa449; transform: translateY(-1px); }
.btnGhost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btnGhost:hover { border-color: var(--accent-text); color: var(--accent-text); }
.btnBlock { width: 100%; }

:where(a, button, summary):focus-visible {
  outline: 3px solid var(--accent-text);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Header / nav ---------- */
.siteHeader {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.navRow {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 80px;
}
.brand {
  display: block;
  flex-shrink: 0;
  width: 232px;
  height: 78px;
  overflow: hidden;
}
.brand img {
  width: 232px;
  height: auto;
  max-width: none;
  margin-top: -34px;
}
.brandLight { display: none; }
:root[data-theme="light"] .brandDark { display: none; }
:root[data-theme="light"] .brandLight { display: block; }

.mainNav {
  display: flex;
  gap: 6px;
  margin-left: auto;
}
.mainNav a {
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  transition: color 0.15s ease, background 0.15s ease;
}
.mainNav a:hover { color: var(--ink); background: var(--surface-soft); }

.navActions { display: flex; align-items: center; gap: 12px; }

.themeToggle {
  height: 38px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: var(--surface-soft);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}
.themeToggle:hover { border-color: var(--accent-text); }
.themeToggle span span { margin-right: 6px; font-size: 14px; }
.toDark { display: none; }
:root[data-theme="light"] .toLight { display: none; }
:root[data-theme="light"] .toDark { display: inline; }

.navToggle {
  display: none;
  width: 42px;
  height: 38px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
  cursor: pointer;
}
.navToggle span {
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.navToggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navToggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.navToggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 8vw, 104px) 0 clamp(40px, 6vw, 72px); }
.heroGrid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.heroCopy h1 {
  font-size: clamp(36px, 5.4vw, 60px);
  font-weight: 700;
  letter-spacing: -0.045em;
  margin: 0 0 20px;
}
.heroCopy h1 em { color: var(--accent-text); font-style: normal; }
.intro {
  color: var(--muted);
  font-size: clamp(15px, 1.4vw, 18px);
  max-width: 54ch;
}
.heroActions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0 34px;
}
.heroBadges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.heroBadges li {
  flex: 1 1 140px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.heroBadges strong {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--accent-text);
}
.heroBadges span { font-size: 12px; color: var(--muted); }

.heroCard {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.heroCardHead {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.heroCardHead strong { display: block; font-family: var(--font-display); font-size: 15px; }
.heroCardHead small { color: var(--muted); font-size: 12px; }
.logoMark {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--acid);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
}
:root[data-theme="light"] .logoMark { background: #111; color: #ff9c42; }
.heroCardList {
  list-style: none;
  margin: 18px 0 22px;
  padding: 0;
  display: grid;
  gap: 12px;
}
.heroCardList li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
}
.heroCardList li span { color: var(--success-text); font-weight: 700; }
.heroCardFoot {
  margin-top: 16px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 9vw, 108px) 0; }
.sectionAlt {
  background: var(--surface);
  border-block: 1px solid var(--line);
}
.sectionHead { max-width: 640px; margin-bottom: clamp(32px, 5vw, 56px); }
.sectionHead h2 { font-size: clamp(26px, 3.6vw, 40px); font-weight: 700; }
.sectionLead { margin-top: 14px; color: var(--muted); font-size: 16px; }

/* ---------- Service cards ---------- */
.cardGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.serviceCard {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.sectionAlt .serviceCard { background: var(--surface-soft); }
.serviceCard:hover {
  border-color: var(--accent-line);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.serviceIcon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 20px;
  font-family: var(--font-display);
}
.serviceCard h3 { font-size: 19px; margin-bottom: 9px; }
.serviceCard p { color: var(--muted); font-size: 14.5px; }

.serviceNote {
  display: flex;
  gap: 14px;
  margin-top: 22px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent-line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 14px;
  color: var(--muted);
}
.serviceNote span {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-family: var(--font-display);
  font-weight: 700;
}
.serviceNote strong { color: var(--ink); }

/* ---------- About ---------- */
.aboutGrid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: clamp(28px, 5vw, 60px);
  align-items: start;
}
.aboutCopy h2 { font-size: clamp(26px, 3.6vw, 40px); font-weight: 700; margin-bottom: 20px; }
.aboutCopy p { color: var(--muted); margin-bottom: 16px; }
.aboutCopy strong { color: var(--ink); }
.aboutCopy em { color: var(--accent-text); font-style: normal; font-weight: 600; }
.valueList {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.valueList li {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
}
.valueList strong {
  display: block;
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--accent-text);
  margin-bottom: 4px;
}
.valueList span { font-size: 14px; color: var(--muted); }

.aboutCard {
  padding: 26px;
  border: 1px solid var(--accent-line);
  border-radius: var(--radius);
  background: var(--accent-soft);
  position: sticky;
  top: 96px;
}
.aboutCard h3 { font-size: 18px; margin-bottom: 18px; }
.statList { margin: 0; display: grid; gap: 0; }
.statList div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--accent-line);
  font-size: 14px;
}
.statList div:last-child { border-bottom: 0; }
.statList dt { color: var(--muted); }
.statList dd { margin: 0; font-family: var(--font-display); font-weight: 700; }
.aboutCardFoot {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--accent-line);
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}

/* ---------- Steps ---------- */
.stepList {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  counter-reset: step;
}
.stepItem {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  position: relative;
}
.stepNum {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--acid);
  color: #211307;
  font-family: var(--font-display);
  font-weight: 700;
}
.stepItem h3 { font-size: 17px; margin-bottom: 8px; }
.stepItem p { color: var(--muted); font-size: 14px; }

/* ---------- Units ---------- */
.unitGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.unitCard {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}
.unitCard h3 { font-size: 19px; margin-bottom: 8px; }
.unitAddress { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.mapWrap {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line);
  margin-bottom: 16px;
  background: var(--surface);
}
.mapWrap iframe { width: 100%; height: 100%; border: 0; }
:root[data-theme="dark"] .mapWrap iframe { filter: invert(0.92) hue-rotate(180deg) contrast(0.9); }

/* ---------- FAQ ---------- */
.faqGrid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 5vw, 56px);
  align-items: start;
}
.faqGrid .sectionHead { margin-bottom: 0; }
.faqList { display: grid; gap: 10px; }
.faqItem {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  overflow: hidden;
}
.faqItem summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 20px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
.faqItem summary::-webkit-details-marker { display: none; }
.faqItem summary::after {
  content: "+";
  font-size: 20px;
  color: var(--accent-text);
  transition: transform 0.2s ease;
}
.faqItem[open] summary::after { transform: rotate(45deg); }
.faqBody { padding: 0 20px 20px; }
.faqBody p { color: var(--muted); font-size: 14.5px; }

/* ---------- CTA ---------- */
.ctaSection {
  padding: clamp(48px, 7vw, 88px) 0;
  background:
    radial-gradient(circle at 12% 0%, var(--glow), transparent 30%),
    var(--surface);
  border-top: 1px solid var(--line);
}
.ctaInner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr);
  gap: 32px;
  align-items: center;
}
.ctaInner h2 { font-size: clamp(24px, 3.2vw, 34px); font-weight: 700; margin-bottom: 12px; }
.ctaActions { display: grid; gap: 12px; }

/* ---------- Footer ---------- */
.siteFooter {
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding: clamp(40px, 6vw, 64px) 0 28px;
}
.footerGrid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.2fr 1fr;
  gap: 32px;
}
.footerBrand .brandDark,
.footerBrand .brandLight { width: 216px; height: auto; margin: -30px 0 2px -8px; }
.footerBrand p { color: var(--muted); font-size: 13px; max-width: 34ch; }
.footerCol h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.footerCol ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footerCol li, .footerCol a {
  color: var(--muted);
  font-size: 13.5px;
  text-decoration: none;
}
.footerCol a:hover { color: var(--accent-text); }
.footerBase {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* ---------- Floating WhatsApp ---------- */
.floatWhats {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 45;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--acid);
  color: #211307;
  font-size: 24px;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: transform 0.18s ease;
}
.floatWhats:hover { transform: translateY(-2px) scale(1.04); }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .heroGrid { grid-template-columns: 1fr; }
  .heroCard { order: 2; }
  .aboutGrid { grid-template-columns: 1fr; }
  .aboutCard { position: static; }
  .faqGrid { grid-template-columns: 1fr; }
  .cardGrid { grid-template-columns: 1fr 1fr; }
  .stepList { grid-template-columns: 1fr 1fr; }
  .ctaInner { grid-template-columns: 1fr; }
  .footerGrid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .mainNav {
    position: fixed;
    inset: 80px 0 auto 0;
    flex-direction: column;
    gap: 4px;
    padding: 16px 20px 22px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    transform: translateY(-140%);
    transition: transform 0.25s ease;
  }
  .mainNav.open { transform: none; }
  .mainNav a { padding: 12px; font-size: 15px; }
  .navToggle { display: flex; }
  .navCta { display: none; }
}

@media (max-width: 560px) {
  .container { width: min(100% - 32px, var(--container)); }
  .unitGrid { grid-template-columns: 1fr; }
  .cardGrid { grid-template-columns: 1fr; }
  .stepList { grid-template-columns: 1fr; }
  .footerGrid { grid-template-columns: 1fr; }
  .footerBase { flex-direction: column; }
  .heroActions .btn { flex: 1 1 100%; }
}
