:root {
  --primary-color: #112845;
  --secondary-color: #4d983e;
  --light-gray: #f4f4f4;
  --dark-gray: #333;
  --font-sans: "Helvetica Neue", Arial, sans-serif;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-sans);
  color: var(--dark-gray);
  line-height: 1.6;
}

/* Navigation */
/* Navbar with EFAM logo */
/* Base styles (desktop-first) */
nav {
  background-color: #0a1c2c;
  padding: 0.5rem 1rem;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-inner img.logo {
  height: 90px;
}

.nav-inner ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-inner ul li a {
  text-decoration: none;
  color: white;
  font-weight: 500;
}

/* Responsive for tablets & phones */
@media (max-width: 768px) {
  .nav-inner {
    flex-direction: column;
    align-items: center;
  }

  .nav-inner ul {
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
  }
}




/* Slider */
.slider {
  position: relative;
  overflow: hidden;
  height: 80vh;
  margin-top: 50px;
}
.slides {
  display: flex;
  transition: transform 0.5s ease-in-out;
  height: 100%;
}
.slide {
  min-width: 100%;
  height: 100%;
}
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.slider button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: white;
  padding: 1rem;
  cursor: pointer;
}
.slider .prev {
  left: 10px;
}
.slider .next {
  right: 10px;
}

/* Sections */
section {
  padding: 4rem 1rem;
  width: 75%;
  margin: 0 auto;
}

#services h2{
  color: var(--primary-color);
  margin-bottom: 1rem;
  text-align: center;
  font-size: 2.5rem;
}
#about p,
.mission-vision p {
  margin-bottom: 1rem;
}

/* CTA Build */
.full-width-cta {
  position: relative;
  background: url("assets/cta-bg.jpg") center/cover no-repeat;
  height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}
.full-width-cta::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
}
.full-width-cta .cta-overlay {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 0 1rem;
}
.full-width-cta h2 {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 1rem;
}

/* Mission & Vision */
#mission-vision {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  text-align: center;
}

#mission-vision .column {
  padding: 2rem;
  background: var(--primary-color); /* box background */
  border-radius: 8px;
}

#mission-vision .column h3 {
  color: var(--secondary-color); /* heading color */
  margin-bottom: 1rem;
  font-size: 2.5rem;
}

#mission-vision .column p {
  color: white; /* paragraph text */
  font-size: clamp(1.2rem, 2vw, 1.125rem);
  line-height: 1.9;
}

/* Services Scrolling Tracks */
#services .track {
  position: relative;
  overflow: hidden;
  margin: 2rem 0;
}
/* each track's card-container is twice as wide (5 cards duplicated) */
#services .track .card-container {
  display: flex;
  width: calc((250px + 2rem) * 10);
}
/* track scroll left by one set width */
#services .track .card-container {
  animation: scroll-left 30s linear infinite;
}
/* track reversed scroll right from -50% to 0 */
#services .track.reverse .card-container {
  animation: scroll-right 30s linear infinite;
  transform: translateX(-50%);
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
@keyframes scroll-right {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0);
  }
}

.service-card {
  flex: 0 0 300px;
  margin: 0 1rem;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}
.service-card:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}
.service-card img {
  width: 100%;
  height: 350px;
  object-fit: cover;
}
.service-card h3 {
  margin: 0.5rem;
  font-size: 1.7rem;
  color: var(--secondary-color);
}
.service-card p {
  margin: 0.5rem;
  font-size: 1.15rem;
}


footer {
  text-align: center;
  padding: 2rem 1rem;
  background: var(--light-gray);
}
/* Partners / Logos Section */
#partners {
  padding: 4rem 1rem;
}
.partner-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10rem;
  flex-wrap: wrap;
}
.partner {
  text-align: center;
}
.partner-logo {
  max-width: 300px;
  height: auto;
  display: block;
  margin-bottom: 1rem;
}
.partner h4 {
  color: var(--primary-color);
  font-size: 2rem;
  margin: 0;
}


