:root {
  --white-color: #ffffff;
  --primary-color: #e3841a;
  --primary-grey: #64748b;
  --black-color: #2a2a2a;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
  font-family: "Roboto", sans-serif;
  color: var(--black-color);
}

h1,
h2,
h3,
h5 {
  font-family: "Roboto Serif", serif;
}

/* common css */
.container {
  max-width: 1280px;
  margin-right: auto;
  margin-left: auto;
  padding: 0 20px;
}

.header-container {
  max-width: 719px;
  margin-right: auto;
  margin-left: auto;
  padding: 0 20px;
}

.color-white {
  color: var(--white-color);
}

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

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

.color-secondary {
  color: var(--black-color);
}

.color-grey {
  color: var(--primary-grey);
}

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

.logo-img {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

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

/* Desktop dropdown open states */
#desktop-services-dropdown.is-open #desktop-services-menu,
#desktop-industry-dropdown.is-open #desktop-industry-menu {
  opacity: 1;
  visibility: visible;
}

#desktop-services-dropdown.is-open #desktop-services-arrow,
#desktop-industry-dropdown.is-open #desktop-industry-arrow {
  transform: rotate(180deg);
  color: var(--primary-color);
}

#desktop-services-dropdown.is-open #desktop-services-btn,
#desktop-industry-dropdown.is-open #desktop-industry-btn {
  color: var(--primary-color);
}

/* Hero freight bar */
.hero-freight-bar {
  background: #FFFFFF1A;
  border-radius: 12px;
  border: 1px solid #FFFFFF1A;
}

.hero-freight-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 90px;
}

.hero-freight-item .hero-freight-icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
  display: block;
}

.hero-overlay {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.35) 0%,
    rgba(0, 0, 0, 0.15) 40%,
    rgba(0, 0, 0, 0.35) 100%
  );
}

.hero-bottom-fade {
  height: clamp(30px, 5vh, 100px);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.35) 35%,
    rgba(255, 255, 255, 0.92) 75%,
    rgba(255, 255, 255, 1) 100%
  );
}

/* Service page copy (WYSIWYG must not be wrapped in <p> — avoids invalid nesting). */
.service-section-copy > :first-child {
  margin-top: 0;
}

.service-section-copy > :last-child {
  margin-bottom: 0;
}

.service-section-copy p {
  margin-top: 0;
  margin-bottom: 0;
}

.service-section-copy p + p {
  margin-top: 1rem;
}

@media (min-width: 640px) {
  .service-section-copy p + p {
    margin-top: 1.25rem;
  }
}

#trade-service-cards .trade-card[data-active="true"] {
  flex: 2.2 1 0%;
}

@media (min-width: 640px) {
  #trade-service-cards .trade-card:not([data-active="true"]) {
    flex: 1 1 0%;
  }
}

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

.hero-animate {
  animation: heroFadeUp 0.8s ease-out both;
}

.hero-animate-delay {
  animation-delay: 0.15s;
}

.hero-animate-bar {
  animation: heroFadeUp 0.8s ease-out 0.3s both;
}

/* FAQ accordion smooth open/close */
#faq-accordion .faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease-in-out;
}

#faq-accordion .faq-panel.is-open {
  grid-template-rows: 1fr;
}

#faq-accordion .faq-panel > div {
  overflow: hidden;
}

#faq-accordion .faq-icon {
  transition: transform 0.3s ease;
}

@media only screen and (max-width: 1280px) {
  .container,
  .header-container {
    max-width: 991px;
  }
}

@media only screen and (max-width: 1023px) {
  .container,
  .header-container {
    max-width: 735px;
  }

  .logo-img {
    width: 150px;
  }
}

@media only screen and (max-width: 768px) {
  .container,
  .header-container {
    max-width: 720px;
  }

  .logo-img {
    width: 140px;
  }

  .hero-freight-item {
    min-width: 70px;
  }

  .hero-freight-item .hero-freight-icon {
    width: 36px;
    height: 36px;
  }
}

@media only screen and (max-width: 640px) {
  .container,
  .header-container {
    max-width: 540px;
  }

  .logo-img {
    width: 120px;
  }
}

/* Contact page — Contact Form 7 */
.ndh-contact-form .wpcf7 {
  margin: 0;
}

.ndh-contact-form .wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.ndh-contact-form .wpcf7-form p {
  margin: 0;
}

.ndh-contact-form .wpcf7-form br {
  display: none;
}

@media (min-width: 640px) {
  .ndh-contact-form .wpcf7-form {
    gap: 1rem;
  }
}

