/*
Theme Name: WellnessBeacon
Theme URI: https://wellnessbeacon.co
Author: WellnessBeacon
Author URI: https://wellnessbeacon.co
Description: A polished wellness product review theme for WellnessBeacon.co, built for imported Product Reviews content, social sharing, affiliate disclosures, and organic search growth.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wellnessbeacon
Tags: blog, health, custom-logo, featured-images, threaded-comments, translation-ready
*/

:root {
  --wb-ink: #14201f;
  --wb-muted: #63716f;
  --wb-deep: #0f4f4a;
  --wb-teal: #178b80;
  --wb-sage: #dceddf;
  --wb-mint: #f3faf7;
  --wb-citrus: #f6b33f;
  --wb-coral: #e86f59;
  --wb-blue: #3066be;
  --wb-white: #ffffff;
  --wb-line: #dce7e4;
  --wb-shadow: 0 18px 50px rgba(20, 32, 31, 0.12);
  --wb-radius: 8px;
  --wb-wide: 1180px;
  --wb-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --wb-serif: "Source Serif 4", Georgia, serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--wb-white);
  color: var(--wb-ink);
  font-family: var(--wb-font);
  font-size: 16px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--wb-deep);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover,
a:focus {
  color: var(--wb-teal);
}

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  height: 1px;
  overflow: hidden;
  position: absolute;
  width: 1px;
}

.wb-shell,
.alignwide {
  margin: 0 auto;
  max-width: var(--wb-wide);
  padding: 0 24px;
}

.site-header {
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--wb-line);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
}

.site-header__inner {
  align-items: center;
  display: flex;
  gap: 28px;
  min-height: 78px;
  justify-content: space-between;
}

.site-branding {
  align-items: center;
  color: var(--wb-ink);
  display: flex;
  gap: 12px;
  text-decoration: none;
}

.site-branding__mark {
  align-items: center;
  background: linear-gradient(135deg, var(--wb-deep), var(--wb-teal));
  border-radius: 50%;
  color: var(--wb-white);
  display: inline-flex;
  font-weight: 800;
  height: 44px;
  justify-content: center;
  letter-spacing: 0;
  width: 44px;
}

.site-title {
  display: block;
  font-size: 1.18rem;
  font-weight: 800;
  line-height: 1.1;
}

.site-tagline {
  color: var(--wb-muted);
  display: block;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.03em;
  margin-top: 3px;
  text-transform: uppercase;
}

.main-navigation {
  align-items: center;
  display: flex;
  gap: 18px;
}

.main-navigation ul {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-navigation a {
  border-radius: 999px;
  color: var(--wb-ink);
  display: inline-flex;
  font-size: 0.93rem;
  font-weight: 750;
  padding: 9px 13px;
  text-decoration: none;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
  background: var(--wb-mint);
  color: var(--wb-deep);
}

.menu-toggle {
  background: var(--wb-ink);
  border: 0;
  border-radius: 999px;
  color: var(--wb-white);
  cursor: pointer;
  display: none;
  font-weight: 800;
  padding: 10px 14px;
}

.wb-button,
.wp-block-button__link,
button,
input[type="submit"] {
  background: var(--wb-deep);
  border: 0;
  border-radius: 999px;
  color: var(--wb-white);
  cursor: pointer;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  line-height: 1.2;
  padding: 13px 18px;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.wb-button:hover,
.wb-button:focus,
.wp-block-button__link:hover,
button:hover,
input[type="submit"]:hover {
  background: var(--wb-teal);
  color: var(--wb-white);
  transform: translateY(-1px);
}

.wb-button--light {
  background: var(--wb-white);
  color: var(--wb-deep);
}

.wb-button--outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.65);
  color: var(--wb-white);
}

