/*
Theme Name: Vital Blessing
Theme URI: https://vitalblessing.com/
Author: Antigravity Team
Description: Bespoke premium WordPress theme for Vital Blessing — Natural Health, Wellness & Mindful Living Blog.
Version: 1.0.0
Text Domain: vitalblessing
*/

/* ================================
   VITAL BLESSING — Design Tokens
   ================================ */
:root {
  --bg:          #EEF1E7;   /* soft sage-linen background */
  --bg-panel:    #FFFFFF;
  --ink:         #23302A;   /* deep charcoal-green text */
  --ink-soft:    #5B6B60;
  --forest:      #1F3B2E;   /* primary deep green */
  --forest-dark: #14261C;
  --gold:        #B98B3E;   /* warm amber accent */
  --rose:        #C97B6D;   /* dusty rose — links/hover */
  --line:        rgba(31, 59, 46, 0.12);
  --shadow:      0 12px 32px rgba(20, 38, 28, 0.08);

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Nunito Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-label:   'Nunito Sans', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; transition: color 0.2s ease; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--forest);
  line-height: 1.25;
  font-weight: 600;
}

h1 { font-size: 3rem; margin-bottom: 1rem; }
h2 { font-size: 2.2rem; margin-bottom: 0.8rem; }
h3 { font-size: 1.6rem; margin-bottom: 0.6rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  border-radius: 40px;
  font-family: var(--font-label);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
}

.btn-primary {
  background: var(--forest);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(31, 59, 46, 0.2);
}

.btn-primary:hover {
  background: var(--forest-dark);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(31, 59, 46, 0.3);
}

/* Signature Leaf Divider */
.leaf-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 20px;
}
.leaf-divider::before,
.leaf-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}
.leaf-divider svg { width: 20px; height: 20px; color: var(--gold); flex-shrink: 0; }
.leaf-divider.left { justify-content: flex-start; }
.leaf-divider.left::after { display: none; }
.leaf-divider.left svg { order: -1; }

/* Header */
header.site-header {
  background: var(--bg-panel);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  max-width: 1120px;
  margin: 0 auto;
}
.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.7rem;
  color: var(--forest);
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.01em;
}
.logo svg { width: 28px; height: 28px; color: var(--gold); }

nav.main-nav ul {
  display: flex;
  gap: 36px;
  align-items: center;
}
nav.main-nav a {
  font-family: var(--font-label);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.01em;
  position: relative;
  padding: 6px 0;
}
nav.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width 0.25s ease;
}
nav.main-nav a:hover,
nav.main-nav a.active,
nav.main-nav .current-menu-item > a { color: var(--forest); }
nav.main-nav a:hover::after,
nav.main-nav a.active::after,
nav.main-nav .current-menu-item > a::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--forest);
  display: block;
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  nav.main-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--bg-panel);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 20px;
  }
  nav.main-nav.open { display: block; }
  nav.main-nav ul { flex-direction: column; gap: 16px; align-items: flex-start; }
}

/* Hero Section */
.hero {
  padding: 72px 0 64px;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(circle at 80% 20%, rgba(185, 139, 62, 0.08) 0%, transparent 60%);
}
.hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 48px;
}
.eyebrow {
  display: inline-block;
  font-family: var(--font-label);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.hero h1 {
  font-size: 3.4rem;
  font-weight: 700;
  color: var(--forest);
  margin-bottom: 20px;
  line-height: 1.15;
}
.hero p.lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
  margin-bottom: 32px;
  max-width: 540px;
}
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-visual svg {
  width: 220px;
  height: 220px;
  color: var(--forest);
  opacity: 0.85;
}

@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .hero h1 { font-size: 2.5rem; }
  .hero-visual svg { width: 140px; height: 140px; }
}

/* Section Container */
.section { padding: 64px 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 20px;
}
.section-head h2 {
  font-size: 2.4rem;
  color: var(--forest);
}
.section-head p {
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 440px;
}

/* Article Cards Grid */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

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

.article-card {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.03);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}
.article-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.card-thumb {
  position: relative;
  width: 100%;
  height: 210px;
  overflow: hidden;
  background: #e2e7dc;
}
.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.article-card:hover .card-thumb img {
  transform: scale(1.05);
}

.card-tag {
  position: absolute;
  top: 14px; left: 14px;
  background: rgba(31, 59, 46, 0.88);
  backdrop-filter: blur(6px);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 12px;
  border-radius: 20px;
  z-index: 2;
}

.card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-meta {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-bottom: 10px;
  font-weight: 600;
}

.card-body h3 {
  font-size: 1.45rem;
  margin-bottom: 12px;
  line-height: 1.3;
}
.card-body h3 a { color: var(--forest); }
.card-body h3 a:hover { color: var(--rose); }

