/* Base styles */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Open Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #1a1a1a;
  background-color: #f5f6f7;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 90%;
  max-width: 1120px;
  margin: 0 auto;
}

/* Header & Nav */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(9, 26, 35, 0.92);
  backdrop-filter: blur(6px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo img {
  height: 46px;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.main-nav a {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  letter-spacing: 0.04em;
  font-size: 0.9rem;
  text-transform: uppercase;
  color: #f7f9fa;
}

.main-nav a:hover {
  opacity: 0.8;
}

/* Mobile nav toggle */

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
}

.nav-toggle span {
  width: 100%;
  height: 3px;
  border-radius: 2px;
  background: #f7f9fa;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Hero */

.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: left;
  color: #ffffff;
  padding-top: 72px; /* header height */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* Set your hero background image here */
  /* Example using your second photo */
  /* Replace images/hero-truck.jpg with your actual path */
  background-image: url("images/hero-truck.jpg");
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(6, 39, 52, 0.9),
    rgba(6, 39, 52, 0.6),
    rgba(6, 39, 52, 0.3)
  );
}

.hero-content {
  position: relative;
  max-width: 640px;
  padding: 3rem 0;
}

.hero h1 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: clamp(2.2rem, 3.1vw, 3.1rem);
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1rem;
  line-height: 1.6;
  max-width: 36rem;
  margin-bottom: 1.8rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.8rem;
  border-radius: 999px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: #0f7a80; /* teal */
  border-color: #0f7a80;
  color: #f7f9fa;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
  background: transparent;
  border-color: #f7f9fa;
  color: #f7f9fa;
}

.btn-secondary:hover {
  background: rgba(247, 249, 250, 0.12);
}

.btn-outline {
  background: transparent;
  border-color: #0f7a80;
  color: #0f7a80;
}

.btn-outline:hover {
  background: #0f7a80;
  color: #f7f9fa;
}

/* Sections */

.section {
  padding: 4.5rem 0;
}

.section.light {
  background: #f5f6f7;
}

.section.dark {
  background: #091a23;
  color: #e7ecf0;
}

.section-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.8rem;
  margin-bottom: 2rem;
  color: #091a23;
}

.section-title.light {
  color: #f7f9fa;
}

/* Card grid */

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.8rem;
}

.card {
  background: #ffffff;
  border-radius: 14px;
  padding: 1.6rem 1.4rem 1.8rem;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
}

.card h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.05rem;
  margin: 0.75rem 0 0.35rem;
}

.card p {
  font-size: 0.9rem;
  line-height: 1.6;
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0f7a80, #14a3aa);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 0.8rem;
}

/* Features grid */

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.8rem;
}

.feature h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

.feature p {
  font-size: 0.94rem;
  line-height: 1.7;
}

/* About preview */

.about-preview {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2.4rem;
  align-items: center;
}

.about-text p {
  font-size: 0.98rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.about-image img {
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

/* CTA */

.section.cta {
  background: linear-gradient(135deg, #0b5357, #0f7a80);
  color: #f7f9fa;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.8rem;
}

.cta-text h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.6rem;
  margin-bottom: 0.4rem;
}

/* Footer */

.site-footer {
  background: #050c10;
  color: #a8b5c0;
  padding: 1.6rem 0;
  font-size: 0.85rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem 1.6rem;
  justify-content: space-between;
}

.footer-location {
  opacity: 0.9;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-social a {
  color: #e0e6ed;
}

.footer-social a:hover {
  text-decoration: underline;
}

/* Responsive */

@media (max-width: 900px) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-preview {
    grid-template-columns: 1fr;
  }

  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  .header-inner {
    height: 64px;
  }

  .logo img {
    height: 38px;
  }

  .main-nav {
    position: absolute;
    top: 64px;
    right: 0;
    left: 0;
    background: #091a23;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease;
  }

  .main-nav.open {
    max-height: 220px;
  }

  .main-nav ul {
    flex-direction: column;
    padding: 0.6rem 0 0.8rem;
    gap: 0.2rem;
  }

  .main-nav a {
    display: block;
    padding: 0.6rem 1.5rem;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    text-align: left;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }
}

/* Page hero sections */

.page-hero {
  position: relative;
  padding-top: 96px;
  padding-bottom: 72px;
  color: #ffffff;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(6, 39, 52, 0.9),
    rgba(6, 39, 52, 0.6)
  );
}

.page-hero .container {
  position: relative;
}

.page-hero h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.9rem, 2.7vw, 2.6rem);
  margin-bottom: 0.5rem;
}

.page-hero p {
  max-width: 32rem;
  font-size: 0.98rem;
  line-height: 1.6;
}

/* Different background images per page hero */
.about-hero {
  background-image: url("images/truck-yard.jpg");
}
.team-hero {
  background-image: url("images/hero-truck.jpg");
}
.contact-hero {
  background-image: url("images/hero-truck.jpg");
}

/* Narrow container helper */
.container.narrow {
  max-width: 760px;
}

/* About page layout */
.about-split {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 2.4rem;
  align-items: center;
}

/* Bullet lists */

.bullet-list {
  padding-left: 1.4rem;
  margin-top: 0.8rem;
}

.bullet-list li {
  margin-bottom: 0.4rem;
}

.bullet-list.light li {
  color: #e7ecf0;
}

/* Contact layout */

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2.4rem;
  align-items: flex-start;
}

.form-embed {
  background: #ffffff;
  border-radius: 14px;
  padding: 1.6rem 1.4rem;
  box-shadow: 0 8px 18px rgba(0,0,0,0.06);
}

/* Responsive tweaks */

@media (max-width: 900px) {
  .about-split,
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

.about-image-block {
  margin-top: 2rem;
  text-align: center;
}

.about-image-block img {
  max-width: 100%;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.caption {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: #666;
}

.about-text .caption {
  margin-top: 0.5rem;
  text-align: center;
}

.card-image {
  margin: -1.6rem -1.4rem 0.9rem;
  border-radius: 14px 14px 0 0;
  overflow: hidden;
  max-height: 180px;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.footer-location {
  margin-top: 0.4rem;
  margin-bottom: 0.4rem;
  line-height: 1.5;
  font-size: 0.95rem;
}

.footer-copy {
  margin: 0;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.9rem;
}

.footer-line {
  display: flex;
  align-items: center;
  margin: 0;
}

.footer-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.4rem;
}

.footer-contact a {
  color: inherit;
  text-decoration: none;
}

.footer-contact a:hover {
  text-decoration: underline;
}

/* On small screens, stack footer columns nicely */
@media (max-width: 720px) {
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }
}

.footer-credit {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  opacity: 0.8;
}

.footer-credit a {
  color: inherit;
  text-decoration: none;
}

.footer-credit a:hover {
  text-decoration: underline;
}

.footer-credit {
  width: 100%;
  text-align: center;
  margin-top: 0.8rem;
  font-size: 0.85rem;
  opacity: 0.85;
}

.footer-credit a {
  color: inherit;
  text-decoration: none;
}

.footer-credit a:hover {
  text-decoration: underline;
}