/* ----------------------------------------------------------- */
/*  Electrotwins — estilos adicionais
/*  WhatsApp, loja, animações, efeitos 3D e ajustes responsivos
/* ----------------------------------------------------------- */
:root {
  --et-primary: #ffb600;
  --et-primary-dark: #e6a400;
  --et-dark: #1b1f23;
  --et-ink: #303030;
  --et-muted: #6b7178;
  --et-wa: #25d366;
  --et-wa-dark: #128c4b;
  --et-radius: 14px;
  --et-shadow: 0 10px 30px rgba(20, 24, 28, .10);
  --et-shadow-lg: 0 24px 50px rgba(20, 24, 28, .18);
}

html {
  scroll-behavior: smooth;
}

img {
  max-width: 100%;
}

/* ---------- Barra de progresso ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--et-primary), #ff7a00);
  transform-origin: 0 50%;
  transform: scaleX(0);
  z-index: 10000;
  pointer-events: none;
}

/* ---------- Animações de entrada ---------- */
.js-ready [data-reveal] {
  opacity: 0;
  transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1);
  will-change: opacity, transform;
}

.js-ready [data-reveal="up"] { transform: translate3d(0, 40px, 0); }
.js-ready [data-reveal="left"] { transform: translate3d(-50px, 0, 0); }
.js-ready [data-reveal="right"] { transform: translate3d(50px, 0, 0); }
.js-ready [data-reveal="zoom"] { transform: scale(.88); }
.js-ready [data-reveal="flip"] { transform: perspective(900px) rotateX(35deg) translateY(30px); transform-origin: 50% 100%; }

.js-ready [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Banner: zoom lento (Ken Burns) ---------- */
.banner-carousel .banner-carousel-item {
  position: relative;
  overflow: hidden;
}

.banner-carousel .banner-carousel-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: inherit;
  background-size: cover;
  transform: scale(1);
  transition: transform 8s ease-out;
}

.banner-carousel .banner-carousel-item.slick-current::before {
  transform: scale(1.14);
}

.banner-carousel .banner-carousel-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(10, 12, 16, .78) 0%, rgba(10, 12, 16, .35) 60%, rgba(10, 12, 16, .15) 100%);
}

.banner-carousel .slider-content {
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 40px;
  background: rgba(255, 182, 0, .18);
  border: 1px solid rgba(255, 182, 0, .5);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: 18px;
  backdrop-filter: blur(4px);
}

.hero-badge i {
  color: var(--et-primary);
}

.slider-content .btn {
  margin: 6px;
}

/* ---------- Botões ---------- */
.btn {
  transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease, color .25s ease;
}

.btn-primary:hover,
.btn-wa:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, .15);
}

.btn-wa {
  background: var(--et-wa);
  color: #fff;
  font-weight: 700;
  border-radius: 6px;
  padding: 10px 18px;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-wa:hover,
.btn-wa:focus {
  background: var(--et-wa-dark);
  color: #fff;
}

.btn-wa.disabled {
  pointer-events: none;
  opacity: .5;
}

.btn-wa i {
  font-size: 1.2em;
}

/* ---------- Navegação ---------- */
.site-navigation .nav-link .nav-shop-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  font-size: 10px;
  line-height: 16px;
  border-radius: 10px;
  background: var(--et-wa);
  color: #fff;
  vertical-align: middle;
  animation: et-pulse-tag 2.4s infinite;
}

@keyframes et-pulse-tag {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  z-index: 9990;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.wa-btn {
  position: relative;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--et-wa);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 34px;
  box-shadow: 0 10px 25px rgba(37, 211, 102, .45);
  transition: transform .25s ease;
}

.wa-btn:hover {
  color: #fff;
  transform: scale(1.08) rotate(-8deg);
}

.wa-btn::before,
.wa-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--et-wa);
  animation: et-ripple 2.4s infinite;
}

.wa-btn::after {
  animation-delay: 1.2s;
}

@keyframes et-ripple {
  from { transform: scale(1); opacity: .7; }
  to { transform: scale(1.8); opacity: 0; }
}

