/*
Theme Name: ViaCarBR
Theme URI: https://viacarbr.com
Author: ViaCarBR
Author URI: https://viacarbr.com
Description: Tema personalizado para o portal de classificados automotivos ViaCarBR - Espírito Santo
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: icarrosbr
Tags: automotive, classifieds, custom-theme
*/

/* ═══════════════ VARIABLES ═══════════════ */
:root {
  --navy: #0A1628;
  --navy-mid: #132038;
  --navy-light: #1B2D4A;
  --blue: #2E7DFF;
  --blue-glow: #4A9AFF;
  --blue-soft: #E8F1FF;
  --white: #FFFFFF;
  --gray-50: #F8FAFB;
  --gray-100: #F0F2F5;
  --gray-200: #E1E5EA;
  --gray-400: #8B95A5;
  --gray-600: #5A6577;
  --gray-800: #2D3748;
  --green: #25D366;
  --green-dark: #1DA851;
  --orange: #FF6B2C;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(10,22,40,0.06), 0 8px 24px rgba(10,22,40,0.08);
  --shadow-hover: 0 4px 12px rgba(10,22,40,0.1), 0 16px 40px rgba(10,22,40,0.12);
}

/* ═══════════════ RESET & BASE ═══════════════ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--gray-50);
  color: var(--gray-800);
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.2;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; font-family: inherit; }
input, select { font-family: inherit; }

/* ═══════════════ NAVBAR ═══════════════ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  height: 68px;
}

.nav-container {
  max-width: 1200px; margin: 0 auto;
  padding: 0 24px; height: 100%;
  display: flex; align-items: center; justify-content: space-between;
}

.nav-logo { display: flex; align-items: center; gap: 10px; }

.nav-logo-icon {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--blue), var(--blue-glow));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 800; color: white;
  font-family: 'Plus Jakarta Sans', sans-serif;
  box-shadow: 0 2px 12px rgba(46,125,255,0.3);
}

.nav-logo-text {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 22px; font-weight: 800; color: white;
  letter-spacing: -0.5px;
}
.nav-logo-text span { color: var(--blue); }

.nav-menu { display: flex; gap: 32px; align-items: center; list-style: none; }
.nav-menu a {
  color: rgba(255,255,255,0.65); font-size: 14px; font-weight: 500;
  transition: color 0.2s;
}
.nav-menu a:hover { color: white; }

.nav-cta {
  background: var(--green) !important;
  color: white !important;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600 !important; font-size: 14px;
  display: inline-flex; align-items: center; gap: 8px;
  transition: background 0.2s, transform 0.2s;
}
.nav-cta:hover { background: var(--green-dark) !important; transform: translateY(-1px); }

.nav-toggle { display: none; background: none; color: white; font-size: 24px; }

/* ═══════════════ HERO ═══════════════ */
.hero {
  background: var(--navy);
  padding: 140px 24px 80px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 800px 600px at 70% 40%, rgba(46,125,255,0.12), transparent),
    radial-gradient(ellipse 500px 400px at 20% 80%, rgba(74,154,255,0.06), transparent);
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-content {
  max-width: 1200px; margin: 0 auto;
  position: relative; z-index: 2; text-align: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(46,125,255,0.12);
  border: 1px solid rgba(46,125,255,0.2);
  border-radius: 100px; padding: 8px 18px;
  font-size: 13px; font-weight: 600; color: var(--blue-glow);
  margin-bottom: 28px;
  animation: fadeInDown 0.6s ease;
}
.hero-badge-dot {
  width: 7px; height: 7px;
  background: var(--blue); border-radius: 50%;
  animation: pulse 2s infinite;
}
.hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800; color: white;
  line-height: 1.1; letter-spacing: -1.5px;
  margin-bottom: 20px;
  animation: fadeInUp 0.7s ease;
}
.hero h1 .highlight {
  background: linear-gradient(135deg, var(--blue), var(--blue-glow));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: 18px; color: rgba(255,255,255,0.55);
  max-width: 560px; margin: 0 auto 40px; line-height: 1.6;
  animation: fadeInUp 0.8s ease;
}

