/*
Theme Name: Pequenos Fretes
Theme URI: https://pequenosfretes.com.br
Author: Seu Nome
Description: Tema responsivo para Pequenos Fretes - transporte e mudanças
Version: 1.2
*/

:root {
  --primary: #0f172a;
  --primary-light: #1e293b;
  --accent: #fbbf24;
  --accent-light: #fcd34d;
  --text-dark: #0f172a;
  --text-light: #f8fafc;
  --text-muted: #64748b;
  --bg-light: #f8fafc;
  --bg-white: #fff;
  --whatsapp: #25d366;
  --container-padding: clamp(1rem, 5vw, 2rem);
  --section-padding: clamp(2rem, 6vw, 5rem);
  --shadow-sm: 0 4px 6px -1px rgba(0,0,0,0.1);
  --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

@media (max-width: 640px) {
  html { font-size: 14px; }
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg-white);
  color: var(--text-dark);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
  overflow-x: hidden;
}

.section {
  padding: var(--section-padding) 0;
}

.section-header {
  text-align: center;
  max-width: min(800px, 90vw);
  margin: 0 auto calc(var(--section-padding) * 0.5);
}

.section-title {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.section-title span {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--accent); /* fallback */
}

.section-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--text-muted);
}

/* BOTÕES */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  font-size: clamp(0.9rem, 2vw, 1rem);
  text-align: center;
}

@media (max-width: 480px) {
  .btn { width: 100%; }
}

.btn-primary {
  background: var(--accent);
  color: var(--primary);
}
.btn-primary:hover {
  background: var(--accent-light);
  transform: scale(1.02);
}

.btn-outline {
  border: 2px solid var(--accent);
  color: var(--accent);
  background: transparent;
}
.btn-outline:hover {
  background: var(--accent);
  color: var(--primary);
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: #fff;
}
.btn-whatsapp:hover {
  filter: brightness(1.05);
  transform: scale(1.02);
}

/* HEADER */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.98);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  width: 100%;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: clamp(1.2rem, 4vw, 1.5rem);
  font-weight: 800;
}
.logo i {
  color: var(--accent);
  font-size: 1.2em;
}
.logo a {
  color: white;
  text-decoration: none;
  letter-spacing: -0.5px;
}

.nav-menu {
  display: flex;
  gap: clamp(0.8rem, 3vw, 1.5rem);
  flex-wrap: wrap;
  align-items: center;
}
.nav-menu a {
  color: #e2e8f0;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
  padding: 0.5rem 0;
}
.nav-menu a:hover {
  color: var(--accent);
}

@media (max-width: 768px) {
  .header .container {
    flex-direction: column;
    text-align: center;
  }
  .nav-menu {
    justify-content: center;
    gap: 0.8rem;
  }
}

@media (max-width: 480px) {
  .nav-menu {
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
  }
  .nav-menu a {
    display: block;
    padding: 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
}

/* HERO */
.hero {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  padding: var(--section-padding) 0;
}
.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}
.hero-badge {
  display: inline-block;
  background: rgba(251, 191, 36, 0.2);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
}
.hero-title span {
  color: var(--accent);
}
.hero-text {
  font-size: clamp(1rem, 2vw, 1.1rem);
  color: #cbd5e1;
  margin-bottom: 1.5rem;
  max-width: 500px;
}
.hero-buttons {
  margin-bottom: 2rem;
}
.hero-stats {
  display: flex;
  gap: clamp(1rem, 4vw, 2rem);
  flex-wrap: wrap;
}
.stat-item {
  text-align: center;
}
.stat-number {
  font-size: clamp(1.5rem, 4vw, 1.8rem);
  font-weight: 800;
  display: block;
}
.stat-label {
  color: #94a3b8;
  font-size: 0.9rem;
}
.hero-image img {
  width: 100%;
  height: auto;
  border-radius: 1rem;
  box-shadow: var(--shadow-md);
}

@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 767px) {
  .hero-image {
    order: -1;
    text-align: center;
  }
  .hero-text {
    max-width: 100%;
  }
}

/* ABOUT */
.about-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}
.about-image img {
  width: 100%;
  height: auto;
  border-radius: 1rem;
}
.about-content h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
}
.about-content p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}
@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 767px) {
  .about-image {
    order: -1;
  }
}

/* FEATURES */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}
.feature-item {
  text-align: center;
  padding: 2rem;
  background: var(--bg-light);
  border-radius: 1rem;
  transition: transform 0.2s;
}
.feature-item:hover {
  transform: translateY(-5px);
}
.feature-item i {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 1rem;
}
.feature-item h3 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}
.feature-item p {
  color: var(--text-muted);
}

