/* Confiança + rodapé — fechamento editorial da página */

.trust-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: clamp(8rem, 13vw, 12rem);
  padding-bottom: clamp(8rem, 13vw, 12rem);
  border-top: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(180, 135, 99, 0.05), transparent 18rem),
    var(--paper);
}

.trust-section::before {
  position: absolute;
  z-index: -1;
  top: 0;
  right: var(--page-pad);
  left: var(--page-pad);
  height: 1px;
  content: "";
  background: var(--line);
}

.trust-section::after {
  position: absolute;
  z-index: -1;
  right: clamp(-10rem, -6vw, -5rem);
  bottom: clamp(-10rem, -6vw, -5rem);
  width: clamp(22rem, 36vw, 36rem);
  aspect-ratio: 1;
  border: 1px solid rgba(143, 98, 70, 0.1);
  border-radius: 50%;
  content: "";
  box-shadow:
    0 0 0 clamp(3rem, 5vw, 5rem) rgba(180, 135, 99, 0.02),
    0 0 0 clamp(6rem, 10vw, 10rem) rgba(180, 135, 99, 0.012);
}

.trust-intro {
  width: min(100%, var(--content-max));
  margin: 0 auto;
  grid-template-columns: minmax(12rem, 0.5fr) minmax(0, 1.5fr);
  gap: clamp(3rem, 8vw, 9rem);
  align-items: start;
}

.trust-intro .eyebrow {
  margin: 0;
  padding-top: 0.65rem;
  color: var(--accent-strong);
  font-size: 0.59rem;
  letter-spacing: 0.21em;
}

.trust-intro h2 {
  max-width: 12ch;
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(3.4rem, 6.2vw, 6.7rem);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.05em;
}

