/*
 * DHR Truck Centre - Bold Modern Design
 * 2024 Redesign
 */

:root {
  /* Core brand colors */
  --dark: #101820;            /* Near black for major elements */
  --primary: #e53012;         /* Vibrant red/orange for key elements */
  --secondary: #2c3e50;       /* Deep slate blue for secondary elements */
  --accent: #ffcc00;          /* Bright yellow for accents/highlights */
  --light: #f8f9fa;           /* Off-white for backgrounds */
  
  /* Supporting colors */
  --dark-gray: #343a40;
  --medium-gray: #6c757d;
  --light-gray: #dee2e6;
  --success: #28a745;
  --warning: #ffc107;
  --danger: #dc3545;
  
  /* Typography */
  --heading-font: 'Barlow Condensed', sans-serif;
  --body-font: 'Roboto', sans-serif;
  
  /* Layout */
  --container-padding: clamp(1rem, 5vw, 3rem);
  --section-spacing: clamp(3rem, 10vw, 8rem);
  --border-radius: 8px;
  --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  --box-shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.2);
}

/* Base Styles */
body {
  font-family: var(--body-font);
  color: var(--dark);
  background-color: var(--light);
  line-height: 1.6;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2.5rem, 8vw, 5rem);
}

h2 {
  font-size: clamp(2rem, 6vw, 3.5rem);
}

h3 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
}

p {
  margin-bottom: 1.5rem;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--accent);
}

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

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

.btn {
  display: inline-block;
  font-family: var(--heading-font);
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.8rem 2rem;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 1px;
  border: none;
  text-align: center;
  margin-bottom: 1.5rem;
}

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

.btn-primary:hover {
  background-color: #c42300;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(229, 48, 18, 0.3);
}

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

.btn-secondary:hover {
  background-color: #253545;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(44, 62, 80, 0.3);
}

.btn-accent {
  background-color: var(--accent);
  color: var(--dark);
}

.btn-accent:hover {
  background-color: #e0b400;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 204, 0, 0.3);
}

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

.btn-outline:hover {
  background-color: var(--primary);
  color: white;
  transform: translateY(-2px);
}

.btn-large {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

/* Header & Navigation */
.site-header {
  background-color: #202c39;
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem var(--container-padding);
  gap: 2rem;
}

.logo {
  display: flex;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.15);
  padding: 0.5rem;
  border-radius: var(--border-radius);
  flex-shrink: 0;
}

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

.automann-logo-header {
  height: 40px;
  width: auto;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  font-size: 1.5rem;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
}

.main-nav {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links li {
  margin-left: 2rem;
}

.nav-links a {
  color: white;
  font-family: var(--heading-font);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  padding: 0.5rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--accent);
}

.header-cta {
  margin-left: 2rem;
  padding: 0.8rem 1.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(229, 48, 18, 0.3);
}

.header-cta:hover {
  background-color: #c42300;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(229, 48, 18, 0.4);
  color: white;
}

.header-cta i {
  font-size: 1.2rem;
}

/* Page Banner (for subpages) */
.page-banner {
  background-color: var(--secondary);
  color: white;
  padding: 3rem 0;
  position: relative;
  overflow: hidden;
}

.page-banner::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 30%;
  background-color: var(--primary);
  clip-path: polygon(30% 0, 100% 0, 100% 100%, 0% 100%);
  opacity: 0.8;
  z-index: 0;
}

.banner-content {
  position: relative;
  z-index: 1;
}

.page-title {
  margin-bottom: 0.5rem;
  color: white;
}

.breadcrumb {
  background-color: transparent;
  padding: 0;
  margin: 0;
}

.breadcrumb-item a {
  color: var(--accent);
}

.breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.5);
}

.breadcrumb-item.active {
  color: rgba(255, 255, 255, 0.7);
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  color: white;
  background-color: var(--dark);
  overflow: hidden;
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-title-container {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
  flex-wrap: nowrap;
}

.automann-logo-hero {
  height: 60px;
  width: auto;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
  flex-shrink: 0;
}

.hero-title {
  font-size: clamp(3rem, 10vw, 5.5rem);
  margin-bottom: 1rem;
  line-height: 1;
  color: white;
  white-space: nowrap;
}

.hero-subtitle {
  font-size: clamp(1.2rem, 4vw, 1.8rem);
  margin-bottom: 2rem;
  font-weight: 400;
  max-width: 700px;
}

.hero-cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Section Styles */
.section-padding {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  color: var(--dark);
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--primary);
}

