/*
Theme Name: Stash-Bloom Twenty Twenty-Five Child
Theme URI: https://www.stash-bloom.com/
Description: Polished Stash-Bloom WordPress child theme for Twenty Twenty-Five. Uses Option A for support/FAQ pages, Option B for Terms/Privacy, and Option D for Pricing.
Author: Stash-Bloom
Template: twentytwentyfive
Version: 1.6.3
Text Domain: stashbloom-tt5-child
*/

/* Fonts (Lora / Nunito Sans / Fraunces) are enqueued in functions.php. */

/* ============================
   StashBloom Design Tokens
   ============================ */

:root {
  --sb-bg: #f8f7f4;
  --sb-surface: #ffffff;
  --sb-soft: #f6f4f1;
  --sb-text: #1f2933;
  --sb-heading: #1f2933;
  --sb-muted: #565d69;
  --sb-border: #e5ddd3;
  --sb-primary: #4f6fa3;
  --sb-primary-hover: #415f8b;
  --sb-primary-soft: #eef3fb;
  --sb-gold: #efb731;
  --sb-radius: 16px;
  --sb-radius-lg: 22px;
  --sb-shadow: 0 8px 24px rgba(31, 41, 51, .055);
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--sb-bg) !important;
  color: var(--sb-text);
  font-family: "Nunito Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.58;
}

.wp-site-blocks {
  background: var(--sb-bg);
}

h1, h2, h3, h4, h5, h6,
.wp-block-site-title,
.wp-block-post-title {
  color: var(--sb-heading);
  font-family: "Lora", Georgia, "Times New Roman", serif;
  font-weight: 650;
  line-height: 1.14;
  letter-spacing: -0.02em;
}

h1, .wp-block-post-title {
  font-size: clamp(2.15rem, 4vw, 3.25rem);
}

h2 {
  font-size: clamp(1.45rem, 2.4vw, 2rem);
}

h3 {
  font-size: clamp(1.08rem, 1.6vw, 1.28rem);
}

p { margin: 0 0 .95rem; }
a { color: var(--sb-primary); }
a:hover { color: var(--sb-primary-hover); }

main,
.wp-block-post-content {
  max-width: none;
  padding: 0;
  margin: 0;
}

/* ============================
   Header
   ============================ */

.sb-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--sb-border);
  background: rgba(251, 250, 248, .96);
  backdrop-filter: blur(10px);
}

.sb-header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 13px clamp(18px, 4vw, 28px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.sb-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--sb-primary) !important;
  font-family: "Lora", Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: 1.35rem;
  text-decoration: none !important;
  white-space: nowrap;
}

.sb-brand::before {
  content: "✿";
  color: var(--sb-gold);
  font-family: Georgia, serif;
  font-size: .92rem;
}

.sb-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 20px);
  flex-wrap: wrap;
}

.sb-nav a {
  color: var(--sb-muted);
  font-size: .91rem;
  font-weight: 650;
  text-decoration: none;
}

.sb-nav a:hover { color: var(--sb-primary); }

.sb-nav .sb-nav-secondary {
  padding: 7px 12px;
  border: 1px solid var(--sb-border);
  border-radius: 999px;
  background: #fff;
  color: var(--sb-text);
}

.sb-nav .sb-nav-cta {
  padding: 8px 13px;
  border-radius: 999px;
  background: var(--sb-primary);
  color: #fff !important;
}

/* ============================
   Buttons
   ============================ */

.wp-block-button__link,
.wp-element-button,
.sb-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px !important;
  border: 1px solid transparent !important;
  border-radius: 999px !important;
  background: var(--sb-primary) !important;
  color: #fff !important;
  font-family: "Nunito Sans", system-ui, sans-serif;
  font-size: .95rem;
  font-weight: 750;
  line-height: 1.15;
  text-decoration: none !important;
  box-shadow: none !important;
}

.wp-block-button__link:hover,
.wp-element-button:hover,
.sb-button:hover {
  background: var(--sb-primary-hover) !important;
  color: #fff !important;
}

.sb-button-secondary,
.wp-block-button.is-style-outline .wp-block-button__link {
  background: #fff !important;
  border-color: var(--sb-border) !important;
  color: var(--sb-text) !important;
}

.sb-button-secondary:hover,
.wp-block-button.is-style-outline .wp-block-button__link:hover {
  background: var(--sb-soft) !important;
  color: var(--sb-text) !important;
}

/* ============================
   Page Shell
   ============================ */

.sb-page {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(30px, 5vw, 54px) clamp(18px, 4vw, 28px) clamp(52px, 7vw, 80px);
}

.sb-page-narrow {
  max-width: 980px;
}

/* ============================
   Option A: One Main Content Panel
   ============================ */