.card-body p {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin-bottom: 20px;
  flex: 1;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--rose);
}
.card-link svg { width: 16px; height: 16px; transition: transform 0.2s ease; }
.card-link:hover svg { transform: translateX(4px); }

/* Newsletter Panel */
.newsletter {
  background: var(--forest);
  color: #ffffff;
  border-radius: 24px;
  padding: 48px 40px;
  margin: 40px auto;
  max-width: 1120px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 32px;
  box-shadow: var(--shadow);
}
.newsletter h3 {
  color: #ffffff;
  font-size: 2rem;
  margin-bottom: 8px;
}
.newsletter p {
  color: rgba(255,255,255,0.8);
  font-size: 1rem;
}
.newsletter form {
  display: flex;
  gap: 12px;
}
.newsletter input[type="email"] {
  flex: 1;
  padding: 14px 20px;
  border-radius: 40px;
  border: 1px solid rgba(255,255,255,0.2);
  outline: none;
  font-size: 0.95rem;
  background: rgba(255,255,255,0.1);
  color: #ffffff;
}
.newsletter input[type="email"]::placeholder { color: rgba(255,255,255,0.6); }
.newsletter input[type="email"]:focus { background: rgba(255,255,255,0.2); border-color: var(--gold); }

@media (max-width: 768px) {
  .newsletter { grid-template-columns: 1fr; padding: 36px 24px; text-align: center; }
  .newsletter form { flex-direction: column; }
}

/* Footer */
footer.site-footer {
  background: var(--forest-dark);
  color: rgba(255,255,255,0.75);
  padding: 64px 0 32px;
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 48px;
}
@media (max-width: 850px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 500px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: #ffffff;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.footer-logo svg { width: 24px; height: 24px; color: var(--gold); }
.footer-col p { font-size: 0.92rem; line-height: 1.6; max-width: 320px; }
.footer-col h5 {
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: 18px;
  font-family: var(--font-label);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: rgba(255,255,255,0.75); font-size: 0.92rem; }
.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  flex-wrap: wrap;
  gap: 12px;
}

/* Article Detail Page (Single.php) */
.article-hero {
  padding: 48px 0 32px;
  max-width: 820px;
  margin: 0 auto;
}
.breadcrumb {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin-bottom: 16px;
  font-weight: 600;
}
.breadcrumb a { color: var(--forest); }

.article-meta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin-top: 16px;
  flex-wrap: wrap;
}
.tag-pill {
  background: var(--forest);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 14px;
  border-radius: 20px;
}

.article-body {
  max-width: 820px;
  margin: 0 auto 64px;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--ink);
}
.article-featured-img {
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 40px;
  box-shadow: var(--shadow);
}
.article-body p { margin-bottom: 24px; }
.article-body h2 { font-size: 1.9rem; margin: 40px 0 18px; color: var(--forest); }
.article-body h3 { font-size: 1.5rem; margin: 32px 0 14px; color: var(--forest); }

.pull-quote {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-style: italic;
  color: var(--forest);
  border-left: 3px solid var(--gold);
  padding: 16px 0 16px 24px;
  margin: 36px 0;
  line-height: 1.4;
  background: rgba(185, 139, 62, 0.05);
  border-radius: 0 12px 12px 0;
}

.article-body ul, .article-body ol {
  margin: 0 0 28px 28px;
}
.article-body li { margin-bottom: 10px; }

.next-article {
  max-width: 820px;
  margin: 0 auto 64px;
}
.next-article-card {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.03);
}
.next-article-card:hover { border-color: var(--gold); }
.next-article-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  font-weight: 700;
}
.next-article-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--forest);
  margin-top: 4px;
}
.next-article-card svg { width: 24px; height: 24px; color: var(--rose); }

/* Category Pills Filter */
.category-tabs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.cat-tab {
  padding: 8px 20px;
  border-radius: 30px;
  border: 1px solid var(--line);
  background: var(--bg-panel);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.cat-tab.active, .cat-tab:hover {
  background: var(--forest);
  color: #ffffff;
  border-color: var(--forest);
}

/* Search bar */
.search-form-wrap {
  margin-bottom: 32px;
}
.search-form {
  display: flex;
  gap: 10px;
  max-width: 480px;
}
.search-form input[type="search"] {
  flex: 1;
  padding: 10px 18px;
  border-radius: 30px;
  border: 1px solid var(--line);
  outline: none;
  font-size: 0.95rem;
  background: var(--bg-panel);
}
.search-form button {
  padding: 10px 24px;
  border-radius: 30px;
  background: var(--forest);
  color: #ffffff;
  border: none;
  font-weight: 600;
  cursor: pointer;
}
