/*
 * Why Travel With Us (page-why-travel-with-us.php).
 * Layout and spacing follow the client's HTML mockup; fonts and colours
 * follow the brief (Panton Rust ExtraBold headings, Baloo Paaji 2 text).
 */

.an-why {
  --an-why-red: #d71921;
  --an-why-blue: #394d80;
  --an-why-beige: #f1e5d8;
  --an-why-beige-light: #eee7df;
  --an-why-ink: #111;
  --an-why-text: #444;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  background: #fff;
  color: var(--an-why-ink);
  font-family: "Baloo Paaji 2", sans-serif;
  line-height: 1.55;
}
.an-why *,
.an-why *::before,
.an-why *::after {
  box-sizing: border-box;
}

/* Headings: override app.css' global h2/h3 sizes, colours and animations. */
.an-why h1,
.an-why h2,
.an-why h3 {
  display: block;
  position: static;
  font-family: PantonRustExtraBoldBase, "Baloo Paaji 2", sans-serif !important;
  font-weight: 400;
  color: var(--an-why-ink);
  letter-spacing: 0;
  opacity: 1;
  visibility: visible;
  transform: none;
  overflow-wrap: break-word;
}
.an-why p {
  margin: 0 0 1em;
}
.an-why-text > :last-child {
  margin-bottom: 0;
}

/* 1. Banner */
.an-why-hero {
  position: relative;
  background-color: var(--an-why-blue);
  background-size: cover;
  background-position: center;
  text-align: center;
  padding: 36px 20px 39px;
}
.an-why-hero.has-image {
  padding-top: 90px;
  padding-bottom: 90px;
}
.an-why-hero.has-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}
.an-why-hero__inner {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
}
.an-why .an-why-hero__eyebrow {
  margin: 0;
  color: #fff;
  font-size: 20px;
  line-height: 1.3 !important;
  text-transform: uppercase;
}
.an-why .an-why-hero__title {
  margin: 5px 0 0;
  color: #fff;
  font-size: 25px;
  line-height: 1.25;
}

/* Page body */
.an-why-wrap {
  max-width: 1150px;
  margin: 0 auto;
  padding: 65px 24px 90px;
}

/* 2. Introduction */
.an-why-intro {
  max-width: 830px;
  margin: 0 auto 70px;
  text-align: center;
}
.an-why .an-why-intro h2 {
  font-size: 32px;
  line-height: 1.25 !important;
  margin: 0 0 20px;
}
.an-why-intro .an-why-text {
  font-size: 18px;
  color: var(--an-why-text);
}

/* 3–6. Image + text sections */
.an-why-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 55px;
  align-items: center;
  margin: 0 0 85px;
}
.an-why-feature.is-reverse .an-why-visual {
  order: 2;
}
.an-why .an-why-feature h2 {
  font-size: 27px;
  line-height: 1.2 !important;
  text-transform: uppercase;
  margin: 0 0 20px;
}
.an-why-feature .an-why-text {
  font-size: 17px;
  color: var(--an-why-text);
}
.an-why-redline {
  width: 54px;
  height: 4px;
  background: var(--an-why-red);
  margin: 0 0 22px;
}
.an-why-visual {
  background: var(--an-why-beige-light);
  min-height: 310px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px;
  color: #555;
}
.an-why-visual.has-image {
  padding: 0;
  overflow: hidden;
}
.an-why-visual__img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 310px;
  max-height: 460px;
  object-fit: cover;
}
.an-why-visual__icon {
  font-size: 64px;
  line-height: 1.2;
}
.an-why-visual__label {
  margin-top: 15px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* 7. Quote */
.an-why-quote {
  max-width: 800px;
  margin: 40px auto 75px;
  padding: 10px 0 10px 25px;
  border-left: 4px solid var(--an-why-red);
  color: var(--an-why-ink);
  font-family: PantonRustExtraBoldBase, "Baloo Paaji 2", sans-serif;
  font-size: 22px;
  line-height: 1.4;
}

/* 8. What matters to us */
.an-why-values {
  background: var(--an-why-beige);
  padding: 65px 24px;
  margin: 20px 0 70px;
}
.an-why .an-why-values h2 {
  text-align: center;
  font-size: 29px;
  line-height: 1.2 !important;
  text-transform: uppercase;
  margin: 0 0 38px;
}
.an-why-values__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}
.an-why-values__grid article {
  background: #fff;
  padding: 28px;
}
.an-why .an-why-values__grid h3 {
  font-size: 19px;
  line-height: 1.3 !important;
  color: var(--an-why-blue);
  text-transform: uppercase;
  margin: 0 0 12px;
}
.an-why .an-why-values__grid p {
  color: #555;
  margin: 0;
}

/* 9. Where we take you */
.an-why-dest {
  max-width: 1050px;
  margin: 0 auto 65px;
  text-align: center;
}
.an-why .an-why-dest h2 {
  font-size: 29px;
  line-height: 1.2 !important;
  text-transform: uppercase;
  margin: 0 0 15px;
}
.an-why-dest p {
  color: var(--an-why-text);
}
.an-why-dest__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 25px;
}
.an-why .an-why-dest__links a {
  display: inline-block;
  padding: 12px 17px;
  border: 1px solid #ddd;
  color: var(--an-why-ink);
  font-weight: 800;
  line-height: 1.3;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}
.an-why .an-why-dest__links a:hover,
.an-why .an-why-dest__links a:focus-visible {
  border-color: var(--an-why-red);
  color: var(--an-why-red);
}
.an-why .an-why-dest__note {
  font-size: 13px;
  color: #666;
  margin: 12px 0 0;
}

/* Editor content */
.an-why-content {
  max-width: 900px;
  margin: 0 auto 55px;
}

/* 10. Contact */
.an-why-cta {
  background: var(--an-why-beige);
  text-align: center;
  padding: 50px 25px;
  margin: 55px auto 0;
}
.an-why .an-why-cta h2 {
  font-size: 27px;
  line-height: 1.2 !important;
  text-transform: uppercase;
  margin: 0 0 10px;
}
.an-why-cta p {
  max-width: 650px;
  margin: 0 auto 25px;
}
.an-why .an-why-cta__btn {
  display: inline-block;
  background: var(--an-why-red);
  color: #fff;
  padding: 13px 26px;
  font-weight: 800;
  line-height: 1.3;
  text-decoration: none;
  transition: background-color 0.2s ease;
}
.an-why .an-why-cta__btn:hover,
.an-why .an-why-cta__btn:focus-visible {
  background: #b5141b;
  color: #fff;
}

/* Mobile */
@media (max-width: 750px) {
  .an-why-feature {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    margin-bottom: 60px;
  }
  .an-why-feature.is-reverse .an-why-visual {
    order: 0;
  }
  .an-why-values__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .an-why-visual,
  .an-why-visual__img {
    min-height: 230px;
  }
  .an-why .an-why-intro h2 {
    font-size: 27px;
  }
}
@media (max-width: 500px) {
  .an-why-wrap {
    padding: 40px 16px;
  }
  .an-why-hero {
    padding: 32px 16px;
  }
  .an-why-hero.has-image {
    padding-top: 60px;
    padding-bottom: 60px;
  }
  .an-why-values {
    padding: 45px 16px;
  }
  .an-why-quote {
    font-size: 19px;
    padding-left: 18px;
  }
  .an-why .an-why-feature h2,
  .an-why .an-why-cta h2 {
    font-size: 23px;
  }
  .an-why .an-why-values h2,
  .an-why .an-why-dest h2 {
    font-size: 25px;
  }
  .an-why .an-why-dest__links a {
    padding: 10px 14px;
  }
}
