/*
Theme Name: iHopePrayLove Life Inventory
Theme URI: https://ihopepraylove.com/
Author: Custom theme generated for iHopePrayLove
Author URI: https://ihopepraylove.com/
Description: A warm, structured WordPress theme for iHopePrayLove's faith-based Life Inventory rebrand. Built for 1:1 Life Inventory Audits, reset resources, journaling, and service-based monetization.
Version: 1.3.0
Requires at least: 6.0
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: ihpl-life-inventory
Tags: blog, custom-logo, custom-menu, featured-images, block-styles, wide-blocks, editor-style, accessibility-ready
*/

:root {
  --ihpl-ivory: #F8F3EA;
  --ihpl-paper: #FFFDF8;
  --ihpl-olive: #3D4A33;
  --ihpl-olive-dark: #2F3A28;
  --ihpl-clay: #B66E53;
  --ihpl-mauve: #B9827F;
  --ihpl-gold: #C8A15A;
  --ihpl-charcoal: #2B2B2B;
  --ihpl-muted: #6F665E;
  --ihpl-line: rgba(61, 74, 51, 0.18);
  --ihpl-shadow: 0 22px 60px rgba(47, 58, 40, 0.12);
  --ihpl-radius: 28px;
  --ihpl-container: 1120px;
  --ihpl-body-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ihpl-heading-font: Lora, Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ihpl-charcoal);
  background: var(--ihpl-ivory);
  font-family: var(--ihpl-body-font);
  font-size: 17px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }
a { color: var(--ihpl-olive); text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
a:hover { color: var(--ihpl-clay); }
button, input, textarea, select { font: inherit; }

.screen-reader-text,
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  position: fixed;
  z-index: 9999;
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  padding: 0.75rem 1rem;
  color: #fff;
  background: var(--ihpl-olive);
  border-radius: 999px;
}

.container {
  width: min(calc(100% - 36px), var(--ihpl-container));
  margin-inline: auto;
}
.narrow { max-width: 760px; }
.wide { max-width: 1240px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 243, 234, 0.92);
  border-bottom: 1px solid var(--ihpl-line);
  backdrop-filter: blur(16px);
}
.admin-bar .site-header { top: 32px; }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  gap: 1.5rem;
}
.site-branding {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 210px;
}
.custom-logo-link img { display: block; max-height: 56px; width: auto; }
.builtin-logo-link { display: inline-flex; align-items: center; text-decoration: none; }
.builtin-logo { display: block; width: min(230px, 42vw); height: auto; }
.brand-stack { display: grid; gap: 0.1rem; }
.brand-wordmark {
  color: var(--ihpl-olive-dark);
  font-family: var(--ihpl-heading-font);
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  letter-spacing: -0.02em;
}
.brand-tagline {
  color: var(--ihpl-muted);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.primary-navigation { display: flex; align-items: center; gap: 1rem; }
.primary-navigation ul,
.footer-navigation ul {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0;
  margin: 0;
  list-style: none;
}
.primary-navigation a,
.footer-navigation a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.3rem 0.75rem;
  color: var(--ihpl-charcoal);
  font-weight: 650;
  font-size: 0.92rem;
  text-decoration: none;
  border-radius: 999px;
}
.primary-navigation a:hover,
.footer-navigation a:hover {
  color: var(--ihpl-olive-dark);
  background: rgba(61, 74, 51, 0.08);
}
.header-cta { white-space: nowrap; }
.nav-toggle { display: none; }

.btn,
.wp-block-button__link,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.2rem;
  color: #fff;
  background: var(--ihpl-olive);
  border: 2px solid var(--ihpl-olive);
  border-radius: 999px;
  font-weight: 800;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}
