/*
Theme Name: AçoForte
Theme URI: https://ninjacoder.com.br/modelos/acoforte
Author: NinjaCoder.com.br
Author URI: https://ninjacoder.com.br
Description: Tema WordPress premium para locação de maquinário pesado industrial.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: acoforte
*/

/* CSS Variables */
:root {
  --primary: #1C1C1C;
  --highlight: #F5A623;
  --support: #2C2C2C;
  --bg-light: #F4F4F4;
  --text: #EAEAEA;
  --text-dark: #1C1C1C;
  --text-muted: #888888;
  --border: #3D3D3D;
  --border-light: #CCCCCC;
  --font-title: 'Oswald', sans-serif;
  --font-body: 'Roboto', sans-serif;
  --transition: all 0.3s ease;
  --container-max: 1200px;
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  background-color: var(--primary);
  color: var(--text);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

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

.container {
  width: 90%;
  max-width: var(--container-max);
  margin: 0 auto;
}

/* Header & Navigation */
.header {
  background-color: rgba(28, 28, 28, 0.95);
  border-bottom: 2px solid var(--highlight);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 28px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--highlight);
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.nav-menu {
  display: flex;
  list-style: none;
  gap: 30px;
  align-items: center;
}

.nav-link {
  font-family: var(--font-title);
  text-transform: uppercase;
  font-weight: 500;
  letter-spacing: 1px;
  font-size: 15px;
  padding: 5px 0;
  border-bottom: 2px solid transparent;
}

.nav-link:hover, .nav-link.active {
  color: var(--highlight);
  border-bottom-color: var(--highlight);
}

.btn-nav {
  background-color: var(--highlight);
  color: var(--text-dark);
  font-family: var(--font-title);
  text-transform: uppercase;
  font-weight: 700;
  padding: 10px 20px;
  border: 2px solid var(--highlight);
}

.btn-nav:hover {
  background-color: transparent;
  color: var(--highlight);
}

/* Footer styling */
.footer {
  background-color: #121212;
  border-top: 4px solid var(--support);
  padding: 60px 0 30px 0;
  color: var(--text-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 45px;
}

.footer-logo {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 26px;
  color: var(--highlight);
  text-transform: uppercase;
  margin-bottom: 15px;
}

.footer-title {
  font-family: var(--font-title);
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 20px;
  font-size: 18px;
  letter-spacing: 1px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

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

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 14px;
}

.developer-link {
  color: var(--highlight);
  font-weight: bold;
}

/* Hero Section */
.hero {
  height: 80vh;
  margin-top: 75px;
  position: relative;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(28, 28, 28, 0.95) 0%, rgba(28, 28, 28, 0.5) 100%);
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 700px;
}

.hero-title {
  font-family: var(--font-title);
  font-size: 56px;
  line-height: 1.1;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 25px;
}

.hero-title em {
  font-style: normal;
  color: var(--highlight);
}

/* Search Bar */
.search-container {
  position: relative;
  margin-top: -40px;
  z-index: 20;
}

.search-box {
  background-color: var(--support);
  padding: 30px;
  border-top: 4px solid var(--highlight);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.search-form {
  display: flex;
  gap: 20px;
}

.search-input {
  flex: 1;
  background-color: var(--primary);
  border: 1px solid var(--border);
  padding: 15px;
  color: var(--text);
  font-family: var(--font-body);
}

.search-input:focus {
  outline: none;
  border-color: var(--highlight);
}

.btn-search {
  background-color: var(--highlight);
  color: var(--text-dark);
  font-family: var(--font-title);
  font-weight: 700;
  text-transform: uppercase;
  padding: 15px 35px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-search:hover {
  background-color: var(--text);
}

/* Categories Section */
.section {
  padding: 100px 0;
}

.section-title {
  font-family: var(--font-title);
  font-size: 38px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 50px;
  color: var(--text);
  border-left: 5px solid var(--highlight);
  padding-left: 15px;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
}

.category-card {
  background-color: var(--support);
  padding: 40px 30px;
  text-align: center;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.category-card:hover {
  border-color: var(--highlight);
  transform: translateY(-5px);
}

.category-icon {
  width: 60px;
  height: 60px;
  fill: var(--highlight);
  margin: 0 auto 20px auto;
}

.category-name {
  font-family: var(--font-title);
  font-size: 20px;
  text-transform: uppercase;
  font-weight: 600;
}

/* Asymmetric Section */
.asym-section {
  background-color: #161616;
  padding: 100px 0;
}

.asym-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 50px;
  align-items: center;
}

.asym-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.asym-item {
  border-left: 3px solid var(--highlight);
  padding-left: 20px;
}

.asym-item h3 {
  font-family: var(--font-title);
  font-size: 24px;
  text-transform: uppercase;
  margin-bottom: 10px;
  color: var(--highlight);
}

/* Partners Band */
.partners-band {
  background-color: var(--highlight);
  padding: 40px 0;
  text-align: center;
}

.partners-flex {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
}

.partner-logo {
  font-family: var(--font-title);
  font-size: 24px;
  font-weight: 800;
  color: var(--text-dark);
  text-transform: uppercase;
  opacity: 0.8;
  letter-spacing: 2px;
}

/* Call to Action */
.cta-section {
  background-color: var(--primary);
  padding: 80px 0;
  text-align: center;
  border-top: 1px solid var(--border);
}

.btn-cta {
  background-color: var(--highlight);
  color: var(--text-dark);
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 18px 45px;
  border: none;
  cursor: pointer;
  display: inline-block;
  letter-spacing: 1px;
}

.btn-cta:hover {
  background-color: var(--text);
}

/* Catalog Styling */
.catalog-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  margin-top: 120px;
  margin-bottom: 80px;
}

.filter-sidebar {
  background-color: var(--support);
  padding: 30px;
  border: 1px solid var(--border);
  height: fit-content;
}

.filter-title {
  font-family: var(--font-title);
  font-size: 20px;
  text-transform: uppercase;
  color: var(--highlight);
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
}

.filter-group {
  margin-bottom: 25px;
}

.filter-group label {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
  text-transform: uppercase;
  font-family: var(--font-title);
  letter-spacing: 0.5px;
}

.filter-select {
  width: 100%;
  background-color: var(--primary);
  border: 1px solid var(--border);
  padding: 10px;
  color: var(--text);
}

.equipments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

.equip-card {
  background-color: var(--support);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.equip-img {
  height: 200px;
  object-fit: cover;
  width: 100%;
}

.equip-info {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.equip-title {
  font-family: var(--font-title);
  font-size: 20px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.equip-meta {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 15px;
}

.badge {
  display: inline-block;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 2px;
  width: fit-content;
  margin-bottom: 15px;
}

.badge-green {
  background-color: #2e7d32;
  color: #fff;
}

.badge-red {
  background-color: #c62828;
  color: #fff;
}

.btn-detail {
  margin-top: auto;
  background-color: transparent;
  color: var(--highlight);
  border: 2px solid var(--highlight);
  text-align: center;
  font-family: var(--font-title);
  text-transform: uppercase;
  padding: 10px;
  font-weight: 700;
}

.btn-detail:hover {
  background-color: var(--highlight);
  color: var(--text-dark);
}

/* Product Detail / Ficha */
.ficha-layout {
  margin-top: 120px;
  margin-bottom: 80px;
}

.ficha-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  margin-bottom: 60px;
}

.gallery-container {
  display: flex;
  gap: 20px;
}

.main-photo {
  flex: 1;
  height: 400px;
  object-fit: cover;
  border: 1px solid var(--border);
}

.side-gallery {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100px;
}

.side-img {
  width: 100px;
  height: 85px;
  object-fit: cover;
  cursor: pointer;
  border: 1px solid var(--border);
}

.side-img:hover {
  border-color: var(--highlight);
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 30px;
}

.specs-table td, .specs-table th {
  padding: 12px 15px;
  border: 1px solid var(--border);
}

.specs-table th {
  background-color: var(--support);
  text-align: left;
  font-family: var(--font-title);
  text-transform: uppercase;
  color: var(--highlight);
}

.specs-table tr:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.02);
}

.form-rent {
  background-color: var(--support);
  padding: 40px;
  border: 1px solid var(--border);
  border-top: 4px solid var(--highlight);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-title);
  text-transform: uppercase;
  font-size: 14px;
}

.form-control {
  width: 100%;
  background-color: var(--primary);
  border: 1px solid var(--border);
  padding: 12px;
  color: var(--text);
  font-family: var(--font-body);
}

.form-control:focus {
  outline: none;
  border-color: var(--highlight);
}

.btn-form-submit {
  width: 100%;
  background-color: var(--highlight);
  color: var(--text-dark);
  font-family: var(--font-title);
  font-weight: 700;
  text-transform: uppercase;
  padding: 15px;
  border: none;
  cursor: pointer;
  font-size: 16px;
}

.btn-form-submit:hover {
  background-color: var(--text);
}

/* Localidades SVG map page */
.map-container {
  display: flex;
  justify-content: center;
  margin: 50px 0;
  background-color: var(--support);
  padding: 50px;
  border: 1px solid var(--border);
}

.hub-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.hub-card {
  border-left: 3px solid var(--highlight);
  padding-left: 15px;
}

.hub-city {
  font-family: var(--font-title);
  font-size: 18px;
  text-transform: uppercase;
  color: var(--highlight);
}

/* About / Timeline horizontal scroll */
.timeline-scroll {
  display: flex;
  gap: 40px;
  overflow-x: auto;
  padding: 40px 0;
  scroll-snap-type: x mandatory;
}

.timeline-scroll::-webkit-scrollbar {
  height: 8px;
}

.timeline-scroll::-webkit-scrollbar-track {
  background: var(--support);
}

.timeline-scroll::-webkit-scrollbar-thumb {
  background: var(--highlight);
}

.timeline-card {
  min-width: 320px;
  max-width: 320px;
  background-color: var(--support);
  padding: 30px;
  border: 1px solid var(--border);
  scroll-snap-align: start;
}

.timeline-year {
  font-family: var(--font-title);
  font-size: 32px;
  font-weight: 700;
  color: var(--highlight);
  margin-bottom: 10px;
}

/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 50px;
  margin-top: 120px;
  margin-bottom: 80px;
}

.contact-info-block {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.contact-item {
  border-left: 2px solid var(--highlight);
  padding-left: 15px;
}

.contact-label {
  font-family: var(--font-title);
  font-size: 16px;
  text-transform: uppercase;
  color: var(--highlight);
}

.contact-val {
  font-size: 18px;
}

.iframe-map {
  width: 100%;
  height: 350px;
  border: 1px solid var(--border);
  filter: grayscale(1) invert(0.9);
}

@media(max-width: 768px) {
  .nav-menu {
    display: none;
  }
  .hero-title {
    font-size: 36px;
  }
  .catalog-layout, .ficha-grid, .contact-layout, .asym-grid {
    grid-template-columns: 1fr;
  }
}
