/* Global foundation styles — Charity's Landing Retreat Center */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  position: relative;
  margin: 0;
  padding-top: var(--body-padding-top);
  padding-bottom: var(--body-padding-bottom);
  padding-inline: var(--body-padding-inline);
  font-family: var(--font-primary);
  font-weight: var(--body-font-weight);
  line-height: var(--body-line-height);
  letter-spacing: var(--body-letter-spacing);
  color: var(--color-text-body);
  background-color: var(--color-body-fallback);
  background-image: url("../images/backgrounds/body-bg.webp");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-link);
  text-decoration: none;
}

a:hover {
  color: var(--color-link-hover);
}

h1 {
  font-size: var(--h1-size);
}

h2 {
  font-size: var(--h2-size);
}

h3 {
  font-size: var(--h3-size);
}

h4 {
  font-size: var(--h4-size);
}

h5 {
  font-size: var(--h5-size);
}

h6 {
  font-size: var(--h6-size);
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-main {
  position: relative;
  z-index: auto;
  width: 100%;
  max-width: var(--main-max-width);
  margin-inline: auto;
}

/* Decorative leaves — full viewport width, behind .site-main */

.site-leaves {
  position: absolute;
  top: 0;
  bottom: 0;
  /* left: calc(50% - 50vw); */
  left: 0;
  z-index: auto;
  /* width: 100vw; */
  width: 100%;
  pointer-events: none;
  overflow: hidden;
}

.site-leaves__item {
  position: absolute;
  height: auto;
  max-width: none;
}

.site-leaves__item--top-left {
  /* top: 20%; */
  top: 590px;
  left: -180px;
  /* width: var(--site-leaves-width-top); */
  width: 35%;
  /* transform: translateX(calc(-1 * var(--site-leaves-edge-shift))); */
  z-index: 2;
}

.site-leaves__item--top-right {
  /* top: 27%; */
  top: 720px;
  right: -200px;
  /* width: var(--site-leaves-width-top); */
  width: 35%;
  /* transform: translateX(var(--site-leaves-edge-shift)); */
  z-index: 3;
}

.site-leaves__item--middle-left {
  /* top: 46.6%; */
  top: 41.6%;
  /* bottom: 36%; */
  left: 60px;
  /* width: var(--site-leaves-width-middle); */
  width: 25%;
  /* transform: translateX(calc(-1 * var(--site-leaves-edge-shift))); */
  opacity: 0.35;
}

.site-leaves__item--middle-right {
  /* top: 50.1%; */
  top: 45.1%;
  /* bottom: 32.5%; */
  right: -20px;
  /* width: var(--site-leaves-width-middle); */
  width: 25%;
  /* transform: translateX(var(--site-leaves-edge-shift)); */
  opacity: 0.35;
}

.site-leaves__item--bottom-left {
  /* top: 68%; */
  top: 65%;
  /* bottom: 12%; */
  left: -90px;
  /* width: var(--site-leaves-width-bottom); */
  width: 38%;
  /* transform: translateX(calc(-1 * var(--site-leaves-edge-shift))); */
  z-index: 3;
}

/* Containers */

.container-sm,
.container-md,
.container-lg,
.container-xl {
  width: 100%;
  margin-inline: auto;
}

.container-sm {
  padding-inline: var(--container-sm-padding);
}

.container-md {
  padding-inline: var(--container-md-padding);
}

.container-lg {
  padding-inline: var(--container-lg-padding);
}

.container-xl {
  padding-inline: var(--container-xl-padding);
}

.container-xxl {
  padding-inline: var(--container-xxl-padding);
}

/* Homepage hero */

.hero {
  position: relative;
  z-index: 1;
  min-height: var(--hero-min-height);
  overflow: visible;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  line-height: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: var(--hero-media-drop-shadow);
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: var(--hero-min-height);
  padding-block: 3rem;
}

.hero__content {
  position: relative;
  width: 100%;
  max-width: var(--hero-content-max-width);
}

.hero__content-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
  filter: var(--hero-content-drop-shadow);
}

.hero__content-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* padding: var(--hero-content-padding); */
  padding-block: var(--hero-content-padding-block);
  padding-inline: var(--hero-content-padding-inline);
}

.hero__title {
  margin: 0;
  font-family: var(--font-primary);
  font-size: var(--h1-size);
  font-weight: 400;
  font-style: italic;
  line-height: 1.15;
  color: var(--color-heading);
  text-align: center;
}

.hero__content-body .title-separator {
  margin-block: 0.5rem 0.5rem;
}

