/*
Theme Name: MomBrain
Theme URI: https://mombrainwriting.com
Author: MomBrain Writing
Author URI: https://mombrainwriting.com
Description: Custom theme for MomBrain Writing — digital products and courses teaching stay-at-home moms to build income online through Etsy, Amazon KDP, ecommerce, and digital marketing. Clean, information-rich, conversion-focused. Palette: Transformative Teal.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: mombrain
*/

/* ==========================================================================
   1. DESIGN TOKENS — Transformative Teal palette
   ========================================================================== */
:root {
  /* Teal core */
  --teal-900: #063a38;
  --teal-800: #0a4d4a;
  --teal-700: #0e615c;
  --teal-600: #12786f; /* primary */
  --teal-500: #1a9187;
  --teal-400: #4bab9f;
  --teal-300: #8ecac0;
  --teal-200: #bfe1da;
  --teal-100: #dcf0eb;
  --teal-50:  #f2faf8;

  /* Warm accent — coral, complements teal for CTAs */
  --coral-600: #de5a3d;
  --coral-500: #f0704f;
  --coral-400: #f5936f;
  --coral-100: #fde5dc;

  /* Gold — ratings, badges, highlights */
  --gold-500: #e0a63b;
  --gold-100: #fbecc9;

  /* Neutrals */
  --cream: #fbf8f2;
  --white: #ffffff;
  --ink-900: #182726;
  --ink-700: #3f5350;
  --ink-500: #6b7d7a;
  --ink-300: #a2b3af;
  --border: #e1ebe7;
  --border-light: #edf3f1;

  /* Elevation */
  --shadow-sm: 0 1px 2px rgba(6, 58, 56, 0.06), 0 1px 3px rgba(6, 58, 56, 0.08);
  --shadow-md: 0 4px 12px rgba(6, 58, 56, 0.08), 0 8px 24px rgba(6, 58, 56, 0.08);
  --shadow-lg: 0 12px 32px rgba(6, 58, 56, 0.12), 0 24px 48px rgba(6, 58, 56, 0.10);

  /* Type */
  --font-heading: 'Poppins', -apple-system, Segoe UI, sans-serif;
  --font-body: 'Inter', -apple-system, Segoe UI, sans-serif;

  /* Shape */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  /* Layout */
  --container: 1200px;
  --container-narrow: 780px;
  --gutter: clamp(20px, 4vw, 48px);
}

/* ==========================================================================
   2. RESET
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-700); text-decoration: none; }
a:hover { color: var(--coral-600); }
ul, ol { padding-left: 1.25em; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: 1rem; }
figure { margin: 0; }
table { border-collapse: collapse; width: 100%; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--teal-900);
  line-height: 1.22;
  margin: 0 0 0.5em;
  font-weight: 700;
}
h1 { font-size: clamp(2.1rem, 4vw, 3.4rem); font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1.1em; }
.lede { font-size: 1.2rem; color: var(--ink-700); }

.screen-reader-text {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px,1px,1px,1px); white-space: nowrap;
}
.skip-link {
  position: absolute; top: -100px; left: 10px; z-index: 10000;
  background: var(--teal-900); color: var(--white); padding: 12px 20px;
  border-radius: var(--radius-sm); transition: top .2s ease;
}
.skip-link:focus { top: 10px; }

/* ==========================================================================
   3. LAYOUT UTILITIES
   ========================================================================== */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section { padding: clamp(56px, 8vw, 108px) 0; }
.section-tight { padding: clamp(36px, 5vw, 64px) 0; }
.section-alt { background: var(--teal-50); }
.section-dark { background: var(--teal-900); color: var(--teal-100); }
.section-dark h2, .section-dark h3 { color: var(--white); }

.grid { display: grid; gap: var(--gutter); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-heading); font-weight: 600; font-size: 0.8rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--coral-600);
  margin-bottom: 14px;
}
.eyebrow::before { content: ''; width: 20px; height: 2px; background: var(--coral-500); border-radius: 2px; }

.section-head { max-width: 640px; margin: 0 0 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--ink-500); }

