/*
Theme Name: Bethesda House
Author: Empie Print & Design Inc.
Description: A native WordPress block theme for the Bethesda House ministry.
Version: 1.0.8
Requires at least: 6.6
Requires PHP: 7.4
Text Domain: bethesda-house-theme
*/

:root {
  --bethesda-navy: #182b4b;
  --bethesda-paper: #f7f4ec;
  --bethesda-white: #fffefa;
  --bethesda-gold: #804b16;
  --bethesda-line: #ddd4c3;
}

:focus-visible {
  outline: 3px solid #286697;
  outline-offset: 4px;
}

.bethesda-header {
  background: var(--bethesda-white);
  border-bottom: 1px solid var(--bethesda-line);
}

.bethesda-header-inner {
  min-height: 90px;
  padding-block: 10px;
}

.bethesda-brand {
  flex-shrink: 0;
}

.bethesda-brand img {
  display: block;
  width: 132px;
  height: auto;
}

.bethesda-brand-name {
  margin: 0;
  font-family: Georgia, serif;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  white-space: nowrap;
}

.bethesda-header .wp-block-navigation {
  font-size: .91rem;
  font-weight: 650;
}

.bethesda-header .wp-block-navigation a:hover {
  text-decoration: underline;
  text-underline-offset: .25em;
}

.bethesda-front .bethesda-hero {
  padding-block: clamp(3rem, 7vw, 6rem);
  border-bottom: 1px solid var(--bethesda-line);
}

.bethesda-hero .wp-block-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .92fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  margin-bottom: 0;
}

.bethesda-hero h1 {
  margin-block: 0 .25em;
  font-size: clamp(3rem, 6.6vw, 6.15rem);
  line-height: .98;
  letter-spacing: -.055em;
  text-wrap: balance;
}

.bethesda-hero p {
  max-width: 39ch;
  font-size: clamp(1.06rem, 1.7vw, 1.25rem);
}

.bethesda-hero .wp-block-image {
  margin: 0;
  padding: .6rem;
  background: var(--bethesda-white);
  border: 1px solid var(--bethesda-line);
  transform: rotate(-1.3deg);
}

.bethesda-hero .wp-block-image img {
  display: block;
  width: 100%;
  height: auto;
}

.bethesda-front .bethesda-section {
  padding-block: clamp(2.5rem, 6vw, 5rem);
}

.bethesda-card-grid {
  gap: clamp(1rem, 2.5vw, 2rem);
  margin-block: 0;
}

.bethesda-card {
  min-width: 0;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--bethesda-white);
  border: 1px solid var(--bethesda-line);
  border-top: 3px solid var(--bethesda-gold);
}

.bethesda-card h2 {
  margin-top: 0;
  font-size: clamp(1.65rem, 2.7vw, 2.25rem);
}

@media (min-width: 782px) {
  .bethesda-front .bethesda-hero h1 {
    font-size: clamp(2.65rem, 4.5vw, 3.65rem);
  }

  .bethesda-front .bethesda-card-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) repeat(2, minmax(0, 1fr));
    gap: clamp(.75rem, 2vw, 1.5rem);
  }

  .bethesda-front .bethesda-card {
    padding: 1rem;
  }

  .bethesda-front .bethesda-card h2 {
    font-size: clamp(1.25rem, 1.75vw, 1.4rem);
  }
}

.bethesda-card p:last-child {
  margin-bottom: 0;
}

.bethesda-main {
  padding-block: clamp(2.5rem, 6vw, 5rem);
}

/* AcyMailing form 1 supplies the newsletter fields and handles submissions. */
main #acym_fulldiv_formAcym1.acym__subscription__form__shortcode {
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: 740px;
  height: auto !important;
  margin-block: 1.5rem;
  padding: clamp(18px, 4vw, 34px);
  border: 1px solid var(--bethesda-line);
  border-radius: 6px;
  background: var(--bethesda-white);
  color: var(--bethesda-navy);
  text-align: left;
}

main #acym_fulldiv_formAcym1 #formAcym1 {
  width: 100%;
  max-width: none;
}

main #acym_fulldiv_formAcym1 #formAcym1 .acym__subscription__form__fields {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  column-gap: 1rem;
  margin: 0 !important;
}

