/* ========== Hero Section ========== */

#list-hero {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: no-repeat center bottom / cover;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  color: var(--scs-warm-white-100);
  text-shadow: 0 4px 4px rgba(0, 0, 0, 0.42);
}

.text-overlay {
  font-size: clamp(1.5rem, 2vw + 1rem, 3rem);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.4;
}

/* ========== Form Styling ========== */

#listWithUs input:is([type="text"], [type="number"], [type="email"], [type="tel"]) {
  height: 3rem;
}

/* ========== Package Cards ========== */

.package-card {
  color: var(--scs-dark-blue-500);
  background-color: var(--scs-cool-grey-300);
  border-radius: 1rem;
  padding: 2rem;
  margin-bottom: 5rem;
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

/* ========== Trust Cards ========== */

.list-trust-card {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: start;
  text-align: center;
  border: 1px solid #e0e0e0;
  border-radius: 1rem;
  background-color: var(--scs-cool-grey-300);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.list-trust-card-icon img {
  max-height: 20%;
  max-width: 80px;
  height: auto;
  margin-bottom: 1rem;
}

.list-trust-card-title {
  font-weight: 600;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  font-family: "Cormorant", serif;
}

.list-trust-card-body {
  font-size: 1rem;
  color: var(--scs-dark-blue-500);
}

/* ========== Photo Grid ========== */

#list.photo-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 2fr;
  gap: clamp(0.5rem, 2vw, 2rem);
  max-width: 100%;
  margin: 0 auto;
  overflow-x: hidden;
}

#list.photo-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  border: none;
}

#list .left   { grid-column: 1; aspect-ratio: 1 / 1; }
#list .middle { grid-column: 2; aspect-ratio: 10 / 11; }
#list .right  { grid-column: 3; aspect-ratio: 1 / 1; }

/* ========== Responsive Grid Adjustments ========== */

@media (max-width: 768px) {
  #list.photo-grid {
    grid-template-columns: 1fr 1fr;
  }

  #list .left   { grid-column: 1 / -1; order: -2; }
  #list .middle { grid-column: 1;      order: -1; }
  #list .right  { grid-column: 2;      order: 0;  }
}

@media (max-width: 480px) {
  #list.photo-grid {
    grid-template-columns: 1fr;
  }

  #list .left,
  #list .middle,
  #list .right {
    grid-column: auto;
    grid-row: auto;
  }

  #list .left   { order: -2; }
  #list .middle { order: -1; }
  #list .right  { order: 0;  }
}

/* ========== Bottom Image (if used elsewhere) ========== */

.list-bottom-image {
  position: relative;
  background-image: url();
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.list-break-wrapper {
  min-height: 500px;
}

.bg-image {
  background-size: cover;
  background-position: center;
}

/* Optional: ensure a clean mobile layout */
@media (max-width: 767.98px) {
  .list-break-wrapper {
    padding: 0;
  }
}
