/*
Theme Name: St Paul Church
Theme URI: https://stpaulcolumbus.com/
Author: St Paul Church
Description: A locked, staff-friendly block theme for St Paul Church of Columbus.
Version: 0.5.5
Requires at least: 6.8
Requires PHP: 8.1
Text Domain: stpaul
*/

html {
  scroll-behavior: smooth;
}

body {
  text-wrap: pretty;
}

:focus-visible {
  outline: 3px solid var(--wp--preset--color--accent);
  outline-offset: 3px;
}

a {
  text-underline-offset: 0.18em;
}

header.wp-block-template-part {
  position: sticky;
  top: 0;
  z-index: 100;
}

.stpaul-site-header {
  box-shadow: 0 1px 0 rgba(10, 27, 48, .08), 0 8px 24px rgba(10, 27, 48, .06);
}

.admin-bar header.wp-block-template-part {
  top: 32px;
}

.stpaul-brand {
  gap: .85rem;
}

.stpaul-brand .wp-block-site-logo img {
  width: clamp(44px, 6vw, 60px) !important;
  height: auto;
}

.stpaul-brand .wp-block-site-title {
  font-size: clamp(1.2rem, 2.2vw, 1.65rem) !important;
  margin: 0;
  white-space: nowrap;
}

.stpaul-brand .wp-block-site-title a {
  color: var(--wp--preset--color--navy);
  font-family: var(--wp--preset--font-family--heading);
  font-weight: 700;
  text-decoration: none;
}

.stpaul-nav-give .wp-block-navigation-item__content {
  background: var(--wp--preset--color--accent);
  border-radius: .2rem;
  color: var(--wp--preset--color--navy);
  font-weight: 700;
  padding: .48rem .8rem;
  text-decoration: none;
  transition: background-color .18s ease, color .18s ease;
}

.stpaul-nav-give .wp-block-navigation-item__content:hover,
.stpaul-nav-give .wp-block-navigation-item__content:focus-visible {
  background: var(--wp--preset--color--blue);
  color: var(--wp--preset--color--white);
}

.stpaul-hero {
  min-height: clamp(34rem, 78vh, 52rem);
}

.stpaul-hero .wp-block-cover__background {
  background: linear-gradient(90deg, rgba(10, 27, 48, .88), rgba(10, 27, 48, .2));
}

.stpaul-section {
  padding-block: var(--wp--preset--spacing--70);
}

.stpaul-card {
  height: 100%;
  border-top: 4px solid var(--wp--preset--color--accent);
}

.stpaul-service-cards {
  align-items: stretch;
}

.stpaul-service-card {
  background: #fff;
  border: 1px solid rgba(10, 27, 48, .14);
  border-bottom: 4px solid var(--wp--preset--color--accent);
  box-shadow: 0 12px 34px rgba(10, 27, 48, .09);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: box-shadow .2s ease, transform .2s ease;
}

.stpaul-service-card:hover {
  box-shadow: 0 18px 42px rgba(10, 27, 48, .15);
  transform: translateY(-3px);
}

.stpaul-service-photo,
.stpaul-service-photo img {
  display: block;
  margin: 0;
  width: 100%;
}

.stpaul-service-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: clamp(1.35rem, 3vw, 2rem);
}

.stpaul-service-content > * {
  margin-block-start: .65rem;
}

.stpaul-service-content > :first-child {
  margin-block-start: 0;
}

