/*
Theme Name: Sporana
Theme URI: https://sporana.com
Author: Sporana
Author URI: https://sporana.com
Description: Official Sporana corporate theme — supply chain consulting, Asia Pacific.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sporana
Tags: corporate, consulting, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  --white:       #ffffff;
  --off-white:   #f8f7f5;
  --paper:       #f2f0ec;
  --light:       #e9e6e0;
  --mid-grey:    #d0ccc5;
  --cool:        #9ba5ae;
  --text:        #1a1a1a;
  --text-sub:    #4a4a4a;
  --muted:       #7a7a7a;
  --accent:      #1a3a5c;
  --accent-hover:#0f2540;
  --gold:        #b08d57;
  --gold-light:  rgba(176,141,87,0.1);
  --line:        rgba(26,58,92,0.1);
  --line-light:  rgba(26,58,92,0.06);

  --font-serif:  'Libre Baskerville', Georgia, serif;
  --font-sans:   'Figtree', system-ui, sans-serif;

  --nav-height:  72px;
  --max-width:   1280px;
  --gutter:      64px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--white);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

ul, ol { list-style: none; }

/* ============================================================
   TYPOGRAPHY SCALE
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.15;
  color: var(--accent);
}

h1 { font-size: clamp(40px, 5vw, 68px); }
h2 { font-size: clamp(30px, 3.5vw, 48px); }
h3 { font-size: clamp(20px, 2vw, 28px); }
h4 { font-family: var(--font-sans); font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
h5 { font-family: var(--font-sans); font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }

p { line-height: 1.85; color: var(--text-sub); }

em, i { font-style: italic; color: var(--gold); }

strong { font-weight: 700; color: var(--accent); }

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section-pad {
  padding: 100px var(--gutter);
}

.section-pad-sm {
  padding: 64px var(--gutter);
}

/* ============================================================
   SECTION TAG (gold label above headings)
   ============================================================ */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.section-tag::before {
  content: '';
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--gold);
  flex-shrink: 0;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  padding: 15px 36px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.25s;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--white);
}

.btn-ghost {
  display: inline-block;
  background: transparent;
  color: var(--accent);
  padding: 14px 34px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1.5px solid var(--accent);
  transition: all 0.25s;
  cursor: pointer;
}

.btn-ghost:hover {
  background: var(--accent);
  color: var(--white);
}

.btn-text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--mid-grey);
  padding-bottom: 2px;
  transition: color 0.25s, border-color 0.25s;
}

.btn-text:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ============================================================
   SITE HEADER / NAV
   ============================================================ */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gutter);
  height: var(--nav-height);
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 24px rgba(26,58,92,0.05);
  transition: box-shadow 0.3s;
}

.site-logo {
  font-family: var(--font-sans);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
}

.site-logo span {
  color: var(--gold);
}

/* Primary nav */
#primary-menu {
  display: flex;
  align-items: center;
  gap: 36px;
}

#primary-menu li { position: relative; }

#primary-menu a {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-sub);
  text-decoration: none;
  transition: color 0.25s;
  padding-bottom: 4px;
  position: relative;
}

#primary-menu a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.3s;
}

#primary-menu a:hover,
#primary-menu .current-menu-item > a,
#primary-menu .current-page-ancestor > a {
  color: var(--accent);
}

#primary-menu a:hover::after,
#primary-menu .current-menu-item > a::after {
  width: 100%;
}

/* CTA button in nav */
#primary-menu .menu-cta a {
  background: var(--accent);
  color: var(--white) !important;
  padding: 10px 22px;
  font-size: 11px;
  letter-spacing: 0.1em;
  transition: background 0.25s !important;
}

#primary-menu .menu-cta a::after { display: none; }

#primary-menu .menu-cta a:hover {
  background: var(--accent-hover) !important;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--accent);
}

.menu-toggle .bar {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--accent);
  margin: 5px 0;
  transition: all 0.3s;
}

/* ============================================================
   PAGE OFFSET (for fixed nav)
   ============================================================ */
.page-content-wrap {
  margin-top: var(--nav-height);
}

/* ============================================================
   PAGE HERO (used on static pages like About, Contact)
   ============================================================ */
.page-hero {
  background: var(--off-white);
  padding: 80px var(--gutter) 72px;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line-light) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-light) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.7;
}

.page-hero::after {
  content: '';
  position: absolute; right: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--gold);
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.page-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}

.page-breadcrumb a { color: var(--gold); text-decoration: none; }
.page-breadcrumb .sep { opacity: 0.4; }

