/* ===========================================================
   Lifesprout Care – inner pages (blog, article, shorts, contact)
   Builds on styles.css variables and components.
   =========================================================== */

.inner-page .header { background: #fff; }
.menu a.active { color: var(--blue); background: var(--sky); }

/* ---------- Page hero ---------- */
.page-hero { position: relative; overflow: hidden; padding: 70px 0 60px; text-align: center; background: linear-gradient(180deg, #f3f8ff 0%, #fff 100%); }
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); margin-bottom: 12px; position: relative; }
.page-hero p { max-width: 620px; margin: 0 auto; font-size: 1.05rem; position: relative; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero.dark { background: var(--grad-dark); }
.page-hero.dark h1, .page-hero.dark p { color: #fff; }
.page-hero.dark .eyebrow { background: rgba(255,255,255,.14); color: #8fe3de; }
.page-hero .blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .35; pointer-events: none; }
.page-hero .b1 { width: 340px; height: 340px; background: var(--blue); top: -160px; left: -80px; }
.page-hero .b2 { width: 300px; height: 300px; background: var(--teal); bottom: -170px; right: -60px; }

.search-bar { display: flex; align-items: center; gap: 10px; max-width: 620px; margin: 28px auto 0; background: #fff; border: 1.5px solid var(--line); border-radius: 50px; padding: 6px 6px 6px 20px; box-shadow: var(--shadow-sm); }
.search-bar i { color: var(--muted); }
.search-bar input { flex: 1; margin: 0; border: 0; padding: 10px 4px; background: transparent; box-shadow: none !important; min-width: 0; }

.section.tight { padding: 50px 0 80px; }
.section.alt.tight { padding: 70px 0; }
.section.tight .center, .container.center { margin-top: 0; text-align: center; }
.container.narrow { max-width: 780px; }
.container.narrow-wide { max-width: 1000px; }

/* ---------- Blog listing ---------- */
.filters a { padding: 9px 20px; border-radius: 30px; background: var(--bg-alt); color: var(--text); font-weight: 600; font-size: .9rem; transition: .3s; }
.filters a:hover { color: var(--blue); }
.filters a.active { background: var(--blue); color: #fff; box-shadow: var(--shadow-blue); }
a.post { display: block; color: inherit; }
.grid-ad { grid-column: 1 / -1; }
.grid-ad .ad-slot { margin: 0 auto; }
.blog-grid.three { grid-template-columns: repeat(3, 1fr); margin-top: 34px; }
.trending li a { color: inherit; }
.trending li a:hover { color: var(--blue); }
.blog-side { display: grid; gap: 22px; }
.blog-side.sticky { position: sticky; top: 100px; }
.blog-side .ad-slot.tall { margin: 0; }
.side-card .small, .small { font-size: .86rem; margin-bottom: 14px; }

.featured-post { display: grid; grid-template-columns: 1.15fr 1fr; gap: 0; background: #fff; border: 1px solid var(--line); border-radius: 26px; overflow: hidden; margin-bottom: 40px; box-shadow: var(--shadow-sm); transition: box-shadow .4s, transform .4s var(--ease); }
.featured-post:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.fp-img { min-height: 320px; background: var(--grad); }
.fp-img img { width: 100%; height: 100%; object-fit: cover; }
.fp-body { padding: 40px; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.fp-body h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin: 0; }
.fp-body .btn { align-self: flex-start; }
.post-cat.static { position: static; align-self: flex-start; background: var(--sky); }

.pager { display: flex; justify-content: center; gap: 8px; margin-top: 40px; flex-wrap: wrap; }
.pager a { min-width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--bg-alt); font-weight: 700; color: var(--ink); }
.pager a.active, .pager a:hover { background: var(--blue); color: #fff; }

/* ---------- Ad slots (live) ---------- */
.ad-slot.live { border: 0; background: none; min-height: 0; display: block; text-align: center; }
.ad-slot.live small { display: block; color: var(--muted); margin-bottom: 4px; }
.ad-slot.infeed { max-width: none; min-height: 140px; }

/* ---------- Article ---------- */
.preview-bar { background: #fff4d6; color: #7a5300; text-align: center; padding: 10px 16px; font-size: .9rem; }
.article-head { padding: 50px 0 30px; }
.article-head h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); margin: 14px 0 12px; }
.article-head .lead { margin: 0 0 24px; max-width: none; }
.back { display: inline-flex; gap: 8px; align-items: center; color: var(--blue); font-weight: 700; font-size: .88rem; }
.article-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding-top: 18px; border-top: 1px solid var(--line); }
.article-meta b { display: block; color: var(--ink); }
.article-meta small { color: var(--muted); }
.av { width: 40px; height: 40px; border-radius: 50%; background: var(--grad); color: #fff; display: inline-grid; place-items: center; font-size: .8rem; font-weight: 800; flex: none; }
.post-author .av { width: 30px; height: 30px; font-size: .7rem; }
.share { margin-left: auto; display: flex; gap: 8px; }
.share a { width: 38px; height: 38px; border-radius: 50%; background: var(--bg-alt); color: var(--ink); display: grid; place-items: center; transition: .3s; }
.share a:hover { background: var(--blue); color: #fff; }
.article-cover { width: 100%; max-height: 520px; object-fit: cover; border-radius: 26px; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 50px; padding: 40px 0 80px; align-items: start; }
.article-body { font-size: 1.07rem; line-height: 1.85; color: #33405c; max-width: 760px; }
.article-body > * + * { margin-top: 1.1em; }
.article-body h2 { font-size: 1.7rem; margin-top: 1.6em; }
.article-body h3 { font-size: 1.3rem; margin-top: 1.4em; }
.article-body ul, .article-body ol { padding-left: 1.4em; }
.article-body li + li { margin-top: .4em; }
.article-body a { color: var(--blue); text-decoration: underline; }
.article-body img { border-radius: 16px; margin-inline: auto; }
.article-body blockquote { border-left: 4px solid var(--teal); background: var(--mint); padding: 16px 22px; border-radius: 0 14px 14px 0; font-style: italic; color: var(--ink); }
.article-body table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.article-body th, .article-body td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.article-body th { background: var(--bg-alt); color: var(--ink); }
.article-body .ad-slot { margin: 30px auto; }
.disclaimer { font-size: .85rem; color: var(--muted); background: var(--bg-alt); padding: 14px 18px; border-radius: 14px; }
.cta-side { background: var(--mint); }

/* ---------- Shorts page ---------- */
.shorts.wide { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.short-box { width: min(420px, 100%); }
.short-frame { aspect-ratio: 9/16; max-height: 86vh; background: #000; }
.short-frame iframe, .short-frame video { width: 100%; height: 100%; border: 0; display: block; }
.empty { text-align: center; padding: 70px 20px; }
.empty i { font-size: 2.6rem; color: var(--blue); margin-bottom: 14px; }

/* ---------- Contact ---------- */
.btn-wa { background: #25d366; color: #fff; box-shadow: 0 12px 30px rgba(37,211,102,.35); }
.btn-wa:hover { background: #1ebe5b; transform: translateY(-3px); }
.hero-contact { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 26px; }
.contact-layout { display: grid; grid-template-columns: 1.35fr 1fr; gap: 32px; align-items: start; }
.contact-layout .card h3 { margin-bottom: 6px; display: flex; gap: 10px; align-items: center; }
.contact-layout .card h3 i { color: var(--blue); }
.form-intro { font-size: .92rem; margin-bottom: 20px; }
.contact-side { position: sticky; top: 100px; background: var(--grad-dark); color: #dfe8ff; border-radius: 24px; padding: 28px 24px; display: grid; gap: 22px; box-shadow: var(--shadow); }
.cs-block h4 { color: #fff; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 10px; opacity: .85; }
.cs-block h4 small { text-transform: none; letter-spacing: 0; font-weight: 500; opacity: .7; }
.cs-row { display: flex; gap: 14px; align-items: center; padding: 10px; margin: 0 -10px; border-radius: 14px; transition: background .25s; }
a.cs-row:hover { background: rgba(255,255,255,.08); }
.cs-row.static { align-items: flex-start; }
.cs-row > i { width: 42px; height: 42px; flex: none; border-radius: 12px; background: rgba(255,255,255,.1); color: #fff; display: grid; place-items: center; font-size: 1.05rem; }
.cs-row.wa > i { background: #25d366; }
.cs-row small { display: block; font-size: .76rem; color: #aebde0; }
.cs-row b { color: #fff; font-size: .98rem; word-break: break-word; }
.cs-row b.addr { font-weight: 600; font-size: .9rem; line-height: 1.5; display: block; }
.cs-link { display: inline-flex; gap: 6px; align-items: center; margin-top: 8px; font-size: .85rem; font-weight: 700; color: #7fe3dc; }
.cs-link:hover { color: #fff; }
.cs-hours { list-style: none; display: grid; gap: 6px; font-size: .9rem; }
.cs-hours li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed rgba(255,255,255,.12); padding-bottom: 6px; }
.cs-hours li:last-child { border: 0; padding: 0; }
.cs-hours b { color: #fff; font-weight: 600; text-align: right; }
.contact-socials { display: flex; gap: 10px; flex-wrap: wrap; }
.contact-socials a { width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,.1); color: #fff; display: grid; place-items: center; transition: .25s; }
.contact-socials a:hover { background: var(--teal); transform: translateY(-3px); }
.desk-head { text-align: center; margin-bottom: 28px; }
.desk-head h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-bottom: 6px; }
.desk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.desk { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 24px; display: grid; gap: 6px; transition: .3s var(--ease); }
.desk:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.desk > i { width: 48px; height: 48px; border-radius: 14px; background: var(--sky); color: var(--blue); display: grid; place-items: center; font-size: 1.2rem; margin-bottom: 6px; }
.desk b { color: var(--ink); font-size: 1.05rem; }
.desk small { font-size: .88rem; }
.desk span { margin-top: 8px; color: #128c4a; font-weight: 700; font-size: .9rem; display: inline-flex; gap: 8px; align-items: center; }
.map-card { position: relative; border-radius: 24px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.map-card iframe { width: 100%; height: 420px; border: 0; display: block; }
.map-info { position: absolute; right: 20px; top: 20px; max-width: 340px; background: #fff; border-radius: 18px; padding: 18px 20px; box-shadow: var(--shadow); display: grid; gap: 8px; justify-items: start; }
.map-info b { color: var(--ink); display: flex; gap: 8px; align-items: center; }
.map-info b i { color: var(--blue); }
.map-info p { font-size: .88rem; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .blog-layout, .article-layout, .contact-layout { grid-template-columns: 1fr; }
  .contact-side { position: static; }
  .desk-grid { grid-template-columns: 1fr; }
  .blog-side.sticky { position: static; }
  .featured-post { grid-template-columns: 1fr; }
  .fp-img { min-height: 220px; aspect-ratio: 16/9; }
  .blog-grid.three { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .blog-grid, .blog-grid.three { grid-template-columns: 1fr; }
  .fp-body { padding: 24px; }
  .share { margin-left: 0; width: 100%; }
  .page-hero { padding: 50px 0 40px; }
  .shorts.wide { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .field-row { grid-template-columns: 1fr; }
}

/* ---------- Policy pages ---------- */
.legal-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 50px; align-items: start; }
.legal-nav { position: sticky; top: 100px; display: grid; gap: 18px; }
.legal-nav a { display: block; padding: 8px 12px; border-radius: 10px; font-size: .88rem; font-weight: 600; color: var(--text); }
.legal-nav a:hover { color: var(--blue); }
.legal-nav a.active { background: #fff; color: var(--blue); box-shadow: var(--shadow-sm); }
.legal-nav .toc a { font-weight: 500; padding: 5px 12px; font-size: .82rem; }
.legal { max-width: 820px; font-size: 1rem; }
.legal h2 { font-size: 1.45rem; scroll-margin-top: 100px; }
.legal h3 { font-size: 1.1rem; }
.legal .lead-in { font-size: 1.08rem; background: var(--bg-alt); padding: 20px 24px; border-radius: 18px; border-left: 4px solid var(--blue); }
.legal-contact { margin-top: 40px; background: var(--mint); border-radius: 20px; padding: 24px; }
.legal-contact h3 { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
@media (max-width: 1000px) {
  .legal-layout { grid-template-columns: 1fr; gap: 24px; }
  .legal-nav { position: static; }
  .legal-nav .toc { display: none; }
}
@media (max-width: 600px) {
  .map-card iframe { height: 300px; }
  .map-info { position: static; max-width: none; border-radius: 0; box-shadow: none; }
  .hero-contact .btn { width: 100%; }
}
