/*
Theme Name: Bretalon Editorial
Theme URI: https://bretalon.com
Author: PureTensor
Description: Professional dark editorial theme for Bretalon Ltd — geopolitical and financial analysis.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: Proprietary
Tags: dark, editorial, financial, professional
*/

/* ============================================================
   DESIGN SYSTEM — CSS Custom Properties
   ============================================================ */
:root {
  /* Backgrounds */
  --bg-primary:    #0d1420;
  --bg-secondary:  #111827;
  --bg-surface:    #162032;
  --bg-elevated:   #1c2a3e;
  --bg-card:       #192130;
  --bg-overlay:    rgba(13, 20, 32, 0.92);

  /* Brand Colours */
  --gold:          #c9a96e;
  --gold-light:    #e0c48a;
  --gold-dim:      rgba(201, 169, 110, 0.25);
  --gold-subtle:   rgba(201, 169, 110, 0.10);
  --teal:          #00b286;
  --teal-light:    #00c99a;
  --teal-dim:      rgba(0, 178, 134, 0.15);

  /* Text */
  --text-primary:   #e8e3d8;
  --text-secondary: #a8a29a;
  --text-muted:     #6b7280;
  --text-inverse:   #0d1420;

  /* Borders */
  --border:        rgba(201, 169, 110, 0.12);
  --border-strong: rgba(201, 169, 110, 0.25);
  --border-subtle: rgba(255, 255, 255, 0.05);

  /* Typography */
  --font-serif:    'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans:     'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  2rem;
  --space-lg:  4rem;
  --space-xl:  6rem;
  --space-2xl: 9rem;

  /* Layout */
  --container-max: 1200px;
  --container-wide: 1440px;
  --header-h: 76px;

  /* Shadows */
  --shadow-md:  0 4px 16px rgba(0,0,0,0.5);
  --shadow-lg:  0 12px 40px rgba(0,0,0,0.6);

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --duration: 220ms;

  /* Astra compatibility overrides */
  --ast-global-color-0: #00b286;
  --ast-global-color-1: #00c99a;
  --ast-global-color-2: #e8e3d8;
  --ast-global-color-3: #a8a29a;
  --ast-global-color-4: #e8e3d8;
  --ast-global-color-5: #ffffff;
  --ast-global-color-6: rgba(201, 169, 110, 0.2);
  --ast-global-color-7: #0d1420;
  --ast-global-color-8: #a8a29a;
}

/* ============================================================
   GRID BACKGROUND PATTERN (Varangian.ai style)
   ============================================================ */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(201, 185, 122, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 185, 122, 0.035) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 100%);
}

/* Everything inside body needs to sit above the grid */
#site-header,
#site-main,
#site-footer,
main {
  position: relative;
  z-index: 1;
}

/* ============================================================
   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 {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-primary);
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); }
h4 { font-size: 1.3rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 1.2rem;
}

p:last-child { margin-bottom: 0; }

a {
  color: var(--gold);
  text-decoration: none;
  transition: color var(--duration) var(--ease);
}

a:hover { color: var(--gold-light); }

strong, b { color: var(--text-primary); font-weight: 600; }

blockquote {
  border-left: 3px solid var(--gold);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-style: italic;
}

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

ul, ol {
  padding-left: 1.5rem;
  color: var(--text-secondary);
}

ul li, ol li { margin-bottom: 0.4rem; }

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

/* ============================================================
   LAYOUT CONTAINERS
   ============================================================ */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.container--wide {
  max-width: var(--container-wide);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* ============================================================
   LABEL / OVERLINE TEXT
   ============================================================ */
.label-text {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.label-text::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--gold);
  vertical-align: middle;
  margin-right: 10px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 2rem;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  text-decoration: none;
  border: 1px solid transparent;
}

.btn-gold {
  background: var(--gold);
  color: var(--text-inverse);
  border-color: var(--gold);
}

.btn-gold:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--text-inverse);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(201, 169, 110, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}

.btn-outline:hover {
  background: var(--gold);
  color: var(--text-inverse);
  transform: translateY(-1px);
}