.btn:hover,
.wp-block-button__link:hover,
input[type="submit"]:hover {
  color: #fff;
  background: var(--ihpl-olive-dark);
  border-color: var(--ihpl-olive-dark);
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(61, 74, 51, 0.18);
}
.btn-secondary {
  color: var(--ihpl-olive-dark);
  background: transparent;
  border-color: rgba(61, 74, 51, 0.34);
}
.btn-secondary:hover {
  color: var(--ihpl-olive-dark);
  background: rgba(61, 74, 51, 0.08);
  border-color: rgba(61, 74, 51, 0.46);
}
.btn-clay { background: var(--ihpl-clay); border-color: var(--ihpl-clay); }
.btn-clay:hover { background: #9f5c44; border-color: #9f5c44; }

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(4rem, 8vw, 7rem) 0 clamp(3rem, 7vw, 6rem);
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -8% auto auto;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(200,161,90,0.28), transparent 68%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 1rem;
  color: var(--ihpl-clay);
  font-weight: 900;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--ihpl-gold);
}
h1, h2, h3, h4, h5, h6 {
  color: var(--ihpl-olive-dark);
  font-family: var(--ihpl-heading-font);
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin: 0 0 1rem;
}
h1 { font-size: clamp(2.55rem, 6vw, 5.25rem); }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
h3 { font-size: clamp(1.35rem, 2.6vw, 2rem); }
p { margin: 0 0 1rem; }
.lead {
  max-width: 720px;
  color: var(--ihpl-muted);
  font-size: clamp(1.08rem, 2vw, 1.28rem);
  line-height: 1.65;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.7rem;
}
.hero-note {
  margin-top: 1.3rem;
  color: var(--ihpl-muted);
  font-size: 0.95rem;
}
.inventory-card {
  position: relative;
  padding: clamp(1.35rem, 3vw, 2rem);
  background: var(--ihpl-paper);
  border: 1px solid var(--ihpl-line);
  border-radius: var(--ihpl-radius);
  box-shadow: var(--ihpl-shadow);
}
.inventory-card::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px dashed rgba(61, 74, 51, 0.22);
  border-radius: calc(var(--ihpl-radius) - 9px);
  pointer-events: none;
}
.card-kicker { color: var(--ihpl-mauve); font-size: 0.78rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.12em; }
.method-list { display: grid; gap: 0.9rem; margin-top: 1.4rem; }
.method-line {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 0.85rem;
  align-items: start;
  padding: 1rem;
  background: rgba(248, 243, 234, 0.7);
  border-radius: 20px;
}
.method-letter {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: #fff;
  background: var(--ihpl-olive);
  border-radius: 50%;
  font-family: var(--ihpl-heading-font);
  font-size: 1.4rem;
  font-weight: 800;
}
.method-line strong { color: var(--ihpl-olive-dark); display: block; margin-bottom: 0.15rem; }
.method-line span { color: var(--ihpl-muted); font-size: 0.95rem; }

