/* ========================================
   AQUI LEM - Antigravity Design System
   Emerald Green + Golden Yellow
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --emerald-50:  #ecfdf5;
  --emerald-100: #d1fae5;
  --emerald-400: #34d399;
  --emerald-500: #10b981;
  --emerald-600: #059669;
  --emerald-700: #047857;
  --emerald-900: #064e3b;
  --gold-300:    #fcd34d;
  --gold-400:    #fbbf24;
  --gold-500:    #f59e0b;
  --gold-600:    #d97706;
  --white:       #ffffff;
  --gray-50:     #f9fafb;
  --gray-100:    #f3f4f6;
  --gray-200:    #e5e7eb;
  --gray-400:    #9ca3af;
  --gray-500:    #6b7280;
  --gray-700:    #374151;
  --gray-900:    #111827;

  /* Antigravity shadows */
  --shadow-float: 0 8px 32px rgba(5,150,105,0.15), 0 2px 8px rgba(5,150,105,0.08);
  --shadow-card:  0 20px 60px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.04);
  --shadow-gold:  0 8px 24px rgba(245,158,11,0.3);
  --shadow-nav:   0 -4px 30px rgba(0,0,0,0.08);

  /* Glass */
  --glass-bg:     rgba(255,255,255,0.72);
  --glass-border: rgba(255,255,255,0.9);

  --radius-card: 20px;
  --radius-btn:  50px;
  --radius-pill: 999px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', sans-serif;
  background: #f0faf5;
  color: var(--gray-900);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Mobile shell ── */
.app-shell {
  max-width: 430px;
  margin: 0 auto;
  background: #f0faf5;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

/* ── STATUS BAR ── */
.status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-700);
}
.status-bar .status-icons {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ── TOP NAV ── */
.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 20px 12px;
}
.logo-wrap { display: flex; align-items: flex-end; gap: 2px; line-height: 1; }
.logo-aqui {
  font-size: 30px;
  font-weight: 900;
  color: var(--emerald-600);
  letter-spacing: -1px;
  position: relative;
}
.logo-a-pin {
  display: inline-block;
  position: relative;
}
.logo-a-pin::before {
  content: '';
  position: absolute;
  top: 4px; left: 50%;
  transform: translateX(-50%);
  width: 10px; height: 14px;
  background: var(--gold-500);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  box-shadow: 0 2px 8px rgba(245,158,11,0.5);
  z-index: 1;
}
.logo-a-pin::after {
  content: '';
  position: absolute;
  bottom: 1px; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 6px;
  background: var(--gold-500);
  border-radius: 0 0 4px 4px;
  z-index: 1;
}
.logo-lem {
  font-size: 22px;
  font-weight: 900;
  color: var(--gold-500);
  letter-spacing: 2px;
  margin-bottom: 1px;
}
.nav-actions { display: flex; gap: 10px; }
.icon-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1.5px solid var(--glass-border);
  backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-float);
  transition: transform 0.2s, box-shadow 0.2s;
}
.icon-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(5,150,105,0.2); }
.icon-btn svg { width: 18px; height: 18px; stroke: var(--emerald-600); }

/* ── HERO ── */
.hero {
  position: relative;
  margin: 4px 20px 0;
  padding: 24px 20px 20px;
  background: linear-gradient(135deg, var(--emerald-50) 0%, #fff 60%, #fffbeb 100%);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  min-height: 180px;
}
.hero::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(16,185,129,0.12) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-tagline {
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-500);
  margin-bottom: 4px;
}
.hero-title {
  font-size: 22px;
  font-weight: 900;
  color: var(--emerald-700);
  line-height: 1.25;
  max-width: 180px;
  margin-bottom: 20px;
}
.hero-title span { color: var(--gold-500); }
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--emerald-600) 0%, var(--emerald-500) 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: var(--radius-btn);
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(5,150,105,0.4);
  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.25s;
  text-decoration: none;
}
.btn-primary:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 16px 36px rgba(5,150,105,0.5); }
.btn-primary .btn-arrow {
  width: 28px; height: 28px;
  background: rgba(255,255,255,0.25);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.hero-3d {
  position: absolute;
  right: -10px; top: -10px;
  width: 180px; height: 180px;
  object-fit: contain;
  mix-blend-mode: multiply;
  -webkit-mask-image: radial-gradient(circle, black 40%, transparent 60%);
  mask-image: radial-gradient(circle, black 40%, transparent 60%);
  filter: drop-shadow(0 16px 32px rgba(5,150,105,0.3));
  animation: float 4s ease-in-out infinite;
}
@keyframes float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

/* ── FLOATING DOTS ── */
.dot {
  position: absolute;
  border-radius: 50%;
  animation: floatDot 5s ease-in-out infinite;
}
.dot-1 { width:14px;height:14px;background:var(--gold-400);top:30px;right:120px;opacity:0.8;animation-delay:0s; }
.dot-2 { width:10px;height:10px;background:var(--emerald-400);top:80px;right:60px;opacity:0.6;animation-delay:1.5s; }
.dot-3 { width:8px;height:8px;background:var(--gold-300);bottom:20px;right:90px;opacity:0.7;animation-delay:0.8s; }
@keyframes floatDot {
  0%,100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-8px) rotate(15deg); }
}

