/* =========================
  Tokens e variáveis base
========================= */
:root {
  --bg: #fbfaf7;
  --ink: #1e2430;
  --muted: #566073;
  --surface: #ffffff;
  --line: #e8e2d9;
  --accent: #c24d2c;
  --accent-2: #2b6f8f;
  --radius: 14px;
  --shadow: 0 14px 40px rgba(20, 30, 45, 0.08);
  --maxw: 1120px;
}

/* =========================
  Reset e base global
========================= */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 5% 0%, #fff3e8 0, transparent 35%), var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  font-family: "DM Serif Display", Georgia, serif;
  letter-spacing: 0.01em;
  line-height: 1.0;
  margin-top: 0;
}

.container {
  width: min(var(--maxw), calc(100% - 2rem));
  margin: 0 auto;
 /* background-color: #3498db; */
 
}

.container-projects {
  width: min(var(--maxw), calc(100% - 2rem));
  margin: 0 auto;
  
  /* 1. Cor alterada para a mesma tonalidade, mas bem clara e semi-transparente */
  background: rgba(238, 232, 219, 0.3); 
  
  /* 2. Adiciona as bordas arredondadas (ajuste o valor como preferir) */
  border-radius: 12px; 
}


.bg-shape {
  position: fixed;
  border-radius: 999px;
  filter: blur(40px);
  pointer-events: none;
  opacity: 0.35;
  z-index: -1;
}

.bg-shape--one {
  width: 320px;
  height: 320px;
  top: -120px;
  right: 8%;
  background: #ffd9bd;
}

.bg-shape--two {
  width: 280px;
  height: 280px;
  bottom: -80px;
  left: 4%;
  background: #cde6f2;
}

/* =========================
   Cabeçalho e navegação
========================= */


.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

.brand {
  text-decoration: none;
  color: var(--ink);
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 1.55rem;
}

.menu-links {
  display: flex;
  gap: 1.2rem;
}

.menu-links a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  padding: 0.2rem 0.35rem;
  border-radius: 8px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.menu-links a:hover {
  color: #fff;
  background: #2c7699;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: 0.8rem;
}

.lang-btn {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid #ccdfea;
  background: #f4fbff;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(29, 64, 83, 0.14);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.lang-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(29, 64, 83, 0.2);
}

.lang-btn.is-active {
  border-color: #2b6f8f;
  box-shadow: 0 0 0 2px rgba(43, 111, 143, 0.22), 0 8px 18px rgba(29, 64, 83, 0.22);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 0;
  width: 32px;
  height: 26px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--ink);
  margin: 5px 0;
  border-radius: 3px;
}

/* =========================
   Hero
========================= */
.hero {
  position: relative;
  overflow: hidden;
  padding: 0 0 3.5rem;
  scroll-margin-top: 120px;
  background: var(--bg);
}

.hero::before,
.hero::after {
  content: none;
}

.hero .header-content {
  width: min(var(--maxw), calc(100% - 2rem));
  margin: 1.25rem auto 0;
}

.hero .header-content picture {
  display: block;
}

.hero .header-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0 0 14px 14px;
  object-fit: contain;
  object-position: center top;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.95fr);
  gap: 2rem;
  align-items: start;
  margin-top: 2rem;
}

.hero-main {
  max-width: 620px;
  margin-left: clamp(0rem, 4vw, 3rem);
}

.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  padding: 0.52rem 1.25rem;
  border-radius: 999px;
  background: rgba(252, 233, 223, 0.95);
  color: #9d3f24;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: clamp(0.74rem, 1.3vw, 0.82rem);
  font-weight: 800;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  line-height: 1.1;
  margin: 0 0 0.65rem;
  box-shadow: 0 8px 18px rgba(157, 63, 36, 0.08);
}

.hero h1 {
  font-size: clamp(2rem, 3.8vw, 3rem);
  line-height: 1.03;
  margin: 0 0 0.9rem;
}

.hero .lead {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.15rem;
}

.hero-card {
  margin-top: 2.2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.1rem 1.2rem;
}

.hero-card ul {
  margin: 0;
  padding-left: 1.1rem;
}

.btn {
  display: inline-block;
  text-decoration: none;
  border-radius: 10px;
  padding: 0.8rem 1.15rem;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

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

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 22px rgba(194, 77, 44, 0.3);
}

