/* smarthome.css — estilos só da página Smarthome */

:root{
  --smart-orange: #c45a14;
  --smart-orange-2: #8f3e0d;

  /* ✅ azul escuro (substitui o “amarelo”) */
  --smart-blue-dark: #0B2C5F;

  --smart-text: #0f172a;

  /* ✅ fallback local (evita quebrar se não existir no style.css) */
  --laranjaEscuro: #8f3e0d;
}

.smart-page{
  background: #fff;
  min-height: 40vh; /* evita página “colada” no footer quando vazia */
}

/* HERO com vídeo */
.smart-hero-video{
  position: relative;
  min-height: 520px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #0b0b0b;
}

.smart-bg-video{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
  filter: saturate(1.10) contrast(1.06) brightness(.95);
}

.smart-video-overlay{
  position: absolute;
  inset: 0;
  background:
    /* ✅ era amarelo (255,210,46) -> agora azul escuro */
    radial-gradient(900px 420px at 20% 0%, rgba(11,44,95,.24), transparent 60%),
    radial-gradient(900px 520px at 90% 10%, rgba(196,90,20,.18), transparent 55%),
    linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.68));
}

.smart-hero-inner{
  position: relative;
  z-index: 2;
  max-width: 1100px;
  width: 100%;
  padding: 0 20px;
  text-align: center;
  color: #fff;
}

.smart-pill{
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: .35px;
  text-transform: uppercase;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(6px);
  margin-bottom: 14px;
}

.smart-hero-title{
  margin: 0;
  font-size: 54px;
  line-height: 1.06;
  letter-spacing: -0.7px;
  font-weight: 900;
  text-shadow: 0 18px 50px rgba(0,0,0,.55);
}

.smart-hero-title span{
  color: var(--smart-blue-dark);
}

.smart-hero-sub{
  margin: 14px auto 0;
  max-width: 820px;
  font-size: 16px;
  line-height: 1.65;
  color: rgba(255,255,255,.90);
}

.smart-hero-actions{
  margin-top: 22px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.smart-btn{
  height: 48px;
  padding: 0 18px;
  border-radius: 14px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  transition: transform .15s ease, opacity .15s ease, filter .15s ease;
}

.smart-btn:hover{
  transform: translateY(-2px);
  opacity: .96;
}

.smart-btn-primary{
  background: linear-gradient(135deg, var(--smart-orange), var(--smart-orange-2));
  color: #fff;
  box-shadow: 0 18px 44px rgba(0,0,0,.22);
}

.smart-btn-ghost{
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.20);
  color: #fff;
  backdrop-filter: blur(6px);
}

.smart-sound-toggle{
  margin-top: 14px;
  background: rgba(0,0,0,.35);
  color: rgba(255,255,255,.92);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  padding: 9px 12px;
  font-weight: 900;
  cursor: pointer;
  display: none; /* aparece só no desktop */
}

.smart-section{
  padding: 90px 20px;
  background: #fff;
}

.smart-container{
  max-width: 1100px;
  margin: 0 auto;
}

.smart-muted{
  color: rgba(0,0,0,.70);
  line-height: 1.7;
}

/* Desktop */
@media (min-width: 1024px){
  .smart-sound-toggle{ display: inline-flex; }
}

/* Mobile */
@media (max-width: 900px){
  .smart-hero-video{ min-height: 520px; }
  .smart-hero-title{ font-size: 40px; }
}

/* =========================
   SHOWCASE
========================= */
.smart-showcase{
  padding:100px 20px;
  background:#fff;
}

.smart-section-title{
  text-align:center;
  font-size:34px;
  margin-bottom:40px;
  color: var(--laranjaEscuro);
}

.smart-showcase-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:22px;
}

.smart-showcase-card{
  position:relative;
  overflow:hidden;
  border-radius:18px;
  cursor:pointer;
}

.smart-showcase-card img{
  width:100%;
  height:320px;
  object-fit:cover;
  display:block;
  transition:transform .6s ease;
}

.smart-overlay{
  position:absolute;
  inset:0;
  background:linear-gradient(
    180deg,
    rgba(0,0,0,.15),
    rgba(0,0,0,.55),
    rgba(0,0,0,.85)
  );
  transition:background .4s ease;
}

.smart-card-content{
  position:absolute;
  bottom:20px;
  left:20px;
  right:20px;
  color:#fff;
}

.smart-card-content h3{
  font-size:18px;
  font-weight:900;
  margin-bottom:6px;
  transition:transform .4s ease;
}

