/* ==========================================================================
   GAMA TÊXTIL — Stylesheet estático
   Substitui o tema WordPress. Organizado por: Tokens > Base > Layout > Componentes > Páginas > Responsivo
   ========================================================================== */

/* ---------- TOKENS ---------- */
:root {
  --color-black: #16181c;
  --color-ink: #2b2f36;
  --color-text: #4a5361;
  --color-text-light: #6b7280;
  --color-white: #ffffff;
  --color-offwhite: #f7f7f5;

  --color-green: #4a8a4f;
  --color-green-dark: #3c7040;
  --color-yellow: #f0b90b;
  --color-yellow-dark: #d9a509;
  --color-navy: #0b1220;

  --font-display: 'Poppins', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  --container-width: 1180px;
  --radius: 6px;
  --transition: 0.25s ease;
}

/* ---------- BASE ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  line-height: 1.6;
  background: var(--color-white);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-ink);
  line-height: 1.25;
  margin: 0 0 16px;
  font-weight: 600;
  text-wrap: balance;
}

h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }
.split-text h1 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.2;
}

p { margin: 0 0 16px; max-width: 62ch; }

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

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

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 72px 0; }
.site-header + section:has(.split) { padding-top: 32px; }
/* Foco visível para acessibilidade */
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--color-yellow);
  outline-offset: 2px;
}

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

/* ---------- BOTÕES ---------- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform var(--transition), background var(--transition);
}
.btn:hover { transform: translateY(-2px); }

.btn-dark { background: var(--color-black); color: var(--color-white); }
.btn-dark:hover { background: #000; }

.btn-yellow { background: var(--color-yellow); color: var(--color-black); border-radius: 4px; display: inline-flex; align-items: center; gap: 10px; }
.btn-yellow svg { flex-shrink: 0; }
.btn-yellow:hover { background: var(--color-yellow-dark); }

.btn-green { background: var(--color-green); color: var(--color-white); }
.btn-green:hover { background: var(--color-green-dark); }

.btn-outline { background: transparent; border-color: var(--color-white); color: var(--color-white); }

/* ---------- HEADER ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px max(24px, calc((100% - var(--container-width)) / 2 + 24px));
  margin: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--color-black);
  letter-spacing: 0.5px;
}
.logo img { height: 100px; width: auto; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.main-nav a {
  font-weight: 500;
  color: var(--color-ink);
  font-size: 0.98rem;
  transition: color var(--transition);
}
.main-nav a:hover,
.main-nav a[aria-current="page"] { color: var(--color-green); }

.header-social {
  display: flex;
  align-items: center;
  gap: 16px;
}
.header-social a {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--color-black);
  color: var(--color-white);
  font-size: 0.95rem;
}

.nav-toggle {
  display: none;
  background: none; border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--color-black);
}

/* WhatsApp flutuante */
.whatsapp-float {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 58px; height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 1.6rem;
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
  z-index: 999;
  transition: transform var(--transition);
}
.whatsapp-float:hover { transform: scale(1.08); }