/* ═══════════════ SEARCH BAR ═══════════════ */
.search-container {
  max-width: 900px; margin: 0 auto;
  animation: fadeInUp 0.9s ease;
}
.search-bar {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border-radius: 16px; padding: 8px;
  display: flex; gap: 6px; flex-wrap: wrap;
}
.search-field {
  flex: 1; min-width: 140px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px; padding: 14px 16px;
  color: white; font-size: 14px; outline: none;
  transition: border-color 0.2s, background 0.2s;
  -webkit-appearance: none; appearance: none;
}
.search-field::placeholder { color: rgba(255,255,255,0.35); }
.search-field:focus { border-color: var(--blue); background: rgba(46,125,255,0.08); }
select.search-field {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.4)' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px;
}
select.search-field option { background: var(--navy); color: white; }
.search-btn {
  background: linear-gradient(135deg, var(--blue), #1A6AE8);
  color: white; border-radius: 10px; padding: 14px 32px;
  font-size: 15px; font-weight: 700;
  font-family: 'Plus Jakarta Sans', sans-serif;
  display: flex; align-items: center; gap: 8px;
  transition: transform 0.2s, box-shadow 0.2s; white-space: nowrap;
}
.search-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 20px rgba(46,125,255,0.4); }

/* ═══════════════ STATS ═══════════════ */
.stats-bar {
  max-width: 700px; margin: 40px auto 0;
  display: flex; justify-content: center; gap: 48px;
}
.stat { text-align: center; }
.stat-number { font-family: 'Plus Jakarta Sans'; font-size: 28px; font-weight: 800; color: white; }
.stat-label { font-size: 13px; color: rgba(255,255,255,0.4); margin-top: 4px; }

/* ═══════════════ SECTIONS ═══════════════ */
.section { padding: 80px 24px; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { font-size: 32px; font-weight: 800; color: var(--navy); letter-spacing: -0.5px; margin-bottom: 12px; }
.section-header p { font-size: 16px; color: var(--gray-600); max-width: 500px; margin: 0 auto; }

/* ═══════════════ CAR GRID ═══════════════ */
.car-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px;
}
.car-card {
  background: white; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}
