/* ============================================================
   US Tax Consulting — One Page
   Design system inspirado na navegação Apple (apple.com)
   Paleta derivada do branding original (estrutura-site.md)
   ============================================================ */

:root {
  /* Marca */
  --blue: #1a609e;          /* azul institucional (tema Wix color_13/39) */
  --blue-vivid: #116dff;    /* azul de ação */
  --blue-deep: #0b1b2b;     /* navy derivado p/ seções escuras */
  --purple: #423c6e;        /* roxo de acentos do original */
  --red: #df3131;           /* vermelho de destaque (uso pontual) */
  --beige: #edebe6;         /* bege de fundos suaves */

  /* Neutros (estilo Apple) */
  --ink: #1d1d1f;
  --ink-2: #494949;
  --ink-3: #6e6e73;
  --paper: #ffffff;
  --paper-2: #f5f5f7;

  --nav-h: 52px;
  --radius: 22px;
  --radius-s: 14px;
  --container: 1180px;
  --ease: cubic-bezier(.22, .8, .26, .99);

  --font-display: "Fahkwang", -apple-system, "Helvetica Neue", sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
               Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  font-size: 17px;
  overflow-x: hidden;
}

img, video { max-width: 100%; display: block; }
a { color: var(--blue-vivid); text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: rgba(17, 109, 255, .18); }

[id] { scroll-margin-top: calc(var(--nav-h) + 8px); }

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