/* ==========================================================================
   4. BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-heading); font-weight: 600; font-size: 0.98rem;
  padding: 14px 28px; border-radius: var(--radius-pill); border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--coral-500); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--coral-600); color: var(--white); box-shadow: var(--shadow-md); }
.btn-teal { background: var(--teal-700); color: var(--white); }
.btn-teal:hover { background: var(--teal-800); color: var(--white); }
.btn-outline { background: transparent; color: var(--teal-800); border-color: var(--teal-300); }
.btn-outline:hover { border-color: var(--teal-700); color: var(--teal-800); background: var(--teal-50); }
.btn-outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.4); }
.btn-outline-light:hover { background: rgba(255,255,255,0.12); color: var(--white); border-color: var(--white); }
.btn-block { width: 100%; }
.btn-sm { padding: 10px 20px; font-size: 0.88rem; }
.btn[disabled] { opacity: .6; cursor: not-allowed; transform: none; }

/* ==========================================================================
   5. HEADER
   ========================================================================== */
.announcement-bar {
  background: var(--teal-900); color: var(--teal-100); text-align: center;
  font-size: 0.85rem; font-weight: 500; padding: 9px var(--gutter);
  letter-spacing: 0.01em;
}
.announcement-bar a { color: var(--white); text-decoration: underline; }

.site-header {
  position: sticky; top: 0; z-index: 500; background: rgba(251,248,242,0.92);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px var(--gutter); max-width: var(--container); margin: 0 auto; gap: 24px;
}
.site-branding { display: flex; align-items: center; gap: 10px; }
.site-branding img { max-height: 42px; width: auto; }
.site-title {
  font-family: var(--font-heading); font-weight: 800; font-size: 1.4rem;
  color: var(--teal-900); margin: 0; letter-spacing: -0.01em;
}
.site-title a { color: var(--teal-900); }
.site-title a:hover { color: var(--teal-900); }
.site-description { display: none; }

.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; align-items: center; }
.primary-nav li { position: relative; }
.primary-nav a {
  display: block; padding: 10px 16px; border-radius: var(--radius-pill);
  color: var(--ink-700); font-weight: 600; font-size: 0.96rem; transition: background .15s, color .15s;
}
.primary-nav a:hover, .primary-nav .current-menu-item > a { color: var(--teal-800); background: var(--teal-100); }

.header-actions { display: flex; align-items: center; gap: 14px; }
.header-cart {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%; background: var(--teal-50); color: var(--teal-800);
}
.header-cart .count {
  position: absolute; top: -4px; right: -4px; background: var(--coral-500); color: var(--white);
  font-size: 0.65rem; font-weight: 700; width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.menu-toggle {
  display: none; background: none; border: none; padding: 8px; color: var(--teal-900);
}
.menu-toggle svg { width: 26px; height: 26px; }

@media (max-width: 960px) {
  .primary-nav { position: fixed; inset: 0 0 0 auto; width: min(320px, 86vw); background: var(--white);
    box-shadow: var(--shadow-lg); transform: translateX(100%); transition: transform .25s ease; padding: 90px 28px 28px; z-index: 600; }
  .primary-nav.is-open { transform: translateX(0); }
  .primary-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .primary-nav a { padding: 14px 16px; font-size: 1.05rem; }
  .menu-toggle { display: inline-flex; }
  .nav-overlay { display: none; position: fixed; inset: 0; background: rgba(6,58,56,0.4); z-index: 590; }
  .nav-overlay.is-open { display: block; }
}

/* ==========================================================================
   6. HERO
   ========================================================================== */
.hero { padding: clamp(48px, 8vw, 96px) 0; overflow: hidden; }
.hero-inner {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 64px); align-items: center;
}
.hero-copy .eyebrow { color: var(--coral-600); }
.hero-copy h1 { margin-bottom: 20px; }
.hero-copy .lede { margin-bottom: 32px; max-width: 520px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 28px; }
.hero-trust { display: flex; align-items: center; gap: 14px; color: var(--ink-500); font-size: 0.92rem; }
.hero-trust .avatars { display: flex; }
.hero-trust .avatars img, .hero-trust .avatars span {
  width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--white); margin-left: -10px;
  background: var(--teal-200); display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 700; color: var(--teal-800);
}
.hero-trust .avatars :first-child { margin-left: 0; }
.hero-visual { position: relative; }
.hero-visual .shape {
  position: absolute; inset: -6% -6% auto auto; width: 100%; height: 100%;
  background: var(--teal-100); border-radius: var(--radius-lg); z-index: 0;
}
.hero-visual img, .hero-visual .placeholder {
  position: relative; z-index: 1; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
}
.hero-visual .placeholder {
  background: linear-gradient(135deg, var(--teal-600), var(--teal-800));
  display: flex; align-items: center; justify-content: center; color: var(--teal-100); font-size: 0.9rem;
}
.hero-badge {
  position: absolute; z-index: 2; bottom: -18px; left: -18px; background: var(--white);
  border-radius: var(--radius-md); box-shadow: var(--shadow-md); padding: 16px 20px;
  display: flex; align-items: center; gap: 12px;
}
.hero-badge strong { display: block; font-family: var(--font-heading); color: var(--teal-900); font-size: 1.1rem; }
.hero-badge span { color: var(--ink-500); font-size: 0.82rem; }
.hero-badge .icon {
  width: 40px; height: 40px; border-radius: 50%; background: var(--coral-100); color: var(--coral-600);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; margin-bottom: 12px; }
}

