/*
Theme Name: Products Org
Theme URI: https://products.org
Description: Premium editorial product review theme. Warm terracotta and navy palette, Playfair Display + Inter typography, split-screen hero, editorial card grid.
Author: Status Labs
Author URI: https://statuslabs.com
Version: 2.0.3
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: products-org
Tags: news, blog, reviews, full-width-template, custom-menu, featured-images, post-thumbnails
*/

/* ============================================================
   GOOGLE FONTS + REMIXICON
   ============================================================ */

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --navy:       #1a2332;
  --terracotta: #d4a574;
  --terra-dark: #c49563;
  --body-text:  #2a2a2a;
  --muted:      rgba(26,35,50,0.60);
  --light-bg:   #f8f9fa;
  --white:      #ffffff;
  --shadow-sm:  0 4px 20px rgba(0,0,0,0.06);
  --shadow-md:  0 12px 32px rgba(0,0,0,0.12);
  --shadow-nav: 0 2px 12px rgba(0,0,0,0.06);
  --max-w:      1400px;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Inter', system-ui, sans-serif;
}

/* ============================================================
   RESET / BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--body-text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a { text-decoration: none; color: inherit; }

ul { list-style: none; }

/* ============================================================
   UTILITIES
   ============================================================ */
.container {
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: .6875rem;       /* 11px */
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--terracotta);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: background .3s ease, box-shadow .3s ease, color .3s ease;
}

/* Default on homepage hero — transparent white text */
.site-nav--transparent {
  background: transparent;
  color: var(--white);
}

/* After scroll OR on inner pages */
.site-nav--solid {
  background: var(--white);
  box-shadow: var(--shadow-nav);
  color: var(--navy);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img { height: 2.5rem; width: auto; }
.nav-logo-text {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: inherit;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.nav-link {
  font-family: var(--font-sans);
  font-size: .9375rem;
  color: inherit;
  position: relative;
  transition: color .2s;
  white-space: nowrap;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 50%;
  width: 0; height: 2px;
  background: var(--terracotta);
  transition: width .3s ease, left .3s ease;
}

.nav-link:hover,
.nav-link.active { color: var(--terracotta); }

.nav-link:hover::after,
.nav-link.active::after { width: 100%; left: 0; }

/* Mobile toggle */
.nav-toggle {
  display: none;
  background: none; border: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: inherit;
  padding: .25rem;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: .25rem;
  padding: .75rem 2rem 1.25rem;
  background: var(--white);
  box-shadow: var(--shadow-nav);
}

.nav-mobile.open { display: flex; }

.nav-mobile .nav-link {
  color: var(--navy);
  padding: .75rem 0;
  border-bottom: 1px solid rgba(26,35,50,.06);
  font-size: 1rem;
}

/* ============================================================
   HERO — SPLIT SCREEN (50 / 50)
   ============================================================ */
.hero-split {
  height: 100vh;
  min-height: 640px;
  display: flex;
}

.hero-image-col {
  width: 50%;
  position: relative;
  overflow: hidden;
}

.hero-image-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.hero-image-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.30) 0%, transparent 60%);
}

.hero-content-col {
  width: 50%;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem;
}

.hero-content-inner { max-width: 36rem; }

.hero-badge {
  display: inline-block;
  padding: .5rem 1.25rem;
  background: var(--terracotta);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  border-radius: 9999px;
  white-space: nowrap;
}

.hero-title {
  margin-top: 5rem;
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
}

.hero-excerpt {
  margin-top: 2.5rem;
  font-family: var(--font-sans);
  font-size: 1.125rem;
  color: rgba(255,255,255,.80);
  line-height: 1.7;
}

.hero-cta {
  display: inline-block;
  margin-top: 3rem;
  padding: 1rem 2.5rem;
  background: var(--terracotta);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  border-radius: 9999px;
  white-space: nowrap;
  transition: background .2s, transform .2s, box-shadow .2s;
}

.hero-cta:hover {
  background: var(--terra-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.20);
  color: var(--white);
}

/* ============================================================
   ARTICLE CARDS
   ============================================================ */
.articles-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.articles-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
}

.article-card {
  background: var(--white);
  border-radius: 1rem;          /* rounded-2xl */
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .3s ease, transform .3s ease;
  color: inherit;
}