/* ---------- Tipografia ---------- */
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}
.dark .eyebrow { color: #8fc1ff; }

h1, h2, h3 { font-family: var(--font-display); letter-spacing: -.015em; }

.h-hero {
  font-size: clamp(2.7rem, 7.2vw, 5.4rem);
  line-height: 1.04;
  font-weight: 700;
}
.h-section {
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  line-height: 1.1;
  font-weight: 600;
}
.lead {
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  color: var(--ink-3);
  max-width: 46em;
}
.dark .lead { color: rgba(255, 255, 255, .72); }

.section-head { max-width: 820px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .lead { margin-top: 18px; }

section { padding: clamp(72px, 10vw, 130px) 0; position: relative; }
.dark { background: var(--blue-deep); color: #fff; }
.tint { background: var(--paper-2); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 980px;
  padding: 13px 26px;
  font-size: 16.5px;
  font-weight: 600;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s;
  will-change: transform;
}
.btn:hover { transform: scale(1.04); }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--blue-vivid); color: #fff; box-shadow: 0 8px 28px rgba(17, 109, 255, .35); }
.btn-primary:hover { background: #2f7dff; }
.btn-ghost { background: rgba(255, 255, 255, .14); color: #fff; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .24); }
.btn-quiet { background: transparent; color: var(--blue-vivid); padding: 13px 10px; }
.btn-quiet:hover { text-decoration: underline; transform: none; }

.link-arrow {
  font-weight: 600;
  font-size: 16.5px;
  color: var(--blue-vivid);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.link-arrow::after { content: "›"; font-size: 1.2em; transition: transform .25s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ============================================================
   NAVBAR (estilo Apple: fina, blur, esconde ao rolar p/ baixo)
   ============================================================ */
.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 1002; /* acima do menu mobile, para o botão fechar (✕) ficar visível */
  background: rgba(251, 251, 253, .82);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, .08);
  transition: transform .45s var(--ease), background .3s;
  transform: translateY(0);
}
.navbar.hidden { transform: translateY(-100%); }

.nav-inner {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 26px;
}
.nav-logo { display: flex; align-items: center; flex-shrink: 0; }
.nav-logo img { height: 30px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
  margin-inline: auto;
}
.nav-links a {
  color: rgba(29, 29, 31, .85);
  font-size: 14px;
  font-weight: 500;
  transition: color .2s;
}
.nav-links a:hover { color: #000; }

.nav-right { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.nav-cta {
  background: var(--blue-vivid);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 980px;
  transition: background .2s, transform .2s;
}
.nav-cta:hover { background: #2f7dff; transform: scale(1.04); }
.nav-login {
  color: rgba(29, 29, 31, .75);
  font-size: 14px;
  font-weight: 500;
}
.nav-login:hover { color: #000; }

/* Toggle de idioma */
.lang-toggle {
  display: flex;
  border: 1px solid rgba(0, 0, 0, .18);
  border-radius: 980px;
  overflow: hidden;
}
.lang-toggle button {
  background: transparent;
  border: 0;
  font-size: 12.5px;
  font-weight: 700;
  padding: 5px 11px;
  color: var(--ink-3);
  letter-spacing: .04em;
  transition: background .2s, color .2s;
}
.lang-toggle button.active { background: var(--ink); color: #fff; }

/* Hamburger */
.nav-burger {
  display: none;
  background: none;
  border: 0;
  width: 40px;
  height: 40px;
  position: relative;
  z-index: 1102;
}
.nav-burger span {
  position: absolute;
  left: 10px;
  width: 20px;
  height: 1.8px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .35s var(--ease), opacity .2s, top .35s var(--ease);
}
.nav-burger span:nth-child(1) { top: 15px; }
.nav-burger span:nth-child(2) { top: 23px; }
body.menu-open .nav-burger span:nth-child(1) { top: 19px; transform: rotate(45deg); }
body.menu-open .nav-burger span:nth-child(2) { top: 19px; transform: rotate(-45deg); }

/* Menu mobile em tela cheia (estilo Apple) */
body.menu-open { overflow: hidden; }
body.menu-open .navbar { transform: none !important; }
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 1001;
  background: rgba(251, 251, 253, .97);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  backdrop-filter: saturate(180%) blur(24px);
  padding: calc(var(--nav-h) + 14px) 26px calc(22px + env(safe-area-inset-bottom));
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s var(--ease), visibility .35s;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
body.menu-open .mobile-menu { opacity: 1; visibility: visible; }
.mobile-menu ul { list-style: none; }
.mobile-menu li { border-bottom: 1px solid rgba(0, 0, 0, .07); }
.mobile-menu li.mm-highlight { border-bottom: 0; margin-top: 4px; }
.mobile-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 2px;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--ink);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .45s var(--ease), transform .45s var(--ease), color .2s;
}
.mobile-menu ul a::after {
  content: "›";
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: 400;
  color: rgba(0, 0, 0, .3);
}
.mobile-menu ul a:active { color: var(--blue-vivid); }
body.menu-open .mobile-menu a { opacity: 1; transform: none; }
.mobile-menu li:nth-child(1) a { transition-delay: .05s; }
.mobile-menu li:nth-child(2) a { transition-delay: .09s; }
.mobile-menu li:nth-child(3) a { transition-delay: .13s; }
.mobile-menu li:nth-child(4) a { transition-delay: .17s; }
.mobile-menu li:nth-child(5) a { transition-delay: .21s; }
.mobile-menu li:nth-child(6) a { transition-delay: .25s; }
.mobile-menu li:nth-child(7) a { transition-delay: .29s; }
.mobile-menu .mm-foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: 28px;
}
.mm-foot .btn {
  width: 100%;
  justify-content: center;
  color: #fff;
  font-family: var(--font-body);
  font-size: 17px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .45s var(--ease) .33s, transform .45s var(--ease) .33s;
}
body.menu-open .mm-foot .btn { opacity: 1; transform: none; }
.mm-contacts {
  display: flex;
  justify-content: center;
  gap: 14px;
  opacity: 0;
  transition: opacity .45s var(--ease) .4s;
}
body.menu-open .mm-contacts { opacity: 1; }
.mm-contacts a {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, .06);
  color: var(--ink);
  transition: background .25s, color .25s;
}
.mm-contacts a:active { background: var(--blue-vivid); color: #fff; }
.mm-contacts svg { width: 21px; height: 21px; }

/* ============================================================
   HERO com vídeo
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
  padding: 0;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  will-change: transform;
}
.hero-media video,
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 16, 26, .46) 0%, rgba(6, 16, 26, .38) 45%, rgba(6, 16, 26, .72) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  width: min(920px, calc(100% - 44px));
  padding: 120px 0 90px;
  will-change: transform, opacity;
}
.hero-eyebrow {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .82);
  margin-bottom: 20px;
}
.hero-sub {
  margin: 22px auto 34px;
  font-size: clamp(1.08rem, 2vw, 1.45rem);
  color: rgba(255, 255, 255, .88);
  max-width: 40em;
}
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.scroll-hint {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  color: rgba(255, 255, 255, .75);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: hint 2.6s infinite var(--ease);
}
.scroll-hint svg { width: 18px; height: 18px; }
@keyframes hint {
  0%, 100% { transform: translate(-50%, 0); opacity: .75; }
  50% { transform: translate(-50%, 8px); opacity: 1; }
}

/* ============================================================
   Animações de revelação na rolagem
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }
.reveal-scale {
  opacity: 0;
  transform: scale(.94) translateY(20px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal-scale.in { opacity: 1; transform: none; }

/* ============================================================
   SERVIÇOS
   ============================================================ */
.cards-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.icard {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: 0 2px 14px rgba(0, 0, 0, .05);
  border: 1px solid rgba(0, 0, 0, .04);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.icard:hover { transform: translateY(-6px); box-shadow: 0 18px 44px rgba(11, 27, 43, .12); }
.icard .ic {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(17, 109, 255, .12), rgba(26, 96, 158, .18));
  color: var(--blue);
}
.icard .ic svg { width: 26px; height: 26px; }
.icard h3 { font-size: 17px; font-weight: 700; letter-spacing: .02em; }
.icard p { font-size: 14.5px; color: var(--ink-3); flex: 1; }
.icard .link-arrow { font-size: 14.5px; }

/* Linhas de destaque alternadas (estilo Apple) */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 74px);
  align-items: center;
  margin-top: clamp(64px, 8vw, 110px);
}
.feature.flip .f-media { order: 2; }
.f-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(11, 27, 43, .18);
  aspect-ratio: 4 / 3;
}
.f-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 1.2s var(--ease);
}
.feature.in-view .f-media img { transform: scale(1); }
.f-body h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 600; margin-bottom: 14px; }
.f-body p { color: var(--ink-2); margin-bottom: 12px; }
.f-body ul {
  list-style: none;
  margin: 18px 0 6px;
  display: grid;
  gap: 9px;
}
.f-body li {
  position: relative;
  padding-left: 26px;
  font-size: 15.5px;
  color: var(--ink-2);
}
.f-body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue-vivid);
}
.f-body .cols2 { grid-template-columns: 1fr 1fr; column-gap: 22px; }