.sb-content-panel {
  padding: clamp(30px, 5vw, 48px);
  border: 1px solid var(--sb-border);
  border-radius: var(--sb-radius-lg);
  background:
    radial-gradient(circle at top right, rgba(239, 183, 49, .09), transparent 18rem),
    var(--sb-surface);
  box-shadow: var(--sb-shadow);
}

.sb-content-header {
  margin-bottom: 26px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--sb-border);
}

.sb-kicker {
  display: inline-flex;
  margin: 0 0 12px;
  padding: 6px 11px;
  border: 1px solid var(--sb-border);
  border-radius: 999px;
  background: #fff;
  color: var(--sb-muted);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.sb-content-header h1 {
  margin: 0 0 10px;
}

.sb-content-header p {
  max-width: 720px;
  color: var(--sb-muted);
  font-size: 1.04rem;
}

.sb-faq-list,
.sb-plain-list {
  display: grid;
  gap: 0;
}

.sb-faq-item,
.sb-plain-section {
  padding: 18px 0;
  border-bottom: 1px solid var(--sb-border);
}

.sb-faq-item:last-child,
.sb-plain-section:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.sb-faq-item h2,
.sb-plain-section h2 {
  margin: 0 0 8px;
  font-size: clamp(1.18rem, 2vw, 1.48rem);
}

.sb-faq-item p,
.sb-plain-section p,
.sb-plain-section li {
  color: var(--sb-muted);
}

.sb-plain-section ul {
  margin-top: 8px;
}



/* ============================
   Official Page Title
   ============================ */

.sb-theme-page-panel {
  max-width: 1020px;
  margin-left: auto;
  margin-right: auto;
}

.sb-theme-page-panel > .sb-page-title {
  max-width: 920px;
  margin: 0 0 18px;
}

.sb-theme-page-panel > .wp-block-post-content,
.sb-page > .wp-block-post-content {
  margin-top: 0;
}

/*
   Backward compatibility: older pages may already start with <section class="sb-content-panel">.
   Because the page template now provides the white panel, flatten the first pasted panel
   so you do not get a white box inside another white box.
*/
.sb-theme-page-panel > .wp-block-post-content > .sb-content-panel:first-child {
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.sb-theme-page-panel .sb-content-header {
  margin-top: 0;
}

/*
   Gutenberg constrained groups can center/narrow nested page content.
   Keep StashBloom content-page headers and plain sections aligned to the panel edge.
*/
.sb-theme-page-panel .sb-content-header,
.sb-theme-page-panel .sb-plain-list,
.sb-theme-page-panel .sb-plain-section {
  max-width: none;
}

.sb-theme-page-panel .sb-content-header > *,
.sb-theme-page-panel .sb-plain-list > *,
.sb-theme-page-panel .sb-plain-section > * {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.sb-page-intro {
  max-width: 760px;
  color: var(--sb-muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

/* ============================
   FAQ Accordion Cards
   ============================ */

.sb-faq-page {
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}

.sb-faq-intro {
  max-width: 760px;
  margin: -6px 0 24px;
  color: var(--sb-muted);
  font-size: 1.04rem;
}

.sb-faq-list {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.sb-faq-group-heading {
  margin: 30px 0 4px;
  padding-top: 4px;
  color: var(--sb-heading);
  font-family: "Nunito Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: .92rem;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.sb-faq-group-heading:first-child {
  margin-top: 0;
}

.sb-faq-list details.sb-faq-item {
  padding: 0;
  border: 1px solid rgba(229, 221, 211, .95);
  border-radius: 18px;
  background: #fffaf7;
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(31, 41, 51, .035);
}

.sb-faq-list details.sb-faq-item:last-child {
  border-bottom: 1px solid rgba(229, 221, 211, .95);
  padding-bottom: 0;
}

.sb-faq-list details.sb-faq-item[open] {
  background: #fff;
  border-color: rgba(79, 111, 159, .22);
}

.sb-faq-item summary {
  position: relative;
  display: block;
  padding: 18px 54px 18px 22px;
  color: var(--sb-heading);
  font-family: "Nunito Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.04rem;
  font-weight: 800;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}

.sb-faq-item summary::-webkit-details-marker {
  display: none;
}

.sb-faq-item summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--sb-primary-soft);
  color: var(--sb-primary);
  font-size: 1.2rem;
  font-weight: 850;
  line-height: 22px;
  text-align: center;
}

.sb-faq-item[open] summary {
  padding-bottom: 10px;
}

.sb-faq-item[open] summary::after {
  content: "−";
}

.sb-faq-answer {
  padding: 0 22px 20px;
}

.sb-faq-item .sb-faq-answer p,
.sb-faq-item .sb-faq-answer li {
  color: var(--sb-muted);
}

.sb-faq-answer p:last-child {
  margin-bottom: 0;
}

/* ============================
   Option B: Sidebar + Content
   ============================ */

.sb-policy-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.sb-toc {
  position: sticky;
  top: 90px;
  padding: 18px;
  border: 1px solid var(--sb-border);
  border-radius: var(--sb-radius);
  background: var(--sb-soft);
}

.sb-toc h2 {
  margin: 0 0 12px;
  font-family: "Nunito Sans", system-ui, sans-serif;
  font-size: .95rem;
  letter-spacing: .01em;
}

.sb-toc a {
  display: block;
  padding: 9px 0;
  border-top: 1px solid rgba(229, 221, 211, .95);
  color: var(--sb-primary);
  font-size: .92rem;
  font-weight: 650;
  text-decoration: none;
}

.sb-toc a:first-of-type {
  border-top: 0;
}

.sb-policy-content section {
  padding: 0 0 22px;
  margin: 0 0 22px;
  border-bottom: 1px solid var(--sb-border);
}

.sb-policy-content section:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.sb-policy-content h2 {
  margin: 0 0 8px;
  font-size: clamp(1.22rem, 2vw, 1.55rem);
}

.sb-policy-content p,
.sb-policy-content li {
  color: var(--sb-muted);
}

/* ============================
   Option D: Pricing
   ============================ */

.sb-pricing-intro {
  max-width: 760px;
  margin-bottom: 24px;
}

.sb-pricing-intro h1 {
  margin: 0 0 10px;
}

.sb-pricing-intro p {
  color: var(--sb-muted);
  font-size: 1.05rem;
}

.sb-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1040px;
  margin: 24px 0 34px;
}

.sb-price-card {
  padding: 24px;
  border: 1px solid var(--sb-border);
  border-radius: var(--sb-radius-lg);
  background: #fff;
  box-shadow: var(--sb-shadow);
}

.sb-price-card.featured {
  border-color: rgba(79, 111, 159, .45);
  background:
    radial-gradient(circle at top right, rgba(79, 111, 159, .10), transparent 14rem),
    #fff;
}

.sb-price-card h2 {
  margin: 0 0 8px;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
}

.sb-price {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin: 8px 0 10px;
  color: var(--sb-heading);
  font-family: "Lora", Georgia, "Times New Roman", serif;
  font-size: clamp(2.25rem, 4vw, 3.1rem);
  font-weight: 700;
  line-height: 1;
}

.sb-price span {
  color: var(--sb-muted);
  font-family: "Nunito Sans", system-ui, sans-serif;
  font-size: .95rem;
  font-weight: 650;
}

.sb-badge {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--sb-primary-soft);
  color: var(--sb-primary);
  font-size: .8rem;
  font-weight: 750;
}

.sb-included-panel {
  max-width: 860px;
  padding: 24px;
  border: 1px solid var(--sb-border);
  border-radius: var(--sb-radius-lg);
  background: #fff;
  box-shadow: var(--sb-shadow);
}

.sb-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sb-list li {
  position: relative;
  margin: 8px 0;
  padding-left: 24px;
  color: var(--sb-muted);
}

.sb-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--sb-primary);
  font-weight: 850;
}