.article-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-8px);
}

.article-card-img {
  width: 100%;
  height: 16rem;               /* h-64 */
  overflow: hidden;
}

.article-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform .5s ease;
}

.article-card:hover .article-card-img img { transform: scale(1.05); }

.article-card-body { padding: 1.75rem; flex: 1; display: flex; flex-direction: column; }

.card-badge {
  display: inline-block;
  padding: .375rem 1rem;
  background: var(--terracotta);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: .625rem;          /* 10px */
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  border-radius: .75rem;       /* rounded-xl */
  white-space: nowrap;
  width: fit-content;
}

.card-title {
  margin-top: 1rem;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--navy);
  line-height: 1.3;
  transition: color .2s;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card:hover .card-title { color: var(--terracotta); }

.card-meta {
  margin-top: .75rem;
  font-family: var(--font-sans);
  font-size: .8125rem;
  color: var(--muted);
}

/* ============================================================
   SECTION: LATEST STORIES
   ============================================================ */
.stories-section {
  padding: 8rem 2rem;
}

.stories-section .container { max-width: var(--max-w); }

.section-heading {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3vw, 2.625rem);
  color: var(--navy);
  margin-bottom: 4rem;
}

.browse-all-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--terracotta);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  transition: gap .3s ease;
  margin-top: 4rem;
}

.browse-all-link:hover { gap: 1rem; color: var(--terracotta); }

/* ============================================================
   SECTION: ABOUT (homepage)
   ============================================================ */
.about-section {
  padding: 8rem 2rem;
  background: var(--light-bg);
}

.about-inner {
  max-width: 56rem;
  margin: 0 auto;
  text-align: center;
}

.about-heading {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3vw, 2.625rem);
  color: var(--navy);
  margin-bottom: 2rem;
}

.about-body {
  font-family: var(--font-sans);
  font-size: 1.125rem;
  color: rgba(26,35,50,.80);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

/* ============================================================
   SECTION: CONTACT (homepage)
   ============================================================ */
.contact-section {
  padding: 8rem 2rem;
}

.contact-inner {
  max-width: 56rem;
  margin: 0 auto;
  text-align: center;
}

.contact-heading {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3vw, 2.625rem);
  color: var(--navy);
  margin-bottom: 2rem;
}

.contact-body {
  font-family: var(--font-sans);
  font-size: 1.125rem;
  color: rgba(26,35,50,.80);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  padding: 1rem 2.5rem;
  background: var(--terracotta);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  border-radius: 9999px;
  transition: background .2s, transform .2s, box-shadow .2s;
  white-space: nowrap;
}

.contact-btn:hover {
  background: var(--terra-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
  color: var(--white);
}

/* ============================================================
   ARCHIVE — ALL STORIES PAGE
   ============================================================ */
.archive-hero {
  padding: 10rem 2rem 5rem;
  background: var(--navy);
  text-align: center;
}

.archive-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: var(--white);
  margin-bottom: 1.5rem;
}

.archive-hero p {
  font-family: var(--font-sans);
  font-size: 1.125rem;
  color: rgba(255,255,255,.80);
  max-width: 40rem;
  margin: 0 auto;
  line-height: 1.7;
}

/* Sticky filter bar */
.filter-bar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--white);
  box-shadow: var(--shadow-nav);
  padding: 1.25rem 0;
}

.filter-scroll {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.filter-scroll::-webkit-scrollbar { display: none; }

.filter-btn {
  padding: .75rem 1.5rem;
  border-radius: 9999px;
  font-family: var(--font-sans);
  font-size: .875rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all .3s ease;
  border: 1px solid var(--navy);
  background: var(--white);
  color: var(--navy);
  text-decoration: none;
  display: inline-block;
}

.filter-btn:hover {
  border-color: var(--terracotta);
  color: var(--terracotta);
}

.filter-btn.active,
.filter-btn:focus {
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: var(--white);
}

.articles-section {
  padding: 6rem 2rem;
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  margin-top: 5rem;
}

.page-btn,
.pagination a,
.pagination span {
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  font-family: var(--font-sans);
  font-size: .9375rem;
  font-weight: 600;
  color: var(--navy);
  transition: background .2s, color .2s;
  text-decoration: none;
}

.pagination a:hover,
.pagination .current {
  background: var(--terracotta);
  color: var(--white);
}

/* ============================================================
   SINGLE POST
   ============================================================ */
.single-hero {
  position: relative;
  height: 70vh;
  min-height: 520px;
  margin-top: 5rem;             /* nav clearance */
  overflow: hidden;
}

.single-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.single-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.70) 0%, transparent 60%);
}