.page-hero h1 {
  font-size: clamp(40px, 5vw, 64px);
  color: var(--accent);
  margin-bottom: 20px;
}

.page-hero .hero-desc {
  font-size: 16px;
  line-height: 1.85;
  color: var(--text-sub);
  max-width: 580px;
}

/* ============================================================
   INSIGHTS ARCHIVE (blog listing)
   ============================================================ */
.insights-archive {
  padding: 80px var(--gutter) 100px;
}

/* Filter bar */
.insights-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 56px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.filter-btn {
  background: none;
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 18px;
  cursor: pointer;
  transition: all 0.25s;
}

.filter-btn:hover,
.filter-btn.active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--off-white);
}

/* Articles grid */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--line);
}

/* Featured article (first post, full width) */
.article-card-featured {
  grid-column: 1 / -1;
  background: var(--white);
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 420px;
  transition: background 0.25s;
}

.article-card-featured:hover {
  background: var(--off-white);
}

.article-card-featured .card-image {
  overflow: hidden;
  background: var(--paper);
}

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

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

.article-card-featured .card-body {
  padding: 56px 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Standard article card */
.article-card {
  background: var(--white);
  display: flex;
  flex-direction: column;
  transition: background 0.25s;
  position: relative;
}

.article-card::after {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--gold);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.3s;
}

.article-card:hover {
  background: var(--off-white);
}

.article-card:hover::after {
  transform: scaleY(1);
}

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

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

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

.card-no-image {
  background: var(--paper);
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mid-grey);
  font-size: 32px;
}

.article-card .card-body {
  padding: 36px 36px 40px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Card meta */
.card-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.card-category {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-light);
  padding: 4px 10px;
  border: 1px solid rgba(176,141,87,0.2);
}

.card-date {
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
}

.card-read-time {
  font-size: 11px;
  color: var(--cool);
}

/* Card heading */
.card-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--accent);
  margin-bottom: 12px;
  text-decoration: none;
  transition: color 0.25s;
}

.article-card-featured .card-title {
  font-size: 28px;
}

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

.card-excerpt {
  font-size: 13px;
  line-height: 1.85;
  color: var(--text-sub);
  margin-bottom: 28px;
  flex: 1;
}

.card-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.card-author img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.card-author-info {
  display: flex;
  flex-direction: column;
}

.card-author-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
}

.card-author-role {
  font-size: 11px;
  color: var(--muted);
}

/* Read more link on card */
.card-read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  transition: color 0.25s, gap 0.25s;
}

.card-read-more::after { content: '→'; }

.card-read-more:hover {
  color: var(--gold);
  gap: 12px;
}

/* Pagination */
.insights-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 72px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
}

.insights-pagination a,
.insights-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  border: 1px solid var(--line);
  text-decoration: none;
  transition: all 0.25s;
}

.insights-pagination a:hover,
.insights-pagination .current {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--off-white);
}

.insights-pagination .current {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

/* ============================================================
   SINGLE ARTICLE
   ============================================================ */
.single-article {
  padding-bottom: 100px;
}

.article-hero {
  background: var(--off-white);
  padding: 72px var(--gutter) 64px;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.article-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line-light) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-light) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.6;
}

.article-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 860px;
}

.article-category-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-light);
  border: 1px solid rgba(176,141,87,0.25);
  padding: 5px 12px;
  margin-bottom: 20px;
}

.article-hero h1 {
  font-size: clamp(32px, 4vw, 56px);
  color: var(--accent);
  margin-bottom: 20px;
  max-width: 760px;
}

.article-hero-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.article-hero-meta .meta-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.article-hero-meta .meta-author img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.meta-author-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}

.meta-date,
.meta-read-time {
  font-size: 12px;
  color: var(--muted);
}

.meta-sep {
  width: 1px;
  height: 20px;
  background: var(--line);
}

/* Featured image */
.article-featured-image {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  display: block;
}

/* Article content layout */
.article-body-wrap {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 64px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 64px var(--gutter) 0;
  align-items: start;
}

/* Article content typography */
.article-content {
  max-width: 720px;
}

.article-content p {
  font-size: 16px;
  line-height: 1.9;
  color: var(--text-sub);
  margin-bottom: 28px;
}

