/* Tipografia local e valores do briefing */
@font-face {
  font-family: Newsreader;
  src: url("../assets/fonts/newsreader-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: Outfit;
  src: url("../assets/fonts/outfit-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
}

@font-face {
  font-family: Cinzel;
  src: url("../assets/fonts/cinzel-latin.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  --ink: #041821;
  --blue-900: #041821;
  --blue-800: #102F3C;
  --blue-700: #102F3C;
  --blue-glow: #244958;
  --gold-300: #DEC499;
  --gold-400: #C5A46D;
  --gold-500: #C5A46D;
  --gold-line: #C5A46D;
  --gold-icon: #C5A46D;
  --cream-100: #F5F3EF;
  --cream-200: #E4E2DD;
  --cream-300: #E4E2DD;
  --paper: #F5F3EF;
  --text-dark: #041821;
  --text-body: #45545B;
  --text-muted: #69767C;
  --text-on-dark: #F5F3EF;
  --eyebrow-light-bg: #76592D;
  --gold-button: linear-gradient(135deg, var(--gold-300), var(--gold-400) 52%, var(--gold-500));
  --shadow-light: 0 18px 50px rgba(4, 24, 33, .10);
  --shadow-dark: 0 24px 60px rgba(0, 0, 0, .35);
  --serif: Newsreader, Georgia, "Times New Roman", serif;
  --sans: Outfit, "Trebuchet MS", Arial, sans-serif;
  --section-space: clamp(80px, 9vw, 140px);
  --gutter: clamp(20px, 5vw, 48px);
  --header-height: 86px;
  --container: 1200px;
  --radius: 22px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-padding-top: calc(var(--header-height) + 12px);
  background: var(--paper);
  scrollbar-color: #C5A46D #E4E2DD;
}

body {
  margin: 0;
  color: var(--text-body);
  background: var(--paper);
  font: 400 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}

body,
main,
section,
header,
footer,
nav,
div,
article {
  min-width: 0;
}

[hidden] {
  display: none !important;
}

figure,
p,
h1,
h2,
h3,
ul,
dl,
dd {
  margin: 0;
}

ul {
  list-style: none;
  padding: 0;
}

img,
picture {
  display: block;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  color: inherit;
  font: inherit;
  cursor: pointer;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

:focus-visible {
  outline: 3px solid #76592D;
  outline-offset: 5px;
}

:is(.site-header, .hero, .help, .contact-call, .site-footer) :focus-visible {
  outline-color: #DEC499;
}

::selection {
  background: #DEC499;
  color: #041821;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--text-dark);
}

h1 {
  font-size: clamp(2.75rem, 1.2rem + 3.4vw, 4.5rem);
  line-height: 1.06;
  letter-spacing: -.01em;
}

h2 {
  font-size: clamp(2rem, 1.2rem + 1.6vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -.01em;
}

h3 {
  font-size: 1.375rem;
  line-height: 1.2;
  letter-spacing: -.01em;
}

strong {
  font-weight: 700;
}

.line-mask {
  display: block;
  overflow: hidden;
  padding: .1em .04em .15em;
  margin: -.1em -.04em -.15em;
}

.line {
  display: block;
}

.container {
  width: min(calc(100% - var(--gutter) * 2), var(--container));
  margin-inline: auto;
}

.section-pad {
  padding-block: var(--section-space);
}

/* Cartões longe da janela conservam seu espaço e só pintam o conteúdo ao se aproximar. */
@supports (content-visibility: auto) {
  html:not([data-replay-active]) :is(.reason-card, .blog-card, .process-card) {
    content-visibility: auto;
    contain-intrinsic-block-size: auto 210px;
  }

  html:not([data-replay-active]) .blog-card {
    contain-intrinsic-block-size: auto 440px;
  }
}

.eyebrow,
.journal-label,
.category,
.detail-box h3 {
  font: 500 .72rem/1.5 var(--sans);
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--eyebrow-light-bg);
}

.eyebrow {
  margin-bottom: 16px;
}

.section-heading {
  text-align: center;
  margin: 0 auto 48px;
}

.section-intro {
  margin: 16px auto 0;
  font-size: .96875rem;
  line-height: 1.6;
}

.icon {
  width: 26px;
  height: 26px;
  display: block;
  flex: 0 0 auto;
  color: var(--gold-icon);
}

.button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  max-width: 100%;
  padding: 13px 34px;
  border: 0;
  border-radius: 10px;
  color: #041821;
  background: var(--gold-button);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 10px 28px rgba(197, 164, 109, .35);
  font: 500 .95rem/1.4 var(--sans);
  text-align: center;
  transition: transform .25s ease-out;
}

.button::after {
  content: "";
  position: absolute;
  pointer-events: none;
  inset: -100% auto -100% -43%;
  width: 26%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .44), transparent);
  transform: skewX(-20deg);
}

@media (hover: hover) {
  .button:hover {
    transform: translateY(-2px);
  }

  .button:hover::after {
    transform: translateX(645%) skewX(-20deg);
    transition: transform .7s ease;
  }
}

.skip-link {
  position: fixed;
  left: var(--gutter);
  top: 8px;
  z-index: 120;
  padding: 9px 18px;
  border-radius: 6px;
  color: #041821;
  background: #F5F3EF;
  transform: translateY(-170%);
}

.skip-link:focus {
  transform: translateY(0);
}

#conteudo:focus {
  outline: 0;
}

/* Cabeçalho */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--header-height);
  color: var(--text-on-dark);
  background: rgba(4, 24, 33, .90);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.header-inner,
.site-nav,
.nav-links,
.social-list {
  display: flex;
  align-items: center;
}

