/*
Theme Name: Blesmy Healthy Living
Theme URI: https://blessinghealthyliving.com/
Author: Blesmy
Author URI: https://blessinghealthyliving.com/
Description: A clean, Goods Discovered-style health magazine for Blessing Healthy Living — Healthy Living, Nutrition & Lifestyle. Homepage with search and guide grids, category pages for Food & Recipes, Wellness, Fitness and Lifestyle, single-post guides with related posts, and the same dusty-rose / mauve and dark-navy palette as the Blesmy Home Garden theme.
Version: 1.1
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: blesmy-healthy-living
Tags: blog, magazine, custom-menu, featured-images, threaded-comments, translation-ready, custom-header, custom-logo
*/

/* ============================================================
   PALETTE — Blessing's original blog palette (Nov 2026 change)
   Dusty-rose / mauve-pink is the main accent, dark navy for
   headings, black body text on white. No terracotta, no sage
   green, no orange. Keep it restrained: white + dusty-rose /
   mauve + dark navy only.
   ============================================================ */
:root {
  --rose: #c96087;          /* brand colour — main accent (was dusty rose #c08a92) */
  --rose-dark: #a94e72;     /* deeper shade of the brand colour — hover / deep accent */
  --rose-deep: #8f3f5e;     /* darkest shade of the brand colour, footer gradient end */
  --rose-light: #fbe9ef;    /* pale tint of the brand colour for bands */
  --rose-pale: #fceef2;     /* pale tint of the brand colour for hero */
  --navy: #22304f;          /* dark navy — headings */
  --navy-dark: #1a2438;     /* darker navy */
  --ink: #1a1a1a;           /* black body text */
  --ink-soft: #444444;
  --ink-mute: #6b6b6b;
  --white: #ffffff;
  --line: #f0dde4;          /* brand-rose-tinted hairline */
  --radius: 14px;
  --shadow: 0 6px 24px rgba(34, 48, 79, 0.08);
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-head: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; }
a { color: var(--rose-dark); text-decoration: none; }
a:hover, a:focus { color: var(--rose-deep); text-decoration: underline; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 0.6em;
  font-weight: 800;
}
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em 1.25em; padding: 0; }
blockquote {
  margin: 1.5em 0; padding: 1em 1.25em;
  border-left: 4px solid var(--rose);
  background: var(--rose-light); color: var(--navy);
}
code { background: var(--rose-light); padding: 0.1em 0.35em; border-radius: 4px; }
pre { background: var(--navy-dark); color: #fff; padding: 1em; overflow: auto; border-radius: 8px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--rose); outline-offset: 2px; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.screen-reader-text {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff; padding: 10px 16px; z-index: 100; }
.skip-link:focus { left: 10px; top: 10px; color: #fff; }

/* ---------- Top bar ---------- */
/* Top bar — social icons ONLY, just like the footer's social row, but kept at the
   top bar's own slim size (same height as before). No tagline, no RSS, no text links. */
.top-bar {
  background: linear-gradient(135deg, #f2c6d4 0%, #fbe9ef 50%, #f2c6d4 100%);
  color: var(--rose-deep);
  font-size: 13px;
}
.top-bar .container { display: flex; justify-content: flex-start; align-items: center; gap: 16px; padding-top: 13px; padding-bottom: 13px; }
.top-bar a { color: var(--rose-deep); font-weight: 600; }
.top-bar a:hover { color: var(--navy-dark); text-decoration: none; }
.top-bar .top-tagline { margin: 0; }
.top-social { display: flex; gap: 26px; align-items: center; }
.top-social a { display: inline-flex; line-height: 0; }
.top-social svg { display: block; width: 30px; height: 30px; }

/* ---------- Header ---------- */
.site-header { background: var(--white); border-bottom: 3px solid var(--rose); }
/* Logo left, menu + search on the same row to the right — no wrapping on desktop.
   The tagline under the logo is hidden here; the same words are the hero heading. */
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 8px; padding-bottom: 8px; flex-wrap: nowrap; max-width: 1360px; }
.site-branding .site-description { display: none; }
.main-navigation { margin-left: auto; }
.site-branding a { text-decoration: none; display: flex; align-items: center; gap: 12px; }
/* Header logo, Goods Discovered-style: big and conspicuous, logo on the left, menu on the right. */
.site-branding img, .custom-logo { height: 175px; width: auto; max-height: 175px; display: block; }
.site-logo-img { height: 175px; width: auto; max-height: 175px; }
.site-title {
  margin: 0; font-size: 26px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--navy);
}
.site-title a { color: var(--navy); }
.site-title a:hover { color: var(--rose-dark); text-decoration: none; }
.site-description { margin: 2px 0 0; font-size: 13px; color: var(--ink-mute); }
.main-navigation ul { display: flex; flex-wrap: nowrap; gap: 4px 18px; list-style: none; margin: 0; padding: 0; }
.main-navigation a {
  color: var(--navy); font-weight: 800; font-size: 22px; letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none; padding: 6px 0; white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.main-navigation a:hover, .main-navigation .current-menu-item > a { color: var(--rose-dark); border-bottom-color: var(--rose); text-decoration: none; }
.header-search { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.header-search .search-form { max-width: 230px; }
.header-search .search-form input[type="search"] { padding: 10px 12px; }
.header-search .search-form button { padding: 10px 14px; }
.menu-toggle { display: none; background: var(--rose); color: #fff; border: 0; border-radius: 999px; padding: 10px 18px; font-weight: 700; cursor: pointer; }
.menu-toggle:hover { background: var(--rose-dark); }

/* ---------- Hero ---------- */
.hero {
  background: var(--rose-pale);
  border-bottom: 1px solid var(--line);
  padding: 52px 0 48px;
  text-align: center;
}
.hero-eyebrow {
  margin: 0 0 10px; color: var(--rose-dark); font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; font-size: 13px;
}
.hero h1 { font-size: clamp(32px, 5vw, 52px); margin-bottom: 12px; text-align: center; }
.hero-sub { font-size: 18px; color: var(--ink-soft); max-width: 640px; margin-left: auto; margin-right: auto; }
/* Hero band is centred: heading, sub-text, search bar and category chips
   all sit in the middle (replaces the earlier right-aligned search block). */
.hero-search { display: flex; max-width: 560px; margin: 22px auto 16px; }
.hero-search input[type="search"] {
  flex: 1; padding: 14px 18px; border: 2px solid var(--rose); border-right: 0;
  border-radius: 999px 0 0 999px; background: #fff; font-size: 16px; min-width: 0;
}
.hero-search button {
  background: var(--rose); color: #fff; border: 2px solid var(--rose); border-radius: 0 999px 999px 0;
  padding: 14px 22px; font-weight: 800; cursor: pointer; white-space: nowrap;
}
.hero-cats { justify-content: center; }
.hero-search button:hover { background: var(--rose-dark); border-color: var(--rose-dark); }
.hero-cats { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; justify-content: center; }
.hero-cats a {
  display: inline-block; background: #fff; border: 1px solid var(--rose); color: var(--navy);
  border-radius: 999px; padding: 7px 14px; font-size: 14px; font-weight: 700; text-decoration: none; text-transform: uppercase;
}
.hero-cats a:hover { background: var(--rose); color: #fff; }

/* ---------- Sections / headings ---------- */
.section { padding: 44px 0 8px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 20px; border-bottom: 3px solid var(--rose); padding-bottom: 10px; }
.section-head h2 { margin: 0; font-size: 28px; }
.section-head h2::after { content: "."; color: var(--rose); }
.section-head a { font-weight: 700; white-space: nowrap; }
.section-intro { color: var(--ink-soft); max-width: 720px; }

/* ---------- Card grid (the WordPress loop) ---------- */
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; list-style: none; margin: 0 0 28px; padding: 0; }
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }

/* ---------- Video Reviews (homepage) ---------- */
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; list-style: none; margin: 0 0 28px; padding: 0; }
.video-grid li { aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--navy-dark); }
.video-grid iframe { width: 100%; height: 100%; border: 0; display: block; }
.post-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; height: 100%;
}
.post-card:hover { border-color: var(--rose); }
.card-thumb { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--rose-light); }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-thumb--placeholder { display: flex; align-items: center; justify-content: center; color: var(--rose-dark); font-weight: 700; padding: 20px; text-align: center; }
.card-body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.card-cat { font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--rose-dark); margin-bottom: 8px; }
.card-cat a { color: var(--rose-dark); }
.card-title { font-size: 19px; margin: 0 0 8px; }
.card-title a { color: var(--navy); text-decoration: none; }
.card-title a:hover { color: var(--rose-dark); }
/* v1.43 — the excerpt used to stretch (flex: 1) to fill equal-height cards,
   which pushed its text down and left a gap under the title. It now sits
   directly under the title, and the Read more button pins itself to the
   bottom of the card instead. */