/* ============================================================
   SITE HEADER
   ============================================================ */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(13, 20, 32, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--duration) var(--ease);
  /* Needed so absolute-positioned mobile nav is relative to this element */
  overflow: visible;
}

#site-header.scrolled {
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-wide);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo img {
  height: 44px;
  width: auto;
  display: block;
  filter: brightness(1.1);
}

.site-logo-text {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.04em;
}

.site-name {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-left: 0.75rem;
  line-height: 1;
}

.site-name-ltd {
  color: var(--gold);
  font-weight: 400;
}

/* Primary Navigation */
.primary-nav {
  display: flex;
  align-items: center;
}

.primary-nav ul {
  display: flex;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
}

.primary-nav ul li a {
  display: block;
  padding: 0.5rem 1.2rem;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--duration) var(--ease);
  position: relative;
}

.primary-nav ul li a::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 1.2rem;
  right: 1.2rem;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration) var(--ease);
}

.primary-nav ul li a:hover,
.primary-nav ul li.current-menu-item > a,
.primary-nav ul li.current_page_item > a {
  color: var(--text-primary);
}

.primary-nav ul li a:hover::after,
.primary-nav ul li.current-menu-item > a::after,
.primary-nav ul li.current_page_item > a::after {
  transform: scaleX(1);
}

.header-cta {
  margin-left: 1.5rem;
}

/* Mobile hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all var(--duration) var(--ease);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(13, 20, 32, 0.90) 0%,
    rgba(13, 20, 32, 0.65) 55%,
    rgba(13, 20, 32, 0.78) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: calc(var(--header-h) + 6rem) 1.5rem 6rem;
  max-width: 760px;
  margin-left: max(1.5rem, calc((100vw - var(--container-wide)) / 2 + 1.5rem));
}

.hero-label {
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
}

.hero h1 em {
  color: var(--gold);
  font-style: italic;
}

.hero-desc {
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(232, 227, 216, 0.78);
  margin-bottom: 2.5rem;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero-scroll::after {
  content: '';
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header {
  margin-bottom: var(--space-lg);
}

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

.section-header h2 {
  margin-top: 0.8rem;
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.05rem;
  max-width: 600px;
}

.section-header--center p {
  margin-inline: auto;
}

.gold-rule {
  width: 48px;
  height: 2px;
  background: var(--gold);
  display: block;
  margin-bottom: 1rem;
}

.section-header--center .gold-rule {
  margin-inline: auto;
}

/* ============================================================
   SERVICES SECTION
   ============================================================ */
.services-section {
  padding: var(--space-2xl) 0;
  background: var(--bg-secondary);
  position: relative;
}

.services-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.3;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: var(--space-lg);
}

.service-card {
  background: var(--bg-card);
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
  transition: transform var(--duration) var(--ease),
              background var(--duration) var(--ease);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 300ms var(--ease);
}

.service-card:hover {
  background: var(--bg-elevated);
  transform: translateY(-2px);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-img-wrap {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  margin-bottom: 1.5rem;
  background: var(--bg-primary);
}

.service-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease);
  filter: brightness(0.82) saturate(0.75);
}

.service-card:hover .service-img-wrap img {
  transform: scale(1.04);
  filter: brightness(0.9) saturate(0.85);
}

.service-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
  color: var(--text-primary);
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about-section {
  padding: var(--space-2xl) 0;
  background: var(--bg-primary);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}

.about-img-wrap {
  position: relative;
  overflow: hidden;
}

.about-img-wrap img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  filter: brightness(0.78) saturate(0.65);
  display: block;
}

.about-img-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid var(--border);
  z-index: 1;
  pointer-events: none;
}

.about-content h2 {
  margin-top: 0.8rem;
  margin-bottom: 1.5rem;
}

.about-content p {
  font-size: 1rem;
  margin-bottom: 1.2rem;
  color: var(--text-secondary);
}

.about-content .btn {
  margin-top: 0.5rem;
}

/* ============================================================
   WHY CHOOSE SECTION
   ============================================================ */
