/* ============================================================
   GLOBAL VARIABLES & CORE RESET
   ============================================================ */

:root {
  --site-width: 1200px;

  /* 1. CLEAN LIGHT TECH BACKGROUNDS */
  --bg-site: #ffffff;          /* Pure white */
  --bg-card: #f9fafb;          /* Neutral light gray */
  --bg-footer: #0b0b0b;        /* True near-black footer */

  /* 2. HIGH CONTRAST LIGHT MODE TYPOGRAPHY */
  --text-main: #0a0a0a;        /* Near-black (stronger than navy) */
  --text-muted: #4b5563;       /* Neutral gray (very readable) */
  --text-invert: #ffffff;      /* White for dark surfaces */

  /* 3. MODERN TECH ACCENTS (NO BLUE) */
  --color-primary: #f97316;    /* Burnt orange (primary action) */
  --color-secondary: #22c55e;  /* Signal green (success / confirm) */

  /* 4. UI SHARPNESS */
  --border-subtle: #e5e7eb;    /* Neutral border */
  --radius-pro: 4px;           /* Sharp hardware edges */
}



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

body {
  margin: 0;
  background-color: var(--bg-site);
  color: var(--text-main);
  font-family: -apple-system, system-ui, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ============================================================
   LAYOUT CONSTRAINTS (FIXES SITE STRETCHING)
   ============================================================ */
.content-width.brxe-container,
.brxw-header-02__inner.brxe-container,
.footer-inner.brxe-container {
  max-width: var(--site-width) !important;
  margin-inline: auto !important;
  width: 100% !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
}

/* ============================================================
   HEADER - FIXED UX & HORIZONTAL SPACING
   ============================================================ */
#brx-header {
  background: var(--bg-card) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.brxe-nav-menu .bricks-nav-menu {
  display: flex !important;
  flex-direction: row !important;
  gap: 32px !important;
}

.brxe-nav-menu .bricks-nav-menu > li > a {
  font-size: 14px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  color: var(--text-main) !important;
  transition: color 0.2s ease !important;
}

.brxe-nav-menu .bricks-nav-menu > li > a:hover {
  color: var(--color-primary) !important;
}

/* ============================================================
   HERO EDITORIAL REFINEMENTS (FINAL PASS)
   ============================================================ */

/* Tighten Hero vertical rhythm per report */
.home-hero {
  padding-top: 56px !important;    /* Reduced from 64px */
  padding-bottom: 56px !important; /* Reduced from 64px */
  background-color: #eef2f7 !important;
  border-radius: 16px;
}

/* Hero Content constraint for better readability */
.home-hero__copy {
  max-width: 560px !important;
}

/* Refined Meta Data Byline */
.brxe-post-meta {
  font-size: 12px !important;
  font-weight: 500 !important;
  opacity: 0.85 !important;       /* Subtle separation from title */
  margin-bottom: 12px !important; /* Increased from 8px */
  color: var(--text-muted) !important;
}

/* Button Opacity Hierarchy */
.hero-btn--ghost {
  opacity: 0.85 !important;
}

/* ============================================================
   EDITORIAL GRID - CARD REFINEMENTS
   ============================================================ */
.post-grid-main {
  display: grid !important;
  grid-template-columns: repeat(6, 1fr) !important;
  gap: 32px !important;
  padding-top: 48px !important;
}

.post-card-item {
  grid-column: span 2 !important;
}

/* Give cards more editorial authority per report */
.post-card-item h3 {
  font-weight: 700 !important;        /* Increased weight */
  letter-spacing: -0.01em !important; /* Tighter line for authority */
  line-height: 1.3 !important;
}

/* Alternate Hierarchy: Every 1st and 5th card becomes "Large" */
.post-card-item:nth-child(5n + 1) {
  grid-column: span 4 !important;
}

/* ============================================================
   FOOTER - STABLE VERSION
   ============================================================ */
#brx-footer {
  background-color: var(--bg-footer) !important;
  color: var(--text-invert) !important;
  margin-top: auto;
  padding: 0 !important;
}

.footer-inner {
  display: grid !important;
  grid-template-columns: 1.4fr 1fr 0.8fr !important;
  gap: 48px !important;
  padding-top: 60px !important;
  padding-bottom: 60px !important;
}

.footer-inner h3, .footer-inner h4 {
  color: #ffffff !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
}

.footer-inner nav, .footer-inner .bricks-nav-menu {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}

.footer-inner a, .footer-inner .bricks-nav-menu > li > a {
  color: var(--text-invert) !important;
  text-decoration: none !important;
  display: block !important;
}

.footer-legal { text-align: right !important; }

/* ============================================================
   MOBILE FIXES
   ============================================================ */
@media (max-width: 900px) {
  .footer-inner.brxe-container { grid-template-columns: 1fr !important; text-align: center !important; }
  .footer-col, .footer-legal { align-items: center !important; text-align: center !important; }
  .post-card-item, .post-card-item:nth-child(5n + 1) { grid-column: span 6 !important; }
}