/*
Theme Name: Palm Frond Study
Theme URI: https://ebenezer.co
Author: Ebenezer Co.
Author URI: https://ebenezer.co
Description: Warm, clean editorial WordPress theme matching the palm-frond Bible study workbook library. Built for Easy Digital Downloads + Stripe and the Daily Verse Study landing page.
Version: 1.0.12
Text Domain: palm-frond-study
*/

:root {
  --bg-parchment: #f6f8f1;
  --bg-card: #ffffff;
  --bg-sage: #eaf1dc;
  --bg-cream: #fbf3d6;
  --ink: #24312a;
  --ink-muted: #4a5a3c;
  --hunter: #355e3b;
  --forest: #2f5d3a;
  --moss: #6f8f3a;
  --olive: #7ea33a;
  --pine: #01796f;
  --gold: #c9a227;
  --border: #cfdcb8;
  --radius: 10px;
}

* { box-sizing: border-box; }

html {
  min-height: 100%;
  background: linear-gradient(180deg, #1f3a26 0%, #2f5d3a 38%, #cfdcb8 80%, #f6f8f1 100%);
}

body {
  margin: 0;
  min-height: 100vh;
  padding: 28px 18px;
  background: transparent !important;
  background-image: none !important;
  color: var(--ink);
  font-family: "Georgia", "Liberation Serif", "DejaVu Serif", serif;
  font-size: 17px;
  line-height: 1.65;
}

.pf-backdrop {
  position: fixed;
  inset: -10vh -4vw;
  z-index: -1;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  transform: translate3d(0, 0, 0);
  will-change: transform;
  pointer-events: none;
}

.pf-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(24, 46, 30, 0.20) 0%,
    rgba(24, 46, 30, 0.06) 45%,
    rgba(24, 46, 30, 0.28) 100%
  );
}

a { color: var(--forest); text-decoration-color: var(--moss); text-underline-offset: 3px; }
a:hover { color: var(--pine); }

.pf-shell {
  max-width: 1120px;
  margin: 0 auto;
  background: rgba(246, 248, 241, 0.97);
  border: 1.5px solid rgba(207, 220, 184, 0.92);
  border-radius: 14px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 22px 60px rgba(24, 38, 28, 0.26), 0 4px 16px rgba(24, 38, 28, 0.10);
}

.pf-leaf {
  position: absolute;
  width: 32px;
  height: 32px;
  opacity: 0.85;
  pointer-events: none;
  z-index: 2;
}
.pf-leaf svg { width: 100%; height: 100%; }
.pf-tl { top: 8px; left: 10px; transform: rotate(-90deg); }
.pf-tr { top: 8px; right: 10px; }
.pf-bl { bottom: 8px; left: 10px; transform: rotate(180deg); }
.pf-br { bottom: 8px; right: 10px; transform: rotate(90deg); }

.pf-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 62px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.65);
}

.pf-brand {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--hunter);
  text-decoration: none;
}

.pf-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.95rem;
}

.pf-nav a { text-decoration: none; font-weight: 500; color: var(--ink); }
.pf-nav a:hover { color: var(--hunter); }

.pf-main { padding: 44px; }

.pf-hero {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 44px;
  padding: 36px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.pf-eyebrow {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--moss);
  margin-bottom: 10px;
}

.pf-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: var(--hunter);
  line-height: 1.2;
}

.pf-hero p { color: var(--ink-muted); margin: 0 0 22px; }

.pf-btn-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

