/* ==============================================
   Espaço HIR – Landing Page B  (style-b.css)
   A/B Test: Atendimento Online
   ============================================== */

/* ── CSS Variables ─────────────────────────── */
:root {
  --primary-terracota: #E07856;
  --primary-terracota-dark: #c9654a;
  --bg-peach: #FEF3E6;
  --bg-offwhite: #FAF8F5;
  --text-dark: #2D2B2A;
  --text-muted: #6B6560;
  --btn-whatsapp: #25D366;
  --btn-whatsapp-hover: #1ebe5a;
  --white: #ffffff;
  --radius-card: 16px;
  --radius-btn: 12px;
  --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.08);
  --font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset ─────────────────────────────────── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-family);
  color: var(--text-dark);
  background-color: var(--bg-offwhite);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

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

ul { list-style: none; }

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
}

/* ── Container ─────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

@media (min-width: 768px) {
  .container { padding: 0 2rem; }
}

/* ══════════════════════════════════════════════
   1. HEADER
   ══════════════════════════════════════════════ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: background var(--transition), box-shadow var(--transition);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.site-branding .site-logo {
  width: 42px;
  height: 42px;
  background: var(--primary-terracota);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  flex-shrink: 0;
}

.site-branding .site-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.site-branding span {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-dark);
}

.header-cta-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--btn-whatsapp);
  color: var(--white);
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-btn);
  font-weight: 600;
  font-size: 0.9rem;
  transition: background var(--transition), transform var(--transition);
}

.header-cta-whatsapp:hover {
  background: var(--btn-whatsapp-hover);
  color: var(--white);
  transform: translateY(-1px);
}

.header-cta-whatsapp svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════
   2. HERO – Scroll-Bound Video
   ══════════════════════════════════════════════ */
.hero-scroll-container {
  position: relative;
  /* Height is set by GSAP pin to create scroll space for the video */
}

.hero-scroll-inner {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.35) 0%,
    rgba(0,0,0,0.25) 50%,
    rgba(0,0,0,0.45) 100%
  );
  z-index: 1;
}

/* Steps */
.hero-step {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  padding: 80px 1.25rem 2rem;
}

.hero-step.active {
  pointer-events: auto;
}

.hero-step#heroStep1 {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.hero-step-content {
  max-width: 560px;
  color: var(--white);
}

/* Step alignment */
.hero-step--left .hero-step-content {
  margin-left: 5%;
}

.hero-step--center {
  justify-content: center;
}

.hero-step--center .hero-step-content {
  text-align: center;
  margin: 0 auto;
}

.hero-step--right {
  justify-content: flex-end;
}

.hero-step--right .hero-step-content {
  margin-right: 5%;
  text-align: right;
}

.hero-step h1 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.35);
  font-weight: 800;
}

.hero-step h2 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.35);
  font-weight: 700;
}

.hero-step p {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  opacity: 0.92;
  text-shadow: 0 1px 6px rgba(0,0,0,0.25);
}

@media (min-width: 768px) {
  .hero-step {
    padding: 80px 2rem 2rem;
  }

  .hero-step h1 {
    font-size: 2.75rem;
  }

  .hero-step h2 {
    font-size: 2rem;
  }

  .hero-step p {
    font-size: 1.15rem;
  }

  .hero-step--left .hero-step-content {
    margin-left: 8%;
  }

  .hero-step--right .hero-step-content {
    margin-right: 8%;
  }
}

@media (min-width: 1024px) {
  .hero-step h1 {
    font-size: 3.25rem;
  }

  .hero-step h2 {
    font-size: 2.25rem;
  }
}

/* ── Buttons ───────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary-terracota);
  color: var(--white);
  padding: 0.875rem 2rem;
  border-radius: var(--radius-btn);
  font-weight: 600;
  font-size: 1rem;
  font-family: var(--font-family);
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
}

.btn-primary:hover {
  background: var(--primary-terracota-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(224,120,86,0.35);
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--btn-whatsapp);
  color: var(--white);
  padding: 0.875rem 2rem;
  border-radius: var(--radius-btn);
  font-weight: 600;
  font-size: 1rem;
  font-family: var(--font-family);
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
}

.btn-whatsapp:hover {
  background: var(--btn-whatsapp-hover);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37,211,102,0.35);
}

.btn-whatsapp svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════
   3. BENEFITS
   ══════════════════════════════════════════════ */
.benefits {
  padding: 5rem 0;
  background: var(--bg-peach);
}

.benefits .section-title {
  text-align: center;
  font-size: 1.75rem;
  margin-bottom: 3rem;
  color: var(--text-dark);
}

@media (min-width: 768px) {
  .benefits .section-title {
    font-size: 2.25rem;
  }
}

.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .benefits-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.benefit-card {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition), box-shadow var(--transition);
  text-align: center;
}

.benefit-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
}

