/* ============================================================
   FAITH LOVE BLOOM — Shared stylesheet
   "Where faith takes root"
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&family=Jost:wght@300;400;500&display=swap');

/* -------------------- TOKENS -------------------- */
:root {
  --cream: #fdf8f5;
  --blush: #f5e6e0;
  --rose: #e8b4b8;
  --mauve: #c9899a;
  --mauve-dark: #b8778a;
  --sage: #b8c9b0;
  --sage-deep: #7a9e7e;
  --gold: #c9a96e;
  --text-dark: #3a2a2e;
  --text-mid: #7a5c63;
  --text-light: #b08a94;
  --border: #edd8d4;

  --display: 'Cormorant Garamond', Georgia, serif;
  --body: 'Jost', -apple-system, BlinkMacSystemFont, sans-serif;

  --maxw: 1180px;
  --radius-card: 16px;
  --shadow-rose: 0 18px 40px -22px rgba(201, 137, 154, 0.45);
  --shadow-rose-soft: 0 10px 30px -20px rgba(201, 137, 154, 0.4);
}

/* -------------------- RESET -------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-weight: 300;
  color: var(--text-dark);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 300;
  margin: 0;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

/* -------------------- LAYOUT HELPERS -------------------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 2rem; }
.section { padding: 5.5rem 0; }
.section-tight { padding: 4rem 0; }
.center { text-align: center; }

.eyebrow {
  font-family: var(--body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mauve);
  margin: 0 0 1.1rem;
}
.eyebrow-line {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}
.eyebrow-line::before {
  content: "";
  width: 38px;
  height: 1px;
  background: var(--rose);
}

.section-head { max-width: 640px; margin: 0 auto 3rem; }
.section-head.left { margin-left: 0; }
.section-head h2 { font-size: clamp(2.1rem, 4vw, 3rem); }
.section-head p { color: var(--text-mid); font-size: 1.02rem; margin: 1rem 0 0; }

em.accent, .accent { font-style: italic; color: var(--mauve); }

/* -------------------- FLORAL DIVIDER -------------------- */
.divider {
  text-align: center;
  color: var(--rose);
  letter-spacing: 1.1em;
  font-size: 0.85rem;
  padding: 2.6rem 0;
  user-select: none;
}
.divider span { display: inline-block; padding-left: 1.1em; }

/* -------------------- NAV -------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 248, 245, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 0.5px solid var(--border);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.15rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--text-dark);
}
.logo em { font-style: italic; color: var(--mauve); }
.nav-links {
  display: flex;
  gap: 2.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-size: 0.74rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mid);
  transition: color 0.25s;
}
.nav-links a:hover { color: var(--mauve); }
.nav-links a.active { color: var(--mauve); }
.nav-toggle { display: none; }

/* -------------------- BUTTONS -------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.95rem 2rem;
  border-radius: 40px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.28s ease;
}
.btn-primary {
  background: var(--mauve);
  color: #fff;
  box-shadow: var(--shadow-rose-soft);
}
.btn-primary:hover {
  background: var(--mauve-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-rose);
}
.btn-ghost {
  background: transparent;
  border: 1px solid var(--rose);
  color: var(--mauve);
}
.btn-ghost:hover {
  background: var(--mauve);
  border-color: var(--mauve);
  color: #fff;
}

/* -------------------- TAGS -------------------- */
.tag {
  display: inline-block;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mauve);
}

/* -------------------- READ LINK -------------------- */
.read-link {
  font-size: 0.73rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mauve);
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
  transition: gap 0.25s, color 0.25s;
}
.read-link:hover { gap: 0.75rem; color: var(--mauve-dark); }

/* -------------------- SCRIPTURE BLOCKQUOTE -------------------- */
.scripture {
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  color: var(--text-mid);
  border-left: 2px solid var(--rose);
  padding: 0.2rem 0 0.2rem 1.4rem;
  margin: 0;
  font-size: 1.3rem;
  line-height: 1.5;
}
.scripture cite {
  display: block;
  font-family: var(--body);
  font-style: normal;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mauve);
  margin-top: 0.7rem;
}

