/*
Theme Name: Temos Vagas BR
Theme URI: https://temosvagasbr.com/
Author: Temos Vagas BR
Author URI: https://temosvagasbr.com/
Description: Tema oficial do maior hub de oportunidades de carreira do Brasil. Design profissional com identidade visual brasileira.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: temosvagasbr
Tags: jobs, career, brasil, employment, blue, professional
*/

/* ==========================================================================
   TOKENS — Temos Vagas BR Brand System
   ========================================================================== */

:root {
  --navy:        #0D1B3D;
  --blue:        #1565DB;
  --green:       #20B26B;
  --yellow:      #FFC107;
  --light:       #F2F4F7;
  --white:       #FFFFFF;
  --text:        #1A1A2E;
  --text-muted:  #6B7280;
  --border:      #E5E7EB;

  --font: 'Poppins', sans-serif;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 100px;

  --shadow-sm: 0 2px 8px rgba(13,27,61,0.08);
  --shadow-md: 0 8px 32px rgba(13,27,61,0.12);
  --shadow-lg: 0 24px 64px rgba(13,27,61,0.16);

  --max-w: 1200px;
  --gap: 24px;
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */

h1, h2, h3, h4, h5 { font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
h4 { font-size: 1.1rem; }

.text-blue   { color: var(--blue); }
.text-green  { color: var(--green); }
.text-yellow { color: var(--yellow); }
.text-navy   { color: var(--navy); }
.text-muted  { color: var(--text-muted); }

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-2px); opacity: 0.92; }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(32,178,107,0.35);
}

.btn-primary:hover { box-shadow: 0 8px 24px rgba(32,178,107,0.45); }

.btn-secondary {
  background: var(--white);
  color: var(--blue);
  border: 2px solid var(--blue);
}

.btn-dark {
  background: var(--navy);
  color: var(--white);
}

.btn-yellow {
  background: var(--yellow);
  color: var(--navy);
  box-shadow: 0 4px 16px rgba(255,193,7,0.35);
}

/* ==========================================================================
   HEADER / NAVIGATION
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 32px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-mark {
  width: 44px;
  height: 44px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-text .temos {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.05em;
}

.logo-text .vagas {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
}

.logo-text .br {
  color: var(--green);
}

.nav-primary {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}

.nav-primary a {
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text);
  transition: background 0.15s, color 0.15s;
}

.nav-primary a:hover,
.nav-primary a.current {
  background: var(--light);
  color: var(--blue);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.btn-login {
  font-weight: 600;
  color: var(--navy);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  transition: background 0.15s;
}

.btn-login:hover { background: var(--light); }

.btn-register {
  background: var(--green);
  color: var(--white);
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.9rem;
  transition: box-shadow 0.15s, transform 0.15s;
}

.btn-register:hover {
  box-shadow: 0 4px 16px rgba(32,178,107,0.4);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: 0.3s;
}

/* ==========================================================================
   HERO
   ========================================================================== */

.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #1a2f6b 60%, #0f2251 100%);
  color: var(--white);
  padding: 80px 0 60px;
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -80px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(32,178,107,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(21,101,219,0.2) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(32,178,107,0.15);
  border: 1px solid rgba(32,178,107,0.4);
  color: var(--green);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: 0.04em;
}

.hero-eyebrow .dot {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

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

.hero h1 {
  margin-bottom: 20px;
  color: var(--white);
}

.hero h1 .accent-blue   { color: var(--blue); }
.hero h1 .accent-green  { color: var(--green); }
.hero h1 .accent-yellow { color: var(--yellow); }

.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  gap: 32px;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
}

.stat-number span { color: var(--green); }

.stat-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
  font-weight: 500;
}

/* Search Box */
.hero-search {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 28px;
  backdrop-filter: blur(10px);
}

.hero-search-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}

.search-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.search-input-wrap {
  position: relative;
}

.search-input-wrap .icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1rem;
}

.search-input {
  width: 100%;
  padding: 14px 14px 14px 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.9rem;
  background: var(--white);
  color: var(--text);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.search-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(21,101,219,0.15);
}

.search-btn {
  background: var(--green);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  padding: 14px;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: box-shadow 0.15s, transform 0.15s;
}

.search-btn:hover {
  box-shadow: 0 4px 16px rgba(32,178,107,0.4);
  transform: translateY(-1px);
}

.popular-searches {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.popular-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
}

.popular-tag {
  font-size: 0.75rem;
  padding: 4px 12px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-pill);
  color: rgba(255,255,255,0.8);
  cursor: pointer;
  transition: background 0.15s;
}

.popular-tag:hover { background: rgba(255,255,255,0.2); }

/* ==========================================================================
   CATEGORIES / DESTAQUES
   ========================================================================== */

.section-categories {
  padding: 64px 0;
  background: var(--light);
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--green);
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}

.section-header h2 { margin-bottom: 10px; }

.section-header p {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 520px;
  margin: 0 auto;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
}

.category-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  border: 1px solid var(--border);
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.category-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-size: 1.3rem;
}

