/*
Theme Name: x3 Transport
Theme URI: https://x3transport.com.br
Author: x3 Coding
Author URI: https://x3transport.com.br
Description: Tema WordPress do site x3 Transport - idêntico ao site institucional.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: x3transport
*/

/* ============================================================
   IMPORTS & FONTS
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,600;0,700;1,400&display=swap');

/* ============================================================
   RESET / BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Inter', 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  color: #333;
  background: #fff;
  margin: 0;
  padding: 0;
}

a { color: #428bca; text-decoration: none; }
a:hover { color: #2a6496; text-decoration: underline; }

img { max-width: 100%; height: auto; }

h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', Arial, sans-serif;
  letter-spacing: -0.3px;
  margin-top: 0;
}

p { line-height: 1.7; margin: 0 0 15px; }

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  width: 100%;
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 15px;
}

.row { display: flex; flex-wrap: wrap; margin: 0 -15px; }
.col { padding: 0 15px; }

/* Bootstrap-like cols */
.col-md-8  { width: 66.6667%; padding: 0 15px; }
.col-md-4  { width: 33.3333%; padding: 0 15px; }
.col-md-6  { width: 50%; padding: 0 15px; }
.col-md-12 { width: 100%; padding: 0 15px; }

/* ============================================================
   HEADER / NAVBAR
   ============================================================ */
header,
body header,
.site-header {
  position: relative;
  width: 100%;
  z-index: 100;
  background: #ffffff !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  padding: 0;
}

/* Compensa admin bar do WordPress (só para admins logados) */
.admin-bar header,
.admin-bar .site-header {
  margin-top: 0;
}

header .container {
  position: relative;
}

.navbar {
  margin: 36px 0;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 10px;
  min-height: 90px;
}

.navbar-brand {
  display: block;
  overflow: hidden;
  text-decoration: none;
  line-height: 0;
  flex-shrink: 0;
}

.navbar-brand img {
  width: auto !important;
  height: 90px !important;
  max-width: none !important;
  display: block;
}

.navbar-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0;
  align-items: center;
}

.navbar-nav li a,
.navbar-nav li a:visited,
header nav ul li a,
header nav ul li a:visited {
  display: block;
  padding: 8px 6px;
  margin: 0 3px;
  font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
  font-weight: 400 !important;
  font-size: 14px !important;
  letter-spacing: 0;
  text-transform: uppercase;
  color: #777 !important;
  border-bottom: solid 1px transparent;
  transition: border-color 0.15s, color 0.15s;
  text-decoration: none !important;
  white-space: nowrap;
  background-color: transparent !important;
}

.navbar-nav li a:hover,
.navbar-nav li.current-menu-item > a,
.navbar-nav li.current_page_item > a,
.navbar-nav li.current-menu-ancestor > a {
  border-bottom: solid 1px #428bca !important;
  color: #333 !important;
  text-decoration: none !important;
}

#social_media_wrapper {
  background: #428bca;
  border-bottom-right-radius: 4px;
  border-bottom-left-radius: 4px;
  display: inline-flex;
  position: static;
  margin-left: 15px;
  z-index: 101;
  padding: 8px 10px;
  gap: 6px;
  align-self: flex-start;
}

#social_media_wrapper a {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fff;
  border-radius: 50%;
  font-size: 16px;
  width: 30px;
  height: 30px;
  color: #428bca;
  transition: all 100ms linear;
  text-decoration: none;
}

#social_media_wrapper a:hover {
  background: #428bca;
  color: #fff;
}

/* Mobile toggle */
.navbar-toggle {
  display: none;
  margin-top: 22px;
  margin-right: 15px;
  background: transparent;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 8px 10px;
  cursor: pointer;
}

.navbar-toggle .nb_right {
  font-weight: bold;
  font-size: 16px;
  color: #555;
}

/* ============================================================
   PAGE HERO / HGROUP (interno das páginas do blog)
   ============================================================ */
.site-hero {
  background: #2c3e50;
  padding: 40px 0 35px;
  text-align: center;
  margin-bottom: 0;
}

.site-hero h1 {
  color: #fff;
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 8px;
}

.site-hero .breadcrumb {
  background: transparent;
  padding: 0;
  margin: 0;
  list-style: none;
  display: inline-flex;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
}