.section-subtitle {
  display: block;
  color: var(--primary);
  font-family: var(--heading-font);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.lead {
  font-size: 1.25rem;
  font-weight: 300;
  margin-bottom: 1.5rem;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.service-card {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--box-shadow);
  height: 100%;
  transition: all 0.3s ease;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.service-icon {
  width: 80px;
  height: 80px;
  background-color: rgba(229, 48, 18, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--primary);
  font-size: 2rem;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary);
  text-align: center;
}

.service-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
  text-align: center;
}

.service-list li {
  margin-bottom: 0.5rem;
  color: var(--dark);
  font-size: 1rem;
  line-height: 1.4;
}

.service-card .btn {
  margin-top: auto;
}

/* Contact Form Styling */
.contact-form-section {
  background-color: white;
  padding: 5rem 0;
}

.form-intro {
  padding-right: 2rem;
}

.contact-form-wrapper {
  background-color: var(--light);
  padding: 2.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.contact-form .form-control {
  padding: 0.75rem 1rem;
  border: 1px solid var(--light-gray);
  border-radius: var(--border-radius);
  margin-bottom: 0.5rem;
}

.contact-form .form-label {
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.contact-features {
  margin-top: 3rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.feature-icon {
  flex: 0 0 50px;
  height: 50px;
  background-color: rgba(229, 48, 18, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-right: 1rem;
}

.feature-text h4 {
  margin-bottom: 0.25rem;
  font-size: 1.1rem;
}

/* Advantage Items Styling for About Page */
.advantage-list {
  margin-top: 2rem;
}

.advantage-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.advantage-icon {
  flex: 0 0 50px;
  height: 50px;
  background-color: rgba(229, 48, 18, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-right: 1rem;
  font-size: 1.2rem;
}

.advantage-text h4 {
  margin-bottom: 0.25rem;
  font-size: 1.1rem;
}

/* Mission & Values Styling */
.mission-card, .value-item {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--box-shadow);
  height: 100%;
  transition: all 0.3s ease;
}

.mission-icon, .value-icon {
  width: 70px;
  height: 70px;
  background-color: rgba(229, 48, 18, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
}

.values-title {
  text-align: center;
  margin-bottom: 2.5rem;
}

/* Contact Card Styling */
.contact-card {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 2.5rem;
  box-shadow: var(--box-shadow);
  text-align: center;
  height: 100%;
  transition: all 0.3s ease;
}

.contact-card.highlighted {
  background-color: var(--primary);
  color: white;
}

.contact-card.highlighted h3,
.contact-card.highlighted a:not(.btn) {
  color: white;
}

.contact-icon {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.contact-card.highlighted .contact-icon {
  color: white;
}

.contact-card h3 {
  margin-bottom: 1.5rem;
}

.contact-card p {
  margin-bottom: 1rem;
}

.contact-card a:not(.btn) {
  color: var(--primary);
  font-weight: 500;
}

.contact-card .btn {
  margin-top: 1rem;
}

/* Hours Section */
.hours-table {
  margin: 2rem 0;
}

.hours-row {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--light-gray);
}

.hours-row.closed {
  color: var(--medium-gray);
}

.day {
  font-weight: 700;
}

.emergency-note {
  display: flex;
  align-items: center;
  background-color: rgba(229, 48, 18, 0.1);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  margin-top: 2rem;
}

.emergency-note i {
  font-size: 2rem;
  color: var(--primary);
  margin-right: 1rem;
}

/* Automann Partnership Section */
.automann-section {
  background-color: var(--dark);
  color: white;
  padding: var(--section-spacing) 0;
  position: relative;
}

.automann-bg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 40%;
  background-color: var(--primary);
  clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%);
}

.automann-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
}

.automann-text {
  flex: 1;
}

.automann-title {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1.5rem;
}

.automann-logo-container {
  flex: 0 0 300px;
  background-color: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--box-shadow);
}

.automann-logo {
  max-width: 100%;
}

.parts-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.part-category {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
}

/* Emergency Services Section */
.emergency-section {
  background-color: var(--primary);
  color: white;
  padding: 3rem 0;
  text-align: center;
}

.emergency-container {
  max-width: 800px;
  margin: 0 auto;
}

.emergency-text {
  margin-bottom: 2rem;
}

.emergency-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: white;
}

.emergency-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: white;
  padding: 1.5rem 2rem;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.emergency-phone:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.phone-icon {
  font-size: 2rem;
  color: var(--primary);
  margin-right: 1rem;
}