.single-hero-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 5rem 2rem;
}

.single-hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.single-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.25rem);
  color: var(--white);
  line-height: 1.2;
  max-width: 50rem;
  margin: 1.25rem 0 1.5rem;
}

.single-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-sans);
  font-size: .875rem;
  color: rgba(255,255,255,.90);
}

.meta-dot {
  width: .375rem;
  height: .375rem;
  border-radius: 9999px;
  background: var(--terracotta);
  flex-shrink: 0;
}

/* Article body */
.single-body {
  padding: 5rem 2rem;
}

.single-body-inner {
  max-width: 43.75rem;          /* 700px */
  margin: 0 auto;
}

.single-content {
  font-family: var(--font-sans);
  font-size: 1.125rem;
  color: var(--body-text);
  line-height: 1.8;
}

.single-content h2 {
  font-family: var(--font-serif);
  font-size: 1.875rem;
  color: var(--navy);
  margin: 3rem 0 1.25rem;
  line-height: 1.25;
}

.single-content h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--navy);
  margin: 2.5rem 0 1rem;
}

.single-content p { margin-bottom: 1.5rem; }

.single-content a { color: var(--terracotta); text-decoration: underline; }

.single-content ul,
.single-content ol { margin: 0 0 1.5rem 1.5rem; }

.single-content li { margin-bottom: .5rem; }

.single-content blockquote {
  border-left: 3px solid var(--terracotta);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: var(--light-bg);
  font-style: italic;
  color: rgba(26,35,50,.80);
}

.single-content img {
  width: 100%;
  border-radius: .75rem;
  margin: 2rem 0;
}

/* Tags */
.single-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(26,35,50,.10);
}

.tag-pill {
  display: inline-block;
  padding: .375rem .875rem;
  border: 1px solid rgba(26,35,50,.20);
  border-radius: 9999px;
  font-family: var(--font-sans);
  font-size: .75rem;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  transition: background .2s, color .2s, border-color .2s;
}

.tag-pill:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

/* Related stories */
.related-section {
  padding: 5rem 2rem;
  background: var(--light-bg);
}

.related-heading {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  color: var(--navy);
  text-align: center;
  margin-bottom: 4rem;
}

/* ============================================================
   GENERIC PAGE
   ============================================================ */
.page-header-plain {
  padding: 9rem 2rem 4rem;
  background: var(--light-bg);
}

.page-header-plain h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--navy);
  margin-top: .5rem;
  line-height: 1.15;
}

.page-body {
  padding: 4rem 2rem 6rem;
}

.page-body-inner {
  max-width: 53.75rem;
  margin: 0 auto;
}

.page-prose {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--body-text);
}

.page-prose h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--navy);
  margin: 3rem 0 1rem;
}

.page-prose p { margin-bottom: 1.5rem; }
.page-prose a { color: var(--terracotta); text-decoration: underline; }
.page-prose ul, .page-prose ol { margin: 0 0 1.5rem 1.5rem; }

/* ============================================================
   404 PAGE
   ============================================================ */
.error-404 {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
}

.error-404 h1 {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 8vw, 6rem);
  color: var(--navy);
  line-height: 1;
  margin: .5rem 0 1.25rem;
}

.error-404 p {
  font-family: var(--font-sans);
  font-size: 1.125rem;
  color: var(--muted);
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--navy);
  color: var(--white);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 5rem 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
  margin-bottom: 4rem;
}

.footer-col-heading {
  font-family: var(--font-sans);
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .125em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 1.5rem;
  white-space: nowrap;
}

.footer-col ul { display: flex; flex-direction: column; gap: 1rem; }

.footer-col a {
  font-family: var(--font-sans);
  font-size: .9375rem;
  color: rgba(255,255,255,.80);
  transition: color .2s;
  white-space: nowrap;
}

