/* Shared UI components — Charity's Landing Retreat Center */

/* Site header */

.site-header {
  position: relative;
  z-index: 100;
}

.site-header__top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: flex-end;
  padding-block: var(--header-top-padding-block);
}

.site-header__logo {
  grid-column: 2;
  justify-self: center;
  line-height: 0;
}

.site-header__logo img {
  max-width: var(--header-logo-max-width);
  width: var(--header-logo-width);
  height: auto;
}

.site-header__social {
  display: flex;
  align-items: center;
  gap: var(--header-social-gap);
}

.site-header__social--desktop {
  grid-column: 3;
  justify-self: end;
}

.site-header__social--mobile {
  display: none;
}

.site-header__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--header-social-size);
  height: var(--header-social-size);
  border-radius: 50%;
  background-color: var(--color-social-icon-bg);
  overflow: hidden;
  transition: opacity 0.2s ease;
}

.site-header__social-link:hover {
  opacity: 0.85;
  color: inherit;
}

.site-header__social-link img {
  width: 50%;
  height: 50%;
  object-fit: contain;
}

.site-header__menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.site-header__menu-toggle-bar {
  display: block;
  width: 1.5rem;
  height: 2px;
  background-color: var(--color-primary);
}

.site-header__nav {
  position: relative;
  margin-top: var(--header-nav-margin-top);
  background-color: var(--color-header-background);
  box-shadow: var(--header-nav-shadow);
}

.site-header__nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: var(--header-nav-gap);
  padding-inline: var(--container-md-padding);
}

.site-header__nav-list > li {
  display: flex;
  align-items: stretch;
  gap: var(--header-nav-gap);
}

.site-header__nav-list > li + li::before {
  content: "";
  display: block;
  width: var(--header-nav-separator-width);
  align-self: stretch;
  background-color: var(--header-nav-separator-color);
  flex-shrink: 0;
}

.site-header__nav-link {
  display: flex;
  align-items: center;
  padding-block: var(--header-nav-padding-block);
  font-family: var(--font-primary);
  font-size: var(--header-nav-font-size);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: var(--header-nav-letter-spacing);
  text-transform: uppercase;
  color: var(--color-link-secondary);
  transition: color 0.2s ease;
}

.site-header__nav-link:hover,
.site-header__nav-link.is-active {
  color: var(--color-accent);
}

.site-header__menu-close {
  display: none;
}

.site-header__menu-backdrop {
  display: none;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--btn-gap);
  padding-block: var(--btn-padding-block);
  padding-inline: var(--btn-padding-inline);
  border: 0;
  border-radius: 0;
  font-family: var(--font-primary);
  font-size: var(--btn-font-size);
  font-weight: 400;
  line-height: 1;
  letter-spacing: var(--btn-letter-spacing);
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.btn__arrow {
  width: var(--btn-arrow-size);
  height: var(--btn-arrow-size);
  flex-shrink: 0;
  object-fit: contain;
}

.btn-primary {
  position: relative;
  background-color: var(--btn-primary-bg);
  color: var(--btn-primary-color);
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: var(--btn-inset-offset);
  border: var(--btn-inset-border-width) solid var(--btn-inset-border-color);
  pointer-events: none;
}

.btn-primary:hover {
  background-color: var(--btn-primary-bg-hover);
  color: var(--btn-primary-color);
}
.btn-primary--lg {
  padding-inline: clamp(1.5rem, 1.0752rem + 1.8123vw, 3.25rem);
}
.btn-primary--md {
  padding-inline: clamp(1.5rem, 1.3331rem + 0.712vw, 2.1875rem);
}

/* Title separator — reusable under section / footer headings */

.title-separator {
  display: block;
  width: var(--title-separator-width-sm);
  max-width: 100%;
  margin-block: var(--title-separator-margin-block);
  line-height: 0;
}

.title-separator img {
  width: 100%;
  height: auto;
}

.title-separator--lg {
  width: var(--title-separator-width-lg);
}

.title-separator--center {
  margin-inline: auto;
}

/* Photo frame — deckled border overlay for section photos */

.photo-frame {
  position: relative;
  margin: 0;
  line-height: 0;
  padding-block: 30px;
  padding-inline: 20px;
}

