/* =========================================================
   Base
========================================================= */

:root {
  --ff-didot: Didot, "Bodoni MT", "Noto Serif Display", "URW Palladio L", P052, Sylfaen, serif;
  --content-max-width: 1280px;
  --header-height-desktop: 4.5rem;
  --color-white: #feffff;
  --color-onyx: #111111;
}

html {
    font-size: 16px;
}

body {
  line-height: 1.5;
  font-family: var(--ff-didot);
  font-weight: 400;
  background: #555 url(../img/bg.jpg) repeat 0 0;
  background-size: 300px 300px;
}

/* =========================================================
   Header + Navigation
========================================================= */

.header:not(body.page-landing .header) {
  height: var(--header-height-desktop);
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;

  display: flex;
  align-items: center;
  justify-content: center;

  text-align: center;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
}

.header__container:not(body.page-landing .header__container) {
  width: 100%;
  max-width: var(--content-max-width);
  margin: 0 auto;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding-inline: 2rem;
}

.header h1 {
  font-size: 1.5rem;
  text-align: center;
}

.header h1 a {
  text-decoration: none;
  color: var(--color-white);
}

.navigation {
}

.navigation ul {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.navigation ul li {
  list-style: none;
}

.navigation ul li a {
  color: var(--color-white);
  display: block;
  text-decoration: none;
}

/* =========================================================
   Media / Featured
========================================================= */

.featured-img:not(body.page-landing .featured-img) {
  max-width: var(--content-max-width);
  margin: 0 auto;
  position: relative;
}

/* =========================================================
   Layout / Page Header
========================================================= */

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;

  margin-bottom: 2rem;
}

.page-header h1 {
  white-space: nowrap;
}

.page-header:not(.page-landing .page-header)::after {
  content: "";
  width: 100%;
  height: 1px;
  background-color: #555;
  display: block;
}

.page-header h1 {
  font-size: 1.2rem;
}

/* =========================================================
   Content (typography, lists, tables)
========================================================= */

.content:not(body.page-landing .content) {
  padding: 4rem;
  max-width: var(--content-max-width);
  margin: 0 auto;

  background-color: var(--color-white);
  position: relative;
}

.content h2 {
  font-size: 1.5rem;
  margin: 1.5rem 0;
}

.content p {
  margin-bottom: 1rem;
}

.content ul {
  margin: 1rem 0 1rem 1rem;
  padding: 0;
}

.content ul li {
  list-style: square;
  padding-left: 0.75rem;
}

.content .intro {
  font-size: 1.6rem;
  line-height: 1.3;
}

.content table {
  width: 100%;
}

.content table th,
.content table td {
  text-align: left;
  padding-block: 0.75rem;
  border-bottom: 1px solid #ddd;
}

/* =========================================================
   Sections (general)
========================================================= */

.section {
  padding-block: 4rem;
}

.section__image {
  padding: 1rem;
  background-color: #ddd;
}

.section--reverse .section__image {
  order: 1;
}

.section--reverse .section__text {
  order: 2;
}

/* =========================================================
   Sections: Rates
========================================================= */

.section--rates table {
  width: 100%;
}

.section--rates table td {
  vertical-align: top;
}

.section--rates table td.duration em {
  display: block;
  font-size: 0.85rem;
  line-height: 1.3;
}

.section--rates table td.donation {
  width: 25%;
  text-align: right;
}

/* =========================================================
   Sections: Stats
========================================================= */

.section--stats table th {
  padding-right: 1.5rem;
}

.section--stats .stats {
  margin: 2rem 0;
  width: 100%;
  padding: 0;
}

.section--stats .stats li {
  list-style: none;
  margin-bottom: 1rem;
  padding: 0;

  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;

  font-size: 1.1rem;
}

.section--stats .stats li .stat__value,
.section--stats .stats li .stat__label {
  display: inline-block;
  white-space: nowrap;
}

.section--stats .stats li .stat__label {
  order: 1;
}

.section--stats .stats li .stat__value {
  order: 3;
}

.section--stats .stats li::after {
  content: "";
  width: 100%;
  border-top: 1.5px dotted #000;
  order: 2;
}