.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-alt { background: rgba(255, 253, 248, 0.62); }
.section-header { margin-bottom: 2rem; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 1.1rem;
}
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.panel,
.wp-block-group.is-style-ihpl-card {
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--ihpl-paper);
  border: 1px solid var(--ihpl-line);
  border-radius: var(--ihpl-radius);
  box-shadow: 0 14px 40px rgba(47, 58, 40, 0.06);
}
.panel h3 { margin-bottom: 0.55rem; }
.panel p, .panel li { color: var(--ihpl-muted); }
.check-list {
  display: grid;
  gap: 0.85rem;
  padding: 0;
  margin: 0;
  list-style: none;
}
.check-list li {
  position: relative;
  padding-left: 2rem;
  color: var(--ihpl-charcoal);
}
.check-list li::before {
  content: "✓";
  position: absolute;
  top: 0.05rem;
  left: 0;
  display: grid;
  place-items: center;
  width: 1.35rem;
  height: 1.35rem;
  color: #fff;
  background: var(--ihpl-clay);
  border-radius: 50%;
  font-size: 0.82rem;
  font-weight: 900;
}
.quote-panel {
  padding: clamp(1.8rem, 4vw, 3rem);
  color: #fff;
  background: linear-gradient(135deg, var(--ihpl-olive), var(--ihpl-olive-dark));
  border-radius: var(--ihpl-radius);
  box-shadow: var(--ihpl-shadow);
}
.quote-panel h2, .quote-panel h3, .quote-panel p { color: #fff; }
.quote-panel .eyebrow { color: rgba(255,255,255,0.78); }
.quote-panel .eyebrow::before { background: var(--ihpl-gold); }
.price-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.45rem 0.85rem;
  color: var(--ihpl-olive-dark);
  background: rgba(200,161,90,0.24);
  border: 1px solid rgba(200,161,90,0.44);
  border-radius: 999px;
  font-weight: 900;
}
.audit-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 1.5rem;
  align-items: center;
}
.audit-meta { display: grid; gap: 0.75rem; }
.meta-line {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.22);
  color: rgba(255,255,255,0.84);
}
.meta-line strong { color: #fff; }

.post-card {
  display: grid;
  overflow: hidden;
  min-height: 100%;
  background: var(--ihpl-paper);
  border: 1px solid var(--ihpl-line);
  border-radius: var(--ihpl-radius);
  box-shadow: 0 14px 40px rgba(47, 58, 40, 0.06);
}
.post-card-image { aspect-ratio: 1.55; background: rgba(61, 74, 51, 0.1); }
.post-card-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-card-body { padding: 1.25rem; }
.post-meta { color: var(--ihpl-muted); font-size: 0.86rem; font-weight: 700; }
.post-card h3 { font-size: 1.35rem; margin-top: 0.45rem; }
.post-card h3 a { color: var(--ihpl-olive-dark); text-decoration: none; }
.post-card h3 a:hover { color: var(--ihpl-clay); }
.read-more { font-weight: 850; }

.site-main { min-height: 56vh; }
.page-hero {
  padding: clamp(3rem, 7vw, 6rem) 0 2.5rem;
}
.content-wrap {
  width: min(calc(100% - 36px), 860px);
  margin-inline: auto;
  padding: clamp(1.5rem, 4vw, 3rem);
  background: var(--ihpl-paper);
  border: 1px solid var(--ihpl-line);
  border-radius: var(--ihpl-radius);
}
.entry-content > * { margin-top: 0; margin-bottom: 1.15rem; }
.entry-content > h2, .entry-content > h3 { margin-top: 2rem; }
.entry-content ul, .entry-content ol { padding-left: 1.3rem; }
.entry-content blockquote {
  margin: 2rem 0;
  padding: 1.3rem 1.5rem;
  border-left: 4px solid var(--ihpl-clay);
  background: rgba(248, 243, 234, 0.7);
  border-radius: 0 20px 20px 0;
}
.wp-caption, .wp-block-image { max-width: 100%; }
.alignwide { max-width: var(--ihpl-container); margin-inline: auto; }
.alignfull { max-width: none; margin-inline: calc(50% - 50vw); }

input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  color: var(--ihpl-charcoal);
  background: #fff;
  border: 1px solid var(--ihpl-line);
  border-radius: 16px;
}
label { font-weight: 800; color: var(--ihpl-olive-dark); }
.comment-list { padding-left: 1.3rem; }

.pagination-wrap {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 2rem;
}
.pagination-wrap .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  padding: 0.4rem 0.7rem;
  color: var(--ihpl-olive-dark);
  background: var(--ihpl-paper);
  border: 1px solid var(--ihpl-line);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
}
.pagination-wrap .page-numbers.current,
.pagination-wrap .page-numbers:hover {
  color: #fff;
  background: var(--ihpl-olive);
}
.journal-grid { align-items: stretch; }
.contact-hero .inventory-card,
.shop-hero .inventory-card,
.journal-hero .lead { max-width: 780px; margin-inline: auto; }