.entity-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}
.entity {
  background: var(--paper-2);
  border-radius: var(--radius-s);
  padding: 16px 18px;
}
.entity h4 { font-size: 15px; font-weight: 700; margin-bottom: 6px; color: var(--blue); }
.entity p { font-size: 13.5px; color: var(--ink-3); margin: 0; }

/* Carrossel horizontal com snap (usado em serviços e notícias) */
.rail-wrap { position: relative; margin-top: clamp(40px, 6vw, 64px); }
.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(360px, 78vw);
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 6px 6px 26px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }

.rail-nav {
  position: absolute;
  top: -64px;
  right: 0;
  display: flex;
  gap: 10px;
}
.rail-nav button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: rgba(0, 0, 0, .06);
  color: var(--ink);
  font-size: 19px;
  display: grid;
  place-items: center;
  transition: background .2s, transform .2s, opacity .2s;
}
.dark .rail-nav button { background: rgba(255, 255, 255, .14); color: #fff; }
.rail-nav button:hover { background: rgba(0, 0, 0, .12); transform: scale(1.06); }
.dark .rail-nav button:hover { background: rgba(255, 255, 255, .24); }
.rail-nav button:disabled { opacity: .35; pointer-events: none; }

.rail-dots {
  display: flex;
  gap: 7px;
  justify-content: center;
  margin-top: 4px;
}
.rail-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  background: rgba(0, 0, 0, .18);
  padding: 0;
  transition: background .25s, transform .25s;
}
.dark .rail-dots button { background: rgba(255, 255, 255, .28); }
.rail-dots button.active { background: var(--blue-vivid); transform: scale(1.35); }

/* Card de serviço no carrossel */
.scard {
  background: var(--paper);
  border-radius: var(--radius);
  border: 1px solid rgba(0, 0, 0, .05);
  box-shadow: 0 2px 14px rgba(0, 0, 0, .05);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 300px;
  text-align: left;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.scard:hover { transform: translateY(-6px); box-shadow: 0 18px 44px rgba(11, 27, 43, .13); }
.scard .ic {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(66, 60, 110, .12), rgba(26, 96, 158, .16));
  color: var(--purple);
}
.scard .ic svg { width: 24px; height: 24px; }
.scard h3 { font-size: 19px; font-weight: 700; }
.scard p { font-size: 14.5px; color: var(--ink-3); flex: 1; }
.scard .more { color: var(--blue-vivid); font-weight: 600; font-size: 15px; }

/* ============================================================
   COTAÇÃO (seção escura com vídeo)
   ============================================================ */
.quote-section { overflow: hidden; }
.quote-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.quote-bg video, .quote-bg img { width: 100%; height: 100%; object-fit: cover; }
.quote-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 27, 43, .93), rgba(11, 27, 43, .82) 50%, rgba(11, 27, 43, .95));
}
.quote-section .container { position: relative; z-index: 1; }

