/* ============================================================
   Geny Eletro — Design System (navy + amber, Plus Jakarta Sans)
   Segue as diretrizes do DESIGN.md do Stitch.
   Mantém classes compatíveis com app.js (tabs, panels, feedback).
   ============================================================ */

:root {
  /* Cores — Primary / Secondary / Tertiary */
  --primary: #0d2240;
  --primary-container: #0d2240;
  --primary-dark: #050f22;
  --on-primary: #ffffff;
  --secondary: #f5b800;
  --secondary-container: #fdbf13;
  --secondary-hover: #e0a700;
  --on-secondary: #0d2240;
  --tertiary: #ea580c;

  /* Neutros */
  --bg-page: #fbf9f4;
  --surface: #ffffff;
  --surface-alt: #f4f1e8;
  --text-main: #0d2240;
  --text-muted: #475569;
  --border-color: #e9e5d9;
  --border-input: #d4cebe;

  /* Status */
  --success-bg: #10b98115;
  --success-fg: #047857;
  --error-bg: #ffdad6;
  --error-fg: #93000a;
  --loading-bg: #fef3c7;
  --loading-fg: #92400e;

  /* Formas & sombras */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-card: 0 4px 18px -2px rgba(13, 34, 64, 0.07);
  --shadow-raised: 0 12px 30px -4px rgba(13, 34, 64, 0.14);
  --shadow-soft: 0 8px 26px -6px rgba(13, 34, 64, 0.10);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-page);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container { width: min(1240px, 92%); margin: 0 auto; }

a { color: inherit; }

/* ---------------- HEADER ---------------- */
.site-header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  position: sticky; top: 0; z-index: 100;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand-logo-img {
  width: 62px; height: 62px; object-fit: contain;
  border-radius: 16px; padding: 0;
  display: block;
  filter: drop-shadow(0 6px 14px rgba(11, 22, 51, 0.35));
  transition: transform 0.25s ease;
}
.brand:hover .brand-logo-img { transform: scale(1.06) rotate(-2deg); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-size: 24px; color: var(--primary); font-weight: 800; letter-spacing: -0.04em; }
.brand-text small {
  font-size: 10.5px; color: var(--secondary-hover); font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.1em; margin-top: 3px;
}

.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  text-decoration: none; color: var(--text-muted); font-weight: 600; font-size: 15px;
  transition: color 0.2s;
}
.nav a:hover { color: var(--primary); }

.btn-whats-mini {
  background: var(--secondary) !important; color: var(--on-secondary) !important;
  padding: 10px 20px; border-radius: 999px; font-size: 14px; font-weight: 800;
  box-shadow: 0 6px 16px -4px rgba(245, 184, 0, 0.6);
  transition: background 0.2s, transform 0.12s;
}
.btn-whats-mini:hover { background: var(--secondary-hover) !important; transform: translateY(-1px); }