.pf-btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  background: var(--hunter);
  color: #fff;
  border: 1.5px solid var(--hunter);
}
.pf-btn:hover { background: var(--pine); border-color: var(--pine); color: #fff; }
.pf-btn-outline { background: transparent; color: var(--hunter); }
.pf-btn-outline:hover { background: var(--bg-sage); color: var(--hunter); }

.pf-section-title {
  color: var(--hunter);
  font-size: 1.55rem;
  border-bottom: 1.5px solid var(--moss);
  padding-bottom: 8px;
  margin: 36px 0 22px;
}

.pf-callout {
  background: var(--bg-sage);
  border-left: 4px solid var(--olive);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px;
  margin: 32px 0;
}

.pf-verse-card {
  max-width: 660px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
}

.pf-verse-quote {
  margin: 18px 0 24px;
  padding: 14px 18px;
  background: var(--bg-parchment);
  border-left: 4px solid var(--pine);
  border-radius: 0 8px 8px 0;
  font-style: italic;
}

.pf-footer {
  padding: 26px 62px;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
  color: var(--ink-muted);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

/* Easy Digital Downloads polish */
.edd_downloads_list {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 24px;
}
.edd_download {
  width: 100% !important;
  margin: 0 !important;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
}
.edd_download_inner { padding: 0 !important; }
.edd_download_image img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  border: 1px solid #e3ebd6;
}
.edd_download_title {
  font-size: 1.12rem;
  margin: 12px 0 6px;
}
.edd_download_title a { color: var(--hunter); text-decoration: none; }
.edd-submit.button {
  background: var(--hunter) !important;
  border-color: var(--hunter) !important;
  color: #fff !important;
  border-radius: 7px !important;
  padding: 9px 16px !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}
.edd-submit.button:hover {
  background: var(--pine) !important;
  border-color: var(--pine) !important;
}

@media (max-width: 720px) {
  body { padding: 10px; }
  .pf-shell { margin: 0 auto; }
  .pf-header, .pf-footer { padding: 20px 44px; }
  .pf-main { padding: 22px 20px; }
  .pf-leaf { width: 24px; height: 24px; }
}

.pf-verse-intro {
  margin: 0 0 22px;
  color: var(--ink);
}

.pf-resources {
  margin-top: 28px;
  padding: 22px 24px;
  background: var(--bg-parchment);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.pf-resources-title {
  margin: 0 0 8px;
  font-size: 1.2rem;
  color: var(--hunter);
}

.pf-resources-lead {
  margin: 0 0 14px;
  font-size: 0.96rem;
  color: var(--ink-muted);
}

.pf-resource-list {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pf-resource-list li {
  font-size: 0.96rem;
  line-height: 1.55;
}

.pf-resource-links {
  display: block;
  margin-top: 3px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
}

/* Homepage app & resource icon strip */
.pf-app-strip {
  margin: 36px 0 28px;
  padding: 22px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.pf-app-strip-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}
.pf-app-strip-title {
  margin: 0;
  font-size: 1.18rem;
  color: var(--hunter);
}
.pf-app-strip-more {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}
.pf-app-icons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  gap: 14px;
}
.pf-app-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 8px;
  border-radius: 10px;
  background: var(--bg-parchment);
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
}
.pf-app-chip:hover {
  transform: translateY(-2px);
  border-color: var(--moss);
  box-shadow: 0 6px 14px rgba(36, 49, 42, 0.08);
  color: var(--hunter);
}
.pf-app-chip img {
  width: 48px;
  height: 48px;
  border-radius: 11px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}
.pf-app-chip span {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.2;
}

/* Sample 3-5 minute Verse of the Day deep dive */
.pf-sample-study {
  margin-top: 26px;
  padding: 26px 28px;
  background: var(--bg-parchment);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
}
.pf-sample-badge {
  display: inline-block;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hunter);
  background: var(--bg-sage);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.pf-sample-title {
  margin: 0 0 12px;
  font-size: 1.35rem;
  color: var(--hunter);
}
.pf-sample-study h3 {
  margin: 20px 0 6px;
  font-size: 1.04rem;
  color: var(--forest);
}
.pf-sample-study p {
  margin: 0 0 10px;
  font-size: 0.98rem;
}
.pf-sample-list {
  margin: 0 0 12px;
  padding-left: 20px;
  font-size: 0.96rem;
}
.pf-sample-list li { margin-bottom: 8px; }
.pf-sample-prayer {
  margin-top: 18px;
  padding: 14px 18px;
  background: var(--bg-card);
  border-left: 4px solid var(--olive);
  border-radius: 0 8px 8px 0;
  font-size: 0.96rem;
}
.pf-study-more-link {
  margin: 22px 0 0;
  text-align: center;
  font-size: 0.95rem;
  color: var(--ink-muted);
}

/* Study Further & About page cards */
.pf-page-card {
  max-width: 820px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 34px;
}
.pf-subhead {
  color: var(--hunter);
  font-size: 1.3rem;
  margin: 26px 0 10px;
}
.pf-outreach-box {
  margin-top: 22px;
  padding: 22px 24px;
  background: var(--bg-parchment);
  border: 1px solid var(--border);
  border-left: 4px solid var(--olive);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.pf-outreach-box h3 {
  margin: 0 0 10px;
  color: var(--hunter);
  font-size: 1.15rem;
}
.pf-tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr));
  gap: 18px;
  margin-top: 22px;
}
.pf-tool-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px;
  background: var(--bg-parchment);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.pf-tool-card img {
  width: 56px;
  height: 56px;
  border-radius: 13px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.pf-tool-card h2 {
  margin: 0 0 6px;
  font-size: 1.08rem;
  color: var(--hunter);
}
.pf-tool-card p {
  margin: 0 0 10px;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--ink-muted);
}
.pf-sample-date {
  margin: -6px 0 16px !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.86rem !important;
  color: var(--ink-muted);
}
.pf-translations {
  margin: 0 0 20px;
  padding: 16px 20px;
  background: var(--bg-card);
  border-left: 4px solid var(--pine);
  border-radius: 0 8px 8px 0;
}
.pf-translations p {
  margin: 0 0 10px !important;
  font-size: 0.95rem !important;
  line-height: 1.58;
}
.pf-translations p:last-child { margin-bottom: 0 !important; }