.qcards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.qcard {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3 / 3.6;
  display: flex;
  align-items: flex-end;
  color: #fff;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .35);
  transition: transform .5s var(--ease);
}
.qcard:hover { transform: translateY(-8px) scale(1.015); }
.qcard img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}
.qcard:hover img { transform: scale(1.06); }
.qcard::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 14, 24, .05) 30%, rgba(6, 14, 24, .88) 100%);
}
.qcard-body { position: relative; z-index: 1; padding: 26px; width: 100%; }
.qcard-body h3 { font-size: 23px; font-weight: 700; margin-bottom: 6px; }
.qcard-body p { font-size: 14px; color: rgba(255, 255, 255, .82); margin-bottom: 16px; }
.qcard-body .btn { font-size: 15px; padding: 10px 22px; }

.qlinks {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.qlinks a {
  border: 1px solid rgba(255, 255, 255, .28);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border-radius: 980px;
  padding: 9px 18px;
  transition: background .25s, border-color .25s, transform .25s;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.qlinks a:hover { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .5); transform: scale(1.04); }

/* ============================================================
   SOBRE
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(34px, 5vw, 70px);
  align-items: center;
}
.about-chips {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 28px;
}
.chip {
  background: var(--paper);
  border: 1px solid rgba(0, 0, 0, .05);
  border-radius: var(--radius-s);
  padding: 16px 18px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .04);
}
.chip b { display: block; font-size: 14.5px; margin-bottom: 3px; }
.chip span { font-size: 13.5px; color: var(--ink-3); }
.about-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(11, 27, 43, .18);
}
.about-media img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   DEPOIMENTOS
   ============================================================ */
.testimonials {
  background:
    linear-gradient(180deg, rgba(11, 27, 43, .92), rgba(11, 27, 43, .88)),
    url("../assets/img/bg-testimonials.jpg") center/cover fixed no-repeat;
  color: #fff;
  text-align: center;
}
.t-viewport { max-width: 760px; margin-inline: auto; min-height: 270px; position: relative; }
.t-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 0 10px;
}
.t-slide.active { opacity: 1; transform: none; pointer-events: auto; }
.t-slide blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.6vw, 1.8rem);
  font-weight: 500;
  line-height: 1.35;
}
.t-who { display: flex; align-items: center; gap: 13px; }
.t-who img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, .4);
}
.t-who span { font-size: 15px; font-weight: 600; color: rgba(255, 255, 255, .85); }
.t-dots { display: flex; gap: 8px; justify-content: center; margin-top: 30px; }
.t-dots button {
  width: 9px; height: 9px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, .3);
  transition: background .25s, transform .25s;
}
.t-dots button.active { background: #fff; transform: scale(1.3); }

/* ============================================================
   NOTÍCIAS (posts em carrossel snap + leitor modal)
   ============================================================ */
.pcard {
  background: var(--paper);
  border: 1px solid rgba(0, 0, 0, .05);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 14px rgba(0, 0, 0, .06);
  display: flex;
  flex-direction: column;
  text-align: left;
  padding: 0;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.pcard:hover { transform: translateY(-6px); box-shadow: 0 20px 48px rgba(11, 27, 43, .14); }
.pcard .cover {
  aspect-ratio: 16 / 10.5;
  overflow: hidden;
  background: var(--paper-2);
}
.pcard .cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .9s var(--ease);
}
.pcard:hover .cover img { transform: scale(1.05); }
.pcard .p-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.pcard .p-meta { font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.pcard h3 { font-size: 18.5px; font-weight: 700; line-height: 1.3; }
.pcard p.excerpt {
  font-size: 14.5px;
  color: var(--ink-3);
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pcard .more { color: var(--blue-vivid); font-weight: 600; font-size: 15px; }

/* ============================================================
   CONTATO
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(34px, 5vw, 64px);
  align-items: start;
}
.form-card {
  background: var(--paper);
  border-radius: var(--radius);
  border: 1px solid rgba(0, 0, 0, .05);
  box-shadow: 0 14px 44px rgba(11, 27, 43, .08);
  padding: clamp(24px, 4vw, 40px);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.field input, .field textarea {
  border: 1px solid rgba(0, 0, 0, .14);
  border-radius: 12px;
  padding: 13px 15px;
  font: inherit;
  font-size: 16px;
  background: var(--paper-2);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue-vivid);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(17, 109, 255, .14);
}
.field textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: 13px; color: var(--ink-3); margin-top: 12px; }
.form-ok { margin-top: 12px; font-size: 14.5px; font-weight: 600; color: #1a7f37; display: none; }
.form-ok.show { display: block; }

.info-stack { display: grid; gap: 14px; }
.info-card {
  background: var(--paper);
  border: 1px solid rgba(0, 0, 0, .05);
  border-radius: var(--radius-s);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .04);
  padding: 20px 22px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.info-card .ic {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(17, 109, 255, .12), rgba(26, 96, 158, .18));
  color: var(--blue);
}
.info-card .ic svg { width: 22px; height: 22px; }
.info-card b { display: block; font-size: 15.5px; margin-bottom: 4px; }
.info-card p, .info-card a.line { font-size: 14.5px; color: var(--ink-2); display: block; }
.info-card a.line:hover { color: var(--blue-vivid); }
.socials { display: flex; gap: 10px; margin-top: 4px; }
.socials a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, .06);
  color: var(--ink);
  transition: background .25s, color .25s, transform .25s;
}
.socials a:hover { background: var(--blue-vivid); color: #fff; transform: scale(1.08); }
.socials svg { width: 20px; height: 20px; }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background:
    linear-gradient(180deg, rgba(8, 19, 31, .96), rgba(8, 19, 31, .96)),
    url("../assets/img/bg-footer.jpg") center/cover no-repeat;
  color: rgba(255, 255, 255, .82);
  padding: 64px 0 34px;
  font-size: 14px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 34px;
  padding-bottom: 38px;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
}
.foot-grid img.flogo { height: 44px; width: auto; margin-bottom: 16px; }
.foot-grid h4 {
  color: #fff;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.foot-grid ul { list-style: none; display: grid; gap: 9px; }
.foot-grid a { color: rgba(255, 255, 255, .75); transition: color .2s; }
.foot-grid a:hover { color: #fff; }
.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  padding-top: 26px;
  font-size: 13px;
  color: rgba(255, 255, 255, .55);
}
.foot-bottom button {
  background: none;
  border: 0;
  color: rgba(255, 255, 255, .75);
  font-size: 13px;
  text-decoration: underline;
}
.foot-bottom button:hover { color: #fff; }

/* ============================================================
   MODAL (leitor de posts / serviços / privacidade)
   Mobile: bottom-sheet · Desktop: cartão central
   ============================================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: flex-end;
  justify-content: center;
}
.modal.open { display: flex; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 16, 24, .55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity .35s;
}
.modal.show .modal-backdrop { opacity: 1; }
.modal-card {
  position: relative;
  background: var(--paper);
  width: 100%;
  max-height: 88svh;
  border-radius: 26px 26px 0 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: translateY(60px);
  opacity: 0;
  transition: transform .45s var(--ease), opacity .45s var(--ease);
}
.modal.show .modal-card { transform: none; opacity: 1; }
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 0;
  background: rgba(0, 0, 0, .35);
  color: #fff;
  font-size: 17px;
  display: grid;
  place-items: center;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: background .2s, transform .2s;
}
.modal-close:hover { background: rgba(0, 0, 0, .55); transform: scale(1.07); }
.modal-scroll { overflow-y: auto; overscroll-behavior: contain; }
.modal-cover { aspect-ratio: 16 / 9; background: var(--paper-2); }
.modal-cover img { width: 100%; height: 100%; object-fit: cover; }
.modal-body { padding: clamp(22px, 4vw, 44px); }
.modal-body .p-meta {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 10px;
}
.modal-body h2 {
  font-size: clamp(1.5rem, 3.4vw, 2.2rem);
  line-height: 1.18;
  margin-bottom: 18px;
}
.modal-body p { margin-bottom: 14px; color: var(--ink-2); }
.modal-body ul { margin: 0 0 16px 22px; color: var(--ink-2); display: grid; gap: 7px; }
.modal-body h3 { font-size: 1.15rem; margin: 22px 0 10px; }
.modal-cta { margin-top: 10px; }

@media (min-width: 740px) {
  .modal { align-items: center; padding: 30px; }
  .modal-card {
    width: min(820px, 100%);
    border-radius: 26px;
    max-height: 86vh;
    transform: translateY(34px) scale(.97);
  }
}

/* ============================================================
   Responsivo
   ============================================================ */
@media (max-width: 1024px) {
  .cards-4 { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .nav-burger { display: block; }
  .nav-login { display: none; }
}

@media (max-width: 860px) {
  .feature, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .feature.flip .f-media { order: 0; }
  .qcards { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .qcard { aspect-ratio: 4 / 3.4; }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .rail-nav { display: none; }
  .about-media { order: -1; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .cards-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .entity-grid { grid-template-columns: 1fr; }
  .f-body .cols2 { grid-template-columns: 1fr; }
  .about-chips { grid-template-columns: 1fr; }
  .rail { grid-auto-columns: 84vw; }
  .nav-cta { display: none; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
}

/* Acessibilidade: reduz movimento */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal-scale { opacity: 1 !important; transform: none !important; transition: none !important; }
  .scroll-hint { animation: none; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