/* ==========================================================================
   7. LOGO / TRUST STRIP
   ========================================================================== */
.trust-strip { padding: 30px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.trust-strip-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(24px, 5vw, 56px); }
.trust-item { display: flex; align-items: center; gap: 10px; color: var(--ink-500); font-weight: 600; font-size: 0.92rem; }
.trust-item .num { font-family: var(--font-heading); font-size: 1.4rem; color: var(--teal-800); font-weight: 800; }

/* ==========================================================================
   8. FEATURE / CATEGORY CARDS
   ========================================================================== */
.feature-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 32px; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; height: 100%;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--teal-200); }
.feature-card .icon {
  width: 52px; height: 52px; border-radius: var(--radius-sm); background: var(--teal-100); color: var(--teal-700);
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.feature-card h3 { margin-bottom: 10px; }
.feature-card p { color: var(--ink-500); margin-bottom: 0; }
.feature-card a.card-link { color: var(--teal-700); font-weight: 600; font-size: 0.9rem; margin-top: 14px; display: inline-block; }

/* Category tiles (Etsy / KDP / Ecommerce / Digital marketing) */
.category-tile {
  position: relative; border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 4/3;
  display: flex; align-items: flex-end; padding: 24px; color: var(--white);
  background: linear-gradient(160deg, var(--teal-600), var(--teal-900));
}
.category-tile h3 { color: var(--white); margin-bottom: 4px; }
.category-tile span { color: var(--teal-100); font-size: 0.88rem; }
.category-tile:hover { color: var(--white); }

/* ==========================================================================
   9. PRODUCT CARDS (Shop)
   ========================================================================== */
.product-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md);
  overflow: hidden; display: flex; flex-direction: column; height: 100%;
  transition: box-shadow .18s ease, transform .18s ease;
}
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.product-card .thumb { position: relative; aspect-ratio: 1/1; background: var(--teal-50); overflow: hidden; }
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-card .badge {
  position: absolute; top: 12px; left: 12px; background: var(--coral-500); color: var(--white);
  font-size: 0.7rem; font-weight: 700; padding: 5px 10px; border-radius: var(--radius-pill); text-transform: uppercase; letter-spacing: .03em;
}
.product-card .body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.product-card .cat { font-size: 0.76rem; font-weight: 700; color: var(--teal-600); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; }
.product-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.product-card .rating { color: var(--gold-500); font-size: 0.85rem; margin-bottom: 10px; }
.product-card .rating span { color: var(--ink-500); margin-left: 4px; }
.product-card .price-row { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: 12px; }
.product-card .price { font-family: var(--font-heading); font-weight: 700; color: var(--teal-900); font-size: 1.1rem; }
.product-card .price del { color: var(--ink-300); font-weight: 400; margin-right: 6px; font-size: 0.9rem; }
.product-card .add-btn {
  width: 40px; height: 40px; border-radius: 50%; background: var(--teal-800); color: var(--white);
  display: flex; align-items: center; justify-content: center; border: none; transition: background .15s;
}
.product-card .add-btn:hover { background: var(--coral-500); }