.site-hero .breadcrumb a { color: rgba(255,255,255,0.8); }
.site-hero .breadcrumb .sep { color: rgba(255,255,255,0.5); }

/* ============================================================
   MAIN CONTENT AREA
   ============================================================ */
#main-content {
  background: #fff;
  padding: 50px 0 60px;
}

/* ============================================================
   POSTS LIST
   ============================================================ */
.post-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 30px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  transition: box-shadow 0.2s;
}

.post-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.10); }

.post-card .post-thumbnail img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.post-card-body { padding: 24px; }

.post-card-meta {
  font-size: 12px;
  color: #999;
  margin-bottom: 10px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.post-card-meta a { color: #999; }
.post-card-meta a:hover { color: #428bca; }

.post-card h2 {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 12px;
}

.post-card h2 a {
  color: #222;
  text-decoration: none;
}

.post-card h2 a:hover { color: #428bca; }

.post-card .post-excerpt { color: #555; font-size: 14px; line-height: 1.7; margin-bottom: 18px; }

.btn-primary {
  display: inline-block;
  padding: 8px 20px;
  background: #428bca;
  color: #fff !important;
  border: none;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none !important;
  transition: background 0.2s;
}

.btn-primary:hover { background: #3071a9; }

/* ============================================================
   SINGLE POST
   ============================================================ */
.single-post-content {
  font-size: 15px;
  line-height: 1.8;
  color: #444;
}

.single-post-content h1,
.single-post-content h2,
.single-post-content h3 { color: #222; margin: 28px 0 14px; }

.single-post-content img { border-radius: 4px; }

.single-post-content blockquote {
  border-left: 4px solid #428bca;
  margin: 20px 0;
  padding: 12px 20px;
  background: #f7f9fc;
  color: #555;
  font-style: italic;
}

.post-header { margin-bottom: 30px; }

.post-header h1 {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.3;
  color: #222;
  margin-bottom: 12px;
}

.post-meta {
  font-size: 13px;
  color: #999;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 20px;
}

.post-meta a { color: #999; }
.post-meta a:hover { color: #428bca; }

.post-featured-image {
  margin-bottom: 30px;
  border-radius: 4px;
  overflow: hidden;
}

.post-featured-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Tags & Categories */
.post-tags { margin-top: 30px; padding-top: 20px; border-top: 1px solid #eee; }
.post-tags a {
  display: inline-block;
  background: #f0f4f8;
  color: #428bca;
  border-radius: 3px;
  padding: 3px 10px;
  font-size: 12px;
  margin: 0 4px 6px 0;
  text-decoration: none;
}
.post-tags a:hover { background: #428bca; color: #fff; }

/* Post navigation */
.post-navigation {
  display: flex;
  justify-content: space-between;
  padding: 30px 0;
  border-top: 1px solid #eee;
  margin-top: 40px;
  gap: 20px;
}

.post-navigation a {
  color: #428bca;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar { padding-left: 30px; }

.widget {
  margin-bottom: 35px;
}

.widget-title {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #222;
  border-bottom: 2px solid #428bca;
  padding-bottom: 10px;
  margin-bottom: 18px;
}

.widget ul { list-style: none; padding: 0; margin: 0; }

.widget ul li {
  padding: 7px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 13px;
}

.widget ul li a { color: #555; text-decoration: none; }
.widget ul li a:hover { color: #428bca; }

/* Search */
.search-form { display: flex; gap: 0; }
.search-form input[type="search"] {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-right: none;
  border-radius: 4px 0 0 4px;
  font-size: 13px;
  font-family: inherit;
  outline: none;
}
.search-form button {
  padding: 8px 14px;
  background: #428bca;
  color: #fff;
  border: none;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
}
.search-form button:hover { background: #3071a9; }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination-wrapper { text-align: center; margin-top: 20px; }

.pagination-wrapper .page-numbers {
  display: inline-block;
  padding: 6px 12px;
  margin: 0 2px;
  border: 1px solid #ddd;
  border-radius: 4px;
  color: #428bca;
  font-size: 13px;
  text-decoration: none;
}

.pagination-wrapper .page-numbers.current,
.pagination-wrapper .page-numbers:hover {
  background: #428bca;
  border-color: #428bca;
  color: #fff;
}

/* ============================================================
   COMMENTS
   ============================================================ */
.comments-area { margin-top: 50px; padding-top: 30px; border-top: 2px solid #eee; }

.comments-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 30px;
  color: #222;
}

.comment-list { list-style: none; padding: 0; margin: 0 0 40px; }

.comment-body {
  padding: 20px;
  background: #f9f9f9;
  border-radius: 4px;
  margin-bottom: 15px;
  border-left: 3px solid #428bca;
}

.comment-author b { font-size: 14px; color: #222; }
.comment-metadata { font-size: 12px; color: #999; margin-bottom: 10px; }
.comment-metadata a { color: #999; }
.comment-content p { margin: 0; font-size: 14px; color: #555; }

.comment-reply-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #222;
}

.comment-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 5px;
  color: #444;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 13px;
  font-family: inherit;
  margin-bottom: 15px;
  outline: none;
  transition: border-color 0.2s;
}

.comment-form input:focus,
.comment-form textarea:focus { border-color: #428bca; }
.comment-form textarea { height: 140px; resize: vertical; }

.comment-form .submit {
  background: #428bca;
  color: #fff;
  border: none;
  padding: 10px 24px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.comment-form .submit:hover { background: #3071a9; }

/* ============================================================
   FOOTER
   ============================================================ */
/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: #1c1c1c !important;
}

#footer_teasers_wrapper {
  padding: 55px 0;
}

#footer_teasers_wrapper .footer_teaser h3 {
  font-size: 16px;
  line-height: 18px;
  padding: 0 0 12px;
  margin: 20px 0;
  color: #ccc;
  font-weight: 800;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

#footer_teasers_wrapper .footer_teaser p {
  font-size: 13px;
  color: #ccc;
  font-weight: 300;
  line-height: 1.8;
  margin-bottom: 6px;
  text-align: left;
}

#footer_teasers_wrapper .footer_teaser a {
  color: #aaa;
  text-decoration: none;
}

#footer_teasers_wrapper .footer_teaser a:hover { color: #fff; }

#footer_teasers_wrapper .footer_teaser .fa {
  width: 16px;
  margin-right: 6px;
  color: #428bca;
}

.facebook-iframe-wrapper { width: 100%; overflow: hidden; }
.facebook-iframe-wrapper iframe { width: 100% !important; max-width: 500px; display: block; border: none; }

section.copyright {
  background: #111111;
  padding: 18px 0;
  font-size: 13px;
  color: #aaa;
}

section.copyright .row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

section.copyright .col-left { flex: 1; }

section.copyright .col-right {
  text-align: right;
}

section.copyright a { color: #aaa; text-decoration: none; }
section.copyright a:hover { color: #fff; }

/* ============================================================
   404 PAGE
   ============================================================ */
.error-404 {
  text-align: center;
  padding: 80px 0;
}

.error-404 h1 {
  font-size: 100px;
  font-weight: 700;
  color: #428bca;
  line-height: 1;
  margin-bottom: 0;
}

.error-404 h2 { font-size: 28px; color: #333; margin-bottom: 20px; }
.error-404 p { color: #777; margin-bottom: 30px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991px) {
  .sidebar { padding-left: 0; margin-top: 40px; }
  .col-md-8, .col-md-4 { width: 100%; }
}

@media (max-width: 767px) {
  header { position: relative; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,0.1); }

  .navbar { margin: 10px 0; flex-wrap: wrap; }
  .navbar-brand { width: auto; height: 60px; }
  .navbar-brand img { width: auto; height: 60px; }

  .navbar-toggle { display: flex; align-items: center; gap: 6px; }

  .navbar-nav {
    display: none;
    flex-direction: column;
    width: 100%;
    margin: 0;
    background: #fff;
    border-top: 1px solid #eee;
  }

  .navbar-nav.open { display: flex; }
  .navbar-nav li a { border-bottom: 1px solid #f0f0f0; padding: 12px 15px; }

  #social_media_wrapper { position: static; margin-left: auto; border-radius: 4px; }

  .site-hero { padding: 30px 0 30px; }
  .site-hero h1 { font-size: 22px; }

  #main-content { padding: 30px 0 40px; }

  .col-md-6 { width: 100%; }

  section.copyright .col-right { text-align: left; margin-top: 6px; }
}