/* ---------------- BUTTONS ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: 999px; font-weight: 800; font-size: 16px;
  cursor: pointer; text-decoration: none; border: none; transition: all 0.2s ease;
  font-family: inherit;
}
.btn-primary {
  background: var(--secondary); color: var(--on-secondary);
  box-shadow: 0 8px 20px -5px rgba(245, 184, 0, 0.55);
}
.btn-primary:hover { background: var(--secondary-hover); transform: translateY(-2px); }

.btn-ghost {
  background: transparent; color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-ghost:hover { background: rgba(13, 34, 64, 0.06); }

.btn-outline {
  background: transparent; color: var(--primary);
  border: 2px solid var(--primary); width: 100%; border-radius: 999px;
  padding: 12px; font-size: 15px; font-weight: 800; margin-top: auto;
  transition: all 0.2s;
}
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-block { width: 100%; margin-top: 12px; }

/* ---------------- HERO ---------------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-container) 55%, var(--bg-page) 100%);
  color: var(--on-primary);
  padding: 72px 0 84px;
}
.hero-canvas {
  position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%;
  pointer-events: none;
}
.hero-tracker {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0.6;
  background: radial-gradient(650px at 50% 30%, rgba(253, 191, 19, 0.12), rgba(13, 34, 64, 0.08) 40%, transparent 70%);
}
.hero-glow {
  position: absolute; border-radius: 999px; filter: blur(80px); pointer-events: none; z-index: 0;
}
.hero-glow.g1 { left: -160px; top: 0; width: 384px; height: 384px; background: rgba(253, 191, 19, 0.10); }
.hero-glow.g2 { right: -80px; top: 80px; width: 384px; height: 384px; background: rgba(180, 199, 237, 0.10); }
.hero-vignette {
  position: absolute; left: 0; right: 0; bottom: 0; height: 128px; z-index: 1;
  background: linear-gradient(to top, var(--bg-page), rgba(251, 249, 244, 0.5), transparent);
  pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 10;
  max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 48px;
}
.hero-text { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; text-align: left; }

.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 999px;
  font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  background: rgba(253, 191, 19, 0.2); color: var(--secondary-container);
  backdrop-filter: blur(4px);
}
.hero-pill.live {
  background: rgba(255, 255, 255, 0.1); color: #dbe6ff; letter-spacing: 0.02em;
  text-transform: none; font-weight: 600;
}
.hero-pill .dot {
  position: relative; width: 8px; height: 8px; border-radius: 999px; background: #34d399;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
  animation: pulseDot 1.8s infinite;
}
@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6); }
  70% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.hero-text h1 {
  font-size: clamp(30px, 4vw, 44px); font-weight: 800; color: #fff;
  line-height: 1.15; letter-spacing: -0.03em;
}
.hero-text h1 .hl {
  background: linear-gradient(90deg, var(--secondary-container), #ffdf9f, var(--secondary-container));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-text p {
  font-size: 18px; color: #cfdaf2; line-height: 1.7; max-width: 34rem;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; padding-top: 4px; }
.hero-actions .btn-ghost {
  color: #fff; border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.06);
}
.hero-actions .btn-ghost:hover { background: rgba(255, 255, 255, 0.14); color: var(--secondary-container); }

.hero-image-wrap {
  position: relative; display: flex; align-items: center; justify-content: center;
}
.hero-image-halo {
  position: absolute; inset: -40px; border-radius: 999px; z-index: -1;
  background: linear-gradient(135deg, rgba(253, 191, 19, 0.3), rgba(250, 189, 13, 0.15), rgba(180, 199, 237, 0.2));
  filter: blur(60px); animation: haloPulse 5s ease-in-out infinite;
}
@keyframes haloPulse { 0%,100% { opacity: 0.7; } 50% { opacity: 1; } }
.hero-avatar {
  width: 100%; max-height: 520px; object-fit: contain; display: block;
  border-radius: 24px;
  border: 2px solid rgba(253, 191, 19, 0.35);
  box-shadow: 0 25px 50px -12px rgba(0, 11, 33, 0.8), 0 0 30px rgba(253, 191, 19, 0.15);
  animation: floatY 5s ease-in-out infinite;
}
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.hero-banner-wrap {
  position: relative; width: 100%; display: flex; align-items: center; justify-content: center;
}
.hero-main-banner {
  width: 100%; max-width: 620px; height: auto; display: block;
  /* fundo transparente: sem moldura/sombra dura e bordas esvanecendo no fundo do site */
  -webkit-mask-image: radial-gradient(ellipse 78% 78% at 50% 50%, #000 62%, transparent 100%);
  mask-image: radial-gradient(ellipse 78% 78% at 50% 50%, #000 62%, transparent 100%);
  filter: drop-shadow(0 24px 40px rgba(0, 11, 33, 0.55));
  animation: floatY 6s ease-in-out infinite;
}
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .hero-text { align-items: center; text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-main-banner { max-width: 100%; }
}

/* ---------------- SECTIONS ---------------- */
.section { padding: 88px 0; }
.section-alt { background: #f4f1e8; }
.section-title {
  text-align: center; font-size: 32px; font-weight: 800; color: var(--primary);
  margin-bottom: 12px; letter-spacing: -0.02em;
}
.section-sub { text-align: center; font-size: 17px; color: var(--text-muted); margin-bottom: 48px; }

/* ---------------- CARDS (serviços) ---------------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 28px; }
.card {
  background: var(--surface); border-radius: var(--radius-lg);
  padding: 34px 30px; box-shadow: var(--shadow-card);
  border: 1px solid var(--border-color); display: flex; flex-direction: column;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s;
  animation: cardFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.22s; }
.card:nth-child(3) { animation-delay: 0.34s; }

@keyframes cardFadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -12px rgba(0, 11, 33, 0.18);
  border-color: rgba(0, 11, 33, 0.15);
}
.card-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 60px; height: 60px; border-radius: 999px; font-size: 28px;
  background: var(--primary); color: var(--secondary); margin-bottom: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: floatIcon 4s ease-in-out infinite;
}
.card:nth-child(1) .card-ico { animation-delay: 0s; }
.card:nth-child(2) .card-ico { background: var(--secondary); color: var(--primary); animation-delay: 1.2s; }
.card:nth-child(3) .card-ico { background: var(--tertiary); color: #fff; animation-delay: 2.4s; }

@keyframes floatIcon {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.card:hover .card-ico {
  transform: scale(1.1) rotate(3deg);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}
.card h3 { font-size: 22px; font-weight: 700; color: var(--primary); margin-bottom: 12px; letter-spacing: -0.01em; }
.card p { font-size: 15px; color: var(--text-muted); margin-bottom: 24px; line-height: 1.6; }

/* ---------------- TABS & FORMS ---------------- */
.tabs { display: flex; justify-content: center; gap: 12px; margin-bottom: 40px; flex-wrap: wrap; }
.tab {
  background: var(--surface); border: 1.5px solid var(--border-color);
  padding: 13px 26px; border-radius: 999px; font-size: 15px; font-weight: 800;
  color: var(--text-muted); cursor: pointer; transition: all 0.2s; font-family: inherit;
}
.tab:hover { border-color: var(--primary); color: var(--primary); }
.tab.active {
  background: var(--primary); color: #fff; border-color: var(--primary);
  box-shadow: 0 8px 20px -6px rgba(13, 34, 64, 0.4);
}

.tab-panels { max-width: 860px; margin: 0 auto; }
.panel {
  display: none; background: var(--surface); border-radius: var(--radius-xl);
  padding: 44px; box-shadow: var(--shadow-soft); border: 1px solid var(--border-color);
}
.panel.active { display: block; animation: fadeIn 0.3s ease; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field-full { grid-column: span 2; }
.field span { font-size: 13px; font-weight: 800; color: var(--primary); letter-spacing: 0.01em; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 16px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-input); font-size: 15px; font-family: inherit;
  background: #fff; color: var(--text-main); transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(245, 184, 0, 0.35);
}

/* ---------------- FOTOS DO PRODUTO (assistência) ---------------- */
.field-hint { font-weight: 600; color: var(--text-muted); font-size: 12px; }
.fotos { display: flex; flex-direction: column; gap: 14px; }
.fotos-acoes { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-foto {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 18px; border-radius: 999px; cursor: pointer;
  border: 1.5px dashed var(--border-input); background: #fff;
  font-family: inherit; font-size: 14px; font-weight: 800; color: var(--primary);
  transition: border-color 0.2s, background 0.2s, transform 0.12s;
}
.btn-foto .ico { font-size: 16px; }
.btn-foto:not(:disabled):hover {
  border-color: var(--primary); background: var(--surface-alt); transform: translateY(-1px);
}
.btn-foto:disabled { opacity: 0.5; cursor: not-allowed; }
.fotos-previa { display: flex; flex-wrap: wrap; gap: 12px; }
.foto-item {
  position: relative; width: 118px; height: 118px; border-radius: var(--radius-md);
  overflow: hidden; border: 1px solid var(--border-color); background: var(--surface-alt);
  box-shadow: var(--shadow-soft);
}
.foto-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.foto-remover {
  position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border: none;
  border-radius: 50%; background: rgba(13, 34, 64, 0.85); color: #fff; cursor: pointer;
  font-size: 17px; line-height: 1; display: grid; place-items: center; font-weight: 800;
}
.foto-remover:hover { background: #dc2626; }

/* ---------------- AVISO DE PRAZO (3 a 5 dias ou mais) ---------------- */
.aviso-prazo {
  display: flex; align-items: flex-start; gap: 14px;
  background: #fff7f7; border: 2px solid #b91c1c; border-left-width: 8px;
  border-radius: var(--radius-lg); padding: 16px 20px;
  box-shadow: var(--shadow-card);
}
.aviso-prazo-titulo {
  display: block; font-size: 15px; font-weight: 800; color: #b91c1c;
  letter-spacing: -0.01em; margin-bottom: 4px;
}
.aviso-prazo-texto { font-size: 14px; font-weight: 700; color: #7f1d1d; line-height: 1.55; }

/* Faixa no meio da página (entre Serviços e Solicitar) */
.aviso-prazo-meio { max-width: 860px; margin: 54px auto 0; }
.aviso-prazo-meio .aviso-prazo-icone { font-size: 26px; line-height: 1.1; }

/* Aviso menor no rodapé */
.aviso-prazo-rodape {
  display: block; background: rgba(255, 255, 255, 0.06);
  border-color: rgba(253, 191, 19, 0.55); border-left-width: 4px;
  padding: 12px 14px; box-shadow: none;
}
.aviso-prazo-rodape .aviso-prazo-titulo { color: var(--secondary-container); font-size: 13.5px; }
.aviso-prazo-rodape .aviso-prazo-texto { color: #cfdaf2; font-size: 13px; }

/* ---------------- FEEDBACK ---------------- */
.feedback {
  margin-top: 24px; padding: 16px 20px; border-radius: var(--radius-md);
  font-weight: 700; text-align: center; font-size: 15px;
  max-width: 860px; margin-left: auto; margin-right: auto;
}
.feedback.success, .feedback.ok { background: var(--success-bg); color: var(--success-fg); border: 1px solid #a7f3d0; }
.feedback.error { background: var(--error-bg); color: var(--error-fg); border: 1px solid #fecaca; }
.feedback.loading { background: var(--loading-bg); color: var(--loading-fg); border: 1px solid #fde68a; }
.feedback a { color: inherit; font-weight: 800; text-decoration: underline; }

/* Elementos ocultos por falta de configuração (ex.: WhatsApp sem número) */
[hidden] { display: none !important; }

/* ---------------- CTA BANNER ---------------- */
.cta-banner {
  position: relative; overflow: hidden; border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--primary-container), var(--primary-dark), var(--primary-container));
  padding: 56px 40px; text-align: center; box-shadow: var(--shadow-raised); color: #fff;
}
.cta-banner .glow {
  position: absolute; border-radius: 999px; filter: blur(60px); pointer-events: none;
}
.cta-banner .glow.a { left: -64px; top: -64px; width: 256px; height: 256px; background: rgba(253, 191, 19, 0.15); }
.cta-banner .glow.b { right: -64px; bottom: -64px; width: 256px; height: 256px; background: rgba(250, 189, 13, 0.15); }
.cta-banner .cta-inner {
  position: relative; z-index: 1; display: flex; flex-direction: column;
  align-items: center; gap: 18px; max-width: 760px; margin: 0 auto;
}
.cta-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; border-radius: var(--radius-lg);
  background: var(--secondary-container); color: var(--on-secondary); font-size: 32px;
  box-shadow: 0 10px 24px -8px rgba(245, 184, 0, 0.7);
}
.cta-banner h2 { font-size: clamp(26px, 3.2vw, 40px); font-weight: 800; letter-spacing: -0.03em; color: #fff; }
.cta-banner p { font-size: 18px; color: #cfdaf2; }
.cta-actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; padding-top: 6px; }

/* ---------------- TRUST STRIP ---------------- */
.trust {
  background: var(--surface); padding: 22px 0; border-top: 1px solid var(--border-color);
}
.trust-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px; color: var(--text-muted); font-size: 13px;
}
.trust-inner .item { display: flex; align-items: center; gap: 8px; }
.trust-inner .item strong { color: var(--primary); font-weight: 800; }
.trust-inner .tag {
  font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--secondary-hover);
}

/* ---------------- FOOTER ---------------- */
.footer {
  background: var(--primary-container); color: #cfdaf2;
  padding: 64px 0 28px;
}
.footer-inner {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px;
  padding-bottom: 36px; border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer .brand-block { display: flex; flex-direction: column; gap: 14px; max-width: 24rem; }
.footer .brand-line { display: flex; align-items: center; gap: 12px; }
.footer .brand-line .g {
  width: 40px; height: 40px; border-radius: 12px; background: var(--secondary-container);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary); font-weight: 800; font-size: 20px;
}
.footer .brand-line .name { color: #fff; font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.footer .brand-line .slogan {
  display: block; font-size: 10px; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--secondary);
}
.footer h4 {
  color: #fff; font-size: 12px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.08em; margin-bottom: 16px;
}
.footer p { font-size: 15px; margin-bottom: 10px; }
.footer a { color: #cfdaf2; text-decoration: none; transition: color 0.2s; }
.footer a:hover { color: var(--secondary-container); }
.footer .col a { display: block; margin-bottom: 10px; font-size: 15px; }
.footer .footer-link {
  display: inline !important; margin-bottom: 0 !important;
  border-bottom: 1px dashed rgba(207, 218, 242, 0.45);
  padding-bottom: 1px;
}
.footer .footer-link:hover { border-bottom-color: var(--secondary-container); }
.copyright {
  padding-top: 22px; text-align: center; font-size: 13px; color: #7f8ba3;
}
.copyright .painel-link {
  display: inline-block; margin-left: 8px; vertical-align: middle;
  color: #7f8ba3; text-decoration: none; font-size: 16px; line-height: 1;
  opacity: .35; transition: opacity .2s ease;
}
.copyright .painel-link:hover { opacity: 1; color: var(--secondary-container, #f5b800); }

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-image-wrap { order: -1; }
  .hero-avatar { max-height: 320px; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 768px) {
  .section { padding: 60px 0; }
  .grid { grid-template-columns: 1fr; }
  .field-full { grid-column: span 1; }
  .panel { padding: 24px; }
  .nav { gap: 14px; }
  .nav a:not(.btn-whats-mini) { display: none; }
  .btn-whats-mini { padding: 9px 16px; font-size: 13px; }
  .cta-banner { padding: 40px 22px; }
}

@media (max-width: 480px) {
  .hero-badges .hero-pill.live { display: none; }
  .header-inner { height: 68px; }
  .hero-glow.g1, .hero-glow.g2 { width: 240px; height: 240px; filter: blur(60px); }
  .hero-glow.g2 { right: -120px; }
  .hero-glow.g1 { left: -120px; }
  .card { padding: 26px 22px; }
  .section-title { font-size: 26px; }
}