.footer-col a:hover { color: var(--white); }

/* Newsletter strip */
.footer-newsletter {
  border-top: 1px solid rgba(255,255,255,.15);
  padding-top: 3rem;
  margin-bottom: 3rem;
}

.footer-subscribe-form {
  display: flex;
  max-width: 36rem;
}

.footer-email-input {
  flex: 1;
  padding: 1rem 1.5rem;
  background: var(--white);
  color: var(--navy);
  border: none;
  border-radius: .5rem 0 0 .5rem;
  font-family: var(--font-sans);
  font-size: .9375rem;
  outline: none;
}

.footer-email-input:focus { box-shadow: inset 0 0 0 2px var(--terracotta); }

.footer-subscribe-btn {
  padding: 1rem 2.5rem;
  background: var(--terracotta);
  color: var(--white);
  border: none;
  border-radius: 0 .5rem .5rem 0;
  font-family: var(--font-sans);
  font-size: .9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
  white-space: nowrap;
}

.footer-subscribe-btn:hover { background: var(--terra-dark); }

/* Footer bottom bar */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.15);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-tagline,
.footer-email-link {
  font-family: var(--font-sans);
  font-size: .875rem;
  color: rgba(255,255,255,.60);
  white-space: nowrap;
}

.footer-email-link a { color: inherit; transition: color .2s; }
.footer-email-link a:hover { color: var(--terracotta); }

.footer-socials {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.footer-socials a {
  font-size: 1.25rem;
  color: rgba(255,255,255,.60);
  transition: color .2s;
  display: flex;
  align-items: center;
}

.footer-socials a:hover { color: var(--terracotta); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
  .articles-grid-4 { grid-template-columns: repeat(3, 1fr); }
  .hero-content-col { padding: 3rem; }
}

@media (max-width: 1024px) {
  .articles-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .articles-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .hero-split { flex-direction: column; height: auto; }
  .hero-image-col { width: 100%; height: 55vw; min-height: 320px; }
  .hero-content-col { width: 100%; padding: 3rem 2rem 4rem; justify-content: flex-start; }
  .hero-title { margin-top: 2rem; }

  .nav-links { display: none; }
  .nav-toggle { display: block; }

  .single-hero { height: 55vw; min-height: 320px; margin-top: 4rem; }
  .single-hero-content { padding: 2rem; }
  .single-body { padding: 3rem 1.5rem; }
  .related-section { padding: 3rem 1.5rem; }
}

@media (max-width: 640px) {
  .articles-grid-3,
  .articles-grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .footer-subscribe-form { flex-direction: column; }
  .footer-email-input { border-radius: .5rem .5rem 0 0; }
  .footer-subscribe-btn { border-radius: 0 0 .5rem .5rem; }
}

/* ============================================================
   HOMEPAGE – ABOUT SECTION
   ============================================================ */
.about-section {
  background: var(--light-bg);
  padding: 6rem 0;
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-heading {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  margin: 1rem 0 1.5rem;
}

.about-body {
  font-family: var(--font-sans);
  font-size: 1rem;
  color: #4a5568;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.about-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-sans);
  font-size: .9375rem;
  font-weight: 600;
  color: var(--terracotta);
  text-decoration: none;
  margin-top: 1rem;
  transition: gap .2s;
}
.about-link:hover { gap: .75rem; }

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.stat-item {
  text-align: center;
  padding: 2rem;
  background: var(--white);
  border-radius: 1rem;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}

.stat-number {
  display: block;
  font-family: var(--font-serif);
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--terracotta);
  line-height: 1;
  margin-bottom: .5rem;
}

.stat-label {
  display: block;
  font-family: var(--font-sans);
  font-size: .8125rem;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* ============================================================
   HOMEPAGE – CONTACT CTA SECTION
   ============================================================ */
.contact-cta-section {
  background: var(--navy);
  padding: 5rem 0;
}

.contact-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
}

.contact-cta-heading {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: .75rem;
}

.contact-cta-desc {
  font-family: var(--font-sans);
  font-size: 1rem;
  color: rgba(255,255,255,.70);
  max-width: 480px;
}

.btn-contact {
  display: inline-flex;
  align-items: center;
  gap: .625rem;
  padding: .875rem 2rem;
  background: var(--terracotta);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: .9375rem;
  font-weight: 600;
  border-radius: 9999px;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s, transform .15s;
}
.btn-contact:hover {
  background: var(--terra-dark);
  transform: translateY(-1px);
}

/* ============================================================
   HOMEPAGE – STORIES SECTION (browse link)
   ============================================================ */
.stories-browse-link {
  text-align: center;
  margin-top: 3rem;
}

.browse-all-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-sans);
  font-size: .9375rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  transition: gap .2s, color .2s;
}
.browse-all-link:hover { color: var(--terracotta); gap: .75rem; }

