/* ===== CUSTOM CSS FOR AUTOLUXE WEBSITE ===== */

/* ROOT VARIABLES */
:root {
  /* Primary color scheme */
  --primary-color: #3db164;
  --primary-dark: #2a8e49;
  --primary-light: #5fc982;
  
  /* Complementary colors */
  --secondary-color: #d84550;
  --secondary-dark: #b3343e;
  --secondary-light: #e86a72;
  
  /* Neutral colors */
  --dark-color: #1a1d22;
  --dark-light: #2c303a;
  --light-color: #f5f7fa;
  --mid-gray: #8a9199;
  --light-gray: #e0e4ea;
  
  /* Typography */
  --heading-font: 'Playfair Display', serif;
  --body-font: 'Source Sans Pro', sans-serif;
  
  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-xxl: 5rem;
  
  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-circle: 50%;
  
  /* Shadows */
  --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 10px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.1);
  --shadow-inset: inset 0 2px 5px rgba(0, 0, 0, 0.1);
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --transition-slow: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ===== GENERAL STYLES ===== */
body {
  font-family: var(--body-font);
  color: var(--dark-color);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
}

p {
  margin-bottom: var(--spacing-md);
}

a {
  color: var(--primary-color);
  transition: var(--transition-fast);
}

a:hover {
  color: var(--primary-dark);
}

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

.section-title {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

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

/* ===== BUTTONS ===== */
.button {
  transition: var(--transition-medium);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: none;
}

.button:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.button.is-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.button.is-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
}

.button.is-primary.is-outlined {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.button.is-primary.is-outlined:hover {
  background-color: var(--primary-color);
  color: white;
}

.button.is-rounded {
  border-radius: 9999px;
  padding-left: var(--spacing-lg);
  padding-right: var(--spacing-lg);
}

/* ===== HEADER & NAVIGATION ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: transparent;
  transition: var(--transition-medium);
}

.header.scrolled {
  background-color: white;
  box-shadow: var(--shadow-md);
}

.header .navbar {
  padding: var(--spacing-md) 0;
}

.navbar-brand .title {
  margin-bottom: 0;
}

.navbar-item {
  padding: var(--spacing-sm) var(--spacing-md);
  font-weight: 500;
  color: var(--dark-color);
  transition: var(--transition-fast);
}

.navbar-item:hover {
  color: var(--primary-color);
}

.has-text-primary {
  color: var(--primary-color) !important;
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-body {
  padding: var(--spacing-xxl) var(--spacing-md);
  display: flex;
  align-items: center;
}

.hero .title, 
.hero .subtitle {
  color: white;
  margin-bottom: var(--spacing-md);
  animation: fadeInUp 1s var(--transition-medium) both;
}

.hero .title {
  animation-delay: 0.2s;
}

.hero .subtitle {
  animation-delay: 0.4s;
}

.hero p {
  animation: fadeInUp 1s var(--transition-medium) both;
  animation-delay: 0.6s;
}

.hero .buttons {
  animation: fadeInUp 1s var(--transition-medium) both;
  animation-delay: 0.8s;
}

.scroll-down-icon {
  display: block;
  text-align: center;
  padding: var(--spacing-md);
  animation: bounce 2s infinite;
}

.arrow-down {
  display: inline-block;
  width: 20px;
  height: 20px;
  border-right: 3px solid white;
  border-bottom: 3px solid white;
  transform: rotate(45deg);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
  40% {transform: translateY(-20px);}
  60% {transform: translateY(-10px);}
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== HISTORY SECTION ===== */
.history-section {
  background-color: white;
}

.history-section .content p {
  margin-bottom: var(--spacing-md);
}

.history-section figure {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.timeline {
  position: relative;
  margin-top: var(--spacing-xl);
  padding-left: 50px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: var(--light-gray);
}

.timeline-item {
  position: relative;
  margin-bottom: var(--spacing-lg);
}

.timeline-marker {
  position: absolute;
  left: -30px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--primary-color);
  border: 4px solid white;
  box-shadow: var(--shadow-sm);
}

.timeline-content {
  padding-bottom: var(--spacing-md);
}

.timeline-content .heading {
  font-weight: bold;
  margin-bottom: var(--spacing-xs);
  color: var(--primary-color);
}

/* ===== MISSION SECTION ===== */
.mission-section {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  padding: var(--spacing-xxl) 0;
}

.values {
  margin-top: var(--spacing-xl);
}

.value-item {
  text-align: center;
  padding: var(--spacing-md);
  transition: var(--transition-medium);
}

.value-item:hover {
  transform: translateY(-5px);
}

.value-icon-trust,
.value-icon-excellence,
.value-icon-sustainability {
  display: block;
  width: 60px;
  height: 60px;
  margin: 0 auto var(--spacing-md);
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-circle);
  position: relative;
}

.value-icon-trust::before,
.value-icon-excellence::before,
.value-icon-sustainability::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 30px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

/* ===== SERVICES SECTION ===== */
.services-section {
  background-color: var(--light-color);
}