.btn-primary:hover {
  background: #a94225;
  box-shadow: 0 12px 24px rgba(169, 66, 37, 0.35);
}

.btn-secondary {
  background: #ebf4f8;
  color: #244f64;
}

.btn-secondary:hover {
  background: #2b6f8f;
  color: #fff;
}

/* =========================
   Seções e cartões gerais
========================= */
.section {
  padding: 3.4rem 0;
  scroll-margin-top: 120px;
}

.section h2 {
  margin-bottom: 0.65rem;
}

.section p {
  color: var(--muted);
}

.section a {
  color: var(--accent-2);
  font-weight: 700;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.cards-grid > p {
  grid-column: 1 / -1;
  margin-top: 0.5rem;
}

.cards-grid > p .inline-specialty-image {
  width: min(100%, 85%);
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 38px rgba(20, 30, 45, 0.12);
}
.inline-specialty-image {
  display: block;
  width: min(100%, 720px);
  margin: 0.9rem 0 1rem;
  border-radius: 14px;
  border: 1px solid #d0dce4;
  box-shadow: 0 14px 28px rgba(20, 30, 45, 0.12);
}

.subsection-title {
  margin-top: 2rem;
  margin-bottom: 0.7rem;
}

/* =========================
   Carrossel (base)
========================= */
.carousel {
  position: relative;
  margin-top: 1rem;
  padding: 0 2.8rem;
}

.carousel-viewport {
  overflow: hidden;
  border-radius: 16px;
}

.carousel-track {
  display: flex;
  gap: 1rem;
  transition: transform 0.35s ease;
  will-change: transform;
}

.carousel-card {
  flex: 0 0 calc((100% - 2rem) / 3);
  min-width: 260px;
}

.carousel-arrow {
  position: absolute;
  top: 42%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: #ebf4f8;
  color: #244f64;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 10px 20px rgba(20, 30, 45, 0.14);
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.carousel-arrow:hover {
  background: #2b6f8f;
  color: #fff;
  box-shadow: 0 12px 24px rgba(43, 111, 143, 0.24);
  transform: translateY(-50%) scale(1.05);
}

.carousel-arrow.prev {
  left: 0;
}

.carousel-arrow.next {
  right: 0;
}

.carousel-arrow:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.carousel-arrow:disabled:hover {
  background: #ebf4f8;
  color: #244f64;
  box-shadow: 0 10px 20px rgba(20, 30, 45, 0.14);
  transform: translateY(-50%);
}

.carousel-dots {
  margin-top: 0.95rem;
  display: flex;
  justify-content: center;
  gap: 0.45rem;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid #6d95a9;
  background: #e9f1f5;
  cursor: pointer;
  padding: 0;
}

.carousel-dot.active {
  background: #2d7ea3;
  border-color: #2d7ea3;
}

/* =========================
   Cards de projetos
========================= */
.portfolio-item {
  display: block;
  text-decoration: none;
  color: var(--ink);
  background: linear-gradient(180deg, #ffffff 0%, #f8f5ef 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.portfolio-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 38px rgba(20, 30, 45, 0.12);
}

.portfolio-item h3 {
  margin: 0.9rem 1rem 0.45rem;
  min-height: 2.4em;
  color: var(--ink);
}

.portfolio-item p {
  margin: 0 1rem;
  min-height: 4.8em;
  color: #42576a;
  line-height: 1.6;
}

.project-shot {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: top left;
  border-radius: 0;
  border: 0;
  border-bottom: 1px solid #d4dde5;
  display: block;
  margin: 0;
  transition: transform 0.35s ease;
}

.portfolio-item:hover .project-shot {
  transform: scale(1.04);
  transform-origin: center top;
}

.project-link {
  display: inline-block;
  margin: 0.75rem 1rem 1rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: #ebf4f8;
  color: #244f64;
  border: 1px solid #c3d9e4;
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 10px 18px rgba(20, 30, 45, 0.08);
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.project-link:hover {
  background: #c24d2c; 
  color: #fff;
  box-shadow: 0 12px 24px rgba(43, 111, 143, 0.24);
  transform: translateY(-1px);
}

/* =========================
   Perfil e bio
========================= */
.profile-spotlight {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  align-items: start;
}

.profile-card,
.inspiration-card,
.video-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem;
}

.profile-card--compact {
  width: 100%;
  text-align: center;
  background: linear-gradient(180deg, #ffffff 0%, #f3f8fb 100%);
}

.profile-bio {
  padding: 0.5rem 0;
}

.profile-bio h3 {
  margin-bottom: 0.6rem;
  font-size: 1.4rem;
}

.profile-role {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: linear-gradient(120deg, #e4f0f7, #fce9df);
  color: #2b6f8f;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.profile-bio p {
  color: var(--muted);
  margin-bottom: 0.85rem;
  line-height: 1.7;
}

.profile-bio .profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.2rem;
}

.profile-bio .profile-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1px solid #c4dde8;
  font-size: 0.8rem;
  font-weight: 700;
  color: #2b6f8f;
  background: #eef6fa;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.profile-bio .profile-tag:hover {
  background: #2b6f8f;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(43, 111, 143, 0.2);
}

/* =========================
   Temas em foco
========================= */
.topics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.2rem;
}

.topic-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0.95rem;
  scroll-margin-top: 120px;
}

.topic-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #d2dee6;
  margin-bottom: 0.65rem;
}

