/* =========================================================
   ELIZABETH KLUENDER — MAIN STYLESHEET
   ========================================================= */

/* =========================================================
   1. DESIGN VARIABLES
   ========================================================= */

:root {
  --blue: #0877bb;
  --button-blue: #0798f2;
  --black: #090909;
  --white: #ffffff;
  --body-text: #171717;
  --rule: #777777;

  --serif: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --sans: "Montserrat", Avenir, "Avenir Next", Helvetica, Arial, sans-serif;

  --header-height: 110px;
  --content-width: 760px;
}


/* =========================================================
   2. RESET AND GLOBAL STYLES
   ========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--body-text);
  background: var(--white);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  white-space: nowrap;
  border: 0;
  clip: rect(0, 0, 0, 0);
}


/* =========================================================
   3. HEADER AND NAVIGATION
   ========================================================= */

.site-header {
  position: relative;
  z-index: 20;
  min-height: var(--header-height);
  background: var(--blue);
  color: var(--white);
}

.header-inner {
  width: min(100% - 56px, 1500px);
  min-height: var(--header-height);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.site-title {
  flex-shrink: 0;
  color: var(--white);
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.5vw, 2.45rem);
  font-style: italic;
  font-weight: 700;
  line-height: 1.15;
  text-decoration: none;
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(22px, 3vw, 47px);
}

.primary-nav a {
  color: var(--white);
  font-size: clamp(0.9rem, 1.35vw, 1.32rem);
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.primary-nav a:hover,
.primary-nav a:focus-visible,
.primary-nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 8px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 100%;
  height: 3px;
  margin: 5px 0;
  border-radius: 999px;
  background: var(--white);
}


/* =========================================================
   4. BUTTONS
   ========================================================= */

.button {
  display: inline-flex;
  min-height: 82px;
  padding: 18px 32px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: clamp(1.35rem, 2.3vw, 2rem);
  font-weight: 400;
  line-height: 1.1;
  text-decoration: none;
  transition:
    transform 160ms ease,
    filter 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.button-primary {
  background: var(--button-blue);
  color: var(--white);
}


/* =========================================================
   5. HOMEPAGE HERO
   ========================================================= */

.hero {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  overflow: hidden;
  display: grid;
  place-items: center;
  color: var(--white);
  background:
    url("assets/cloister.png")
    center center / cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.68);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100% - 48px, 1030px);
  margin-top: 70px;
  text-align: center;
}

.hero-statement {
  margin: 0 auto;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  font-weight: 400;
  line-height: 1.22;
  letter-spacing: 0.01em;
}

.hero-actions {
  margin-top: clamp(90px, 11vh, 145px);
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 435px));
  justify-content: center;
  gap: clamp(40px, 6vw, 80px);
}


/* =========================================================
   6. INTERIOR-PAGE BANNERS
   ========================================================= */

.page-banner {
  position: relative;
  min-height: 235px;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  background-color: #333333;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.page-banner-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.58);
}

.page-banner-inner {
  position: relative;
  z-index: 1;
  width: min(100% - 64px, 1500px);
  margin-inline: auto;
  padding-bottom: 24px;
}

.page-banner h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.6rem);
  font-style: italic;
  line-height: 1;
}

/* Page-specific banner images */

.research-page .page-banner {
  background-image: url("assets/doctoral-banner.png");
  background-position: center 45%;
}

.support-page .page-banner {
  background-image: url("assets/support-daffodils-banner.png");
  background-position: center 48%;
}

.ibs-page .page-banner {
  background-image: url("assets/ibs-banner.png");
  background-position: center 52%;
}

.labyrinth-page .page-banner {
  background-image: url("assets/prayer-labyrinth-banner.png");
  background-position: center 48%;
}

.visio-page .page-banner {
  background-image: url("assets/visio-divina-banner.png");
  background-position: center 48%;
}

.prayer-cards-page .page-banner {
  background-image: url("assets/prayer-cards-banner.png");
  background-position: center 48%;
}