/* ============================================================
   ARCHIVE – NAVY HEADER
   ============================================================ */
.archive-header-navy {
  background: var(--navy);
  padding: 8rem 0 4rem;
}

.eyebrow-light {
  font-family: var(--font-sans);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: .75rem;
}

.archive-title {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
  line-height: 1.15;
}

.archive-desc {
  font-family: var(--font-sans);
  font-size: 1.125rem;
  color: rgba(255,255,255,.70);
  max-width: 620px;
}

/* ============================================================
   ARCHIVE – STICKY FILTER BAR
   ============================================================ */
.filter-bar {
  position: sticky;
  top: 64px;
  z-index: 50;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
}

.filter-bar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  gap: .25rem;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.filter-bar-inner::-webkit-scrollbar { display: none; }

/* ============================================================
   ARCHIVE – BODY / EMPTY STATE
   ============================================================ */
.archive-body { padding: 4rem 0 6rem; }

.archive-empty {
  text-align: center;
  padding: 5rem 0;
  font-family: var(--font-sans);
  color: var(--muted);
  font-size: 1.25rem;
}

/* ============================================================
   ARCHIVE – CIRCULAR PAGINATION
   ============================================================ */
.archive-pagination {
  display: flex;
  justify-content: center;
  margin-top: 4rem;
}

.archive-pagination .page-numbers {
  list-style: none;
  display: flex;
  gap: .5rem;
  padding: 0;
  margin: 0;
}

.archive-pagination .page-numbers li {}

.archive-pagination .page-numbers a,
.archive-pagination .page-numbers span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  font-family: var(--font-sans);
  font-size: .875rem;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
  border: 2px solid transparent;
  background: var(--light-bg);
  transition: background .2s, color .2s, border-color .2s;
}

.archive-pagination .page-numbers a:hover {
  background: var(--terracotta);
  color: var(--white);
}

.archive-pagination .page-numbers .current {
  background: var(--terracotta);
  color: var(--white);
}

.archive-pagination .page-numbers .prev,
.archive-pagination .page-numbers .next {
  background: var(--white);
  border-color: var(--navy);
  color: var(--navy);
}
.archive-pagination .page-numbers .prev:hover,
.archive-pagination .page-numbers .next:hover {
  background: var(--navy);
  color: var(--white);
}

/* ============================================================
   SINGLE POST – HERO (70vh)
   ============================================================ */
.single-hero {
  position: relative;
  height: 70vh;
  min-height: 480px;
  margin-top: 64px; /* nav clearance */
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.single-hero-image {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.single-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.single-hero-no-image {
  background: var(--navy);
}

.single-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10,16,26,.90) 0%,
    rgba(10,16,26,.60) 50%,
    rgba(10,16,26,.10) 100%
  );
  z-index: 1;
}

.single-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 3rem 0;
}

.single-hero-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 2rem;
}

.single-back-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-family: var(--font-sans);
  font-size: .8125rem;
  font-weight: 500;
  color: rgba(255,255,255,.70);
  text-decoration: none;
  margin-bottom: 1.25rem;
  transition: color .2s;
}
.single-back-link:hover { color: var(--terracotta); }

.single-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin: .75rem 0 1.25rem;
}

.single-hero-meta {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-family: var(--font-sans);
  font-size: .875rem;
  color: rgba(255,255,255,.65);
}

/* ============================================================
   SINGLE POST – BODY (700px centered)
   ============================================================ */
.single-body {
  padding: 4rem 2rem;
}

.single-body-inner {
  max-width: 700px;
  margin: 0 auto;
}

