/*
 * Theme Name:  Sexual Positions Free Child
 * Theme URI:   https://sexualpositionsfree.com
 * Description: GeneratePress child theme — editorial wellness aesthetic.
 * Author:      Sexual Positions Free
 * Template:    generatepress
 * Version:     1.0.0
 * License:     GPL-2.0-or-later
 * Text Domain: spf-child
*/

/* =========================================================
   ADS — hidden until ready (remove this rule to re-enable)
   ========================================================= */
.spf-ad-wrap,
.spf-ad-sticky-bottom { display: none !important; }

/* =========================================================
   DESIGN TOKENS
   ========================================================= */
:root {
  --bg:          #ffffff;
  --bg2:         #F6F6F6;
  --text:        #1C1917;
  --text2:       #57534E;
  --text3:       #A8A29E;
  --accent:      #C4627A;
  --accent-lt:   #F7E8EC;
  --border:      rgba(28,25,23,0.08);
  --radius:      8px;
  --radius-lg:   14px;
  --shadow:      0 2px 12px rgba(28,25,23,0.07);
  --shadow-md:   0 4px 24px rgba(28,25,23,0.11);
  --font-head:   'Lora', Georgia, serif;
  --font-body:   'DM Sans', system-ui, sans-serif;
  --max-w:       1140px;
  --col-gap:     24px;
}

/* =========================================================
   GOOGLE FONTS — inline fallback in case PHP enqueue is blocked
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;600;700&family=DM+Sans:wght@400;500;600&display=swap');

/* =========================================================
   RESET & BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* Beat GP's body styles with full specificity */
html body,
body.spf-child,
body {
  background-color: #ffffff !important;
  background: #ffffff !important;
  color: #1C1917 !important;
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif !important;
  font-size: 14px !important;
  line-height: 1.7 !important;
  -webkit-font-smoothing: antialiased;
  margin: 0;
  padding: 0;
}

/* Beat GP heading font overrides */
html body h1,
html body h2,
html body h3,
html body h4,
html body h5,
html body h6,
.spf-single h1,
.spf-single h2,
.spf-single h3,
.spf-single h4,
.entry-title,
.page-title {
  font-family: 'Lora', Georgia, serif !important;
  color: #1C1917 !important;
  line-height: 1.3;
  font-weight: 600;
}

html body h1 { font-size: clamp(1.75rem, 4vw, 2.75rem) !important; }
html body h2 { font-size: clamp(1.35rem, 3vw, 2rem) !important; }
html body h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem) !important; }
html body h4 { font-size: 1.1rem !important; }

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

ul, ol { padding-left: 1.5rem; }

/* =========================================================
   SCROLL SAFETY — prevent any plugin or theme from locking scroll
   ========================================================= */
html, body {
  overflow-x: hidden;   /* hide horizontal scroll only */
  overflow-y: auto !important; /* vertical scroll always on */
  height: auto !important;
  max-height: none !important;
}

/* =========================================================
   GENERATEPRESS LAYOUT OVERRIDES
   — strip GP's container, padding, and header chrome
   ========================================================= */

/* Remove GP content padding so our templates control spacing */
.site-main,
.content-area,
.inside-article,
.entry-content,
.entry-header,
.entry-footer {
  padding: 0 !important;
  margin: 0 !important;
  max-width: none !important;
}

/* Ensure GP's container doesn't add unwanted max-width */
.site-content .inside-article { max-width: none !important; }

/* GP sets a white background on the main content container — override */
.site-content,
#page,
.site {
  background-color: #ffffff !important;
}

/* Remove any GP top margin that pushes content below header */
.content-area,
.site-main { margin-top: 0 !important; }

/* Hide GP's default entry title (we render our own H1) */
.entry-header .entry-title { display: none !important; }

/* GP sometimes adds a border/background to article — remove */
.post-7, article.type-position {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* =========================================================
   LAYOUT UTILITIES
   ========================================================= */
.spf-container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 20px;
}

.spf-grid {
  display: grid;
  gap: var(--col-gap);
}

.spf-grid-3 { grid-template-columns: repeat(3, 1fr); }
.spf-grid-2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 900px)  { .spf-grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .spf-grid-3, .spf-grid-2 { grid-template-columns: 1fr; } }

.spf-two-col {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}
@media (max-width: 900px) { .spf-two-col { grid-template-columns: 1fr; } }

/* =========================================================
   BUTTONS
   ========================================================= */
