/* ==========================================================================
   Netfrio · Máquinas de Gelo — Estilos principais
   Sistema de design "Vidro Gelado": glassmorphism inspirado em blocos de
   gelo e na linguagem visual premium da Apple / ITV Ice Makers.
   ========================================================================== */

:root {
  /* Paleta — extraída do azul do logótipo Netfrio + brancos/gelo */
  --c-white: #ffffff;
  --c-bg: #f6f8fb;
  --c-bg-soft: #eef2f7;
  --c-ink: #0b1f3a;      /* azul-marinho quase preto — texto principal */
  --c-ink-soft: #4a5b74; /* cinza-azulado — texto secundário */
  --c-blue: #0a5fe0;     /* azul de marca — CTAs, links */
  --c-blue-dark: #073d94;
  --c-blue-light: #4c93ff;
  --c-ice: #cfeaff;      /* azul-gelo — realces e brilhos */
  --c-ice-soft: #eaf5ff;
  --c-line: #dfe6ef;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-full: 999px;

  --shadow-soft: 0 10px 30px -12px rgba(11, 31, 58, 0.15);
  --shadow-card: 0 20px 45px -20px rgba(10, 95, 224, 0.25);
  --shadow-lift: 0 30px 60px -25px rgba(11, 31, 58, 0.35);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---- Reset leve & base ---------------------------------------------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  color: var(--c-ink);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection { background: var(--c-ice); color: var(--c-blue-dark); }

a { color: inherit; text-decoration: none; }

/* Foco visível para acessibilidade de teclado */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--c-blue-light);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

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

/* ---- Fundo gelado global --------------------------------------------- */
.frost-field {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 45% at 85% -10%, rgba(10, 95, 224, 0.10), transparent 60%),
    radial-gradient(50% 35% at 5% 10%, rgba(207, 234, 255, 0.55), transparent 60%);
  pointer-events: none;
}

/* ---- Header ------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid rgba(223, 230, 239, 0.7);
  transition: box-shadow 0.3s var(--ease);
}
.site-header.is-scrolled { box-shadow: var(--shadow-soft); }

.nav-link {
  position: relative;
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--c-ink-soft);
  padding: 0.4rem 0.1rem;
  transition: color 0.25s var(--ease);
}
.nav-link:hover { color: var(--c-blue); }
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--c-blue);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease);
}
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-full);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--c-blue), var(--c-blue-dark));
  color: #fff;
  box-shadow: var(--shadow-card);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: var(--c-white);
  color: var(--c-ink);
  border: 1px solid var(--c-line);
}
.btn-ghost:hover { border-color: var(--c-blue); color: var(--c-blue); transform: translateY(-2px); }

.btn-outline-light {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.4);
  backdrop-filter: blur(6px);
}
.btn-outline-light:hover { background: rgba(255,255,255,0.22); transform: translateY(-2px); }

/* ---- Hero --------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(120% 100% at 50% 0%, #0d2c5c 0%, #0b1f3a 55%, #081527 100%);
  color: #fff;
}

.hero-ice-glow {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 140%;
  background:
    radial-gradient(38% 55% at 18% 20%, rgba(76, 147, 255, 0.35), transparent 60%),
    radial-gradient(30% 45% at 82% 15%, rgba(207, 234, 255, 0.28), transparent 60%);
  filter: blur(10px);
  pointer-events: none;
}

/* Cristais de gelo flutuantes decorativos (puro CSS/SVG, sem imagens) */
.ice-shard {
  position: absolute;
  opacity: 0.55;
  animation: float 9s ease-in-out infinite;
  filter: drop-shadow(0 10px 20px rgba(76,147,255,0.25));
}
.ice-shard.s1 { top: 12%; left: 6%; width: 60px; animation-delay: 0s; }
.ice-shard.s2 { top: 60%; left: 12%; width: 40px; animation-delay: 1.4s; }
.ice-shard.s3 { top: 20%; right: 8%; width: 80px; animation-delay: 0.7s; }
.ice-shard.s4 { bottom: 10%; right: 16%; width: 46px; animation-delay: 2.1s; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-18px) rotate(6deg); }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  background: rgba(207, 234, 255, 0.12);
  border: 1px solid rgba(207, 234, 255, 0.3);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--c-ice);
}

.glass-panel {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-radius: var(--radius-lg);
}

/* ---- Cartões de produto (efeito "vidro gelado") ------------------------ */
.ice-card {
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.ice-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lift);
  border-color: rgba(10, 95, 224, 0.35);
}
.ice-card .ice-card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--c-ice-soft), #dcecff 60%, var(--c-ice));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.ice-card .ice-card-media svg { width: 44%; height: 44%; transition: transform 0.5s var(--ease); }
.ice-card:hover .ice-card-media svg { transform: scale(1.08) rotate(-2deg); }

