:root {
  --azure:#0078D4;
  --azure-dark:#005A9E;
  --navy:#050e2d;
}

*{margin:0;padding:0;box-sizing:border-box}
body{font-family:'Poppins',sans-serif;overflow-x:hidden}

/* ═══════════════════════════════════════════
   MOBILE-FIRST BASE (< 768px)
   ═══════════════════════════════════════════ */

/* ── NAV ── */
nav{
  position:fixed;top:0;left:0;right:0;height:64px;
  background:#fff;display:flex;align-items:center;
  justify-content:space-between;padding:0 4%;
  box-shadow:0 2px 20px rgba(0,0,0,.05);
  z-index:1000;
}

.nav-logo{
  display:flex;align-items:center;
}
.logo-link{
  display:flex;align-items:center;gap:8px;
  text-decoration:none;
}
.logo-number{
  font-family:'Inter',sans-serif;
  font-size:2.4rem;
  font-weight:900;
  color:var(--azure);
  letter-spacing:-2px;
  line-height:1;
}
.logo-number sup{
  font-size:.42em;
  font-weight:800;
  color:var(--azure-dark);
}
.logo-text{
  font-family:'Inter',sans-serif;
  font-size:.65rem;
  font-weight:600;
  color:var(--navy);
  letter-spacing:1px;
  text-transform:uppercase;
  line-height:1.4;
  opacity:.75;
}

/* ── Hamburger Button ── */
.nav-toggle{
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:5px;
  background:none;
  border:none;
  cursor:pointer;
  padding:8px;
  z-index:1100;
}
.nav-toggle span{
  display:block;
  width:26px;
  height:3px;
  background:var(--navy);
  border-radius:3px;
  transition:transform .3s, opacity .3s;
}
.nav-toggle.active span:nth-child(1){
  transform:rotate(45deg) translate(5px,6px);
}
.nav-toggle.active span:nth-child(2){
  opacity:0;
}
.nav-toggle.active span:nth-child(3){
  transform:rotate(-45deg) translate(5px,-6px);
}

/* ── Mobile Nav Links ── */
.nav-links{
  display:none;
  flex-direction:column;
  position:fixed;
  top:64px;
  left:0;right:0;
  background:#fff;
  padding:20px 5%;
  gap:0;
  list-style:none;
  box-shadow:0 8px 24px rgba(0,0,0,.1);
  z-index:999;
}
.nav-links.active{
  display:flex;
}
.nav-links li{
  border-bottom:1px solid #f0f0f0;
}
.nav-links li:last-child{
  border-bottom:none;
  padding-top:10px;
}
.nav-links a{
  text-decoration:none;
  color:#333;
  font-weight:500;
  display:block;
  padding:14px 0;
  font-size:1rem;
}

/* DROPDOWN mobile */
.dropdown{position:relative}
.dropdown-menu{
  display:none;
  position:static;
  background:#f9f9f9;
  min-width:auto;
  border-radius:8px;
  box-shadow:none;
  list-style:none;
  padding:0;
  margin:0 0 4px 16px;
}
.dropdown-menu li a{
  display:block;
  padding:10px 16px;
  white-space:nowrap;
  transition:background .2s;
  font-size:.9rem;
}
.dropdown-menu li a:hover{
  background:#e6f2ff;
  color:var(--azure);
}
.dropdown.open .dropdown-menu{display:block}

.nav-cta{
  background:var(--azure);
  color:#fff!important;
  padding:12px 22px;
  border-radius:8px;
  text-align:center;
}

/* ── Sections ── */
section{padding:80px 5% 60px}