.spf-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: 40px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.spf-btn-primary {
  background: var(--accent);
  color: #fff;
}
.spf-btn-primary:hover { background: #b0566c; color: #fff; text-decoration: none; }

.spf-btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.spf-btn-ghost:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

/* =========================================================
   HEADER
   ========================================================= */
.spf-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff !important;
  border-bottom: 1px solid rgba(28,25,23,0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.spf-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}

.spf-logo {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  flex-shrink: 0;
}
.spf-logo:hover { color: var(--accent); text-decoration: none; }
.spf-logo span { color: var(--accent); }

/* Primary nav */
.spf-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.spf-nav a {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text2);
  transition: color 0.15s, background 0.15s;
}
.spf-nav a:hover { color: var(--accent); background: var(--accent-lt); text-decoration: none; }
.spf-nav .current-menu-item a { color: var(--accent); }

/* Hidden shop link — add .shop-ready to <body> or <nav> to reveal */
.spf-nav .nav-shop { display: none; }
.shop-ready .nav-shop { display: list-item; }

/* Search pill */
.spf-search-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 40px;
  border: 1.5px solid var(--border);
  background: var(--bg2);
  font-size: 13px;
  color: var(--text3);
  cursor: pointer;
  transition: border-color 0.2s;
  white-space: nowrap;
}
.spf-search-pill:hover { border-color: var(--accent); }
.spf-search-pill svg { flex-shrink: 0; }

.spf-search-expanded {
  display: none;
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 16px 20px;
  z-index: 99;
}
.spf-search-expanded.active { display: block; }
.spf-search-expanded input {
  width: 100%;
  max-width: 500px;
  padding: 10px 16px;
  border-radius: 40px;
  border: 1.5px solid var(--border);
  background: var(--bg2);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text);
  outline: none;
}
.spf-search-expanded input:focus { border-color: var(--accent); }

/* Hamburger */
.spf-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.spf-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.25s;
}
.spf-hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.spf-hamburger.active span:nth-child(2) { opacity: 0; }
.spf-hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.spf-mobile-nav {
  display: none;
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 12px 20px 20px;
  z-index: 98;
  box-shadow: var(--shadow-md);
}
.spf-mobile-nav.active { display: block; }
.spf-mobile-nav ul { list-style: none; padding: 0; }
.spf-mobile-nav a {
  display: block;
  padding: 12px 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.spf-mobile-nav a:hover { color: var(--accent); text-decoration: none; }
.spf-mobile-nav .nav-shop { display: none; }

@media (max-width: 768px) {
  .spf-nav, .spf-search-pill { display: none; }
  .spf-hamburger { display: flex; }
}

/* =========================================================
   AGE GATE
   — position:fixed overlay does NOT lock body scroll.
     JS hides it; the overlay blocks clicks visually.
   ========================================================= */
.spf-age-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none; /* hidden by default; JS calls showGate() if unverified */
  align-items: center;
  justify-content: center;
  background: rgba(28,25,23,0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.spf-age-gate.hidden { display: none !important; }

.spf-age-gate-box {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  max-width: 480px;
  width: 90%;
  text-align: center;
  box-shadow: var(--shadow-md);
}
.spf-age-gate-box h2 { margin-bottom: 12px; }
.spf-age-gate-box p { color: var(--text2); margin-bottom: 28px; font-size: 13px; }
.spf-age-gate-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* =========================================================
   AD SLOTS
   ========================================================= */
.spf-ad-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg2);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--text3);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 500;
}

.spf-ad-leaderboard {
  width: 100%;
  height: 90px;
  max-width: 728px;
  margin-inline: auto;
}

.spf-ad-incontent {
  width: 300px;
  height: 250px;
  margin-inline: auto;
}

.spf-ad-sidebar {
  width: 300px;
  height: 250px;
}

