/* ============================================================
   B2B SOLVER — styles.css
   Migrado do Webflow para HTML estático
   Tema claro: fundo creme/branco + texto dark navy + amarelo accent
   ============================================================ */

/* -----------------------------
   1. RESET / BASE
------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Backgrounds */
  --bg-cream: #f0ebd4;
  --bg-cream-soft: #f5f1dc;
  --bg-white: #ffffff;
  --bg-yellow: #fbd232;

  /* Texto */
  --text-dark: #1f1b3a;
  --text-muted: #6b6b7b;
  --text-dim: #9a9aa8;

  /* Accents */
  --accent-yellow: #fbd232;
  --accent-yellow-dark: #e6bd1f;
  --accent-purple: #8b5cf6;
  --accent-purple-dark: #7c3aed;

  /* Bordas */
  --border-dark: #1f1b3a;
  --border-soft: rgba(31, 27, 58, 0.12);
  --border-line: rgba(31, 27, 58, 0.25);

  /* Tipografia */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;

  /* Layout */
  --container-max: 1200px;
  --container-padding: 24px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  /* Transições */
  --t-fast: 150ms ease;
  --t-base: 250ms ease;
}

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

body {
  font-family: var(--font-sans);
  background: var(--bg-cream);
  color: var(--text-dark);
  line-height: 1.5;
  font-size: 16px;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--t-fast), opacity var(--t-fast);
}

a:hover,
a:focus-visible {
  opacity: 0.85;
}

button {
  font-family: inherit;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
}

ul {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-dark);
}

:focus-visible {
  outline: 2px solid var(--text-dark);
  outline-offset: 3px;
  border-radius: 4px;
}

/* -----------------------------
   2. CONTAINER
------------------------------ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

/* -----------------------------
   3. BUTTONS
------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: center;
  transition: transform var(--t-fast), background var(--t-fast), box-shadow var(--t-fast);
  white-space: nowrap;
  cursor: pointer;
  border: 2px solid transparent;
  color: var(--text-dark);
}

.btn-primary {
  background: var(--accent-yellow);
  color: var(--text-dark);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--accent-yellow-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -8px rgba(31, 27, 58, 0.25);
  opacity: 1;
}

.btn-primary strong {
  font-weight: 800;
  text-transform: uppercase;
}

.btn-large {
  padding: 18px 48px;
  font-size: 14px;
}

/* -----------------------------
   4. HEADER / NAVBAR
------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-cream);
  border-bottom: 1px solid var(--border-soft);
  transition: box-shadow var(--t-base);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 20px;
}

.logo img {
  height: 38px;
  width: auto;
}

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 40px;
}

.primary-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-dark);
  transition: color var(--t-fast);
  position: relative;
}

.primary-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--accent-yellow);
  transition: width var(--t-base);
}

.primary-nav a:hover::after,
.primary-nav a:focus-visible::after {
  width: 100%;
}

.nav-cta-mobile {
  display: none;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--text-dark);
  transition: transform var(--t-base), opacity var(--t-base);
  transform-origin: center;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* -----------------------------
   5. HERO
------------------------------ */
.hero {
  padding-top: clamp(64px, 10vw, 120px);
  padding-bottom: clamp(24px, 3vw, 40px);
  text-align: center;
  background: var(--bg-white);
}

.hero-title {
  font-size: clamp(44px, 7vw, 84px);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin-bottom: 28px;
  color: var(--text-dark);
}

.hero-subtitle {
  font-size: clamp(15px, 1.6vw, 17px);
  color: var(--text-dark);
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

/* Badges */
.badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-block: 32px;
}

.badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  background: var(--accent-yellow);
  color: var(--text-dark);
  min-width: 180px;
  transition: transform var(--t-base);
}

.badge:hover {
  transform: translateY(-3px);
}

.badge-top,
.badge-bottom {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-dark);
  text-transform: uppercase;
}

.badge-divider {
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  margin-block: 4px;
  opacity: 0.2;
}

.badge-main {
  font-size: 30px;
  font-weight: 900;
  color: var(--text-dark);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-block: 2px;
}

.scroll-method-wrap {
  background: var(--bg-white);
  text-align: center;
  padding-block: 0 56px;
}