.wb-hero {
  background-color: var(--wb-deep);
  background-image: linear-gradient(90deg, rgba(15, 79, 74, 0.92), rgba(15, 79, 74, 0.58), rgba(15, 79, 74, 0.06)), url("assets/images/wellnessbeacon-hero.png");
  background-position: center;
  background-size: cover;
  color: var(--wb-white);
  min-height: clamp(520px, 72vh, 760px);
  padding: 82px 0 64px;
}

.wb-hero__content {
  max-width: 690px;
}

.wb-kicker {
  align-items: center;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: inherit;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 850;
  gap: 8px;
  letter-spacing: 0.08em;
  padding: 8px 12px;
  text-transform: uppercase;
}

.wb-hero h1,
.page-title,
.entry-title {
  font-family: var(--wb-serif);
  letter-spacing: 0;
  line-height: 1.05;
}

.wb-hero h1 {
  font-size: clamp(2.85rem, 7vw, 5.9rem);
  margin: 22px 0 18px;
  max-width: 780px;
}

.wb-hero p {
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.05rem, 2vw, 1.26rem);
  max-width: 650px;
}

.wb-hero__actions,
.wb-card__actions,
.entry-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.wb-proof-strip {
  background: var(--wb-white);
  border-bottom: 1px solid var(--wb-line);
}

.wb-proof-strip__grid {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(4, 1fr);
}

.wb-proof {
  padding: 24px;
}

.wb-proof strong {
  display: block;
  font-size: 1.12rem;
  font-weight: 850;
}

.wb-proof span {
  color: var(--wb-muted);
  display: block;
  font-size: 0.92rem;
  margin-top: 4px;
}

.wb-section {
  padding: 72px 0;
}

.wb-section--tint {
  background: var(--wb-mint);
}

.wb-section__head {
  align-items: end;
  display: flex;
  gap: 28px;
  justify-content: space-between;
  margin-bottom: 28px;
}

.wb-section__head h2,
.widget-title,
.comments-title,
.comment-reply-title {
  font-family: var(--wb-serif);
  font-size: clamp(2rem, 4vw, 3.25rem);
  letter-spacing: 0;
  line-height: 1.08;
  margin: 0;
}

.wb-section__head p {
  color: var(--wb-muted);
  margin: 10px 0 0;
  max-width: 630px;
}

.wb-category-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(5, 1fr);
}

.wb-category-tile {
  background: var(--wb-white);
  border: 1px solid var(--wb-line);
  border-radius: var(--wb-radius);
  color: var(--wb-ink);
  min-height: 146px;
  padding: 20px;
  position: relative;
  text-decoration: none;
  overflow: hidden;
}

.wb-category-tile::after {
  background: radial-gradient(circle, rgba(246, 179, 63, 0.28), transparent 65%);
  content: "";
  height: 96px;
  position: absolute;
  right: -34px;
  top: -34px;
  width: 96px;
}

.wb-category-tile strong {
  display: block;
  font-size: 1.04rem;
  font-weight: 850;
}

.wb-category-tile span {
  color: var(--wb-muted);
  display: block;
  font-size: 0.9rem;
  margin-top: 8px;
}

.wb-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, 1fr);
}

.wb-card {
  background: var(--wb-white);
  border: 1px solid var(--wb-line);
  border-radius: var(--wb-radius);
  box-shadow: 0 8px 28px rgba(20, 32, 31, 0.06);
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.wb-card__media {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--wb-sage), #fff4de);
  overflow: hidden;
  position: relative;
}

.wb-card__media img,
.single-post .post-thumbnail img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.wb-card__media--fallback {
  align-items: end;
  background-image: linear-gradient(135deg, rgba(15, 79, 74, 0.92), rgba(23, 139, 128, 0.68)), url("assets/images/wellnessbeacon-hero.png");
  background-position: center;
  background-size: cover;
  display: flex;
  min-height: 100%;
  padding: 18px;
}

.wb-card__badge,
.entry-badge {
  background: var(--wb-citrus);
  border-radius: 999px;
  color: #2c210d;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  padding: 7px 10px;
  text-transform: uppercase;
}