.phone-number {
  font-family: var(--heading-font);
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  transition: all 0.3s ease;
}

.phone-number:hover {
  color: var(--accent);
}

/* Contact CTA Section */
.contact-cta {
  padding: 5rem 0;
  background-color: var(--primary);
  color: white;
  margin-top: 2rem;
  position: relative;
}

.contact-cta::before {
  content: '';
  position: absolute;
  top: -50px;
  left: 0;
  right: 0;
  height: 50px;
  background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.05));
  pointer-events: none;
}

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

.cta-title {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.cta-subtitle, .cta-text {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Footer */
.site-footer {
  background-color: var(--dark);
  padding-top: 4rem;
  color: white;
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
}

.footer-logo-section img {
  max-width: 180px;
  margin-bottom: 1.5rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-link {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: white;
  transition: all 0.3s ease;
}

.social-link:hover {
  background-color: var(--primary);
  transform: translateY(-3px);
}

.footer-heading {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: white;
}

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

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: var(--accent);
  padding-left: 5px;
}

.footer-hours {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.hours-day {
  font-weight: 600;
}

.emergency-badge {
  background-color: var(--primary);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}

.copyright-bar {
  margin-top: 4rem;
  padding: 1.5rem 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Responsive Styles */
@media (max-width: 992px) {
  .header-container {
    padding: 1rem var(--container-padding);
    gap: 1rem;
  }
  
  .nav-toggle {
    display: block;
  }
  
  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 80%;
    max-width: 400px;
    background-color: var(--dark);
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    z-index: 1001;
  }
  
  .main-nav.active {
    transform: translateX(0);
  }
  
  .nav-links {
    flex-direction: column;
    width: 100%;
  }
  
  .nav-links li {
    margin: 0;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .nav-links a {
    display: block;
    padding: 1rem 0;
  }
  
  .header-cta {
    margin: 2rem 0 0 0;
    width: 100%;
  }
  
  .automann-content {
    flex-direction: column;
  }
  
  .automann-bg {
    width: 100%;
    clip-path: polygon(0 0, 100% 0, 100% 30%, 0 60%);
    height: 100%;
  }
  
  .automann-logo-container {
    flex: 0 0 auto;
  }
  
  .emergency-container {
    flex-direction: column;
    text-align: center;
  }
  
  .logo img {
    max-height: 40px;
  }
  
  .section-padding {
    padding: 4rem 0;
  }
  
  .contact-form-wrapper, 
  .form-intro {
    padding: 1.5rem;
  }
  
  .automann-logo-header {
    height: 30px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-spacing: 4rem;
  }
  
  .hero {
    min-height: 500px;
  }
  
  .hero-cta-group {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
  }
  
  .emergency-phone {
    flex-direction: column;
  }
  
  .cta-buttons {
    flex-direction: column;
  }
  
  .cta-buttons .btn {
    margin-bottom: 1rem;
  }
  
  .advantage-item,
  .feature-item {
    flex-direction: column;
    text-align: center;
  }
  
  .advantage-icon,
  .feature-icon {
    margin: 0 auto 1rem;
  }
  
  .hero-title-container {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .hero-title {
    white-space: normal;
    text-align: center;
  }
  
  .automann-logo-hero {
    height: 40px;
  }
}

@media (max-width: 576px) {
  .header-container {
    padding: 0.75rem var(--container-padding);
  }
  
  .logo img {
    max-height: 35px;
  }
  
  .hero {
    min-height: 450px;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .section-subtitle {
    font-size: 0.9rem;
  }
  
  .contact-card,
  .mission-card,
  .value-item {
    padding: 1.5rem;
  }
  
  .automann-logo-header {
    height: 25px;
  }
}

/* Animation Utilities */
.fade-in {
  animation: fadeIn 1s ease-in;
}

.slide-in-left {
  animation: slideInLeft 1s ease-in;
}

.slide-in-right {
  animation: slideInRight 1s ease-in;
}

.zoom-in {
  animation: zoomIn 1s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInLeft {
  from { transform: translateX(-50px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInRight {
  from { transform: translateX(50px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes zoomIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.vehicle-types {
    margin-top: 2rem;
    padding: 1rem 0;
}

.vehicle-type {
    text-align: center;
    padding: 1.5rem;
    background: var(--light-bg);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.vehicle-type h4 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--text-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.vehicle-type:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.vehicle-type:hover h4 {
    color: white;
}

.brand-logos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 3rem 0;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.brand-logo-item {
    width: 100%;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-bg);
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.brand-logo-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

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