.resources-page .page-banner {
  background-image: url("assets/resources-banner.png");
  background-position: center 48%;
}


/* =========================================================
   7. DECORATIVE TRINITY-KNOT WATERMARK
   ========================================================= */

.research-page main,
.about-page main,
.support-page main,
.resource-detail-page main,
.resources-page main {
  position: relative;
  overflow: hidden;
}

.research-page main::after,
.about-page main::after,
.support-page main::after,
.resource-detail-page main::after,
.resources-page main::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -70px;
  width: 420px;
  height: 420px;
  background:
    url("assets/triniyknot.png")
    center / contain no-repeat;
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
}

.research-content,
.about-content,
.support-content,
.resource-detail-content,
.resources-content {
  position: relative;
  z-index: 1;
}


/* =========================================================
   8. DOCTORAL RESEARCH PAGE
   ========================================================= */

.research-content {
  width: min(100% - 48px, var(--content-width));
  margin: 0 auto;
  padding: 48px 0 72px;
}

.research-introduction {
  max-width: 700px;
  margin: 0 auto 40px;
  color: var(--blue);
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.05vw, 1.7rem);
  font-style: italic;
  font-weight: 700;
  line-height: 1.26;
  text-align: center;
}

.research-introduction p {
  margin: 0 0 28px;
}

.research-section {
  padding: 22px 0 26px;
  border-bottom: 1px solid var(--rule);
}

.research-section:last-child {
  border-bottom: 0;
}

.research-section h2 {
  margin: 0 0 4px;
  color: var(--blue);
  font-family: var(--sans);
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  font-weight: 600;
  line-height: 1.2;
}

.research-section p {
  margin: 0 0 18px;
}

.research-section p:last-child {
  margin-bottom: 0;
}

.research-section ul {
  margin: 4px 0 18px 1.25rem;
  padding: 0;
}


/* =========================================================
   9. ABOUT PAGE
   ========================================================= */

.about-heading {
  padding: 28px 24px 18px;
  text-align: center;
  background: var(--white);
}

.about-heading h1 {
  margin: 0;
  color: var(--black);
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.3rem);
  font-style: italic;
  line-height: 1.1;
}

.about-photo-strip {
  width: 100%;
  height: clamp(230px, 31vw, 420px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  background: #d8d8d8;
}

.about-photo {
  position: relative;
  overflow: hidden;
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-photo-left img {
  object-position: center 28%;
  filter: grayscale(1);
}

.about-photo-center {
  clip-path: polygon(15% 0, 100% 0, 85% 100%, 0 100%);
  margin-inline: -9%;
  z-index: 2;
  background: var(--blue);
}

.about-photo-center img {
  object-position: center 25%;
  filter: grayscale(0.25);
}

.about-photo-right img {
  object-position: center 35%;
  filter: grayscale(1);
}

.about-content {
  width: min(100% - 48px, 760px);
  margin: 0 auto;
  padding: 42px 0 72px;
}

.about-content > p {
  margin: 0 0 24px;
}

.about-detail-section {
  margin-top: 24px;
}

.about-detail-section:first-of-type {
  padding-top: 18px;
  border-top: 1px solid var(--rule);
}

.about-detail-section h2 {
  margin: 0 0 5px;
  color: var(--blue);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.2;
}

.about-detail-section p {
  margin: 0 0 18px;
}

.about-detail-section ul {
  margin: 4px 0 0 1.2rem;
  padding: 0;
}

.about-detail-section a {
  color: var(--body-text);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}


/* =========================================================
   10. SUPPORT PAGE
   ========================================================= */

.support-content {
  width: min(100% - 48px, 860px);
  margin: 0 auto;
  padding: 46px 0 72px;
}

.support-intro {
  max-width: 690px;
  margin: 0 auto 42px;
}

.support-intro h2 {
  margin: 0 0 10px;
  color: var(--blue);
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  font-style: italic;
  line-height: 1.15;
}

.support-intro p {
  margin: 0;
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.partner-card {
  min-height: 275px;
  padding: 34px 40px 38px;
}

.partner-card-blue {
  background: #e2f0f8;
}

.partner-card-cream {
  background: #f1ead9;
}

.partner-card h3 {
  margin: 0 0 13px;
  color: var(--blue);
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2.6vw, 2rem);
  font-style: italic;
  line-height: 1.1;
}

.partner-card p {
  margin: 0;
}

.support-action {
  margin-top: 42px;
  text-align: center;
}

.support-button {
  min-height: 62px;
  padding: 14px 38px;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  font-style: italic;
}


/* =========================================================
   11. SHARED INDIVIDUAL RESOURCE-PAGE STYLES
   ========================================================= */

.resource-detail-content {
  width: min(100% - 48px, 760px);
  margin: 0 auto;
  padding: 42px 0 74px;
}

.resource-detail-introduction {
  max-width: 660px;
  margin: 0 auto 30px;
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.8vw, 1.32rem);
  font-style: italic;
  line-height: 1.45;
  text-align: center;
}

.resource-detail-introduction p {
  margin: 0 0 18px;
}

.resource-detail-introduction p:last-child {
  margin-bottom: 0;
}

.resource-download {
  margin-top: 48px;
  text-align: center;
}

.resource-download-button {
  min-height: 62px;
  padding: 15px 38px;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.4vw, 1.65rem);
  font-style: italic;
}