.hero{
  background:linear-gradient(160deg,#eef6ff,#d7e9ff);
  padding-top:100px;
}
.hero h1{
  font-size:1.8rem;
  font-weight:800;
  margin-bottom:16px;
  line-height:1.25;
}
.hero p{
  font-size:.95rem;
  max-width:750px;
  line-height:1.7;
}

.btn{
  display:inline-block;margin-top:24px;
  background:var(--azure);
  color:#fff;padding:14px 24px;
  border-radius:8px;text-decoration:none;font-weight:600;
  font-size:.95rem;
}

/* ── Grid ── */
.grid{
  display:grid;
  grid-template-columns:1fr;
  gap:16px;
  margin-top:30px;
}

.card{
  background:#fff;border-radius:14px;
  padding:24px;
  box-shadow:0 4px 20px rgba(0,0,0,.05);
  border:1px solid #eee;
}

.tech-tag{
  display:inline-block;
  background:#e6f2ff;
  color:var(--azure);
  padding:5px 12px;
  border-radius:20px;
  font-size:.75rem;
  margin-top:12px;
}

.card-link{
  text-decoration:none;
  color:inherit;
  transition:border-color .2s, box-shadow .2s;
  cursor:pointer;
}
.card-link:hover{
  border-color:var(--azure);
  box-shadow:0 6px 24px rgba(0,120,212,.15);
}

.contact{background:#f5f8ff}

footer{
  background:var(--navy);
  color:#fff;
  padding:40px 5%;
  text-align:center;
  font-size:.85rem;
  line-height:1.8;
}
footer a{color:#8bb8e8;text-decoration:none}
footer a:hover{color:#fff}

/* BOTÃO FLUTUANTE WHATSAPP */
.whatsapp-float{
  position:fixed;
  width:54px;
  height:54px;
  bottom:20px;
  right:16px;
  background:#25D366;
  color:#fff;
  border-radius:50%;
  text-align:center;
  font-size:26px;
  box-shadow:0 4px 20px rgba(0,0,0,.3);
  z-index:100;
  display:flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  transition:.3s;
}
.whatsapp-float:hover{
  transform:scale(1.1);
}

/* ═══════════════════════════════════════════
   PÁGINA GARMIN (mobile)
   ═══════════════════════════════════════════ */

.garmin-hero{
  background:linear-gradient(160deg,#eef6ff,#d7e9ff);
  text-align:center;
  padding-top:100px;
}
.garmin-hero h1{font-size:1.8rem;font-weight:800;margin-bottom:10px}
.garmin-hero p{font-size:.95rem;color:#555}

/* Card de produto */
.garmin-products{
  display:flex;justify-content:center;
  padding:40px 5%;
}
.product-card{
  background:#fff;
  border-radius:16px;
  padding:24px 20px;
  max-width:480px;
  width:100%;
  box-shadow:0 6px 30px rgba(0,0,0,.08);
  border:1px solid #eee;
  text-align:center;
}
.product-header h2{
  font-size:1.4rem;font-weight:700;margin-top:12px;
}
.product-description{
  margin-top:16px;
  padding:14px 16px;
  background:#f8fbff;
  border-radius:10px;
  border:1px solid #e4edfa;
  text-align:left;
  line-height:1.7;
  color:#444;
  font-size:.88rem;
}
.btn-comprar{
  margin-top:24px;
  cursor:pointer;
  border:none;
  font-family:inherit;
  font-size:1rem;
  transition:background .2s;
}
.btn-comprar:hover{background:var(--azure-dark)}

/* ── Checkout Dialog ──────────────────────── */
.checkout-overlay{
  display:none;
  position:fixed;inset:0;
  background:rgba(0,0,0,.45);
  z-index:1000;
  align-items:center;justify-content:center;
}
.checkout-overlay.active{display:flex}

.checkout-dialog{
  background:#fff;
  border-radius:16px;
  padding:24px 20px;
  width:94%;max-width:440px;
  position:relative;
  box-shadow:0 12px 40px rgba(0,0,0,.15);
  animation:slideUp .3s ease;
  max-height:90vh;
  overflow-y:auto;
}

@keyframes slideUp{
  from{opacity:0;transform:translateY(30px)}
  to{opacity:1;transform:translateY(0)}
}

.checkout-close{
  position:absolute;top:14px;right:18px;
  background:none;border:none;
  font-size:1.6rem;cursor:pointer;color:#999;
  transition:color .2s;
}
.checkout-close:hover{color:#333}

.checkout-dialog h2{
  font-size:1.3rem;font-weight:700;margin-bottom:4px;
}
.checkout-product-name{
  color:var(--azure);font-weight:600;margin-bottom:20px;
}

.form-group{margin-bottom:16px;text-align:left}
.form-group label{
  display:block;font-weight:600;font-size:.85rem;
  margin-bottom:6px;color:#333;
}
.form-group .optional{font-weight:400;color:#999}

.form-group input{
  width:100%;padding:12px 14px;
  border:1px solid #ddd;border-radius:8px;
  font-family:inherit;font-size:1rem;
  transition:border-color .2s;
  -webkit-appearance:none;
}
.form-group input:focus{
  outline:none;border-color:var(--azure);
  box-shadow:0 0 0 3px rgba(0,120,212,.12);
}

.field-error{
  display:block;
  color:#e53935;
  font-size:.78rem;
  margin-top:5px;
  min-height:1rem;
}
.input-error{
  border-color:#e53935!important;
  box-shadow:0 0 0 3px rgba(229,57,53,.12)!important;
}

.btn-pagar{
  width:100%;
  cursor:pointer;border:none;
  font-family:inherit;font-size:1rem;
  margin-top:6px;
  transition:background .2s;
}
.btn-pagar:hover{background:var(--azure-dark)}

/* ── Preço do produto no dialog ─────────────── */
.checkout-product-price{
  font-size:1.4rem;
  font-weight:800;
  color:var(--navy);
  margin-bottom:16px;
}

/* ── Etapa QR Code Pix ─────────────────────── */
.qr-instructions{
  color:#555;font-size:.9rem;margin-bottom:16px;
}
.pix-qr-img{
  width:180px;height:180px;
  margin:0 auto 16px;
  border-radius:12px;
  border:1px solid #eee;
}
.pix-code-wrapper{
  display:flex;
  flex-direction:column;
  gap:8px;
  margin-top:10px;
}
.pix-code-input{
  width:100%;
  padding:10px 12px;
  border:1px solid #ddd;border-radius:8px;
  font-family:monospace;font-size:.75rem;
  background:#f8f8f8;
  word-break:break-all;
}
.btn-copy{
  white-space:nowrap;
  padding:12px 16px;
  background:var(--azure);
  color:#fff;border:none;border-radius:8px;
  font-family:inherit;font-weight:600;
  cursor:pointer;font-size:.9rem;
  transition:background .2s;
  width:100%;
}
.btn-copy:hover{background:var(--azure-dark)}
.qr-waiting{
  margin-top:16px;
  font-size:.85rem;
  color:#888;
  animation:pulse 2s infinite;
}
@keyframes pulse{
  0%,100%{opacity:.5}
  50%{opacity:1}
}

/* ═══════════════════════════════════════════
   MODAL FALE CONOSCO (mobile)
   ═══════════════════════════════════════════ */
.contact-overlay{
  display:none;
  position:fixed;inset:0;
  background:rgba(0,0,0,.45);
  z-index:1000;
  align-items:center;justify-content:center;
}
.contact-overlay.active{display:flex}

.contact-dialog{
  background:#fff;
  border-radius:16px;
  padding:28px 20px;
  width:94%;max-width:460px;
  position:relative;
  box-shadow:0 12px 40px rgba(0,0,0,.15);
  animation:slideUp .3s ease;
  max-height:90vh;
  overflow-y:auto;
}
.contact-close{
  position:absolute;top:14px;right:18px;
  background:none;border:none;
  font-size:1.6rem;cursor:pointer;color:#999;
  transition:color .2s;
}
.contact-close:hover{color:#333}

.contact-dialog h2{
  font-size:1.3rem;font-weight:700;margin-bottom:18px;
  color:var(--navy);
}

.contact-dialog textarea{
  width:100%;padding:12px 14px;
  border:1px solid #ddd;border-radius:8px;
  font-family:inherit;font-size:1rem;
  transition:border-color .2s;
  resize:vertical;
  -webkit-appearance:none;
}
.contact-dialog textarea:focus{
  outline:none;border-color:var(--azure);
  box-shadow:0 0 0 3px rgba(0,120,212,.12);
}

.char-count{
  font-weight:400;color:#999;font-size:.8rem;
}

.contact-buttons{
  display:flex;gap:12px;margin-top:20px;
}
.btn-cancelar{
  flex:1;
  background:#e0e0e0;
  color:#333;
  cursor:pointer;border:none;
  font-family:inherit;font-size:.95rem;
  padding:12px 16px;
  border-radius:8px;font-weight:600;
  transition:background .2s;
}
.btn-cancelar:hover{background:#ccc}
.btn-enviar{
  flex:1;
  background:var(--azure);
  color:#fff;
  cursor:pointer;border:none;
  font-family:inherit;font-size:.95rem;
  padding:12px 16px;
  border-radius:8px;font-weight:600;
  transition:background .2s;
}
.btn-enviar:hover{background:var(--azure-dark)}

/* ═══════════════════════════════════════════
   TABLET (>= 576px)
   ═══════════════════════════════════════════ */
@media(min-width:576px){
  .grid{
    grid-template-columns:repeat(2,1fr);
    gap:20px;
  }
  .pix-code-wrapper{
    flex-direction:row;
  }
  .pix-code-input{
    flex:1;
    width:auto;
  }
  .btn-copy{
    width:auto;
  }
}

/* ═══════════════════════════════════════════
   DESKTOP (>= 768px)
   ═══════════════════════════════════════════ */
@media(min-width:768px){
  nav{
    height:80px;
    padding:0 5%;
  }

  .logo-number{
    font-size:3.4rem;
  }
  .logo-text{
    font-size:1rem;
    letter-spacing:1.8px;
  }

  /* Hide hamburger */
  .nav-toggle{
    display:none;
  }

  /* Desktop nav links */
  .nav-links{
    display:flex!important;
    flex-direction:row;
    position:static;
    background:none;
    padding:0;
    gap:30px;
    box-shadow:none;
    align-items:center;
  }
  .nav-links li{
    border-bottom:none;
  }
  .nav-links li:last-child{
    padding-top:0;
  }
  .nav-links a{
    padding:0;
  }

  /* Desktop dropdown */
  .dropdown-menu{
    position:absolute;
    top:100%;
    left:0;
    background:#fff;
    min-width:200px;
    border-radius:10px;
    box-shadow:0 8px 24px rgba(0,0,0,.1);
    padding:8px 0;
    margin:0;
  }
  .dropdown:hover .dropdown-menu{display:block}
  .dropdown.open .dropdown-menu{display:none}
  .dropdown:hover.open .dropdown-menu{display:block}

  section{padding:120px 5%}

  .hero{padding-top:140px}
  .hero h1{font-size:3rem;margin-bottom:20px}
  .hero p{font-size:1.1rem}

  .btn{padding:14px 28px;font-size:1rem}

  .grid{
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:30px;margin-top:50px;
  }

  .card{padding:30px}

  .tech-tag{padding:6px 14px;font-size:.8rem;margin-top:15px}

  footer{padding:60px 5%;font-size:.95rem}

  .whatsapp-float{
    width:60px;height:60px;
    bottom:25px;right:25px;
    font-size:30px;
  }

  /* Garmin desktop */
  .garmin-hero{padding-top:140px}
  .garmin-hero h1{font-size:2.6rem}
  .garmin-hero p{font-size:1.1rem}

  .product-card{padding:40px}
  .product-header h2{font-size:1.8rem}
  .product-description{padding:18px 20px;font-size:.95rem}

  .checkout-dialog{padding:36px 32px;width:90%}
  .checkout-dialog h2{font-size:1.4rem}
  .checkout-product-price{font-size:1.5rem;margin-bottom:20px}

  .pix-qr-img{width:220px;height:220px;margin:0 auto 20px}

  .contact-dialog{padding:36px 32px;width:90%}
  .contact-dialog h2{font-size:1.4rem;margin-bottom:20px}
}
