html {
    scroll-behavior: smooth;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  margin: 0;
}

/* GENERAL */
.section {
  padding: 4rem 2rem;
  max-width: 70rem;
  margin: auto;
}
h1, h2 {
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1rem;
}

/* HERO */
.hero {
  position: relative;
  height: 88vh;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  color: white;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.7) 0%,
    rgba(125, 125, 125, 0.4) 30%,
    transparent 100%
  );
  z-index: 3;
}

/* SLIDES */
.slides {
  position: absolute;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 0;
}

.slide.active {
  opacity: 1;
}

/* TEXT */
.hero-text {
  position: relative;
  z-index: 4;
  margin-bottom: 3rem;
  text-align: center;
  max-width: 50rem;
  padding: 0 1rem;
}

.hero-text h1 {
  font-size: 2.2rem;
}

.title {
    font-size: 2rem;
    color: #625755;
    text-align: center;
}

/* IMAGE BLOCK */
.image-block img {
  width: 100%;
  height: auto;
  margin: 2rem 0;
}

/* WHY THE AIR */
.whyTheAirCaption {
    font-size: 1.5rem;
    text-align: center;
    color: #625755;
    margin-top: 1rem;
}

.whyTheAirIcons {
  width: clamp(90px, 20vw, 160px);
  height: auto;
  display: block;
  margin: 0 auto;
}

/* CTA */
.cta {
  text-align: center;
  padding: 6rem 2rem;
  color: white;

  background-image: url("images/vessels_delivery/windfarm.png"); 
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  background-attachment: fixed; /* 🔥 THIS creates the effect */
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.cta-quote {
    font-style: italic;
    font-size: 2rem;
}

.cta-quoteAuthor {
    font-style: italic;
    font-size: 1rem;
}

.cta-text {
    font-size: 1.5rem;
    margin-bottom: 0.3rem;
    font-weight: bold;
}

.cta-text:last-of-type {
    margin-bottom: 1.5rem;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(125, 125, 125, 0.5); /* adjust darkness */
  z-index: 0;
}

.cta * {
  position: relative;
  z-index: 1;
}

.cta-btn {
  display: inline-block;            /* IMPORTANT for <a> */
  padding: 1rem 2rem;
  border: 2px solid #fa9946;
  background: #fa9946;
  color: white;
  cursor: pointer;
  font-size: 1rem;
  border-radius: 0.3rem;
  transition: all 0.3s ease;
  text-decoration: none;           /* remove underline */
  align-self: center;
}

.cta-btn:hover {
  background: white;
  color: #fa9946;
  text-decoration: none;           /* prevent underline on hover */
}

.row > div {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* WHAT WE DO SECTION */
.split-section {
  padding: 0;
  width: 100%;
}

.split-container {
  display: flex;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  align-items: stretch;
}

/* LEFT TEXT */
.split-text {
  padding: 4rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  background: linear-gradient(
  to bottom right,
  rgba(250, 148, 102, 0.11),
  white
  );
}

.split-text-inner {
  max-width: 520px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.subtitle {
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.split-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.separator {
  width: 60px;
  height: 3px;
  background: #fa9946;
  margin: 1rem 0;
}

.split-description {
  font-size: 1rem;
  margin-bottom: 2rem;
  line-height: 1.6;
  color: #625755;
}

/* BUTTON */
.split-btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background: white;
  color: #fa9946;
  text-decoration: none;
  border-radius: 4px;
  border: 2px solid #fa9946;
  transition: all 0.3s ease;
}

.split-btn:hover {
  background: #fa9946;
  color: white;
  text-decoration: none;
}

.split-text,
.split-image {
  flex: 1 1 0;
  width: 50%;
}

/* RIGHT IMAGE */
.split-image {
  width: 50%;
  height: 500px;
}

.split-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* TABLET */
@media (max-width: 1024px) and (min-width: 768px) {

  .split-container {
    display: flex;
    flex-direction: row;
    width: 100%;
    margin: 0;
    gap: 0;
    align-items: stretch;
  }

  /* FORCE BOTH SIDES SAME SIZE */
  .split-text,
  .split-image {
    flex: 1;
    width: 50%;
  }

  /* REMOVE LEFT OVER "desktop padding bias" */
  .split-text {
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;   /* 🔥 KEY FIX */
  }

  .split-text-inner {
    max-width: 100%;
    margin: 0 auto;
  }

  .separator {
    margin: 1rem auto;
  }

  .split-section {
  margin: 0;
  padding: 0;
}

.split-description
{
    margin-bottom: 1rem;
}

  /* IMAGE FIX */
  .split-image {
    height: 380px;
  }

  .split-image img {
    height: 100%;
    width: 100%;
    object-fit: cover;
  }

  .cta {
  margin-top: 0;
}
}

/* MOBILE */
@media (max-width: 767px) {
    .title {
    text-align: center;
    }


  .two-column {
    flex-direction: column;
  }

  .hero {
    height: 60vh;
    align-items: flex-end;
  }

  .hero-text {
    margin-bottom: 2rem;
  }

  .hero-text h1 {
    font-size: 1.3rem;
  }

  .whyTheAirIcons {
    width: 30%;
    height: auto;
    display: block;
    margin: 0 auto;
    max-height: 10rem;
}

.whyTheAirCaption {
    font-size: 1.3rem;
    text-align: center;
    color: #625755;
    margin-top: 1rem;
}

/* WHAT WE DO SECTION */
  .split-container {
    flex-direction: column;
    width: 100%;
    margin-left: 0;
  }

  .split-text,
  .split-image {
    width: 100%;
    flex: none;
  }

  .split-text {
    padding: 2rem;
    text-align: center;
    order: 2;
    background: white;
  }

  .split-image {
    height: auto;
    order: 1;
  }

  .separator {
    margin: 1rem auto;
  }

  .cta {
    background-attachment: scroll;
  }

  .cta-text {
    font-size: 1.2rem;
  }

  .cta-quote {
    font-size: 1.5rem;
}

.cta-quoteAuthor {
    font-style: italic;
    font-size: 0.8rem;
}
}