.spf-ad-sticky-bottom {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--bg);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.spf-ad-wrap {
  padding: 16px 0;
  text-align: center;
}
.spf-ad-wrap-label {
  font-size: 10px;
  color: var(--text3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

/* =========================================================
   HERO — HOMEPAGE
   ========================================================= */
.spf-hero {
  padding: 64px 0 48px;
  text-align: center;
}

.spf-hero-eyebrow {
  display: inline-block;
  background: var(--accent-lt);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 40px;
  margin-bottom: 18px;
}

.spf-hero h1 { margin-bottom: 16px; }

.spf-hero-sub {
  font-size: 16px;
  color: var(--text2);
  max-width: 540px;
  margin: 0 auto 32px;
}

/* Tag cloud */
.spf-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 24px;
}

.spf-tag {
  padding: 5px 14px;
  border-radius: 40px;
  border: 1.5px solid var(--border);
  font-size: 12px;
  font-weight: 500;
  color: var(--text2);
  background: var(--bg);
  transition: all 0.15s;
  cursor: pointer;
}
.spf-tag:hover, .spf-tag.active {
  background: var(--accent-lt);
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

/* =========================================================
   FILTER BAR
   ========================================================= */
.spf-filter-wrap {
  border-bottom: 1px solid rgba(28,25,23,0.08);
  background: #ffffff !important;
  position: sticky;
  top: 64px;
  z-index: 90;
}

.spf-filter-bar {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 12px 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.spf-filter-bar::-webkit-scrollbar { display: none; }

.spf-filter-btn {
  flex-shrink: 0;
  padding: 7px 16px;
  border-radius: 40px;
  border: 1.5px solid transparent;
  background: transparent;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--text2);
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.spf-filter-btn:hover {
  background: var(--accent-lt);
  color: var(--accent);
}
.spf-filter-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* =========================================================
   POSITION CARD
   ========================================================= */
.spf-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.spf-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.spf-card-thumb {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg2);
}
.spf-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.spf-card:hover .spf-card-thumb img { transform: scale(1.04); }

.spf-card-body {
  padding: 16px 18px 18px;
}

.spf-card-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.spf-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 40px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.spf-badge-cat {
  background: var(--accent-lt);
  color: var(--accent);
}

.spf-badge-diff {
  background: var(--bg2);
  color: var(--text2);
}
.spf-badge-diff.easy   { background: #ECFDF5; color: #059669; }
.spf-badge-diff.medium { background: #FFFBEB; color: #D97706; }
.spf-badge-diff.hard   { background: #FEF2F2; color: #DC2626; }

.spf-card h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.spf-card-excerpt {
  font-size: 12px;
  color: var(--text2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* =========================================================
   POSITION GRID SECTION
   ========================================================= */
.spf-grid-section { padding: 40px 0 60px; }

.spf-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
}

.spf-count-label {
  font-size: 13px;
  color: var(--text3);
}

/* =========================================================
   BREADCRUMB
   ========================================================= */
.spf-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-size: 12px;
  color: var(--text3);
  padding: 20px 0 0;
}
.spf-breadcrumb a { color: var(--text3); }
.spf-breadcrumb a:hover { color: var(--accent); text-decoration: none; }
.spf-breadcrumb-sep { color: var(--border); }

/* =========================================================
   SINGLE POSITION
   ========================================================= */
.spf-single { padding: 0 0 80px; }

.spf-single-main {
  background: transparent;
  border-radius: 0;
  border: none;
  box-shadow: none;
  padding: 0;
}

.spf-single-head { padding: 0 0 8px; }

.spf-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

/* Stats bar */
.spf-stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(28,25,23,0.08);
  border: 1px solid rgba(28,25,23,0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 24px 0;
}
@media (max-width: 700px) { .spf-stats-bar { grid-template-columns: repeat(2, 1fr); } }

.spf-stat {
  background: #ffffff !important;
  padding: 16px 12px;
  text-align: center;
  min-width: 0;
}
.spf-stat-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #A8A29E;
  margin-bottom: 6px;
  font-family: 'DM Sans', system-ui, sans-serif !important;
}
.spf-stat-value {
  font-family: 'Lora', Georgia, serif !important;
  font-size: 1rem;
  font-weight: 600;
  color: #1C1917;
  word-break: break-word;
  hyphens: auto;
  line-height: 1.3;
}
.spf-stat-sub {
  font-size: 11px;
  color: #A8A29E;
  margin-top: 2px;
}

/* Featured image */
.spf-featured-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 24px 0;
  background: var(--bg2);
  aspect-ratio: 16/9;
}
.spf-featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Content sections */
.spf-section {
  margin: 40px 0;
}
.spf-section-title {
  font-family: 'Lora', Georgia, serif !important;
  font-size: 1.3rem;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #F7E8EC;
}

/* =========================================================
   EDITOR CONTENT BODY STYLING
   Applies to the_content() output when ACF fields are empty.
   Transforms standard editor HTML into the editorial design.
   ========================================================= */
.spf-content-body {
  font-size: 15px;
  line-height: 1.85;
  color: #57534E;
}

/* ── H2: section title with rose underline ── */
.spf-content-body h2 {
  font-family: 'Lora', Georgia, serif !important;
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  color: #1C1917 !important;
  margin: 48px 0 20px !important;
  padding-bottom: 14px;
  border-bottom: 2px solid #F7E8EC;
  line-height: 1.25 !important;
}
.spf-content-body h2:first-child { margin-top: 8px !important; }

/* ── H3: variation / sub-heading ── */
.spf-content-body h3 {
  font-family: 'Lora', Georgia, serif !important;
  font-size: 1.1rem !important;
  font-weight: 600 !important;
  color: #1C1917 !important;
  margin: 28px 0 8px !important;
  line-height: 1.3 !important;
}

/* ── Paragraphs ── */
.spf-content-body p {
  margin-bottom: 1.1rem;
  color: #57534E;
  font-size: 15px;
  line-height: 1.85;
}

/* ── Ordered list → numbered steps with rose circles ── */
.spf-content-body ol {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 0 8px !important;
  counter-reset: spf-step;
}
.spf-content-body ol > li {
  counter-increment: spf-step;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid rgba(28,25,23,0.07);
  font-size: 15px;
  color: #57534E;
  line-height: 1.7;
}
.spf-content-body ol > li:last-child { border-bottom: none; }
.spf-content-body ol > li::before {
  content: counter(spf-step);
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #C4627A;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 3px;
  font-family: 'DM Sans', system-ui, sans-serif;
}

/* ── Unordered list → rose checkmarks ── */
.spf-content-body ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 0 8px !important;
}
.spf-content-body ul > li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid rgba(28,25,23,0.07);
  font-size: 15px;
  color: #57534E;
  line-height: 1.7;
}
.spf-content-body ul > li:last-child { border-bottom: none; }
.spf-content-body ul > li::before {
  content: "✓";
  color: #C4627A;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 3px;
  font-size: 14px;
  line-height: 1;
}

/* ── Bold/strong inside list items → acts as step title ── */
.spf-content-body li strong,
.spf-content-body li b {
  color: #1C1917;
  font-weight: 600;
}

/* ── "Term: definition" list items with bold title ──
   Quick Stats section: title+desc in same li, styled as cards.
   Benefits section: JS transforms to .spf-benefit-cards (see below). */
.spf-content-body ul:has(> li > strong:first-child),
.spf-content-body ul:has(> li > b:first-child) {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 0 0 24px !important;
}
@media (max-width: 600px) {
  .spf-content-body ul:has(> li > strong:first-child),
  .spf-content-body ul:has(> li > b:first-child) { grid-template-columns: 1fr; }
}
.spf-content-body ul > li:has(> strong:first-child),
.spf-content-body ul > li:has(> b:first-child) {
  display: block;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid rgba(28,25,23,0.08);
  padding: 20px;
  margin: 0;
}
.spf-content-body ul > li:has(> strong:first-child)::before,
.spf-content-body ul > li:has(> b:first-child)::before { content: none; }
.spf-content-body ul > li:has(> strong:first-child) strong,
.spf-content-body ul > li:has(> b:first-child) b {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #1C1917;
  margin-bottom: 8px;
}

/* ── JS-generated benefit cards (health/wellness section) ── */
.spf-benefit-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 0 0 24px;
}
@media (max-width: 600px) { .spf-benefit-cards { grid-template-columns: 1fr; } }
.spf-benefit-card {
  background: #ffffff;
  border: 1px solid rgba(28,25,23,0.08);
  border-radius: 12px;
  padding: 20px;
}
.spf-benefit-card strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #1C1917;
  margin-bottom: 8px;
}
.spf-benefit-card p {
  margin: 0 !important;
  color: #57534E;
  font-size: 14px;
  line-height: 1.65;
}