.why-section {
  padding: var(--space-2xl) 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-top: var(--space-lg);
}

.why-item {
  text-align: center;
  padding: 1.5rem 1rem;
}

.why-icon {
  width: 48px;
  height: 48px;
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--gold);
  font-family: var(--font-serif);
  font-size: 1.3rem;
}

.why-rule {
  width: 32px;
  height: 1px;
  background: var(--gold);
  display: block;
  margin: 0 auto 1.2rem;
}

.why-item h3 {
  font-size: 1.25rem;
  margin-bottom: 0.8rem;
  color: var(--text-primary);
}

.why-item p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  max-width: 280px;
  margin-inline: auto;
}

/* ============================================================
   LATEST ANALYSIS SECTION
   ============================================================ */
.reports-section {
  padding: var(--space-2xl) 0;
  background: var(--bg-primary);
}

.reports-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
  gap: 1rem;
}

.reports-header h2 { margin-bottom: 0; }

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

.report-card {
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  transition: background var(--duration) var(--ease);
}

.report-card:hover {
  background: var(--bg-elevated);
}

.report-card-img {
  width: 100%;
  height: 200px;        /* fixed height — no more blowouts */
  overflow: hidden;
  background: var(--bg-surface);
  flex-shrink: 0;
  position: relative;
}

.report-card-img img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  display: block;
  transition: transform 500ms var(--ease);
  filter: brightness(0.68) saturate(0.6);
}

.report-card:hover .report-card-img img {
  transform: scale(1.05);
  filter: brightness(0.82) saturate(0.7);
}

.report-card-img-placeholder {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--bg-elevated) 0%, var(--bg-surface) 100%);
}

.report-card-body {
  padding: 1.5rem 1.5rem 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.report-meta {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
  flex-wrap: wrap;
}

.report-date {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.report-category {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  border: 1px solid rgba(0,178,134,0.25);
  padding: 0.15rem 0.5rem;
}

.report-card h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-primary);
  margin-bottom: 0.8rem;
  flex: 1;
}

.report-card h3 a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration) var(--ease);
}

.report-card:hover h3 a {
  color: var(--gold-light);
}

.report-excerpt {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 1.2rem;
}

.read-more {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
  transition: gap var(--duration) var(--ease), color var(--duration) var(--ease);
}

.report-card:hover .read-more {
  gap: 0.8rem;
  color: var(--gold-light);
}

.reports-all-link {
  text-align: center;
  margin-top: 3rem;
}

/* ============================================================
   PAGE HERO (interior pages)
   ============================================================ */
.page-hero {
  padding: calc(var(--header-h) + 4rem) 0 4rem;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.35;
}

.page-hero h1 {
  margin-top: 0.8rem;
  font-size: clamp(2rem, 4vw, 3rem);
}

/* ============================================================
   SINGLE POST / ARTICLE
   ============================================================ */
.single-wrap {
  padding-top: var(--header-h);
}

.single-hero {
  position: relative;
  height: 55vh;
  min-height: 400px;
  overflow: hidden;
  background: var(--bg-surface);
}

.single-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5) saturate(0.65);
}

.single-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    rgba(13,20,32,0.97) 0%,
    rgba(13,20,32,0.4) 60%,
    rgba(13,20,32,0.15) 100%);
  display: flex;
  align-items: flex-end;
}

.single-hero-content {
  padding: 3rem 1.5rem;
  max-width: var(--container-max);
  width: 100%;
  margin-inline: auto;
}

.single-hero-content h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.15;
  color: var(--text-primary);
  max-width: 820px;
  margin-top: 0.8rem;
}

