/* ================================================
   SAGE CHRONICLE — Editorial Portal Theme
   Visual DNA: Zay Shop (templatemo_559)
   ================================================
   Color palette: dark navy + sage green accent + cool greys
   Typography: system sans-serif at ultra-light weights
   Layout: centered container, alternating section backgrounds
   ================================================ */

/* --- CSS Variables --- */
:root {
  --clr-navy: #212934;
  --clr-navy-deep: #1d242d;
  --clr-sage: #59ab6e;
  --clr-sage-hover: #69bb7e;
  --clr-sage-muted: #4a9960;
  --clr-light-bg: #e9eef5;
  --clr-white: #ffffff;
  --clr-text: #3a3f47;
  --clr-text-muted: #8b919a;
  --clr-text-light: #cfd6e1;
  --clr-border: #dde3ec;
  --clr-border-dark: #2d343f;
  --clr-warning: #ede861;

  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --fw-light: 300;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-thin: 200;

  --container-max: 1180px;
  --radius-sm: 3px;
  --radius-md: 6px;
  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-nav: 0 2px 6px rgba(0, 0, 0, 0.07);
  --transition: 0.3s ease;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: var(--fw-light);
  color: var(--clr-text);
  line-height: 1.7;
  background: var(--clr-white);
  overflow-x: hidden;
}

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

a {
  color: var(--clr-sage);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--clr-sage-hover);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-body);
  font-weight: var(--fw-thin);
  line-height: 1.3;
  color: var(--clr-navy);
}

p {
  margin-bottom: 1rem;
}

/* --- Utility Container --- */
.sz-container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* --- Skip Link (accessibility) --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--clr-sage);
  color: var(--clr-white);
  padding: 0.5rem 1rem;
  z-index: 9999;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
}
.skip-link:focus {
  top: 0.5rem;
  color: var(--clr-white);
}

/* ==============================================
   TOP BAR — dark navy utility strip
   ============================================== */
.sz-topbar {
  background: var(--clr-navy);
  padding: 0.5rem 0;
  font-size: 0.825rem;
  color: var(--clr-text-light);
  display: none;
}

.sz-topbar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sz-topbar a {
  color: var(--clr-text-light);
  font-weight: var(--fw-light);
}

.sz-topbar a:hover {
  color: var(--clr-sage-hover);
}

@media (min-width: 768px) {
  .sz-topbar {
    display: block;
  }
}

/* ==============================================
   MAIN NAVIGATION — white bar with shadow
   ============================================== */
.sz-nav {
  background: var(--clr-white);
  box-shadow: var(--shadow-nav);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.sz-nav__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 0;
}