.single-excerpt {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--muted);
  line-height: 1.7;
  border-left: 4px solid var(--terracotta);
  padding-left: 1.5rem;
  margin-bottom: 2.5rem;
}

.single-content {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--body-text);
}

.single-content h2 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--navy);
  margin: 2.5rem 0 1rem;
}

.single-content h3 {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--navy);
  margin: 2rem 0 .75rem;
}

.single-content p { margin-bottom: 1.5rem; }

.single-content a {
  color: var(--terracotta);
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: text-decoration-color .2s;
}
.single-content a:hover { text-decoration-color: var(--terracotta); }

.single-content img {
  width: 100%;
  height: auto;
  border-radius: .75rem;
  margin: 2rem 0;
}

.single-content blockquote {
  border-left: 4px solid var(--terracotta);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: var(--light-bg);
  border-radius: 0 .5rem .5rem 0;
  font-family: var(--font-serif);
  font-size: 1.125rem;
  color: var(--navy);
}

/* Post navigation */
.single-post-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 3rem 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(26,35,50,.10);
}

.post-nav-link {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-sans);
  font-size: .875rem;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
  max-width: 45%;
  transition: color .2s;
}
.post-nav-link:hover { color: var(--terracotta); }
.post-nav-next { margin-left: auto; text-align: right; }

/* Tags */
.single-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .625rem;
  margin-top: 2.5rem;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  padding: .375rem 1rem;
  background: var(--light-bg);
  border: 1px solid rgba(26,35,50,.12);
  border-radius: 9999px;
  font-family: var(--font-sans);
  font-size: .8125rem;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
  transition: background .2s, color .2s;
}
.tag-pill:hover {
  background: var(--terracotta);
  color: var(--white);
  border-color: var(--terracotta);
}

/* ============================================================
   SINGLE – MORE STORIES SECTION
   ============================================================ */
.more-stories-section {
  background: var(--light-bg);
  padding: 5rem 0;
}

.more-stories-heading {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 2.5rem;
}

/* ============================================================
   PAGE TEMPLATE
   ============================================================ */
.page-header { }

.page-header-image {
  position: relative;
  height: 50vh;
  overflow: hidden;
}

.page-header-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-header-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,35,50,.7), rgba(26,35,50,.2));
}

.page-header-content {
  position: absolute;
  bottom: 2.5rem;
  left: 0;
  right: 0;
}

.page-header-title {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}

.page-header-title-white { color: var(--white); }

.page-header-plain {
  background: var(--light-bg);
  padding: 6rem 0 3rem;
  margin-top: 64px;
}

.page-body { padding: 4rem 0 6rem; }

.page-body-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 2rem;
}

.page-prose {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--body-text);
}

.page-prose h2, .page-prose h3 {
  font-family: var(--font-serif);
  color: var(--navy);
  margin: 2rem 0 1rem;
}

.page-prose p { margin-bottom: 1.5rem; }

/* ============================================================
   404 PAGE
   ============================================================ */
.error-404-page {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 2rem;
  margin-top: 64px;
}

.error-404-inner {
  max-width: 520px;
  text-align: center;
}

.error-404-title {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 700;
  color: var(--navy);
  margin: .75rem 0 1rem;
}

.error-404-desc {
  font-family: var(--font-sans);
  font-size: 1.125rem;
  color: var(--muted);
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.error-404-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.btn-primary-pill {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .875rem 1.75rem;
  background: var(--terracotta);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: .9375rem;
  font-weight: 600;
  border-radius: 9999px;
  text-decoration: none;
  transition: background .2s;
}
.btn-primary-pill:hover { background: var(--terra-dark); }

.btn-secondary-pill {
  display: inline-flex;
  align-items: center;
  padding: .875rem 1.75rem;
  background: transparent;
  color: var(--navy);
  font-family: var(--font-sans);
  font-size: .9375rem;
  font-weight: 600;
  border-radius: 9999px;
  border: 2px solid var(--navy);
  text-decoration: none;
  transition: background .2s, color .2s;
}
.btn-secondary-pill:hover {
  background: var(--navy);
  color: var(--white);
}

.error-404-recent { text-align: left; }

.error-404-recent-label {
  font-family: var(--font-sans);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}

.error-404-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.error-404-links li {
  border-bottom: 1px solid rgba(26,35,50,.08);
}

.error-404-links li a {
  display: block;
  padding: .75rem 0;
  font-family: var(--font-sans);
  font-size: .9375rem;
  color: var(--navy);
  text-decoration: none;
  transition: color .2s;
}
.error-404-links li a:hover { color: var(--terracotta); }

/* ============================================================
   FOOTER – UPDATED SELECTORS (match footer.php)
   ============================================================ */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -.02em;
}