.scroll-method-link {
  display: inline-block;
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color var(--t-fast);
}

.scroll-method-link:hover {
  color: var(--text-dark);
  opacity: 1;
}

/* -----------------------------
   6. CLIENTS / LOGOS MARQUEE
------------------------------ */
.clients {
  padding-block: 72px;
  background: var(--bg-cream);
  overflow: hidden;
}

.clients-title {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  text-align: center;
  margin-bottom: 48px;
  color: var(--text-dark);
}

.logos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px 56px;
  align-items: center;
  justify-items: center;
  max-width: 960px;
  margin-inline: auto;
}

.client-logo {
  height: 64px;
  width: 100%;
  max-width: 180px;
  object-fit: contain;
  opacity: 0.92;
  transition: opacity var(--t-base), transform var(--t-base);
}

.client-logo:hover {
  opacity: 1;
  transform: scale(1.06);
}

/* -----------------------------
   7. SECTION HEADINGS (compartilhado)
------------------------------ */
.section-heading {
  font-size: clamp(34px, 5.2vw, 60px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-align: center;
  margin-bottom: 16px;
  color: var(--text-dark);
}

.section-heading.align-left {
  text-align: left;
}

.section-heading .accent-yellow {
  color: var(--accent-yellow);
  display: block;
}

.section-subtitle {
  text-align: center;
  color: var(--text-dark);
  font-size: clamp(15px, 1.6vw, 17px);
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

/* -----------------------------
   8. METODOLOGIA
------------------------------ */
.methodology {
  padding-block: clamp(72px, 10vw, 128px);
  background: var(--bg-white);
  text-align: center;
}

.methodology .section-heading {
  text-transform: uppercase;
}

.methodology-img {
  max-width: min(760px, 100%);
  margin-inline: auto;
  margin-top: 40px;
}

/* -----------------------------
   9. DEPOIMENTOS
------------------------------ */
.testimonials {
  padding-block: clamp(72px, 10vw, 128px);
  background: var(--bg-white);
}

.testimonials .section-heading {
  color: var(--accent-yellow);
  text-transform: uppercase;
  font-size: clamp(48px, 7vw, 96px);
  letter-spacing: -0.02em;
  text-shadow: 0 2px 0 rgba(31, 27, 58, 0.04);
}

.testimonials .section-subtitle {
  color: var(--text-muted);
  margin-bottom: 64px;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.testimonial-card {
  background: var(--bg-white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 4px 24px rgba(31, 27, 58, 0.04);
  transition: box-shadow var(--t-base), transform var(--t-base);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(31, 27, 58, 0.1);
}

.testimonial-text {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  line-clamp: 3;
  overflow: hidden;
  transition: -webkit-line-clamp 250ms ease;
}

.testimonial-text > p {
  margin-bottom: 12px;
}

.testimonial-text > p:last-child {
  margin-bottom: 0;
}

.testimonial-card.is-expanded .testimonial-text {
  -webkit-line-clamp: unset;
  line-clamp: unset;
  display: block;
  overflow: visible;
}

.testimonial-toggle {
  align-self: flex-start;
  color: var(--accent-yellow);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  padding: 6px 0;
  border-bottom: 1.5px solid var(--accent-yellow);
  transition: color var(--t-fast), border-color var(--t-fast);
}

.testimonial-toggle:hover {
  color: var(--accent-yellow-dark);
  border-color: var(--accent-yellow-dark);
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: auto;
}

.testimonial-author strong {
  color: var(--accent-yellow);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.testimonial-author span {
  color: var(--text-muted);
  font-size: 14px;
}

/* -----------------------------
   10. DORES (pain points)
------------------------------ */
.pain-points {
  padding-block: clamp(72px, 10vw, 128px);
  background: var(--bg-cream);
  position: relative;
}

.pain-points-arrow {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}

.pain-points-arrow svg {
  width: 72px;
  height: auto;
  color: var(--text-dark);
}

.pain-points .section-heading {
  text-align: center;
  margin-bottom: 64px;
  font-size: clamp(40px, 6.5vw, 72px);
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.pain-card {
  background: var(--bg-cream-soft);
  border: 1.5px solid var(--text-dark);
  border-radius: var(--radius-lg);
  padding: 28px 28px 32px;
  position: relative;
  transition: transform var(--t-base), box-shadow var(--t-base);
}

.pain-card::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 28px;
  width: 40px;
  height: 2px;
  background: var(--text-dark);
}

.pain-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(31, 27, 58, 0.12);
}

.pain-mark {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-yellow);
  color: var(--text-dark);
  font-weight: 900;
  font-size: 18px;
  line-height: 1;
  transform: rotate(45deg);
  border: 1.5px solid var(--text-dark);
}

.pain-mark > span {
  transform: rotate(-45deg);
}

.pain-card h3 {
  font-size: 20px;
  font-weight: 800;
  margin-top: 40px;
  margin-bottom: 14px;
  padding-right: 48px;
  line-height: 1.2;
  color: var(--text-dark);
}

.pain-card p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

/* -----------------------------
   11. SERVICES (O que entregamos)
------------------------------ */
.services {
  padding-block: clamp(72px, 10vw, 128px);
  background: var(--bg-white);
}

.services .section-heading {
  text-align: center;
  margin-bottom: 72px;
  font-size: clamp(40px, 6.5vw, 72px);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px 48px;
  max-width: 1080px;
  margin-inline: auto;
}

.service-card {
  position: relative;
  padding-left: 16px;
}

.service-bar {
  position: absolute;
  top: 0;
  left: -4px;
  width: 36px;
  height: 36px;
  background: var(--accent-yellow);
  border-radius: 50%;
}

.service-card h3 {
  font-size: 22px;
  font-weight: 800;
  margin-top: 12px;
  margin-bottom: 14px;
  line-height: 1.15;
  position: relative;
  color: var(--text-dark);
  z-index: 1;
}

.service-card p {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.65;
  max-width: 340px;
}

/* -----------------------------
   12. DIFFERENTIAL
------------------------------ */
.differential {
  padding-block: clamp(72px, 10vw, 128px);
  background: var(--bg-cream);
}

.differential-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  max-width: 900px;
}

.differential-intro .accent-bar {
  width: 56px;
  height: 3px;
  background: var(--accent-yellow);
  margin-bottom: 20px;
}

.differential-intro .section-heading {
  font-size: clamp(44px, 7vw, 80px);
  letter-spacing: -0.035em;
}

.differential-intro p {
  color: var(--text-dark);
  font-size: 15px;
  line-height: 1.6;
  margin-top: 16px;
  max-width: 720px;
}

.differential-list {
  display: flex;
  flex-direction: column;
  gap: 48px;
  position: relative;
  padding-left: 32px;
}

.differential-list::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 14px;
  bottom: 14px;
  width: 1.5px;
  background: var(--text-dark);
}

.differential-item {
  position: relative;
}

.differential-marker {
  position: absolute;
  left: -32px;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-yellow);
  flex-shrink: 0;
  z-index: 1;
}