.hero__text {
  margin: 0 0 0.75rem;
  font-size: var(--paragraph-font-size);
  line-height: var(--paragraph-line-height);
  color: var(--color-text-body);
  text-align: center;
}

.hero__note {
  margin: 0;
  font-size: var(--hero-note-font-size);
  font-style: italic;
  line-height: 1.4;
  color: var(--color-text-body);
  text-align: center;
}

.hero__cta {
  margin-top: var(--hero-cta-margin-top);
}

.hero__bottom-bar {
  position: absolute;
  inset-inline: 0;
  bottom: var(--hero-bottom-bar-offset);
  z-index: 3;
  line-height: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero__bottom-bar img {
  width: 100%;
  height: auto;
  transform: scale(1.05);
}

/* Feature cards — Mission & Vision / Upcoming Retreats */

.feature-cards {
  position: relative;
  z-index: 2;
  padding-block: var(--feature-cards-padding-block);
}

.feature-cards__inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--feature-cards-gap);
  align-items: stretch;
}

.feature-card {
  position: relative;
  display: flex;
  flex-direction: column;
}

.feature-card__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
  /* filter: var(--feature-card-drop-shadow); */
}
.feature-card:has(.card-1) .feature-card__bg {
  filter: drop-shadow(0 10px 8px rgba(0, 0, 0, 0.6));
}
.feature-card:has(.card-2) .feature-card__bg {
  filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.3));
}

.feature-card__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  padding: var(--feature-card-padding);
  text-align: center;
}

.feature-card__title {
  margin: 0;
  font-family: var(--font-primary);
  font-size: var(--feature-card-title-size);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--color-heading);
}

.feature-card__body .title-separator {
  margin-block: 0.65rem 1rem;
  margin-top: -5px;
}

.feature-card__media {
  width: 100%;
  margin-bottom: 4rem;
  line-height: 0;
  /* overflow: hidden; */
  max-width: 480px;
  position: relative;
}
.feature-card__media.card-1::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 1;
  background-image: url("../images/decorative/card-pattern-bottom-right.png");
  background-size: contain;
  background-position: bottom;
  background-repeat: no-repeat;
  bottom: -25px;
  right: -60px;
}

.feature-card__media img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--feature-card-media-radius);
  position: relative;
  z-index: 2;
}

.feature-card__text {
  margin: 0 0 1.25rem;
  max-width: var(--feature-card-text-max-width);
  font-size: var(--paragraph-font-size);
  line-height: var(--paragraph-line-height);
  color: var(--color-text-body);
}

.feature-card__cta {
  margin-top: auto;
}

/* Accommodations */

.accommodations {
  position: relative;
  z-index: 2;
  /* padding-block: var(--accommodations-padding-block); */
}

.accommodations__panel {
  position: relative;
  max-width: var(--main-max-width);
  margin-inline: auto;
  box-shadow: var(--accommodations-box-shadow);
}

.accommodations__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
}

.accommodations__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-block: var(--accommodations-panel-padding);
  text-align: center;
}

.accommodations__title {
  margin: 0;
  font-family: var(--font-primary);
  font-size: var(--accommodations-title-size);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--color-heading);
}

.accommodations__inner .title-separator {
  margin-block: 0.65rem 1rem;
  margin-top: -5px;
}

.accommodations__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--accommodations-grid-gap);
  width: 100%;
}

.accommodations__item {
  margin: 0;
  line-height: 0;
  /* border: var(--accommodations-image-border); */
  overflow: hidden;
}

.accommodations__item img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.accommodations__cta {
  margin-top: var(--accommodations-cta-margin-top);
}

/* About intro — About Charity's Landing / Legacy */

.about-intro {
  position: relative;
  z-index: 2;
  padding-block: var(--about-intro-padding-block);
  padding-top: 20px;
}

.about-intro__inner {
  max-width: var(--main-max-width);
  margin-inline: auto;
}

.about-intro__header {
  margin-bottom: var(--about-intro-header-margin-bottom);
  text-align: center;
}

.about-intro__title {
  margin: 0;
  font-family: var(--font-primary);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.02em;
  font-style: italic;
  color: var(--color-heading);
}

.about-intro__header .title-separator {
  margin-block: 0.65rem 0;
}

.about-intro__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: var(--about-intro-layout-gap);
}

.about-intro__media {
  width: 100%;
  max-width: var(--about-intro-media-max-width);
  justify-self: center;
  transform: rotate(-5deg);
}

.about-intro__content {
  max-width: 34rem;
}

.about-intro__subtitle {
  margin: 0 0 1rem;
  font-family: var(--font-primary);
  font-size: var(--about-intro-subtitle-size);
  font-weight: 400;
  font-style: italic;
  line-height: 1.3;
  color: var(--color-heading);
}