.service-card {
  height: 100%;
  transition: var(--transition-medium);
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  background-color: white;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.service-card .card-image {
  overflow: hidden;
}

.service-card .image-container {
  height: 250px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

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

.service-card .card-content {
  padding: var(--spacing-lg);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.service-card .title {
  margin-bottom: var(--spacing-md);
  color: var(--dark-color);
}

.service-card p {
  color: var(--mid-gray);
  margin-bottom: var(--spacing-md);
}

/* ===== STATISTICS SECTION ===== */
.statistics-section {
  background-color: var(--primary-color);
  padding: var(--spacing-xl) 0;
}

.statistic-item {
  text-align: center;
  padding: var(--spacing-md);
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
  font-family: var(--heading-font);
  display: block;
}

.stat-description {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-md);
}

.progress-container {
  height: 6px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  overflow: hidden;
  margin-top: var(--spacing-md);
}

.progress-bar {
  height: 100%;
  background-color: white;
  border-radius: 3px;
  width: 0;
  transition: width 1.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ===== PROJECTS/VEHICLES SECTION ===== */
.projects-section {
  background-color: white;
}

.carousel-container {
  position: relative;
  overflow: hidden;
  padding: 0 var(--spacing-md);
}

.carousel-track {
  display: flex;
  gap: var(--spacing-lg);
  transition: transform 0.5s ease;
  margin-bottom: var(--spacing-lg);
}

.carousel-controls {
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
  margin-top: var(--spacing-md);
}

.prev-btn, 
.next-btn {
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: var(--radius-circle);
  width: 40px;
  height: 40px;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-medium);
}

.prev-btn:hover, 
.next-btn:hover {
  background-color: var(--primary-dark);
  transform: scale(1.1);
}

.vehicle-card {
  flex: 0 0 300px;
  max-width: 300px;
  transition: var(--transition-medium);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.vehicle-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.vehicle-card .card-image {
  position: relative;
}

.vehicle-card .image-container {
  height: 200px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vehicle-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

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

.vehicle-card .tag {
  position: absolute;
  top: var(--spacing-md);
  right: var(--spacing-md);
  z-index: 1;
}

.vehicle-card .card-content {
  padding: var(--spacing-md);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.vehicle-card .title {
  margin-bottom: var(--spacing-sm);
  font-size: 1.25rem;
}

.vehicle-card .price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: var(--spacing-md);
}

.vehicle-card .description {
  color: var(--mid-gray);
  margin-bottom: var(--spacing-md);
  flex-grow: 1;
}

.vehicle-specs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
}

.vehicle-specs span {
  background-color: var(--light-gray);
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--dark-color);
}

/* ===== RESEARCH SECTION ===== */
.research-section {
  background-color: var(--light-color);
}

.research-content p {
  color: var(--dark-color);
  margin-bottom: var(--spacing-lg);
}

.research-charts {
  margin: var(--spacing-xl) 0;
}

.chart-container {
  background-color: white;
  padding: var(--spacing-lg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  margin-bottom: var(--spacing-md);
}

.bar-chart {
  height: 300px;
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  padding-top: var(--spacing-lg);
}

.bar-item {
  width: 60px;
  background-color: var(--primary-color);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  position: relative;
  transition: height 1.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.bar-value {
  position: absolute;
  top: -25px;
  left: 0;
  right: 0;
  text-align: center;
  font-weight: 700;
  color: var(--dark-color);
}

.bar-label {
  position: absolute;
  bottom: -25px;
  left: 0;
  right: 0;
  text-align: center;
  color: var(--mid-gray);
}

.pie-chart {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: conic-gradient(
    var(--primary-color) 0% 40%,
    var(--secondary-color) 40% 70%,
    var(--primary-light) 70% 90%,
    var(--secondary-light) 90% 100%
  );
  margin: 0 auto;
}

.pie-legend {
  margin-top: var(--spacing-lg);
}

.legend-item {
  display: flex;
  align-items: center;
  margin-bottom: var(--spacing-sm);
}

.legend-color {
  width: 15px;
  height: 15px;
  border-radius: var(--radius-sm);
  margin-right: var(--spacing-sm);
}

.diesel {
  background-color: var(--primary-color);
}

.gasolina {
  background-color: var(--secondary-color);
}

.hibrido {
  background-color: var(--primary-light);
}

.electrico {
  background-color: var(--secondary-light);
}

/* ===== EXTERNAL RESOURCES SECTION ===== */
.external-resources {
  background-color: white;
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.resource-card {
  background-color: var(--light-color);
  padding: var(--spacing-lg);
  border-radius: var(--radius-md);
  transition: var(--transition-medium);
  display: block;
  text-decoration: none;
  color: var(--dark-color);
}

.resource-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  background-color: var(--primary-color);
  color: white;
}

.resource-title {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-sm);
  font-weight: 600;
}

.resource-description {
  color: inherit;
  opacity: 0.8;
}

/* ===== BLOG SECTION ===== */
.blog-section {
  background-color: var(--light-color);
}

.blog-card {
  height: 100%;
  transition: var(--transition-medium);
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  background-color: white;
}

.blog-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.blog-card .card-image {
  position: relative;
  overflow: hidden;
}

.blog-card .image-container {
  height: 200px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

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

.blog-card .blog-date {
  position: absolute;
  bottom: var(--spacing-md);
  left: var(--spacing-md);
  z-index: 1;
}

.blog-card .card-content {
  padding: var(--spacing-lg);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.blog-card .title {
  margin-bottom: var(--spacing-md);
}

.blog-card p {
  color: var(--mid-gray);
  margin-bottom: var(--spacing-md);
  flex-grow: 1;
}

.blog-card .button {
  margin-top: auto;
}

/* ===== BEHIND THE SCENES SECTION ===== */
.behind-scenes-section {
  background-color: white;
}

.behind-scenes-section figure {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.team-values {
  margin-top: var(--spacing-lg);
}

.value-box {
  text-align: center;
  padding: var(--spacing-md);
  background-color: var(--light-color);
  border-radius: var(--radius-md);
  height: 100%;
  transition: var(--transition-medium);
}

.value-box:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  background-color: var(--primary-color);
  color: white;
}

.facilities {
  margin-top: var(--spacing-xl);
}

/* ===== CONTACT SECTION ===== */
.contact-section {
  background-color: var(--light-color);
}

.contact-info {
  margin-bottom: var(--spacing-lg);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: var(--spacing-lg);
}

.contact-item .icon {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-right: var(--spacing-md);
}

.contact-text h3 {
  margin-bottom: var(--spacing-xs);
}

.contact-form-container {
  background-color: white;
  padding: var(--spacing-lg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.contact-form .label {
  color: var(--dark-color);
}

.contact-form .input,
.contact-form .textarea,
.contact-form .select select {
  background-color: var(--light-color);
  border: 1px solid var(--light-gray);
  transition: var(--transition-fast);
}

.contact-form .input:focus,
.contact-form .textarea:focus,
.contact-form .select select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 1px var(--primary-light);
}

.map-container {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

/* ===== FOOTER ===== */
.footer {
  background-color: var(--dark-color);
  padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer h4 {
  margin-bottom: var(--spacing-lg);
}

.footer p {
  color: var(--light-gray);
  margin-bottom: var(--spacing-md);
}

.social-links {
  display: flex;
  gap: var(--spacing-md);
  margin-top: var(--spacing-md);
}

.social-links a {
  color: var(--light-gray);
  transition: var(--transition-fast);
  text-decoration: none;
  padding-right: var(--spacing-md);
  position: relative;
}

.social-links a::after {
  content: '•';
  position: absolute;
  right: 0;
  color: var(--mid-gray);
}

.social-links a:last-child::after {
  display: none;
}

.social-links a:hover {
  color: var(--primary-color);
}

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

.footer-links li {
  margin-bottom: var(--spacing-sm);
}

.footer-links a {
  color: var(--light-gray);
  text-decoration: none;
  transition: var(--transition-fast);
}

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

.footer-bottom {
  padding-top: var(--spacing-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: var(--spacing-lg);
}

/* ===== SUCCESS PAGE ===== */
.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--spacing-xl);
}

.success-container {
  max-width: 600px;
}

.success-icon {
  font-size: 5rem;
  color: var(--primary-color);
  margin-bottom: var(--spacing-lg);
}

/* ===== PRIVACY & TERMS PAGES ===== */
.privacy-page,
.terms-page {
  padding-top: 100px;
}

.privacy-content,
.terms-content {
  background-color: white;
  padding: var(--spacing-xl);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* ===== MEDIA QUERIES ===== */
@media (max-width: 768px) {
  .service-card,
  .blog-card,
  .vehicle-card {
    margin-bottom: var(--spacing-lg);
  }
  
  .carousel-track {
    flex-wrap: wrap;
  }
  
  .vehicle-card {
    flex: 0 0 100%;
    max-width: 100%;
  }
  
  .contact-form-container {
    margin-top: var(--spacing-lg);
  }
  
  .navbar-menu {
    background-color: white;
  }
  
  .hero .title {
    font-size: 2rem !important;
  }
  
  .hero .subtitle {
    font-size: 1.5rem !important;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .vehicle-card {
    flex: 0 0 calc(50% - var(--spacing-lg));
    max-width: calc(50% - var(--spacing-lg));
  }
}

/* ===== UTILITY CLASSES ===== */
.mb-6 {
  margin-bottom: var(--spacing-lg) !important;
}

.mt-4 {
  margin-top: var(--spacing-md) !important;
}

.mt-6 {
  margin-top: var(--spacing-lg) !important;
}

/* ===== INITIALIZATION FOR ANIMATIONS ===== */
.js-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: var(--transition-slow);
}

.js-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE TWEAKS ===== */
@media (max-width: 1023px) {
  .reverse-columns-mobile {
    flex-direction: column-reverse;
  }
}