/* ==========================================================================
   10. TESTIMONIALS
   ========================================================================== */
.testimonial-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 30px; height: 100%; display: flex; flex-direction: column;
}
.testimonial-card .stars { color: var(--gold-500); margin-bottom: 14px; font-size: 0.95rem; }
.testimonial-card p.quote { color: var(--ink-700); font-size: 1rem; flex: 1; }
.testimonial-card .person { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.testimonial-card .avatar {
  width: 44px; height: 44px; border-radius: 50%; background: var(--teal-100); color: var(--teal-800);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-family: var(--font-heading); flex-shrink: 0;
}
.testimonial-card .person strong { display: block; font-size: 0.94rem; color: var(--teal-900); }
.testimonial-card .person span { font-size: 0.82rem; color: var(--ink-500); }

/* ==========================================================================
   11. CTA BANNER
   ========================================================================== */
.cta-banner {
  background: linear-gradient(135deg, var(--teal-700), var(--teal-900));
  border-radius: var(--radius-lg); padding: clamp(40px, 6vw, 72px); text-align: center; color: var(--white);
  margin: 0 var(--gutter);
}
.cta-banner h2 { color: var(--white); margin-bottom: 14px; }
.cta-banner p { color: var(--teal-100); max-width: 560px; margin: 0 auto 28px; font-size: 1.1rem; }
.cta-banner .btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ==========================================================================
   12. NEWSLETTER / OPT-IN
   ========================================================================== */
.optin-block { background: var(--teal-50); border-radius: var(--radius-lg); padding: clamp(32px, 5vw, 56px); }
.optin-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.optin-form { display: flex; gap: 10px; flex-wrap: wrap; }
.optin-form input[type=email] {
  flex: 1; min-width: 220px; padding: 14px 18px; border-radius: var(--radius-pill);
  border: 1px solid var(--border); background: var(--white);
}
.optin-form input[type=email]:focus { outline: 2px solid var(--teal-400); border-color: transparent; }
.optin-note { font-size: 0.8rem; color: var(--ink-500); margin-top: 10px; }
@media (max-width: 780px) { .optin-inner { grid-template-columns: 1fr; } }

/* ==========================================================================
   13. FOOTER
   ========================================================================== */
.site-footer { background: var(--teal-900); color: var(--teal-200); }
.footer-top { padding: clamp(48px, 6vw, 76px) 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-brand .site-title, .footer-brand .site-title a { color: var(--white); }
.footer-brand p { color: var(--teal-300); margin: 14px 0 20px; max-width: 320px; }
.footer-col h4 { color: var(--white); font-size: 0.95rem; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 18px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.footer-col a { color: var(--teal-200); }
.footer-col a:hover { color: var(--white); }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center; color: var(--white);
}
.footer-social a:hover { background: var(--coral-500); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding: 22px 0; display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 12px; font-size: 0.85rem; color: var(--teal-300);
}
.footer-bottom a { color: var(--teal-300); }
.footer-bottom a:hover { color: var(--white); }
.footer-legal-links { display: flex; gap: 18px; flex-wrap: wrap; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   14. BLOG — ARCHIVE
   ========================================================================== */
.content-layout { display: grid; grid-template-columns: 2fr 1fr; gap: var(--gutter); align-items: start; }
@media (max-width: 900px) { .content-layout { grid-template-columns: 1fr; } }

.page-header-band { background: var(--teal-50); padding: 56px 0 44px; text-align: center; }
.page-header-band h1 { margin-bottom: 10px; }
.page-header-band p { color: var(--ink-500); max-width: 560px; margin: 0 auto; }

.post-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md);
  overflow: hidden; margin-bottom: var(--gutter); transition: box-shadow .18s ease, transform .18s ease;
}
.post-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.post-card .thumb { aspect-ratio: 16/9; background: var(--teal-100); overflow: hidden; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card .body { padding: 26px 28px 30px; }
.post-card .meta-row { display: flex; align-items: center; gap: 10px; font-size: 0.8rem; color: var(--ink-500); margin-bottom: 12px; text-transform: uppercase; letter-spacing: .03em; font-weight: 600; }
.post-card .meta-row .cat { color: var(--coral-600); }
.post-card h2 { font-size: 1.4rem; margin-bottom: 10px; }
.post-card h2 a { color: var(--teal-900); }
.post-card h2 a:hover { color: var(--coral-600); }
.post-card .excerpt { color: var(--ink-700); margin-bottom: 14px; }
.post-card .read-more { font-weight: 600; color: var(--teal-700); font-size: 0.92rem; }

.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 12px; flex-wrap: wrap; }
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px;
  border-radius: var(--radius-sm); border: 1px solid var(--border); color: var(--ink-700); font-weight: 600; padding: 0 12px;
}
.pagination .current { background: var(--teal-700); color: var(--white); border-color: var(--teal-700); }
.pagination a:hover { border-color: var(--teal-400); color: var(--teal-700); }

