/* =========================================================
   NetWAVE LB — mobile-first stylesheet
   Base rules below target small phones. Enhancements for
   larger screens live in the min-width media queries at the
   bottom, in ascending order (sm -> md -> lg).
   ========================================================= */

:root {
  --bg: #0a1120;
  --bg-alt: #0f1b33;
  --panel: #121f3a;
  --panel-border: #22335a;
  --text: #eaf0ff;
  --text-dim: #a9b8d8;

  /* Brand palette — matches the NetWAVE LB wordmark: navy/blue base,
     a vivid blue accent, and red used as a sparing pop of color. */
  --brand-blue: #2f5bea;
  --brand-blue-light: #6fa8ff;
  --brand-red: #e2231a;
  --brand-red-hover: #c11d15;

  --whatsapp: #25d366;
  --whish: #6c4cf1;

  --radius: 14px;
  --max-w: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Manrope', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 16px;
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 17, 32, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--panel-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  position: relative;
}

.logo {
  display: inline-flex;
  align-items: center;
}
.logo img {
  height: 22px;
  width: auto;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-toggle {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
}
.cart-toggle:hover { border-color: var(--brand-blue-light); color: var(--brand-blue-light); }

.cart-toggle.cart-bump { animation: cart-bump 0.4s ease; }
@keyframes cart-bump {
  0% { transform: scale(1); }
  35% { transform: scale(1.25); }
  100% { transform: scale(1); }
}

.fly-to-cart {
  position: fixed;
  z-index: 200;
  pointer-events: none;
  margin: 0;
  border-radius: 10px;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.6s ease;
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--brand-red);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--panel-border);
  padding: 12px 16px 16px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.nav.is-open { max-height: 320px; }

.nav a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-dim);
  padding: 10px 4px;
  border-bottom: 1px solid var(--panel-border);
}
.nav a:last-of-type { border-bottom: none; }
.nav a:hover { color: var(--text); }

.nav-cta { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--brand-red);
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(226, 35, 26, 0.55);
}
.btn-primary:hover { background: var(--brand-red-hover); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--panel-border);
}
.btn-outline:hover { border-color: var(--brand-blue-light); color: var(--brand-blue-light); }

.btn-ghost {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  padding: 10px 20px;
  font-size: 0.9rem;
}
.btn-ghost:hover { border-color: var(--brand-blue-light); }

.btn-whatsapp {
  background: var(--whatsapp);
  color: #052e16;
  box-shadow: 0 8px 24px -8px rgba(37, 211, 102, 0.5);
  flex: 1;
}
.btn-whatsapp:hover { filter: brightness(1.05); }

.btn-whish {
  background: var(--whish);
  color: #fff;
  flex: 1;
  opacity: 0.55;
  cursor: not-allowed;
}

/* ---------- Hero ---------- */
.hero {
  padding: 32px 0 40px;
  background:
    radial-gradient(900px 400px at 80% -10%, rgba(47, 91, 234, 0.2), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
}

.hero-inner {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-blue-light);
  margin-bottom: 12px;
}
.center-eyebrow { display: block; text-align: center; }

.hero-copy h1 {
  font-size: clamp(1.9rem, 7vw, 2.4rem);
  line-height: 1.1;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

.hero-sub {
  color: var(--text-dim);
  font-size: 1rem;
  margin: 0 0 22px;
}

.hero-trust {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 26px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--text-dim);
  font-weight: 600;
}
.trust-item .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-red);
  flex-shrink: 0;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hero-actions .btn { width: 100%; }

/* Image capped so it never dominates the layout, at any breakpoint */
.hero-media {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
}
.hero-media img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 24px 48px -18px rgba(0, 0, 0, 0.6);
  border: 1px solid var(--panel-border);
}

/* ---------- Sections ---------- */
.section { padding: 40px 0; }
.section-title {
  font-size: clamp(1.4rem, 5vw, 2.1rem);
  margin: 0 0 10px;
  letter-spacing: -0.01em;
  text-align: center;
}
.section-sub {
  color: var(--text-dim);
  text-align: center;
  max-width: 56ch;
  margin: 0 auto 28px;
  font-size: 0.95rem;
}