.wa-bubble {
  position: relative;
  max-width: 250px;
  padding: 14px 30px 14px 16px;
  background: #fff;
  color: var(--et-ink);
  border-radius: 14px 14px 4px 14px;
  box-shadow: var(--et-shadow-lg);
  font-size: 14px;
  line-height: 1.45;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(.95);
  transform-origin: bottom right;
  transition: all .35s ease;
}

.wa-bubble.show {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.wa-bubble-close {
  position: absolute;
  top: 4px;
  right: 8px;
  border: 0;
  background: none;
  font-size: 20px;
  line-height: 1;
  color: var(--et-muted);
  cursor: pointer;
}

#back-to-top.position-fixed {
  right: auto;
  left: 22px;
  bottom: 22px;
}

/* ---------- Efeito 3D (tilt) ---------- */
.tilt-3d {
  position: relative;
  transform-style: preserve-3d;
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s ease;
}

.tilt-3d:hover {
  box-shadow: var(--et-shadow-lg);
}

.tilt-glare {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s ease;
  mix-blend-mode: soft-light;
  z-index: 3;
}

/* ---------- Estatísticas ---------- */
.et-stats {
  position: relative;
  padding: 70px 0;
  background: var(--et-dark) url(../images/slider-main/bg2.jpeg) center / cover fixed;
  color: #fff;
  overflow: hidden;
}

.et-stats::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(20, 22, 26, .92), rgba(20, 22, 26, .75));
}

.et-stats .container {
  position: relative;
}

.et-stat {
  text-align: center;
  padding: 18px 10px;
}

.et-stat i {
  font-size: 34px;
  color: var(--et-primary);
  margin-bottom: 12px;
}

.et-stat .et-stat-num {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 46px;
  font-weight: 800;
  line-height: 1;
}

.et-stat .et-stat-label {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, .75);
}

/* ---------- Cubo 3D com fotos reais ---------- */
.cube-scene {
  width: 240px;
  height: 240px;
  margin: 40px auto;
  perspective: 900px;
}

.cube {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  animation: et-cube-spin 18s linear infinite;
}

.cube-scene:hover .cube {
  animation-play-state: paused;
}

.cube-face {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  border: 3px solid #fff;
  border-radius: 6px;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, .25);
}

.cube-face.f1 { transform: rotateY(0deg) translateZ(120px); }
.cube-face.f2 { transform: rotateY(90deg) translateZ(120px); }
.cube-face.f3 { transform: rotateY(180deg) translateZ(120px); }
.cube-face.f4 { transform: rotateY(-90deg) translateZ(120px); }
.cube-face.f5 { transform: rotateX(90deg) translateZ(120px); }
.cube-face.f6 { transform: rotateX(-90deg) translateZ(120px); }

@keyframes et-cube-spin {
  0% { transform: rotateX(-18deg) rotateY(0deg); }
  50% { transform: rotateX(18deg) rotateY(180deg); }
  100% { transform: rotateX(-18deg) rotateY(360deg); }
}

.cube-shadow {
  width: 200px;
  height: 24px;
  margin: -10px auto 0;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, .25), transparent 70%);
  animation: et-shadow 18s linear infinite;
}

@keyframes et-shadow {
  0%, 100% { transform: scaleX(1); }
  50% { transform: scaleX(.8); }
}

/* ---------- Galeria 3D em anel ---------- */
.ring-section {
  background: radial-gradient(ellipse at 50% 30%, #2b3036 0%, #15181b 70%);
  color: #fff;
  overflow: hidden;
}

.ring-section .section-title {
  color: var(--et-primary);
}

.ring-section .section-sub-title {
  color: #fff;
}

.ring-3d {
  position: relative;
  height: 420px;
  perspective: 1400px;
  cursor: grab;
  user-select: none;
  touch-action: pan-y;
  margin-top: 30px;
}

.ring-3d.dragging {
  cursor: grabbing;
}

.ring-3d-track {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 240px;
  height: 320px;
  margin: -160px 0 0 -120px;
  transform-style: preserve-3d;
}

.ring-card {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #222;
  box-shadow: 0 20px 40px rgba(0, 0, 0, .5);
  -webkit-box-reflect: below 12px linear-gradient(transparent 70%, rgba(255, 255, 255, .18));
}

.ring-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.ring-card figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 30px 14px 12px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .85));
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 14px;
}

.ring-card figcaption small {
  display: block;
  color: var(--et-primary);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 1px;
}