.wb-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px;
}

.wb-card__meta,
.entry-meta {
  color: var(--wb-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.85rem;
  gap: 10px;
  margin-bottom: 10px;
}

.wb-card h3 {
  font-family: var(--wb-serif);
  font-size: 1.46rem;
  letter-spacing: 0;
  line-height: 1.16;
  margin: 0 0 10px;
}

.wb-card h3 a {
  color: var(--wb-ink);
  text-decoration: none;
}

.wb-card p {
  color: var(--wb-muted);
  margin: 0;
}

.wb-card__actions {
  margin-top: auto;
  padding-top: 22px;
}

.site-main {
  min-height: 60vh;
}

.page-header,
.entry-header {
  background: linear-gradient(135deg, var(--wb-mint), #fff7e7);
  border-bottom: 1px solid var(--wb-line);
  padding: 64px 0;
}

.page-title,
.entry-title {
  font-size: clamp(2.4rem, 5vw, 4.9rem);
  margin: 0;
  max-width: 980px;
}

.archive-description,
.entry-summary,
.page-header p {
  color: var(--wb-muted);
  font-size: 1.08rem;
  max-width: 720px;
}

.content-area {
  padding: 56px 0;
}

.content-layout {
  align-items: start;
  display: grid;
  gap: 38px;
  grid-template-columns: minmax(0, 1fr) 320px;
}

.entry-content {
  font-size: 1.07rem;
}

.entry-content h2,
.entry-content h3 {
  color: var(--wb-ink);
  font-family: var(--wb-serif);
  letter-spacing: 0;
  line-height: 1.16;
}

.entry-content h2 {
  font-size: clamp(1.85rem, 3vw, 2.55rem);
  margin-top: 2em;
}

.entry-content h3 {
  font-size: 1.55rem;
  margin-top: 1.6em;
}

.entry-content p,
.entry-content li {
  color: #243331;
}

.entry-content table {
  border-collapse: collapse;
  margin: 28px 0;
  width: 100%;
}

.entry-content th,
.entry-content td {
  border: 1px solid var(--wb-line);
  padding: 12px;
  text-align: left;
}

.entry-content th {
  background: var(--wb-mint);
}

.entry-content blockquote {
  border-left: 4px solid var(--wb-citrus);
  color: var(--wb-deep);
  font-family: var(--wb-serif);
  font-size: 1.25rem;
  margin: 32px 0;
  padding-left: 20px;
}

.post-thumbnail {
  border-radius: var(--wb-radius);
  box-shadow: var(--wb-shadow);
  margin: 0 0 32px;
  max-height: 520px;
  overflow: hidden;
}

.review-panel,
.sidebar-card,
.comment-respond,
.comments-area {
  background: var(--wb-white);
  border: 1px solid var(--wb-line);
  border-radius: var(--wb-radius);
  box-shadow: 0 8px 28px rgba(20, 32, 31, 0.05);
  padding: 24px;
}

.review-panel {
  background: linear-gradient(135deg, var(--wb-mint), #fff7e7);
  margin-bottom: 28px;
}

.review-panel h2 {
  font-family: var(--wb-serif);
  font-size: 1.65rem;
  margin: 0 0 8px;
}

.review-panel p {
  color: var(--wb-muted);
  margin: 0 0 18px;
}

.affiliate-note {
  background: #fff8e8;
  border: 1px solid #f3d99e;
  border-radius: var(--wb-radius);
  color: #5d4513;
  font-size: 0.92rem;
  margin: 28px 0;
  padding: 16px 18px;
}

.share-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0;
}

.share-row span {
  color: var(--wb-muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.share-button {
  align-items: center;
  border: 1px solid var(--wb-line);
  border-radius: 999px;
  color: var(--wb-ink);
  display: inline-flex;
  font-size: 0.86rem;
  font-weight: 850;
  gap: 7px;
  padding: 9px 12px;
  text-decoration: none;
}

.share-button:hover {
  background: var(--wb-mint);
}

.sidebar {
  display: grid;
  gap: 18px;
}

.sidebar-card h2,
.sidebar-card h3 {
  font-family: var(--wb-serif);
  font-size: 1.35rem;
  letter-spacing: 0;
  line-height: 1.16;
  margin: 0 0 12px;
}

.sidebar-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-card li + li {
  border-top: 1px solid var(--wb-line);
  margin-top: 12px;
  padding-top: 12px;
}

.sidebar-card a {
  font-weight: 780;
  text-decoration: none;
}

.search-form {
  display: flex;
  gap: 8px;
}

.search-field,
input[type="text"],
input[type="email"],
input[type="url"],
textarea {
  border: 1px solid var(--wb-line);
  border-radius: var(--wb-radius);
  color: var(--wb-ink);
  font: inherit;
  padding: 12px 13px;
  width: 100%;
}

textarea {
  min-height: 140px;
}

.comment-list {
  list-style: none;
  margin: 24px 0;
  padding: 0;
}

.comment-body {
  border-top: 1px solid var(--wb-line);
  padding: 20px 0;
}

.comment-meta {
  color: var(--wb-muted);
  font-size: 0.9rem;
}

.comment-author .fn {
  color: var(--wb-ink);
  font-weight: 850;
}

.site-footer {
  background: var(--wb-ink);
  color: rgba(255, 255, 255, 0.82);
  padding: 56px 0 28px;
}

.site-footer a {
  color: var(--wb-white);
  text-decoration: none;
}

.footer-grid {
  display: grid;
  gap: 30px;
  grid-template-columns: 1.4fr repeat(3, 1fr);
}

.footer-brand strong {
  color: var(--wb-white);
  display: block;
  font-size: 1.35rem;
}

.footer-brand p,
.footer-note {
  color: rgba(255, 255, 255, 0.66);
}

.footer-col h2,
.footer-col h3 {
  color: var(--wb-white);
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  margin: 0 0 14px;
  text-transform: uppercase;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li + li {
  margin-top: 9px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 34px;
  padding-top: 20px;
}

.pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 36px;
}

.page-numbers {
  border: 1px solid var(--wb-line);
  border-radius: 999px;
  color: var(--wb-ink);
  min-width: 38px;
  padding: 7px 12px;
  text-align: center;
  text-decoration: none;
}

.page-numbers.current {
  background: var(--wb-deep);
  color: var(--wb-white);
}

@media (max-width: 980px) {
  .menu-toggle {
    display: inline-flex;
  }

  .main-navigation {
    align-items: flex-end;
    flex-direction: column;
  }

  .main-navigation ul {
    background: var(--wb-white);
    border: 1px solid var(--wb-line);
    border-radius: var(--wb-radius);
    box-shadow: var(--wb-shadow);
    display: none;
    padding: 12px;
    position: absolute;
    right: 24px;
    top: 70px;
    width: min(320px, calc(100vw - 48px));
  }

  .main-navigation.toggled ul {
    display: grid;
  }

  .main-navigation li,
  .main-navigation a {
    width: 100%;
  }

  .wb-grid,
  .content-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .wb-category-grid,
  .wb-proof-strip__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .wb-shell,
  .alignwide {
    padding: 0 18px;
  }

  .site-header__inner {
    min-height: 68px;
  }

  .site-tagline {
    display: none;
  }

  .wb-hero {
    min-height: 600px;
    padding: 58px 0 42px;
  }

  .wb-hero__actions,
  .entry-actions,
  .search-form {
    flex-direction: column;
  }

  .wb-button,
  .wp-block-button__link,
  button,
  input[type="submit"] {
    width: 100%;
  }

  .wb-section {
    padding: 52px 0;
  }

  .wb-section__head {
    align-items: start;
    flex-direction: column;
  }

  .wb-category-grid,
  .wb-proof-strip__grid {
    grid-template-columns: 1fr;
  }
}