footer {
  background: var(--primary-color);
  color: white;
  padding: 3rem 1rem;
}

.footer-content {
  max-width: 75%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;    /* stack children vertically */
  align-items: flex-start;   /* left-align everything */
  gap: 1.5rem;               /* space between blocks */
  text-align: left;          /* ensure all text lines up on the left */
}


.footer-contact {
  width: 100%;
}

.footer-contact h2 {
  color: var(--secondary-color);
  font-size: 2rem;
  margin-bottom: 1rem;
}

.footer-contact p {
  margin-bottom: 0.5rem;
  line-height: 1.5;
  font-size: 1rem;
}

.footer-copy {
  margin-top: 1rem;          /* a bit of breathing room */
  font-size: 0.9rem;
  opacity: 0.8;
}


/* ========== Responsive Overrides ========== */

@media (max-width: 1024px) {
  /* Shrink nav padding and font */
  nav ul {
    padding: 0.5rem 0;
  }
  nav a {
    font-size: 0.9rem;
  }

  /* Slightly shorter slider */
  .slider {
    height: 60vh;
  }
}

@media (max-width: 768px) {
  /* Nav: stack links */
  nav .nav-inner {
    flex-direction: row;
    align-items: center;
    padding: 0.5rem;
  }

  nav .logo {
    height: 40px;
    margin: 0.5rem 0;
  }

  nav ul {
    flex-direction: row;
    gap: 1rem;
    width: 100%;
    text-align: center;
  }

  nav li {
    width: 100%;
  }

  nav a {
    display: block;
    padding: 0.5rem 0;
    font-size: 0.95rem;
  }

  /* Slider height */
  .slider {
    height: 50vh;
  }

  /* BUSINESS PROFILE & LET’S BUILD: stack image + text */
  .business-profile > div,
  .build-together > div {
    /* override the inline flex: */
    display: flex !important;
    flex-direction: column !important;
    text-align: center;
  }
  .business-profile img,
  .build-together img {
    width: 100%;
    height: auto;
    margin-bottom: 1.5rem;
  }
  .business-profile h2,
  .build-together h2 {
    font-size: 2rem;
    line-height: 1.3;
  }
  .business-profile p,
  .build-together p {
    font-size: 1rem;
  }

  /* Mission & Vision: one column */
  #mission-vision {
    grid-template-columns: 1fr !important;
  }

  /* Services: disable infinite scroll, allow swipe */
  #services .track,
  #services .track.reverse {
    overflow-x: auto;
  }
  #services .track .card-container,
  #services .track.reverse .card-container {
    animation: none;
    width: auto;
  }
  .service-card {
    flex: 0 0 80%;
    margin: 0 0.5rem;
  }

  /* Partners: tighten gaps */
  .partner-container {
    gap: 2rem;
  }

  /* Footer: full width */
  .footer-content {
    max-width: 100%;
    padding: 0 1rem;
  }
}

@media (max-width: 650px){
nav .nav-inner {
    flex-direction: column;
    align-items: center;
    padding: 0.5rem;
  }

  nav .logo {
    height: 50px;
    margin: 0rem 0.5rem;
  }

    nav ul {
    flex-direction: row;
    gap: 0.5rem;
    width: 100%;
    text-align: center;
  }

}

@media (max-width: 480px) {
  nav .nav-inner {
    flex-direction: column;
    align-items: center;
    padding: 0.5rem;
  }

  nav .logo {
    height: 50px;
    margin: 0rem 0.5rem;
  }

  nav ul {
    flex-direction: row;
    gap: 0.5rem;
    width: 100%;
    text-align: center;
  }

  nav a {
    font-size: 0.85rem;
  }
  .business-profile h2,
  .build-together h2 {
    font-size: 1.5rem;
  }
  .business-profile p,
  .build-together p {
    font-size: 0.9rem;
  }
  #services h2 {
    font-size: 2rem;
  }
}