.header-inner {
  height: 100%;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand img {
  display: block;
  width: 202px;
  max-width: 100%;
  height: auto;
}

.site-nav {
  gap: clamp(22px, 3vw, 46px);
}

.nav-links {
  gap: clamp(18px, 2.1vw, 34px);
}

.nav-links a {
  position: relative;
  display: block;
  padding: 8px 0;
  color: rgba(255, 255, 255, .86);
  font-size: .875rem;
  font-weight: 500;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3px;
  height: 1px;
  background: var(--gold-line);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}

.nav-links a[aria-current="location"],
.nav-links a.is-active,
.nav-links a:hover {
  color: #C5A46D;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  transform: scaleX(1);
}

.social-list {
  gap: 8px;
}

.social {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: #F5F3EF;
  color: #041821;
  border-radius: 50%;
  transition: transform .2s;
}

.social:hover {
  transform: translateY(-2px);
}

.social .icon {
  width: 17px;
  height: 17px;
  color: inherit;
  stroke-width: 1.85;
}

.menu-toggle {
  display: none;
}

/* 01 · Abertura. O retrato começa abaixo da navegação, para preservar o rosto. */
.hero {
  isolation: isolate;
  position: relative;
  display: grid;
  grid-template-rows: 1fr 48px;
  min-height: max(690px, 100vh);
  min-height: max(690px, 100svh);
  padding-top: var(--header-height);
  overflow: hidden;
  color: var(--text-on-dark);
  background: var(--ink);
}

.hero-media {
  position: absolute;
  z-index: -2;
  inset: var(--header-height) 0 0;
  overflow: hidden;
}

.hero-media picture,
.hero-photo {
  width: 100%;
  height: 100%;
}

.hero-photo {
  object-fit: cover;
  object-position: 70% 26%;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(4, 24, 33, .92), rgba(4, 24, 33, .55) 38%, transparent 65%), linear-gradient(0deg, rgba(4, 24, 33, .39), transparent 24%);
}

.hero-inner {
  display: flex;
  align-items: center;
  padding-block: clamp(48px, 6vh, 80px);
}

.hero-copy {
  width: min(53%, 560px);
}

.hero-eyebrow {
  font-size: .75rem;
  color: #C0C0C0;
  letter-spacing: .16em;
  margin-bottom: 24px;
}

.hero h1 {
  color: #F5F3EF;
}

.hero-description {
  margin-top: 22px;
  max-width: 460px;
  font-size: 1.125rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, .86);
}

.hero-action {
  margin-top: 30px;
}

.hero-location {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  color: #C0C0C0;
  font-size: .8125rem;
  line-height: 1.5;
}

.hero-location .icon {
  width: 15px;
  height: 15px;
  color: #F5F3EF;
}

.marquee {
  display: flex;
  overflow: hidden;
  align-items: center;
  background: rgba(4, 24, 33, .64);
  border-top: 1px solid rgba(255, 255, 255, .09);
  backdrop-filter: blur(9px);
  color: #C0C0C0;
  user-select: none;
}

.marquee-track,
.marquee-group {
  display: flex;
  flex: 0 0 auto;
  white-space: nowrap;
  align-items: center;
}

.marquee-track {
  width: max-content;
}

.marquee-group {
  min-width: 100vw;
  justify-content: space-around;
}

.marquee-item {
  display: inline-block;
  padding-left: 23px;
  font-size: .8125rem;
}

.marquee-item b {
  display: inline-block;
  margin-left: 20px;
  font-size: .74rem;
  font-weight: 400;
  color: var(--gold-line);
}

/* 02 · Quando algo pede atenção */
.attention {
  background: var(--paper);
}

.attention-grid {
  display: grid;
  grid-template-columns: 46fr 54fr;
  align-items: center;
  gap: clamp(30px, 4.5vw, 74px);
}

.attention-art {
  mix-blend-mode: multiply;
}

.attention-art img {
  width: 100%;
  height: auto;
}

@keyframes watercolor-float {

  0%,
  100% {
    transform: translateY(-8px);
  }

  50% {
    transform: translateY(8px);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .attention-art picture {
    animation: watercolor-float 7s ease-in-out infinite;
  }
}

.attention-copy>p:not(.eyebrow) {
  margin: 22px 0;
  font-size: 1rem;
  max-width: 60ch;
}

.attention-copy .button {
  margin-top: 2px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-block: 22px;
}

.chips li {
  padding: 9px 14px;
  border: 1px solid rgba(0, 0, 0, .05);
  border-radius: 10px;
  background: #F5F3EF;
  color: #45545B;
  font-size: .84375rem;
  line-height: 1.45;
}

.chips li:hover {
  background: #F5F3EF;
}

/* 03 · O processo, com quatro cartões sobre a fotografia */
.process {
  background: var(--paper);
}

.process>.container {
  padding: 28px 0 38px;
}

.process .section-heading {
  margin: 0;
}

.process-scene {
  position: relative;
  isolation: isolate;
  display: grid;
  width: 100%;
  min-height: 560px;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #D6C8B5;
}

.process-media,
.process-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.process-media {
  z-index: -1;
  overflow: hidden;
}

.process-photo {
  object-fit: cover;
  object-position: left center;
}

.process-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-block: 40px;
}

.process-grid {
  display: grid;
  width: 53%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.process-card {
  min-height: clamp(198px, 15.1vw, 260px);
  padding: clamp(22px, 2vw, 32px);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, .62);
  background: rgba(245, 243, 239, .90);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 12px 32px rgba(4, 24, 33, .09);
}

.process-card .icon {
  width: 24px;
  height: 24px;
  margin-bottom: 21px;
}

.process-card h3,
.help-card h3,
.reason-card h3,
.blog-body h3 {
  color: #041821;
}

.process-card p,
.help-card p,
.reason-card p {
  margin-top: 10px;
  color: #45545B;
  font-size: .90625rem;
  line-height: 1.57;
}

/* 04 · Áreas de atuação jurídica */
.help {
  background: radial-gradient(ellipse at 50% 0%, #102F3C, transparent 60%), var(--blue-700);
  color: var(--text-on-dark);
}

.help .eyebrow,
.contact-call .eyebrow {
  color: var(--gold-line);
}

.help h2,
.contact-call h2 {
  color: var(--text-on-dark);
}

.help .section-intro,
.contact-call .section-intro {
  color: rgba(245, 243, 239, .8);
}

.help-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}

.help-card {
  position: relative;
  padding: 28px;
  min-height: clamp(280px, 20.25vw, 350px);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, .38);
  background: var(--cream-100);
  box-shadow: var(--shadow-dark);
  scroll-margin-top: calc(var(--header-height) + 18px);
  transition: translate .25s ease-out;
}

