/*
Theme Name: ICNU Migration
Theme URI: https://www.inspiringchurches.com/
Author: Inspiring Churches
Description: Site-specific migration theme for Inspiring Churches to New Understanding.
Version: 1.0.10
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: icnu
*/

:root {
  --icnu-orange: #f26522;
  --icnu-orange-light: #f47d40;
  --icnu-green: #0d9444;
  --icnu-dark: #0c4a25;
  --icnu-mid: #1a5c30;
  --icnu-warm: #f4f8f5;
  --icnu-warm-dark: #eaf2ec;
  --icnu-text: #2c2c2c;
  --icnu-muted: #5a7060;
  --icnu-border: #d0ddd2;
  --icnu-white: #fff;
  --icnu-content: 1328px;
  --icnu-reading: 790px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--icnu-text);
  background: var(--icnu-white);
  font-family: "Raleway", Arial, sans-serif;
  font-size: 19.456px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: .19456px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.screen-reader-text:focus,
.skip-link:focus {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100000;
  width: auto;
  height: auto;
  clip: auto;
  padding: .8rem 1rem;
  color: #fff;
  background: #111;
  outline: 3px solid var(--icnu-orange);
}
:focus-visible { outline: 3px solid var(--icnu-orange); outline-offset: 4px; }

/* Global shell */
.site-header {
  position: relative;
  z-index: 50;
  padding: 1.44px 24px 162px;
  background: var(--icnu-white);
  text-align: center;
}
.site-header,
.site-footer { font-family: "Raleway", Arial, sans-serif !important; }
.home .site-header,
.front-page .site-header {
  position: absolute;
  inset: 0 0 auto;
  color: #fff;
  background: transparent;
}
.site-branding { display: block; width: fit-content; margin: 0 auto; line-height: 0; }
.site-logo {
  display: block;
  width: min(334px, 70vw);
  object-fit: contain;
}
.primary-navigation { margin: 43.12px auto 0; max-width: 663px; }
.primary-navigation ul,
.footer-navigation ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.primary-navigation ul {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 25px;
}
.primary-navigation a {
  display: block;
  padding: 1.9456px 0;
  border-bottom: 0;
  font-size: 19.456px;
  line-height: 29.184px;
  text-decoration: none;
}
.primary-navigation a:hover,
.primary-navigation .current-menu-item > a,
.primary-navigation .current_page_item > a {
  border-bottom-color: transparent;
  text-decoration: underline;
  text-underline-offset: 7px;
}
.menu-toggle {
  display: none;
  width: 48px;
  height: 44px;
  margin: 28px auto 0;
  padding: 10px;
  color: inherit;
  background: transparent;
  border: 1px solid currentColor;
}
.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  content: "";
  display: block;
  height: 2px;
  margin: 5px 0;
  background: currentColor;
}

.site-main { min-height: 40vh; }
.icnu-page-source {
  width: calc(100% - 8vw);
  margin-right: auto;
  margin-left: auto;
  overflow-x: clip;
  font-family: "Raleway", Arial, sans-serif;
  line-height: 29.184px;
}
.icnu-page-source > :first-child { margin-top: 0; }
:where(.icnu-page-source) h1,
:where(.icnu-page-source) h2,
:where(.icnu-page-source) h3 {
  margin-top: 32px;
  letter-spacing: -.05em;
}
:where(.icnu-page-source) h3 { line-height: 1.1232; }
:where(.icnu-page-source) p { margin-top: 16px; margin-bottom: 16px; }