/* Use cases */
.usecase-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.usecase-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 24px 20px;
  transition: transform 0.15s, border-color 0.15s;
}
.usecase-card:hover {
  transform: translateY(-3px);
  border-color: var(--brand-blue);
}
.usecase-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(47, 91, 234, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.usecase-icon svg { width: 22px; height: 22px; fill: var(--brand-blue-light); }
.usecase-card h3 { margin: 0 0 6px; font-size: 1rem; }
.usecase-card p { margin: 0; color: var(--text-dim); font-size: 0.9rem; }

/* ---------- Shop / product cards (rendered by script.js) ---------- */
.shop-section { background: var(--bg-alt); }

.products-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.product-order-card {
  flex: 1 1 340px;
  max-width: 420px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 22px;
}

.product-order-media {
  max-width: 140px;
  margin: 0 auto 16px;
}
.product-order-media img { border-radius: 10px; background: #fff; padding: 8px; }
.product-order-media.has-video { max-width: 100%; }
.product-order-media video {
  width: 100%;
  border-radius: 10px;
  background: #000;
}

.product-order-body h3 { margin: 0 0 4px; font-size: 1.1rem; text-align: center; }
.product-order-tagline {
  margin: 0 0 14px;
  color: var(--text-dim);
  font-size: 0.85rem;
  text-align: center;
}
.product-order-desc {
  margin: 0 0 16px;
  color: var(--text-dim);
  font-size: 0.88rem;
  text-align: center;
}
.product-order-specs {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: grid;
  gap: 8px;
}
.product-order-specs li {
  padding: 10px 14px;
  background: var(--bg-alt);
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  font-size: 0.85rem;
}
.product-order-specs strong { color: var(--brand-blue-light); }
.product-order-safety {
  margin: 14px 0 0;
  padding: 10px 14px;
  background: rgba(226, 35, 26, 0.08);
  border: 1px solid rgba(226, 35, 26, 0.25);
  border-radius: 10px;
  font-size: 0.78rem;
  color: var(--text-dim);
  text-align: center;
}

.qty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  background: var(--bg-alt);
  border: 2px solid var(--panel-border);
  border-radius: var(--radius);
  margin-bottom: 12px;
}
.qty-label { font-weight: 700; font-size: 0.95rem; }

.qty-stepper {
  display: flex;
  align-items: center;
  gap: 10px;
}
.qty-btn {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--panel-border);
  background: var(--panel);
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s, color 0.15s;
}
.qty-btn:hover { border-color: var(--brand-red); color: var(--brand-red); }

.qty-input {
  width: 46px;
  text-align: center;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 800;
  font-family: inherit;
  -moz-appearance: textfield;
}
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.bundle-hint {
  margin: 0 0 20px;
  font-size: 0.8rem;
  color: var(--brand-blue-light);
  text-align: center;
}

.order-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 16px 2px;
  border-top: 1px solid var(--panel-border);
  margin-bottom: 20px;
  font-weight: 700;
}
.order-total-price { font-size: 1.5rem; color: var(--brand-blue-light); }

.add-to-cart-btn { width: 100%; }

/* ---------- Cart drawer ---------- */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 9, 18, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 90;
}
.cart-overlay.is-open { opacity: 1; pointer-events: auto; }

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 420px;
  background: var(--bg-alt);
  border-left: 1px solid var(--panel-border);
  z-index: 91;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.25s ease;
}
.cart-drawer[aria-hidden="false"] { transform: translateX(0); }

.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--panel-border);
}
.cart-drawer-header h2 { margin: 0; font-size: 1.1rem; }
.cart-close {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--panel-border);
  background: transparent;
  color: var(--text);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}
.cart-close:hover { border-color: var(--brand-red); color: var(--brand-red); }

