/*
Theme Name: Healthy Habits Blogs
Theme URI: https://healthyhabitsblogs.net
Author: Healthy Habits Blogs
Author URI: https://healthyhabitsblogs.net
Description: A warm, botanical blog theme for recipes, wellness, and fitness. Ships with a styled homepage, category archives, article layout, original illustrations, and a matching newsletter section.
Version: 1.1
Requires at least: 6.0
Tested up to: 6.5
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: healthyhabitsblogs
*/

/* ============================================================
   HEALTHY HABITS BLOGS — Global Stylesheet
   Install ONCE (Appearance > Customize > Additional CSS, or a
   CSS plugin). Everything is scoped under .hhb so it won't
   collide with your theme. All page blocks use these classes.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Karla:wght@400;500;600;700&display=swap');

/* ---- Design tokens ---- */
.hhb {
  --green:      #2E5A45;
  --green-deep: #1E3E30;
  --honey:      #E79A3C;
  --honey-dark: #C97E24;
  --leaf:       #8FBF6E;
  --paper:      #FAF7EF;
  --cream:      #F0EBDD;
  --ink:        #243029;
  --muted:      #5C6B60;
  --line:       #E0D9C8;
  --white:      #FFFFFF;

  --cat-recipes:  #CC5D3B;
  --cat-wellness: #3E7D6E;
  --cat-fitness:  #A24A6B;

  --radius:   18px;
  --radius-s: 12px;
  --shadow:   0 14px 40px rgba(30,62,48,.10);
  --shadow-s: 0 6px 18px rgba(30,62,48,.08);
  --maxw:     1140px;

  font-family: 'Karla', 'Segoe UI', system-ui, Arial, sans-serif;
  color: var(--ink);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
.hhb *, .hhb *::before, .hhb *::after { box-sizing: border-box; }
.hhb img { max-width: 100%; height: auto; display: block; }
.hhb a { color: var(--green); text-decoration: none; }
.hhb a:hover { text-decoration: underline; }

.hhb h1, .hhb h2, .hhb h3, .hhb h4 {
  font-family: 'Fraunces', Georgia, serif;
  color: var(--ink);
  line-height: 1.12;
  margin: 0 0 .5em;
  font-weight: 600;
}
.hhb .wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ---- Eyebrow / streak motif ---- */
.hhb .eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--green); display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px;
}
.hhb .eyebrow::before {
  content: ""; width: 34px; height: 8px; border-radius: 4px;
  background:
    radial-gradient(circle 3px at 4px 4px, var(--honey) 99%, transparent) 0 0/12px 8px repeat-x;
}