.single-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.single-meta-item {
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.article-layout {
  max-width: var(--container-max);
  margin-inline: auto;
  padding: var(--space-lg) 1.5rem;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 4rem;
  align-items: start;
}

.article-content {
  min-width: 0;
}

.article-content p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.article-content h2 {
  font-size: 1.8rem;
  margin-top: 3rem;
  margin-bottom: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.article-content h3 {
  font-size: 1.4rem;
  margin-top: 2rem;
  margin-bottom: 0.8rem;
}

.article-content h2:first-child,
.article-content h3:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.article-content ul,
.article-content ol {
  margin-bottom: 1.5rem;
}

.article-content li {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

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

.article-content figure {
  margin: 2.5rem 0;
}

.article-content figure img {
  width: 100%;
  filter: brightness(0.85);
}

.article-content figcaption {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  font-style: italic;
}

.disclaimer-box {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  padding: 1.5rem;
  margin-top: 3rem;
}

.disclaimer-box h4 {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.8rem;
  font-family: var(--font-sans);
}

.disclaimer-box p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* Sidebar */
.article-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 2rem);
}

.sidebar-widget {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.sidebar-widget h4 {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
  font-family: var(--font-sans);
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--border);
}

.related-post {
  display: flex;
  gap: 0.8rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--border-subtle);
  text-decoration: none;
}

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

.related-post-img {
  width: 64px;
  height: 48px;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--bg-elevated);
}

.related-post-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7);
}

.related-post-title {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.3;
  display: block;
  transition: color var(--duration);
}

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

.related-post-date {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
  display: block;
}

/* ============================================================
   ARCHIVE / REPORTS PAGE
   ============================================================ */
.archive-section {
  padding: var(--space-lg) 0 var(--space-2xl);
}

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

.pagination {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  transition: all var(--duration) var(--ease);
  background: var(--bg-surface);
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
  background: var(--gold);
  color: var(--text-inverse);
  border-color: var(--gold);
}

/* ============================================================
   STATIC PAGE CONTENT
   ============================================================ */
.page-content-wrap {
  padding: var(--space-lg) 0 var(--space-2xl);
}

.page-content-inner {
  max-width: 820px;
}

.page-content-inner h2 {
  font-size: 2rem;
  margin-top: 3rem;
  margin-bottom: 1rem;
}

.page-content-inner h3 {
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 0.8rem;
}

.page-content-inner p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 1.2rem;
}

.page-content-inner ul,
.page-content-inner ol {
  margin-bottom: 1.5rem;
}

.page-content-inner li {
  font-size: 1rem;
  margin-bottom: 0.4rem;
  line-height: 1.7;
}

.page-content-inner .wp-block-image img {
  filter: brightness(0.85);
  margin-bottom: 2rem;
}

/* UAG block overrides for dark theme */
.uagb-heading-text {
  color: var(--text-primary) !important;
  font-family: var(--font-serif) !important;
}

.uagb-desc-text {
  color: var(--text-secondary) !important;
}

.uagb-ifb-title {
  color: var(--text-primary) !important;
  font-family: var(--font-serif) !important;
}

.uagb-ifb-desc {
  color: var(--text-secondary) !important;
}

/* ============================================================
   WPForms overrides
   ============================================================ */
.wpforms-container input,
.wpforms-container textarea,
.wpforms-container select {
  background: var(--bg-surface) !important;
  border: 1px solid var(--border) !important;
  color: var(--text-primary) !important;
  border-radius: 0 !important;
  padding: 0.8rem 1rem !important;
  font-family: var(--font-sans) !important;
  width: 100% !important;
}

.wpforms-container input:focus,
.wpforms-container textarea:focus {
  border-color: var(--gold) !important;
  outline: none !important;
  box-shadow: none !important;
}

.wpforms-container label {
  color: var(--text-secondary) !important;
  font-size: 0.82rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
}

.wpforms-container .wpforms-submit {
  background: var(--gold) !important;
  color: var(--text-inverse) !important;
  border: 1px solid var(--gold) !important;
  border-radius: 0 !important;
  padding: 0.8rem 2rem !important;
  font-family: var(--font-sans) !important;
  font-size: 0.82rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  transition: all var(--duration) !important;
}

.wpforms-container .wpforms-submit:hover {
  background: var(--gold-light) !important;
  border-color: var(--gold-light) !important;
}

/* ============================================================
   SITE FOOTER
   ============================================================ */
#site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
}