/* =========================================================
   Sections: FAQs / Wishlist Intro
========================================================= */

.section--faqs .qa {
  margin-bottom: 0.5rem;
}

.section--wishlist-intro {
  margin-bottom: 2rem;
}

/* =========================================================
   Accordion (jQuery UI style)
========================================================= */

.hb-accordion__header {
  font-size: 1.25rem;
  line-height: 1.3;
  padding: 1.25rem 3rem 1.25rem 1.5rem;

  cursor: pointer;
  user-select: none;

  display: flex;
  justify-content: space-between;
  align-items: center;

  position: relative;
  font-weight: 500;
  font-style: normal;
  transition: color 0.5s ease;
  text-align: left;

  position: relative;
  background-color: #f1f1f1;
  font-weight: bold;
}

.hb-accordion__header-text {
  display: block;
  order: 1;
}

.ui-accordion-header-icon {
  display: block;
  width: 1rem;
  height: 1rem;
  order: 2;

  position: absolute;
  right: 2rem;

  display: flex;
  justify-content: center;
  align-items: center;
}

.hb-accordion .ui-state-active {
  background: #ddd;
}

.hb-accordion .ui-state-active .ui-accordion-header-icon::before {
  rotate: 0deg;
}

.hb-accordion .ui-state-active .ui-accordion-header-icon::after {
  rotate: 180deg;
}

.ui-accordion-header-icon::before {
  content: "";
  height: 2px;
  position: absolute;
  background: var(--color-onyx);
  transition: all 0.3s ease;
  width: 100%;
  rotate: -90deg;
}

.ui-accordion-header-icon::after {
  content: "";
  height: 2px;
  position: absolute;
  background: var(--color-onyx);
  transition: all 0.3s ease;
  width: 100%;
}

.ui-accordion-content {
  padding: 1rem 2rem 1rem 1.5rem;
  background-color: #f9f9f9;
  font-size: 1.1rem;
}

.ui-accordion-content p:last-child {
  margin-bottom: 0;
}

/* =========================================================
   Gallery
========================================================= */

.gallery__images {
  columns: 3;
  column-width: 300px;
  column-gap: 1rem;
}

.gallery__image {
  margin-bottom: 1rem;
}

/* =========================================================
   Wishlist
========================================================= */

.wishlist__item {
  transition: box-shadow 0.65s ease;
  box-shadow: rgba(0, 0, 0, 0) 0px 12px 28px 0px, rgba(0, 0, 0, 0) 0px 2px 4px 0px;
}

.wishlist__item:hover {
  box-shadow: rgba(0, 0, 0, 0.15) 0px 12px 28px 0px, rgba(0, 0, 0, 0.1) 0px 2px 4px 0px;
}

.wishlist__item-thumbnail {
  margin-bottom: 0.5rem;
}

.wishlist__item-label {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.wishlist__item a {
  color: var(--color-onyx);
  text-decoration: none;
  display: block;
  padding: 1.5rem;
  background-color: #fff;
}

/* =========================================================
   Social Navigation
========================================================= */

.social-navigation {
}

.social-navigation ul {
  background-color: var(--color-onyx);
  padding: 1rem;
  max-width: var(--content-max-width);
  margin: 0 auto;

  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.social-navigation ul li {
  font-size: 0.85rem;
}

.social-navigation a {
  text-decoration: none;
  color: var(--color-white);
}

/* =========================================================
   Contact Form
========================================================= */

.page-contact .form__section {
  padding: 3rem;
  background-color: #f1f1f1;
  margin-bottom: 0.5rem;
}

.page-contact .form__section h2 {
  margin-top: 0;
}

.page-contact input[type="text"],
.page-contact input[type="email"],
.page-contact input[type="tel"],
.page-contact input[type="number"],
.page-contact input[type="date"],
.page-contact input[type="url"],
.page-contact input[type="file"],
.page-contact textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-onyx);
}

.form__section-field-radio-container {
  display: flex;
  width: 100%;
  justify-content: space-around;
  border: 1px solid #000;
  border-radius: 9999px;
}