/* -------------------- POST CARD -------------------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}
.card {
  background: #fff;
  border-radius: var(--radius-card);
  border: 0.5px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-rose);
}
.card-img {
  aspect-ratio: 3 / 2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.6rem;
  position: relative;
}
.card-body { padding: 1.5rem 1.6rem 1.7rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.card-body h3 { font-size: 1.5rem; }
.card-body p { color: var(--text-mid); font-size: 0.93rem; margin: 0; flex: 1; }
.card-body .read-link { margin-top: 0.4rem; }

/* gradient image panel variants */
.g-blush    { background: linear-gradient(135deg, #f8e8e2, #f3d9d3); }
.g-sage     { background: linear-gradient(135deg, #dce8d6, #c3d6bd); }
.g-lavender { background: linear-gradient(135deg, #e8e0ef, #d8cce6); }
.g-gold     { background: linear-gradient(135deg, #f3e6cf, #e6d2ac); }
.g-peach    { background: linear-gradient(135deg, #fbe4d6, #f6cdb6); }
.g-sky      { background: linear-gradient(135deg, #dde7ef, #c5d6e4); }
.g-rose     { background: linear-gradient(135deg, #f5dadd, #ecbcc1); }

/* -------------------- FEATURED POST -------------------- */
.featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #fff;
  border-radius: var(--radius-card);
  border: 0.5px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-rose-soft);
}
.featured-img {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4.5rem;
  min-height: 340px;
}
.featured-body {
  padding: 3rem 3.2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}
.featured-body h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); }
.featured-body p { color: var(--text-mid); margin: 0; font-size: 1rem; }
.featured-label {
  font-family: var(--body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mauve);
}

/* -------------------- VERSE BANNER -------------------- */
.verse-banner {
  position: relative;
  border-radius: 20px;
  background: linear-gradient(120deg, #ece4f2 0%, #f6e4ea 50%, #e2e9f3 100%);
  padding: 4.5rem 3rem;
  text-align: center;
  overflow: hidden;
}
.verse-banner::before,
.verse-banner::after {
  content: "✿";
  position: absolute;
  color: rgba(201, 137, 154, 0.35);
  font-size: 2rem;
}
.verse-banner::before { top: 1.6rem; left: 2rem; }
.verse-banner::after  { bottom: 1.6rem; right: 2rem; }
.verse-banner blockquote {
  margin: 0 auto;
  max-width: 720px;
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.6rem, 3.4vw, 2.5rem);
  line-height: 1.4;
  color: var(--text-dark);
}
.verse-banner .ref {
  display: block;
  margin-top: 1.5rem;
  font-family: var(--body);
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mauve);
}

/* -------------------- NEWSLETTER -------------------- */
.newsletter {
  background: var(--text-dark);
  border-radius: 20px;
  margin: 0 4rem;
  padding: 4.5rem 3rem;
  text-align: center;
  color: #fff;
}
.newsletter .eyebrow { color: var(--rose); }
.newsletter h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); color: #fff; }
.newsletter p { color: rgba(255,255,255,0.72); max-width: 440px; margin: 1rem auto 2.2rem; font-size: 0.98rem; }
.newsletter-form {
  display: flex;
  gap: 0.7rem;
  max-width: 460px;
  margin: 0 auto;
}
.newsletter-form input {
  flex: 1;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 40px;
  padding: 0.95rem 1.4rem;
  color: #fff;
  font-family: var(--body);
  font-size: 0.9rem;
  font-weight: 300;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.45); }
.newsletter-form input:focus { outline: none; border-color: var(--rose); }
.newsletter-form .btn-primary { white-space: nowrap; }

/* -------------------- ABOUT STRIP -------------------- */
.about-strip {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  background: #fff;
  border: 0.5px solid var(--border);
  border-radius: var(--radius-card);
  padding: 2.8rem 3rem;
  box-shadow: var(--shadow-rose-soft);
}
.avatar {
  flex-shrink: 0;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f8e8e2, #e8b4b8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.6rem;
}
.about-strip h3 { font-size: 1.8rem; margin-bottom: 0.3rem; }
.about-strip p { color: var(--text-mid); margin: 0 0 0.9rem; font-size: 0.98rem; }

/* -------------------- CATEGORY / TOPIC PILLS -------------------- */
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: center;
}
.pill {
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  padding: 0.7rem 1.5rem;
  border-radius: 40px;
  border: 1px solid transparent;
  transition: all 0.25s;
  cursor: pointer;
}
.cat-rose { background: #faecee; color: var(--mauve-dark); border-color: #f1d4d9; }
.cat-rose:hover { background: var(--mauve); color: #fff; border-color: var(--mauve); }
.cat-sage { background: #e7efe2; color: var(--sage-deep); border-color: #d3e2cb; }
.cat-sage:hover { background: var(--sage-deep); color: #fff; border-color: var(--sage-deep); }
.cat-gold { background: #f6eedd; color: #a8854a; border-color: #ead9bb; }
.cat-gold:hover { background: var(--gold); color: #fff; border-color: var(--gold); }
.pill.active { background: var(--mauve); color: #fff; border-color: var(--mauve); }

/* -------------------- FOOTER -------------------- */
.footer {
  background: var(--text-dark);
  color: rgba(255,255,255,0.7);
  padding: 4.5rem 0 0;
}
.footer-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 2rem 3.5rem;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 3rem;
}
.footer-brand .logo { color: #fff; font-size: 1.75rem; }
.footer-brand .logo em { color: var(--rose); }
.footer-brand p {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.15rem;
  color: rgba(255,255,255,0.6);
  margin: 1rem 0 0;
  max-width: 280px;
}
.footer-col h4 {
  font-family: var(--body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 1.3rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.8rem; }
.footer-col a {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.65);
  transition: color 0.25s;
}
.footer-col a:hover { color: var(--rose); }
.footer-bottom {
  background: #2e2024;
  text-align: center;
  padding: 1.6rem 2rem;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.45);
}
.footer-bottom em { font-style: italic; color: rgba(255,255,255,0.6); }

/* -------------------- HERO + BLOBS -------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #fdf3ef 0%, #f9ede9 50%, #f5e8f0 100%);
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  opacity: 0.55;
  animation: floatBloom 16s ease-in-out infinite;
  pointer-events: none;
}
.blob-1 { width: 420px; height: 420px; background: radial-gradient(circle, var(--blush), transparent 70%); top: -120px; left: -80px; animation-delay: 0s; }
.blob-2 { width: 360px; height: 360px; background: radial-gradient(circle, var(--rose), transparent 70%); top: 40px; right: -100px; animation-delay: -5s; }
.blob-3 { width: 320px; height: 320px; background: radial-gradient(circle, var(--sage), transparent 70%); bottom: -130px; left: 40%; animation-delay: -9s; }

@keyframes floatBloom {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(30px, -40px) scale(1.08); }
  66%      { transform: translate(-25px, 25px) scale(0.95); }
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 7rem 2rem 7.5rem;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero-content { max-width: 660px; }
.hero h1 {
  font-size: clamp(2.8rem, 6vw, 4.6rem);
  line-height: 1.05;
  margin: 0.4rem 0 1.6rem;
}
.hero .scripture { margin: 0 0 2.4rem; max-width: 480px; }
.hero-image {
  position: relative;
}
.hero-image img {
  width: 100%;
  height: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: var(--shadow-rose);
}

/* page hero (smaller, for inner pages) */
.page-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #fdf3ef 0%, #f9ede9 50%, #f5e8f0 100%);
  text-align: center;
}
.page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: 5.5rem 2rem 5rem;
}
.page-hero h1 { font-size: clamp(2.6rem, 5.5vw, 4rem); margin: 0.4rem 0 1.2rem; }
.page-hero p { color: var(--text-mid); font-size: 1.08rem; max-width: 560px; margin: 0 auto; }

/* -------------------- FADE-UP ENTRANCE -------------------- */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.d1 { animation-delay: 0.1s; }
.d2 { animation-delay: 0.25s; }
.d3 { animation-delay: 0.4s; }
.d4 { animation-delay: 0.55s; }
.d5 { animation-delay: 0.7s; }
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* -------------------- RESPONSIVE -------------------- */
@media (max-width: 900px) {
  .section { padding: 4rem 0; }
  .wrap { padding: 0 1.4rem; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 0.5px solid var(--border);
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 1.4rem 1.2rem;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.7rem 0; }
  .nav-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 1.4rem;
    color: var(--mauve);
    cursor: pointer;
    line-height: 1;
  }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .featured { grid-template-columns: 1fr; }
  .featured-img { min-height: 220px; }
  .featured-body { padding: 2.2rem; }
  .newsletter { margin: 0 1.4rem; padding: 3rem 1.6rem; }
  .newsletter-form { flex-direction: column; }
  .about-strip { flex-direction: column; text-align: center; padding: 2.4rem 1.6rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2.4rem; }
  .hero-inner {
    padding: 4.5rem 1.4rem 5rem;
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .hero-image img { max-height: 360px; }
}
@media (max-width: 560px) {
  .grid-3 { grid-template-columns: 1fr; }
  .verse-banner { padding: 3rem 1.4rem; }
  .verse-banner::before, .verse-banner::after { font-size: 1.4rem; }
  .page-hero-inner { padding: 4rem 1.4rem 3.5rem; }
  .scripture { font-size: 1.15rem; }
  .blob-1 { width: 300px; height: 300px; }
  .blob-2 { width: 260px; height: 260px; }
  .blob-3 { width: 240px; height: 240px; }
  .divider { letter-spacing: 0.7em; padding: 2rem 0; }
  .res-section .res-head h2 { font-size: 1.55rem; }
}