.footer-top {
  padding: var(--space-xl) 0 var(--space-lg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 4rem;
}

.footer-brand .site-logo {
  margin-bottom: 1.2rem;
}

.footer-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 280px;
  margin: 0;
}

.footer-col-title {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--border);
}

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

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links li a {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--duration) var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-links li a::before {
  content: '–';
  color: var(--border-strong);
  font-size: 0.7rem;
  flex-shrink: 0;
}

.footer-links li a:hover {
  color: var(--gold);
}

.footer-address {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
  font-style: normal;
  margin: 0;
}

.footer-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  transition: color var(--duration);
}

.footer-contact-link:hover { color: var(--gold-light); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
}

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

.footer-copyright {
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin: 0;
}

.footer-tagline {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ============================================================
   EMPTY STATES
   ============================================================ */
.no-posts {
  text-align: center;
  padding: var(--space-xl) 0;
}

.no-posts h2 {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .services-grid,
  .why-grid,
  .reports-grid,
  .archive-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .article-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .article-sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: 64px;
    --space-2xl: 5rem;
    --space-xl: 4rem;
    --space-lg: 3rem;
  }

  /* ---- Mobile nav: Varangian-style dropdown below header ---- */
  .primary-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(9, 9, 11, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 1.5rem 1.5rem 2rem;
    border-bottom: 1px solid var(--border);
    z-index: 999;
  }

  .primary-nav.is-open {
    display: flex;
  }

  .primary-nav ul {
    flex-direction: column;
    width: 100%;
    gap: 0;
  }

  .primary-nav ul li a {
    padding: 0.9rem 0;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--border);
    display: block;
  }

  .primary-nav ul li a::after {
    display: none;
  }

  .header-cta {
    margin-left: 0;
    margin-top: 1.25rem;
    align-self: flex-start;
  }

  .nav-toggle {
    display: flex;
  }

  /* Hamburger → X animation when open */
  .nav-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }

  .nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* ---- Layout adjustments ---- */
  .services-grid,
  .why-grid,
  .reports-grid,
  .archive-grid {
    grid-template-columns: 1fr;
  }

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

  .about-img-wrap img {
    height: 280px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-brand { grid-column: auto; }

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

  .hero-content {
    margin-left: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2.2rem; }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
}

/* Print */
@media print {
  #site-header, #site-footer, .article-sidebar { display: none; }
  body { background: #fff; color: #000; }
}

/* ============================================================
   ASTRA / UAG DARK THEME OVERRIDES
   UAG generates CSS with background-color: var(--ast-global-color-4)
   on container blocks. We force all UAG containers transparent so
   the dark page background shows through.
   ============================================================ */

/* Nuclear reset: all UAG containers are transparent backgrounds */
.wp-block-uagb-container,
.wp-block-uagb-container.uagb-is-root-container {
  background-color: transparent !important;
  background-image: none !important;
}

/* Keep inner wrap transparent too */
.uagb-container-inner-blocks-wrap {
  background-color: transparent !important;
}

/* Any WordPress block using ast-global-color-4 as background → dark surface */
.has-ast-global-color-4-background-color {
  background-color: var(--bg-surface) !important;
}

/* Text that uses ast-global-color-4 → keep it light (cream) */
.has-ast-global-color-4-color,
.has-ast-global-color-4-color p,
.has-ast-global-color-4-color a {
  color: var(--text-primary) !important;
}

/* Ensure the entry-content / page content area stays dark */
.entry-content,
.page-content-inner {
  background-color: transparent !important;
  color: var(--text-secondary);
}

/* All Gutenberg block wrappers on pages */
.wp-block-group,
.wp-block-cover,
.wp-block-columns {
  background-color: transparent !important;
}

/* UAG Info box */
.uagb-infobox__content-wrap {
  background-color: transparent !important;
}

/* Paragraphs inside UAG blocks inherit dark theme text */
.wp-block-uagb-container p,
.wp-block-uagb-container li,
.wp-block-uagb-container span {
  color: var(--text-secondary);
}

/* Separator/rule colours */
.uagb-separator {
  border-color: var(--gold) !important;
}
