/* ============================================================
   Tag3d — Landing page
   Impressão 3D, tags NFC e lembranças · Porto Alegre / RS
   ============================================================ */

:root {
  --bg:        #FBFAF7;
  --navy:      #1D3D5C;
  --navy-dark: #12293F;
  --ink:       #4A657E;
  --coral:     #E85C5C;
  --coral-dark:#C74848;
  --cyan:      #5CE1E6;
  --line:      #E8E4DC;
  --muted:     #9AAEC0;
  --on-navy:   #B9CBDC;
  --tint-cyan: #E7F9FA;
  --tint-coral:#FDEEEE;
  --tint-green:#E9F8EF;
  --tint-soft: #F0F6F7;
  --portfolio: #F2EFE9;

  --wrap: 1100px;
  --font-head: 'Baloo 2', sans-serif;
  --font-body: 'Nunito', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  font-family: var(--font-body);
  color: var(--navy);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--coral); text-decoration: none; }
a:hover { color: var(--navy); }

img { max-width: 100%; }

input::placeholder,
textarea::placeholder { color: var(--muted); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 24px; padding-right: 24px; }

.eyebrow {
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.12em;
  color: var(--coral);
}

.section-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.1;
  color: var(--navy);
  margin: 12px 0 0;
}

/* ---------- Animations ---------- */
@keyframes floaty   { 0%,100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-14px) rotate(-3deg); } }
@keyframes floaty2  { 0%,100% { transform: translateY(0) rotate(8deg); }  50% { transform: translateY(-10px) rotate(4deg); } }
@keyframes fadeUp   { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulseRing{ 0% { transform: scale(0.8); opacity: 0.8; } 100% { transform: scale(1.8); opacity: 0; } }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 247, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.site-header.scrolled {
  background: rgba(251, 250, 247, 0.92);
  box-shadow: 0 6px 20px rgba(29, 61, 92, 0.08);
  border-bottom-color: var(--line);
}
.header-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 59px; width: 160px; display: block; }

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 28px;
  font-weight: 700;
  font-size: 15px;
}
.nav-desktop a { color: var(--navy); }
.nav-desktop a:hover { color: var(--coral); }

.btn-pill {
  background: var(--coral);
  color: #fff;
  padding: 10px 20px;
  border-radius: 999px;
  box-shadow: 0 4px 0 var(--coral-dark);
}
.btn-pill:hover { background: var(--navy); box-shadow: 0 4px 0 var(--navy-dark); color: #fff; }

/* Hamburger */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 2px solid var(--navy);
  background: #fff;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}
.nav-toggle span {
  width: 20px; height: 2.5px;
  background: var(--navy);
  border-radius: 2px;
}
.nav-mobile {
  position: absolute;
  top: calc(100% + 8px);
  right: 24px; left: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(29, 61, 92, 0.18);
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  font-weight: 700;
  font-size: 16px;
}
.nav-mobile.open { display: flex; }
.nav-mobile a { color: var(--navy); padding: 12px 14px; border-radius: 12px; }
.nav-mobile a:hover { background: var(--tint-soft); }
.nav-mobile a.cta {
  background: var(--coral); color: #fff; text-align: center; margin-top: 4px;
}
.nav-mobile a.cta:hover { background: var(--navy); color: #fff; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; overflow: hidden; }
.hero .blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero .blob-1 { top: -120px; right: -120px; width: 420px; height: 420px; background: var(--cyan); opacity: 0.18; }
.hero .blob-2 { bottom: -160px; left: -100px; width: 380px; height: 380px; background: var(--coral); opacity: 0.10; }

.hero-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 88px 24px 96px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  position: relative;
}
.hero-copy { animation: fadeUp 0.8s ease both; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--tint-cyan);
  border: 1px solid var(--cyan);
  color: var(--navy);
  font-weight: 800;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 999px;
  letter-spacing: 0.03em;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); display: inline-block; }
.hero h1 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(40px, 5.5vw, 64px);
  line-height: 1.05;
  margin: 20px 0 16px;
  color: var(--navy);
}
.hero h1 .accent { color: var(--coral); }
.hero-lead {
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink);
  margin: 0 0 32px;
  max-width: 480px;
  text-wrap: pretty;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  font-weight: 800;
  font-size: 17px;
  padding: 15px 30px;
  border-radius: 999px;
  display: inline-block;
  transition: transform 0.15s ease;
}
.btn-primary { background: var(--coral); color: #fff; box-shadow: 0 5px 0 var(--coral-dark); }
.btn-primary:hover { transform: translateY(-2px); color: #fff; }
.btn-ghost { background: #fff; color: var(--navy); border: 2px solid var(--navy); }
.btn-ghost:hover { transform: translateY(-2px); background: var(--tint-soft); }

/* Hero visual */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
}
.hero-ring {
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  border: 2px solid var(--cyan);
  animation: pulseRing 2.6s ease-out infinite;
}
.hero-ring.delay { animation-delay: 1.3s; }
.hero-card {
  position: relative;
  width: 320px; height: 320px;
  background: var(--navy);
  border-radius: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  box-shadow: 0 24px 60px rgba(29, 61, 92, 0.28);
  animation: floaty 5s ease-in-out infinite;
}
.hero-card img { width: 200px; background: #fff; border-radius: 24px; padding: 8px; }
.hero-card .nfc-label {
  color: var(--cyan);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-card .nfc-ico {
  display: inline-block;
  width: 22px; height: 22px;
  border: 2.5px solid var(--cyan);
  border-radius: 50%;
  position: relative;
}
.hero-card .nfc-ico::after {
  content: "";
  position: absolute; inset: 5px;
  border-radius: 50%;
  background: var(--cyan);
}
.hero-pill {
  position: absolute;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}
.hero-pill.pill-cyan {
  top: 8%; right: 4%;
  background: var(--cyan); color: var(--navy-dark);
  animation: floaty2 4s ease-in-out infinite;
}
.hero-pill.pill-white {
  bottom: 6%; left: 2%;
  background: #fff; color: var(--navy);
  font-weight: 800;
  border: 2px solid var(--coral);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.10);
  animation: floaty2 4.6s ease-in-out infinite 0.6s;
}

/* ============================================================
   NFC — how it works (dark section)
   ============================================================ */
.nfc {
  background: var(--navy);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.nfc .wrap { padding-top: 80px; padding-bottom: 80px; }
.section-head { text-align: center; margin: 0 auto 56px; }
.nfc .section-head { max-width: 620px; }
.nfc .eyebrow { color: var(--cyan); }
.nfc h2 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(30px, 4vw, 42px);
  margin: 12px 0 14px;
  line-height: 1.1;
}
.nfc-lead { color: var(--on-navy); font-size: 17px; line-height: 1.6; margin: 0; text-wrap: pretty; }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.nfc-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(92, 225, 230, 0.25);
  border-radius: 24px;
  padding: 32px 28px;
}
.nfc-card .num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 42px;
  color: var(--cyan);
  line-height: 1;
}
.nfc-card h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 22px;
  margin: 14px 0 8px;
}
.nfc-card p { color: var(--on-navy); font-size: 15px; line-height: 1.6; margin: 0; }