.cat-blue   { background: rgba(21,101,219,0.1); color: var(--blue); }
.cat-green  { background: rgba(32,178,107,0.1); color: var(--green); }
.cat-yellow { background: rgba(255,193,7,0.1);  color: #B8860B; }
.cat-navy   { background: rgba(13,27,61,0.08);  color: var(--navy); }
.cat-purple { background: rgba(124,58,237,0.1); color: #7C3AED; }

.category-card h4 {
  font-size: 0.85rem;
  color: var(--navy);
  margin-bottom: 4px;
}

.category-card .count {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ==========================================================================
   JOB LISTINGS
   ========================================================================== */

.section-jobs {
  padding: 72px 0;
}

.jobs-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 32px;
  gap: 20px;
  flex-wrap: wrap;
}

.view-all-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--blue);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: gap 0.15s;
}

.view-all-link:hover { gap: 10px; }

.jobs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}

.job-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.job-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--green));
  opacity: 0;
  transition: opacity 0.15s;
}

.job-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(21,101,219,0.2);
}

.job-card:hover::before { opacity: 1; }

.job-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.company-logo {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy);
  flex-shrink: 0;
  overflow: hidden;
}

.company-logo img { width: 100%; height: 100%; object-fit: cover; }

.job-badge {
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  font-weight: 600;
}

.badge-new     { background: rgba(32,178,107,0.12); color: var(--green); }
.badge-remote  { background: rgba(21,101,219,0.1);  color: var(--blue); }
.badge-urgent  { background: rgba(255,193,7,0.15);  color: #B8860B; }

.job-card h3 {
  font-size: 1rem;
  margin-bottom: 4px;
  color: var(--navy);
}

.job-company {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.job-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.job-tag {
  padding: 4px 10px;
  background: var(--light);
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.job-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.job-salary {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--navy);
}

.job-date {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.job-save {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 1.1rem;
  transition: color 0.15s;
  padding: 4px;
}

.job-save:hover { color: var(--blue); }

/* ==========================================================================
   HOW IT WORKS
   ========================================================================== */

.section-how {
  padding: 72px 0;
  background: var(--navy);
  color: var(--white);
}

.section-how .section-header h2 { color: var(--white); }
.section-how .section-eyebrow { color: var(--yellow); }
.section-how .section-header p { color: rgba(255,255,255,0.65); }

.how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
}

.how-step {
  text-align: center;
}

.how-step-num {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 2px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin: 0 auto 20px;
  font-weight: 700;
  color: var(--yellow);
}

.how-step h3 { color: var(--white); margin-bottom: 10px; font-size: 1rem; }
.how-step p  { color: rgba(255,255,255,0.6); font-size: 0.88rem; }

/* ==========================================================================
   VALUES
   ========================================================================== */

.section-values {
  padding: 72px 0;
  background: var(--light);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}

.value-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px 20px;
  text-align: center;
  border: 1px solid var(--border);
  transition: transform 0.15s, box-shadow 0.15s;
}

.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.value-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.4rem;
  background: var(--light);
}

.value-card h4 { margin-bottom: 8px; color: var(--navy); }
.value-card p  { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; }

/* ==========================================================================
   COMPANIES
   ========================================================================== */

.section-companies {
  padding: 64px 0;
  overflow: hidden;
}

.companies-scroll {
  display: flex;
  gap: 24px;
  animation: scroll-left 30s linear infinite;
  width: max-content;
}

.companies-scroll:hover { animation-play-state: paused; }

@keyframes scroll-left {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.company-logo-pill {
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 28px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-muted);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* ==========================================================================
   CTA BANNER
   ========================================================================== */

.section-cta {
  padding: 72px 0;
  background: linear-gradient(135deg, var(--green) 0%, #18956a 100%);
  color: var(--white);
  text-align: center;
}

.section-cta h2 { color: var(--white); margin-bottom: 16px; }
.section-cta p  { color: rgba(255,255,255,0.85); margin-bottom: 32px; font-size: 1.05rem; max-width: 520px; margin-left: auto; margin-right: auto; }

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  font-size: 0.88rem;
  margin-top: 12px;
  line-height: 1.7;
  max-width: 260px;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.social-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: background 0.15s, transform 0.15s;
}

.social-icon:hover {
  background: var(--green);
  transform: translateY(-2px);
}

.footer-col h5 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  transition: color 0.15s;
}

.footer-col ul li a:hover { color: var(--green); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom p { font-size: 0.8rem; }
.footer-bottom a { color: var(--green); }

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  transition: color 0.15s;
}

.footer-bottom-links a:hover { color: var(--white); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 48px 0 40px; }
  .hero-stats { gap: 20px; }
  .jobs-grid { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
  .how-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }

  .nav-primary,
  .nav-actions .btn-login,
  .nav-actions .btn-register { display: none; }

  .menu-toggle { display: flex; }

  .mobile-menu-open .nav-primary {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }

  .mobile-menu-open .nav-actions { display: flex; flex-direction: column; }
}

@media (max-width: 480px) {
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .how-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; }
  .hero-stats { flex-wrap: wrap; gap: 16px; }
}

/* ==========================================================================
   UTILITIES
   ========================================================================== */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

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