/* ═══════════════════════════════════════════
   ZENPURE — rastreamento.css
   ═══════════════════════════════════════════ */

/* ── TOKENS ── */
:root {
  --white:        #f8f7f3;
  --green-light:  #c8dbc0;
  --green-mid:    #4a7c59;
  --green-dark:   #2d5a3d;
  --navy:         #0e2340;
  --navy-mid:     #1a3555;
  --text-body:    #2e2e2e;
  --muted:        #7a8a80;
  --radius-sm:    8px;
  --radius-md:    16px;
  --radius-lg:    24px;
  --radius-pill:  50px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
img   { display: block; max-width: 100%; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--white);
  color: var(--text-body);
  overflow-x: hidden;
}

/* ══════════════════════════════
   NAV
══════════════════════════════ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%;
  height: 72px;
  background: rgba(248, 247, 243, 0.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(74, 124, 89, .15);
}

.logo-link {
  display: flex; align-items: center; flex-shrink: 0;
  text-decoration: none;
}
.logo-img {
  height: 32px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex; gap: 32px; list-style: none;
}
.nav-links a {
  text-decoration: none; color: var(--navy);
  font-size: 14px; font-weight: 400; letter-spacing: .4px;
  position: relative; padding-bottom: 2px;
  transition: color .25s;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--green-mid);
  transition: width .3s ease;
}
.nav-links a:hover               { color: var(--green-mid); }
.nav-links a:hover::after        { width: 100%; }

.nav-cta {
  background: var(--navy) !important; color: var(--white) !important;
  padding: 10px 22px; border-radius: var(--radius-pill);
  font-size: 13px !important; font-weight: 500 !important;
  transition: background .25s !important;
}
.nav-cta:hover   { background: var(--green-dark) !important; }
.nav-cta::after  { display: none !important; }

/* Hamburger */
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 4px; background: none; border: none;
}
.nav-hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--navy); border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.nav-mobile {
  display: none;
  position: fixed; top: 72px; left: 0; right: 0; z-index: 9999;
  height: auto;
  transform: translateZ(0);
  background: #f8f7f3;
  border-bottom: 1px solid rgba(74,124,89,.12);
  box-shadow: 0 8px 24px rgba(14,35,64,.08);
  padding: 16px 6% 24px;
  flex-direction: column; gap: 4px;
}

body.nav-open { overflow: hidden; }
.nav-mobile.open { display: flex; }
.nav-mobile a {
  text-decoration: none; color: var(--navy);
  font-size: 16px; font-weight: 400;
  padding: 10px 0;
  border-bottom: 1px solid rgba(74, 124, 89, .1);
  transition: color .2s;
}
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile a:hover { color: var(--green-mid); }
.nav-mobile .mobile-cta {
  background: var(--navy); color: var(--white) !important;
  padding: 14px 24px; border-radius: var(--radius-pill);
  text-align: center; font-weight: 500 !important;
  border-bottom: none !important;
}

/* ══════════════════════════════
   HERO
══════════════════════════════ */
.hero {
  padding-top: 72px;
  min-height: 56vh;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(200,219,192,0.35) 0%, transparent 65%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -80px;
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(74,124,89,0.08) 0%, transparent 65%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 600px;
  padding: 72px 24px 64px;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--green-light); color: var(--green-dark);
  padding: 6px 16px; border-radius: var(--radius-pill);
  font-size: 11px; font-weight: 500; letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 24px;
  animation: fadeUp .7s ease both;
}
.hero-badge::before {
  content: ''; width: 6px; height: 6px;
  background: var(--green-mid); border-radius: 50%;
}

.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(38px, 6vw, 64px);
  font-weight: 300; line-height: 1.1;
  color: var(--navy);
  margin-bottom: 18px;
  animation: fadeUp .7s .12s ease both;
}
.hero-title em { font-style: italic; color: var(--green-mid); }