.benefit-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.benefit-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
}

.benefit-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ══════════════════════════════════════════════
   4. TEAM
   ══════════════════════════════════════════════ */
.team {
  padding: 5rem 0;
  background: var(--bg-offwhite);
}

.team .section-title {
  text-align: center;
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.team .section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .team .section-title {
    font-size: 2.25rem;
  }
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.team-card {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-soft);
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.team-card-avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1.25rem;
  border: 4px solid var(--bg-peach);
}

.team-card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
  color: var(--text-dark);
}

.team-card .team-role {
  font-size: 0.85rem;
  color: var(--primary-terracota);
  font-weight: 600;
  margin-bottom: 0.75rem;
  display: block;
}

.team-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* online badge */
.team-badge-online {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(37,211,102,0.12);
  color: #1a8c44;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  margin-top: 0.75rem;
}

.team-badge-online::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--btn-whatsapp);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

/* ══════════════════════════════════════════════
   5. TESTIMONIALS
   ══════════════════════════════════════════════ */
.testimonials {
  padding: 5rem 0;
  background: var(--bg-peach);
}

.testimonials .section-title {
  text-align: center;
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

@media (min-width: 768px) {
  .testimonials .section-title {
    font-size: 2.25rem;
  }
}

.testimonials-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  font-size: 1rem;
}

.testimonials-stars {
  text-align: center;
  margin-bottom: 2.5rem;
}

.testimonials-stars .stars {
  color: #f5a623;
  font-size: 1.5rem;
  letter-spacing: 4px;
}

.testimonials-stars p {
  margin-top: 0.3rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 1.75rem;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform var(--transition), box-shadow var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.testimonial-author-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-dark);
}

.testimonial-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.testimonial-stars {
  color: #f5a623;
  font-size: 1rem;
  letter-spacing: 2px;
}

.testimonial-text {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex-grow: 1;
}

/* ══════════════════════════════════════════════
   6. CTA FINAL
   ══════════════════════════════════════════════ */
.cta-final {
  padding: 5rem 0;
  background: var(--primary-terracota);
  text-align: center;
}

.cta-final h2 {
  color: var(--bg-peach);
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.cta-final p {
  color: rgba(254,243,230,0.85);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .cta-final h2 {
    font-size: 2.5rem;
  }
}

.btn-whatsapp-large {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--btn-whatsapp);
  color: var(--white);
  padding: 1.1rem 2.5rem;
  border-radius: var(--radius-btn);
  font-weight: 700;
  font-size: 1.15rem;
  font-family: var(--font-family);
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
}

.btn-whatsapp-large:hover {
  background: var(--btn-whatsapp-hover);
  color: var(--white);
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 28px rgba(37,211,102,0.4);
}

.btn-whatsapp-large svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════
   7. FOOTER
   ══════════════════════════════════════════════ */
.site-footer {
  background: var(--text-dark);
  color: rgba(255,255,255,0.8);
  padding: 3.5rem 0 1.5rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .footer-content {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-section h3 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.footer-section p {
  font-size: 0.92rem;
  line-height: 1.6;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  font-size: 0.92rem;
  transition: color var(--transition);
}

.footer-section ul li a:hover {
  color: var(--primary-terracota);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-contact a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.92rem;
  transition: color var(--transition);
}

.footer-contact a:hover {
  color: var(--primary-terracota);
}

.footer-contact .icon {
  flex-shrink: 0;
  display: flex;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  text-align: center;
}

.footer-copyright {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
}

.footer-copyright a {
  color: rgba(255,255,255,0.6);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-copyright a:hover {
  color: var(--primary-terracota);
}

.footer-branding {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.footer-branding .footer-logo {
  width: 42px;
  height: 42px;
  background: var(--primary-terracota);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  flex-shrink: 0;
}

.footer-branding .footer-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.footer-branding span {
  color: var(--white);
  font-weight: 700;
  font-size: 1.1rem;
}

/* ══════════════════════════════════════════════
   8. FLOATING WHATSAPP
   ══════════════════════════════════════════════ */
.fab-whatsapp {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 90;
  width: 56px;
  height: 56px;
  background: var(--btn-whatsapp);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,0.4);
  transition: transform var(--transition), box-shadow var(--transition);
}

.fab-whatsapp:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37,211,102,0.5);
}

.fab-whatsapp svg {
  width: 28px;
  height: 28px;
  fill: var(--white);
}

/* ══════════════════════════════════════════════
   9. SCROLL PROGRESS BAR
   ══════════════════════════════════════════════ */
.scroll-progress {
  position: fixed;
  top: 64px;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-terracota), var(--btn-whatsapp));
  z-index: 99;
  transition: width 0.1s linear;
}

/* ══════════════════════════════════════════════
   UTILITY & ANIMATIONS
   ══════════════════════════════════════════════ */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