.topic-card h3 {
  margin-bottom: 0.45rem;
}

.topic-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

/* =========================
   Cards de mídia e vídeo
========================= */
.profile-photo-wrap {
  margin: 0 auto 0.8rem;
  width: min(220px, 78%);
  aspect-ratio: 4 / 5;
  border-radius: 18px;
  padding: 0.4rem;
  background: linear-gradient(130deg, #d2e7f2, #f2dfcf);
  box-shadow: inset 0 0 0 1px #d3e0e8;
}

.profile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 14%;
  filter: sepia(0.08) saturate(0.92) contrast(1.05);
  border-radius: 14px;
  border: 1px solid var(--line);
}

.inspiration-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  filter: sepia(0.1) saturate(0.9) contrast(1.03);
  border-radius: 12px;
  border: 1px solid var(--line);
  display: block;
  margin-bottom: 0.65rem;
}

.inspiration-card p {
  margin: 0;
}

.video-card h3 {
  margin-bottom: 0.7rem;
  min-height: 2.4em;
}

.video-frame {
  position: relative;
  padding-top: 56.25%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #000;
}

/* =========================
   Contato e rodapé
========================= */
.section-contact {
  padding-bottom: 4.6rem;
}

.section-contact .container {
  text-align: center;
}

.contact-rocket {
  width: min(70%, 760px);
  margin: 0 auto 1.4rem;
}

.contact-intro {
  margin-bottom: 1rem;
  margin-left: auto;
  margin-right: auto;
  max-width: 56ch;
}

.contact-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.contact-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.58rem 0.95rem;
  border-radius: 999px;
  border: 1px solid #b7d5e3;
  background: linear-gradient(180deg, #ffffff 0%, #eaf5fb 100%);
  color: #244f64;
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(42, 98, 124, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: background-color 0.24s ease, color 0.24s ease, transform 0.24s ease, box-shadow 0.24s ease;
  animation: chipFloat 4s ease-in-out infinite;
}

.contact-chip:hover {
  background: #2b6f8f;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 16px 28px rgba(43, 111, 143, 0.3), 0 0 18px rgba(84, 177, 219, 0.28);
}

.contact-chip:focus-visible {
  outline: 2px solid #2b6f8f;
  outline-offset: 3px;
}

.contact-icon {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  line-height: 1;
  background: radial-gradient(circle at 30% 30%, #8fd0ec 0%, #2b6f8f 68%);
  color: #fff;
  font-weight: 800;
  text-transform: lowercase;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.45), 0 7px 14px rgba(31, 81, 103, 0.3);
}

.contact-chip:hover .contact-icon {
  background: #ffffff;
  color: #2b6f8f;
}

@keyframes chipFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-2px);
  }
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #f2ede6;
}

.footer-wrap {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
}

.to-top {
  color: var(--accent-2);
  font-weight: 800;
  text-decoration: none;
}

