:root {
  --color-primary: #f36200;
  --color-primary-dark: #c44e00;
  --color-primary-rgb: 243, 98, 0;
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border-radius: 100px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary-dark);
}

html.dark ::-webkit-scrollbar-thumb {
  background: var(--color-primary);
}

#menu-toggle.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

#menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

#menu-toggle.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item.open .faq-answer {
  max-height: 240px;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

/* ── Logo — dimensões fixas para evitar layout shift ──── */

#logo-white,
#logo-dark {
  height: 3.5rem; /* h-14 */
  width: 160px;
  object-fit: contain;
  object-position: left center;
}

/* ── Header scroll behavior ────────────────────────────── */

#main-header {
  background-color: transparent;
  border-bottom: 1px solid transparent;
}

#main-header.header-scrolled {
  background-color: #ffffff;
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.header-nav-link {
  color: rgba(255, 255, 255, 0.92);
  transition: color 0.3s ease;
}

.header-nav-link:hover {
  color: #f36200;
}

#main-header.header-scrolled .header-nav-link {
  color: #111;
}

#main-header.header-scrolled .header-nav-link:hover {
  color: #f36200;
}

.header-icon-btn {
  color: rgba(255, 255, 255, 0.92);
  transition: color 0.3s ease;
}

#main-header.header-scrolled .header-icon-btn {
  color: #111;
}

.header-hamburger span {
  background-color: #ffffff;
  transition: background-color 0.3s ease;
}

#main-header.header-scrolled .header-hamburger span {
  background-color: #111;
}

/* ── Social corner ─────────────────────────────────────── */

#social-corner {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  display: none;
}

@media (min-width: 1024px) {
  #social-corner {
    display: block;
  }

  /* reserva espaço para o corner não sobrepor CTA e toggle */
  #main-header .container {
    padding-right: 148px;
  }
}

#social-corner-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 4px;
  background-color: #111;
  clip-path: polygon(32px 0%, 100% 0%, 100% 100%, 0% 100%);
  padding: 0 20px 0 52px;
}

.social-corner-link {
  color: rgba(255, 255, 255, 0.85);
  padding: 8px;
  border-radius: 6px;
  transition: color 0.2s ease, background-color 0.2s ease;
  display: flex;
  align-items: center;
}

.social-corner-link:hover {
  color: #f36200;
  background-color: rgba(255, 255, 255, 0.08);
}

/* ── Cards de produto ─────────────────────────────────── */

.product-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.35s ease;
}

html.dark .product-card {
  background: #111;
}

.product-card:hover {
  transform: translateY(-6px);
}

.product-card-img-wrap {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f8f8f8;
}

html.dark .product-card-img-wrap {
  background: #111;
}

.product-card-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.5s ease;
}

.product-card:hover .product-card-img {
  transform: scale(1.06);
}

/* ── Botão Instagram ───────────────────────────────────── */

.instagram-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 36px;
  border-radius: 50px;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 20px rgba(188, 24, 136, 0.3);
}

.instagram-cta-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 32px rgba(188, 24, 136, 0.5);
}

/* ── Carrosseis infinitos — galeria ───────────────────── */

.carousel-wrapper {
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(to right, transparent 0px, black 80px, black calc(100% - 80px), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0px, black 80px, black calc(100% - 80px), transparent 100%);
}

.carousel-track {
  display: flex;
  gap: 16px;
  width: max-content;
  will-change: transform;
}

.carousel-left {
  animation: carousel-scroll-left 35s linear infinite;
}

.carousel-right {
  animation: carousel-scroll-right 35s linear infinite;
}

.carousel-wrapper:hover .carousel-track {
  animation-play-state: paused;
}

@keyframes carousel-scroll-left {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes carousel-scroll-right {
  0%   { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

.carousel-img {
  width: 380px;
  height: 260px;
  object-fit: cover;
  border-radius: 16px;
  flex-shrink: 0;
  display: block;
}

/* ── Google Reviews carousel ──────────────────────────── */

.rev-overflow {
  overflow: hidden;
  width: 100%;
}

.rev-track {
  display: flex;
  gap: 24px;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.review-card {
  flex: 0 0 calc((100% - 48px) / 3);
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.04);
}

html.dark .review-card {
  background: #1e2228;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.rev-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.rev-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: #111;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
}

.rev-arrow:hover {
  background: #f36200;
  color: #fff;
  border-color: #f36200;
  box-shadow: 0 4px 16px rgba(243, 98, 0, 0.35);
  transform: translateY(-50%) scale(1.08);
}

html.dark .rev-arrow {
  background: #2a2f38;
  border-color: rgba(255, 255, 255, 0.12);
  color: #fff;
}

html.dark .rev-arrow:hover {
  background: #f36200;
  border-color: #f36200;
}

.rev-arrow-left  { left: -22px; }
.rev-arrow-right { right: -22px; }

.rev-dots-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.rev-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.18);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.25s, transform 0.25s;
}

.rev-dot.active {
  background: #f36200;
  transform: scale(1.4);
}

html.dark .rev-dot {
  background: rgba(255, 255, 255, 0.25);
}

html.dark .rev-dot.active {
  background: #f36200;
}

@media (max-width: 1023px) {
  .review-card {
    flex: 0 0 calc((100% - 24px) / 2);
  }
  .rev-arrow-left  { left: -16px; }
  .rev-arrow-right { right: -16px; }
}

@media (max-width: 639px) {
  .review-card {
    flex: 0 0 100%;
  }
  .rev-arrow { display: none; }
}

/* ── Footer social links ─────────────────────────────── */

.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.65);
  transition: background 0.2s ease, color 0.2s ease;
  text-decoration: none;
}

.footer-social-link:hover {
  background: #f36200;
  color: #fff;
}

/* ── Back to top button ───────────────────────────────── */

#back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #f36200;
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 4px 16px rgba(243, 98, 0, 0.45);
  z-index: 999;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.25s ease;
}

#back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

#back-to-top:hover {
  background: #c44e00;
  box-shadow: 0 6px 24px rgba(243, 98, 0, 0.6);
}

#back-to-top.on-orange {
  background: #fff;
  color: #f36200;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

#back-to-top.on-orange:hover {
  background: #111;
  color: #fff;
}

/* ── Hero slider ──────────────────────────────────────── */

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  z-index: 0;
  transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
  z-index: 1;
}

/* ── Hero overlay ──────────────────────────────────────── */

.hero-overlay {
  background: linear-gradient(
    120deg,
    rgba(29, 35, 39, 0.92) 0%,
    rgba(29, 35, 39, 0.65) 45%,
    rgba(29, 35, 39, 0.35) 100%
  );
}

html.dark .hero-overlay {
  background: linear-gradient(
    120deg,
    rgba(10, 12, 14, 0.95) 0%,
    rgba(10, 12, 14, 0.75) 45%,
    rgba(10, 12, 14, 0.45) 100%
  );
}