.ice-card .ice-card-media img {
  width: 68%;
  height: 68%;
  object-fit: contain;
  transition: transform 0.5s var(--ease);
  filter: drop-shadow(0 12px 18px rgba(11, 31, 58, 0.18));
}
.ice-card:hover .ice-card-media img { transform: scale(1.08); }

.ice-card .ice-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0) 35%);
  mix-blend-mode: screen;
}

/* ---- Secção com fundo escuro (Porquê escolher-nos) ---------------------- */
.dark-section {
  background: linear-gradient(180deg, #0b1f3a 0%, #0d2648 100%);
  color: #fff;
  position: relative;
}

.spec-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  transition: background 0.3s var(--ease), transform 0.3s var(--ease), border-color .3s var(--ease);
}
.spec-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(207,234,255,0.35);
  transform: translateY(-4px);
}

.spec-thumb {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  background: radial-gradient(120% 120% at 30% 20%, rgba(207,234,255,0.35), rgba(76,147,255,0.08));
  border: 1px solid rgba(207, 234, 255, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
}
.spec-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.spec-card:hover .spec-thumb img { transform: scale(1.12); }
.spec-thumb.spec-thumb-icon { background: rgba(207, 234, 255, 0.08); }

/* ---- Vantagens ----------------------------------------------------------- */
.perk-card {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-md);
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
.perk-card:hover { box-shadow: var(--shadow-card); transform: translateY(-4px); }

/* ---- Carrossel da galeria ------------------------------------------------ */
.carousel-viewport {
  overflow: hidden;
  border-radius: var(--radius-lg);
}
.carousel-track {
  display: flex;
  transition: transform 0.6s var(--ease);
  will-change: transform;
}
.carousel-slide {
  flex: 0 0 100%;
  padding: 0 8px;
}
@media (min-width: 768px) {
  .carousel-slide { flex: 0 0 50%; }
}
@media (min-width: 1024px) {
  .carousel-slide { flex: 0 0 33.3333%; }
}
.carousel-slide img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.carousel-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--c-line);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color .25s var(--ease);
  color: var(--c-ink);
}
.carousel-btn:hover { background: var(--c-blue); color: #fff; transform: scale(1.08); }

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-line);
  transition: all 0.3s var(--ease);
  cursor: pointer;
}
.carousel-dot.is-active { background: var(--c-blue); width: 24px; border-radius: var(--radius-full); }

/* ---- Testemunhos ---------------------------------------------------------- */
.quote-card {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.quote-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); }

.star-row svg { width: 18px; height: 18px; }

/* ---- Formulário ------------------------------------------------------------ */
.field-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--c-ink);
  margin-bottom: 0.4rem;
  display: block;
}
.field-input {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--c-line);
  background: #fff;
  font-size: 0.95rem;
  color: var(--c-ink);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.field-input:focus {
  border-color: var(--c-blue);
  box-shadow: 0 0 0 4px rgba(10, 95, 224, 0.12);
  outline: none;
}
.field-input.field-error { border-color: #dc2626; box-shadow: 0 0 0 4px rgba(220,38,38,0.1); }
.field-error-msg {
  color: #dc2626;
  font-size: 0.8rem;
  margin-top: 0.35rem;
  display: none;
}
.field-error-msg.is-visible { display: block; }

.form-shell {
  background: linear-gradient(180deg, #ffffff, #f7fbff);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift);
}

/* ---- Utilidades de animação de entrada -------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Contador animado do WhatsApp flutuante */
.whatsapp-fab {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 60;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 30px -8px rgba(37, 211, 102, 0.55);
  animation: pulse-wa 2.6s ease-in-out infinite;
}
.whatsapp-fab svg { width: 30px; height: 30px; }
@keyframes pulse-wa {
  0%, 100% { box-shadow: 0 14px 30px -8px rgba(37, 211, 102, 0.55); }
  50% { box-shadow: 0 14px 40px -6px rgba(37, 211, 102, 0.85); }
}

/* Loading spinner do botão de submissão */
.spinner {
  width: 18px; height: 18px;
  border: 2.5px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: none;
}
@keyframes spin { to { transform: rotate(360deg); } }
.is-loading .spinner { display: inline-block; }
.is-loading .btn-label { opacity: 0.7; }

/* Faixa de confiança (logos/marcas) */
.trust-strip {
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
}

/* Ajuste de scroll para âncoras por causa do header fixo */
section[id] { scroll-margin-top: 84px; }
