/* ==========================================================================
   DAWNSUN AUTOMOTIVE CSS
   ========================================================================== */

:root {
  --navy: #0B2D5E;
  --orange: #C9A84C;
  --light-gray: #F7F8FC;
  --text-color: #555555;
  --heading-font: 'Merriweather', serif;
  --body-font: 'Lato', sans-serif;
}

/* Base Styles & Resets */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--body-font);
  color: var(--text-color);
}

.h-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.text-center {
  text-align: center;
}

.h-bg-light {
  background-color: var(--light-gray);
}

.h-section-title {
  color: var(--navy);
  font-family: var(--heading-font);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.h-section-desc {
  font-size: 1.1rem;
  line-height: 1.8;
  margin: 0 auto 3rem auto;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.h-hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  padding-top: 80px; /* offset for header */
}

.h-hero-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url('../img/pull_push/Automotive-banner.png');
  background-size: cover;
  background-position: center;
  animation: bgZoom 8s infinite alternate ease-in-out;
}

.h-hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(11, 45, 94, 0.4);
  z-index: 1;
}

.h-hero-box {
  position: relative;
  z-index: 2;
  background-color: rgba(11, 45, 94, 0.9);
  padding: 5rem 4rem;
  width: 50%;
  max-width: 650px;
  color: #fff;
  border-left: 5px solid var(--orange);
  opacity: 0;
  transform: translateX(-50px);
  animation: slideInLeft 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.h-hero-box h1 {
  font-family: var(--heading-font);
  font-size: 3rem;
  line-height: 1.2;
  margin: 0 0 2rem 0;
  font-weight: 700;
}

.h-btn {
  display: inline-block;
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.h-btn:hover {
  color: var(--orange);
}

/* ==========================================================================
   INTRO SECTION
   ========================================================================== */
.h-intro {
  padding: 5rem 0;
  background-color: #fff;
}

.h-intro-text {
  font-size: 1.15rem;
  line-height: 1.8;
  margin: 0 auto;
  text-align: center;
  color: var(--text-color);
}

/* ==========================================================================
   FEATURES SPLIT SECTION
   ========================================================================== */
.h-features-split {
  display: flex;
  background-color: #fff;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 2rem;
  gap: 4rem;
}

.h-features-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.h-features-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.h-features-list li {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  position: relative;
  padding-left: 1.5rem;
}

.h-features-list li::before {
  content: "•";
  color: var(--orange);
  font-size: 2rem;
  position: absolute;
  left: 0;
  top: -6px;
}

.h-features-image {
  flex: 0.8;
  display: flex;
  justify-content: center;
}

.h-features-image img {
  width: 100%;
  height: auto;
  max-height: 450px;
  object-fit: contain;
  display: block;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* ==========================================================================
   APPLICATION SECTIONS (BUSES & TRUCKS)
   ========================================================================== */
.h-application-section {
  padding: 5rem 0;
}

.h-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.h-gallery-item {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  aspect-ratio: 1 / 1;
}

.h-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.h-gallery-item:hover img {
  transform: scale(1.05);
}

/* ==========================================================================
   OUTRO SECTION
   ========================================================================== */
.h-outro {
  background-color: var(--navy);
  padding: 5rem 0;
  color: #fff;
}

.h-outro-text {
  font-family: var(--heading-font);
  font-size: 1.8rem;
  line-height: 1.6;
  font-weight: 300;
  margin: 0;
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
@keyframes slideInLeft {
  0% { opacity: 0; transform: translateX(-50px); }
  100% { opacity: 1; transform: translateX(0); }
}

@keyframes bgZoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.05); }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media(max-width: 1024px) {
  .h-hero-box {
    width: 70%;
  }
  .h-features-split {
    flex-direction: column;
  }
  .h-features-content {
    padding: 4rem 2rem;
  }
  .h-features-image {
    min-height: 300px;
  }
}

@media(max-width: 768px) {
  .h-hero-box {
    width: 90%;
    padding: 3rem 2rem;
  }
  .h-hero-box h1 {
    font-size: 2.2rem;
  }
  .h-section-title {
    font-size: 2rem;
  }
  .h-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .h-outro-text {
    font-size: 1.4rem;
  }
}

@media(max-width: 480px) {
  .h-gallery-grid {
    grid-template-columns: 1fr;
  }
}