.trust-list {
  width: min(100%, var(--content-max));
  margin: clamp(5.5rem, 9vw, 8.5rem) auto 0;
  padding: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.trust-list li {
  min-height: 20rem;
  padding: clamp(2rem, 3vw, 3rem);
}

.trust-list li + li {
  border-left: 1px solid var(--line);
}

.trust-index {
  color: rgba(143, 98, 70, 0.66);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
}

.trust-list strong {
  margin-top: auto;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(2rem, 3vw, 3.25rem);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.trust-list p {
  max-width: 17rem;
  margin-top: 1.2rem;
  color: rgba(36, 25, 20, 0.6);
  font-size: 0.9rem;
  line-height: 1.65;
}

/* Instagram — prova social após a seção de confiança */
.instagram-card-wrap {
  width: min(100%, 900px);
  margin: clamp(4rem, 7vw, 6rem) auto 0;
}

.instagram-card-link {
  display: block;
  padding: 3px;
  border-radius: 30px;
  color: inherit;
  background: linear-gradient(
    135deg,
    #feda75 0%,
    #fa7e1e 22%,
    #d62976 48%,
    #962fbf 73%,
    #4f5bd5 100%
  );
  text-decoration: none;
  box-shadow: 0 24px 60px rgba(150, 47, 191, 0.18);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.instagram-card-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 30px 70px rgba(150, 47, 191, 0.25);
}

.instagram-card-link:focus-visible {
  outline: 4px solid #d62976;
  outline-offset: 5px;
}

.instagram-card {
  padding: 2rem 2.35rem;
  border-radius: 27px;
  background: var(--paper-light);
}

.instagram-profile {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.15rem;
  align-items: center;
}

.instagram-avatar {
  width: 4.75rem;
  height: 4.75rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, #feda75, #fa7e1e 28%, #d62976 54%, #962fbf 76%, #4f5bd5);
  box-shadow: 0 8px 24px rgba(214, 41, 118, 0.22);
}

.instagram-avatar svg {
  width: 2.4rem;
  height: 2.4rem;
}

.instagram-copy {
  min-width: 0;
}

.instagram-kicker {
  margin: 0 0 0.15rem;
  color: #d62976;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.instagram-copy h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3.4vw, 2.65rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
}

.instagram-copy p:last-child {
  margin: 0.55rem 0 0;
  color: rgba(36, 25, 20, 0.6);
  font-size: 0.9rem;
  line-height: 1.6;
}

@media (max-width: 560px) {
  .instagram-card-wrap {
    margin-top: 3.5rem;
  }

  .instagram-card {
    padding: 1.4rem 1.15rem;
  }

  .instagram-avatar {
    width: 4rem;
    height: 4rem;
  }

  .instagram-avatar svg {
    width: 2rem;
    height: 2rem;
  }

  .instagram-profile {
    gap: 0.9rem;
  }
}

@media (max-width: 380px) {
  .instagram-profile {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .instagram-avatar {
    margin: 0 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .instagram-card-link {
    transition: none;
  }
}

/* Rodapé */
.site-footer {
  position: relative;
  overflow: hidden;
  padding: clamp(6rem, 9vw, 8rem) var(--page-pad) 2rem;
  border-top: 0;
  color: var(--paper-light);
  background:
    radial-gradient(circle at 88% 18%, rgba(180, 135, 99, 0.11), transparent 23rem),
    var(--ink);
}

.site-footer::before {
  position: absolute;
  top: 0;
  right: var(--page-pad);
  left: var(--page-pad);
  height: 1px;
  content: "";
  background: rgba(252, 250, 247, 0.14);
}

.footer-main {
  width: min(100%, var(--content-max));
  margin: 0 auto;
  padding-bottom: clamp(4rem, 7vw, 6rem);
  grid-template-columns: minmax(16rem, 1.35fr) minmax(10rem, 0.65fr) minmax(15rem, 0.9fr);
  gap: clamp(3rem, 8vw, 8rem);
}

.footer-lead > p {
  max-width: 26rem;
  margin-top: 2.2rem;
  color: rgba(252, 250, 247, 0.58);
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  line-height: 1.42;
}

.footer-heading {
  margin-bottom: 1.5rem;
  color: rgba(252, 250, 247, 0.42);
  font-size: 0.57rem;
  letter-spacing: 0.2em;
}

.footer-nav ul {
  gap: 0.95rem;
}

.footer-nav a,
.footer-contact a,
.footer-top {
  color: rgba(252, 250, 247, 0.78);
  font-size: 0.84rem;
  text-underline-offset: 0.32rem;
}

.footer-contact {
  gap: 0.9rem;
}

.footer-cnpj {
  margin-top: 0.85rem;
  color: rgba(252, 250, 247, 0.42);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
}

.footer-bottom {
  width: min(100%, var(--content-max));
  margin: 0 auto;
  padding-top: 1.75rem;
  border-top-color: rgba(252, 250, 247, 0.13);
}

.footer-bottom > p,
.privacy-settings {
  color: rgba(252, 250, 247, 0.42);
  font-size: 0.57rem;
}

.footer-top {
  position: relative;
  padding-right: 2.1rem;
}

.footer-top::after {
  position: absolute;
  top: 50%;
  right: 0;
  width: 1.45rem;
  height: 1.45rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(252, 250, 247, 0.26);
  border-radius: 50%;
  content: "↑";
  font-size: 0.68rem;
  transform: translateY(-50%);
}

@media (max-width: 900px) {
  .trust-intro {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }

  .trust-intro .eyebrow {
    padding-top: 0;
  }

  .trust-intro h2 {
    max-width: 12ch;
    font-size: clamp(3.4rem, 10vw, 5.8rem);
  }

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

  .trust-list li {
    min-height: 16rem;
  }

  .trust-list li:nth-child(3) {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .trust-list li:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .footer-main {
    grid-template-columns: minmax(0, 1.2fr) minmax(10rem, 0.8fr);
  }

  .footer-contact {
    grid-column: 1 / -1;
    padding-top: 2.25rem;
    border-top: 1px solid rgba(252, 250, 247, 0.12);
  }
}

@media (max-width: 560px) {
  .trust-section {
    padding-top: 6rem;
    padding-bottom: 6.5rem;
  }

  .trust-intro h2 {
    font-size: clamp(3rem, 14vw, 4.4rem);
    line-height: 0.94;
  }

  .trust-list {
    margin-top: 4.25rem;
    grid-template-columns: 1fr;
  }

  .trust-list li {
    min-height: 13rem;
    padding: 1.9rem 0;
  }

  .trust-list li + li,
  .trust-list li:nth-child(3) {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .trust-list strong {
    font-size: clamp(2rem, 10vw, 2.8rem);
  }

  .site-footer {
    padding-top: 5.5rem;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding-bottom: 4rem;
  }

  .footer-contact {
    grid-column: auto;
  }

  .footer-bottom {
    grid-template-columns: 1fr;
    gap: 1.15rem;
  }

  .footer-top {
    grid-column: auto;
    grid-row: auto;
    width: fit-content;
  }
}

/* Responsividade — hardening final do site */
@media (min-width: 901px) and (max-width: 1200px) {
  :root {
    --page-pad: clamp(1.5rem, 3.2vw, 2.75rem);
  }

  .hero-copy {
    left: calc(var(--page-pad) + 1.75rem);
    width: min(45vw, 34rem);
  }

  .hero h1 {
    font-size: clamp(4rem, 7.2vw, 5.8rem);
  }

  .hero-media {
    top: 1rem;
    right: 1rem;
    bottom: 1rem;
    width: 48%;
  }

  .identity-story .manifesto-copy {
    grid-template-columns: minmax(12rem, 0.52fr) minmax(0, 1.48fr);
    gap: clamp(3rem, 5vw, 4.5rem);
  }

  .whatsapp-cta {
    grid-template-columns: minmax(0, 1.1fr) minmax(18rem, 0.9fr);
    gap: clamp(3rem, 5vw, 5rem);
  }

  .whatsapp-cta h2 {
    font-size: clamp(3.6rem, 6vw, 5.4rem);
  }

  .whatsapp-cta-action {
    padding: clamp(2.2rem, 3.5vw, 3.25rem);
  }

  .course-intro {
    grid-template-columns: minmax(16rem, 0.78fr) minmax(0, 1.22fr);
    gap: clamp(3rem, 5vw, 5rem);
  }

  .course-title-main {
    font-size: clamp(3.6rem, 6vw, 5.4rem);
  }

  .course-facts,
  .trust-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .course-facts li:nth-child(3),
  .trust-list li:nth-child(3) {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .course-facts li:nth-child(4),
  .trust-list li:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .course-learning-heading {
    grid-template-columns: minmax(0, 1.2fr) minmax(15rem, 0.8fr);
    gap: 3rem;
  }

  .footer-main {
    grid-template-columns: minmax(0, 1.2fr) minmax(10rem, 0.8fr);
    gap: clamp(2.5rem, 5vw, 4rem);
  }

  .footer-contact {
    grid-column: 1 / -1;
    padding-top: 2rem;
    border-top: 1px solid rgba(252, 250, 247, 0.12);
  }
}

@media (min-width: 561px) and (max-width: 900px) {
  :root {
    --page-pad: clamp(1.5rem, 4.5vw, 2.5rem);
  }

  .hero-media {
    height: min(66svh, 660px);
    min-height: 460px;
  }

  .hero-copy {
    max-width: 42rem;
  }

  .course-portrait {
    width: min(78vw, 32rem);
  }

  .whatsapp-cta-action {
    width: min(100%, 44rem);
  }
}

@media (max-width: 560px) {
  :root {
    --page-pad: clamp(1rem, 5vw, 1.25rem);
  }

  body,
  main,
  section,
  footer {
    min-width: 0;
  }

  .hero-copy,
  .manifesto-copy,
  .manifesto-text,
  .essence-story,
  .essence-story figcaption,
  .whatsapp-cta-heading,
  .whatsapp-cta-action,
  .course-presentation,
  .course-copy,
  .course-module > div,
  .course-closing,
  .trust-intro,
  .trust-list li,
  .footer-main > * {
    min-width: 0;
  }

  .hero h1,
  .identity-story .manifesto-copy h2.concept-heading,
  .manifesto#projetos .gallery-note,
  .whatsapp-cta h2,
  .course-title-main,
  .course-heading h2 em,
  .course-learning-heading h3,
  .course-module h4,
  .course-closing p:last-child,
  .trust-intro h2,
  .trust-list strong {
    overflow-wrap: break-word;
  }

  .consent-banner {
    max-height: calc(100dvh - 2rem);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}

@media (max-width: 380px) {
  .site-header {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .brand {
    gap: 0.65rem;
  }

  .brand-mark {
    width: 2.5rem;
    height: 2.5rem;
  }

  .brand-name strong {
    font-size: 0.92rem;
  }

  .brand-name small {
    font-size: 0.48rem;
    letter-spacing: 0.22em;
  }

  .hero-copy {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .hero h1 {
    font-size: clamp(3.1rem, 15vw, 3.5rem);
  }

  .identity-story .manifesto-copy h2.concept-heading {
    font-size: clamp(2.6rem, 12.5vw, 3.2rem);
  }

  .manifesto#projetos .gallery-note {
    font-size: clamp(2.75rem, 13.5vw, 3.4rem);
  }

  .whatsapp-cta h2 {
    font-size: clamp(2.9rem, 14vw, 3.6rem);
  }

  .course-title-main {
    font-size: clamp(2.9rem, 14vw, 3.6rem);
  }

  .course-heading h2 em {
    font-size: clamp(1.85rem, 9.5vw, 2.45rem);
  }

  .course-learning-heading h3 {
    font-size: clamp(2.75rem, 13.5vw, 3.5rem);
  }

  .course-module,
  .course-module:nth-child(odd),
  .course-module:nth-child(even) {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .course-module-number {
    margin-bottom: 0.15rem;
  }

  .trust-intro h2 {
    font-size: clamp(2.75rem, 13.5vw, 3.5rem);
  }

  .whatsapp-cta .whatsapp-button,
  .course-button {
    letter-spacing: 0.09em;
  }
}

@media (max-width: 900px) and (max-height: 600px) and (orientation: landscape) {
  .site-header {
    min-height: 4.5rem;
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
  }

  .brand-mark {
    width: 2.35rem;
    height: 2.35rem;
  }

  .hero {
    padding-bottom: 3.5rem;
  }

  .hero-media {
    height: 78svh;
    min-height: 0;
    max-height: none;
  }

  .hero-copy {
    margin-top: -3.25rem;
  }

  .hero h1 {
    max-width: 11ch;
    font-size: clamp(3rem, 8vw, 4.25rem);
  }

  .hero-intro {
    margin-top: 1rem;
    font-size: 0.9rem;
    line-height: 1.55;
  }
}

@media (hover: none) {
  .essence-story:hover .essence-image,
  .manifesto#projetos .essence-story:hover .essence-image {
    transform: none;
  }

  .essence-story:hover .essence-image img,
  .manifesto#projetos .essence-story:hover .essence-image img {
    transform: none;
  }

  .course-module:hover {
    background: transparent;
  }
}

@media (pointer: coarse) {
  .whatsapp-button {
    min-height: 3.6rem;
  }

  .course-button {
    min-height: 4.6rem;
  }

  .consent-button {
    min-height: 2.8rem;
  }
}

@supports (padding: max(0px)) {
  @media (max-width: 900px) {
    .site-header {
      padding-right: max(var(--page-pad), env(safe-area-inset-right));
      padding-left: max(var(--page-pad), env(safe-area-inset-left));
    }

    .consent-banner {
      right: max(1rem, env(safe-area-inset-right));
      bottom: max(1rem, env(safe-area-inset-bottom));
      left: max(1rem, env(safe-area-inset-left));
    }
  }
}