/* =========================================================
   12. INDUCTIVE BIBLE STUDY PAGE
   ========================================================= */

.ibs-guidance {
  max-width: 660px;
  margin: 0 auto;
}

.ibs-guidance p {
  margin: 0 0 22px;
}

.ibs-guidance p:last-child {
  margin-bottom: 0;
}

.ibs-guidance strong {
  font-weight: 700;
}

.ibs-steps-section {
  max-width: 590px;
  margin: 42px auto 0;
}

.ibs-steps-heading {
  margin-bottom: 30px;
  text-align: center;
}

.ibs-steps-heading span {
  display: block;
  color: var(--blue);
  font-family: var(--sans);
  font-size: clamp(2rem, 5vw, 3.15rem);
  font-weight: 700;
  line-height: 0.95;
  text-transform: uppercase;
}

.ibs-steps-heading h2 {
  margin: 3px 0 0;
  color: var(--body-text);
  font-family: var(--serif);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-style: italic;
  line-height: 1.1;
}

.ibs-steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ibs-step {
  display: grid;
  grid-template-columns: 76px 1fr;
  align-items: center;
  gap: 22px;
  margin-bottom: 23px;
}

.ibs-step:last-child {
  margin-bottom: 0;
}

.ibs-step-number {
  width: 66px;
  height: 66px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--body-text);
  border-radius: 48% 52% 46% 54% / 53% 45% 55% 47%;
  font-family: var(--serif);
  font-size: 2rem;
  font-style: italic;
  line-height: 1;
  transform: rotate(-3deg);
}

.ibs-step:nth-child(even) .ibs-step-number {
  transform: rotate(3deg);
}

.ibs-step-text h3 {
  margin: 0;
  color: var(--blue);
  font-family: var(--sans);
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 600;
  line-height: 1.1;
}

.ibs-step-text p {
  margin: 3px 0 0;
  color: var(--blue);
  font-size: 0.95rem;
  line-height: 1.25;
}


/* =========================================================
   13. PRAYER LABYRINTH PAGE
   ========================================================= */

.labyrinth-content {
  max-width: 720px;
}

.labyrinth-introduction {
  max-width: 620px;
  margin: 0 auto 28px;
  color: #8a8a8a;
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  line-height: 1.45;
  text-align: center;
}

.labyrinth-introduction p {
  margin: 0;
}

.labyrinth-stages {
  max-width: 620px;
  margin: 0 auto;
}

.labyrinth-stages p {
  margin: 0 0 25px;
}