/* Sidebar / widgets */
.widget { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 26px; margin-bottom: 24px; }
.widget-title { font-size: 1rem; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 16px; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 9px 0; border-bottom: 1px solid var(--border-light); font-size: 0.94rem; }
.widget li:last-child { border-bottom: none; }
.widget.widget-optin { background: var(--teal-900); color: var(--teal-100); border: none; }
.widget.widget-optin h3 { color: var(--white); }
.widget.widget-optin p { color: var(--teal-200); font-size: 0.9rem; }
.search-form { position: relative; }
.search-form input[type=search] { width: 100%; padding: 12px 44px 12px 16px; border-radius: var(--radius-pill); border: 1px solid var(--border); }
.search-form button { position: absolute; right: 6px; top: 6px; bottom: 6px; width: 34px; border-radius: 50%; border: none; background: var(--teal-700); color: var(--white); display: flex; align-items: center; justify-content: center; }

/* ==========================================================================
   15. SINGLE POST
   ========================================================================== */
.single-post-header { padding: 56px 0 20px; text-align: center; }
.single-post-header .cat-tag {
  display: inline-block; background: var(--coral-100); color: var(--coral-600); font-size: 0.78rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 6px 14px; border-radius: var(--radius-pill); margin-bottom: 16px;
}
.single-post-header h1 { max-width: 780px; margin: 0 auto 18px; }
.single-post-header .meta-row { display: flex; align-items: center; justify-content: center; gap: 18px; color: var(--ink-500); font-size: 0.9rem; flex-wrap: wrap; }
.single-post-header .meta-row .author { display: flex; align-items: center; gap: 8px; }
.single-post-header .meta-row .avatar { width: 30px; height: 30px; border-radius: 50%; }
.single-featured-image { max-width: var(--container); margin: 32px auto; padding: 0 var(--gutter); }
.single-featured-image img { border-radius: var(--radius-lg); width: 100%; aspect-ratio: 16/8; object-fit: cover; box-shadow: var(--shadow-md); }

.entry-content { font-size: 1.08rem; color: var(--ink-900); }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2 { margin-top: 1.6em; }
.entry-content h3 { margin-top: 1.4em; }
.entry-content p { margin-bottom: 1.3em; }
.entry-content a { text-decoration: underline; }
.entry-content ul, .entry-content ol { margin-bottom: 1.3em; }
.entry-content li { margin-bottom: 0.4em; }
.entry-content blockquote {
  margin: 2em 0; padding: 20px 28px; background: var(--teal-50); border-left: 4px solid var(--coral-500);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-style: italic; color: var(--teal-900);
}
.entry-content img { border-radius: var(--radius-md); margin: 1.6em 0; }
.entry-content code { background: var(--teal-100); padding: 2px 6px; border-radius: 4px; font-size: 0.9em; }
.entry-content hr { border: none; border-top: 1px solid var(--border); margin: 2.4em 0; }

