/*
Theme Name: Butterfly Life Journeys
Theme URI: https://butterflylifejourneys.com
Author: Butterfly Life Journeys
Author URI: https://butterflylifejourneys.com
Description: A warm, elegant WordPress theme for Butterfly Life Journeys—faith, hope, healing, transformation, and purpose.
Version: 1.0.1
Requires at least: 6.4
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: butterfly-life-journeys
*/

:root {
  --blj-purple: #65346f;
  --blj-plum: #3f2149;
  --blj-pink: #df7897;
  --blj-green: #6da16f;
  --blj-blue: #3995b7;
  --blj-gold: #dba83b;
  --blj-cream: #fffaf2;
  --blj-lilac: #f5edf8;
  --blj-ink: #332b35;
  --blj-muted: #736a75;
  --blj-white: #ffffff;
  --blj-border: rgba(101, 52, 111, .15);
  --blj-shadow: 0 18px 45px rgba(63, 33, 73, .12);
  --blj-radius: 24px;
  --blj-serif: Georgia, "Times New Roman", serif;
  --blj-sans: "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--blj-ink);
  background: var(--blj-white);
  font-family: var(--blj-sans);
  font-size: 17px;
  line-height: 1.7;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blj-purple); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blj-pink); }
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 .65em;
  color: var(--blj-plum);
  font-family: var(--blj-serif);
  line-height: 1.16;
}
h1 { font-size: clamp(2.55rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.35rem); }
h3 { font-size: clamp(1.35rem, 2.3vw, 1.75rem); }
p { margin: 0 0 1.2em; }
button, input, select, textarea { font: 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 {
  z-index: 100000;
  top: 8px; left: 8px;
  width: auto; height: auto;
  padding: 12px 16px;
  clip: auto;
  background: var(--blj-white);
}
.blj-container { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.blj-narrow { width: min(780px, calc(100% - 40px)); margin: 0 auto; }
.blj-section { padding: clamp(70px, 9vw, 120px) 0; }
.blj-section--soft { background: linear-gradient(135deg, var(--blj-cream), var(--blj-lilac)); }
.blj-section--purple { color: var(--blj-white); background: linear-gradient(135deg, var(--blj-plum), var(--blj-purple)); }
.blj-section--purple h2, .blj-section--purple h3, .blj-section--purple a { color: var(--blj-white); }
.blj-eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--blj-pink);
  font-size: .79rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.blj-lead { max-width: 760px; color: var(--blj-muted); font-size: 1.16rem; }
.blj-section--purple .blj-lead { color: rgba(255,255,255,.84); }
.blj-center { text-align: center; }
.blj-center .blj-lead { margin-right: auto; margin-left: auto; }

.blj-topbar {
  padding: 8px 20px;
  color: var(--blj-white);
  background: var(--blj-purple);
  font-size: .9rem;
  text-align: center;
  letter-spacing: .02em;
}
.site-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  border-bottom: 1px solid var(--blj-border);
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(14px);
}
.blj-header-inner {
  display: flex;
  min-height: 92px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.custom-logo-link { display: block; flex: 0 1 350px; }
.custom-logo { width: auto; max-width: 340px; max-height: 74px; object-fit: contain; }
.blj-text-logo { display: flex; flex-direction: column; text-decoration: none; }
.blj-text-logo strong { color: var(--blj-purple); font-family: var(--blj-serif); font-size: 1.65rem; }
.blj-text-logo span { color: var(--blj-muted); font-size: .73rem; letter-spacing: .12em; text-transform: uppercase; }
.main-navigation ul { display: flex; align-items: center; gap: 26px; margin: 0; padding: 0; list-style: none; }
.main-navigation a { color: var(--blj-ink); font-size: .94rem; font-weight: 650; text-decoration: none; }
.main-navigation a:hover, .main-navigation .current-menu-item > a { color: var(--blj-purple); }
.menu-toggle {
  display: none;
  padding: 10px 13px;
  border: 1px solid var(--blj-border);
  border-radius: 12px;
  color: var(--blj-purple);
  background: var(--blj-white);
  font-weight: 700;
}

.blj-hero {
  position: relative;
  min-height: 700px;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 22%, rgba(223,120,151,.19), transparent 28%),
    radial-gradient(circle at 14% 80%, rgba(109,161,111,.18), transparent 28%),
    linear-gradient(135deg, #fffaf4 0%, #f9f0fb 48%, #eef8fa 100%);
}
.blj-hero::before, .blj-hero::after {
  position: absolute;
  width: 280px; height: 280px;
  border: 1px solid rgba(219,168,59,.28);
  border-radius: 50%;
  content: "";
}
.blj-hero::before { top: -145px; left: -110px; }
.blj-hero::after { right: -120px; bottom: -160px; }
.blj-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: 700px;
  align-items: center;
  grid-template-columns: 1.08fr .92fr;
  gap: 50px;
  padding-top: 70px;
  padding-bottom: 70px;
}
.blj-hero h1 span { color: var(--blj-purple); }
.blj-hero-copy > p { max-width: 650px; color: var(--blj-muted); font-size: 1.18rem; }
.blj-hero-art { position: relative; display: flex; align-items: center; justify-content: center; }
.blj-hero-art img { max-height: 560px; object-fit: contain; filter: drop-shadow(0 25px 28px rgba(63,33,73,.14)); }
.blj-verse {
  position: absolute;
  right: 0;
  bottom: 15px;
  max-width: 290px;
  padding: 20px 24px;
  border: 1px solid rgba(219,168,59,.35);
  border-radius: 18px;
  color: var(--blj-plum);
  background: rgba(255,255,255,.9);
  box-shadow: var(--blj-shadow);
  font-family: var(--blj-serif);
  font-size: 1.05rem;
  font-style: italic;
}
.blj-button-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.blj-button, .wp-block-button__link, button[type="submit"], input[type="submit"] {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border: 2px solid var(--blj-purple);
  border-radius: 999px;
  color: var(--blj-white);
  background: var(--blj-purple);
  box-shadow: 0 10px 25px rgba(101,52,111,.2);
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.blj-button:hover, button[type="submit"]:hover, input[type="submit"]:hover {
  color: var(--blj-white);
  background: var(--blj-plum);
  box-shadow: 0 14px 30px rgba(63,33,73,.25);
  transform: translateY(-2px);
}
.blj-button--outline { color: var(--blj-purple); background: transparent; box-shadow: none; }
.blj-button--outline:hover { color: var(--blj-white); }
.blj-button--gold { border-color: var(--blj-gold); color: var(--blj-plum); background: var(--blj-gold); }

.blj-pillars { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.blj-pillar {
  padding: 26px 14px;
  border: 1px solid var(--blj-border);
  border-radius: 20px;
  background: var(--blj-white);
  box-shadow: 0 10px 30px rgba(63,33,73,.06);
  text-align: center;
}
.blj-pillar span { display: block; margin-bottom: 9px; font-size: 1.8rem; }
.blj-pillar strong { color: var(--blj-purple); font-family: var(--blj-serif); }

.blj-grid { display: grid; gap: 28px; }
.blj-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.blj-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.blj-card {
  position: relative;
  overflow: hidden;
  padding: 34px;
  border: 1px solid var(--blj-border);
  border-radius: var(--blj-radius);
  background: var(--blj-white);
  box-shadow: 0 14px 40px rgba(63,33,73,.08);
}
.blj-card::after {
  position: absolute;
  right: -24px;
  bottom: -26px;
  width: 95px; height: 95px;
  border-radius: 50%;
  background: rgba(223,120,151,.08);
  content: "";
}
.blj-card-icon { margin-bottom: 14px; font-size: 2rem; }
.blj-card p { color: var(--blj-muted); }
.blj-card-link { position: relative; z-index: 1; font-weight: 750; }
.blj-split { display: grid; align-items: center; grid-template-columns: .9fr 1.1fr; gap: clamp(35px, 7vw, 90px); }
.blj-split--reverse { grid-template-columns: 1.1fr .9fr; }
.blj-art-frame {
  position: relative;
  min-height: 480px;
  padding: 34px;
  border-radius: 40% 60% 58% 42% / 44% 40% 60% 56%;
  background: linear-gradient(145deg, var(--blj-lilac), #e9f7ef);
}
.blj-art-frame img { width: 100%; height: 100%; max-height: 480px; object-fit: contain; }
.blj-quote {
  padding-left: 25px;
  border-left: 4px solid var(--blj-gold);
  color: var(--blj-purple);
  font-family: var(--blj-serif);
  font-size: 1.35rem;
  font-style: italic;
}

.blj-page-hero { padding: clamp(76px, 10vw, 125px) 0; background: linear-gradient(135deg, var(--blj-lilac), var(--blj-cream)); text-align: center; }
.blj-page-hero h1 { max-width: 900px; margin-right: auto; margin-left: auto; }
.blj-page-hero p { max-width: 760px; margin: 0 auto; color: var(--blj-muted); font-size: 1.17rem; }
.blj-content { padding: 80px 0 110px; }
.blj-content .entry-content > * { max-width: 780px; margin-right: auto; margin-left: auto; }
.blj-content .entry-content > .alignwide { max-width: 1160px; }

.blj-product-card { display: flex; flex-direction: column; }
.blj-product-card img { width: 100%; height: 330px; margin-bottom: 24px; border-radius: 18px; object-fit: contain; background: var(--blj-cream); }
.blj-product-card .blj-button { align-self: flex-start; margin-top: auto; }
.price { color: var(--blj-green); font-size: 1.18rem; font-weight: 800; }

.blj-post-card { padding: 0; }
.blj-post-card-content { padding: 30px; }
.blj-post-meta { margin-bottom: 10px; color: var(--blj-green); font-size: .82rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.blj-post-card h3 a { color: var(--blj-plum); text-decoration: none; }

.blj-form { display: grid; gap: 18px; }
.blj-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.blj-form label { color: var(--blj-plum); font-size: .9rem; font-weight: 750; }
.blj-form input, .blj-form textarea, .blj-form select {
  width: 100%;
  margin-top: 6px;
  padding: 13px 15px;
  border: 1px solid rgba(101,52,111,.25);
  border-radius: 12px;
  color: var(--blj-ink);
  background: var(--blj-white);
}
.blj-form input:focus, .blj-form textarea:focus, .blj-form select:focus { outline: 3px solid rgba(57,149,183,.18); border-color: var(--blj-blue); }
.blj-honeypot { position: absolute !important; left: -10000px !important; }
.blj-notice { margin-bottom: 25px; padding: 16px 20px; border-radius: 14px; background: #edf7ef; color: #315c38; }
.blj-notice--error { background: #fff0f1; color: #7b3038; }

.blj-newsletter { position: relative; overflow: hidden; padding: 50px; border-radius: 30px; background: linear-gradient(135deg, var(--blj-plum), var(--blj-purple)); color: var(--blj-white); }
.blj-newsletter h2, .blj-newsletter h3 { color: var(--blj-white); }
.blj-newsletter p { color: rgba(255,255,255,.82); }
.blj-newsletter form { display: grid; align-items: end; grid-template-columns: 1fr 1.5fr auto; gap: 12px; }
.blj-newsletter label { font-size: .85rem; font-weight: 700; }
.blj-newsletter input { width: 100%; margin-top: 6px; padding: 13px 15px; border: 0; border-radius: 12px; background: var(--blj-white); }
.blj-newsletter .blj-button { border-color: var(--blj-gold); color: var(--blj-plum); background: var(--blj-gold); box-shadow: none; }

.site-footer { padding: 68px 0 24px; color: rgba(255,255,255,.78); background: #2e1835; }
.site-footer h3, .site-footer h4, .site-footer a { color: var(--blj-white); }
.blj-footer-grid { display: grid; grid-template-columns: 1.4fr .8fr .8fr; gap: 55px; }
.blj-footer-logo { max-width: 310px; margin-bottom: 20px; filter: brightness(0) invert(1); }
.blj-footer-links { margin: 0; padding: 0; list-style: none; }
.blj-footer-links li { margin-bottom: 9px; }
.blj-footer-links a { text-decoration: none; }
.blj-footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 55px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.13); font-size: .85rem; }

.woocommerce ul.products li.product, .woocommerce-page ul.products li.product { padding: 20px; border: 1px solid var(--blj-border); border-radius: 20px; box-shadow: 0 12px 32px rgba(63,33,73,.08); }
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button { border-radius: 999px; color: var(--blj-white); background: var(--blj-purple); }
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover { color: var(--blj-white); background: var(--blj-plum); }

@media (max-width: 980px) {
  .menu-toggle { display: inline-flex; }
  .main-navigation { position: absolute; top: 100%; right: 20px; left: 20px; display: none; padding: 22px; border: 1px solid var(--blj-border); border-radius: 18px; background: var(--blj-white); box-shadow: var(--blj-shadow); }
  .main-navigation.is-open { display: block; }
  .main-navigation ul { align-items: flex-start; flex-direction: column; gap: 12px; }
  .blj-hero, .blj-hero-inner { min-height: auto; }
  .blj-hero-inner, .blj-split, .blj-split--reverse { grid-template-columns: 1fr; }
  .blj-hero-art { max-width: 560px; margin: 0 auto; }
  .blj-pillars { grid-template-columns: repeat(3, 1fr); }
  .blj-grid--3 { grid-template-columns: 1fr 1fr; }
  .blj-newsletter form { grid-template-columns: 1fr 1fr; }
  .blj-newsletter form button { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .blj-container, .blj-narrow { width: min(100% - 28px, 1160px); }
  .blj-topbar { font-size: .78rem; }
  .blj-header-inner { min-height: 76px; }
  .custom-logo { max-width: 235px; max-height: 58px; }
  .blj-text-logo strong { font-size: 1.25rem; }
  .blj-text-logo span { display: none; }
  .blj-hero-inner { padding-top: 52px; padding-bottom: 58px; }
  .blj-verse { position: static; margin-top: 18px; }
  .blj-pillars, .blj-grid--2, .blj-grid--3, .blj-form-row, .blj-footer-grid { grid-template-columns: 1fr; }
  .blj-pillars { grid-template-columns: repeat(2, 1fr); }
  .blj-card { padding: 26px; }
  .blj-newsletter { padding: 32px 24px; }
  .blj-newsletter form { grid-template-columns: 1fr; }
  .blj-newsletter form button { grid-column: auto; }
  .blj-footer-bottom { flex-direction: column; }
}