.article-content h2 {
  font-size: 28px;
  color: var(--accent);
  margin: 52px 0 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.article-content h3 {
  font-size: 20px;
  color: var(--accent);
  margin: 36px 0 16px;
}

.article-content ul,
.article-content ol {
  margin: 0 0 28px 20px;
}

.article-content li {
  font-size: 15px;
  line-height: 1.85;
  color: var(--text-sub);
  margin-bottom: 8px;
  list-style: disc;
}

.article-content ol li {
  list-style: decimal;
}

.article-content blockquote {
  font-family: var(--font-serif);
  font-size: 20px;
  font-style: italic;
  line-height: 1.75;
  color: var(--accent);
  border-left: 3px solid var(--gold);
  padding: 4px 0 4px 28px;
  margin: 40px 0;
}

.article-content blockquote cite {
  display: block;
  margin-top: 12px;
  font-size: 12px;
  font-style: normal;
  font-family: var(--font-sans);
  color: var(--muted);
  letter-spacing: 0.1em;
}

.article-content a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.article-content a:hover {
  color: var(--accent);
}

.article-content img {
  width: 100%;
  height: auto;
  margin: 36px 0;
}

.article-content figure {
  margin: 36px 0;
}

.article-content figcaption {
  font-size: 12px;
  color: var(--muted);
  margin-top: 10px;
  font-style: italic;
  text-align: center;
}

.article-content hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 48px 0;
}

/* Article tags */
.article-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 52px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}

.article-tags .tag-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 4px;
}

.article-tags a {
  font-size: 11px;
  font-weight: 500;
  border: 1px solid var(--line);
  padding: 6px 14px;
  color: var(--muted);
  background: var(--off-white);
  transition: all 0.25s;
}

.article-tags a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Article share */
.article-share {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 12px;
}

.share-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  color: var(--muted);
  transition: all 0.25s;
  background: var(--off-white);
}

.share-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--white);
}

/* Article sidebar */
.article-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + 32px);
}

.sidebar-widget {
  padding: 28px;
  border: 1px solid var(--line);
  background: var(--off-white);
  margin-bottom: 24px;
}

.sidebar-widget-title {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

/* Related posts in sidebar */
.sidebar-related-post {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: opacity 0.25s;
}

.sidebar-related-post:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.sidebar-related-post:hover { opacity: 0.7; }

.sidebar-related-cat {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.sidebar-related-title {
  font-family: var(--font-serif);
  font-size: 14px;
  line-height: 1.4;
  color: var(--accent);
}

.sidebar-related-date {
  font-size: 11px;
  color: var(--muted);
}

/* Table of contents */
.toc-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.toc-list li {
  border-bottom: 1px solid var(--line);
}

.toc-list li:last-child { border-bottom: none; }

.toc-list a {
  display: block;
  font-size: 13px;
  color: var(--text-sub);
  padding: 10px 0;
  text-decoration: none;
  transition: color 0.2s, padding-left 0.2s;
}

.toc-list a:hover {
  color: var(--accent);
  padding-left: 6px;
}

/* ============================================================
   RELATED ARTICLES (below single post)
   ============================================================ */
.related-articles {
  background: var(--off-white);
  padding: 80px var(--gutter);
  border-top: 1px solid var(--line);
}

.related-articles h2 {
  font-size: 30px;
  margin-bottom: 40px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--line);
}

/* ============================================================
   NEWSLETTER BAND
   ============================================================ */
.newsletter-band {
  background: var(--accent);
  padding: 72px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.newsletter-text h3 {
  font-family: var(--font-serif);
  font-size: 26px;
  color: var(--white);
  margin-bottom: 8px;
}

.newsletter-text p {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  max-width: 480px;
}

.newsletter-form {
  display: flex;
  gap: 0;
  flex-shrink: 0;
}

.newsletter-form input[type="email"] {
  width: 300px;
  padding: 14px 20px;
  font-family: var(--font-sans);
  font-size: 13px;
  border: 1.5px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
  color: var(--white);
  outline: none;
  transition: border-color 0.25s;
}

.newsletter-form input[type="email"]::placeholder {
  color: rgba(255,255,255,0.4);
}

.newsletter-form input[type="email"]:focus {
  border-color: var(--gold);
}

.newsletter-form button {
  background: var(--gold);
  color: var(--white);
  border: none;
  padding: 14px 28px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s;
  white-space: nowrap;
}

.newsletter-form button:hover {
  background: #9a7a48;
}

/* ============================================================
   SITE FOOTER
   ============================================================ */
#site-footer {
  background: var(--accent);
  padding: 60px var(--gutter);
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 48px;
}

.footer-logo {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  display: block;
  margin-bottom: 12px;
}

.footer-logo span { color: var(--gold); }

.footer-tagline {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  line-height: 1.7;
  max-width: 360px;
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 20px;
}

#footer-menu {
  display: flex;
  gap: 32px;
}