.share-row { display: flex; align-items: center; gap: 12px; margin: 36px 0; padding: 20px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.share-row span.label { font-weight: 600; color: var(--ink-700); font-size: 0.9rem; }
.share-row a { width: 38px; height: 38px; border-radius: 50%; background: var(--teal-50); color: var(--teal-700); display: flex; align-items: center; justify-content: center; }
.share-row a:hover { background: var(--teal-700); color: var(--white); }

.author-box { display: flex; gap: 20px; background: var(--teal-50); border-radius: var(--radius-md); padding: 28px; margin: 40px 0; align-items: flex-start; }
.author-box img { width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0; }
.author-box h4 { margin-bottom: 6px; }
.author-box p { color: var(--ink-700); margin-bottom: 0; font-size: 0.95rem; }

.related-posts { margin-top: 56px; }
.related-posts h3 { margin-bottom: 24px; }

#comments { margin-top: 48px; }
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment-body { border: 1px solid var(--border); border-radius: var(--radius-md); padding: 22px 24px; margin-bottom: 18px; }
.comment-author { font-weight: 700; color: var(--teal-900); font-size: 0.95rem; }
.comment-metadata { font-size: 0.8rem; color: var(--ink-500); margin-bottom: 10px; }
.comment-respond { background: var(--teal-50); border-radius: var(--radius-md); padding: 28px; margin-top: 28px; }

/* ==========================================================================
   16. FORMS (contact + generic)
   ========================================================================== */
.form-field { margin-bottom: 20px; }
.form-field label { display: block; font-weight: 600; font-size: 0.9rem; color: var(--ink-700); margin-bottom: 7px; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; padding: 13px 16px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--white);
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { outline: 2px solid var(--teal-400); border-color: transparent; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 620px) { .form-row { grid-template-columns: 1fr; } }
.form-notice { padding: 16px 20px; border-radius: var(--radius-sm); margin-bottom: 24px; font-size: 0.95rem; }
.form-notice.success { background: var(--teal-100); color: var(--teal-900); }
.form-notice.error { background: var(--coral-100); color: var(--coral-600); }

/* Contact page layout */
.contact-layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } }
.contact-info-card { background: var(--teal-900); color: var(--teal-100); border-radius: var(--radius-lg); padding: 36px; }
.contact-info-card h3 { color: var(--white); }
.contact-info-item { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 22px; }
.contact-info-item .icon { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-info-item strong { display: block; color: var(--white); font-size: 0.95rem; }
.contact-info-item span, .contact-info-item a { color: var(--teal-200); font-size: 0.92rem; }
.contact-form-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 44px); }

/* ==========================================================================
   17. ABOUT PAGE
   ========================================================================== */
.about-hero { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (max-width: 900px) { .about-hero { grid-template-columns: 1fr; } }
.about-hero .photo { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); aspect-ratio: 4/5; object-fit: cover; width: 100%; }
.about-hero .photo.placeholder { background: linear-gradient(160deg, var(--teal-400), var(--teal-800)); display: flex; align-items: center; justify-content: center; color: var(--teal-50); }
.values-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 780px) { .values-list { grid-template-columns: 1fr; } }
.stat-row { display: flex; gap: clamp(24px, 6vw, 64px); flex-wrap: wrap; }
.stat-row .stat strong { display: block; font-family: var(--font-heading); font-size: 2.2rem; color: var(--teal-800); font-weight: 800; }
.stat-row .stat span { color: var(--ink-500); font-size: 0.9rem; }

/* ==========================================================================
   18. POLICIES / LEGAL PAGES
   ========================================================================== */
.policy-layout { display: grid; grid-template-columns: 260px 1fr; gap: var(--gutter); align-items: start; }
@media (max-width: 900px) { .policy-layout { grid-template-columns: 1fr; } }
.policy-toc { position: sticky; top: 100px; background: var(--teal-50); border-radius: var(--radius-md); padding: 24px; }
.policy-toc h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 14px; }
.policy-toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.policy-toc li { counter-increment: toc; margin-bottom: 10px; font-size: 0.9rem; }
.policy-toc a { color: var(--ink-700); }
.policy-toc a:before { content: counter(toc) '. '; color: var(--teal-600); font-weight: 700; }
.policy-content .updated-date { color: var(--ink-500); font-size: 0.9rem; margin-bottom: 32px; }
.policy-content h2 { scroll-margin-top: 100px; border-top: 1px solid var(--border); padding-top: 32px; margin-top: 32px; }
.policy-content h2:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }

/* ==========================================================================
   19. WOOCOMMERCE OVERRIDES
   ========================================================================== */