.ring-controls {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 30px;
}

.ring-controls button {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .35);
  background: rgba(255, 255, 255, .06);
  color: #fff;
  transition: background .25s ease;
}

.ring-controls button:hover {
  background: var(--et-primary);
  border-color: var(--et-primary);
}

.ring-hint {
  text-align: center;
  color: rgba(255, 255, 255, .6);
  font-size: 13px;
  margin-top: 10px;
}

@media (max-width: 575px) {
  .ring-3d { height: 340px; }
  .ring-3d-track { width: 170px; height: 230px; margin: -115px 0 0 -85px; }
}

/* ---------- Loja ---------- */
.shop-section {
  background: #f7f8fa;
}

.shop-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
}

.shop-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.shop-chip {
  border: 1px solid #e1e4e8;
  background: #fff;
  color: var(--et-ink);
  padding: 8px 16px;
  border-radius: 40px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all .25s ease;
}

.shop-chip i {
  margin-right: 4px;
  color: var(--et-primary);
}

.shop-chip:hover {
  border-color: var(--et-primary);
}

.shop-chip.active {
  background: var(--et-dark);
  border-color: var(--et-dark);
  color: #fff;
}

.shop-search {
  position: relative;
  flex: 1 1 240px;
  max-width: 340px;
}

.shop-search input {
  width: 100%;
  height: 44px;
  padding: 0 16px 0 40px;
  border: 1px solid #e1e4e8;
  border-radius: 40px;
  font-size: 14px;
}

.shop-search input:focus {
  outline: 0;
  border-color: var(--et-primary);
  box-shadow: 0 0 0 3px rgba(255, 182, 0, .2);
}

.shop-search i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--et-muted);
}

.product-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--et-radius);
  overflow: hidden;
  box-shadow: var(--et-shadow);
}

.product-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #eee;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}

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

.product-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 4px 12px;
  border-radius: 20px;
  background: var(--et-primary);
  color: #111;
  font-size: 12px;
  font-weight: 700;
  transform: translateZ(30px);
}

.product-cat {
  position: absolute;
  bottom: 12px;
  left: 14px;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(0, 0, 0, .6);
  color: #fff;
  font-size: 11px;
  letter-spacing: .5px;
  text-transform: uppercase;
}

.product-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 20px;
}

.product-title {
  font-size: 18px;
  margin-bottom: 8px;
}

.product-desc {
  color: var(--et-muted);
  font-size: 14px;
  flex: 1;
}

.product-price {
  font-family: 'Montserrat', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--et-dark);
  margin-bottom: 14px;
}

.product-price.is-quote {
  font-size: 15px;
  color: var(--et-wa-dark);
}

.product-actions {
  display: flex;
  gap: 10px;
}

.product-actions .btn-wa {
  flex: 1;
}

.btn-outline-cart {
  width: 48px;
  border: 1px solid #e1e4e8;
  background: #fff;
  border-radius: 6px;
  color: var(--et-ink);
}

.btn-outline-cart:hover {
  border-color: var(--et-primary);
  color: var(--et-primary);
}

.btn-outline-cart.added {
  background: var(--et-primary);
  border-color: var(--et-primary);
  color: #111;
  animation: et-pop .5s ease;
}

@keyframes et-pop {
  50% { transform: scale(1.2); }
}

.shop-empty {
  padding: 50px 0;
  color: var(--et-muted);
}

.shop-empty i {
  font-size: 40px;
  margin-bottom: 12px;
}

.shop-steps {
  margin-top: 30px;
}

.shop-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px;
  background: #fff;
  border-radius: var(--et-radius);
  box-shadow: var(--et-shadow);
  height: 100%;
}

.shop-step span {
  flex: 0 0 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--et-primary);
  color: #111;
  display: grid;
  place-items: center;
  font-weight: 800;
}

.shop-step h4 {
  font-size: 16px;
  margin-bottom: 4px;
}

.shop-step p {
  margin: 0;
  font-size: 14px;
  color: var(--et-muted);
}

/* ---------- Carrinho / pedido ---------- */
.cart-fab {
  position: fixed;
  right: 28px;
  bottom: calc(100px + env(safe-area-inset-bottom, 0px));
  z-index: 9989;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: var(--et-dark);
  color: #fff;
  font-size: 20px;
  box-shadow: var(--et-shadow-lg);
  transform: scale(0);
  transition: transform .3s cubic-bezier(.3, 1.6, .5, 1);
}