#footer-menu a {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  transition: color 0.25s;
}

#footer-menu a:hover { color: var(--gold); }

.footer-copy {
  font-size: 11px;
  color: rgba(255,255,255,0.25);
}

/* ============================================================
   STANDARD PAGE CONTENT
   ============================================================ */
.page-body {
  max-width: 820px;
  margin: 0 auto;
  padding: 72px var(--gutter) 100px;
}

.page-body p {
  font-size: 16px;
  line-height: 1.9;
  margin-bottom: 24px;
}

/* ============================================================
   COMMENTS
   ============================================================ */
.comments-area {
  max-width: 720px;
  padding: 52px 0 0;
  border-top: 1px solid var(--line);
  margin-top: 52px;
}

.comments-title {
  font-size: 22px;
  color: var(--accent);
  margin-bottom: 32px;
}

.comment-list li {
  list-style: none;
  margin-bottom: 32px;
}

.comment-body {
  background: var(--off-white);
  border: 1px solid var(--line);
  padding: 24px 28px;
}

.comment-author {
  font-weight: 700;
  font-size: 14px;
  color: var(--accent);
  margin-bottom: 4px;
}

.comment-meta {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 12px;
}

.comment-content p {
  font-size: 14px;
  line-height: 1.8;
}

/* Comment form */
.comment-respond {
  margin-top: 48px;
}

.comment-reply-title {
  font-size: 22px;
  color: var(--accent);
  margin-bottom: 28px;
}

.comment-form label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
  margin-top: 20px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-sans);
  font-size: 14px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--text);
  outline: none;
  transition: border-color 0.25s;
  resize: vertical;
}

.comment-form input:focus,
.comment-form textarea:focus {
  border-color: var(--accent);
}

.comment-form .submit {
  margin-top: 24px;
}

/* ============================================================
   SEARCH FORM
   ============================================================ */
.search-form {
  display: flex;
  gap: 0;
  max-width: 480px;
}

.search-form input[type="search"] {
  flex: 1;
  padding: 12px 18px;
  font-family: var(--font-sans);
  font-size: 14px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--text);
  outline: none;
  transition: border-color 0.25s;
}

.search-form input:focus {
  border-color: var(--accent);
}

.search-form button {
  background: var(--accent);
  color: var(--white);
  border: none;
  padding: 12px 20px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s;
}

.search-form button:hover {
  background: var(--accent-hover);
}

/* ============================================================
   WORDPRESS ALIGNMENT CLASSES
   ============================================================ */
.alignnone { margin: 5px 20px 20px 0; }
.aligncenter { display: block; margin: 0 auto 20px; }
.alignright { float: right; margin: 5px 0 20px 20px; }
.alignleft { float: left; margin: 5px 20px 20px 0; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  :root { --gutter: 40px; }

  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .article-card-featured {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .article-card-featured .card-image {
    aspect-ratio: 16/7;
  }

  .article-body-wrap {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .article-sidebar {
    position: static;
  }

  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .newsletter-band {
    flex-direction: column;
    text-align: center;
    gap: 32px;
  }

  .newsletter-form {
    width: 100%;
    max-width: 480px;
    flex-direction: row;
  }

  .newsletter-form input[type="email"] {
    width: 100%;
    flex: 1;
  }
}

@media (max-width: 768px) {
  :root {
    --gutter: 24px;
    --nav-height: 64px;
  }

  #primary-menu {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px var(--gutter) 32px;
    border-bottom: 1px solid var(--line);
    gap: 4px;
    box-shadow: 0 8px 32px rgba(26,58,92,0.1);
  }

  #primary-menu.is-open {
    display: flex;
  }

  #primary-menu a {
    padding: 12px 0;
    font-size: 14px;
    width: 100%;
    border-bottom: 1px solid var(--line-light);
  }

  #primary-menu .menu-cta a {
    margin-top: 12px;
    padding: 14px 24px;
    text-align: center;
  }

  .menu-toggle { display: block; }

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

  .page-hero-inner h1 { font-size: 36px; }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-right {
    align-items: flex-start;
  }

  #footer-menu {
    flex-wrap: wrap;
    gap: 16px;
  }

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

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form input[type="email"] {
    width: 100%;
  }
}