.car-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.car-img-wrap { position: relative; width: 100%; height: 200px; overflow: hidden; }
.car-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.car-img-placeholder {
  width: 100%; height: 200px;
  background: linear-gradient(135deg, var(--navy-mid), var(--navy-light));
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.2); font-size: 48px;
}
.car-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--orange); color: white;
  padding: 4px 10px; border-radius: 6px;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
}
.car-info { padding: 18px; }
.car-title { font-family: 'Plus Jakarta Sans'; font-size: 17px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.car-subtitle { font-size: 13px; color: var(--gray-400); margin-bottom: 14px; }
.car-specs { display: flex; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.car-spec {
  display: flex; align-items: center; gap: 5px;
  font-size: 12px; color: var(--gray-600);
  background: var(--gray-100); padding: 5px 10px; border-radius: 6px;
}
.car-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 14px; border-top: 1px solid var(--gray-100);
}
.car-price { font-family: 'Plus Jakarta Sans'; font-size: 22px; font-weight: 800; color: var(--blue); }
.car-price small { font-size: 12px; font-weight: 500; color: var(--gray-400); display: block; }
.car-whatsapp-btn {
  background: var(--green); color: white;
  border-radius: var(--radius-sm); padding: 10px 16px;
  font-size: 13px; font-weight: 600;
  display: flex; align-items: center; gap: 6px;
  transition: background 0.2s;
}
.car-whatsapp-btn:hover { background: var(--green-dark); }
.car-store { font-size: 12px; color: var(--gray-400); margin-top: 12px; display: flex; align-items: center; gap: 6px; }
.car-store-dot { width: 6px; height: 6px; background: var(--green); border-radius: 50%; }

/* ═══════════════ HOW IT WORKS ═══════════════ */
.how-section { background: white; }
.steps-grid {
  max-width: 1000px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px;
}
.step-card {
  text-align: center; padding: 32px 24px;
  border-radius: var(--radius); background: var(--gray-50);
  border: 1px solid var(--gray-100);
  transition: transform 0.3s, border-color 0.3s;
}
.step-card:hover { transform: translateY(-2px); border-color: var(--blue); }
.step-number {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--blue), var(--blue-glow));
  border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'Plus Jakarta Sans'; font-size: 22px; font-weight: 800; color: white;
  margin-bottom: 20px;
  box-shadow: 0 4px 16px rgba(46,125,255,0.25);
}
.step-card h3 { font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.step-card p { font-size: 14px; color: var(--gray-600); line-height: 1.6; }

/* ═══════════════ PLANS ═══════════════ */
.plans-grid {
  max-width: 900px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px;
}
.plan-card {
  background: white; border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow);
  border: 2px solid transparent; transition: all 0.3s; position: relative;
}
.plan-card.popular { border-color: var(--blue); box-shadow: var(--shadow-hover), 0 0 0 1px var(--blue); }
.plan-popular-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--blue); color: white;
  padding: 5px 16px; border-radius: 100px;
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
}
.plan-name { font-family: 'Plus Jakarta Sans'; font-size: 20px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.plan-price { font-family: 'Plus Jakarta Sans'; font-size: 40px; font-weight: 800; color: var(--navy); }
.plan-price small { font-size: 16px; font-weight: 500; color: var(--gray-400); }
.plan-period { font-size: 14px; color: var(--gray-400); margin-bottom: 24px; }
.plan-features { list-style: none; margin-bottom: 28px; }
.plan-features li {
  padding: 8px 0; font-size: 14px; color: var(--gray-600);
  display: flex; align-items: center; gap: 10px;
  border-bottom: 1px solid var(--gray-100);
}
.plan-features li:last-child { border-bottom: none; }
.plan-check {
  width: 20px; height: 20px; background: var(--blue-soft); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.plan-btn {
  width: 100%; padding: 14px; border-radius: 10px;
  font-size: 15px; font-weight: 700; font-family: 'Plus Jakarta Sans';
  transition: all 0.2s;
}
.plan-btn-outline { background: transparent; border: 2px solid var(--gray-200); color: var(--navy); }
.plan-btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.plan-btn-filled { background: var(--blue); color: white; }
.plan-btn-filled:hover { background: #1A6AE8; }

/* ═══════════════ CTA ═══════════════ */
.cta-section {
  background: var(--navy); position: relative; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 600px 400px at 50% 50%, rgba(46,125,255,0.15), transparent);
}
.cta-content {
  max-width: 700px; margin: 0 auto;
  text-align: center; position: relative; z-index: 2;
}
.cta-content h2 { font-size: 36px; font-weight: 800; color: white; margin-bottom: 16px; letter-spacing: -0.5px; }
.cta-content p { color: rgba(255,255,255,0.55); font-size: 17px; line-height: 1.6; margin-bottom: 36px; }
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  background: var(--green); color: white; border-radius: 12px;
  padding: 16px 32px; font-size: 16px; font-weight: 700;
  font-family: 'Plus Jakarta Sans';
  display: inline-flex; align-items: center; gap: 10px;
  transition: all 0.2s;
}
.btn-primary:hover { background: var(--green-dark); transform: translateY(-2px); }
.btn-secondary {
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15);
  color: white; border-radius: 12px; padding: 16px 32px;
  font-size: 16px; font-weight: 600; font-family: 'Plus Jakarta Sans';
  transition: all 0.2s;
}
.btn-secondary:hover { background: rgba(255,255,255,0.12); }
.cta-features { display: flex; gap: 32px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.cta-feature { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,0.5); font-size: 14px; }

/* ═══════════════ FOOTER ═══════════════ */
.site-footer {
  background: var(--navy); padding: 48px 24px 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-content {
  max-width: 1200px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 24px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-text { font-size: 13px; color: rgba(255,255,255,0.3); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: rgba(255,255,255,0.4); font-size: 13px; transition: color 0.2s; }
.footer-links a:hover { color: white; }

/* ═══════════════ ANIMATIONS ═══════════════ */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.fade-in { opacity: 0; transform: translateY(20px); animation: fadeInUp 0.6s ease forwards; }
.fade-in:nth-child(2) { animation-delay: 0.1s; }
.fade-in:nth-child(3) { animation-delay: 0.2s; }
.fade-in:nth-child(4) { animation-delay: 0.3s; }

/* ═══════════════ WORDPRESS OVERRIDES ═══════════════ */
.wp-block-post-content { max-width: 100%; padding: 0; }
.entry-content { max-width: 100%; }
body.page .site-main { padding: 0; }
.wp-site-blocks { padding-top: 0; }

/* ═══════════════ RESPONSIVE ═══════════════ */
@media (max-width: 768px) {
  .nav-menu { display: none; }
  .nav-toggle { display: block; }
  .search-bar { flex-direction: column; }
  .search-btn { justify-content: center; }
  .stats-bar { gap: 24px; }
  .cta-content h2 { font-size: 28px; }
  .hero { padding: 120px 16px 60px; }
  .section { padding: 60px 16px; }
  .footer-content { flex-direction: column; text-align: center; }
  .plans-grid { grid-template-columns: 1fr; }
}