/* ── FAQ / Variations accordion: JS wraps each h3+p in-place ── */
.spf-cb-faq-item {
  border-bottom: 1px solid rgba(28,25,23,0.08);
}
/* Top border on the first item in each group (when preceded by h2) */
h2 + .spf-cb-faq-item { border-top: 1px solid rgba(28,25,23,0.08); }
.spf-cb-faq-item h3 {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0 !important;
  margin: 0 !important;
  cursor: pointer;
  background: none !important;
  border: none !important;
  border-radius: 0 !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  color: #1C1917 !important;
  user-select: none;
}
.spf-cb-faq-toggle {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #F7E8EC;
  color: #C4627A;
  font-size: 18px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 16px;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 400;
}
.spf-cb-faq-item.open .spf-cb-faq-toggle { content: "×"; }
.spf-cb-faq-item p {
  padding: 0 0 18px !important;
  margin: 0 !important;
  background: none !important;
  border-radius: 0 !important;
  font-size: 15px !important;
  color: #57534E !important;
  display: none;
}
.spf-cb-faq-item.open p { display: block; }

/* ── Nested lists (variations sub-items) ── */
.spf-content-body ul ul,
.spf-content-body ol ol {
  margin-top: 8px;
  padding-left: 16px !important;
}
.spf-content-body ul ul > li,
.spf-content-body ol ol > li {
  padding: 6px 0;
  font-size: 13px;
  border: none;
  background: none;
}
.spf-content-body ul ul > li::before { content: "–"; color: #A8A29E; }

/* ── Intro paragraph (first p before any h2) — slightly larger ── */
.spf-content-body > p:first-child {
  font-size: 16px;
  color: #57534E;
  line-height: 1.8;
}

/* Steps */
.spf-steps { list-style: none; padding: 0; }
.spf-step {
  display: flex;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.spf-step:last-child { border-bottom: none; }
.spf-step-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.spf-step-content { flex: 1; }
.spf-step-content strong { display: block; margin-bottom: 4px; font-size: 14px; }

/* Benefits */
.spf-benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (max-width: 560px) { .spf-benefits-grid { grid-template-columns: 1fr; } }

.spf-benefit-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--bg2);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.spf-benefit-icon {
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
}
.spf-benefit-text strong { display: block; font-size: 13px; margin-bottom: 2px; }
.spf-benefit-text span { font-size: 12px; color: var(--text2); }

/* Comfort tips */
.spf-tips { list-style: none; padding: 0; }
.spf-tip {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.spf-tip:last-child { border-bottom: none; }
.spf-tip::before {
  content: "✓";
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* FAQ accordion */
.spf-faq { border-top: 1px solid var(--border); }

.spf-faq-item { border-bottom: 1px solid var(--border); }

.spf-faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  color: var(--text);
  font-family: var(--font-body);
}
.spf-faq-q:hover { color: var(--accent); }

.spf-faq-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: transform 0.25s, background 0.2s;
  color: var(--text2);
}
.spf-faq-item.open .spf-faq-icon {
  transform: rotate(45deg);
  background: var(--accent-lt);
  color: var(--accent);
}

.spf-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.25s;
  font-size: 13px;
  color: var(--text2);
}
.spf-faq-item.open .spf-faq-a {
  max-height: 500px;
  padding-bottom: 18px;
}

