/*
Theme Name: SmartCar
Theme URI: 
Author: Antigravity
Author URI: 
Description: A premium, modern WordPress theme for SmartCar, a high-end pre-owned vehicle dealership in Brazil.
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: smartcar
*/

:root {
  --primary-orange: #F8A201; /* Calls to action, buttons, accents */
  --primary-navy: #121631; /* Typography, backgrounds, structure */
  --light-gray: #F4F6F8;
  --white: #FFFFFF;
  --dark-text: #2A2A2A;
  --transition: all 0.3s ease-in-out;
  --container-width: 1200px;
  --font-main: 'Poppins', sans-serif;
}

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

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

h1, h2, h3, h4, h5, h6 {
  color: var(--primary-navy);
  font-weight: 600;
  margin-bottom: 1rem;
}

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

ul {
  list-style: none;
}

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

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

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 4px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background-color: var(--primary-orange);
  color: var(--white);
  box-shadow: 0 4px 6px rgba(248, 162, 1, 0.2);
}

.btn-primary:hover {
  background-color: #d88900;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(248, 162, 1, 0.3);
}

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

.btn-outline:hover {
  background-color: var(--primary-orange);
  color: var(--white);
}

.btn-full {
  width: 100%;
  display: block;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
  padding: 15px 0;
}

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

.site-logo img {
  max-height: 50px;
}

.main-navigation ul {
  display: flex;
  gap: 30px;
}

.main-navigation a {
  font-weight: 500;
  color: var(--primary-navy);
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

.main-navigation a:hover,
.main-navigation li.current-menu-item a {
  color: var(--primary-orange);
}

/* Hero Section */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin-top: 80px; /* Offset for header */
}

/* Optional Overlay */
.hero-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(18, 22, 49, 0.6); /* Navy deep tint */
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  max-width: 800px;
}

.hero-content h1 {
  color: var(--white);
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  letter-spacing: -0.5px;
  text-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

/* Section Shared */
.section-padding {
  padding: 80px 0;
}

.section-title-wrapper {
  text-align: center;
  margin-bottom: 50px;
}

.section-title {
  font-size: 2.5rem;
  color: var(--primary-navy);
  margin-bottom: 15px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

/* Differentiators Section */
.differentiators-section {
  background-color: var(--white);
}

.diff-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.diff-item {
  text-align: center;
  padding: 30px 20px;
  background: var(--light-gray);
  border-radius: 8px;
  transition: var(--transition);
}

.diff-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.diff-icon {
  font-size: 3rem;
  color: var(--primary-orange);
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
}
.diff-icon svg {
  width: 50px; height: 50px; fill: currentColor;
}

.diff-title {
  font-size: 1.25rem;
  color: var(--primary-navy);
  margin-bottom: 10px;
}

.diff-desc {
  font-size: 0.95rem;
  color: #555;
}

/* Inventory Section */
.inventory-section {
  background-color: var(--light-gray);
}

.car-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}

.car-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  transition: var(--transition);
}

.car-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.1);
}

.car-image {
  height: 220px;
  overflow: hidden;
}

.car-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.car-card:hover .car-image img {
  transform: scale(1.05);
}

.car-details {
  padding: 20px;
}

.car-title {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.car-meta {
  display: flex;
  gap: 15px;
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 15px;
}

.car-price {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-orange);
  margin-bottom: 20px;
}

/* About Us Section */
.about-section {
  background-color: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-image img {
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.about-content h2 {
  font-size: 2.5rem;
  margin-bottom: 25px;
}

.about-content p {
  margin-bottom: 15px;
  font-size: 1.05rem;
  color: #555;
}

/* Contact & Location */
.contact-section {
  background-color: var(--primary-navy);
  color: var(--white);
  padding: 0; /* Map uses full height */
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.contact-info-wrapper {
  padding: 80px 10%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-info-wrapper h2 {
  color: var(--white);
  font-size: 2.5rem;
  margin-bottom: 40px;
}

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

.contact-item {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 1.1rem;
}

.contact-icon {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-orange);
  flex-shrink: 0;
}
.contact-icon svg { width: 20px; height: 20px; fill: currentColor; }

.contact-map {
  min-height: 500px;
}
.contact-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Footer */
.site-footer {
  background-color: #0d1024;
  color: #ddd;
  padding: 60px 0 20px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo img {
  max-height: 40px;
  filter: brightness(0) invert(1);
}

.footer-nav ul {
  display: flex;
  gap: 25px;
}

.footer-nav a {
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

.footer-nav a:hover {
  color: var(--primary-orange);
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-icon {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: var(--transition);
}
.social-icon svg { width: 16px; height: 16px; fill: currentColor; }
.social-icon:hover {
  background: var(--primary-orange);
  transform: translateY(-2px);
}

.footer-bottom {
  text-align: center;
  font-size: 0.85rem;
  color: #888;
}

/* Responsive */
@media (max-width: 992px) {
  .diff-grid, .car-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-grid, .contact-grid {
    grid-template-columns: 1fr;
  }
  .contact-info-wrapper {
    padding: 60px 20px;
  }
  .contact-map {
    height: 400px;
  }
  .hero-content h1 {
    font-size: 2.5rem;
  }
  .footer-top {
    flex-direction: column;
    gap: 30px;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .main-navigation {
    display: none; /* Add mobile menu toggle later */
  }
  .diff-grid, .car-grid {
    grid-template-columns: 1fr;
  }
  .hero-content h1 {
    font-size: 2rem;
  }
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 30px;
  right: 30px;
  background-color: #25d366;
  color: #FFF;
  border-radius: 50%;
  text-align: center;
  font-size: 30px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float svg {
  width: 35px;
  height: 35px;
  fill: #FFF;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 14px rgba(37, 211, 102, 0.4);
}
