/*
Theme Name: Joshua's House
Theme URI: https://www.homeofyeshua.org/
Author: Joshua's House
Author URI: https://www.homeofyeshua.org/
Description: A responsive nonprofit and ministry theme for Joshua's House, preserving the original Houston-centered design while adding WordPress editing, donation, blog, and WooCommerce support.
Version: 1.2.1
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: joshuas-house
Tags: nonprofit, blog, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, wide-blocks
*/

:root {
  --jh-ink: #111111;
  --jh-cream: #f5f5f3;
  --jh-paper: #ffffff;
  --jh-sun: #d71920;
  --jh-clay: #d71920;
  --jh-leaf: #a70f14;
  --jh-line: rgba(17, 17, 17, 0.16);
  --jh-shadow: 0 24px 70px rgba(17, 17, 17, 0.14);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--jh-ink);
  background: var(--jh-cream);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background: linear-gradient(145deg, #ffffff 0%, #f7f7f6 48%, #ededeb 100%);
}

img { max-width: 100%; height: auto; }
a { color: inherit; }
.screen-reader-text {
  position: absolute !important;
  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 {
  top: 8px; left: 8px; z-index: 100000;
  width: auto; height: auto; padding: 12px 18px; margin: 0;
  clip: auto; background: var(--jh-paper); color: var(--jh-ink);
  border-radius: 8px; box-shadow: var(--jh-shadow);
}
.jh-wrap, .alignwide { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.alignfull { width: 100%; }

.jh-site-header {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 24px 0;
}
.jh-brand, .custom-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -.02em;
}
.custom-logo { max-height: 58px; width: auto; }
.jh-brand-area { flex: 0 1 390px; }
.jh-brand--official, .jh-brand--official picture { display: block; }
.jh-official-logo { display: block; width: min(360px, 38vw); height: auto; max-height: 94px; object-fit: contain; object-position: left center; }
.jh-mark {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 10px;
  color: var(--jh-paper);
  background: var(--jh-clay);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 23px;
  font-weight: 900;
  box-shadow: 6px 7px 0 #111;
}
.jh-primary-nav { display: flex; align-items: center; gap: 28px; }
.jh-primary-nav ul { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.jh-primary-nav a { text-decoration: none; font-size: .92rem; font-weight: 600; }
.jh-primary-nav a:hover, .jh-primary-nav a:focus { color: var(--jh-leaf); }
.jh-primary-nav .menu-item:last-child > a,
.jh-nav-button { padding: 10px 18px; border: 1px solid var(--jh-ink); border-radius: 999px; }
.jh-menu-toggle {
  display: none;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--jh-ink);
  border-radius: 999px;
  color: var(--jh-ink);
  background: transparent;
  font: inherit;
  font-weight: 700;
}

h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-weight: 800;
  line-height: 1.04;
}
.jh-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 24px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.jh-eyebrow::before { content: ""; width: 38px; height: 3px; background: var(--jh-clay); }
.jh-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.jh-button,
.wp-block-button__link,
button,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  text-decoration: none;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.jh-button:hover, .jh-button:focus, .wp-block-button__link:hover { transform: translateY(-3px); }
.jh-button--primary { color: #fff; background: var(--jh-clay); box-shadow: 0 10px 30px rgba(215,25,32,.24); }
.jh-button--secondary { color: var(--jh-ink); background: transparent; border: 1px solid var(--jh-ink); }

.jh-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  align-items: center;
  gap: 70px;
  min-height: 610px;
  padding: 40px 0 55px;
}
.jh-hero h1 {
  max-width: 800px;
  margin-bottom: 24px;
  font-size: clamp(4rem, 8.5vw, 8rem);
  letter-spacing: -.065em;
}
.jh-hero h1 span { display: block; color: var(--jh-clay); }
.jh-hero-copy { max-width: 620px; margin: 0 0 34px; font-size: clamp(1.08rem, 2vw, 1.32rem); }
.jh-hero-art { position: relative; min-height: 490px; animation: jh-rise 850ms ease both 150ms; }
.jh-arch {
  position: absolute;
  inset: 15px 0 0 15px;
  overflow: hidden;
  border-radius: 220px 220px 24px 24px;
  background:
    radial-gradient(ellipse at 30% 35%, rgba(255,255,255,.96), transparent 22%),
    radial-gradient(ellipse at 70% 62%, rgba(255,255,255,.8), transparent 25%),
    linear-gradient(165deg, #ffffff 0%, #f06b70 62%, #d71920 100%);
  box-shadow: var(--jh-shadow);
}
.jh-arch::before {
  content: "";
  position: absolute;
  width: 260px; height: 260px;
  left: 50%; top: 50%;
  border: 40px solid var(--jh-paper);
  border-radius: 50%;
  transform: translate(-50%,-50%);
  opacity: .9;
}
.jh-arch::after {
  content: "HOPE\A LIVES\A HERE";
  white-space: pre;
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--jh-ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  font-weight: 800;
  line-height: .9;
  letter-spacing: -.05em;
}
.jh-location-tag {
  position: absolute;
  right: -25px;
  bottom: 32px;
  z-index: 2;
  width: 145px; height: 145px;
  display: grid;
  place-items: center;
  padding: 20px;
  border-radius: 50%;
  color: #fff;
  background: var(--jh-ink);
  text-align: center;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  transform: rotate(8deg);
}

.jh-statement { padding: 52px 0 60px; color: var(--jh-paper); background: linear-gradient(135deg,#111111 0%,#2b2b2b 62%,#8b1115 100%); }
.jh-mission-intro { max-width: 900px; text-align: center; }
.jh-mission-intro .jh-eyebrow { justify-content: center; }
.jh-statement h2 { margin-bottom: 18px; font-size: clamp(2.6rem,5vw,5rem); letter-spacing: -.045em; }
.jh-statement .jh-lead { max-width: 820px; margin: 0 auto; color: rgba(255,255,255,.82); font-size: 1.17rem; }
.jh-impact-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-top: 38px; }
.jh-impact-card { overflow: hidden; border: 1px solid rgba(255,255,255,.18); border-radius: 22px; background: rgba(255,255,255,.08); }
.jh-impact-card img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.jh-impact-copy { padding: 24px; }
.jh-impact-copy h3 { margin-bottom: 10px; color: #fff; font-size: 1.75rem; }
.jh-impact-copy p { margin: 0; color: rgba(255,255,255,.78); }

.jh-story { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(36px,6vw,80px); padding: 58px 0; }
.jh-story-heading h2 { max-width: 560px; margin: 0; font-size: clamp(2.8rem,5vw,5.2rem); letter-spacing: -.055em; }
.jh-story-copy { max-width: 720px; }
.jh-story-copy > p { margin: 0 0 24px; font-size: 1.08rem; }
.jh-founder-signoff { margin-top: 38px; padding: 24px 0 0; border-top: 4px solid var(--jh-clay); }
.jh-founder-signoff strong, .jh-founder-signoff span { display: block; }
.jh-founder-signoff strong { font-size: 1.25rem; }
.jh-founder-signoff span { margin-top: 4px; color: rgba(17,17,17,.68); }

.jh-media-callout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  margin-bottom: 58px;
  border-radius: 30px;
  background: linear-gradient(135deg,#111111 0%,#3b1113 62%,#d71920 100%);
  box-shadow: var(--jh-shadow);
}
.jh-media-copy { padding: clamp(42px,7vw,86px); color: #fff; }
.jh-media-copy h2 { margin-bottom: 22px; font-size: clamp(2.7rem,5vw,4.8rem); letter-spacing: -.045em; }
.jh-media-copy p { max-width: 560px; margin-bottom: 28px; color: rgba(255,255,255,.84); font-size: 1.08rem; }
.jh-media-copy .jh-button--secondary { color: #fff; border-color: #fff; }
.jh-media-visual {
  min-height: 470px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle,transparent 25%,rgba(17,17,17,.10) 26%,transparent 27%) 0 0/42px 42px,
    linear-gradient(145deg,#ffffff 0%,#e7e7e5 100%);
}
.jh-play { width: 180px; height: 180px; display: grid; place-items: center; border: 18px solid var(--jh-paper); border-radius: 50%; color: var(--jh-paper); font-size: 4.5rem; transform: rotate(-4deg); }
.jh-video-embed { width: 100%; aspect-ratio: 16 / 9; }
.jh-video-embed iframe, .jh-video-embed video { width: 100%; height: 100%; border: 0; }

.jh-campaign { padding: 52px 0 60px; }
.jh-campaign-top { display: grid; grid-template-columns: 1.4fr .6fr; gap: 36px; align-items: center; margin-bottom: 36px; }
.jh-campaign h2 { margin-bottom: 22px; font-size: clamp(2.8rem,5vw,5rem); letter-spacing: -.05em; }
.jh-campaign-lead { max-width: 760px; font-size: 1.12rem; }
.jh-campaign-goal { padding: 38px 24px; border: 1px solid var(--jh-line); border-radius: 28px; background: linear-gradient(145deg,#fff,#f3d8d9); text-align: center; box-shadow: var(--jh-shadow); }
.jh-campaign-goal strong { display: block; color: var(--jh-clay); font-family: system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif; font-size: clamp(3.4rem,6vw,5.2rem); font-weight: 900; letter-spacing: -.06em; line-height: 1.1; }
.jh-campaign-goal span { display: block; margin-top: 12px; font-weight: 600; }
.jh-campaign-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; margin-bottom: 28px; }
.jh-campaign-card { padding: 30px; border: 1px solid var(--jh-line); border-radius: 24px; background: rgba(255,255,255,.72); }
.jh-campaign-card h3 { margin-bottom: 14px; font-size: 1.9rem; }
.jh-campaign-card p { margin: 0; }
.jh-campaign-budget { margin: 28px 0; padding: 24px; border: 1px solid var(--jh-line); border-radius: 20px; background: rgba(255,255,255,.55); }
.jh-campaign-budget summary { cursor: pointer; font-weight: 700; }
.jh-campaign-budget dl { display: grid; grid-template-columns: 1fr auto; gap: 12px 24px; margin: 24px 0 0; }
.jh-campaign-budget dt, .jh-campaign-budget dd { margin: 0; }
.jh-campaign-budget dd { font-weight: 700; text-align: right; }
.jh-sponsor-levels { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 30px; }
.jh-sponsor-levels span { padding: 10px 16px; border: 1px solid var(--jh-line); border-radius: 999px; background: #fff; font-size: .9rem; }
.jh-campaign-note { max-width: 880px; margin-top: 24px; color: rgba(17,17,17,.78); font-size: .9rem; }

.jh-wishlist { display: grid; grid-template-columns: 1.35fr .65fr; gap: 36px; align-items: center; margin-bottom: 58px; padding: clamp(32px,4vw,52px); border-radius: 30px; background: linear-gradient(135deg,#fff4c8 0%,#ffd967 100%); box-shadow: var(--jh-shadow); }
.jh-wishlist h2 { margin-bottom: 18px; font-size: clamp(2.6rem,5vw,4.5rem); letter-spacing: -.045em; }
.jh-wishlist-copy > p:last-child { max-width: 700px; margin-bottom: 0; }
.jh-wishlist-action { text-align: center; }
.jh-button--amazon { color: #111 !important; border-color: #ff9900; background: #ffb84d; box-shadow: 0 8px 0 #d67f00; }
.jh-button--amazon:hover { background: #ffc56e; }
.jh-button--amazon.is-disabled { cursor: default; opacity: .78; }

.jh-contact { padding: 55px 0; text-align: center; }
.jh-contact h2 { max-width: 900px; margin: 0 auto 25px; font-size: clamp(3.2rem,7vw,7rem); letter-spacing: -.06em; }
.jh-contact p { max-width: 650px; margin: 0 auto 34px; font-size: 1.08rem; }
.jh-contact-email { overflow-wrap: anywhere; }
.jh-identity-note { margin-top: 28px !important; color: rgba(17,17,17,.72); font-size: .9rem !important; }

.jh-site-footer { padding: 32px 0; border-top: 1px solid var(--jh-line); }
.jh-footer-row { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: rgba(17,17,17,.72); text-align: center; font-size: .88rem; }
.jh-footer-menu { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; list-style: none; margin: 0; padding: 0; }
.jh-footer-menu a { text-decoration: none; }
.jh-trust-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 22px; margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--jh-line); text-align: center; font-size: .88rem; }
.jh-trust-links a { color: rgba(17,17,17,.76); text-decoration: none; }
.jh-trust-links a:hover, .jh-trust-links a:focus { color: var(--jh-clay); text-decoration: underline; }

.jh-content-shell { width: min(900px,calc(100% - 40px)); margin: 0 auto; padding: 80px 0 110px; }
.home .jh-content-shell { padding: 42px 0 50px; }
.jh-page-header { margin-bottom: 42px; }
.jh-page-header h1 { margin-bottom: 18px; font-size: clamp(3rem,7vw,6.4rem); letter-spacing: -.055em; }
.jh-entry-content { font-size: 1.05rem; }
.jh-entry-content > * { max-width: 760px; margin-left: auto; margin-right: auto; }
.jh-entry-content > .alignwide { max-width: 1180px; }
.jh-entry-content > .alignfull { max-width: none; }
.jh-entry-content h2 { margin-top: 2em; font-size: clamp(2rem,4vw,3.2rem); }
.jh-entry-content a { color: var(--jh-leaf); }
.jh-post-card { margin-bottom: 24px; padding: 30px; border: 1px solid var(--jh-line); border-radius: 24px; background: rgba(255,255,255,.7); }
.jh-post-card h2 { margin-bottom: 10px; font-size: clamp(2rem,4vw,3rem); }
.jh-post-card h2 a { text-decoration: none; }
.jh-meta { margin-bottom: 18px; color: rgba(18,52,91,.68); font-size: .9rem; }
.jh-pagination { margin-top: 40px; }
.jh-notice { padding: 22px; border-left: 5px solid var(--jh-sun); border-radius: 12px; background: #fff; }

input[type="text"], input[type="email"], input[type="url"], input[type="number"], input[type="password"], textarea, select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--jh-line);
  border-radius: 10px;
  color: var(--jh-ink);
  background: #fff;
  font: inherit;
}

.woocommerce .button, .woocommerce button.button, .woocommerce input.button,
.wp-block-button__link { color: #fff !important; background: var(--jh-ink) !important; }
.woocommerce ul.products li.product, .woocommerce div.product {
  padding: 20px;
  border: 1px solid var(--jh-line);
  border-radius: 18px;
  background: rgba(255,255,255,.75);
}

.jh-reveal { animation: jh-rise 750ms ease both; }
@keyframes jh-rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
@media (max-width: 850px) {
  .jh-menu-toggle { display: inline-flex; }
  .jh-primary-nav { display: none; position: absolute; top: calc(100% - 8px); left: 20px; right: 20px; padding: 18px; border: 1px solid var(--jh-line); border-radius: 18px; background: #fff; box-shadow: var(--jh-shadow); }
  .jh-primary-nav.is-open { display: block; }
  .jh-primary-nav ul { flex-direction: column; align-items: stretch; gap: 8px; }
  .jh-primary-nav a { display: block; padding: 10px 12px; }
  .jh-hero { grid-template-columns: 1fr; gap: 20px; min-height: auto; padding: 36px 0 52px; }
  .jh-hero-art { min-height: 430px; }
  .jh-location-tag { right: 5px; }
  .jh-story, .jh-media-callout, .jh-campaign-top, .jh-campaign-grid, .jh-wishlist { grid-template-columns: 1fr; }
  .jh-impact-grid { grid-template-columns: 1fr; max-width: 680px; }
  .jh-section-head { display: block; }
  .jh-section-head p { margin-top: 20px; }
  .jh-media-visual { min-height: 330px; }
  .jh-campaign { padding: 46px 0 54px; }
  .jh-campaign-goal { max-width: 450px; }
}
@media (max-width: 520px) {
  .jh-wrap, .alignwide, .jh-content-shell { width: min(100% - 28px,1180px); }
  .jh-brand-text { font-size: .92rem; }
  .jh-brand-area { flex-basis: 245px; }
  .jh-official-logo { width: min(245px, 64vw); max-height: 76px; }
  .jh-hero h1 { font-size: clamp(3.15rem,16vw,4rem); overflow-wrap: anywhere; }
  .jh-hero-art { min-height: 365px; }
  .jh-location-tag { width: 115px; height: 115px; font-size: .67rem; }
  .jh-statement, .jh-contact { padding: 46px 0; }
  .jh-footer-row { flex-direction: column; }
  .jh-campaign-budget dl { grid-template-columns: 1fr; }
  .jh-campaign-budget dd { margin-bottom: 8px; text-align: left; }
}