.labyrinth-stages p:last-child {
  margin-bottom: 0;
}

.labyrinth-stages strong {
  font-weight: 700;
}

.labyrinth-note {
  margin: 24px auto 28px;
  color: var(--blue);
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  line-height: 1.45;
  text-align: center;
}

.labyrinth-figure {
  width: min(100%, 610px);
  margin: 20px auto 36px;
}

.labyrinth-figure img {
  width: 100%;
  height: auto;
}

.labyrinth-downloads {
  display: grid;
  justify-items: center;
  gap: 14px;
  margin-top: 0;
}

.labyrinth-downloads .resource-download-button {
  width: min(100%, 610px);
}


/* =========================================================
   14. VISIO DIVINA PAGE
   ========================================================= */

.visio-content {
  max-width: 720px;
}

.visio-introduction {
  max-width: 620px;
  margin: 0 auto 28px;
  color: var(--blue);
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  line-height: 1.5;
  text-align: center;
}

.visio-introduction p {
  margin: 0;
}

.visio-steps {
  max-width: 620px;
  margin: 0 auto;
}

.visio-steps p {
  margin: 0 0 25px;
}

.visio-steps p:last-child {
  margin-bottom: 0;
}

.visio-steps strong {
  color: var(--blue);
  font-weight: 600;
}

.visio-figure {
  width: min(100%, 370px);
  margin: 38px auto 34px;
  text-align: center;
}

.visio-figure img {
  width: 100%;
  height: auto;
}

.visio-figure figcaption {
  margin-top: 8px;
  color: var(--blue);
  font-size: 0.72rem;
  font-style: italic;
  line-height: 1.3;
}

.visio-downloads {
  display: grid;
  justify-items: center;
  gap: 14px;
  margin-top: 0;
}

.visio-downloads .resource-download-button {
  width: min(100%, 610px);
}


/* =========================================================
   15. PRAYER CARDS PAGE
   ========================================================= */

.prayer-cards-content {
  max-width: 860px;
}

.prayer-cards-introduction {
  max-width: 670px;
  margin: 0 auto 42px;
  line-height: 1.6;
}

.prayer-cards-introduction p {
  margin: 0 0 18px;
}

.prayer-cards-introduction p:last-child {
  margin-bottom: 0;
}

.prayer-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px 58px;
  align-items: start;
}

.prayer-card-item {
  display: block;
  color: inherit;
  text-decoration: none;
  transition:
    transform 160ms ease,
    filter 160ms ease;
}

.prayer-card-item:hover,
.prayer-card-item:focus-visible {
  transform: translateY(-4px);
  filter: drop-shadow(0 10px 12px rgba(0, 0, 0, 0.13));
}

.prayer-card-item img {
  width: 100%;
  height: auto;
  border: 0;
}

.prayer-card-item span {
  display: block;
  margin-top: 10px;
  color: var(--blue);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
}

.prayer-cards-download {
  margin-top: 50px;
}

.prayer-cards-download .resource-download-button {
  width: min(100%, 660px);
}


/* =========================================================
   16. FOOTER
   ========================================================= */

.site-footer {
  background: var(--black);
  color: var(--white);
  text-align: center;
}

.footer-nav {
  min-height: 52px;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 4vw, 55px);
  background: var(--blue);
}

.footer-nav a {
  font-size: 0.82rem;
  text-decoration: none;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  text-decoration: underline;
}

.site-footer p {
  margin: 0;
  padding: 16px 24px 19px;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-style: italic;
  font-weight: 700;
}

.site-footer p span {
  font-weight: 700;
}


/* =========================================================
   17. RESPONSIVE LAYOUT
   ========================================================= */