/* Mobile hamburger button + responsive polish (v1.0.10) */
.pf-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-card);
  color: var(--hunter);
  cursor: pointer;
  flex-shrink: 0;
}
.pf-menu-toggle:hover { background: var(--bg-sage); border-color: var(--moss); }
.pf-menu-toggle .pf-icon-close { display: none; }
.pf-header.is-open .pf-menu-toggle .pf-icon-bars { display: none; }
.pf-header.is-open .pf-menu-toggle .pf-icon-close { display: block; }

.pf-tool-card { min-width: 0; max-width: 100%; }
.pf-tool-card > div { min-width: 0; flex: 1; }
.pf-resource-links { overflow-wrap: anywhere; }

@media (max-width: 720px) {
  body { padding: 10px 8px; }
  .pf-header {
    padding: 16px 40px;
    gap: 12px;
  }
  .pf-brand { font-size: 1.15rem; }
  .pf-menu-toggle { display: inline-flex; }
  .pf-nav-wrap {
    display: none;
    width: 100%;
    padding-top: 8px;
    border-top: 1px solid var(--border);
  }
  .pf-header.is-open .pf-nav-wrap { display: block; }
  .pf-nav {
    flex-direction: column;
    gap: 0;
  }
  .pf-nav li { border-bottom: 1px solid rgba(207, 220, 184, 0.55); }
  .pf-nav li:last-child { border-bottom: 0; }
  .pf-nav a {
    display: block;
    padding: 11px 4px;
    font-size: 1rem;
  }
  .pf-footer { padding: 20px 38px; }
  .pf-main { padding: 18px 14px; }
  .pf-hero { padding: 24px 16px; margin-bottom: 28px; }
  .pf-page-card,
  .pf-verse-card { padding: 22px 16px; }
  .pf-sample-study { padding: 18px 14px; }
  .pf-translations { padding: 14px 14px; }
  .pf-outreach-box { padding: 16px 14px; }
  .pf-app-strip { padding: 18px 14px; }
  .pf-app-icons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .pf-tool-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .pf-tool-card {
    padding: 14px;
    gap: 12px;
  }
  .pf-tool-card img {
    width: 48px;
    height: 48px;
    border-radius: 11px;
  }
}