.help-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  border: 1px solid var(--gold-line);
  opacity: 0;
  transition: opacity .25s;
}

.help-card .icon {
  margin-bottom: 26px;
}

.help-card h3 {
  font-size: 1.35rem;
}

.help-card p {
  margin-top: 14px;
}

/* A entrada mantém o stagger e o desenho dos ícones, mas sem tweens JS por traço.
   Apenas os cards em entrada são animados; as sombras e o layout permanecem estáticos. */
@media (prefers-reduced-motion: no-preference) {
  html:not([data-replay-active]) .help-grid.help-reveal-ready .help-card {
    --help-delay: 0s;
  }

  html:not([data-replay-active]) .help-grid.help-reveal-ready .help-card:not(.help-revealed) {
    opacity: 0;
  }

  html:not([data-replay-active]) .help-grid.help-reveal-ready .help-card.help-revealed:not(.help-reveal-skip) {
    animation: help-card-enter .84s cubic-bezier(.215, .61, .355, 1) var(--help-delay) backwards;
  }

  html:not([data-replay-active]) .help-grid.help-reveal-ready .help-card.help-revealed:not(.help-reveal-skip) .icon :is(path, circle, polyline, line, rect) {
    animation: help-icon-draw .88s cubic-bezier(.215, .61, .355, 1) var(--help-delay) backwards;
  }

  @keyframes help-card-enter {
    from {
      opacity: 0;
      transform: translate3d(0, 30px, 0);
    }

    to {
      opacity: 1;
      transform: translate3d(0, 0, 0);
    }
  }

  @keyframes help-icon-draw {
    from {
      stroke-dasharray: 74 74;
      stroke-dashoffset: 74;
    }

    to {
      stroke-dasharray: 74 74;
      stroke-dashoffset: 0;
    }
  }

  @media (min-width: 768px) {
    html:not([data-replay-active]) .help-grid.help-reveal-ready .help-card:nth-child(2n) {
      --help-delay: .09s;
    }
  }

  @media (min-width: 1200px) {
    html:not([data-replay-active]) .help-grid.help-reveal-ready .help-card:nth-child(4n + 3) {
      --help-delay: .18s;
    }

    html:not([data-replay-active]) .help-grid.help-reveal-ready .help-card:nth-child(4n) {
      --help-delay: .27s;
    }
  }
}

.center-action {
  margin-top: 44px;
  text-align: center;
}

@media (hover: hover) {

  .help-card:hover,
  .reason-card:hover {
    translate: 0 -6px;
  }

  .help-card:hover::after {
    opacity: 1;
  }
}

/* 05 · Biografia */
.about {
  display: grid;
  grid-template-columns: 47fr 53fr;
  min-height: max(680px, 100vh);
  min-height: max(680px, 100svh);
  background: #F5F3EF;
}

.about-media {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(90deg, #000 78%, transparent);
}

.about-photo {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
  object-position: 50% 20%;
}

.about-main {
  display: flex;
  align-items: center;
  padding: clamp(64px, 6vw, 100px) var(--gutter) clamp(64px, 6vw, 100px) 6%;
}

.about-copy {
  max-width: 560px;
}

.about-prose {
  font-size: 1.03125rem;
  line-height: 1.7;
  color: #45545B;
  margin-top: 22px;
}

.about-prose p+p {
  margin-top: 15px;
}

.about-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.detail-box {
  padding: 20px 21px;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, .05);
  background: rgba(255, 255, 255, .55);
}

.detail-box h3 {
  font-size: .6875rem;
  margin-bottom: 10px;
}

.detail-box li {
  font-size: .90625rem;
  line-height: 1.7;
  color: #45545B;
}

/* 06 e 07 · Formas de atendimento e motivos para começar */
.care-background {
  background: linear-gradient(160deg, #F5F3EF, #E4E2DD);
}

.care-grid {
  display: grid;
  grid-template-columns: 45fr 55fr;
  align-items: center;
  gap: clamp(28px, 5vw, 88px);
}

.care-copy {
  max-width: 455px;
}

.care-copy>p:not(.eyebrow) {
  margin: 20px 0 28px;
}

.office-card {
  justify-self: end;
  width: min(100%, 460px);
  padding: 36px;
  border-radius: 24px;
  background: rgba(245, 243, 239, .90);
  box-shadow: var(--shadow-light);
}

.office-card .icon {
  width: 28px;
  height: 28px;
  margin-bottom: 22px;
}

.office-card h3 {
  font-size: 1.7rem;
}

.office-card>p,
.office-card dd {
  margin: 11px 0 0;
  font-size: .9375rem;
}

.office-card dl {
  border-top: 1px solid rgba(0, 0, 0, .09);
  margin-top: 21px;
  padding-top: 17px;
}

.office-card dt {
  font-size: .8125rem;
  font-weight: 600;
  color: #041821;
}

.office-card dd {
  margin-top: 3px;
  margin-bottom: 13px;
}

.office-card .demo-note {
  color: #45545B;
  font-size: .6875rem;
}

.office-card .button {
  margin-top: 22px;
}

.reasons {
  padding-block: 18px var(--section-space);
}

.reason-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.reason-card {
  padding: 28px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, .72);
  background: rgba(255, 255, 255, .60);
  transition: translate .25s ease;
}

.icon-box {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(197, 164, 109, .16);
}

.icon-box .icon {
  width: 24px;
  height: 24px;
}

.reason-card h3 {
  margin-top: 19px;
}

/* 08 · Artigos */
.blog {
  background: #F5F3EF;
}

.blog-heading {
  margin-bottom: 30px;
}

.blog-meta {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-top: 18px;
}

.journal-label {
  color: #76592D;
  font-size: .65rem;
}

.text-link {
  width: fit-content;
  color: #102F3C;
  font-size: .875rem;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: #C5A46D;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

.text-link:hover {
  text-decoration-color: currentColor;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  scroll-margin-top: calc(var(--header-height) + 15px);
}

.blog-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 20px;
  background: rgba(255, 255, 255, .72);
  box-shadow: var(--shadow-light);
}

.blog-image {
  aspect-ratio: 16/10;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .65s cubic-bezier(.22, .61, .36, 1);
}

@media (hover: hover) {
  .blog-card:hover .blog-image img {
    transform: scale(1.06);
  }
}