/* ============================================================
   SERVIÇOS
   ============================================================ */
.services .wrap { padding-top: 88px; padding-bottom: 88px; }
.services .section-head { max-width: 560px; }
.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 36px 30px;
  box-shadow: 0 6px 24px rgba(29, 61, 92, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(29, 61, 92, 0.12);
}
.service-card .ico {
  width: 60px; height: 60px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}
.service-card .ico.cyan  { background: var(--tint-cyan); }
.service-card .ico.coral { background: var(--tint-coral); }
.service-card h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 24px;
  margin: 20px 0 10px;
  color: var(--navy);
}
.service-card p { color: var(--ink); font-size: 15.5px; line-height: 1.65; margin: 0; }

/* ============================================================
   PORTFÓLIO
   ============================================================ */
.portfolio {
  background: var(--portfolio);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.portfolio .wrap { padding-top: 88px; padding-bottom: 88px; }
.portfolio .section-head { max-width: 560px; margin-bottom: 48px; }
.portfolio h2 { margin-bottom: 12px; }
.portfolio-sub { color: var(--ink); font-size: 16px; margin: 0; }
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.pf-slot {
  height: 260px;
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
  border: 2px dashed #CFC7B8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  color: var(--ink);
  padding: 20px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.pf-slot:hover { border-color: var(--cyan); background: #fff; }
.pf-slot .pf-ico {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--tint-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}
.pf-slot .pf-label { font-weight: 700; font-size: 14.5px; }
.pf-slot img { width: 100%; height: 100%; object-fit: cover; }
.pf-slot.filled { border-style: solid; border-color: transparent; padding: 0; }

/* ============================================================
   CONTATO
   ============================================================ */
.contact .wrap { padding-top: 88px; padding-bottom: 88px; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: start;
}
.contact h2 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(30px, 4vw, 42px);
  margin: 12px 0 14px;
  color: var(--navy);
  line-height: 1.1;
}
.contact-lead { color: var(--ink); font-size: 17px; line-height: 1.6; margin: 0 0 28px; text-wrap: pretty; }
.contact-methods { display: flex; flex-direction: column; gap: 14px; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px 20px;
  color: var(--navy);
  font-weight: 700;
}
a.contact-item { transition: transform 0.15s ease; }
a.contact-item:hover { transform: translateY(-2px); color: var(--navy); }
.contact-item .ico {
  width: 44px; height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.contact-item .ico.cyan  { background: var(--tint-cyan); }
.contact-item .ico.green { background: var(--tint-green); }
.contact-item .ico.coral { background: var(--tint-coral); }

.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 36px;
  box-shadow: 0 10px 32px rgba(29, 61, 92, 0.08);
}
.form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 800; font-size: 14px; color: var(--navy); }
.field input,
.field textarea {
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 13px 16px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--navy);
  outline: none;
  background: var(--bg);
}
.field textarea { resize: vertical; }
.field input:focus,
.field textarea:focus { border-color: var(--cyan); }
.form button {
  background: var(--coral);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 17px;
  padding: 16px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 5px 0 var(--coral-dark);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.form button:hover { transform: translateY(-2px); }
.form button:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--coral-dark); }
.form-note { font-size: 13px; color: var(--muted); margin: 0; text-align: center; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--navy); color: var(--on-navy); }
.footer-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 40px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { height: 32px; background: #fff; border-radius: 10px; padding: 6px 10px; }
.footer-brand div { font-size: 14px; line-height: 1.5; }
.footer-meta { font-size: 14px; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.footer-meta a { color: var(--cyan); }
.footer-meta a:hover { color: #fff; }

/* ============================================================
   Reveal-on-scroll
   ============================================================ */
/* Only hide when JS is active (progressive enhancement) so content is
   never invisible if the script fails to load. */
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js [data-reveal].revealed { opacity: 1; transform: translateY(0); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 780px) {
  .hero-inner { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 680px) {
  .nav-desktop { display: none; }
  .nav-toggle { display: flex; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; }
  html { scroll-behavior: auto; }
}
