/* =========================================
   HER BALANCED BODY — PREMIUM DESIGN SYSTEM
   ========================================= */

/* ===== ROOT VARIABLES ===== */

:root {
  --bg: #ffffff;
  --bg-soft: #f6f1ea;
  --bg-alt: #faf7f3;

  --text: #222222;
  --text-soft: #5f5f5f;
  --text-muted: #777777;

  --accent: #c8d7c3;
  --accent-dark: #5f7c5b;
  --accent-deep: #3f5d3b;

  --border: #eee7df;
  --border-dark: #ddd3c8;

  --shadow-soft: 0 6px 24px rgba(0, 0, 0, 0.05);
  --shadow-medium: 0 10px 40px rgba(0, 0, 0, 0.08);

  --radius: 14px;
  --radius-sm: 8px;

  --font-body: Georgia, serif;
  --font-heading: "Helvetica Neue", Arial, sans-serif;

  --max-width: 1150px;
  --content-width: 820px;
}

/* ===== RESET ===== */

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

html {
  scroll-behavior: smooth;
}

html,
body {
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.85;
  font-size: 1.05rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

iframe {
  max-width: 100%;
  border: 0;
}

figure {
  margin: 2rem 0;
}

figcaption {
  margin-top: 0.75rem;
  color: var(--text-soft);
  font-size: 0.92rem;
}

ul,
ol {
  padding-left: 1.4rem;
}

li {
  margin-bottom: 0.55rem;
}

/* ===== ACCESSIBILITY ===== */

.skip-nav {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-nav:focus {
  position: absolute;
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  padding: 0.75rem 1rem;
  background: var(--accent-deep);
  color: #ffffff;
  z-index: 10000;
  border-radius: var(--radius-sm);
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(63, 93, 59, 0.25);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Make anchored headings visible below sticky nav */
h1[id],
h2[id],
h3[id],
h4[id],
section[id] {
  scroll-margin-top: 120px;
}

/* ===== GLOBAL ELEMENTS ===== */

a {
  color: var(--accent-deep);
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

a:hover {
  text-decoration: underline;
}

p {
  margin: 0 0 1.35rem;
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 3rem 0;
}

.section-label {
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-deep);
  display: block;
  margin-bottom: 0.5rem;
}

code,
pre {
  font-family: Consolas, Monaco, "Courier New", monospace;
}

code {
  background: var(--bg-alt);
  padding: 0.15rem 0.35rem;
  border-radius: 6px;
  font-size: 0.92em;
}

pre {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
  overflow-x: auto;
  line-height: 1.6;
  margin: 1.5rem 0;
}

/* ===== CONTAINER ===== */

.container {
  width: 92%;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* ===== NAVIGATION ===== */

.nav {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 1.15rem 0;
}

.nav__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.nav__logo {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--text);
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.nav__logo:hover {
  text-decoration: none;
}

.nav__logo span {
  color: var(--accent-deep);
}

.nav__links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav__links li {
  margin: 0;
}

.nav__links a {
  color: var(--text-soft);
  font-size: 0.95rem;
  position: relative;
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--accent-deep);
  text-decoration: none;
}

.nav__cta .btn {
  margin-left: 0.25rem;
}

/* ===== HERO ===== */

.hero {
  padding: 140px 0 120px;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-soft), var(--bg));
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: 3rem;
  margin: 0 0 1.2rem;
  line-height: 1.25;
}

.hero p {
  max-width: 700px;
  margin: 0 auto 1.2rem;
  color: var(--text-soft);
  font-size: 1.1rem;
}

.hero .btn {
  margin-top: 0.5rem;
}

/* ===== SECTIONS ===== */

.section {
  padding: 100px 0;
}

.section-alt {
  background: var(--bg-soft);
}

/* ===== HEADINGS ===== */

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  color: var(--text);
  line-height: 1.3;
}

h1 {
  font-size: 2.8rem;
}

h2 {
  font-size: 2rem;
  margin: 0 0 1.5rem;
}

h3 {
  font-size: 1.25rem;
  margin: 0 0 1rem;
}

h4 {
  font-size: 1.05rem;
  margin: 0 0 0.85rem;
}

/* ===== BUTTONS ===== */

.btn {
  display: inline-block;
  padding: 0.85rem 1.7rem;
  border-radius: 40px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: 0.3s ease;
  border: none;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  line-height: 1.2;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--accent-deep);
  color: #ffffff;
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--accent-dark);
  transform: translateY(-2px);
}