/* TESTIMONIALS */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.testimonial-card {
  background: var(--bg-light);
  padding: 1.5rem;
  border-radius: 1rem;
  transition: transform 0.2s;
}
.testimonial-card:hover {
  transform: translateY(-3px);
}
.testimonial-text {
  font-style: italic;
  margin-bottom: 1rem;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.author-avatar {
  width: 45px;
  height: 45px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: var(--primary);
  flex-shrink: 0;
}
.testimonial-author h4 {
  font-size: 1rem;
}
.testimonial-author p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* CONTATO */
.contact-grid {
  display: grid;
  gap: 2rem;
}
.contact-info {
  background: var(--primary);
  color: white;
  padding: 2rem;
  border-radius: 1rem;
}
.contact-info h3 {
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}
.contact-detail {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.contact-detail i {
  width: 25px;
  color: var(--accent);
  font-size: 1.2rem;
}
.contact-form {
  background: var(--bg-light);
  padding: 2rem;
  border-radius: 1rem;
}
.form-group {
  margin-bottom: 1rem;
}
.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  font-family: inherit;
  font-size: 1rem;
  transition: border 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.btn-submit {
  background: var(--accent);
  color: var(--primary);
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  font-size: 1rem;
  transition: background 0.2s;
}
.btn-submit:hover {
  background: var(--accent-light);
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* POSTS & BLOG */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 2rem;
}
.post-card-full {
  background: var(--bg-white);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}
.post-card-full:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}
.post-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.post-content {
  padding: 1.25rem;
}
.post-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}
.post-content h3 a {
  text-decoration: none;
  color: var(--text-dark);
}
.post-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.post-excerpt {
  color: var(--text-muted);
}
.pagination {
  margin-top: 2rem;
  text-align: center;
}
.pagination .page-numbers {
  display: inline-block;
  padding: 0.5rem 1rem;
  margin: 0 0.25rem;
  background: var(--bg-light);
  border-radius: 0.5rem;
  text-decoration: none;
  color: var(--text-dark);
}
.pagination .current {
  background: var(--accent);
}

/* SINGULAR (PÁGINAS E POSTS) */
.entry-title {
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  margin-bottom: 1rem;
}
.entry-meta {
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.post-thumbnail {
  margin-bottom: 1.5rem;
}
.post-thumbnail img {
  width: 100%;
  height: auto;
  border-radius: 1rem;
}
.entry-content {
  line-height: 1.7;
}
.entry-content p {
  margin-bottom: 1rem;
}
.tags-links {
  margin-top: 1rem;
}

/* ADSENSE */
.adsense-slot {
  width: 100%;
  max-width: 100%;
  margin: 2rem auto;
  text-align: center;
  display: block;
  overflow-x: auto;
}
.adsense-slot ins {
  display: block;
  width: 100%;
  min-height: 90px;
}
.adsense-in-content {
  margin: 2.5rem 0;
}
.adsense-header {
  margin: 1rem auto;
}
.adsense-footer {
  margin-top: 3rem;
}
@media (max-width: 768px) {
  .adsense-slot {
    margin: 1.5rem auto;
  }
  .adsense-in-content {
    margin: 2rem 0;
  }
}

/* WHATSAPP FLOAT */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 20px;
  width: clamp(50px, 12vw, 65px);
  height: clamp(50px, 12vw, 65px);
  background: var(--whatsapp);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: clamp(1.5rem, 5vw, 2rem);
  text-decoration: none;
  box-shadow: var(--shadow-md);
  transition: transform 0.2s, background 0.2s;
  z-index: 99;
}
.whatsapp-float:hover {
  transform: scale(1.05);
  background: #20b859;
}

/* FOOTER */
.footer {
  background: var(--primary);
  color: #cbd5e1;
  padding: 3rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-col h4 {
  color: white;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}
.footer-col ul {
  list-style: none;
  padding: 0;
}
.footer-col li {
  margin-bottom: 0.5rem;
}
.footer-col a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col a:hover {
  color: var(--accent);
}
.footer-col i {
  margin-right: 0.5rem;
  width: 20px;
}
.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid #334155;
  font-size: 0.85rem;
}
.footer-bottom p {
  margin-bottom: 0.25rem;
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.5rem;
  }
  .footer-col i {
    margin-right: 0.25rem;
  }
}

/* UTILITÁRIOS */
.text-center { text-align: center; }
.hidden-mobile { display: initial; }
@media (max-width: 768px) {
  .hidden-mobile { display: none; }
}