.card-excerpt { color: var(--ink-soft); font-size: 15px; }
.card-meta { font-size: 13px; color: var(--ink-mute); margin: 10px 0 14px; }
.btn {
  display: inline-block; background: var(--navy); color: #fff; border-radius: 999px;
  padding: 10px 20px; font-weight: 800; font-size: 14px; text-decoration: none; border: 0; cursor: pointer;
}
.btn:hover { background: var(--rose-dark); color: #fff; text-decoration: none; }
/* Read more buttons use the brand colour Blessing picked: #c96087 background,
   white text, a deeper shade of the same pink on hover. */
.read-more {
  display: inline-block; background: #c96087; color: #fff; border-radius: 999px;
  padding: 10px 20px; font-weight: 800; font-size: 14px; text-decoration: none; border: 0; cursor: pointer;
  margin-top: auto;
}
.read-more:hover { background: #a94e72; color: #fff; text-decoration: none; }
.btn--rose { background: var(--rose); }
.btn--rose:hover { background: var(--rose-dark); }
.btn--outline { background: #fff; color: var(--navy); border: 2px solid var(--navy); }
.btn--outline:hover { background: var(--navy); color: #fff; }

/* ---------- Category chips / board index ---------- */
.board-index { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; list-style: none; margin: 0 0 28px; padding: 0; }
.board-index li { background: var(--rose-light); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.board-index h3 { font-size: 17px; margin-bottom: 6px; text-transform: uppercase; }
.board-index h3 a { color: var(--navy); }
.board-index p { font-size: 14px; color: var(--ink-soft); margin: 0; }
.board-count { display: block; margin-top: 8px; font-size: 13px; font-weight: 700; color: var(--rose-dark); }

/* ---------- Newsletter band ---------- */
.newsletter {
  background: var(--rose);
  color: #fff;
  margin-top: 32px; padding: 18px 0;
}
.newsletter h2 { color: #fff; font-size: 24px; margin: 0 0 6px; }
.newsletter p { color: #fff; opacity: 0.95; margin: 0 0 10px; }
/* One short rectangular row: inbox phrase on the left, email + Subscribe button on the right.
   Jetpack's own "Subscribe to Blog via Email" heading and intro repeat the inbox phrase,
   so hide them here and lay its email field and button side by side. */
.newsletter .jetpack_subscription_widget { margin: 0; }
.newsletter .jetpack_subscription_widget > h2,
.newsletter .jetpack_subscription_widget > p { display: none; }
.newsletter .jetpack_subscription_widget form { display: flex; gap: 10px; align-items: center; margin: 0; }
.newsletter #subscribe-email { flex: 1 1 auto; margin: 0; }
.newsletter #subscribe-email input[type="email"] { width: 100%; padding: 13px 16px; border-radius: 999px; border: 0; font-size: 16px; }
.newsletter #subscribe-submit { margin: 0; flex-shrink: 0; }
.newsletter #subscribe-submit input[type="submit"] { background: var(--navy); color: #fff; border: 0; border-radius: 999px; padding: 13px 24px; font-size: 16px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.newsletter #subscribe-submit input[type="submit"]:hover { background: var(--navy-dark); }
.newsletter .container { display: flex; gap: 28px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.newsletter-form { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter-form input[type="email"] { padding: 13px 16px; border-radius: 999px; border: 0; min-width: 260px; font-size: 16px; }
.newsletter-form .btn { background: var(--navy); }
.newsletter-form .btn:hover { background: var(--navy-dark); }
.newsletter-note { font-size: 13px; opacity: 0.9; margin: 10px 0 0; }

/* ---------- Single post ---------- */
.post-hero { padding: 36px 0 0; }
.post-hero .card-cat { font-size: 13px; }
.post-hero h1 { font-size: clamp(28px, 4.5vw, 44px); }
.post-byline { color: var(--ink-mute); font-size: 14px; margin-bottom: 20px; }
.post-featured { border-radius: var(--radius); overflow: hidden; margin-bottom: 28px; }
.post-featured img { width: 100%; display: block; }
.post-layout { display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: start; }
/* Single posts: no sidebar — one centred column, Goods Discovered-style. */
.single .post-layout { grid-template-columns: 1fr; }
.single article .container { max-width: 760px; }
.entry-content { font-size: 18px; }
.entry-content h2 { font-size: 26px; margin-top: 1.6em; }
.entry-content h3 { font-size: 21px; margin-top: 1.4em; }
/* About page tagline — the centred h3 at the top of the page, made
   bigger and bolder so it stands out. */
.page-about .entry-content h3.has-text-align-center {
  font-size: 34px; font-weight: 800; line-height: 1.25; margin-top: 0.4em;
}
.entry-content img { border-radius: 12px; }
.entry-content ul li, .entry-content ol li { margin-bottom: 0.4em; }
.checklist {
  background: var(--rose-light); border: 1px solid var(--line); border-left: 4px solid var(--rose);
  border-radius: 12px; padding: 20px 22px; margin: 28px 0;
}
.checklist h2, .checklist h3 { margin-top: 0; font-size: 20px; }
.checklist ul { list-style: none; margin: 0; }
.checklist li { padding-left: 28px; position: relative; margin-bottom: 8px; }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--rose-dark); font-weight: 800; }
.disclosure-box {
  background: var(--rose-light); border: 1px solid var(--rose); border-radius: 12px;
  padding: 18px 20px; font-size: 14px; color: var(--ink-soft); margin: 32px 0;
}
.disclosure-box strong { color: var(--navy); }
/* Short affiliate note under the post title (v1.36). */
.affiliate-note { font-size: 15px; font-style: italic; color: var(--ink-mute); margin: 6px 0 0; }
.affiliate-note a { color: var(--rose-dark); }
/* "Shop this guide" box (v1.35) — only renders when the post has
   affiliate links saved; buttons use the brand colour. */
.shop-box {
  background: var(--rose-light); border: 1px solid var(--rose); border-radius: 12px;
  padding: 22px 24px; margin: 32px 0;
}
.shop-box h2 { margin: 0 0 4px; font-size: 22px; }
.shop-box p { margin: 0 0 14px; color: var(--ink-soft); }
.shop-box p.shop-buttons { margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.shop-btn {
  display: inline-block; background: var(--rose); color: #fff; font-weight: 700;
  padding: 10px 18px; border-radius: 999px; text-decoration: none; font-size: 15px;
}
.shop-btn:hover { background: var(--rose-dark); color: #fff; text-decoration: none; }
.post-tags { font-size: 14px; color: var(--ink-mute); margin: 20px 0; }
.post-tags a { color: var(--rose-dark); }
.related { padding-top: 8px; }
.related h2 { font-size: 24px; border-bottom: 3px solid var(--rose); padding-bottom: 8px; }

/* ---------- Archive / search / page ---------- */
.page-head { background: var(--rose-pale); border-bottom: 1px solid var(--line); padding: 36px 0; }
.page-head h1 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 8px; }
.page-head p { color: var(--ink-soft); max-width: 720px; margin: 0; }
.loop-wrap { padding: 36px 0 8px; }
.no-results { background: var(--rose-light); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.pagination { display: flex; gap: 8px; justify-content: center; margin: 28px 0 40px; flex-wrap: wrap; }
.pagination a, .pagination span { padding: 9px 15px; border: 1px solid var(--rose); border-radius: 999px; font-weight: 700; text-decoration: none; color: var(--navy); }
.pagination .current, .pagination a:hover { background: var(--rose); color: #fff; }
.search-form { display: flex; max-width: 480px; }
.search-form input[type="search"] { flex: 1; padding: 12px 16px; border: 2px solid var(--rose); border-right: 0; border-radius: 999px 0 0 999px; min-width: 0; }
.search-form button { background: var(--rose); color: #fff; border: 2px solid var(--rose); border-radius: 0 999px 999px 0; padding: 12px 20px; font-weight: 800; cursor: pointer; }
.search-form button:hover { background: var(--rose-dark); }

/* ---------- Sidebar ---------- */
.widget-area { background: #fff; }
.widget { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 24px; }
.widget h2, .widget .widget-title { font-size: 18px; border-bottom: 2px solid var(--rose); padding-bottom: 8px; }
.widget ul { list-style: none; margin: 0; }
.widget li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.widget li:last-child { border-bottom: 0; }

/* ---------- Comments ---------- */
.comments-area { margin-top: 40px; border-top: 1px solid var(--line); padding-top: 28px; }
.comment-list { list-style: none; margin: 0; }
.comment-body { border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin-bottom: 16px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
  width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 12px;
}
.comment-form input[type="submit"] { background: var(--rose); color: #fff; border: 0; border-radius: 999px; padding: 12px 24px; font-weight: 800; cursor: pointer; }
.comment-form input[type="submit"]:hover { background: var(--rose-dark); }

/* ---------- Footer ---------- */
/* Footer, Goods Discovered style: links left, social icons middle, copyright right. */
.site-footer {
  /* Lighter, like Goods Discovered's pale footer: pale rose, almost white in the middle. */
  background: linear-gradient(135deg, #f2c6d4 0%, #fbe9ef 50%, #f2c6d4 100%);
  color: var(--rose-deep); margin-top: 48px; padding: 26px 0;
}
.site-footer a { color: var(--rose-deep); }
.site-footer a:hover { color: var(--navy-dark); }
.footer-main { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: center; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 14px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.footer-links a { white-space: nowrap; }
.footer-social { display: flex; gap: 20px; justify-content: center; align-items: center; }
.footer-social a { display: inline-flex; line-height: 0; color: var(--rose-deep); }
.footer-social svg { display: block; }
.site-copyright { font-size: 14px; text-align: right; white-space: nowrap; }
@media (max-width: 960px) {
  .footer-main { grid-template-columns: 1fr; text-align: center; }
  .footer-links { justify-content: center; }
  .site-copyright { text-align: center; }
}

/* ---------- 404 ---------- */
.error-404 { text-align: center; padding: 60px 0; }
.error-404 h1 { font-size: 72px; color: var(--rose); margin-bottom: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .site-header .container { flex-wrap: wrap; }
  .main-navigation { margin-left: 0; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .video-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .board-index { grid-template-columns: repeat(2, 1fr); }
  .post-layout { grid-template-columns: 1fr; }
  .menu-toggle { display: inline-block; }
  .main-navigation { display: none; width: 100%; }
  .main-navigation.toggled { display: block; }
  .main-navigation ul { flex-direction: column; gap: 2px; }
  .main-navigation a { display: block; padding: 10px 0; }
}
@media (max-width: 560px) {
  .card-grid, .card-grid--3, .board-index, .video-grid { grid-template-columns: 1fr; }
  .hero { padding: 36px 0; }
  .top-bar .top-tagline { display: none; }
  .newsletter-form input[type="email"] { min-width: 0; width: 100%; }
}