/* Product recommendation zone */
.spf-product-zone {
  background: var(--bg2);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin: 32px 0;
  border: 1px solid var(--border);
}
.spf-product-zone-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 12px;
}

/* Share bar */
.spf-share-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 32px 0;
  flex-wrap: wrap;
}
.spf-share-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.spf-share-btn {
  padding: 6px 14px;
  border-radius: 40px;
  border: 1.5px solid var(--border);
  font-size: 12px;
  font-weight: 500;
  color: var(--text2);
  background: var(--bg);
  cursor: pointer;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.spf-share-btn:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

/* =========================================================
   SIDEBAR
   ========================================================= */
.spf-sidebar { position: relative; }

.spf-sidebar-widget {
  background: #fff;
  border-radius: 12px;
  border: 1px solid rgba(28,25,23,0.07);
  box-shadow: 0 1px 8px rgba(28,25,23,0.05);
  padding: 20px 22px;
  margin-bottom: 20px;
}
.spf-sidebar-widget h4 {
  font-family: 'DM Sans', system-ui, sans-serif !important;
  font-size: 10px !important;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #A8A29E;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(28,25,23,0.07);
}

.spf-sidebar-sticky {
  position: sticky;
  top: 90px;
}

/* =========================================================
   ARCHIVE HERO
   ========================================================= */
.spf-archive-hero {
  background: var(--bg2);
  padding: 48px 0;
  margin-bottom: 0;
  border-bottom: 1px solid var(--border);
}
.spf-archive-hero h1 { margin-bottom: 10px; }
.spf-archive-hero p { color: var(--text2); max-width: 560px; }

/* =========================================================
   PAGINATION
   ========================================================= */
.spf-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 40px 0 20px;
  flex-wrap: wrap;
}
.spf-pagination a,
.spf-pagination span {
  min-width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  border: 1.5px solid var(--border);
  color: var(--text2);
  transition: all 0.15s;
}
.spf-pagination a:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.spf-pagination .current { background: var(--accent); border-color: var(--accent); color: #fff; }

/* =========================================================
   FOOTER
   ========================================================= */
.spf-footer {
  background: #1C1917;
  color: #A8A29E;
  padding: 56px 0 40px;
  margin-top: 60px;
}

.spf-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 48px;
}
@media (max-width: 768px) {
  .spf-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .spf-footer-grid { grid-template-columns: 1fr; }
}