.site-footer {
  padding: 61.25px 4vw 47.5px;
  color: var(--icnu-text);
  background: var(--icnu-white);
  text-align: center;
}
.site-footer::before {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  margin: 0 auto 24.74px;
  background: #ec5c39;
}
.footer-title {
  margin: 0 auto 25.74px;
  padding-bottom: 73.69px;
  border-bottom: 1px solid #ec5c39;
  font-family: "Space Grotesk", Arial, sans-serif;
  font-size: 52.288px;
  font-weight: 500;
  line-height: 57.475px;
  color: #ec5c39;
}
.footer-navigation ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
}
.footer-navigation li:not(:last-child)::after { content: " | "; white-space: pre; }
.footer-navigation a { color: #ec5c39; font-size: 19px; text-decoration: underline; text-underline-offset: .12em; }
.footer-navigation a:hover { color: var(--icnu-orange); }
.footer-contact { margin: 16px 0 0; color: #ec5c39; font-size: 19.456px; line-height: 29.184px; }
.footer-contact a { text-decoration: none; }
.footer-contact a:hover { color: var(--icnu-orange); text-decoration: underline; }

/* Homepage */
.icnu-home-hero {
  position: relative;
  min-height: 1516px;
  padding: 514px 24px 115px;
  color: #fff;
  background: #111 url("assets/home-hero.webp") center center / cover no-repeat;
  text-align: center;
}
.icnu-home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .62);
}
.icnu-home-hero-inner { position: relative; max-width: 1102.1875px; margin: 0 auto; }
.icnu-home-hero h1 {
  max-width: 1102.1875px;
  margin: 0 auto 32px;
  font-family: "Space Grotesk", Arial, sans-serif;
  font-size: clamp(3rem, 5.43vw, 4.888rem);
  font-weight: 500;
  line-height: 1.027;
  letter-spacing: -.05em;
}
.icnu-home-hero p {
  max-width: 1102.1875px;
  margin: 0 auto;
  font-size: clamp(1rem, 1.591vw, 1.432rem);
  line-height: 1.5;
}
.icnu-home-kicker {
  margin-top: 138px !important;
  font-family: "Space Grotesk", Arial, sans-serif;
  font-size: clamp(3rem, 7.4vw, 6.6625rem) !important;
  font-style: italic;
  font-weight: 500;
  line-height: 1 !important;
  letter-spacing: -.05em;
  color: #ec5c39;
}
.icnu-home-hero a { text-underline-offset: .15em; }
.icnu-home-steps { padding: 0; text-align: center; }
.icnu-home-steps h2 {
  margin: 0 0 10px;
  font-family: "Space Grotesk", Arial, sans-serif;
  font-size: clamp(2.3rem, 5.22vw, 4.7rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.05em;
  color: #ec5c39;
}
.icnu-home-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-areas: "church nonprofit smallbiz" ". call .";
  gap: 0 28px;
  max-width: 760px;
  margin: 0 auto;
}
.icnu-home-options a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 107px;
  padding: 18px;
  color: #ec5c39;
  background: transparent;
  border: 0;
  font-family: "Space Grotesk", Arial, sans-serif;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
  text-decoration: none;
  transition: color .2s, transform .2s;
}
.icnu-home-options a:nth-child(1) { grid-area: church; }
.icnu-home-options a:nth-child(2) { grid-area: nonprofit; }
.icnu-home-options a:nth-child(4) { grid-area: smallbiz; }
.icnu-home-options .book-call { grid-area: call; }
.icnu-home-options .book-call { position: relative; top: -28px; }
.icnu-home-options a:hover { color: #fff; transform: translateY(-2px); }

/* Blog archive */
.icnu-blog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 70px 48px;
  width: min(var(--icnu-content), calc(100% - 8vw));
  margin: 0 auto;
  padding: 0 0 90px;
}
.icnu-post-card-image {
  display: block;
  aspect-ratio: 16 / 9;
  margin-bottom: 26px;
  overflow: hidden;
  background: var(--icnu-warm-dark);
}
.icnu-post-card-image img { width: 100%; height: 100%; object-fit: cover; }
.icnu-post-date,
.icnu-post-author {
  margin: 0 0 10px;
  color: var(--icnu-muted);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.icnu-post-card h2 {
  margin: 0 0 16px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.6rem, 2.4vw, 2.25rem);
  line-height: 1.18;
  color: var(--icnu-dark);
}
.icnu-post-card h2 a { text-decoration: none; }
.icnu-post-card h2 a:hover { color: var(--icnu-orange); }
.icnu-post-excerpt { color: var(--icnu-muted); font-size: .98rem; line-height: 1.75; }
.icnu-post-excerpt p { margin: 0; }
.icnu-read-more {
  display: inline-block;
  margin-top: 20px;
  color: var(--icnu-orange);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
}
.icnu-read-more:hover { text-decoration: underline; }
.icnu-pagination {
  display: flex;
  justify-content: space-between;
  width: min(var(--icnu-content), calc(100% - 8vw));
  margin: -30px auto 90px;
  font-size: .9rem;
  font-weight: 600;
}
.icnu-pagination a { color: var(--icnu-orange); text-decoration: none; }

/* Single posts */
.icnu-single {
  width: min(var(--icnu-reading), calc(100% - 44px));
  margin: 0 auto;
  padding: 0 0 90px;
}
.icnu-single-header { margin-bottom: 42px; text-align: center; }
.icnu-single h1 {
  margin: 0 0 20px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.3rem, 5vw, 4rem);
  line-height: 1.08;
  color: var(--icnu-dark);
}
.icnu-single-meta { color: var(--icnu-muted); font-size: .85rem; }
.icnu-single-content { font-size: 1.05rem; line-height: 1.85; }
.icnu-single-content h2,
.icnu-single-content h3 { font-family: "Playfair Display", Georgia, serif; color: var(--icnu-dark); }
.icnu-single-content img { margin: 30px auto; }
.icnu-post-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 60px;
  padding-top: 30px;
  border-top: 1px solid var(--icnu-border);
}
.icnu-post-navigation a { color: var(--icnu-dark); text-decoration: none; }
.icnu-post-navigation .next { text-align: right; }