.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.cart-empty { color: var(--text-dim); font-size: 0.9rem; text-align: center; margin: 24px 0; }

.cart-items { display: grid; gap: 14px; margin-bottom: 20px; }
.cart-line {
  padding: 14px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
}
.cart-line-info {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
}
.cart-line-name { font-weight: 700; font-size: 0.92rem; }
.cart-line-price { font-weight: 800; color: var(--brand-blue-light); }
.cart-line-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.qty-stepper-sm .qty-btn { width: 28px; height: 28px; font-size: 0.95rem; }
.cart-line-qty { min-width: 24px; text-align: center; font-weight: 700; }
.cart-line-remove {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 0.8rem;
  text-decoration: underline;
  cursor: pointer;
  padding: 4px;
}
.cart-line-remove:hover { color: var(--brand-red); }

.cart-summary {
  border-top: 1px solid var(--panel-border);
  padding-top: 14px;
  margin-bottom: 20px;
}
.cart-summary-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  font-size: 0.9rem;
  color: var(--text-dim);
}
.cart-summary-total {
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--panel-border);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text);
}

.checkout-form { display: flex; flex-direction: column; gap: 12px; }
.checkout-field { display: flex; flex-direction: column; gap: 6px; font-size: 0.82rem; color: var(--text-dim); font-weight: 600; }
.checkout-field input {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--panel-border);
  background: var(--panel);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
}
.checkout-field input:focus { outline: none; border-color: var(--brand-blue-light); }

.checkout-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }

body.cart-open { overflow: hidden; }

/* FAQ */
.faq-grid { display: grid; gap: 12px; max-width: 760px; margin: 0 auto; }
.faq-item {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 16px 18px;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 0.95rem;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  float: right;
  color: var(--brand-blue-light);
  font-weight: 800;
}
.faq-item[open] summary::after { content: '\2212'; }
.faq-item p { color: var(--text-dim); margin: 12px 0 0; font-size: 0.9rem; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--panel-border);
  padding-top: 36px;
  background: var(--bg);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-bottom: 24px;
}
.footer-tagline { color: var(--text-dim); font-size: 0.88rem; margin-top: 10px; }
.footer-contact a { color: var(--brand-blue-light); font-weight: 600; font-size: 0.92rem; }
.footer-bottom {
  border-top: 1px solid var(--panel-border);
  padding: 18px 16px;
  color: var(--text-dim);
  font-size: 0.8rem;
}

/* =========================================================
   Breakpoints — progressive enhancement upward from mobile
   ========================================================= */

/* Small phones -> larger phones */
@media (min-width: 480px) {
  .hero-actions { flex-direction: row; }
  .usecase-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Tablet */
@media (min-width: 720px) {
  .container { padding: 0 24px; }
}

/* Desktop nav takes over from the hamburger menu */
@media (min-width: 900px) {
  .header-inner { height: 72px; }
  .nav-toggle { display: none; }
  .nav {
    position: static;
    flex-direction: row;
    align-items: center;
    max-height: none;
    overflow: visible;
    background: transparent;
    border: none;
    padding: 0;
    gap: 32px;
  }
  .nav a { border-bottom: none; padding: 0; }
  .nav-cta { display: inline-flex; margin-left: 8px; }

  .hero { padding: 64px 0 40px; }
  .hero-inner {
    flex-direction: row-reverse;
    align-items: center;
    gap: 48px;
  }
  .hero-copy, .hero-media { flex: 1 1 0; }
  .hero-media { max-width: 420px; }
  .hero-copy h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); }
  .hero-actions { flex-direction: row; }
  .hero-trust { flex-direction: row; flex-wrap: wrap; gap: 18px; }

  .section { padding: 64px 0; }
  .usecase-grid { grid-template-columns: repeat(4, 1fr); }

  .footer-inner { flex-direction: row; justify-content: space-between; align-items: flex-start; }
}

@media (min-width: 1200px) {
  .hero-media { max-width: 460px; }
}
