/* =========================
   HEADER
========================= */

header {
  position: fixed;
  top: 0;
  width: 100%;
  background: var(--bg-color);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: background var(--transition-fast);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
}

.logo {
  height: 35px;
}

/* =========================
   BUTTONS
========================= */

.btn {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition-fast);
}

.btn-primary {
  background: var(--primary-color);
  color: #fff;
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-outline {
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  background: transparent;
}

.btn-outline:hover {
  background: var(--primary-color);
  color: #fff;
}

/* =========================
   HERO
========================= */

.hero {
  position: relative;
  padding-top: 100px;
  padding-bottom: 80px;
  text-align: left;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url("../assets/images/hero-bg.jpg") center/cover no-repeat;
  opacity: 0.08;
  transform: translateY(0);
  transition: transform 0.2s ease-out;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 1.9rem;
  margin-bottom: 20px;
  line-height: 1.3;
}

.hero p {
  color: var(--text-secondary);
  margin-bottom: 25px;
}

.hero-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* =========================
   WHATSAPP FLOAT
========================= */

.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #25D366;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-soft);
  z-index: 1000;
}

.whatsapp-float img {
  width: 28px;
}


/* ============================= */
/* SEÇÃO TESTIMONIALS           */
/* ============================= */

.testimonials {
  padding: 60px 16px;
  text-align: center;
}

.testimonials h2 {
  font-size: 20px;
  margin-bottom: 30px;
}

/* ============================= */
/* SLIDER - MOBILE              */
/* ============================= */

.testimonial-slider {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 10px;
}

.testimonial-slider::-webkit-scrollbar {
  display: none;
}

/* ============================= */
/* CARD                         */
/* ============================= */

.testimonial-card {
  flex: 0 0 90%;
  background: var(--card-bg);
  padding: 24px 18px;
  border-radius: 18px;
  scroll-snap-align: center;
  box-sizing: border-box;
}

.testimonial-card img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
}

.testimonial-text {
  font-size: 14px;
  color: #7a7a7a;
  line-height: 1.6;
  margin-bottom: 15px;
  overflow-wrap: break-word;
}

.testimonial-card h3 {
  font-size: 15px;
  margin-bottom: 4px;
}

.testimonial-card span {
  font-size: 12px;
  color: #9a9a9a;
}

/* ============================= */
/* DESKTOP - GRID FIXO          */
/* ============================= */

@media (min-width: 768px) {

  .testimonial-slider {
    overflow: visible;
    scroll-snap-type: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .testimonial-card {
    flex: unset;
  }
}


/* ============================= */
/* SEÇÃO CTA FINAL              */
/* ============================= */

.cta-final {
  padding: 60px 16px;
  text-align: center;
  background: linear-gradient(135deg, #ff7a00, #000000);
  color: #ffffff;
}

.cta-final .container {
  max-width: 1100px;
  margin: 0 auto;
}

.cta-final h2 {
  font-size: 22px;
  margin-bottom: 12px;
}

.cta-final p {
  font-size: 14px;
  margin-bottom: 28px;
  opacity: 0.9;
}

/* ============================= */
/* BOTÕES CTA                   */
/* ============================= */

.cta-final .cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cta-final .btn-cta-primary {
  display: block;
  padding: 14px;
  border-radius: 12px;
  font-weight: 500;
  background: #ffffff;
  color: #000000;
  text-decoration: none;
  text-align: center;
}

.cta-final .btn-cta-secondary {
  display: block;
  padding: 14px;
  border-radius: 12px;
  font-weight: 500;
  background: transparent;
  border: 1px solid #ffffff;
  color: #ffffff;
  text-decoration: none;
  text-align: center;
}

/* ============================= */
/* CTA DESKTOP                  */
/* ============================= */

@media (min-width: 768px) {

  .cta-final .cta-buttons {
    flex-direction: row;
    justify-content: center;
  }

  .cta-final .btn-cta-primary,
  .cta-final .btn-cta-secondary {
    width: 220px;
  }
}


/* ============================= */
/* FOOTER                        */
/* ============================= */

.footer {
  background: #0f0f0f;
  color: #ffffff;
  padding: 50px 16px 20px;
}

.footer .container {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.footer img {
  width: 140px;
}

.footer h3 {
  font-size: 15px;
  margin-bottom: 10px;
}

.footer p,
.footer li,
.footer a {
  font-size: 13px;
  color: #cfcfcf;
  text-decoration: none;
  line-height: 1.6;
}

.footer ul {
  list-style: none;
  padding: 0;
}

.footer a:hover {
  color: #ffffff;
}

/* ============================= */
/* FOOTER BOTTOM                 */
/* ============================= */

.footer-bottom {
  text-align: center;
  margin-top: 40px;
  font-size: 12px;
  opacity: 0.6;
}

/* ============================= */
/* FOOTER DESKTOP                */
/* ============================= */

@media (min-width: 768px) {

  .footer .container {
    flex-direction: row;
    justify-content: space-between;
  }

  .footer-brand,
  .footer-links,
  .footer-contact {
    width: 30%;
  }
}

/* ============================= */
/* BOTÃO DARK / LIGHT           */
/* ============================= */

.theme-toggle {
  background: transparent;
  border: none;
  font-size: 18px;
  cursor: pointer;
  margin-left: 15px;
  color: var(--text-color);
}

/* ============================= */
/* LOGO DARK / LIGHT            */
/* ============================= */

.logo img {
  height: 40px;
}

/* padrão: modo claro */
.logo-dark {
  display: none;
}

/* quando estiver no modo escuro */
[data-theme="dark"] .logo-light {
  display: none;
}

[data-theme="dark"] .logo-dark {
  display: block;
}