.btn-outline {
  border: 1px solid var(--accent-deep);
  color: var(--accent-deep);
  background: transparent;
}

.btn-outline:hover,
.btn-outline:focus-visible {
  background: var(--accent-deep);
  color: #ffffff;
}

/* ===== INTRO / LEAD TEXT ===== */

.lead,
.intro-text {
  font-size: 1.12rem;
  color: var(--text-soft);
  max-width: 760px;
}

/* ===== BLOG GRID ===== */

.blog-preview,
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
}

.blog-card,
.blog-grid-card {
  background: #ffffff;
  padding: 2.2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  border: 1px solid rgba(0, 0, 0, 0.02);
}

.blog-card:hover,
.blog-grid-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-medium);
}

.blog-card__tag,
.blog-grid-card__tag,
.post-meta,
.category-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--accent-deep);
  margin-bottom: 0.8rem;
}

.blog-card h3,
.blog-grid-card h3 {
  margin-top: 0;
}

.blog-card p,
.blog-grid-card p {
  color: var(--text-soft);
}

.blog-card a,
.blog-grid-card a {
  text-decoration: none;
}

.blog-card a:hover,
.blog-grid-card a:hover {
  text-decoration: none;
}

/* ===== CATEGORY PAGE BLOCKS ===== */

.category-intro {
  max-width: 760px;
  margin: 0 auto 2rem;
  text-align: center;
  color: var(--text-soft);
}

.category-list {
  display: grid;
  gap: 1.5rem;
}

.category-list__item {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  box-shadow: var(--shadow-soft);
}

.category-list__item h3 {
  margin-bottom: 0.5rem;
}

.category-list__item p {
  color: var(--text-soft);
  margin-bottom: 0;
}

/* ===== ARTICLE PAGE ===== */

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

.post-content,
.post-body {
  max-width: var(--content-width);
  min-width: 0;
}

.post-content p,
.post-body p {
  margin-bottom: 1.4rem;
  font-size: 1.08rem;
}

.post-content h2,
.post-body h2 {
  margin-top: 3rem;
}

.post-content h3,
.post-body h3 {
  margin-top: 2rem;
}

.post-content ul,
.post-content ol,
.post-body ul,
.post-body ol {
  margin-left: 1.2rem;
  margin-bottom: 1.8rem;
}

.post-content li,
.post-body li {
  margin-bottom: 0.7rem;
}

.post-content blockquote,
.post-body blockquote {
  border-left: 4px solid var(--accent-deep);
  padding: 1.2rem 1.4rem;
  background: var(--bg-alt);
  margin: 2.5rem 0;
  border-radius: 10px;
  font-style: italic;
}

.post-content strong,
.post-body strong {
  color: var(--text);
}

.post-content table,
.post-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.98rem;
  display: block;
  overflow-x: auto;
}

.post-content th,
.post-content td,
.post-body th,
.post-body td {
  border: 1px solid var(--border);
  padding: 0.85rem 1rem;
  text-align: left;
  vertical-align: top;
}

.post-content th,
.post-body th {
  background: var(--bg-soft);
  font-family: var(--font-heading);
}

.post-content img,
.post-body img {
  margin: 2rem 0;
  border-radius: var(--radius-sm);
}

/* ===== ARTICLE HELPER ELEMENTS ===== */

.post-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  color: var(--text-soft);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.note-box,
.info-box {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem 1.3rem;
  margin: 2rem 0;
}

.note-box p:last-child,
.info-box p:last-child {
  margin-bottom: 0;
}

/* ===== FAQ BLOCKS ===== */

.faq-item {
  border-top: 1px solid var(--border);
  padding: 1.25rem 0;
}

.faq-item:last-child {
  border-bottom: 1px solid var(--border);
}

.faq-item h3 {
  margin-bottom: 0.65rem;
}

/* ===== SIDEBAR ===== */

.post-sidebar {
  font-size: 0.95rem;
  position: sticky;
  top: 100px;
}