.differential-item h3 {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 8px;
  line-height: 1.1;
  color: var(--text-dark);
}

.differential-item p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

/* -----------------------------
   13. SOBRE
------------------------------ */
.about {
  padding-block: clamp(72px, 10vw, 128px);
  background: var(--bg-white);
}

.about-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}

.about-photo-wrap {
  display: flex;
  justify-content: center;
}

.about-photo {
  width: 100%;
  max-width: 480px;
  height: auto;
  border-radius: var(--radius-lg);
}

.about-name {
  font-size: clamp(40px, 5.5vw, 64px);
  font-weight: 900;
  margin-bottom: 20px;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--text-dark);
}

.about-badges {
  justify-content: flex-start;
  margin-block: 20px 32px;
  gap: 12px;
}

.about-badges .badge {
  min-width: 160px;
  padding: 10px 20px;
}

.about-badges .badge-main {
  font-size: 24px;
}

.about-text {
  color: var(--text-dark);
  font-size: 16px;
  line-height: 1.65;
  max-width: 560px;
}

/* -----------------------------
   14. CTA FINAL
------------------------------ */
.cta-final {
  padding-block: clamp(72px, 10vw, 128px);
  text-align: center;
  background: var(--bg-cream-soft);
}

.cta-final-inner {
  text-align: center;
  max-width: 720px;
}