.sz-nav__brand {
  font-size: 1.75rem;
  font-weight: var(--fw-medium);
  color: var(--clr-sage);
  text-decoration: none;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sz-nav__brand:hover {
  color: var(--clr-sage-hover);
}

.sz-nav__brand img {
  height: 36px;
  width: auto;
}

.sz-nav__links {
  display: none;
  list-style: none;
  gap: 0;
}

.sz-nav__links a {
  color: var(--clr-navy);
  font-weight: var(--fw-light);
  font-size: 1rem;
  padding: 0.5rem 1.1rem;
  display: block;
  transition: color var(--transition);
}

.sz-nav__links a:hover {
  color: var(--clr-sage-hover);
}

/* Hamburger */
.sz-nav__toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.sz-nav__toggle span {
  width: 24px;
  height: 2px;
  background: var(--clr-navy);
  transition: var(--transition);
  display: block;
}

.sz-nav__toggle.is-active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.sz-nav__toggle.is-active span:nth-child(2) {
  opacity: 0;
}
.sz-nav__toggle.is-active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile nav dropdown */
.sz-nav__mobile {
  display: none;
  background: var(--clr-white);
  border-top: 1px solid var(--clr-border);
  padding: 1rem 0;
}

.sz-nav__mobile.is-open {
  display: block;
}

.sz-nav__mobile a {
  display: block;
  padding: 0.75rem 1.25rem;
  color: var(--clr-navy);
  font-size: 1rem;
  font-weight: var(--fw-light);
}

.sz-nav__mobile a:hover {
  color: var(--clr-sage);
  background: var(--clr-light-bg);
}

@media (min-width: 768px) {
  .sz-nav__links {
    display: flex;
    align-items: center;
  }
  .sz-nav__toggle {
    display: none;
  }
}

/* ==============================================
   HERO — split layout: text left, decorative right
   Inspired by Zay's carousel split-screen hero
   ============================================== */
.sz-hero {
  background: var(--clr-light-bg);
  padding: 3rem 0;
  overflow: hidden;
}

.sz-hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

.sz-hero__content {
  order: 2;
}

.sz-hero__title {
  font-size: 2rem;
  font-weight: var(--fw-thin);
  color: var(--clr-navy);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.sz-hero__title strong {
  color: var(--clr-sage);
  font-weight: var(--fw-medium);
}

.sz-hero__subtitle {
  font-size: 1.05rem;
  color: var(--clr-text-muted);
  font-weight: var(--fw-light);
  margin-bottom: 1.75rem;
  line-height: 1.8;
}

.sz-hero__subtitle p {
  margin-bottom: 0.5rem;
}

.sz-hero__cta {
  display: inline-block;
  background: var(--clr-sage);
  color: var(--clr-white);
  padding: 0.75rem 2rem;
  border-radius: var(--radius-sm);
  font-weight: var(--fw-regular);
  font-size: 0.95rem;
  transition: background var(--transition);
  border: 1px solid var(--clr-sage);
}

.sz-hero__cta:hover {
  background: var(--clr-sage-hover);
  border-color: var(--clr-sage-hover);
  color: var(--clr-white);
}

.sz-hero__visual {
  order: 1;
  display: flex;
  justify-content: center;
}

.sz-hero__decoration {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--clr-sage) 0%, #3d8a54 100%);
  border-radius: 50%;
  opacity: 0.12;
}

@media (min-width: 768px) {
  .sz-hero {
    padding: 4.5rem 0;
  }
  .sz-hero__inner {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
  .sz-hero__content {
    order: 1;
  }
  .sz-hero__visual {
    order: 2;
  }
  .sz-hero__title {
    font-size: 2.75rem;
  }
}

@media (min-width: 1024px) {
  .sz-hero__title {
    font-size: 3.2rem;
  }
}

/* ==============================================
   SECTION TITLES — centered with max-width subtitle
   Mirrors Zay's center-aligned section headers
   ============================================== */
.sz-section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

.sz-section-header__title {
  font-size: 2rem;
  font-weight: var(--fw-thin);
  margin-bottom: 0.75rem;
}

.sz-section-header__desc {
  color: var(--clr-text-muted);
  font-size: 0.95rem;
  font-weight: var(--fw-light);
}

/* ==============================================
   TOPICS — 3-column grid (matching Zay's categories)
   with border-top accent instead of round images
   ============================================== */
.sz-topics {
  padding: 4rem 0;
  background: var(--clr-white);
}

.sz-topics__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.sz-topic-card {
  padding: 2rem 1.5rem;
  border-top: 3px solid var(--clr-sage);
  background: var(--clr-white);
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition), transform var(--transition);
}

.sz-topic-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.sz-topic-card__name {
  font-size: 1.25rem;
  font-weight: var(--fw-regular);
  color: var(--clr-navy);
  margin-bottom: 0.75rem;
}

.sz-topic-card__desc {
  font-size: 0.9rem;
  color: var(--clr-text-muted);
  font-weight: var(--fw-light);
  line-height: 1.7;
}

.sz-topic-card__desc p {
  margin-bottom: 0.5rem;
}

.sz-topic-card__desc p:last-child {
  margin-bottom: 0;
}

@media (min-width: 576px) {
  .sz-topics__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 992px) {
  .sz-topics__grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

/* ==============================================
   LATEST POSTS — editorial card layout
   Inspired by Zay's featured products section
   Uses alternating bg (light)
   ============================================== */
.sz-posts-section {
  padding: 4rem 0;
  background: var(--clr-light-bg);
}

.sz-posts__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.sz-post-card {
  background: var(--clr-white);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

.sz-post-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.sz-post-card__image {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.sz-post-card__body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.sz-post-card__date {
  font-size: 0.8rem;
  color: var(--clr-text-muted);
  font-weight: var(--fw-light);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sz-post-card__title {
  font-size: 1.3rem;
  font-weight: var(--fw-light);
  margin-bottom: 0.75rem;
}

.sz-post-card__title a {
  color: var(--clr-navy);
  text-decoration: none;
}

.sz-post-card__title a:hover {
  color: var(--clr-sage);
}

.sz-post-card__excerpt {
  font-size: 0.9rem;
  color: var(--clr-text-muted);
  font-weight: var(--fw-light);
  flex: 1;
  line-height: 1.7;
}

.sz-post-card__excerpt p {
  margin-bottom: 0;
}

.sz-post-card__link {
  margin-top: 1rem;
  font-size: 0.875rem;
  font-weight: var(--fw-regular);
  color: var(--clr-sage);
}

.sz-post-card__link:hover {
  color: var(--clr-sage-hover);
}

@media (min-width: 576px) {
  .sz-posts__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 992px) {
  .sz-posts__grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

/* ==============================================
   FAQ — editorial Q&A blocks
   Clean left-aligned instead of accordion
   ============================================== */
.sz-faq {
  padding: 4rem 0;
  background: var(--clr-white);
}

.sz-faq__list {
  max-width: 800px;
  margin: 0 auto;
}

.sz-faq__item {
  border-bottom: 1px solid var(--clr-border);
  padding: 1.5rem 0;
}

.sz-faq__item:first-child {
  border-top: 1px solid var(--clr-border);
}

.sz-faq__question {
  font-size: 1.1rem;
  font-weight: var(--fw-regular);
  color: var(--clr-navy);
  margin-bottom: 0.75rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.sz-faq__question::after {
  content: "+";
  font-size: 1.3rem;
  font-weight: var(--fw-light);
  color: var(--clr-sage);
  flex-shrink: 0;
  line-height: 1;
  transition: transform var(--transition);
}

.sz-faq__item.is-open .sz-faq__question::after {
  content: "−";
}

.sz-faq__answer {
  font-size: 0.9rem;
  color: var(--clr-text-muted);
  font-weight: var(--fw-light);
  line-height: 1.8;
  display: none;
  padding-right: 2rem;
}

.sz-faq__item.is-open .sz-faq__answer {
  display: block;
}

.sz-faq__answer p {
  margin-bottom: 0.5rem;
}

.sz-faq__answer p:last-child {
  margin-bottom: 0;
}

/* ==============================================
   FOOTER — dark navy, 3-column, border-bottom headings
   Direct mood transfer from Zay's footer
   ============================================== */
.sz-footer {
  background: var(--clr-navy);
  padding: 3.5rem 0 0;
  color: var(--clr-text-light);
}

.sz-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.sz-footer__heading {
  font-size: 1.25rem;
  font-weight: var(--fw-light);
  color: var(--clr-text-light);
  border-bottom: 1px solid var(--clr-border-dark);
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
}

.sz-footer__heading--brand {
  color: var(--clr-sage);
}

.sz-footer__text {
  font-size: 0.875rem;
  font-weight: var(--fw-light);
  line-height: 1.8;
  color: var(--clr-text-light);
}

.sz-footer__links {
  list-style: none;
}

.sz-footer__links li {
  padding: 0.35rem 0;
}

.sz-footer__links a {
  color: var(--clr-text-light);
  font-size: 0.875rem;
  font-weight: var(--fw-light);
  transition: color var(--transition);
}

.sz-footer__links a:hover {
  color: var(--clr-sage-hover);
}

.sz-footer__contact-email a {
  color: var(--clr-text-light);
  font-size: 0.875rem;
}

.sz-footer__contact-email a:hover {
  color: var(--clr-sage-hover);
}

.sz-footer__bottom {
  background: var(--clr-navy-deep);
  margin-top: 2.5rem;
  padding: 1rem 0;
}

.sz-footer__bottom p {
  font-size: 0.8rem;
  color: var(--clr-text-light);
  font-weight: var(--fw-light);
  margin: 0;
  text-align: left;
}

@media (min-width: 576px) {
  .sz-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 768px) {
  .sz-footer__grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

/* ==============================================
   PAGE TEMPLATE — editorial content page
   ============================================== */
.sz-page-hero {
  background: var(--clr-sage);
  padding: 3rem 0;
  color: var(--clr-white);
}

.sz-page-hero__title {
  font-size: 2.25rem;
  font-weight: var(--fw-thin);
  color: var(--clr-white);
}

.sz-page-content {
  padding: 3rem 0;
  background: var(--clr-white);
}

.sz-page-content__inner {
  max-width: 780px;
  margin: 0 auto;
}

/* Content HTML styling */
.sz-prose h1 { font-size: 2rem; font-weight: var(--fw-thin); margin: 2rem 0 1rem; }
.sz-prose h2 { font-size: 1.6rem; font-weight: var(--fw-thin); margin: 1.75rem 0 0.75rem; border-bottom: 1px solid var(--clr-border); padding-bottom: 0.5rem; }
.sz-prose h3 { font-size: 1.3rem; font-weight: var(--fw-light); margin: 1.5rem 0 0.75rem; }
.sz-prose h4 { font-size: 1.1rem; font-weight: var(--fw-regular); margin: 1.25rem 0 0.5rem; }
.sz-prose p { margin-bottom: 1rem; font-weight: var(--fw-light); line-height: 1.8; }
.sz-prose ul, .sz-prose ol { margin: 1rem 0; padding-left: 1.5rem; }
.sz-prose li { margin-bottom: 0.4rem; font-weight: var(--fw-light); line-height: 1.7; }
.sz-prose a { color: var(--clr-sage); border-bottom: 1px solid transparent; }
.sz-prose a:hover { border-bottom-color: var(--clr-sage); }
.sz-prose img { margin: 1.5rem 0; border-radius: var(--radius-sm); }
.sz-prose blockquote {
  border-left: 3px solid var(--clr-sage);
  padding: 0.75rem 1.25rem;
  margin: 1.5rem 0;
  background: var(--clr-light-bg);
  color: var(--clr-text);
  font-weight: var(--fw-light);
}
.sz-prose table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.sz-prose th, .sz-prose td { padding: 0.6rem 0.75rem; border: 1px solid var(--clr-border); font-size: 0.9rem; font-weight: var(--fw-light); }
.sz-prose th { background: var(--clr-light-bg); font-weight: var(--fw-regular); }
.sz-prose pre { background: var(--clr-navy); color: var(--clr-text-light); padding: 1rem; border-radius: var(--radius-sm); overflow-x: auto; margin: 1rem 0; font-size: 0.85rem; }
.sz-prose code { background: var(--clr-light-bg); padding: 0.15rem 0.4rem; border-radius: 2px; font-size: 0.875em; }
.sz-prose pre code { background: none; padding: 0; }

/* ==============================================
   BLOG INDEX — post listing
   ============================================== */
.sz-blog-hero {
  background: var(--clr-sage);
  padding: 2.5rem 0;
  color: var(--clr-white);
}

.sz-blog-hero__title {
  font-size: 2.25rem;
  font-weight: var(--fw-thin);
  color: var(--clr-white);
}

.sz-blog-list {
  padding: 3rem 0;
  background: var(--clr-light-bg);
}

.sz-blog-list__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 576px) {
  .sz-blog-list__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 992px) {
  .sz-blog-list__grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

/* Pagination */
.sz-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.25rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.sz-pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.5rem;
  color: var(--clr-navy);
  font-size: 0.875rem;
  font-weight: var(--fw-light);
  border: 1px solid var(--clr-border);
  background: var(--clr-white);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.sz-pagination a:hover {
  background: var(--clr-sage-hover);
  color: var(--clr-white);
  border-color: var(--clr-sage-hover);
}

.sz-pagination a.active {
  background: var(--clr-sage);
  color: var(--clr-white);
  border-color: var(--clr-sage);
}

/* ==============================================
   SINGLE POST — article layout
   ============================================== */
.sz-article-header {
  background: var(--clr-light-bg);
  padding: 3rem 0 2rem;
}

.sz-article-header__inner {
  max-width: 780px;
  margin: 0 auto;
}

.sz-article-header__date {
  font-size: 0.8rem;
  color: var(--clr-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: var(--fw-light);
  margin-bottom: 0.75rem;
}

.sz-article-header__title {
  font-size: 2.25rem;
  font-weight: var(--fw-thin);
  color: var(--clr-navy);
  margin-bottom: 1rem;
}

.sz-article-header__excerpt {
  font-size: 1.05rem;
  color: var(--clr-text-muted);
  font-weight: var(--fw-light);
  line-height: 1.8;
}

.sz-article-header__excerpt p {
  margin-bottom: 0;
}

.sz-article-cover {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.sz-article-cover img {
  width: 100%;
  margin-top: -1rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
}

.sz-article-body {
  padding: 2.5rem 0 4rem;
  background: var(--clr-white);
}

.sz-article-body__inner {
  max-width: 780px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .sz-article-header__title {
    font-size: 2.75rem;
  }
}

/* ==============================================
   UTILITY CLASSES
   ============================================== */
.sz-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus styles for keyboard nav */
*:focus-visible {
  outline: 2px solid var(--clr-sage);
  outline-offset: 2px;
}

/* Empty state */
.sz-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--clr-text-muted);
  font-weight: var(--fw-light);
}