.photo-frame__photo {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.photo-frame__border {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
  filter: var(--photo-frame-border-filter);
}

/* Site footer */

.site-footer {
  position: relative;
  margin-top: 4rem;
  z-index: 5;
}

.site-footer__panel {
  position: relative;
  overflow: visible;
}

.site-footer__bg {
  position: absolute;
  inset-inline: 0;
  top: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  line-height: 0;
  pointer-events: none;
  padding-inline: 10px;
}

.site-footer__bg-img {
  width: 100%;
  height: 78%;
  object-fit: cover;
  object-position: center top;
  filter: var(--footer-bg-drop-shadow);
}

.site-footer__bg-img--mobile {
  display: none;
}

.site-footer__trees {
  position: absolute;
  inset-inline: 0;
  bottom: 10px;
  z-index: 1;
  line-height: 0;
  pointer-events: none;
  transform: scale(1.01);
}

.site-footer__trees img {
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center bottom;
}

.site-footer__content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1.15fr;
  align-items: stretch;
  gap: var(--footer-content-gap);
  padding-top: var(--footer-content-padding-top);
  padding-bottom: var(--footer-content-padding-bottom);
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.site-footer__logo {
  line-height: 0;
}

.site-footer__logo img {
  max-width: var(--footer-logo-max-width);
  width: 100%;
  height: auto;
}

.site-footer__social {
  display: flex;
  align-items: center;
  gap: var(--footer-social-gap);
}

.site-footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--footer-social-size);
  height: var(--footer-social-size);
  border-radius: 50%;
  background-color: var(--color-social-icon-bg);
  overflow: hidden;
  transition: opacity 0.2s ease;
}

.site-footer__social-link:hover {
  opacity: 0.85;
  color: inherit;
}

.site-footer__social-link img {
  width: 50%;
  height: 50%;
  object-fit: contain;
}

.site-footer__col {
  position: relative;
  height: 100%;
  padding-inline-start: var(--footer-content-gap);
}

.site-footer__col::before {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 1px;
  background-color: var(--footer-col-divider-color);
}

/* No divider between logo column and Quick Links */
.site-footer__brand + .site-footer__col {
  padding-inline-start: 0;
}

.site-footer__brand + .site-footer__col::before {
  display: none;
}

.site-footer__heading {
  margin: 0;
  font-family: var(--font-primary);
  font-size: var(--footer-heading-font-size);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: var(--footer-heading-letter-spacing);
  text-transform: uppercase;
  color: var(--color-heading);
  padding-inline-start: 20px;
}

.site-footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--footer-link-gap);
  padding-inline-start: 1.25em;
}

.site-footer__links a {
  font-size: var(--footer-link-font-size);
  line-height: 1.4;
  color: var(--color-text-body);
  font-weight: 400;
  transition: color 0.2s ease;
}

.site-footer__links a:hover {
  color: var(--color-accent);
}

.site-footer__cta {
  margin-top: var(--footer-cta-margin-top);
}

.site-footer__contact {
  display: flex;
  flex-direction: column;
  gap: var(--footer-contact-gap);
}

.site-footer__contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: var(--footer-link-font-size);
  line-height: 1.45;
  color: var(--color-text-body);
}

.site-footer__contact img {
  width: var(--footer-contact-icon-size);
  height: var(--footer-contact-icon-size);
  flex-shrink: 0;
  margin-top: 0.15em;
  object-fit: contain;
}

.site-footer__contact a {
  color: var(--color-text-body);
  transition: color 0.2s ease;
}

.site-footer__contact a:hover {
  color: var(--color-accent);
}

.site-footer__copyright {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-block: var(--footer-copyright-padding-block);
  padding-inline: var(--container-lg-padding);
  text-align: center;
}

.site-footer__copyright-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
  filter: var(--footer-copyright-drop-shadow);
}

.site-footer__copyright p {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: var(--footer-copyright-font-size);
  line-height: 1.4;
  color: var(--footer-copyright-color);
}

.site-footer__copyright a {
  color: var(--footer-copyright-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer__copyright a:hover {
  color: var(--color-link);
}