.cta-final .section-heading {
  text-align: center;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.cta-final p {
  color: var(--text-dark);
  font-size: 16px;
  margin-bottom: 40px;
  line-height: 1.6;
}

/* -----------------------------
   15. FOOTER
------------------------------ */
.site-footer {
  padding-block: 72px 40px;
  background: var(--accent-yellow);
  text-align: center;
  color: var(--text-dark);
}

.footer-title {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 900;
  margin-bottom: 40px;
  color: var(--text-dark);
  letter-spacing: -0.02em;
}

.social-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  margin-bottom: 40px;
}

.social-links a {
  display: inline-block;
  transition: transform var(--t-base);
}

.social-links a:hover {
  transform: translateY(-3px);
  opacity: 1;
}

.social-links img {
  height: 52px;
  width: auto;
  transition: opacity var(--t-base);
}

.footer-copyright {
  color: rgba(31, 27, 58, 0.65);
  font-size: 13px;
}

/* -----------------------------
   16. WHATSAPP FLOAT
------------------------------ */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 50;
  width: 58px;
  height: 58px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  transition: transform var(--t-base), box-shadow var(--t-base);
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.55);
  opacity: 1;
}

/* -----------------------------
   17. RESPONSIVE
------------------------------ */
@media (max-width: 1024px) {
  .logos-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 36px 40px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 48px 40px;
  }
}

@media (max-width: 640px) {
  .logos-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 24px;
  }
}

@media (max-width: 900px) {
  .about-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .about-photo-wrap {
    max-width: 320px;
    margin-inline: auto;
  }

  .about-badges {
    justify-content: center;
  }

  .about-text {
    margin-inline: auto;
  }

  .differential-intro .section-heading {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav-cta-desktop {
    display: none;
  }

  .primary-nav {
    position: fixed;
    top: 78px;
    left: 0;
    right: 0;
    background: var(--bg-cream);
    border-bottom: 1px solid var(--border-soft);
    max-height: 0;
    overflow: hidden;
    transition: max-height 300ms ease;
  }

  .primary-nav.is-open {
    max-height: 80vh;
    padding-block: 12px;
  }

  .primary-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .primary-nav li {
    border-bottom: 1px solid var(--border-soft);
  }

  .primary-nav a {
    display: block;
    padding: 16px 24px;
  }

  .primary-nav a::after {
    display: none;
  }

  .nav-cta-mobile {
    display: block;
    padding: 20px 24px;
    border-bottom: 0 !important;
  }

  .nav-cta-mobile .btn {
    display: flex;
    width: 100%;
  }

  .badges {
    gap: 10px;
  }

  .badge {
    min-width: 140px;
    padding: 10px 16px;
    flex: 1 1 auto;
  }

  .badge-main {
    font-size: 24px;
  }

  .testimonial-grid,
  .pain-grid,
  .services-grid {
    grid-template-columns: 1fr;
  }

  .client-logo {
    height: 52px;
  }

  .service-card {
    text-align: center;
    padding-left: 0;
  }

  .service-bar {
    position: relative;
    top: auto;
    left: auto;
    width: 32px;
    height: 32px;
    margin: 0 auto 16px;
  }

  .service-card h3 {
    margin-top: 0;
  }

  .service-card p {
    margin-inline: auto;
    max-width: 420px;
  }

  .pain-card h3 {
    padding-right: 48px;
    font-size: 18px;
  }

  .social-links img {
    height: 42px;
  }

  .whatsapp-float {
    width: 52px;
    height: 52px;
    bottom: 16px;
    right: 16px;
  }

  .whatsapp-float svg {
    width: 24px;
    height: 24px;
  }
}

@media (max-width: 480px) {
  :root {
    --container-padding: 20px;
  }

  .hero-title {
    font-size: 40px;
  }

  .section-heading {
    font-size: 34px;
  }

  .about-name {
    font-size: 36px;
  }
}

/* -----------------------------
   18. PREFERS REDUCED MOTION
------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .logos-track {
    animation: none;
  }
}