.hero-sub {
  font-size: 16px; font-weight: 300; line-height: 1.7;
  color: var(--muted);
  margin-bottom: 48px;
  animation: fadeUp .7s .22s ease both;
}

/* ── Search Card ── */
.search-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: 0 20px 60px rgba(14, 35, 64, .1), 0 2px 8px rgba(14, 35, 64, .06);
  border: 1px solid rgba(74, 124, 89, .12);
  text-align: left;
  animation: fadeUp .7s .32s ease both;
}

.search-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.input-wrap { margin-bottom: 16px; }

.input-wrap input {
  width: 100%;
  background: var(--white);
  border: 1.5px solid rgba(74, 124, 89, .2);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  color: var(--navy);
  font-family: 'Space Mono', monospace;
  font-size: 17px;
  letter-spacing: 2px;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.input-wrap input::placeholder {
  color: #bbb;
  letter-spacing: 1px;
  font-size: 14px;
}
.input-wrap input:focus {
  border-color: var(--green-mid);
  box-shadow: 0 0 0 3px rgba(74, 124, 89, .12);
}

/* ── Button Buscar ── */
.btn-buscar {
  width: 100%;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: var(--radius-pill);
  padding: 16px 32px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .5px;
  cursor: pointer;
  transition: background .25s, transform .2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.btn-buscar:hover  { background: var(--green-dark); transform: translateY(-1px); }
.btn-buscar:active { transform: translateY(0); }
.btn-buscar.loading { opacity: 0.65; pointer-events: none; }

/* ── Spinner ── */
.spinner {
  width: 17px; height: 17px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Error box ── */
.error-box {
  background: rgba(180, 50, 50, 0.06);
  border: 1px solid rgba(180, 50, 50, 0.2);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  color: #b43232;
  font-size: 14px;
  text-align: center;
  margin-top: 16px;
  display: none;
}
.error-box.visible { display: block; animation: fadeUp .3s ease; }

/* ══════════════════════════════
   RESULT SECTION
══════════════════════════════ */
.result-section {
  max-width: 680px;
  margin: 0 auto 80px;
  padding: 0 24px;
  display: none;
}
.result-section.visible { display: block; animation: fadeUp .5s ease both; }

.result-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  padding: 0 4px;
}

.result-found-label {
  font-size: 13px;
  color: var(--muted);
}

/* ── Status pill ── */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(74, 124, 89, .1);
  border: 1px solid rgba(74, 124, 89, .3);
  color: var(--green-mid);
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 1.5px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
}

.status-dot {
  width: 7px; height: 7px;
  background: var(--green-mid);
  border-radius: 50%;
  animation: pulse 1.5s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}

/* ── Info block ── */
.info-block {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 16px;
  box-shadow: 0 8px 32px rgba(14, 35, 64, .08);
  border: 1px solid rgba(74, 124, 89, .1);
}

.info-block-title {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.info-block-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(74, 124, 89, .15);
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(74, 124, 89, .1);
}
.info-row:last-of-type { border-bottom: none; }

.info-row-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
  padding-top: 2px;
}

.info-row-value {
  font-size: 15px;
  font-weight: 500;
  color: var(--navy);
  text-align: right;
  line-height: 1.45;
}
.info-row-value.mono {
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  letter-spacing: 1px;
}
.info-row-value.accent { color: var(--green-mid); }

/* ── Tracking row ── */
.track-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 0 4px;
  flex-wrap: wrap;
  margin-top: 4px;
  border-top: 1px solid rgba(74, 124, 89, .1);
}

.track-row-left .track-lbl {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--green-mid);
  margin-bottom: 5px;
}

.track-code {
  font-family: 'Space Mono', monospace;
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 2px;
}

.track-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}

.btn-track {
  background: rgba(74, 124, 89, .1);
  border: 1.5px solid rgba(74, 124, 89, .3);
  color: var(--green-mid);
  border-radius: var(--radius-pill);
  padding: 10px 20px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background .2s, transform .15s;
  white-space: nowrap;
}
.btn-track:hover  { background: rgba(74, 124, 89, .18); transform: translateY(-1px); }
.btn-track.copied { background: rgba(74, 124, 89, .22); }