/* Intake pages */
.icnu-intake {
  width: min(1050px, calc(100% - 40px));
  margin: 0 auto;
  padding: 0 0 90px;
}
.icnu-intake-header { max-width: 760px; margin: 0 auto 38px; text-align: center; }
.icnu-intake h1 {
  margin: 0 0 18px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  color: var(--icnu-dark);
}
.icnu-intake p { color: var(--icnu-muted); line-height: 1.75; }
.icnu-intake-frame {
  display: block;
  width: 100%;
  min-height: 1600px;
  border: 1px solid var(--icnu-border);
  background: #fff;
}
.icnu-intake-actions { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; margin-top: 28px; }
.icnu-button {
  display: inline-block;
  padding: .9rem 1.6rem;
  color: #fff;
  background: var(--icnu-orange);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  text-decoration: none;
}
.icnu-button.secondary { color: var(--icnu-dark); background: transparent; border: 1px solid var(--icnu-border); }

.icnu-404 { max-width: 760px; margin: 0 auto; padding: 0 24px 110px; text-align: center; }
.icnu-404 h1 { font-family: "Playfair Display", Georgia, serif; font-size: clamp(2.5rem, 6vw, 4.5rem); color: var(--icnu-dark); }

@media (min-width: 781px) and (max-width: 1100px) {
  .primary-navigation { max-width: 500px; }
  .icnu-home-hero { min-height: 1100px; padding-top: 430px; }
}

@media (max-width: 780px) {
  .site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 80px 48px 60px;
    text-align: left;
  }
  .site-branding { margin: 0; }
  .site-logo { width: min(334px, 48vw); }
  .primary-navigation {
    position: absolute;
    top: calc(100% - 50px);
    right: 24px;
    left: 24px;
    margin-top: 0;
  }
  .menu-toggle { display: block; }
  .primary-navigation ul {
    display: none;
    flex-direction: column;
    gap: 0;
    margin: 18px auto 0;
    padding: 14px;
    background: #fff;
    border: 1px solid var(--icnu-border);
  }
  .home .primary-navigation ul,
  .front-page .primary-navigation ul { color: var(--icnu-dark); }
  .primary-navigation.is-open ul { display: flex; }
  .primary-navigation a { padding: 11px 8px; font-size: 17px; }
  .menu-toggle {
    flex: 0 0 auto;
    margin: 0 0 0 auto;
    border: 0;
  }
  .icnu-home-hero { min-height: 950px; padding: 448px 22px 80px; background-position: 52% center; }
  .icnu-home-hero h1 { font-size: clamp(2.4rem, 10vw, 3.5rem); }
  .icnu-home-kicker { margin-top: 86px !important; }
  .icnu-blog-grid { grid-template-columns: 1fr; width: min(100% - 40px, 640px); gap: 58px; }
  .icnu-pagination { width: min(100% - 40px, 640px); }
  .site-footer { padding-top: 58px; }
  .footer-title { font-size: clamp(2rem, 10vw, 3.1rem); line-height: 1.15; }
  .footer-navigation ul { line-height: 1.9; }
  .icnu-post-navigation { grid-template-columns: 1fr; }
  .icnu-post-navigation .next { text-align: left; }
  .icnu-intake-frame { min-height: 1900px; }
}

@media (max-width: 767px) {
  .site-header { padding: 30px 24px 108px; }
  .site-logo { width: 40px; }
  .menu-toggle { width: 42px; height: 30px; padding: 3px 2px; }
  .primary-navigation { top: calc(100% - 64px); }
  .icnu-home-hero { min-height: 1180px; padding-top: 448px; }
  .icnu-home-hero h1 {
    max-width: 300px;
    margin-right: 0;
    margin-left: 44px;
    font-size: 48px;
    line-height: 1.1;
    text-align: left;
  }
  .icnu-home-options { grid-template-columns: 1fr; grid-template-areas: "church" "nonprofit" "call" "smallbiz"; gap: 0; }
  .icnu-home-options .book-call { top: 0; }
  .icnu-page-source { width: calc(100% - 12vw); }
}

@media (min-width: 768px) and (max-width: 780px) {
  .site-header { align-items: flex-start; }
  .site-branding { height: 185px; overflow: hidden; }
  .menu-toggle { margin-top: 75px; }
  .icnu-home-hero h1 { max-width: 520px; font-size: 46px; line-height: 1.12; }
  .icnu-home-hero p { max-width: 600px; }
}