.blog-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 25px 22px;
}

.category {
  color: #76592D;
  font-size: .6875rem;
  letter-spacing: .12em;
  margin-bottom: 10px;
}

.blog-summary {
  margin: 13px 0 20px;
  font-size: .875rem;
  line-height: 1.55;
  color: #45545B;
}

.blog-body .text-link {
  margin-top: auto;
}

.article-dialog {
  width: min(640px, calc(100% - 36px));
  max-height: min(82vh, 800px);
  max-height: min(82dvh, 800px);
  padding: clamp(26px, 4vw, 48px);
  border: 1px solid #E4E2DD;
  border-radius: var(--radius);
  background: #F5F3EF;
  color: #45545B;
  box-shadow: 0 30px 80px rgba(4, 24, 33, .35);
  overscroll-behavior: contain;
}

.article-dialog::backdrop {
  background: rgba(4, 24, 33, .65);
  backdrop-filter: blur(5px);
}

.article-dialog h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-block: 15px 22px;
}

.article-dialog>p:not(.eyebrow)+p {
  margin-top: 15px;
}

.article-close {
  display: block;
  width: fit-content;
  padding: 6px 15px;
  margin: 0 0 18px auto;
  border: 1px solid #E4E2DD;
  border-radius: 10px;
  background: transparent;
  color: #102F3C;
  font: 500 .875rem/1.5 var(--sans);
}