/* ══════════════════════════════
   TIMELINE
══════════════════════════════ */
.timeline {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  overflow: hidden;
}
.timeline::before {
  content: 'ZEN';
  position: absolute; right: -10px; top: 50%; transform: translateY(-50%);
  font-family: 'Cormorant Garamond', serif;
  font-size: 180px; font-weight: 300;
  color: rgba(255,255,255,.03); pointer-events: none; line-height: 1;
}

.timeline-title {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--green-light);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}
.tl-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--green-light);
}

.timeline-items { display: flex; flex-direction: column; position: relative; }

.t-item {
  display: flex;
  gap: 18px;
  position: relative;
}

.t-item:not(:last-child) .t-line {
  position: absolute;
  left: 8px; top: 18px; bottom: -16px;
  width: 1px;
  background: rgba(255,255,255,.1);
}

.t-dot-wrap {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 4px;
}

.t-dot {
  width: 17px; height: 17px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.15);
  background: var(--navy-mid);
}
.t-dot.active {
  border-color: var(--green-light);
  background: var(--green-mid);
  box-shadow: 0 0 12px rgba(200, 219, 192, .4);
}
.t-dot.done {
  border-color: rgba(255,255,255,.3);
  background: rgba(255,255,255,.15);
}

.t-content { padding-bottom: 24px; }
.t-event { font-size: 14px; font-weight: 400; color: rgba(255,255,255,.85); }
.t-date {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: rgba(255,255,255,.38);
  margin-top: 3px;
}

/* ══════════════════════════════
   FOOTER
══════════════════════════════ */
footer {
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 56px 8% 28px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 52px; margin-bottom: 44px;
}
.footer-brand-logo {
  margin-bottom: 18px;
  background: none;
}
.footer-logo-img {
  height: 48px;
  width: auto;
  display: block;
}
.footer-desc {
  font-size: 14px; line-height: 1.75; color: rgba(255,255,255,.5);
  max-width: 240px; margin-bottom: 22px;
}
.footer-social { display: flex; gap: 10px; }
.social-btn {
  width: 36px; height: 36px;
  background: rgba(255,255,255,.08);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.6);
  text-decoration: none; font-size: 14px; font-weight: 600;
  transition: background .2s, color .2s;
}
.social-btn:hover { background: var(--green-mid); color: var(--white); }

.footer-col h5 {
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: rgba(255,255,255,.38); margin-bottom: 18px;
}
.footer-col ul  { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer-col a   { color: rgba(255,255,255,.6); text-decoration: none; font-size: 14px; transition: color .2s; }
.footer-col a:hover { color: var(--green-light); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 24px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,.28); }
.footer-bottom-links { display: flex; gap: 22px; }
.footer-bottom-links a {
  font-size: 13px; color: rgba(255,255,255,.28); text-decoration: none; transition: color .2s;
}
.footer-bottom-links a:hover { color: rgba(255,255,255,.65); }

/* ══════════════════════════════
   ANIMATIONS
══════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════
   RESPONSIVE — TABLET
══════════════════════════════ */
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .search-card { padding: 24px 20px; }
}

/* ══════════════════════════════
   RESPONSIVE — MOBILE
══════════════════════════════ */
@media (max-width: 640px) {
  nav { padding: 0 5%; }
  .nav-links     { display: none; }
  .nav-hamburger { display: flex; }

  .hero-inner { padding: 56px 0 48px; }
  .hero-title { font-size: clamp(34px, 10vw, 52px); }

  .info-block   { padding: 22px 18px; }
  .track-row    { flex-direction: column; align-items: flex-start; }
  .track-actions { flex-direction: row; align-items: center; }

  .timeline { padding: 24px 20px; }

  footer { padding: 48px 5% 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-bottom-links { flex-wrap: wrap; justify-content: center; }
}