/* ── CATEGORIES ── */
.section-pad { padding: 0 20px; }
.categories {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  gap: 16px;
  margin: 16px 20px 0;
  padding: 16px;
  background: var(--glass-bg);
  border: 1.5px solid var(--glass-border);
  backdrop-filter: blur(16px);
  border-radius: 24px;
  box-shadow: var(--shadow-card);
}
.categories::-webkit-scrollbar { display: none; }
.cat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 0 auto;
  min-width: 70px;
  scroll-snap-align: start;
  text-align: center;
  gap: 8px;
  cursor: pointer;
  transition: transform 0.2s;
}
.cat-item:hover { transform: translateY(-3px); }
.cat-icon {
  width: 52px; height: 52px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  font-size: 22px;
  transition: box-shadow 0.2s;
}
.cat-icon.agro    { background: linear-gradient(135deg, var(--emerald-500), var(--emerald-400)); }
.cat-icon.servico { background: linear-gradient(135deg, var(--gold-500), var(--gold-400)); }
.cat-icon.oferta  { background: linear-gradient(135deg, #a78bfa, #7c3aed); }
.cat-icon.voce    { background: linear-gradient(135deg, #60a5fa, #2563eb); }
.cat-item:hover .cat-icon { box-shadow: 0 8px 24px rgba(0,0,0,0.15); }
.cat-label {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--gray-700);
  text-align: center;
  line-height: 1.2;
}

/* ── SECTION HEADER ── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 24px 20px 12px;
}
.section-title-wrap { display: flex; align-items: center; gap: 10px; }
.section-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.section-icon.green { background: var(--emerald-100); }
.section-icon.gold  { background: #fef3c7; }
.section-title { font-size: 16px; font-weight: 800; color: var(--gray-900); }
.section-sub   { font-size: 11px; font-weight: 500; color: var(--gray-400); margin-top: 1px; }
.ver-todos {
  display: flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 700; color: var(--emerald-600);
  cursor: pointer; text-decoration: none;
  transition: gap 0.2s;
}
.ver-todos:hover { gap: 8px; }

/* ── CARDS SCROLL ── */
.cards-scroll {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 4px 20px 16px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.cards-scroll::-webkit-scrollbar { display: none; }

/* ── AD CARD ── */
.ad-card {
  flex: 0 0 175px;
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  scroll-snap-align: start;
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.3s;
  cursor: pointer;
  position: relative;
}
.ad-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 24px 60px rgba(0,0,0,0.14);
}
.card-img-wrap {
  position: relative;
  height: 120px;
  overflow: hidden;
}
.card-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.ad-card:hover .card-img-wrap img { transform: scale(1.06); }
.card-badge {
  position: absolute;
  top: 8px; left: 8px;
  background: var(--emerald-500);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 8px rgba(16,185,129,0.4);
}
.card-badge.gold { background: var(--gold-500); box-shadow: 0 2px 8px rgba(245,158,11,0.4); }
.card-fav {
  position: absolute;
  top: 8px; right: 8px;
  width: 30px; height: 30px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: transform 0.2s;
}
.card-fav:hover { transform: scale(1.2); }
.card-fav svg { width: 14px; height: 14px; stroke: var(--gray-400); fill: none; }
.card-fav.active svg { stroke: #ef4444; fill: #ef4444; }
.card-body { padding: 10px 12px 12px; }
.card-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 4px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-loc {
  display: flex; align-items: center; gap: 4px;
  font-size: 10.5px; color: var(--gray-400); margin-bottom: 6px;
}
.card-loc svg { width: 11px; height: 11px; flex-shrink: 0; }
.card-price {
  font-size: 13px;
  font-weight: 800;
  color: var(--emerald-600);
  margin-bottom: 8px;
}
.card-price.gold-price { color: var(--gold-600); }
.card-footer {
  display: flex; align-items: center; justify-content: space-between;
}
.card-tag {
  font-size: 10px; font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--emerald-100);
  color: var(--emerald-700);
}
.card-tag.gold { background: #fef3c7; color: var(--gold-600); }
.card-time { font-size: 10px; color: var(--gray-400); }

/* ── SERVICE CARDS (wider) ── */
.service-card {
  flex: 0 0 200px;
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  scroll-snap-align: start;
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.3s;
  cursor: pointer;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.14);
}
.service-card .card-img-wrap { height: 110px; }
.service-card .card-body { padding: 10px 12px 12px; }
.rating {
  display: flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 700; color: var(--gold-500);
}
.rating span { color: var(--gray-500); font-weight: 400; }

/* ── BOTTOM NAV ── */
.bottom-nav {
  position: sticky;
  bottom: 0;
  left: 0; right: 0;
  background: var(--glass-bg);
  border-top: 1.5px solid var(--glass-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 10px 10px 20px;
  box-shadow: var(--shadow-nav);
  z-index: 100;
}
.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: transform 0.2s;
  padding: 4px 12px;
  border-radius: 12px;
  flex: 1;
}
.nav-item:hover { transform: translateY(-2px); }
.nav-item svg { width: 22px; height: 22px; stroke: var(--gray-400); transition: stroke 0.2s; }
.nav-item span { font-size: 10px; font-weight: 600; color: var(--gray-400); transition: color 0.2s; }
.nav-item.active svg  { stroke: var(--emerald-600); }
.nav-item.active span { color: var(--emerald-600); }
.nav-fab {
  width: 58px; height: 58px;
  background: linear-gradient(135deg, var(--emerald-600), var(--emerald-400));
  border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1px;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(5,150,105,0.5);
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.3s;
  margin-top: -20px;
  border: 3px solid rgba(255,255,255,0.8);
}
.nav-fab:hover { transform: translateY(-4px) scale(1.08); box-shadow: 0 16px 36px rgba(5,150,105,0.6); }
.nav-fab svg { width: 22px; height: 22px; stroke: #fff; stroke-width: 2.5; }
.nav-fab span { font-size: 9px; font-weight: 700; color: #fff; }

/* ── SEARCH BAR ── */
.search-wrap {
  margin: 12px 20px 0;
}
.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 1.5px solid var(--gray-100);
  border-radius: 14px;
  padding: 10px 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.search-bar input {
  flex: 1; border: none; outline: none;
  font-size: 14px; font-family: 'Inter', sans-serif;
  color: var(--gray-700); background: transparent;
}
.search-bar input::placeholder { color: var(--gray-400); }
.search-bar svg { width: 18px; height: 18px; stroke: var(--gray-400); flex-shrink: 0; }
.search-filter {
  width: 34px; height: 34px;
  background: var(--emerald-600);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; cursor: pointer;
}
.search-filter svg { width: 16px; height: 16px; stroke: #fff; }

/* ── DIVIDER ── */
.spacer { height: 100px; }

/* ── ANIMATIONS ── */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-up { animation: slideUp 0.5s ease forwards; }
.delay-1 { animation-delay: 0.1s; opacity: 0; }
.delay-2 { animation-delay: 0.2s; opacity: 0; }
.delay-3 { animation-delay: 0.3s; opacity: 0; }
.delay-4 { animation-delay: 0.4s; opacity: 0; }

/* ── DESKTOP & RESPONSIVE LAYOUT ── */
.desktop-only { display: none !important; }

@media (min-width: 768px) {
  body {
    background: #f0faf5;
    display: block; /* Remove a centralização estrita da caixa */
    padding: 0;
  }
  
  .desktop-only { display: flex !important; }
  .mobile-only { display: none !important; }
  
  .app-shell, .perfil-shell {
    max-width: 1200px;
    margin: 0 auto;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    min-height: auto;
    overflow: visible;
  }
  
  /* Desktop Top Nav */
  .top-nav {
    padding: 16px 40px;
    background: var(--white);
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 900;
    margin: 0 0 40px 0;
    border-radius: 0 0 24px 24px;
  }
  
  .desktop-nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
  }
  
  .desktop-link {
    font-size: 14px;
    font-weight: 700;
    color: var(--gray-700);
    text-decoration: none;
    transition: color 0.2s;
  }
  .desktop-link:hover { color: var(--emerald-600); }
  
  .desktop-btn-anunciar {
    background: linear-gradient(135deg, var(--emerald-600), var(--emerald-500));
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: var(--radius-btn);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 16px rgba(5,150,105,0.3);
    transition: transform 0.2s, box-shadow 0.2s;
  }
  .desktop-btn-anunciar:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(5,150,105,0.4);
  }
  
  /* Hide Bottom Nav on desktop */
  .bottom-nav { display: none !important; }
  
  /* Expand Search Bar */
  .search-wrap {
    max-width: 700px;
    margin: 0 auto 40px;
  }
  .search-bar { padding: 14px 24px; }
  .search-bar input { font-size: 16px; }
  
  /* Desktop Categories Row */
  .categories {
    display: flex;
    justify-content: center;
    gap: 40px;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    margin: 0 auto 50px;
  }
  .cat-item { width: auto; gap: 12px; }
  .cat-label { font-size: 13px; }
  .cat-icon { width: 64px; height: 64px; font-size: 28px; border-radius: 20px; }
  
  /* Expand Hero */
  .hero {
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 40px;
    margin: 0 20px 40px;
  }
  .hero-title { font-size: 32px; max-width: 400px; }
  .hero-tagline { font-size: 16px; margin-bottom: 12px; }
  .hero-3d { right: 80px; top: -30px; width: 340px; height: 340px; }
  
  /* Desktop Grid for Cards */
  .section-header { margin: 24px 20px 24px; }
  .cards-scroll {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
    overflow-x: visible;
    scroll-snap-type: none;
    padding: 10px 20px 50px;
  }
  .ad-card, .service-card {
    flex: auto;
    max-width: none;
    scroll-snap-align: none;
  }
  .service-card .card-img-wrap { height: 160px; }
  .ad-card .card-img-wrap { height: 180px; }
}

/* ── Atalho "Vagas de emprego" na página inicial ─────────── */
.vagas-cta {
  display: flex; align-items: center; gap: 14px; margin: 4px 20px 26px; padding: 16px 18px;
  border-radius: 22px; text-decoration: none; color: #fff; position: relative; overflow: hidden;
  background:
    radial-gradient(420px 160px at 100% 0%, rgba(251, 191, 36, .45), transparent 60%),
    linear-gradient(135deg, #064e3b 0%, #047857 55%, #059669 100%);
  box-shadow: 0 14px 34px rgba(5, 150, 105, .28);
  transition: transform .2s, box-shadow .2s;
}
.vagas-cta:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(5, 150, 105, .36); }
.vagas-cta-ico { width: 52px; height: 52px; flex-shrink: 0; border-radius: 16px; background: rgba(255,255,255,.16); display: grid; place-items: center; font-size: 26px; }
.vagas-cta-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.vagas-cta-txt strong { font-size: 17px; font-weight: 900; letter-spacing: -.01em; }
.vagas-cta-txt span { font-size: 13px; color: rgba(255,255,255,.85); line-height: 1.35; }
.vagas-cta-acoes { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }
.vagas-cta-btn { background: #fbbf24; color: #3b2300; font-weight: 800; font-size: 13.5px; padding: 9px 14px; border-radius: 999px; white-space: nowrap; }
.vagas-cta-link { font-size: 12.5px; font-weight: 700; color: #fde68a; text-decoration: underline; white-space: nowrap; }
@media (max-width: 420px) {
  .vagas-cta { flex-wrap: wrap; }
  .vagas-cta-acoes { flex-direction: row; align-items: center; width: 100%; justify-content: space-between; }
}
@media (min-width: 768px) {
  .vagas-cta { max-width: 1100px; margin: 0 auto 32px; padding: 20px 24px; }
  .vagas-cta-txt strong { font-size: 20px; }
  .vagas-cta-acoes { flex-direction: row; align-items: center; gap: 16px; }
}