.form__section-field-radio-container label {
  padding: 0.75rem 1rem;
  flex-grow: 1;
  flex-basis: 50%;
  background-color: rgba(0, 0, 0, 0.05);
  /* display: flex;
align-items: center;
justify-content: center; */
  display: grid;
  grid-template-columns: 1em auto;
  gap: 0.5em;
  justify-content: center;
  align-items: center;
  line-height: 1cap;
}

.form__section-field-radio-container label:nth-child(1) {
  border-top-left-radius: 9999px;
  border-bottom-left-radius: 9999px;
}

.form__section-field-radio-container label:nth-child(2) {
  border-top-right-radius: 9999px;
  border-bottom-right-radius: 9999px;
}

.form__section-field-radio-container input[type="radio"] {
  width: 1em;
  height: 1rem;
  accent-color: #fff;
  border-width: 2px;
}

.form__section-field-radio-container label:has(input[type="radio"]:checked) {
  background-color: #000;
  color: #fff;
}

.form__section h2 {
  font-weight: 600;
}

.form__section sup {
  font-size: .8em;
  font-weight: 300;
  vertical-align: baseline;
  position: relative;
  top: -0.4em;
}


.page-contact select {
  width: 100%;
  padding: 0.75rem 1rem;
}

.page-contact .form__section-row {
  margin-bottom: 2rem;
}

.page-contact .form__section-field-label {
  display: block;
  margin-bottom: 0.5rem;
}

.page-contact .form__section-row:last-child {
  margin-bottom: 0;
}

.page-contact .form__submit {
  width: 100%;
  background-color: #000;
  color: #fff;
  text-align: center;
  padding: 0.75rem 1rem;
  border: 0;
  border-radius: 3px;
  font-size: 1.1rem;
}

/* =========================================================
   Form Submit
========================================================= */

.form__submit {
  position: relative;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  cursor: pointer;
}

.form__submit-spinner {
  display: none;
  width: 1em;
  height: 1em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.form__submit.is-loading .form__submit-text {
  visibility: hidden;
}

.form__submit.is-loading .form__submit-spinner {
  display: inline-block;
  width: 1.25rem;
  height: 1.25rem; 
}

.form__submit.is-loading .form__submit-spinner svg {
  fill: #fff;
}

.form__submit.is-loading {
  pointer-events: none;
  opacity: 0.8;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* =========================================================
   Footer
========================================================= */

.footer {
  padding: 2rem;
  font-size: 0.65rem;
  color: var(--color-white);
}

.footer a {
  color: var(--color-white);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  max-width: var(--content-max-width);
  margin: 0 auto;
}

/* =========================================================
   Landing Page Overrides
========================================================= */

body.page-landing::after {
  content: "";
  border: 1px solid var(--color-onyx);
  inset: 1rem;
  pointer-events: none;
  position: fixed;
  z-index: 20;
}

body.page-landing .featured-img {
  width: 100%;
  height: 100vh;
  position: fixed;
  z-index: 1;
  inset: 0;
  display: flex;
  justify-content: flex-end;
  background-color: var(--color-white);
}

body.page-landing .featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

body.page-landing .page-header,
body.page-landing .footer,
body.page-landing .social-navigation,
body.page-landing .navigation {
  display: none;
}

body.page-landing .content {
  width: 100%;
  height: 50vh;
  position: fixed;
  left: 0;
  bottom: 0;
  z-index: 10;
  color: var(--color-white);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

body.page-landing .content p {
  color: var(--color-white);
}

body.page-landing .header {
  width: 100%;
  height: 50vh;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 11;
  color: var(--color-white);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

body.page-landing .header h1 {
  font-size: 4rem;
}

body.page-landing .header a {
  color: var(--color-white);
  display: block;
}

body.page-landing .landing {
  width: 90%;
  margin: 0 auto;
  max-width: 500px;
}

body.page-landing .landing__text {
  text-align: center;
  margin-block: 0 1.5rem 1rem;
}

body.page-landing .landing__button {
  width: 50%;
  margin: 1rem auto 0;
  text-align: center;
}

body.page-landing .landing__button a {
  padding: 1rem;
  border: 1px solid #fff;
  color: #fff;
  display: block;
  text-decoration: none;
}