.stpaul-service-label {
  color: var(--wp--preset--color--blue);
  font-size: .75rem;
  font-weight: 750;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.stpaul-service-time {
  font-size: clamp(1.8rem, 3vw, 2.45rem);
  line-height: 1;
}

.stpaul-service-location {
  color: var(--wp--preset--color--navy);
  font-size: 1.15rem;
  font-weight: 700;
}

.stpaul-service-link {
  margin-top: auto;
  padding-top: .75rem;
}

.stpaul-service-link a {
  font-weight: 700;
}

.stpaul-path-cards { align-items: stretch; }
.stpaul-path-card { display: flex; flex-direction: column; }
.stpaul-path-photo { margin: 0; overflow: hidden; }
.stpaul-path-photo img { display: block; width: 100%; transition: transform .35s ease; }
.stpaul-path-card:hover .stpaul-path-photo img { transform: scale(1.025); }
.stpaul-path-content { border-top: 3px solid var(--wp--preset--color--accent); display: flex; flex: 1; flex-direction: column; padding-top: 1.25rem; }
.stpaul-path-content > * { margin-block-start: .65rem; }
.stpaul-path-content > :first-child { margin-block-start: 0; }
.stpaul-path-label { color: var(--wp--preset--color--blue); font-size: .75rem; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }
.stpaul-path-title { font-size: clamp(1.65rem, 2.8vw, 2.15rem); line-height: 1.12; }
.stpaul-path-link { margin-top: auto; padding-top: .75rem; }
.stpaul-path-link a { font-weight: 700; text-decoration-color: var(--wp--preset--color--accent); text-decoration-thickness: 2px; }

.stpaul-eyebrow {
  font-size: .78rem;
  font-weight: 750;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.stpaul-image-frame img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* Locked interior-page foundation. */
.stpaul-page-header {
  border-bottom: 1px solid rgba(10, 27, 48, .1);
  padding-block: clamp(3.5rem, 7vw, 6rem);
}

.stpaul-page-header .wp-block-post-title {
  font-size: clamp(2.7rem, 6vw, 5rem);
  line-height: 1.02;
  margin: 0;
  max-width: 15ch;
}

.stpaul-page-body {
  padding-block: clamp(2.75rem, 6vw, 5rem);
}

.stpaul-page-body > .wp-block-post-featured-image {
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.stpaul-page-featured-image img {
  display: block;
  max-height: 38rem;
  object-fit: cover;
  width: 100%;
}

.stpaul-page-body .wp-block-post-content > :where(p, ul, ol) {
  max-width: 46rem;
}

.stpaul-page-body .wp-block-post-content > p:first-child {
  color: var(--wp--preset--color--navy);
  font-size: clamp(1.2rem, 2vw, 1.4rem);
  line-height: 1.6;
}

.stpaul-page-body .gform_wrapper {
  margin: clamp(2rem, 4vw, 3.25rem) 0 0 !important;
  max-width: 50rem;
}

.stpaul-page-body .gform_required_legend {
  color: var(--wp--preset--color--muted);
  font-size: 0;
  margin: 0 0 1.75rem;
}

.stpaul-page-body .gform_required_legend::before {
  content: "* Indicates required fields";
  font-size: .875rem;
}

.stpaul-page-body .gform_fields {
  column-gap: clamp(1rem, 3vw, 1.75rem) !important;
  row-gap: 1.4rem !important;
}

.stpaul-page-body .gfield_label,
.stpaul-page-body .gform-field-label {
  color: var(--wp--preset--color--navy);
  font-size: 1.0625rem !important;
  font-weight: 700 !important;
  line-height: 1.35;
}

.stpaul-page-body .gfield_description,
.stpaul-page-body .gform-field-label--type-sub {
  color: var(--wp--preset--color--muted) !important;
  font-size: .9375rem !important;
  line-height: 1.5;
}

.stpaul-page-body .gform_wrapper :where(input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select, textarea) {
  background: #fff;
  border: 1px solid #9da8b3 !important;
  border-radius: 2px !important;
  box-shadow: none !important;
  color: var(--wp--preset--color--ink);
  font: inherit;
  min-height: 3.15rem;
  padding: .75rem .85rem !important;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.stpaul-page-body .gfield:not(.gfield--type-name) .ginput_container > :where(input, select, textarea) {
  width: 100% !important;
}

.stpaul-page-body .gform_wrapper :where(input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select, textarea):focus {
  border-color: var(--wp--preset--color--blue) !important;
  box-shadow: 0 0 0 3px rgba(50, 125, 168, .18) !important;
  outline: none;
}

.stpaul-page-body .gform_wrapper textarea {
  min-height: 10rem;
  resize: vertical;
}

.stpaul-page-body .gchoice {
  align-items: flex-start;
  display: flex;
  gap: .65rem;
  margin-block: .55rem;
}

.stpaul-page-body .gchoice input {
  flex: 0 0 auto;
  height: 1.2rem;
  margin-top: .15rem;
  width: 1.2rem;
}

.stpaul-form-section-heading {
  border-top: 1px solid rgba(10, 27, 48, .14);
  grid-column: 1 / -1 !important;
  margin-top: clamp(1rem, 3vw, 2rem);
  padding-top: clamp(1.5rem, 3vw, 2.25rem);
}

.stpaul-form-section-heading--first {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
}

.stpaul-form-section-heading h2 {
  color: var(--wp--preset--color--navy);
  font-family: var(--wp--preset--font-family--display);
  font-size: clamp(1.875rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.12;
  margin: 0 0 .2rem;
}

.stpaul-form-section-heading p {
  color: var(--wp--preset--color--muted);
  font-size: 1rem;
  margin: 0 0 .85rem;
}

/* Site-wide Gravity Forms typography defaults. */
body .gform_wrapper .gsection_title {
  font-family: var(--wp--preset--font-family--display);
  font-size: clamp(1.875rem, 3vw, 2rem) !important;
  font-weight: 700;
  line-height: 1.12;
}

body .gform_wrapper .gsection_description {
  font-size: 1rem !important;
}

body .gform_wrapper.gform-theme .gfield_label,
body .gform_wrapper.gform-theme .gform-field-label {
  font-size: 1.0625rem !important;
}

body .gform_wrapper.gform-theme .gfield_description,
body .gform_wrapper.gform-theme .gform-field-label--type-sub {
  font-size: .9375rem !important;
}

body .gform_wrapper.gform-theme input:not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="checkbox"]):not([type="radio"]),
body .gform_wrapper.gform-theme select,
body .gform_wrapper.gform-theme textarea {
  font-size: 1.0625rem !important;
}

.stpaul-page-body .gform_footer {
  margin-top: 2rem !important;
  padding: 0 !important;
}

.stpaul-page-body .gform_button {
  background: var(--wp--preset--color--blue) !important;
  border: 2px solid var(--wp--preset--color--blue) !important;
  border-radius: 2px !important;
  color: #fff !important;
  cursor: pointer;
  font-size: .9rem !important;
  font-weight: 750 !important;
  letter-spacing: .04em;
  min-height: 3.25rem;
  padding: .8rem 1.35rem !important;
  text-transform: uppercase;
  transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}

.stpaul-page-body .gform_button:hover,
.stpaul-page-body .gform_button:focus-visible {
  background: var(--wp--preset--color--navy) !important;
  border-color: var(--wp--preset--color--navy) !important;
  transform: translateY(-1px);
}

footer.wp-block-template-part a {
  color: #78b7d8;
}

footer.wp-block-template-part a:hover,
footer.wp-block-template-part a:focus-visible {
  color: #fff;
}

.stpaul-page-body .wp-block-buttons {
  gap: .8rem;
}

.stpaul-page-body .wp-block-button__link {
  border-radius: 2px;
  font-size: 1rem;
  font-weight: 750;
  letter-spacing: .01em;
  padding: .85rem 1.25rem;
}

@media (max-width: 782px) {
  .admin-bar header.wp-block-template-part {
    top: 0;
  }

  .stpaul-brand .wp-block-site-title {
    font-size: 1rem !important;
  }

  .stpaul-hero {
    min-height: 34rem;
  }

  .stpaul-page-header {
    padding-block: 2.5rem;
  }

  .stpaul-page-body {
    padding-block: 2.25rem 3.5rem;
  }

  .stpaul-page-header .wp-block-post-title {
    font-size: clamp(2.35rem, 12vw, 3.35rem);
  }

  .stpaul-page-body .wp-block-post-content > p:first-child {
    font-size: 1.12rem;
    line-height: 1.55;
  }

  .stpaul-page-body .gform_wrapper {
    margin-top: 1.75rem !important;
    width: 100%;
  }

  .stpaul-page-body .gform_fields {
    row-gap: 1.2rem !important;
  }

  .stpaul-form-section-heading {
    margin-top: .75rem;
    padding-top: 1.5rem;
  }

  .stpaul-page-body .gform_button {
    width: 100% !important;
  }

  .stpaul-service-cards,
  .stpaul-path-cards {
    display: flex;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 1rem;
    max-width: none;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    padding: 0 max(1rem, 4vw) 1.1rem;
    scroll-padding-inline: max(1rem, 4vw);
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .stpaul-service-cards > .wp-block-column,
  .stpaul-path-cards > .wp-block-column {
    box-sizing: border-box;
    flex: 0 0 min(82vw, 22rem);
    scroll-snap-align: start;
  }
}
