.hero {
    display: flex;
    flex-direction: row;
    min-height: 70vh;
    height: auto;
    width: 100%;
    box-sizing: border-box;
    padding-top: 0; /* ✅ Default: no gap */
  }
  
  /* Only push down on smaller screens */
  @media (max-width: 768px) {
    .hero {
      flex-direction: column;
      padding-top: 100px; /* ✅ Only mobile gets space for navbar */
    }
  }

.hero-image {
    flex: 13;
    background-image: url('../images/truck.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    min-height: 350px;
}

.hero-image::after {
    display: none;
}

.hero-content {
    flex: 7;
    background-color: #fff;
    padding: 4rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 350px;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

/* Vanta animation container */
.hero-content.vanta-enabled {
    background-color: transparent;
    /* Ensure Vanta canvas covers full height on Mac */
    position: relative;
    overflow: hidden;
}

/* Mac-specific fix for Vanta canvas rendering */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    .hero-content.vanta-enabled {
        /* Force full coverage and eliminate rendering gaps */
        transform: translateZ(0);
        backface-visibility: hidden;
        perspective: 1000px;
    }
    
    /* Ensure Vanta canvas element covers full area */
    .hero-content.vanta-enabled canvas {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        z-index: 1;
    }
}

/* Ensure text stays above the animation */
.hero-content > * {
    position: relative;
    z-index: 2;
}


.hero h1 {
    font-size: 2.5rem;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.highlight {
    background-color: rgba(13, 47, 79, 0.12);
    padding: 0 6px;
    font-weight: bold;
    border-radius: 2px;
}

.highlight.alt {
    background-color: rgba(13, 47, 79, 0.2);
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #2c3e50;
}

.button {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background-color: #0d2f4f;
    color: white;
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    width: fit-content;
    text-align: center;
}

.button:hover {
    background-color: #1a4b7a;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}


@media (max-width: 768px) {
    .hero {
      flex-direction: column;
      padding-top: 100px;
    }
  
    .hero-image {
      min-height: 380px !important;
      height: 380px !important;
      background-size: cover;
      background-position: center;
    }
  
    .hero-content {
      padding: 2rem 1.5rem;
    }
  }


  @media (max-width: 768px) {
    .hero h1 {
      font-size: 1.6rem; /* adjust as needed */
      line-height: 1.3;
    }
  
    .hero p {
      font-size: 0.95rem; /* optionally reduce paragraph size too */
    }
  }