.shop-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 32px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.shop-filters { display: flex; gap: 10px; flex-wrap: wrap; }
.shop-filters a, .shop-filters .chip {
  padding: 8px 18px; border-radius: var(--radius-pill); border: 1px solid var(--border); font-size: 0.88rem; font-weight: 600; color: var(--ink-700);
}
.shop-filters a.active, .shop-filters a:hover { background: var(--teal-700); border-color: var(--teal-700); color: var(--white); }
.woocommerce ul.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); list-style: none; padding: 0; }
@media (max-width: 900px) { .woocommerce ul.products { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .woocommerce ul.products { grid-template-columns: 1fr; } }
.woocommerce ul.products li.product {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 0; overflow: hidden; text-align: left;
  transition: box-shadow .18s ease, transform .18s ease;
}
.woocommerce ul.products li.product:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.woocommerce ul.products li.product img { aspect-ratio: 1/1; object-fit: cover; margin: 0; border-radius: 0; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-family: var(--font-heading); font-size: 1.05rem; color: var(--teal-900); padding: 18px 20px 0; }
.woocommerce ul.products li.product .price { font-family: var(--font-heading); font-weight: 700; color: var(--teal-900); padding: 0 20px; }
.woocommerce ul.products li.product .button {
  margin: 14px 20px 20px; display: inline-flex; background: var(--teal-800); color: var(--white);
  border-radius: var(--radius-pill); padding: 10px 20px; font-weight: 600; font-size: 0.88rem;
}
.woocommerce ul.products li.product .button:hover { background: var(--coral-500); }
.woocommerce ul.products li.product .onsale {
  background: var(--coral-500); color: var(--white); font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  border-radius: var(--radius-pill); position: absolute; margin: 14px; padding: 5px 10px; min-height: unset; min-width: unset; left: 0; top: 0;
}
.woocommerce nav.woocommerce-pagination ul { border: none; display: flex; gap: 8px; }
.woocommerce nav.woocommerce-pagination ul li { border: none; margin: 0; }
.woocommerce nav.woocommerce-pagination ul li a, .woocommerce nav.woocommerce-pagination ul li span {
  border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 16px; color: var(--ink-700);
}
.woocommerce nav.woocommerce-pagination ul li span.current { background: var(--teal-700); color: var(--white); }

.woocommerce div.product .summary { padding-left: 8px; }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--teal-900); font-family: var(--font-heading); font-size: 1.5rem; }
.woocommerce div.product .stock { color: var(--teal-600); font-weight: 600; }
.woocommerce div.product form.cart .button, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button {
  background: var(--coral-500); color: var(--white); border-radius: var(--radius-pill); font-family: var(--font-heading);
  font-weight: 600; padding: 14px 28px; border: none;
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover { background: var(--coral-600); color: var(--white); }
.woocommerce div.product .woocommerce-tabs ul.tabs li { border-radius: var(--radius-pill) var(--radius-pill) 0 0; background: transparent; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { color: var(--ink-500); font-weight: 600; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--teal-800); }
.woocommerce div.product .woocommerce-tabs ul.tabs::before { border-color: var(--border); }
.woocommerce span.onsale { background: var(--coral-500); }
.woocommerce .star-rating { color: var(--gold-500); }
.woocommerce-message, .woocommerce-info {
  border-top-color: var(--teal-600); background: var(--teal-50); padding: 16px 20px 16px 48px; border-radius: var(--radius-sm);
}
.woocommerce-message::before, .woocommerce-info::before { color: var(--teal-600); }
.woocommerce-error { border-top-color: var(--coral-500); background: var(--coral-100); padding: 16px 20px 16px 48px; border-radius: var(--radius-sm); }
.woocommerce-error::before { color: var(--coral-600); }
.trust-badges-row { display: flex; gap: 20px; flex-wrap: wrap; margin: 24px 0; padding: 20px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.trust-badges-row .badge-item { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--ink-700); font-weight: 600; }

/* ==========================================================================
   20. 404
   ========================================================================== */
.error-404 { text-align: center; padding: 100px 0; }
.error-404 .code { font-family: var(--font-heading); font-size: 6rem; font-weight: 800; color: var(--teal-200); line-height: 1; }

/* ==========================================================================
   21. UTILITIES
   ========================================================================== */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