/* ---- Buttons ---- */
.hhb .btn {
  display: inline-block; font-family: 'Karla', sans-serif; font-weight: 700;
  font-size: 16px; padding: 14px 26px; border-radius: 999px; cursor: pointer;
  border: 2px solid transparent; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-decoration: none;
}
.hhb .btn:hover { text-decoration: none; transform: translateY(-2px); }
.hhb .btn-primary { background: var(--honey); color: #3a2a10; box-shadow: var(--shadow-s); }
.hhb .btn-primary:hover { background: var(--honey-dark); color: #3a2a10; }
.hhb .btn-ghost { background: transparent; color: var(--green); border-color: var(--green); }
.hhb .btn-ghost:hover { background: var(--green); color: #fff; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.hhb-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.hhb-header .bar { display: flex; align-items: center; justify-content: space-between; padding: 16px 22px; max-width: var(--maxw); margin: 0 auto; gap: 20px; }
.hhb-brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.hhb-brand .mark { width: 52px; height: 52px; border-radius: 16px; background: var(--green); position: relative; flex: none; }
.hhb-brand .mark svg { position: absolute; inset: 0; }
.hhb-brand .name { font-family: 'Fraunces', serif; font-weight: 600; font-size: 24px; color: var(--ink); line-height: 1; }
.hhb-brand .name small { display: block; font-family: 'Karla', sans-serif; font-weight: 700; font-size: 11px; letter-spacing: .32em; color: var(--green); margin-top: 4px; }
.hhb-nav { display: flex; align-items: center; gap: 26px; }
.hhb-nav .navlinks { display: flex; align-items: center; gap: 24px; }
.hhb-nav a { font-weight: 600; color: var(--ink); font-size: 16px; }
.hhb-nav a:hover { color: var(--green); text-decoration: none; }
.hhb-nav .btn { padding: 10px 20px; }

/* ============================================================
   HERO
   ============================================================ */
.hhb-hero { background: var(--paper); padding: 64px 0 72px; position: relative; overflow: hidden; }
.hhb-hero .grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 54px; align-items: center; }
.hhb-hero h1 { font-size: clamp(38px, 5.4vw, 62px); letter-spacing: -.01em; }
.hhb-hero h1 em { font-style: italic; color: var(--green); }
.hhb-hero p.lede { font-size: 19px; color: var(--muted); max-width: 30em; margin: 0 0 28px; }
.hhb-hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.hhb-hero .art {
  border-radius: 26px; background: linear-gradient(150deg, var(--green) 0%, var(--green-deep) 100%);
  aspect-ratio: 4/3.4; position: relative; box-shadow: var(--shadow); overflow: hidden;
}
.hhb-hero .art .sprout { position: absolute; right: 8%; bottom: -6%; width: 62%; opacity: .96; }
.hhb-hero .art .chip {
  position: absolute; background: var(--paper); border-radius: 14px; padding: 12px 16px;
  box-shadow: var(--shadow-s); font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 10px;
}
.hhb-hero .art .chip .dot { width: 10px; height: 10px; border-radius: 50%; }
.hhb-hero .art .chip.a { top: 26px; left: 24px; }
.hhb-hero .art .chip.b { top: 96px; left: 40px; }
.hhb-hero .art .chip.c { bottom: 34px; left: 26px; }

/* ============================================================
   SECTIONS / CATEGORY CARDS
   ============================================================ */
.hhb-section { padding: 68px 0; }
.hhb-section.alt { background: var(--cream); }
.hhb-section .head { text-align: center; max-width: 40em; margin: 0 auto 44px; }
.hhb-section .head h2 { font-size: clamp(30px, 3.6vw, 42px); }
.hhb-section .head p { color: var(--muted); font-size: 18px; margin: 0; }

.hhb-cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.hhb-cat {
  background: var(--white); border-radius: var(--radius); padding: 30px; border: 1px solid var(--line);
  box-shadow: var(--shadow-s); transition: transform .18s ease, box-shadow .18s ease; display: block;
}
.hhb-cat:hover { transform: translateY(-4px); box-shadow: var(--shadow); text-decoration: none; }
.hhb-cat .tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; color: #fff; margin-bottom: 16px; }
.hhb-cat h3 { font-size: 26px; color: var(--ink); }
.hhb-cat p { color: var(--muted); margin: 0 0 18px; }
.hhb-cat .more { font-weight: 700; color: var(--green); }
.tag-recipes  { background: var(--cat-recipes); }
.tag-wellness { background: var(--cat-wellness); }
.tag-fitness  { background: var(--cat-fitness); }
.text-recipes  { color: var(--cat-recipes); }
.text-wellness { color: var(--cat-wellness); }
.text-fitness  { color: var(--cat-fitness); }

/* ---- Article cards grid ---- */
.hhb-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.hhb-card { background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-s); transition: transform .18s ease, box-shadow .18s ease; }
.hhb-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.hhb-card .thumb { aspect-ratio: 3/2; background: var(--cream); position: relative; overflow: hidden; }
.hhb-card .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.hhb-card .thumb .tag { position: absolute; top: 14px; left: 14px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; color: #fff; }
.hhb-card .body { padding: 22px 22px 26px; }
.hhb-card .body .meta { font-size: 13px; color: var(--muted); font-weight: 600; margin-bottom: 8px; }
.hhb-card .body h3 { font-size: 21px; margin-bottom: 8px; }
.hhb-card .body h3 a { color: var(--ink); }
.hhb-card .body h3 a:hover { color: var(--green); text-decoration: none; }
.hhb-card .body p { color: var(--muted); font-size: 15.5px; margin: 0; }

/* ============================================================
   NEWSLETTER
   ============================================================ */
.hhb-news { background: var(--green); color: #eaf1ea; border-radius: 26px; padding: 52px; text-align: center; box-shadow: var(--shadow); }
.hhb-news h2 { color: #fff; font-size: clamp(28px, 3.4vw, 40px); }
.hhb-news p { color: #cfe0d4; font-size: 18px; max-width: 34em; margin: 0 auto 26px; }
.hhb-form { display: flex; gap: 12px; max-width: 520px; margin: 0 auto; flex-wrap: wrap; justify-content: center; }
.hhb-form input[type=email] { flex: 1 1 260px; min-width: 220px; padding: 15px 18px; border-radius: 999px; border: 2px solid transparent; font-size: 16px; font-family: inherit; color: var(--ink); }
.hhb-form input[type=email]:focus { outline: 3px solid var(--honey); }
.hhb-form .btn { flex: none; }
.hhb-news .fineprint { font-size: 13px; color: #a9c3b1; margin-top: 16px; }
.hhb-news .fineprint a { color: #fff; text-decoration: underline; }

/* ============================================================
   FOOTER
   ============================================================ */
.hhb-footer { background: var(--green-deep); color: #cdd9cf; padding: 56px 0 30px; }
.hhb-footer .cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.hhb-footer h4 { color: #fff; font-family: 'Karla', sans-serif; font-weight: 700; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 16px; }
.hhb-footer a { color: #cdd9cf; }
.hhb-footer a:hover { color: #fff; }
.hhb-footer ul { list-style: none; margin: 0; padding: 0; }
.hhb-footer ul li { margin-bottom: 10px; }
.hhb-footer .blurb { max-width: 30em; color: #a9bdae; }
.hhb-footer .brand-row { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.hhb-footer .brand-row .name { font-family: 'Fraunces', serif; font-size: 22px; color: #fff; }
.hhb-footer .legal { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 22px; font-size: 13px; color: #96ab9c; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ============================================================
   ARTICLE (single post) & LEGAL pages
   ============================================================ */
.hhb-article { background: var(--paper); padding: 56px 0 72px; }
.hhb-article .col { max-width: 760px; margin: 0 auto; }
.hhb-article .hero-img { width: 100%; aspect-ratio: 16/8; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-s); margin: 0 0 28px; display: block; }
.hhb-article .tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; color: #fff; margin-bottom: 16px; }
.hhb-article h1 { font-size: clamp(32px, 4.4vw, 50px); margin-bottom: 14px; }
.hhb-article .byline { color: var(--muted); font-weight: 600; font-size: 15px; margin-bottom: 30px; }
.hhb-article .lead { font-size: 20px; color: var(--ink); }
.hhb-article h2 { font-size: 28px; margin-top: 40px; }
.hhb-article h3 { font-size: 22px; margin-top: 28px; }
.hhb-article p { margin: 0 0 20px; }
.hhb-article ul, .hhb-article ol { margin: 0 0 22px; padding-left: 24px; }
.hhb-article li { margin-bottom: 8px; }
.hhb-article blockquote { border-left: 4px solid var(--honey); background: var(--cream); margin: 26px 0; padding: 18px 24px; border-radius: 0 var(--radius-s) var(--radius-s) 0; font-family: 'Fraunces', serif; font-size: 20px; font-style: italic; color: var(--green-deep); }
.hhb-article .callout { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; margin: 28px 0; box-shadow: var(--shadow-s); }
.hhb-article .callout h4 { font-family: 'Fraunces', serif; font-size: 19px; margin: 0 0 10px; color: var(--green); }
.hhb-article .recipe-meta { display: flex; gap: 26px; flex-wrap: wrap; background: var(--cream); border-radius: var(--radius); padding: 18px 24px; margin: 26px 0; }
.hhb-article .recipe-meta div { font-size: 14px; }
.hhb-article .recipe-meta strong { display: block; font-family: 'Fraunces', serif; font-size: 20px; color: var(--green); }
.hhb-article hr { border: none; border-top: 1px solid var(--line); margin: 40px 0; }
.hhb-article .disclaimer { font-size: 13.5px; color: var(--muted); border-top: 1px solid var(--line); margin-top: 40px; padding-top: 18px; }

/* ---- Simple page hero for category & legal ---- */
.hhb-pagehero { background: var(--green); color: #fff; padding: 60px 0; text-align: center; }
.hhb-pagehero h1 { color: #fff; font-size: clamp(34px, 4.6vw, 54px); }
.hhb-pagehero p { color: #cfe0d4; font-size: 18px; max-width: 34em; margin: 12px auto 0; }
.hhb-pagehero .eyebrow { color: #bfe0c9; }
.hhb-pagehero .eyebrow::before { filter: none; }

/* ---- Legal content ---- */
.hhb-legal { background: var(--paper); padding: 52px 0 72px; }
.hhb-legal .col { max-width: 800px; margin: 0 auto; }
.hhb-legal h2 { font-size: 25px; margin-top: 34px; }
.hhb-legal p, .hhb-legal li { color: var(--ink); }
.hhb-legal ul { padding-left: 22px; }
.hhb-legal .updated { color: var(--muted); font-weight: 600; margin-bottom: 26px; }

/* ---- Standalone form card (unsubscribe / signup pages) ---- */
.hhb-formcard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-s); padding: 40px; max-width: 560px; margin: 0 auto; }
.hhb-formcard h2 { font-size: 28px; }
.hhb-formcard p { color: var(--muted); }
.hhb-formcard label { display: block; font-weight: 700; font-size: 14px; margin: 18px 0 8px; }
.hhb-formcard input[type=email], .hhb-formcard input[type=text] { width: 100%; padding: 14px 16px; border-radius: var(--radius-s); border: 1px solid var(--line); font-size: 16px; font-family: inherit; }
.hhb-formcard input:focus { outline: 3px solid var(--honey); border-color: transparent; }
.hhb-formcard .btn { margin-top: 22px; width: 100%; text-align: center; }
.hhb-formcard .note { font-size: 13px; color: var(--muted); margin-top: 16px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .hhb-hero .grid { grid-template-columns: 1fr; gap: 34px; }
  .hhb-cats, .hhb-posts { grid-template-columns: 1fr 1fr; }
  .hhb-footer .cols { grid-template-columns: 1fr 1fr; }
  .hhb-nav { gap: 16px; }
}
@media (max-width: 640px) {
  .hhb { font-size: 16px; }
  .hhb-header .bar { flex-wrap: wrap; row-gap: 12px; }
  .hhb-nav { width: 100%; justify-content: center; gap: 14px 20px; flex-wrap: wrap; }
  .hhb-nav .navlinks { gap: 18px; flex-wrap: wrap; justify-content: center; }
  .hhb-nav .navlinks a { font-size: 15px; }
  .hhb-cats, .hhb-posts, .hhb-footer .cols { grid-template-columns: 1fr; }
  .hhb-news { padding: 34px 22px; }
  .hhb-section { padding: 46px 0; }
}

/* ---- Accessibility ---- */
@media (prefers-reduced-motion: reduce) { .hhb * { transition: none !important; animation: none !important; } }
.hhb a:focus-visible, .hhb button:focus-visible, .hhb input:focus-visible { outline: 3px solid var(--honey); outline-offset: 2px; }