.site-footer {
  padding: clamp(3rem, 6vw, 4.5rem) 0 2rem;
  color: rgba(255,255,255,0.82);
  background: var(--ihpl-olive-dark);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 2rem;
  align-items: start;
}
.site-footer h2,
.site-footer h3,
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--ihpl-gold); }
.footer-navigation ul { justify-content: flex-start; flex-wrap: wrap; }
.footer-navigation a { color: rgba(255,255,255,0.9); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.25rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255,255,255,0.16);
  font-size: 0.92rem;
}

.ihpl-pattern-cta,
.ihpl-pattern-method { border-radius: var(--ihpl-radius); }

@media (max-width: 980px) {
  .hero-grid,
  .grid-2,
  .grid-3,
  .grid-4,
  .audit-box,
  .footer-grid { grid-template-columns: 1fr; }
  .primary-navigation {
    position: fixed;
    top: 82px;
    left: 18px;
    right: 18px;
    display: none;
    align-items: stretch;
    padding: 1rem;
    background: var(--ihpl-paper);
    border: 1px solid var(--ihpl-line);
    border-radius: 24px;
    box-shadow: var(--ihpl-shadow);
  }
  .admin-bar .primary-navigation { top: 114px; }
  .primary-navigation.is-open { display: block; }
  .primary-navigation ul { display: grid; gap: 0.25rem; }
  .primary-navigation a { width: 100%; justify-content: flex-start; }
  .header-cta { display: none; }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.55rem 0.85rem;
    color: var(--ihpl-olive-dark);
    background: rgba(61,74,51,0.08);
    border: 1px solid var(--ihpl-line);
    border-radius: 999px;
    font-weight: 900;
  }
}

@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
  .admin-bar .primary-navigation { top: 128px; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .container { width: min(calc(100% - 28px), var(--ihpl-container)); }
  .header-inner { min-height: 74px; }
  .brand-tagline { display: none; }
  .primary-navigation { top: 74px; }
  .hero-actions { align-items: stretch; }
  .btn { width: 100%; }
  .method-line { grid-template-columns: 42px 1fr; }
  .method-letter { width: 42px; height: 42px; }
  .footer-bottom { display: grid; }
}

/* Shop Resources Template */
.shop-hero .inventory-card { background: rgba(255, 253, 248, 0.82); }
.ihpl-shop-products { margin-top: 1.5rem; }
.ihpl-shop-products ul.products { margin: 0; }
.ihpl-shop-products .woocommerce ul.products li.product,
.ihpl-shop-products ul.products li.product {
  padding: 1rem;
  background: var(--ihpl-paper);
  border: 1px solid var(--ihpl-line);
  border-radius: 24px;
  box-shadow: 0 14px 40px rgba(47, 58, 40, 0.06);
  text-align: center;
}
.ihpl-shop-products ul.products li.product img { border-radius: 18px; }
.ihpl-shop-products .woocommerce-loop-product__title { color: var(--ihpl-olive-dark); font-family: var(--ihpl-heading-font); }
.ihpl-shop-products .price { color: var(--ihpl-clay) !important; font-weight: 800; }
.ihpl-shop-products .button {
  color: #fff !important;
  background: var(--ihpl-olive) !important;
  border-radius: 999px !important;
  padding: 0.8rem 1.1rem !important;
  text-transform: none;
}

/* About Cobi K. template */
.founder-card .signature-text {
  margin: 1.4rem 0 0;
  color: var(--ihpl-mauve);
  font-family: var(--ihpl-heading-font);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-style: italic;
  line-height: 1;
}
.align-center { align-items: center; }
.grid-5 {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}
.mini-panel { text-align: center; }
.mini-panel .method-letter {
  margin: 0 auto 0.9rem;
}
.mini-panel p { font-size: 0.94rem; }
@media (max-width: 1050px) {
  .grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .grid-5 { grid-template-columns: 1fr; }
}