/* ---------- HERO / CARROSSEL (home) ---------- */
.hero-carousel {
  position: relative;
  height: 70vh;
  min-height: 460px;
  max-height: 640px;
  overflow: hidden;
}
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  opacity: 0;
  transition: opacity 0.9s ease;
}
.hero-slide::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.7), rgba(0,0,0,0.45));
}
.hero-slide.is-active { opacity: 1; z-index: 1; }
.hero-slide-content {
  position: relative; z-index: 2;
  color: #fff;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
  width: 100%;
}
.hero-slide-content h1 {
  color: #fff;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  margin-bottom: 12px;
}
.hero-slide-content p {
  color: #f2f2f2;
  font-size: 1.1rem;
  max-width: none;
  margin: 0 auto;
}
.hero-slide-content p:first-child {
  font-family: var(--font-display);
  color: #fff;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 12px;
}
.hero-nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  z-index: 3;
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  width: 44px; height: 44px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  transition: background var(--transition);
}
.hero-nav:hover { background: rgba(255,255,255,0.3); }
.hero-nav.prev { left: 20px; }
.hero-nav.next { right: 20px; }
.hero-dots {
  position: absolute;
  bottom: 20px; left: 50%; transform: translateX(-50%);
  z-index: 3;
  display: flex; gap: 8px;
}
.hero-dots button {
  width: 9px; height: 9px; border-radius: 50%;
  border: none; background: rgba(255,255,255,0.5);
  cursor: pointer; padding: 0;
}
.hero-dots button.is-active { background: #fff; }

/* Banner simples para páginas internas */
.page-banner {
  position: relative;
  height: 260px;
  background-size: cover;
  background-position: center;
  display: flex; align-items: center; justify-content: center;
}
.page-banner::before {
  content: "";
  position: absolute; inset: 0;
  background: rgba(10,15,20,0.55);
}
.page-banner h1 {
  position: relative; z-index: 2;
  color: #fff;
  margin: 0;
  text-align: center;
}
.page-banner .eyebrow {
  position: relative; z-index: 2;
  color: #fff;
  font-weight: 700;
  letter-spacing: 6px;
  font-size: 1.6rem;
}

/* ---------- SPLIT SECTION (imagem + texto) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
  margin-top: 0px;
  margin-bottom: 40px;
  min-height: 520px;
}
.split-media { position: relative; overflow: hidden; height: 100%; }
.split-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.split-text {
  padding: 32px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow-y: auto;
}
.split-text.on-green { background: var(--color-green); }
.split-text.on-green h1,
.split-text.on-green h2,
.split-text.on-green p { color: #fff; }
.split-text.on-purple h1,
.split-text.on-purple h2,
.split-text.on-purple p { color: #fff; }
.split-text.on-purple { background: #5b5a86; }
.split-text.on-teal { background: #2e6b64; }
.split-text.on-teal h1,
.split-text.on-teal h2,
.split-text.on-teal p { color: #fff; }
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }

/* ---------- QUOTE / DUAL CTA ---------- */
.quote-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  margin-top: 40px;
  margin-bottom: 40px;
  height: 520px;
}
.quote-section .split-media { height: 100%; }
.quote-content {
  padding: 40px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.quote-content h2 { font-style: normal; }
.quote-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- PROCESSO (infográfico) ---------- */
.process {
  text-align: center;
}
.process > .container > p { margin: 0 auto 48px; }
.process-line-wrap { position: relative; margin-top: 8px; }
.process-line {
  position: absolute;
  top: 54px;
  left: 4%;
  right: 4%;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(to right,
    #1b3a6b 0%, #1b3a6b 13%,
    #e07b1f 13%, #e07b1f 27%,
    #c81f7c 27%, #c81f7c 41%,
    #1f9e4a 41%, #1f9e4a 55%,
    #7a2fc4 55%, #7a2fc4 69%,
    #1f8fd6 69%, #1f8fd6 83%,
    #1b3a6b 83%, #1b3a6b 100%);
  z-index: 0;
}
.process-steps {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  text-align: center;
}
.process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.process-step h4 { font-size: 0.82rem; margin: 0; }
.process-step .icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 1rem;
}
.process-step p { font-size: 0.78rem; color: var(--color-text-light); margin: 0; max-width: 18ch; }

.diagram-scroll {
  overflow-x: auto;
  margin-top: 24px;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
}
.diagram-scroll img {
  display: block;
  margin: 0 auto;
  width: 100%;
  height: auto;
}
@media (min-width: 960px) {
  .diagram-scroll img { min-width: 0; }
}

.step-1 .icon { background: #1b3a6b; }
.step-1 h4 { color: #1b3a6b; }
.step-2 .icon { background: #e07b1f; }
.step-2 h4 { color: #e07b1f; }
.step-3 .icon { background: #c81f7c; }
.step-3 h4 { color: #c81f7c; }
.step-4 .icon { background: #1f9e4a; }
.step-4 h4 { color: #1f9e4a; }
.step-5 .icon { background: #7a2fc4; }
.step-5 h4 { color: #7a2fc4; }
.step-6 .icon { background: #1f8fd6; }
.step-6 h4 { color: #1f8fd6; }
.step-7 .icon { background: #1b3a6b; }
.step-7 h4 { color: #1b3a6b; }

/* ---------- FAIXAS DE DESTAQUE ---------- */
.band { padding: 64px 0; text-align: center; }
.band.dark { background: var(--color-black); color: #fff; }
.band.dark h2 { color: #fff; text-wrap: balance; }
.band.dark p { color: #d7d7d7; margin: 0 auto 28px; }
.band-links {
  display: flex; justify-content: center; gap: 12px; flex-wrap: wrap;
  font-size: 0.95rem; color: #cfcfcf; margin-top: 4px;
}

.band-photo {
  position: relative;
  background-size: cover;
  background-position: center;
  padding: 150px 0;
  text-align: center;
  margin-bottom: 32px;
}
.band-photo h2 { text-wrap: balance; }
.band-photo::before { content: ""; position: absolute; inset: 0; background: rgba(20,20,20,0.55); }
.band-photo .container { position: relative; z-index: 2; }
.band-photo h2 { color: #fff; }

.band-navy {
  background: var(--color-navy);
  color: #fff;
  text-align: center;
  padding: 80px 0;
}
.band-navy h2 { color: #fff; margin-bottom: 24px; }
.brazil-map { max-width: 320px; margin: 0 auto 32px; }
.brazil-map img { width: 100%; height: auto; }

.cta-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  padding: 36px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  max-width: 900px;
  margin: 0 auto;
}
.cta-card h3 { margin: 0; font-weight: 600; }

.band-yellow-strip {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  padding: 28px 48px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
  max-width: 1000px; margin: 0 auto;
  overflow: hidden;
}
.band-yellow-strip h3 { margin: 0; }
.band-yellow-strip .accent { color: var(--color-yellow-dark); }

/* ---------- CARDS (linhas de serviço, princípios) ---------- */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.service-card { text-align: center; }
.service-card .icon-circle {
  width: 84px; height: 84px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.8rem;
}
.service-card ul {
  list-style: none;
  padding: 0; margin: 16px 0 0;
  display: flex; flex-direction: column; gap: 6px;
}
.service-card li {
  padding: 8px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 4px;
}
.service-colecoes .icon-circle { background: #2ba5d8; }
.service-colecoes h3 { color: #2ba5d8; }
.service-colecoes li { background: #eaf6fc; color: #1a6d90; }

.service-private .icon-circle { background: #6ab04c; }
.service-private h3 { color: #6ab04c; }
.service-private li { background: #eef8e8; color: #3f7a2c; }

.service-oportunidades .icon-circle { background: #f0b90b; }
.service-oportunidades h3 { color: #b3860a; }
.service-oportunidades li { background: #fdf3d6; color: #8a6606; }

.principle-card img { border-radius: 8px; margin-bottom: 16px; }
.principle-card .bar { height: 4px; width: 48px; background: var(--color-green); margin-bottom: 16px; border-radius: 2px; }
.principle-card ul { padding-left: 18px; margin: 0; }
.principle-card li { margin-bottom: 6px; font-size: 0.95rem; }

/* ---------- RODAPÉ ---------- */
.site-footer {
  background: var(--color-black);
  color: #cfd3da;
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  color: #fff;
  font-size: 1.1rem;
}
.footer-logo img { height: 96px; }
.footer-contact {
  display: flex; gap: 32px; flex-wrap: wrap;
  font-size: 0.9rem;
}
.footer-contact strong { display: block; color: #fff; font-weight: 500; }
.footer-social { display: flex; gap: 14px; }
.footer-social a {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.footer-copy { font-size: 0.82rem; color: #8992a3; }

/* ---------- SEÇÃO CONTATO (cards) ---------- */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.contact-card {
  border: 1px solid #ececec;
  border-radius: 10px;
  padding: 36px 24px;
  text-align: center;
}
.contact-card .icon-circle {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: #eef6ee;
  color: var(--color-green);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.6rem;
}
.contact-card h3 { margin-bottom: 8px; }
.contact-card p { margin: 0; font-size: 0.95rem; }

/* ---------- HELPERS ---------- */
.text-center { text-align: center; }
.section-intro { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.mosaic-band {
  background-size: cover;
  background-position: center;
  position: relative;
  padding: 100px 0;
  text-align: center;
}
.mosaic-band::before { content: ""; position: absolute; inset: 0; background: rgba(8,8,10,0.62); }
.mosaic-band .container { position: relative; z-index: 2; }
.mosaic-band h2 { color: #fff; max-width: 720px; margin: 0 auto 24px; text-wrap: balance; }
.mosaic-band .text-backdrop {
  background: rgba(0,0,0,0.35);
  border-radius: 12px;
  padding: 32px 40px;
  display: inline-block;
  backdrop-filter: blur(2px);
}

/* ---------- RESPONSIVO ---------- */
@media (max-width: 900px) {
  .split, .quote-section { grid-template-columns: 1fr; height: auto; }
  .split-media, .quote-section .split-media { height: 280px; }
  .split-text, .quote-content { padding: 40px 28px; }
  .process-steps { grid-template-columns: repeat(4, 1fr); }
  .cards-3, .contact-cards { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .main-nav, .header-social { display: none; }
  .nav-toggle { display: block; }
  .site-header.nav-open .main-nav {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    padding: 20px 24px;
    gap: 18px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    z-index: 20;
  }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .cta-card, .band-yellow-strip { flex-direction: column; text-align: center; }
  section { padding: 48px 0; }
}