.sb-note {
  padding: 16px 18px;
  border: 1px solid var(--sb-border);
  border-radius: var(--sb-radius);
  background: #fff;
  color: var(--sb-muted);
}

/* Home */
.sb-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.sb-card {
  padding: 20px;
  border: 1px solid var(--sb-border);
  border-radius: var(--sb-radius);
  background: #fff;
  box-shadow: 0 4px 16px rgba(31, 41, 51, .04);
}

.sb-card h3 {
  margin: 0 0 8px;
}

.sb-card p {
  color: var(--sb-muted);
  margin-bottom: 0;
}

.sb-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

/* ============================
   Footer
   ============================ */

.sb-footer {
  border-top: 1px solid var(--sb-border);
  background: var(--sb-soft);
}

.sb-footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 34px clamp(18px, 4vw, 28px);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(130px, .7fr));
  gap: 24px;
}

.sb-footer-brand {
  color: var(--sb-primary);
  font-family: "Lora", Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.sb-footer-brand::before {
  content: "✿";
  color: var(--sb-gold);
  margin-right: 7px;
  font-family: Georgia, serif;
  font-size: .9rem;
}

.sb-footer p {
  max-width: 390px;
  color: var(--sb-muted);
}

.sb-footer h3 {
  margin: 0 0 10px;
  font-family: "Nunito Sans", system-ui, sans-serif;
  font-size: .88rem;
  letter-spacing: .02em;
}

.sb-footer a {
  display: block;
  margin: 7px 0;
  color: var(--sb-muted);
  font-size: .92rem;
  text-decoration: none;
}

.sb-footer a:hover { color: var(--sb-primary); }

.sb-footer-bottom {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 28px) 24px;
  color: var(--sb-muted);
  font-size: .84rem;
}