.sidebar-widget {
  background: #ffffff;
  padding: 1.8rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  margin-bottom: 2rem;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.sidebar-widget h4 {
  margin-bottom: 1rem;
  font-family: var(--font-heading);
}

.toc-list,
.sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc-list li,
.sidebar-list li {
  margin-bottom: 0.7rem;
}

.toc-list a,
.sidebar-list a {
  color: var(--text-soft);
}

.toc-list a:hover,
.toc-list a.active,
.sidebar-list a:hover {
  color: var(--accent-deep);
  font-weight: 600;
  text-decoration: none;
}

/* ===== CONTACT FORM ===== */

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-family: var(--font-body);
  font-size: 1rem;
  background: #ffffff;
  color: var(--text);
}

.contact-form textarea {
  min-height: 180px;
  resize: vertical;
}

.contact-form label {
  display: inline-block;
  margin-bottom: 0.45rem;
  font-weight: 600;
  color: var(--text);
}

.form-group {
  margin-bottom: 1.2rem;
}

.contact-form-embed {
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius);
}

.contact-form-embed iframe {
  width: 100%;
  border: none;
  background: #ffffff;
  border-radius: var(--radius);
  min-height: 900px;
}

/* ===== LEGAL / POLICY PAGES ===== */

.legal-hero {
  padding: 80px 0 60px;
  background: var(--bg-soft);
  text-align: center;
}

.legal-body {
  max-width: 850px;
  margin: 0 auto;
  padding: 80px 0;
}

.legal-body h2,
.legal-body h3 {
  margin-top: 2.5rem;
}

.legal-body ul,
.legal-body ol {
  margin-bottom: 1.5rem;
}

.legal-body p,
.legal-body li {
  color: var(--text);
}

.legal-meta {
  color: var(--text-soft);
  font-size: 0.95rem;
}

/* ===== ABOUT / TRUST SECTIONS ===== */

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.trust-card {
  background: #ffffff;
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.trust-card p:last-child {
  margin-bottom: 0;
}

/* ===== RPM OPTIMIZED AD ZONES ===== */

.ad-zone {
  margin: 60px auto;
  padding: 30px 0;
  text-align: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.ad-zone--soft {
  background: var(--bg-alt);
  border-radius: 12px;
  padding: 40px 20px;
  border: none;
}

.ad-label {
  font-size: 0.7rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 10px;
}

.ad-placeholder {
  min-height: 280px;
}

/* ===== FOOTER ===== */

.footer {
  padding: 70px 0;
  background: var(--bg-soft);
  font-size: 0.95rem;
  color: var(--text-soft);
  margin-top: 80px;
  border-top: 1px solid var(--border);
}

.footer__top {
  margin-bottom: 1.4rem;
}

.footer__brand {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  color: var(--text-soft);
  line-height: 1.8;
}

.footer__nav {
  margin-bottom: 1.25rem;
}

.footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem 1.25rem;
}

.footer__links li {
  margin: 0;
}

.footer__links a {
  color: var(--text-soft);
  text-decoration: none;
}

.footer__links a:hover,
.footer__links a:focus-visible {
  color: var(--accent-deep);
  text-decoration: underline;
}

.footer__bottom {
  margin-top: 1.3rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ===== UTILITY ===== */

.text-center {
  text-align: center;
}

.text-soft {
  color: var(--text-soft);
}

.max-content {
  max-width: var(--content-width);
  margin-left: auto;
  margin-right: auto;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 1100px) {
  .post-layout {
    grid-template-columns: 1fr 280px;
    gap: 2rem;
  }
}

@media (max-width: 900px) {
  .nav {
    padding: 1rem 0;
  }

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

  .nav__links {
    flex-wrap: wrap;
    gap: 0.85rem 1rem;
  }

  .hero {
    padding: 100px 0 80px;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .section {
    padding: 72px 0;
  }

  .post-layout {
    grid-template-columns: 1fr;
  }

  .post-sidebar {
    position: static;
    top: auto;
  }

  .contact-wrap {
    grid-template-columns: 1fr;
  }

  .trust-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 1rem;
    line-height: 1.75;
  }

  .container {
    width: 90%;
  }

  .hero h1,
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.65rem;
  }

  h3 {
    font-size: 1.15rem;
  }

  .blog-card,
  .blog-grid-card,
  .sidebar-widget,
  .trust-card,
  .category-list__item {
    padding: 1.4rem;
  }

  .btn {
    width: 100%;
    max-width: 320px;
  }

  .contact-form-embed iframe {
    min-height: 1100px;
  }

  .footer {
    padding: 56px 0;
  }

  .footer__links {
    flex-direction: column;
    gap: 0.65rem;
  }
}