.about-intro__content p {
  margin: 0 0 var(--paragraph-spacing);
  font-size: var(--paragraph-font-size);
  line-height: var(--paragraph-line-height);
  color: var(--color-text-body);
}

.about-intro__content p:last-child {
  margin-bottom: 0;
}

/* About family — Meet the Family */

.about-family {
  position: relative;
  z-index: 2;
  /* padding-block: var(--about-family-padding-block); */
}

.about-family__panel {
  position: relative;
  max-width: var(--main-max-width);
  margin-inline: auto;
}

.about-family__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
}

.about-family__inner {
  position: relative;
  z-index: 1;
  padding-block: var(--about-family-panel-padding);
  padding-bottom: 10rem;
}

.about-family__header {
  margin-bottom: var(--about-family-header-margin-bottom);
  text-align: center;
}

.about-family__title {
  margin: 0;
  font-family: var(--font-primary);
  font-weight: 400;
  font-style: italic;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--color-heading);
}

.about-family__header .title-separator {
  margin-block: 0;
}

.about-family__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: var(--about-family-layout-gap);
  align-items: center;
}

.about-family__media {
  width: 100%;
  max-width: var(--about-family-media-max-width);
  justify-self: center;
}

.about-family__content {
  max-width: 34rem;
}

.about-family__content p {
  margin: 0 0 var(--paragraph-spacing);
  font-size: var(--paragraph-font-size);
  line-height: var(--paragraph-line-height);
  color: var(--color-text-body);
}

.about-family__content p:last-child {
  margin-bottom: 0;
}

/* Spiritual Retreats — title + 3-card grid */

.retreats {
  position: relative;
  z-index: 2;
  padding-block: var(--retreats-padding-block);
  padding-top: 20px;
  padding-bottom: 0;
}

.retreats__inner {
  max-width: var(--main-max-width);
  margin-inline: auto;
}

.retreats__header {
  margin-bottom: var(--retreats-header-margin-bottom);
  text-align: center;
}

.retreats__title {
  margin: 0;
  font-family: var(--font-primary);
  font-weight: 400;
  font-style: italic;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--color-heading);
}
.retreats__title br {
  display: none;
}
.retreats__header .title-separator {
  margin-block: 0.65rem 0;
}

.retreats__panel {
  position: relative;
}

.retreats__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
  /* filter: var(--retreats-panel-drop-shadow); */
}

.retreats__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  /* gap: var(--retreats-grid-gap); */
  /* padding: var(--retreats-panel-padding); */
  padding: 6rem;
  align-items: stretch;
}

.retreat-card {
  position: relative;
  display: flex;
  flex-direction: column;
}

.retreat-card__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
  filter: var(--retreat-card-drop-shadow);
}

.retreat-card__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  /* padding: var(--retreat-card-padding); */
  padding-inline: 1.75rem;
  padding-block: 3rem;
  text-align: center;
}

.retreat-card__media {
  width: 100%;
  margin-bottom: 0.5rem;
  line-height: 0;
  overflow: hidden;
}

.retreat-card__media img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  max-width: 300px;
  margin-inline: auto;
}

.retreat-card__title {
  margin: 0 0 0.5rem;
  font-family: var(--font-primary);
  font-size: var(--retreat-card-title-size);
  font-weight: 400;
  line-height: 1.25;
  font-style: italic;
  color: var(--color-heading);
}

.retreat-card__date {
  position: relative;
  width: 100%;
  margin-bottom: 0.75rem;
  line-height: 0;
}

.retreat-card__date-bg {
  width: 100%;
  display: block;
  position: absolute;
  height: 100%;
  object-fit: fill;
  object-position: center;
  top: 0;
  left: 0;
}

.retreat-card__date-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding-inline: 0.75rem;
  font-size: var(--retreat-card-meta-font-size);
  line-height: 1.3;
  color: var(--color-text-body);
  padding-block: 1.25rem;
}

.retreat-card__date-inner img {
  width: var(--retreat-card-icon-size);
  height: var(--retreat-card-icon-size);
  flex-shrink: 0;
  object-fit: contain;
}

.retreat-card__date-inner time {
  line-height: 1.3;
}

.retreat-card__location {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0 0 1rem;
  font-size: var(--retreat-card-meta-font-size);
  line-height: 1.35;
  color: var(--color-text-body);
}

.retreat-card__location img {
  width: var(--retreat-card-icon-size);
  height: auto;
  flex-shrink: 0;
  object-fit: contain;
}

.retreat-card__cta {
  margin-top: auto;
}