main #acym_fulldiv_formAcym1 .acym__subscription__form__fields > .onefield {
  min-width: 0;
  width: auto;
  margin: 0 0 1rem !important;
}

main #acym_fulldiv_formAcym1 :is(.fieldacy1, .fieldacy6, .fieldacycaptcha, .acym__subscription__form__lists) {
  grid-column: 1 / -1;
}

main #acym_fulldiv_formAcym1 #formAcym1 .acym__subscription__form__fields > :is(.fieldacycaptcha, .acym__subscription__form__lists) {
  margin: 0 !important;
}

main #acym_fulldiv_formAcym1 .onefield > :is(label, [role="group"]),
main #acym_fulldiv_formAcym1 .onefield .acym__users__creation__fields__title {
  display: block;
  margin: 0;
  font-weight: 650;
  text-align: left;
}

main #acym_fulldiv_formAcym1 #formAcym1 .onefield :is(input[type="text"], input[type="email"], select) {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-height: 46px;
  margin: .35rem 0 0;
  padding: .5rem .7rem;
  border: 1px solid #8c95a4;
  border-radius: 4px;
  background: #fff;
  color: var(--bethesda-navy);
  font: inherit;
}

main #acym_fulldiv_formAcym1 .fieldacy6 .grid-x {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: .65rem;
  margin: 0;
}

main #acym_fulldiv_formAcym1 .fieldacy6 .grid-x > .cell {
  min-width: 0;
  width: auto;
  margin: 0;
}

main #acym_fulldiv_formAcym1 .acym__subscription__form__button {
  display: block;
  margin: .2rem 0 0;
}

main #acym_fulldiv_formAcym1 .acym__subscription__form__button button {
  min-height: 46px;
  padding: .65rem 1.2rem;
  border: 0;
  border-radius: 4px;
  background: var(--bethesda-navy);
  color: var(--bethesda-white);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

main #acym_fulldiv_formAcym1 .acym__subscription__form__button button:hover:not(:disabled) {
  background: #263e66;
}

@media (max-width: 600px) {
  main #acym_fulldiv_formAcym1 #formAcym1 .acym__subscription__form__fields {
    grid-template-columns: minmax(0, 1fr);
  }

  main #acym_fulldiv_formAcym1 .acym__subscription__form__button button {
    width: 100%;
  }
}

.bethesda-footer {
  background: var(--bethesda-navy);
  color: var(--bethesda-white);
  padding-block: 3rem;
}

.bethesda-footer a {
  color: inherit;
}

.bethesda-footer .alignwide {
  box-sizing: border-box;
  width: min(100% - 2 * clamp(20px, 4vw, 48px), 1180px);
  margin-inline: auto;
}

.bethesda-footer :focus-visible {
  outline-color: #f3c17e;
}

.bethesda-footer-title {
  font-family: Georgia, serif;
  font-size: 1.75rem;
}

.bethesda-footer-credit {
  font-size: .88rem;
}

@media (max-width: 1040px) {
  .bethesda-header .bethesda-header-inner {
    min-height: 70px;
    gap: .45rem;
  }

  .bethesda-header-inner > .wp-block-group {
    min-width: 0;
    flex: 1 1 auto;
    gap: .35rem;
  }

  .bethesda-header-inner > .wp-block-navigation {
    order: 3;
    flex: 0 0 auto;
  }

  .bethesda-header-inner > .wp-block-woocommerce-customer-account {
    order: 1;
    flex: 0 0 auto;
  }

  .bethesda-header-inner > .wp-block-woocommerce-mini-cart {
    order: 2;
    flex: 0 0 auto;
  }

  .bethesda-header .wp-block-navigation__responsive-container-open {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 4px;
    background: var(--bethesda-navy);
    color: var(--bethesda-white);
  }

  .bethesda-header .wp-block-navigation__responsive-container:not(.is-menu-open) {
    display: none;
  }
}

@media (max-width: 781px) {
  .bethesda-hero .wp-block-image {
    transform: none;
  }

  .bethesda-hero .wp-block-columns {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 480px) {
  .bethesda-brand img {
    width: 112px;
  }

  .bethesda-header .bethesda-brand-name {
    display: none;
  }
}