@media (max-width: 930px) {
  :root {
    --header-height: 82px;
  }

  .header-inner {
    width: min(100% - 32px, 1500px);
  }

  .menu-toggle {
    display: block;
  }

  .primary-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    padding: 22px 24px 28px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--blue);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.2);
  }

  .primary-nav.is-open {
    display: flex;
  }

  .primary-nav a {
    padding: 13px 8px;
    text-align: center;
  }

  .hero-content {
    margin-top: 0;
  }

  .hero-actions {
    margin-top: 70px;
    grid-template-columns: minmax(240px, 440px);
    gap: 24px;
  }

  .page-banner {
    min-height: 180px;
  }
}

@media (max-width: 700px) {
  .about-heading {
    padding-top: 15px;
  }

  .about-photo-strip {
    height: 230px;
  }

  .about-photo-center {
    clip-path: polygon(12% 0, 100% 0, 88% 100%, 0 100%);
    margin-inline: -7%;
  }

  .about-content,
  .support-content,
  .resource-detail-content {
    width: min(100% - 32px, 860px);
    padding-top: 34px;
  }

  .partner-grid {
    grid-template-columns: 1fr;
  }

  .partner-card {
    min-height: auto;
    padding: 28px 26px 31px;
  }

  .partner-card:nth-child(3) {
    background: #e2f0f8;
  }

  .partner-card:nth-child(4) {
    background: #f1ead9;
  }

  .resource-detail-introduction {
    font-size: 1.05rem;
  }

  .ibs-steps-section {
    margin-top: 36px;
  }

  .ibs-step {
    grid-template-columns: 62px 1fr;
    gap: 17px;
  }

  .ibs-step-number {
    width: 56px;
    height: 56px;
    font-size: 1.65rem;
  }

  .resource-download-button {
    width: 100%;
    padding-inline: 22px;
  }

  .labyrinth-introduction,
  .labyrinth-stages,
  .visio-introduction,
  .visio-steps,
  .prayer-cards-introduction {
    max-width: 100%;
  }

  .labyrinth-figure {
    width: min(100%, 520px);
  }

  .visio-figure {
    width: min(78%, 350px);
  }

  .labyrinth-downloads .resource-download-button,
  .visio-downloads .resource-download-button {
    width: 100%;
  }

  .prayer-card-grid {
    gap: 28px 22px;
  }

  .prayer-card-item span {
    font-size: 0.82rem;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 15px;
  }

  .header-inner {
    width: min(100% - 24px, 1500px);
  }

  .site-title {
    max-width: 250px;
  }

  .hero {
    min-height: calc(100svh - var(--header-height));
  }

  .hero-content {
    width: min(100% - 30px, 1030px);
  }

  .hero-statement {
    font-size: 1.45rem;
  }

  .desktop-break {
    display: none;
  }

  .hero-actions {
    margin-top: 55px;
  }

  .button {
    min-height: 62px;
    padding: 15px 24px;
    font-size: 1.25rem;
  }

  .page-banner-inner {
    width: min(100% - 32px, 1500px);
  }

  .research-content {
    width: min(100% - 32px, var(--content-width));
    padding-top: 38px;
  }

  .research-introduction {
    font-size: 1.16rem;
  }

  .footer-nav {
    gap: 10px 22px;
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .about-photo-strip {
    height: 190px;
  }

  .about-photo-left img {
    object-position: 54% center;
  }

  .about-photo-center img {
    object-position: center center;
  }

  .about-photo-right img {
    object-position: 46% center;
  }

  .prayer-card-grid {
    grid-template-columns: 1fr;
    max-width: 310px;
    margin-inline: auto;
  }

  .prayer-card-item span {
    font-size: 0.9rem;
  }

  .prayer-cards-download .resource-download-button {
    width: 100%;
  }
}

@media (max-width: 430px) {
  .ibs-step {
    grid-template-columns: 54px 1fr;
    gap: 14px;
  }

  .ibs-step-number {
    width: 50px;
    height: 50px;
    font-size: 1.45rem;
  }

  .ibs-step-text h3 {
    font-size: 1.22rem;
  }

  .ibs-step-text p {
    font-size: 0.85rem;
  }
}


/* =========================================================
   18. REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button,
  .prayer-card-item {
    transition: none;
  }
}