.smart-card-content p{
  font-size:14px;
  opacity:.9;
  margin-bottom:12px;
  transition:opacity .4s ease;
}

.smart-line{
  display:block;
  width:40px;
  height:3px;
  background:linear-gradient(90deg,var(--laranjaEscuro),#ff7a00);
  transition:width .4s ease;
}

/* HOVER EFFECT */
.smart-showcase-card:hover img{
  transform:scale(1.08);
}

.smart-showcase-card:hover .smart-overlay{
  background:linear-gradient(
    180deg,
    rgba(0,0,0,.25),
    rgba(0,0,0,.70),
    rgba(0,0,0,.95)
  );
}

.smart-showcase-card:hover .smart-card-content h3{
  transform:translateY(-4px);
}

.smart-showcase-card:hover .smart-line{
  width:80px;
}

.smart-showcase-card:hover{
  box-shadow:0 30px 80px rgba(196,90,20,.35);
}

/* RESPONSIVO */
@media(max-width:980px){
  .smart-showcase-grid{
    grid-template-columns:1fr;
  }
}

/* =========================
   APP CONTROL
========================= */
.smart-app-control{
  padding:100px 20px;
  background:#fafafa;
}

.smart-app-grid{
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:40px;
  align-items:center;
}

.smart-app-text h2{
  font-size:32px;
  margin-bottom:14px;
  color:var(--laranjaEscuro);
}

.smart-app-text p{
  font-size:16px;
  line-height:1.7;
  color:#444;
}

.smart-app-visual img{
  width:100%;
  border-radius:18px;
  box-shadow:0 30px 70px rgba(0,0,0,.15);
  transition:transform .6s ease;
}

.smart-app-visual img:hover{
  transform:scale(1.04);
}

@media(max-width:980px){
  .smart-app-grid{
    grid-template-columns:1fr;
  }
}

/* =========================
   SOLAR INTEGRATION
========================= */
.smart-solar-integration{
  padding:100px 20px;
  background:#fff;
}

.smart-solar-grid{
  display:grid;
  grid-template-columns:.9fr 1.1fr;
  gap:40px;
  align-items:center;
}

.smart-solar-text h2{
  font-size:32px;
  margin-bottom:14px;
  color:var(--laranjaEscuro);
}

.smart-solar-text p{
  font-size:16px;
  line-height:1.7;
  color:#444;
}

.smart-solar-visual img{
  width:100%;
  border-radius:18px;
  box-shadow:0 30px 70px rgba(196,90,20,.15);
  transition:transform .6s ease;
}

.smart-solar-visual img:hover{
  transform:scale(1.04);
}

@media(max-width:980px){
  .smart-solar-grid{
    grid-template-columns:1fr;
  }
}

/* =========================
   Instagram flutuante
   ✅ Corrigido: agora bate com o HTML (instagram-float)
========================= */
.instagram-float{
  position: fixed;
  left: 18px;
  bottom: 18px;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  z-index: 9999;

  color: #fff;
  background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
  box-shadow: 0 18px 44px rgba(0,0,0,.22);
  text-decoration: none;

  transition: transform .15s ease, opacity .15s ease, filter .15s ease;
}

.instagram-float:hover{
  transform: translateY(-2px);
  opacity: .96;
}

@media (max-width: 480px){
  .instagram-float{
    left: 14px;
    bottom: 14px;
    width: 50px;
    height: 50px;
    border-radius: 14px;
  }
}
/* =========================
   REDES MESH — NOVA SEÇÃO (ESYS)
========================= */
.esys-mesh{
  padding: 64px 0;
  background: #ffffff;
}

.esys-mesh__container{
  width: min(1180px, 92%);
  margin: 0 auto;

  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 38px;
  align-items: center;

  /* evita “corte” por overflow de grid */
  overflow: visible;
}

.esys-mesh__container > *{
  min-width: 0; /* ✅ essencial pra não estourar */
}

.esys-mesh__badge{
  display: inline-flex;
  align-items: center;
  gap: 10px;

  padding: 10px 14px;
  border-radius: 999px;

  font-weight: 900;
  letter-spacing: .06em;
  font-size: 12px;

  background: rgba(196,90,20,.14);
  color: #c45a14;
}

.esys-mesh__title{
  margin: 16px 0 12px;
  font-size: clamp(34px, 4.2vw, 58px);
  line-height: 1.05;
  color: #111;
  font-weight: 900;
}

.esys-mesh__title span{
  display: block;
}

.esys-mesh__title strong{
  color: #c45a14;
}

.esys-mesh__text{
  margin: 0 0 22px;
  max-width: 60ch;
  font-size: 16px;
  line-height: 1.7;
  color: #333;
}

.esys-mesh__cards{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.esys-mesh__card{
  display: flex;
  gap: 12px;
  align-items: flex-start;

  padding: 16px 16px;
  border-radius: 16px;

  background: #f6f6f7;
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 12px 26px rgba(0,0,0,.06);

  transform: translateY(0);
  transition: transform .22s ease, box-shadow .22s ease;
}

.esys-mesh__card:hover{
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(0,0,0,.10);
}

.esys-mesh__icon{
  width: 42px;
  height: 42px;
  border-radius: 12px;

  display: grid;
  place-items: center;

  background: rgba(31,63,138,.10);
  color: #1f3f8a;
  font-size: 18px;
  flex: 0 0 42px;
}

.esys-mesh__card h3{
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 900;
  color: #111;
}

.esys-mesh__card p{
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #444;
}

.esys-mesh__cta{
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.esys-mesh__btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 12px 16px;
  border-radius: 14px;

  font-weight: 900;
  text-decoration: none;

  background: #c45a14;
  color: #fff;

  box-shadow: 0 14px 30px rgba(196,90,20,.25);
  transition: transform .2s ease, filter .2s ease;
}

.esys-mesh__btn:hover{
  transform: translateY(-1px);
  filter: brightness(1.02);
}

.esys-mesh__hint{
  font-size: 13px;
  color: #555;
}

/* ===== DIREITA (imagem) ===== */
.esys-mesh__right{
  display: flex;
  justify-content: center;
}

.esys-mesh__imageCard{
  position: relative;
  width: min(420px, 100%);
  border-radius: 22px;
  overflow: hidden;

  background: #0f172a;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 22px 50px rgba(0,0,0,.18);

  transform: translateY(0);
  transition: transform .35s ease;
}

.esys-mesh__imageCard:hover{
  transform: translateY(-3px);
}

.esys-mesh__img{
  width: 100%;
  height: 520px;
  object-fit: cover;
  display: block;
  opacity: .92;
}

.esys-mesh__glow{
  position: absolute;
  inset: -40px;
  background: radial-gradient(circle at 30% 20%, rgba(196,90,20,.35), transparent 55%),
              radial-gradient(circle at 70% 70%, rgba(31,63,138,.30), transparent 55%);
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: .9;
  animation: esysMeshGlow 4.5s ease-in-out infinite;
}

@keyframes esysMeshGlow{
  0%, 100% { transform: scale(1) translateY(0); }
  50%      { transform: scale(1.02) translateY(6px); }
}

/* bolinhas decorativas */
.esys-mesh__dot{
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 0 0 6px rgba(255,255,255,.10);
  opacity: .9;
  animation: esysDot 2.8s ease-in-out infinite;
}

.esys-mesh__dot.d1{ top: 22%; left: 16%; animation-delay: 0s; }
.esys-mesh__dot.d2{ top: 52%; left: 78%; animation-delay: .4s; }
.esys-mesh__dot.d3{ top: 78%; left: 28%; animation-delay: .8s; }

@keyframes esysDot{
  0%, 100% { transform: translateY(0) scale(1); opacity: .85; }
  50%      { transform: translateY(-8px) scale(1.08); opacity: 1; }
}

/* ===== Responsivo (resolve o “corte”) ===== */
@media (max-width: 1150px){
  .esys-mesh__container{
    grid-template-columns: 1fr;
  }

  .esys-mesh__right{
    justify-content: center;
  }

  .esys-mesh__img{
    height: 460px;
  }
}

@media (max-width: 640px){
  .esys-mesh{
    padding: 52px 0;
  }

  .esys-mesh__cards{
    grid-template-columns: 1fr;
  }

  .esys-mesh__img{
    height: 360px;
  }
}

/* =========================
   MESH CARDS — AZUL ESCURO
========================= */

.esys-mesh__cards{
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 18px;
}

.esys-mesh__card{
  background: #0f1a3a; /* azul escuro */
  border-radius: 18px;
  padding: 22px 20px;

  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 12px 28px rgba(0,0,0,.35);

  transition: transform .25s ease, box-shadow .25s ease;
}

.esys-mesh__card:hover{
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0,0,0,.45);
}

.esys-mesh__card h3{
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 900;
  color: #fff;
}

.esys-mesh__card p{
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: #cbd3ff;
}

/* mobile */
@media (max-width: 640px){
  .esys-mesh__cards{
    grid-template-columns: 1fr;
  }
}