/* ============================
   Responsive
   ============================ */

.sb-mobile-menu {
  display: none;
}

@media (max-width: 880px) {
  .sb-card-grid,
  .sb-pricing-grid,
  .sb-footer-inner,
  .sb-policy-layout {
    grid-template-columns: 1fr;
  }

  .sb-toc {
    position: static;
  }

  .sb-content-panel {
    padding: 24px;
  }
}

@media (max-width: 700px) {
  body {
    font-size: 15px;
    line-height: 1.55;
  }

  .sb-header-inner {
    padding: 12px 18px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
  }

  .sb-brand {
    font-size: 1.28rem;
  }

  .sb-nav {
    display: none;
  }

  .sb-mobile-menu {
    display: block;
    position: relative;
    flex: 0 0 auto;
  }

  .sb-mobile-menu summary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 14px;
    border: 1px solid var(--sb-border);
    border-radius: 999px;
    background: #fff;
    color: var(--sb-text);
    font-size: .92rem;
    font-weight: 750;
    line-height: 1;
    cursor: pointer;
    list-style: none;
  }

  .sb-mobile-menu summary::-webkit-details-marker {
    display: none;
  }

  .sb-mobile-menu summary::after {
    content: "☰";
    margin-left: 8px;
    font-size: 1rem;
    line-height: 1;
  }

  .sb-mobile-menu[open] summary::after {
    content: "×";
    font-size: 1.15rem;
  }

  .sb-mobile-menu-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 200;
    width: min(82vw, 310px);
    padding: 10px;
    border: 1px solid var(--sb-border);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(31, 41, 51, .14);
  }

  .sb-mobile-menu-panel a {
    display: block;
    padding: 11px 12px;
    border-radius: 12px;
    color: var(--sb-text);
    font-size: .98rem;
    font-weight: 700;
    text-decoration: none;
  }

  .sb-mobile-menu-panel a:hover {
    background: var(--sb-soft);
    color: var(--sb-primary);
  }

  .sb-mobile-menu-panel .sb-nav-secondary,
  .sb-mobile-menu-panel .sb-nav-cta {
    margin-top: 6px;
    text-align: center;
  }

  .sb-mobile-menu-panel .sb-nav-secondary {
    border: 1px solid var(--sb-border);
    background: #fff;
  }

  .sb-mobile-menu-panel .sb-nav-cta {
    background: var(--sb-primary);
    color: #fff !important;
  }

  .sb-page {
    padding: 30px 18px 56px;
  }

  .sb-content-panel {
    padding: 24px 20px;
    border-radius: 20px;
  }

  .sb-content-header {
    margin-bottom: 22px;
    padding-bottom: 18px;
  }

  .sb-kicker {
    max-width: 100%;
    padding: 6px 10px;
    font-size: .68rem;
    line-height: 1.25;
    letter-spacing: .045em;
    white-space: normal;
  }

  h1,
  .wp-block-post-title {
    font-size: clamp(2.05rem, 10.5vw, 3rem);
    line-height: 1.08;
    letter-spacing: -0.028em;
  }

  h2 {
    font-size: clamp(1.32rem, 6vw, 1.75rem);
  }

  .sb-content-header p,
  .sb-pricing-intro p,
  .sb-card p,
  .sb-plain-section p,
  .sb-policy-content p {
    font-size: 1rem;
  }

  .sb-actions,
  .wp-block-buttons {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .sb-actions .sb-button,
  .wp-block-buttons .wp-block-button,
  .wp-block-buttons .wp-block-button__link {
    width: 100%;
  }

  .wp-block-button__link,
  .wp-element-button,
  .sb-button {
    min-height: 46px;
    padding: 12px 18px !important;
    font-size: .98rem;
  }

  .sb-card-grid {
    gap: 12px;
  }

  .sb-card {
    padding: 18px;
    border-radius: 15px;
  }

  .sb-price-card,
  .sb-included-panel,
  .sb-note {
    padding: 20px;
    border-radius: 18px;
  }

  .sb-footer-inner {
    padding: 28px 18px;
    gap: 18px;
  }

  .sb-footer-bottom {
    padding: 0 18px 22px;
  }
}


@media (max-width: 700px) {
  .sb-page-title {
    margin-bottom: 18px;
  }

  .sb-faq-list {
    gap: 12px;
  }

  .sb-faq-group-heading {
    margin-top: 24px;
    font-size: .84rem;
  }

  .sb-faq-item summary {
    padding: 16px 50px 16px 18px;
    font-size: 1rem;
  }

  .sb-faq-item summary::after {
    right: 18px;
  }

  .sb-faq-answer {
    padding: 0 18px 18px;
  }
}