/* 09 · Dúvidas frequentes */
.faq {
  background: radial-gradient(ellipse at 90% 38%, #F5F3EF 0%, transparent 56%), #E4E2DD;
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid rgba(4, 24, 33, .13);
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 2px;
  border: 0;
  background: transparent;
  text-align: left;
  color: #041821;
  font: 500 1rem/1.5 var(--sans);
}

.faq-plus {
  display: grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(4, 24, 33, .2);
  border-radius: 50%;
  color: #102F3C;
  font: 400 1.18rem/1 var(--sans);
  transition: transform .3s;
}

.faq-trigger[aria-expanded=true] .faq-plus {
  transform: rotate(45deg);
}

.faq-answer {
  overflow: hidden;
}

.faq-answer p {
  max-width: 68ch;
  padding: 0 30px 22px 2px;
  font-size: .96875rem;
  line-height: 1.65;
}

/* 10 · Convite e rodapé */
.contact-call {
  color: var(--text-on-dark);
  padding: var(--section-space) 0;
  text-align: center;
  background: radial-gradient(ellipse at 12% 18%, var(--blue-glow) 0%, var(--blue-700) 28%, var(--blue-900) 55%, #041821 100%);
}

.contact-call .section-heading {
  margin-bottom: 26px;
}

.contact-call .section-intro {
  max-width: 520px;
}

.contact-note {
  font-size: .75rem;
  color: rgba(245, 243, 239, .70);
  margin-top: 16px;
}

.site-footer {
  background: linear-gradient(110deg, #041821, #041821 72%, #041821);
  border-top: 1px solid rgba(255, 255, 255, .08);
  color: rgba(245, 243, 239, .8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr .85fr 1.2fr 1.1fr;
  gap: clamp(24px, 3vw, 50px);
  padding: 72px 0 40px;
}

.footer-intro .brand img {
  width: 199px;
}

.footer-intro p {
  font-size: .90625rem;
  line-height: 1.65;
  margin: 19px 0;
  max-width: 29ch;
}

.footer-intro .social {
  width: 36px;
  height: 36px;
}

.footer-column h2 {
  font-size: 1.35rem;
  color: var(--text-on-dark);
}

.footer-column h2::after {
  content: "";
  display: block;
  width: 28px;
  height: 1px;
  margin: 12px 0 19px;
  background: var(--gold-line);
}

.footer-links {
  display: grid;
  gap: 7px;
}

.footer-links a {
  position: relative;
  display: inline-block;
  padding-left: 13px;
  font-size: .875rem;
  line-height: 1.45;
}

.footer-links a::before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--gold-line);
}

.footer-links a:hover,
.footer-contact a:not(.button):hover {
  color: var(--gold-300);
}

.footer-contact-row {
  position: relative;
  padding-left: 26px;
  margin-bottom: 15px;
}

.footer-contact-row dt {
  color: #C0C0C0;
  font-size: .75rem;
  font-weight: 500;
}

.footer-contact-row dd {
  font-size: .875rem;
}

.footer-contact-row .icon {
  position: absolute;
  top: 5px;
  left: 0;
  width: 17px;
  height: 17px;
  color: var(--gold-line);
}

.footer-contact .button {
  width: 100%;
  padding-inline: 12px;
  margin-top: 3px;
}

.copyright {
  padding: 18px 0 23px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  font-size: .75rem;
  color: #C0C0C0;
}

/* Telas médias: manter o retrato e abrir espaço para a leitura */
@media (min-width: 768px) and (max-width: 1199px) {
  .brand img {
    width: clamp(150px, 16vw, 184px);
  }

  .nav-links {
    gap: clamp(13px, 1.65vw, 22px);
  }

  .site-nav {
    gap: 18px;
  }

  .social-list {
    gap: 6px;
  }

  .social {
    width: 30px;
    height: 30px;
  }

  .hero-copy {
    width: 53%;
  }

  .hero-description {
    max-width: 390px;
  }

  .process-grid {
    width: 55%;
    gap: 15px;
  }

  .process-card {
    padding: 20px;
    min-height: 195px;
  }

  .help-grid,
  .reason-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .help-card {
    min-height: 235px;
  }

  .about {
    display: block;
  }

  .about-media {
    height: 60vh;
    mask-image: linear-gradient(#000 84%, transparent);
  }

  .about-photo {
    object-position: 50% 22%;
  }

  .about-main {
    padding: 55px var(--gutter) 80px;
  }

  .about-copy {
    max-width: 700px;
    margin: auto;
  }

  .footer-grid {
    grid-template-columns: 1.1fr 1fr;
    gap: 42px;
  }

  .footer-contact .button {
    width: auto;
    padding-inline: 26px;
  }
}

@media (min-width: 768px) and (max-width: 930px) {
  .hero {
    min-height: max(580px, 100svh);
  }

  .hero-photo {
    object-position: 67% 20%;
  }

  .attention-grid {
    gap: 25px;
    grid-template-columns: 39fr 61fr;
  }

  .attention-copy h2 {
    font-size: 2rem;
  }

  .chips {
    gap: 6px;
  }

  .chips li {
    padding: 7px 10px;
  }

  .process-grid {
    width: 58%;
  }

  .process-card {
    min-height: 210px;
    padding: 16px;
  }

  .process-card h3 {
    font-size: 1.2rem;
  }

  .process-card .icon {
    margin-bottom: 12px;
  }

  .care-grid {
    grid-template-columns: 43fr 57fr;
  }

  .office-card {
    padding: 26px;
  }

  .blog-grid {
    gap: 14px;
  }

  .blog-body {
    padding: 20px 16px;
  }
}

/* Telas pequenas: a fotografia ganha a metade superior; leitura e CTA ficam abaixo. */
@media (max-width: 767px) {
  :root {
    --header-height: 74px;
    --gutter: clamp(20px, 6vw, 32px);
  }

  body {
    font-size: 1rem;
  }

  .brand img {
    width: 166px;
  }

  .header-inner {
    position: relative;
  }

  .menu-toggle {
    position: relative;
    z-index: 2;
    display: grid;
    align-content: center;
    justify-content: center;
    gap: 5px;
    border: 1px solid rgba(192, 192, 192, .27);
    border-radius: 50%;
    width: 42px;
    height: 42px;
    padding: 0;
    background: transparent;
  }

  .menu-toggle span {
    display: block;
    width: 17px;
    height: 1.5px;
    background: #C0C0C0;
    transition: transform .2s, opacity .2s;
  }

  .site-header.menu-open .menu-toggle span:first-child {
    transform: translateY(6.5px) rotate(45deg);
  }

  .site-header.menu-open .menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .site-header.menu-open .menu-toggle span:last-child {
    transform: translateY(-6.5px) rotate(-45deg);
  }

  .site-header.menu-open {
    background: var(--blue-900);
    backdrop-filter: none;
  }

  .site-nav {
    display: none;
  }

  .site-header.menu-open .site-nav {
    position: fixed;
    inset: var(--header-height) 0 auto;
    height: calc(100vh - var(--header-height));
    height: calc(100dvh - var(--header-height));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: start;
    gap: 36px;
    padding: 28px var(--gutter) 48px;
    overflow-y: auto;
    background: var(--blue-900);
  }

  .nav-links {
    flex-direction: column;
    align-items: start;
    gap: 4px;
  }

  .nav-links a {
    font: 400 2.25rem/1.2 var(--serif);
  }

  .social-list {
    gap: 12px;
  }

  .social-list .social {
    width: 39px;
    height: 39px;
  }

  .section-heading {
    margin-bottom: 32px;
  }

  .eyebrow {
    margin-bottom: 12px;
  }

  .hero {
    min-height: max(720px, 100vh);
    min-height: max(720px, 100svh);
  }

  .hero-media {
    inset: var(--header-height) 0 0;
  }

  .hero-media picture {
    height: 77%;
  }

  .hero-photo {
    object-position: 78% top;
  }

  .hero-media::after {
    background: linear-gradient(0deg, var(--ink) 2%, rgba(4, 24, 33, .96) 24%, rgba(4, 24, 33, .72) 44%, rgba(4, 24, 33, .12) 68%, transparent 83%);
  }

  .hero-inner {
    align-items: flex-end;
    padding: 32px 0 30px;
  }

  .hero-copy {
    width: 100%;
    max-width: 490px;
  }

  .hero h1 {
    font-size: clamp(2.75rem, 1.85rem + 3.8vw, 3.5rem);
  }

  .hero-eyebrow {
    margin-bottom: 14px;
    font-size: .6875rem;
  }

  .hero-description {
    margin-top: 14px;
    max-width: 450px;
    color: #F5F3EF;
    font-size: 1rem;
    line-height: 1.48;
  }

  .hero-action {
    margin-top: 18px;
  }

  .hero-action .button {
    width: 100%;
  }

  .hero-location {
    margin-top: 12px;
    font-size: .755rem;
  }

  .marquee-item {
    padding-left: 17px;
  }

  .marquee-item b {
    margin-left: 14px;
  }

  .attention-grid,
  .care-grid,
  .help-grid,
  .reason-grid {
    grid-template-columns: 1fr;
  }

  .attention-grid {
    gap: 28px;
  }

  .attention-art {
    max-width: 430px;
    margin: 0 auto;
  }

  .attention-copy>p:not(.eyebrow) {
    margin-block: 18px;
  }

  .chips {
    gap: 7px;
    margin-block: 18px;
  }

  .chips li {
    padding: 8px 11px;
    font-size: .8125rem;
  }

  .process>.container {
    padding: 5px 0 30px;
  }

  .process-scene {
    aspect-ratio: auto;
    min-height: 0;
  }

  .process-media {
    background: #D6C8B5;
  }

  .process-photo {
    object-fit: cover;
    width: 100%;
    height: auto;
    min-height: 260px;
    object-position: 78% top;
  }

  .process-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 10%, rgba(214, 200, 181, .2) 17%, #D6C8B5 34%);
  }

  .process-inner {
    padding-block: clamp(180px, 50vw, 310px) 34px;
  }

  .process-grid {
    width: 100%;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .process-card,
  .reason-card,
  .help-card {
    min-height: 0;
    padding: 24px;
  }

  .process-card .icon,
  .help-card .icon {
    margin-bottom: 15px;
  }

  .help-card p {
    margin-top: 9px;
  }

  .help-grid,
  .reason-grid {
    gap: 14px;
  }

  .center-action {
    margin-top: 30px;
  }

  .about {
    display: block;
    min-height: auto;
  }

  .about-media {
    height: clamp(370px, 62vh, 540px);
    mask-image: linear-gradient(#000 82%, transparent);
  }

  .about-photo {
    object-position: 50% 21%;
  }

  .about-main {
    padding: 34px var(--gutter) 80px;
  }

  .about-details {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .detail-box {
    padding: 17px 20px;
  }

  .about-prose {
    font-size: 1rem;
  }

  .care-grid {
    gap: 36px;
  }

  .office-card {
    justify-self: start;
    padding: 28px 23px;
  }

  .office-card .button {
    width: 100%;
    padding-inline: 15px;
  }

  .reasons {
    padding-top: 0;
  }

  .blog-meta {
    gap: 14px;
    flex-wrap: wrap;
  }

  .blog-heading {
    margin-bottom: 24px;
  }

  .blog-grid {
    display: grid;
    grid-auto-flow: column;
    grid-template-columns: none;
    grid-auto-columns: min(84%, 395px);
    gap: 14px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    margin: -4px calc(-1 * var(--gutter)) -22px;
    padding: 4px var(--gutter) 22px;
    scrollbar-width: thin;
  }

  .blog-card {
    scroll-snap-align: start;
    box-shadow: 0 7px 18px rgba(4, 24, 33, .08);
  }

  .faq-trigger {
    padding-block: 17px;
    gap: 16px;
  }

  .faq-answer p {
    padding-right: 12px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-block: 48px 30px;
  }

  .footer-intro p {
    max-width: 38ch;
  }

  .footer-column h2::after {
    margin-block: 9px 13px;
  }

  .footer-contact .button {
    width: auto;
    min-width: 200px;
    padding-inline: 24px;
  }
}

@media (max-width: 767px) and (max-height: 540px) {
  .site-header.menu-open .site-nav {
    justify-content: flex-start;
    padding-block: 12px 24px;
    gap: 16px;
    overscroll-behavior: contain;
  }
}

@media (max-width: 355px) {
  .hero h1 {
    font-size: 2.55rem;
  }

  .hero-location {
    font-size: .6875rem;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* Identidade Alexandre Terto: adaptações de enquadramento sem alterar as animações. */
.site-header .brand img {
  max-height: calc(var(--header-height) - 12px);
  object-fit: contain;
  object-position: left center;
}

.footer-intro .brand img {
  width: 156px;
  max-height: 156px;
  object-fit: contain;
  object-position: left center;
}

.footer-contact-row dd {
  overflow-wrap: anywhere;
}

.process-grid {
  width: 50%;
}

@media (min-width: 768px) and (max-width: 1199px) {
  .process-grid {
    width: 53%;
  }
}

@media (max-width: 767px) {
  .process-grid {
    width: 100%;
  }

  .process-media::after {
    background: linear-gradient(180deg, transparent 13%, rgba(214, 200, 181, .2) 20%, #D6C8B5 38%);
  }

  .process-photo {
    height: 300px;
    object-position: 85% top;
  }

  .process-inner {
    padding-top: 285px;
  }
}


/* V3 — ajustes de navegação, contato e localização. */
:root {
  --button-radius: 10px;
}

.button,
.article-close,
.social,
.menu-toggle {
  border-radius: var(--button-radius);
}

.site-header {
  transition: transform .32s cubic-bezier(.22, 1, .36, 1);
}

.site-header.nav-hidden:not(.menu-open):not(:has(:focus-visible)) {
  transform: translateY(-105%);
}

html[data-replay-active] .site-header {
  transform: none !important;
}

.site-header .brand img {
  width: 230px;
}

@media (min-width: 768px) and (max-width: 1199px) {
  .site-header .brand img {
    width: clamp(158px, 18vw, 210px);
  }
}

@media (max-width: 767px) {
  .site-header .brand img {
    width: 191px;
  }
}

/* Localização: texto, endereço e mapa; empilhamento adaptativo. */
.care-grid {
  grid-template-columns: minmax(0, .95fr) minmax(0, 1fr) minmax(0, 1.08fr);
  gap: clamp(20px, 2.2vw, 34px);
}

.care-copy {
  max-width: 100%;
}

.office-card {
  justify-self: center;
  width: 100%;
  max-width: none;
  padding: clamp(22px, 2.2vw, 32px);
}

.office-card dd {
  overflow-wrap: anywhere;
}

.office-map {
  align-self: stretch;
  position: relative;
  min-height: 350px;
  overflow: hidden;
  border-radius: 24px;
  background: var(--cream-200);
  box-shadow: var(--shadow-light);
}

.office-map iframe {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 1050px) and (min-width: 768px) {
  .care-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .care-copy {
    grid-column: 1 / -1;
    max-width: 590px;
  }
}

@media (max-width: 767px) {
  .care-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

  .office-card {
    width: 100%;
    max-width: none;
    padding: 28px 23px;
  }

  .office-map {
    min-height: 310px;
  }
}

/* Crédito do desenvolvedor. Pixely Sans será usada quando instalada ou fornecida. */
@font-face {
  font-family: "Pixely Sans";
  src: local("Pixely Sans"), local("PixelySans");
  font-display: swap;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding: 18px 0 23px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 24px;
}

.footer-bottom .copyright {
  border: 0;
  padding: 0;
}

.developer-credit {
  font-size: .75rem;
  color: #C0C0C0;
}

.developer-credit a {
  font-family: "Pixely Sans", "Courier New", Courier, monospace;
  font-weight: 600;
  font-size: .92rem;
  color: var(--text-on-dark);
  transition: color .2s;
}

.developer-credit a:hover {
  color: var(--gold-300);
}

@media (max-width: 767px) {
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
}

/* WhatsApp fixo: oculto na abertura, rodapé, menu aberto e replay. */
.floating-whatsapp {
  position: fixed;
  z-index: 45;
  bottom: max(24px, env(safe-area-inset-bottom));
  right: max(24px, env(safe-area-inset-right));
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #F5F3EF;
  background: var(--blue-800);
  border: 1px solid var(--gold-line);
  box-shadow: 0 8px 25px rgba(4, 24, 33, .25);
  transition: transform .25s, opacity .25s, visibility .25s;
}

.floating-whatsapp svg {
  width: 31px;
  height: 31px;
  display: block;
}

.floating-whatsapp:not(.is-visible) {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
}

.floating-whatsapp.is-visible:hover {
  transform: translateY(-3px);
}

.site-header.menu-open~.floating-whatsapp,
html[data-replay-active] .floating-whatsapp {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@media (max-width: 767px) {
  .floating-whatsapp {
    width: 52px;
    height: 52px;
    bottom: max(16px, env(safe-area-inset-bottom));
    right: max(16px, env(safe-area-inset-right));
    border-radius: 12px;
  }

  .floating-whatsapp svg {
    width: 28px;
    height: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {

  .site-header,
  .floating-whatsapp {
    transition: none;
  }
}


/* V4 — avaliações, composição editorial em bento grid. */
.reviews {
  background: #F5F3EF;
}

.reviews-heading {
  max-width: 680px;
}

.reviews-heading .section-intro {
  max-width: 55ch;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  position: relative;
  padding-bottom: 28px;
}

.reviews-grid::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: rgba(4, 24, 33, .16);
}

.reviews-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.review-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
  gap: 24px;
  min-width: 0;
  padding: clamp(23px, 2.7vw, 36px);
  border: 1px solid rgba(4, 24, 33, .10);
  border-radius: 18px;
}

.review-overview {
  background: #E4E2DD;
  min-height: 320px;
  color: var(--ink);
}

.review-overview::before,
.review-light::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(to right, rgba(4, 24, 33, .07) 1px, transparent 1px), linear-gradient(to bottom, rgba(4, 24, 33, .07) 1px, transparent 1px);
  background-size: 50px 56px;
  mask-image: radial-gradient(ellipse 90% 65% at 50% 0%, #000 10%, transparent 100%);
}

.review-source {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 500;
  font-size: 1rem;
}

.review-score {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.review-score strong {
  font: 400 clamp(4.5rem, 7vw, 6rem)/.95 var(--serif);
  letter-spacing: -.06em;
}

.review-score p {
  font-size: .875rem;
  color: var(--text-body);
}

.review-stars {
  display: block;
  color: #C5A46D;
  font-size: 1.125rem;
  letter-spacing: .12em;
  line-height: 1;
}

.review-overview .review-stars,
.review-light .review-stars {
  color: #87632D;
}

.review-link {
  align-self: flex-start;
  gap: 10px;
  padding-inline: 18px;
  font-size: .85rem;
}

.review-dark {
  background: #041821;
  color: #F5F3EF;
}

.review-blue {
  background: #102F3C;
  color: #F5F3EF;
}

.review-light {
  background: #FFFDF9;
  color: #041821;
}

.review-quote {
  min-height: 190px;
}

.review-quote blockquote {
  margin: auto 0;
  font-size: clamp(1rem, 1.1vw, 1.1rem);
  line-height: 1.55;
}

.review-light blockquote {
  font: 400 clamp(1.45rem, 2.1vw, 1.85rem)/1.35 var(--serif);
}

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

.review-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(197, 164, 109, .55);
  background: rgba(197, 164, 109, .12);
  color: inherit;
  font-size: .85rem;
  font-weight: 500;
}

.review-person h3 {
  font: 500 .98rem/1.35 var(--sans);
  color: inherit;
}

.review-person p {
  font-size: .75rem;
  opacity: .8;
  margin-top: 3px;
}

.reviews-note {
  font-size: .78rem;
  line-height: 1.5;
  text-align: center;
  margin: 18px auto 0;
  max-width: 75ch;
}

@media (max-width: 1023px) and (min-width: 768px) {
  .reviews-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reviews-column:last-child {
    grid-column: 1 / -1;
  }

  .review-light {
    min-height: 220px;
  }
}

@media (max-width: 767px) {
  .reviews-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .reviews-heading {
    margin-bottom: 30px;
  }

  .review-overview {
    min-height: 280px;
  }

  .review-light blockquote {
    font-size: 1.4rem;
  }
}

/* V5 — Instagram: composição editorial, faixa contínua e imagens sem recorte. */
.instagram-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 25%, #102F3C 0%, #041821 76%);
  color: var(--text-on-dark);
  padding: clamp(70px, 8vw, 110px) 0 26px;
}

.instagram-copy {
  text-align: center;
  position: relative;
  z-index: 1;
}

.instagram-copy .eyebrow {
  color: var(--gold-300);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  border: 1px solid rgba(197, 164, 109, .32);
  border-radius: 10px;
  letter-spacing: .08em;
  text-transform: none;
}

.instagram-copy .eyebrow .icon {
  width: 18px;
  height: 18px;
}

.instagram-copy h2 {
  color: var(--text-on-dark);
  font-size: clamp(2.4rem, 1.4rem + 3.1vw, 4.4rem);
  line-height: 1.08;
}

.instagram-copy h2 .line-mask+.line-mask {
  color: var(--gold-300);
}

.instagram-description {
  max-width: 52ch;
  margin: 20px auto 26px;
  color: #D5DBDE;
}

.instagram-cta {
  gap: 12px;
}

.instagram-gallery {
  --post-height: clamp(205px, 22vw, 310px);
  --post-gap: clamp(14px, 1.7vw, 24px);
  margin: clamp(35px, 4.8vw, 68px) auto 0;
  overflow-x: auto;
  overflow-y: hidden;
  width: 100%;
  padding-block: 22px;
  scrollbar-width: thin;
}

.instagram-track {
  display: flex;
  width: max-content;
}

.instagram-set {
  display: flex;
  align-items: center;
  gap: var(--post-gap);
  flex: 0 0 auto;
  padding-inline-end: var(--post-gap);
}

.instagram-set:first-child {
  padding-inline-start: var(--post-gap);
}

.instagram-post {
  flex: 0 0 auto;
  height: var(--post-height);
  aspect-ratio: var(--post-ratio);
  transform: rotate(var(--post-turn));
  border-radius: 14px;
  overflow: hidden;
  background: var(--blue-800);
  border: 1px solid rgba(197, 164, 109, .35);
  box-shadow: 0 12px 24px rgba(0, 0, 0, .26);
}

.instagram-post img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.instagram-set[aria-hidden="true"] {
  display: none;
}

.instagram-section.is-marquee .instagram-gallery {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.instagram-section.is-marquee .instagram-set {
  padding-inline-start: 0;
}

.instagram-section.is-marquee .instagram-set[aria-hidden="true"] {
  display: flex;
}

.instagram-section.is-marquee .instagram-track {
  animation: instagram-loop 40s linear infinite;
}

.instagram-section.is-marquee:not(.is-in-view) .instagram-track,
.instagram-section.is-marquee.is-paused .instagram-track,
.instagram-section.is-marquee .instagram-gallery:focus-visible .instagram-track {
  animation-play-state: paused;
}

@media (hover: hover) {
  .instagram-section.is-marquee .instagram-gallery:hover .instagram-track {
    animation-play-state: paused;
  }
}

@keyframes instagram-loop {
  from {
    transform: translateX(-33.333333%);
  }

  to {
    transform: translateX(0);
  }
}

.instagram-controls {
  display: flex;
  justify-content: center;
  min-height: 30px;
}

.instagram-toggle {
  color: #D5DBDE;
  background: transparent;
  border: 0;
  font-size: .78rem;
  padding: 6px 12px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.instagram-section :focus-visible {
  outline-color: var(--gold-300);
}

@media (max-width: 767px) {
  .instagram-section {
    padding-top: 65px;
  }

  .instagram-copy h2 {
    font-size: clamp(2rem, 7.5vw, 3rem);
  }

  .instagram-description {
    font-size: .97rem;
    margin-top: 16px;
  }

  .instagram-gallery {
    --post-height: 230px;
    margin-top: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .instagram-section.is-marquee .instagram-gallery {
    overflow-x: auto;
    mask-image: none;
  }

  .instagram-section.is-marquee .instagram-track {
    animation: none;
  }

  .instagram-section.is-marquee .instagram-set[aria-hidden="true"] {
    display: none;
  }

  .instagram-toggle {
    display: none;
  }
}

html[data-replay-active] .instagram-section .instagram-track {
  animation: none !important;
}

/* V6 — Equipe: cenário, retrato e conteúdo em camadas independentes. */
.team-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #041821;
  color: var(--text-on-dark);
  padding-top: clamp(26px, 2.8vw, 40px);
}

.team-background {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: url('../assets/img/equipe/fundo.webp') center center / cover no-repeat;
  pointer-events: none;
}

.team-inner {
  position: relative;
  max-width: 1200px;
}

.team-heading {
  text-align: center;
  position: relative;
  z-index: 2;
}

.team-logo {
  width: clamp(220px, 26vw, 340px);
  height: auto;
  margin-inline: auto;
}

.team-logo-wrap {
  margin-bottom: clamp(6px, .8vw, 12px);
}

.team-eyebrow {
  color: var(--gold-300);
  margin-bottom: 8px;
}

.team-heading h2 {
  color: var(--text-on-dark);
  font-size: clamp(2.1rem, 1.45rem + 1.9vw, 3.25rem);
  line-height: 1.04;
  text-wrap: balance;
}

.team-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.65fr) minmax(0, 1fr);
  align-items: center;
  margin-top: clamp(8px, 1.4vw, 20px);
}

.team-portrait {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  width: 100%;
  max-width: 480px;
  justify-self: center;
  position: relative;
}

.team-portrait img {
  width: 100%;
  height: auto;
}

.team-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  align-self: center;
  gap: 12px;
  padding-bottom: 46px;
  position: relative;
  z-index: 1;
}

.team-feature-left {
  grid-column: 1;
  grid-row: 1;
}

.team-feature-right {
  grid-column: 3;
  grid-row: 1;
}

.team-feature-icon {
  width: clamp(48px, 5vw, 70px);
  height: auto;
  color: var(--gold-300);
}

.team-feature p {
  font: 400 clamp(1.05rem, 1.7vw, 1.55rem)/1.24 var(--sans);
  color: var(--text-on-dark);
}

.team-feature-rule {
  height: 3px;
  width: 48px;
  border-radius: 2px;
  background: var(--gold-400);
}

.team-action {
  position: absolute;
  bottom: clamp(8px, 1.2vw, 18px);
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  z-index: 3;
  pointer-events: none;
}

.team-cta {
  pointer-events: auto;
  gap: 20px;
  min-height: 58px;
  padding-inline: clamp(25px, 3.5vw, 48px);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
}

.team-section :focus-visible {
  outline-color: var(--gold-300);
}

@media (max-width: 767px) {
  .team-section {
    padding-top: 28px;
  }

  .team-background {
    background-position: center;
  }

  .team-logo {
    width: min(65vw, 280px);
  }

  .team-heading h2 {
    font-size: clamp(1.85rem, 6.5vw, 2.8rem);
  }

  .team-stage {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 43px 12px;
    margin-top: 18px;
    padding-bottom: 28px;
  }

  .team-portrait {
    grid-column: 1/-1;
    grid-row: 1;
    width: min(96%, 390px);
  }

  .team-feature {
    grid-row: 2;
    padding: 0;
    gap: 8px;
    align-self: start;
  }

  .team-feature-left {
    grid-column: 1;
  }

  .team-feature-right {
    grid-column: 2;
  }

  .team-feature-icon {
    width: 46px;
  }

  .team-feature p {
    font-size: 1.05rem;
  }

  .team-feature-rule {
    width: 36px;
    height: 2px;
  }

  /* Sobrepõe o CTA à borda inferior do retrato, sem disputar o transform do GSAP. */
  .team-action {
    position: relative;
    grid-column: 1/-1;
    grid-row: 1;
    align-self: end;
    bottom: auto;
    margin-bottom: -27px;
  }

  .team-cta {
    width: min(100%, 340px);
    min-height: 54px;
  }
}

/* V8 — Diferenciais agora independentes da seção de localização. */
.reasons.reasons-standalone {
  padding-top: var(--section-space);
}

@media (max-width: 480px) and (max-height: 740px) and (orientation: portrait) {
  .hero {
    min-height: 100vh;
    min-height: 100svh;
  }

  .hero-inner {
    padding-block: 24px 14px;
  }

  .hero h1 {
    font-size: clamp(2rem, 9vw, 2.7rem);
  }

  .hero-media picture {
    height: 66%;
  }

  .hero-media::after {
    background: linear-gradient(to top, var(--ink) 10%, rgba(4, 24, 33, .92) 44%, transparent 79%);
  }

  .hero-eyebrow {
    margin-bottom: 8px;
  }

  .hero-action,
  .hero-description {
    margin-top: 12px;
  }
}