.cart-root.has-items .cart-fab {
  transform: scale(1);
}

.cart-fab.bump {
  animation: et-pop .5s ease;
}

.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  border-radius: 11px;
  background: var(--et-primary);
  color: #111;
  font-size: 12px;
  font-weight: 800;
  line-height: 22px;
}

.cart-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  z-index: 9995;
  opacity: 0;
  visibility: hidden;
  transition: all .3s ease;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(400px, 100%);
  background: #fff;
  z-index: 9996;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .4s cubic-bezier(.2, .7, .2, 1);
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.cart-root.open .cart-backdrop {
  opacity: 1;
  visibility: visible;
}

.cart-root.open .cart-drawer {
  transform: none;
}

.cart-drawer header,
.cart-drawer footer {
  padding: 18px 20px;
  border-bottom: 1px solid #eee;
}

.cart-drawer header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-drawer header h3 {
  margin: 0;
  font-size: 20px;
}

.cart-drawer footer {
  border-top: 1px solid #eee;
  border-bottom: 0;
}

.cart-close {
  border: 0;
  background: none;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 10px 20px;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}

.cart-item img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
}

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item-info strong {
  display: block;
  font-size: 14px;
}

.cart-item-info small {
  color: var(--et-muted);
}

.cart-qty {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-qty button {
  width: 28px;
  height: 28px;
  border: 1px solid #ddd;
  border-radius: 50%;
  background: #fff;
  line-height: 1;
}

.cart-empty {
  text-align: center;
  color: var(--et-muted);
  padding: 50px 0;
}

.cart-empty i {
  display: block;
  font-size: 40px;
  margin-bottom: 10px;
}

.cart-note {
  font-size: 13px;
  color: var(--et-muted);
}

/* ---------- Formulários ---------- */
.form-status {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
}

.form-status:empty {
  display: none;
}

.form-status.success {
  background: #e8f8ee;
  color: #146c3a;
}

.form-status.error {
  background: #fdecec;
  color: #a12626;
}

.form-status a {
  font-weight: 700;
  text-decoration: underline;
  color: inherit;
}

.form-hp {
  position: absolute;
  left: -9999px;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.newsletter-form .input-group .form-control {
  border-radius: 6px 0 0 6px;
}

.newsletter-form .input-group .btn {
  border-radius: 0 6px 6px 0;
  background: var(--et-dark);
  color: #fff;
  font-weight: 700;
  padding: 0 22px;
}

.subscribe .form-status {
  margin-top: 8px;
}

/* ---------- Secção CTA WhatsApp ---------- */
.wa-cta {
  background: linear-gradient(120deg, #128c4b, #25d366);
  color: #fff;
  border-radius: var(--et-radius);
  padding: 36px;
  position: relative;
  overflow: hidden;
}

.wa-cta::after {
  content: '\f232';
  font-family: 'Font Awesome 5 Brands';
  position: absolute;
  right: -20px;
  bottom: -50px;
  font-size: 200px;
  opacity: .12;
  transform: rotate(-15deg);
}

.wa-cta h3 {
  color: #fff;
  margin-bottom: 6px;
}

.wa-cta .btn {
  background: #fff;
  color: var(--et-wa-dark);
  font-weight: 700;
}

/* ---------- Ajustes responsivos ---------- */
@media (max-width: 991px) {
  .header-right .top-info-box {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 575px) {
  .wa-btn { width: 56px; height: 56px; font-size: 30px; }
  .wa-float { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
  .cart-fab { right: 18px; bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
  #back-to-top.position-fixed { left: 16px; bottom: 16px; }
  .slider-content .btn { display: block; margin: 8px auto; max-width: 260px; }
  .et-stat .et-stat-num { font-size: 36px; }
  .wa-cta { padding: 26px 20px; }
  .et-stats { background-attachment: scroll; }
}

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

/* ---------- Projectos: proporção uniforme das fotos reais ---------- */
.shuffle-item .project-img-container img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.shuffle-item .project-img-container {
  margin: 0 0 30px;
  border-radius: 10px;
}