/* Single workbook product page (v1.0.11) */
.pf-breadcrumb {
  max-width: 920px;
  margin: 0 auto 14px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.9rem;
}
.pf-breadcrumb a { text-decoration: none; font-weight: 600; color: var(--hunter); }
.pf-breadcrumb a:hover { color: var(--pine); }

.pf-product-card { max-width: 920px; }
.pf-product-layout {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}
.pf-product-media {
  background: var(--bg-parchment);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px;
}
.pf-product-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 7px;
  box-shadow: 0 6px 18px rgba(24, 38, 28, 0.12);
}
.pf-product-title {
  margin: 0 0 14px;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  color: var(--hunter);
  line-height: 1.22;
}
.pf-product-content p { margin: 0 0 14px; }
.pf-product-content ul { margin: 0 0 16px; padding-left: 20px; }
.pf-product-content li { margin-bottom: 6px; }

@media (max-width: 760px) {
  .pf-product-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .pf-product-media { max-width: 420px; margin: 0 auto; width: 100%; }
}

/* ==========================================================
   Typography v1.0.12 — ancient-text pairing
   Display: Cinzel Decorative 700 · Sub-headers: Forum 400
   ========================================================== */
:root {
  --pf-font-display: "Cinzel Decorative", Georgia, serif;
  --pf-font-sub: "Forum", Georgia, serif;
}

/* Main header / display titles */
.pf-brand,
.pf-hero h1,
.pf-main h1:not(.pf-product-title) {
  font-family: var(--pf-font-display);
  font-weight: 700;
  letter-spacing: 0.01em;
  overflow-wrap: break-word;
  hyphens: manual;
}
.pf-brand { font-size: clamp(1.05rem, 0.85rem + 1vw, 1.4rem); line-height: 1.2; }
.pf-hero h1,
.pf-main h1:not(.pf-product-title) {
  font-size: clamp(1.6rem, 1.05rem + 2.6vw, 2.6rem);
  line-height: 1.18;
}

/* Sub-headers, eyebrows & workbook titles */
.pf-eyebrow {
  font-family: var(--pf-font-sub);
  font-weight: 400;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
}
.pf-main h2,
.pf-main h3,
.pf-section-title,
.pf-subhead,
.pf-sample-title,
.pf-app-strip-title,
.pf-resources-title,
.pf-tool-card h2,
.pf-sample-study h3,
.pf-outreach-box h3,
.edd_download_title,
.edd_download_title a,
.pf-product-title {
  font-family: var(--pf-font-sub);
  font-weight: 400;
  letter-spacing: 0.01em;
  overflow-wrap: break-word;
}
.pf-section-title { font-size: clamp(1.45rem, 1.2rem + 1vw, 1.8rem); }
.pf-subhead { font-size: clamp(1.35rem, 1.15rem + 0.8vw, 1.55rem); }
.pf-sample-title { font-size: clamp(1.35rem, 1.15rem + 0.8vw, 1.55rem); }
.pf-app-strip-title { font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.4rem); }
.pf-tool-card h2 { font-size: 1.22rem; }
.pf-sample-study h3,
.pf-outreach-box h3 { font-size: 1.22rem; }
.edd_download_title { font-size: 1.28rem; line-height: 1.25; }
.pf-product-title { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.3rem); line-height: 1.2; }

@media (max-width: 420px) {
  .pf-brand { font-size: 1rem; letter-spacing: 0; }
  .pf-hero h1,
  .pf-main h1:not(.pf-product-title) { font-size: 1.55rem; letter-spacing: 0; }
  .pf-eyebrow { font-size: 0.88rem; letter-spacing: 0.1em; }
}