/* =========================
   Animações de entrada
========================= */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   Tabela webdesign
========================= */
.grid-webdesign {
  display: grid;
  grid-template-columns: max-content max-content 1fr;
  gap: 10px;
  margin-top: 15px;
  padding: 10px;
  border: 1px solid #ddd;
  overflow-x: auto;
}

.grid-header {
  font-weight: bold;
  background-color: #f4f4f4;
  padding: 8px;
}

.grid-categoria {
  font-weight: bold;
}

.grid-webdesign > div {
  padding: 8px;
  border-bottom: 1px solid #eee;
}

/* =========================
   Utilitários globais
========================= */
main > .section,
main > .profile-spotlight {
  border-top: 12px solid rgba(188, 230, 241, 0.48);
}

main > .hero + .section {
  border-top: 0;
}

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

.card,
.topic-card,
.portfolio-item,
.video-card,
.profile-bio,
.hero-card {
  min-width: 0;
  overflow-wrap: anywhere;
}

.profile-spotlight {
  width: min(var(--maxw), calc(100% - 2rem));
  margin-left: auto;
  margin-right: auto;
}

#sobre.section {
  padding-top: 0;
}

/* =========================
   Responsividade
========================= */
@media (max-width: 900px) {
  .menu-toggle {
    display: block;
    order: 3;
  }

  .nav-wrap {
    position: relative;
    gap: 0.65rem;
    min-height: 64px;
  }

  .brand {
    white-space: nowrap;
  }

  .lang-switch {
    order: 2;
    margin-left: auto;
    margin-right: 0.5rem;
  }

  .menu-links {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: auto;
    width: min(260px, calc(100vw - 2rem));
    flex-direction: column;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 16px 36px rgba(20, 30, 45, 0.16);
    padding: 0.8rem;
    min-width: auto;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 1000;
  }

  .menu-links.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .hero-grid,
  .profile-spotlight {
    grid-template-columns: 1fr;
  }

  .hero .header-content {
    width: min(100% - 1.2rem, var(--maxw));
    margin-top: 1rem;
  }

  .hero-grid {
    margin-top: 1.5rem;
    gap: 1.2rem;
  }

  .hero-main {
    margin-left: 0;
    max-width: 100%;
  }

  .hero-card {
    margin-top: 0;
    width: 100%;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .topics-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .profile-card--compact {
    width: min(100%, 260px);
    margin: 0 auto;
  }

  .carousel {
    padding: 0 2.2rem;
  }

  .carousel-card {
    flex-basis: calc((100% - 1rem) / 2);
  }
}

@media (max-width: 640px) {
  .container,
  .container-projects {
    width: min(100% - 1.15rem, var(--maxw));
  }

  .nav-wrap {
    min-height: 62px;
  }

  .brand {
    font-size: 1.2rem;
  }

  .menu-links {
    top: calc(100% + 6px);
    right: 0.6rem;
    left: 0.6rem;
    width: auto;
  }

  .lang-btn {
    width: 1.85rem;
    height: 1.85rem;
    font-size: 0.95rem;
  }

  .hero {
    padding-bottom: 2.5rem;
  }

  .hero h1 {
    font-size: clamp(1.75rem, 8vw, 2.45rem);
  }

  .hero .lead {
    font-size: 0.96rem;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .hero-actions .btn {
    text-align: center;
  }

  .carousel {
    padding: 0 1.6rem;
  }

  .carousel-card {
    flex-basis: 100%;
    min-width: 100%;
  }

  .carousel-arrow {
    width: 36px;
    height: 36px;
    font-size: 1.3rem;
  }

  .project-shot {
    height: 180px;
  }

  .section {
    padding: 2.35rem 0;
  }

  main > .section,
  main > .profile-spotlight {
    border-top-width: 10px;
  }

  .topic-card {
    padding: 1rem;
  }

  .inline-specialty-image {
    width: 100%;
  }

  .cards-grid > p .inline-specialty-image {
    width: 100%;
  }

  .contact-icons {
    gap: 0.6rem;
  }

  .contact-chip {
    padding: 0.45rem 0.75rem;
    font-size: 0.9rem;
  }

  .profile-spotlight {
    gap: 1rem;
  }

  .grid-webdesign {
    grid-template-columns: 1fr;
    font-size: 0.88rem;
  }

  .grid-header {
    display: none;
  }

  .grid-categoria {
    border-top: 2px solid #ddd;
    padding-top: 12px;
  }
}

@media (max-width: 430px) {
  .lang-switch {
    gap: 0.22rem;
    margin-right: 0.15rem;
  }

  .lang-btn {
    width: 1.65rem;
    height: 1.65rem;
    font-size: 0.82rem;
  }

  .menu-toggle {
    width: 28px;
  }

  .hero .eyebrow {
    font-size: 0.74rem;
    padding: 0.45rem 0.9rem;
  }

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

  .btn {
    padding: 0.65rem 0.9rem;
    font-size: 0.9rem;
  }

  .contact-chip {
    width: 100%;
    justify-content: center;
  }

  .contact-icons {
    flex-direction: column;
    align-items: stretch;
  }
}


/* =========================================================
   PATCH FINAL - menu responsivo + hero por idioma
   Adicionado para a versão com imagem do hero contendo o texto
========================================================= */

/* Garante que o header não estoure em telas estreitas */
.site-header {
  z-index: 1000;
}

.nav-wrap {
  gap: 1rem;
}

/* Como o texto principal agora está dentro da imagem do hero,
   o bloco .hero-main passa a servir apenas para os botões. */
.hero .hero-main {
  max-width: none;
  margin-left: 0;
}

/* Deixa os botões elegantes no desktop, centralizados com o hero */
.hero .hero-actions {
  width: min(var(--maxw), calc(100% - 2rem));
  margin: 2rem auto 0;
  display: flex;
  justify-content: flex-start;
  gap: 0.75rem;
}

/* Ajuste do menu antes de ficar apertado */
@media (max-width: 980px) {
  .nav-wrap {
    width: min(100% - 1rem, var(--maxw));
    display: grid;
    grid-template-columns: 1fr auto auto;
    column-gap: 0.65rem;
    align-items: center;
  }

  .brand {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .menu-toggle {
    display: block;
    justify-self: end;
  }

  .lang-switch {
    justify-self: end;
    margin-left: 0;
    margin-right: 0;
  }

  .menu-links {
    position: absolute;
    top: calc(100% + 8px);
    right: 0.5rem;
    left: 0.5rem;
    width: auto;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 16px 36px rgba(20, 30, 45, 0.16);
    padding: 0.8rem;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 1001;
  }

  .menu-links.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .menu-links a {
    padding: 0.65rem 0.75rem;
  }
}

/* Mobile: mantém bandeiras + hambúrguer sem apertar a marca */
@media (max-width: 640px) {
  .nav-wrap {
    min-height: 64px;
    grid-template-columns: minmax(0, 1fr) auto auto;
    column-gap: 0.5rem;
  }

  .brand {
    font-size: clamp(1.05rem, 5vw, 1.45rem);
  }

  .lang-switch {
    gap: 0.28rem;
  }

  .lang-btn {
    width: 2rem;
    height: 2rem;
    font-size: 0.9rem;
    flex: 0 0 auto;
  }

  .menu-toggle {
    width: 34px;
    height: 30px;
  }

  .menu-toggle span {
    height: 4px;
    margin: 5px 0;
  }

  .hero .header-content {
    width: min(100% - 1rem, var(--maxw));
    margin-top: 1rem;
  }

  .hero .hero-actions {
    width: min(100% - 1rem, var(--maxw));
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-top: 2rem;
  }

  .hero .hero-actions .btn {
    text-align: center;
    padding: 0.9rem 1rem;
    font-size: 1rem;
    border-radius: 14px;
  }
}

/* Celular muito estreito */
@media (max-width: 390px) {
  .brand {
    font-size: 1rem;
  }

  .lang-btn {
    width: 1.75rem;
    height: 1.75rem;
    font-size: 0.78rem;
  }

  .menu-toggle {
    width: 30px;
  }
}


/* =========================================================
   GARANTIAS FINAIS - sem hero duplicado e #temas sempre visível
========================================================= */

.hero::before,
.hero::after {
  content: none !important;
  background: none !important;
  background-image: none !important;
}

.hero .header-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center top;
}

#temas {
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
  scroll-margin-top: 96px;
}

#temas .topics-grid {
  visibility: visible !important;
}