.footer-tagline {
  font-family: var(--font-sans);
  font-size: .8125rem;
  color: rgba(255,255,255,.50);
  line-height: 1.5;
}

.footer-newsletter {
  border-top: 1px solid rgba(255,255,255,.10);
  border-bottom: 1px solid rgba(255,255,255,.10);
  padding: 2.5rem 0;
  margin: 2.5rem 0;
}

.footer-newsletter-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-newsletter-heading {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: .25rem;
}

.footer-newsletter-desc {
  font-family: var(--font-sans);
  font-size: .875rem;
  color: rgba(255,255,255,.60);
}

.footer-newsletter-form {
  display: flex;
  gap: .5rem;
  flex: 0 0 auto;
}

.footer-newsletter-input {
  padding: .75rem 1.25rem;
  border-radius: 9999px;
  border: 1px solid rgba(255,255,255,.20);
  background: rgba(255,255,255,.08);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: .875rem;
  width: 260px;
  outline: none;
  transition: border-color .2s, background .2s;
}
.footer-newsletter-input::placeholder { color: rgba(255,255,255,.40); }
.footer-newsletter-input:focus {
  border-color: var(--terracotta);
  background: rgba(255,255,255,.12);
}

.footer-newsletter-btn {
  padding: .75rem 1.5rem;
  background: var(--terracotta);
  color: var(--white);
  border: none;
  border-radius: 9999px;
  font-family: var(--font-sans);
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s;
}
.footer-newsletter-btn:hover { background: var(--terra-dark); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-bottom-left {
  display: flex;
  flex-direction: column;
  gap: .25rem;
}

.footer-copyright {
  font-family: var(--font-sans);
  font-size: .8125rem;
  color: rgba(255,255,255,.50);
}
.footer-copyright a { color: rgba(255,255,255,.50); text-decoration: none; }
.footer-copyright a:hover { color: var(--terracotta); }

.footer-email {
  font-family: var(--font-sans);
  font-size: .8125rem;
}
.footer-email a {
  color: rgba(255,255,255,.50);
  text-decoration: none;
  transition: color .2s;
}
.footer-email a:hover { color: var(--terracotta); }

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.60);
  font-size: 1rem;
  text-decoration: none;
  transition: background .2s, color .2s;
}
.social-icon:hover {
  background: var(--terracotta);
  color: var(--white);
}

/* ============================================================
   MOBILE MENU (JS-driven)
   ============================================================ */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-top: 1px solid rgba(26,35,50,.08);
  padding: 1rem 0;
}

.mobile-menu[data-open="true"] {
  display: flex;
}

.mobile-nav-link {
  padding: .875rem 2rem;
  font-family: var(--font-sans);
  font-size: .9375rem;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
  transition: color .2s, background .2s;
}
.mobile-nav-link:hover {
  color: var(--terracotta);
  background: var(--light-bg);
}

/* ============================================================
   RESPONSIVE ADDITIONS
   ============================================================ */
@media (max-width: 1024px) {
  .about-inner { grid-template-columns: 1fr; gap: 3rem; }
  .about-stats { grid-template-columns: repeat(4, 1fr); }
  .contact-cta-inner { flex-direction: column; text-align: center; }
  .footer-newsletter-inner { flex-direction: column; align-items: flex-start; }
  .footer-newsletter-form { width: 100%; }
  .footer-newsletter-input { flex: 1; width: auto; }
}

@media (max-width: 768px) {
  .single-hero { height: 55vw; min-height: 360px; }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-split-inner { flex-direction: column; min-height: auto; }
  .hero-text, .hero-image-wrap { width: 100%; }
  .hero-image-wrap { height: 55vw; min-height: 280px; }
  .hero-text { padding: 3rem 1.5rem 2.5rem; }
  .page-header-plain { padding: 7rem 0 2.5rem; }
}