.spf-footer-logo {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: #FAF9F6 !important;
  margin-bottom: 10px;
  display: inline-block;
  text-decoration: none;
}
.spf-footer-logo:hover { color: #fff !important; text-decoration: none; }
.spf-footer-logo span { color: var(--accent); }
.spf-footer-tagline { font-size: 13px; color: #78716C; margin-top: 8px; }

.spf-footer-col { text-align: left; }
.spf-footer-col h5 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #FAF9F6;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.spf-footer-col ul { list-style: none; padding: 0; margin: 0; }
.spf-footer-col li { margin-bottom: 10px; }
.spf-footer-col li a { font-size: 13px; color: #78716C; transition: color 0.15s; text-decoration: none; display: block; }
.spf-footer-col li a:hover { color: #FAF9F6; text-decoration: none; }

/* Email capture */
.spf-email-form {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.spf-email-form input {
  flex: 1;
  padding: 10px 14px;
  border-radius: 40px;
  border: 1.5px solid #44403C;
  background: #292524;
  color: #FAF9F6;
  font-family: var(--font-body);
  font-size: 13px;
  outline: none;
  min-width: 0;
}
.spf-email-form input::placeholder { color: #78716C; }
.spf-email-form input:focus { border-color: var(--accent); }
.spf-email-form button {
  padding: 10px 18px;
  border-radius: 40px;
  background: var(--accent);
  color: #fff;
  border: none;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  font-family: var(--font-body);
  transition: background 0.2s;
}
.spf-email-form button:hover { background: #b0566c; }

.spf-footer-bottom {
  border-top: 1px solid #292524;
  padding-top: 24px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.spf-footer-disclaimer {
  font-size: 11px;
  color: #57534E;
  max-width: 600px;
  line-height: 1.6;
}
.spf-footer-legal {
  display: flex;
  gap: 16px;
  flex-shrink: 0;
}
.spf-footer-legal a { font-size: 11px; color: #57534E; }
.spf-footer-legal a:hover { color: var(--accent); text-decoration: none; }

/* =========================================================
   WOOCOMMERCE COMPAT
   ========================================================= */
.woocommerce .button,
.woocommerce button.button {
  background: var(--accent) !important;
  color: #fff !important;
  border-radius: 40px !important;
  font-family: var(--font-body) !important;
  font-weight: 600 !important;
}
.woocommerce .button:hover,
.woocommerce button.button:hover {
  background: #b0566c !important;
}

/* =========================================================
   GENERATEPRESS OVERRIDES
   ========================================================= */
.site-header { display: none !important; } /* We use our own header */
.site-footer { display: none !important; } /* We use our own footer */
.nav-primary { display: none !important; }

/* Keep GP content area clean */
.inside-article { padding: 0; }
.entry-header { display: none; }

/* =========================================================
   UTILITIES
   ========================================================= */
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }

/* Loading skeleton */
.spf-skeleton {
  background: linear-gradient(90deg, var(--bg2) 25%, var(--bg) 50%, var(--bg2) 75%);
  background-size: 200% 100%;
  animation: skeleton-pulse 1.4s ease infinite;
  border-radius: var(--radius);
}
@keyframes skeleton-pulse {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* No-results state */
.spf-no-results {
  text-align: center;
  padding: 80px 20px;
  color: var(--text2);
}
.spf-no-results svg { margin: 0 auto 16px; opacity: 0.3; }

@media print {
  .spf-header, .spf-footer, .spf-ad-slot, .spf-age-gate { display: none !important; }
}

/* =========================================================
   PAGE TEMPLATES (about, editorial, advertise, contact, guides)
   ========================================================= */
.spf-page { padding: 60px 0 80px; }
.spf-page-container { max-width: 900px; }
.spf-page h1 { font-family: 'Lora', Georgia, serif; font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 8px; }
.spf-page-lead { font-size: 1.1rem; color: var(--text2); margin-bottom: 40px; max-width: 640px; }
.spf-page-section { margin: 48px 0; }
.spf-page-section h2 { font-family: 'Lora', Georgia, serif; font-size: 1.4rem; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid #F7E8EC; }

/* Contact form */
.spf-contact-form { max-width: 640px; }
.spf-form-row { margin-bottom: 20px; }
.spf-form-row label { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.spf-form-row input, .spf-form-row select, .spf-form-row textarea { width: 100%; padding: 10px 14px; border: 1px solid rgba(28,25,23,0.15); border-radius: 8px; font-family: 'DM Sans', system-ui, sans-serif; font-size: 14px; background: #F5F4F2; color: var(--text); }
.spf-form-row textarea { min-height: 140px; resize: vertical; }
.spf-form-row input:focus, .spf-form-row select:focus, .spf-form-row textarea:focus { outline: none; border-color: var(--accent); }
.spf-form-msg { padding: 12px 16px; border-radius: 8px; font-size: 13px; margin-top: 16px; display: none; }
.spf-form-msg.success { background: #ECFDF5; color: #065F46; display: block; }
.spf-form-msg.error   { background: #FEF2F2; color: #991B1B; display: block; }

/* Guides blog grid */
.spf-guides-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 32px; }
@media (max-width: 640px) { .spf-guides-grid { grid-template-columns: 1fr; } }
.spf-guide-card { background: #fff; border: 1px solid rgba(28,25,23,0.08); border-radius: 12px; overflow: hidden; }
.spf-guide-card-body { padding: 20px; }
.spf-guide-card h2 { font-size: 1.1rem; margin-bottom: 8px; }
.spf-guide-card h2 a { color: var(--text); text-decoration: none; }
.spf-guide-card h2 a:hover { color: var(--accent); }
.spf-guide-card-meta { font-size: 12px; color: var(--text3); margin-bottom: 10px; }
.spf-guide-card p { font-size: 13px; color: var(--text2); margin: 0; }

/* About page hero */
.spf-page-hero { padding: 48px 0 40px; border-bottom: 1px solid var(--border); margin-bottom: 48px; }
.spf-values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 24px; }
@media (max-width: 680px) { .spf-values-grid { grid-template-columns: 1fr; } }
.spf-value-card { background: #F6F6F6; border-radius: 12px; padding: 24px; }
.spf-value-card h3 { font-size: 1rem; margin-bottom: 8px; font-family: 'Lora', Georgia, serif; }
.spf-value-card p { font-size: 13px; color: var(--text2); margin: 0; }

/* Categories page grid */
.spf-cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 40px 0; }
@media (max-width: 720px) { .spf-cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .spf-cat-grid { grid-template-columns: 1fr; } }
.spf-cat-block { display: block; text-decoration: none; background: #fff; border: 1px solid rgba(28,25,23,0.08); border-radius: 14px; overflow: hidden; transition: box-shadow .2s, transform .2s; }
.spf-cat-block:hover { box-shadow: 0 6px 24px rgba(28,25,23,0.10); transform: translateY(-2px); }
.spf-cat-block-inner { padding: 28px 24px 24px; position: relative; }
.spf-cat-block h2 { font-family: 'Lora', Georgia, serif; font-size: 1.2rem; color: var(--text); margin: 0 0 8px; line-height: 1.3; }
.spf-cat-block-desc { font-size: 13px; color: var(--text2); margin: 0 0 16px; line-height: 1.5; }
.spf-cat-block-count { display: inline-block; font-size: 12px; font-weight: 600; color: var(--accent); background: rgba(179,63,98,0.08); padding: 4px 10px; border-radius: 20px; }
.spf-cat-block-arrow { position: absolute; top: 28px; right: 24px; color: var(--accent); opacity: 0; transition: opacity .2s, transform .2s; }
.spf-cat-block:hover .spf-cat-block-arrow { opacity: 1; transform: translateX(3px); }

/* Ad format table */
.spf-ad-table { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 16px; }
.spf-ad-table th { text-align: left; padding: 10px 14px; background: #F6F6F6; font-weight: 600; font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; }
.spf-ad-table td { padding: 12px 14px; border-bottom: 1px solid rgba(28,25,23,0.07); }