.ndh-contact-form .ndh-cf7-fields {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

@media (min-width: 640px) {
  .ndh-contact-form .ndh-cf7-fields {
    gap: 1rem;
  }
}

.ndh-contact-form .ndh-cf7-label,
.ndh-contact-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--black-color);
  margin-bottom: 0.375rem;
}

@media (min-width: 640px) {
  .ndh-contact-form .ndh-cf7-label,
  .ndh-contact-form label {
    font-size: 14px;
  }
}

.ndh-contact-form .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

.ndh-contact-form .ndh-cf7-input,
.ndh-contact-form .ndh-cf7-textarea,
.ndh-contact-form input.wpcf7-form-control:not([type="submit"]),
.ndh-contact-form textarea.wpcf7-form-control {
  width: 100%;
  box-sizing: border-box;
  border-radius: 8px;
  border: 1px solid #e5eaf0;
  background: #fff;
  padding: 0.625rem 0.875rem;
  font-size: 13px;
  color: var(--black-color);
  outline: none;
  transition: border-color 0.2s ease;
}

@media (min-width: 640px) {
  .ndh-contact-form .ndh-cf7-input,
  .ndh-contact-form .ndh-cf7-textarea,
  .ndh-contact-form input.wpcf7-form-control:not([type="submit"]),
  .ndh-contact-form textarea.wpcf7-form-control {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    font-size: 14px;
  }
}

.ndh-contact-form .ndh-cf7-textarea,
.ndh-contact-form textarea.wpcf7-form-control {
  resize: vertical;
  min-height: 96px;
}

.ndh-contact-form .ndh-cf7-input:focus,
.ndh-contact-form .ndh-cf7-textarea:focus,
.ndh-contact-form input.wpcf7-form-control:focus,
.ndh-contact-form textarea.wpcf7-form-control:focus {
  border-color: var(--primary-color);
}

.ndh-contact-form .ndh-cf7-input::placeholder,
.ndh-contact-form .ndh-cf7-textarea::placeholder,
.ndh-contact-form input::placeholder,
.ndh-contact-form textarea::placeholder {
  color: #94a3b8;
}

.ndh-contact-form .ndh-cf7-field--submit {
  margin-top: 0;
}

.ndh-contact-form .ndh-cf7-submit,
.ndh-contact-form input.wpcf7-submit {
  width: 100%;
  border: none;
  cursor: pointer;
  background-color: var(--primary-color);
  color: #fff;
  font-weight: 500;
  font-size: 14px;
  padding: 0.625rem 1rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  transition: opacity 0.2s ease;
  letter-spacing: 0.025em;
}

@media (min-width: 640px) {
  .ndh-contact-form .ndh-cf7-submit,
  .ndh-contact-form input.wpcf7-submit {
    font-size: 16px;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }
}

.ndh-contact-form .ndh-cf7-submit:hover,
.ndh-contact-form input.wpcf7-submit:hover {
  opacity: 0.9;
}

.ndh-contact-form .wpcf7-not-valid-tip {
  font-size: 12px;
  margin-top: 0.25rem;
  color: #dc2626;
}

.ndh-contact-form .wpcf7-response-output {
  margin: 0.75rem 0 0;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 14px;
}

.ndh-contact-form .wpcf7-spinner {
  margin-left: 0.5rem;
}

/* Car card fade slider */
.car-card-model {
  color: #1a8a96;
}
 
/* Same width for every car image in the slider */
.car-card-image {
  width: 200px;
  max-width: 200px;
  height: fit-content;
  object-fit: contain;
}
 
@media only screen and (min-width: 640px) {
  .car-card-image {
    width: 320px;
    max-width: 320px;
  }
}
 
@media only screen and (min-width: 768px) {
  .car-card-image {
    width: 420px;
    max-width: 420px;
  }
}
 
@media only screen and (min-width: 1024px) {
  .car-card-image {
    width: 480px;
    max-width: 480px;
  }
}
 
 
.car-card-slide {
  height: fit-content;
}
 
.car-card-label {
position: relative;
}
 
@media only screen and (min-width: 1280px) {
  .car-card-slide {
    margin-top: 100px;
  }
}
 
.car-card-label-pointer {
  position: absolute;
  bottom: -15%;
  right: -22%;
  width: 50%;
  height: 50%;
}
 
.car-card-swiper {
  overflow: hidden;
}
 
.car-card-swiper .swiper-slide {
  height: auto;
  display: flex;
  align-items: flex-end;
}
 
.car-card-swiper .swiper-slide-active .car-card-slide {
  opacity: 1;
}
 
@media only screen and (min-width: 640px) {
  .car-card-swiper {
    min-height: 360px;
  }
}
 
@media only screen and (min-width: 1024px) {
  .car-card-swiper {
    min-height: 420px;
  }
}