@media (max-width: 640px) {
  .archive-header-navy { padding: 7rem 0 3rem; }
  .archive-title { font-size: 2rem; }
  .single-body { padding: 3rem 1.25rem; }
  .more-stories-section { padding: 3rem 0; }
  .error-404-title { font-size: 2.25rem; }
  .footer-newsletter-form { flex-direction: column; }
  .footer-newsletter-input { border-radius: .5rem; width: 100%; }
  .footer-newsletter-btn { border-radius: .5rem; width: 100%; }
  .stat-number { font-size: 2rem; }
  .contact-cta-heading { font-size: 1.5rem; }
}

/* ============================================================
   V3 FIX – HERO SPLIT DESKTOP LAYOUT
   (PHP templates use hero-split-inner / hero-text / hero-image-wrap
    but these were only defined inside a mobile @media – fixed here)
   ============================================================ */

/* Override the huge margin-top on .hero-title */
.hero-title { margin-top: 1.5rem !important; }

.hero-split-inner {
  display: flex;
  width: 100%;
  height: 100vh;
  min-height: 640px;
}

.hero-text {
  width: 50%;
  background: var(--navy);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5rem;
}

.hero-image-wrap {
  width: 50%;
  position: relative;
  overflow: hidden;
}

.hero-eyebrow {
  font-family: var(--font-sans);
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: .5rem;
}

.hero-subtitle {
  margin-top: 1.5rem;
  font-family: var(--font-sans);
  font-size: 1.125rem;
  color: rgba(255,255,255,.80);
  line-height: 1.7;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.5rem;
}

.btn-hero-primary {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: var(--terracotta);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  border-radius: 9999px;
  white-space: nowrap;
  transition: background .2s, transform .2s, box-shadow .2s;
}

.btn-hero-primary:hover {
  background: var(--terra-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.20);
  color: var(--white);
}

.btn-hero-secondary {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: transparent;
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  border-radius: 9999px;
  border: 2px solid rgba(255,255,255,.45);
  white-space: nowrap;
  transition: background .2s, border-color .2s, transform .2s;
}

.btn-hero-secondary:hover {
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.75);
  transform: translateY(-2px);
  color: var(--white);
}

/* Hero image right column */
.hero-image {
  width: 100%;
  height: 100%;
  position: relative;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-image-placeholder {
  background: linear-gradient(135deg, var(--navy) 0%, #2a3f60 100%);
}

.hero-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.65) 0%, rgba(0,0,0,.10) 60%, transparent 100%);
}

.hero-image-caption {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  right: 2rem;
}

.hero-featured-title {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
  margin-top: .75rem;
  text-shadow: 0 2px 8px rgba(0,0,0,.30);
}

/* ============================================================
   V3 FIX – ARTICLE CARD CLASS ALIASES
   (PHP uses .article-card-image; CSS originally used .article-card-img)
   (PHP uses .article-card-title; CSS originally used .card-title)
   ============================================================ */

.article-card-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--light-bg);
}

.article-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.article-card:hover .article-card-image img { transform: scale(1.05); }

.article-card-title {
  font-family: var(--font-serif);
  font-size: 1.1875rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.4;
  margin-top: .75rem;
  margin-bottom: .5rem;
}

.article-card-title a { color: inherit; transition: color .2s; }

.article-card:hover .article-card-title a { color: var(--terracotta); }

.article-card-meta {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .8125rem;
  color: var(--muted);
  margin-top: auto;
  padding-top: .75rem;
}

/* ============================================================
   V3 FIX – MISC MISSING CLASSES
   ============================================================ */

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.5rem;
}

/* about-text and contact-cta-text are just wrappers — no extra style needed */

/* ============================================================
   V3 RESPONSIVE OVERRIDES (replaces broken mobile rules above)
   ============================================================ */

@media (max-width: 768px) {
  .hero-split-inner { flex-direction: column; height: auto; min-height: auto; }
  .hero-text { width: 100%; padding: 3rem 1.5rem 2.5rem; }
  .hero-image-wrap { width: 100%; height: 55vw; min-height: 280px; }
}
