/*
Theme Name: Légi-Mauritanie
Theme URI: https://legimauritanie.com
Author: Abdellahi
Author URI: https://legimauritanie.com
Description: Portail juridique et fiscal officiel de Mauritanie — Textes législatifs, réglementations fiscales, et ressources juridiques.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
License: Private
Text Domain: legimauritanie
Tags: legal, government, french, mauritania, right-to-left
*/

/* =============================================
   DESIGN SYSTEM — LÉGI-MAURITANIE
   Aesthetic: Institutional Elegance
   Deep navy authority + gold prestige + cream serenity
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,600&family=Source+Sans+3:wght@300;400;500;600&display=swap');

:root {
  /* Color Palette */
  --navy:       #0A1628;
  --navy-mid:   #122040;
  --navy-light: #1A3060;
  --gold:       #B8973E;
  --gold-light: #D4AE5A;
  --gold-pale:  #F0E0A8;
  --cream:      #F7F3EC;
  --cream-dark: #EDE7D9;
  --white:      #FFFFFF;
  --text-dark:  #1C1C2E;
  --text-mid:   #3A3A52;
  --text-light: #6B6B85;
  --border:     #D8D0C0;
  --red-accent: #8B1A1A;

  /* Typography */
  --font-serif:  'Cormorant Garamond', Georgia, serif;
  --font-sans:   'Source Sans 3', 'Segoe UI', sans-serif;

  /* Spacing */
  --max-width: 1280px;
  --section-pad: 80px;
  --card-radius: 4px;

  /* Shadows */
  --shadow-sm: 0 1px 4px rgba(10,22,40,0.08);
  --shadow-md: 0 4px 20px rgba(10,22,40,0.12);
  --shadow-lg: 0 12px 48px rgba(10,22,40,0.18);

  /* Transitions */
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: var(--font-sans);
  color: var(--text-dark);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  direction: ltr;
  text-align: left;
}

a { color: var(--navy-light); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold); }

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

h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-serif);
  color: var(--navy);
  line-height: 1.25;
  font-weight: 600;
}

p { margin-bottom: 1.2em; }

ul, ol { padding-left: 1.5em; margin-bottom: 1em; }

/* ---- Layout ---- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

.site-main {
  min-height: 60vh;
  padding: 60px 0;
}

/* ---- Utility ---- */
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); }
.text-gold { color: var(--gold); }
.text-navy { color: var(--navy); }
.badge {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 2px;
}
.section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gold);
  opacity: 0.3;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--navy);
  box-shadow: 0 2px 24px rgba(0,0,0,0.25);
}

/* Top bar — hidden (removed from template) */
.header-topbar { display: none; }

/* Main header row */
.header-main {
  padding: 18px 0;
}
.header-main .container {
  display: flex;
  align-items: center;
  gap: 32px;
}

/* Logo */
.site-branding {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-emblem {
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -1px;
  box-shadow: 0 0 0 2px rgba(184,151,62,0.3);
}
.branding-text { line-height: 1.2; }
.site-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.02em;
}
.site-title span { color: var(--gold); }
.site-tagline {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}

/* Header search */
.header-search {
  flex: 1;
  max-width: 420px;
  margin-left: auto;
}
.header-search form {
  display: flex;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 3px;
  overflow: hidden;
  transition: border-color var(--transition);
}
.header-search form:focus-within { border-color: var(--gold); }
.header-search input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  padding: 9px 16px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--white);
}
.header-search input::placeholder { color: rgba(255,255,255,0.4); }
.header-search button {
  background: var(--gold);
  border: none;
  padding: 9px 14px;
  cursor: pointer;
  color: var(--navy);
  font-size: 0.9rem;
  transition: background var(--transition);
}
.header-search button:hover { background: var(--gold-light); }

/* ============================================
   NAVIGATION
   ============================================ */
.main-navigation {
  background: var(--navy-mid);
  border-top: 1px solid rgba(184,151,62,0.15);
}
.main-navigation .container { position: relative; }

.main-navigation ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: stretch;
}

.main-navigation > div > ul > li {
  position: relative;
}

.main-navigation > div > ul > li > a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 14px 18px;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  border-bottom: 2px solid transparent;
  transition: all var(--transition);
}

.main-navigation > div > ul > li > a:hover,
.main-navigation > div > ul > li.current-menu-item > a,
.main-navigation > div > ul > li.current-menu-ancestor > a {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* Dropdown */
.main-navigation ul ul {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--navy);
  min-width: 240px;
  border-top: 2px solid var(--gold);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition);
  flex-direction: column;
  z-index: 200;
}
.main-navigation ul li:hover > ul {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.main-navigation ul ul li a {
  display: block;
  padding: 11px 20px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: all var(--transition);
}
.main-navigation ul ul li a:hover {
  background: rgba(184,151,62,0.12);
  color: var(--gold);
  padding-left: 28px;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--white);
  padding: 8px 14px;
  border-radius: 3px;
  font-size: 1.1rem;
  cursor: pointer;
}

/* ============================================
   HERO — FRONT PAGE
   ============================================ */
.site-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 60%, #1e3d6e 100%);
  position: relative;
  overflow: hidden;
  padding: 90px 0 80px;
}
.site-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 80% 50%, rgba(184,151,62,0.08) 0%, transparent 60%),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 40px,
      rgba(255,255,255,0.015) 40px,
      rgba(255,255,255,0.015) 41px
    );
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  text-align: left;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}
.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--gold);
}
.site-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1.18;
  margin-bottom: 24px;
}
.site-hero h1 em {
  font-style: italic;
  color: var(--gold-light);
}
.hero-lead {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.65);
  max-width: 560px;
  margin-bottom: 40px;
  line-height: 1.8;
  text-align: left;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--card-radius);
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
}
.btn-primary {
  background: var(--gold);
  color: var(--navy);
}
.btn-primary:hover {
  background: var(--gold-light);
  color: var(--navy);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(184,151,62,0.35);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.4);
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.btn-sm { padding: 8px 18px; font-size: 0.78rem; }

/* Hero stats */
.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.1);
  position: relative;
  z-index: 1;
}
.stat-item {}
.stat-number {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
}
.stat-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}

/* ============================================
   QUICK ACCESS CATEGORIES
   ============================================ */
.quick-access {
  background: var(--white);
  padding: 64px 0;
  border-bottom: 1px solid var(--border);
}
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 40px;
}
.section-header h2 {
  font-size: 2rem;
  font-weight: 400;
}
.section-header .see-all {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy-light);
  display: flex;
  align-items: center;
  gap: 6px;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.category-card {
  background: var(--white);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
  cursor: pointer;
  text-decoration: none;
}
.category-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform var(--transition);
}
.category-card:hover { background: var(--cream); }
.category-card:hover::before { transform: scaleX(1); }
.category-card:hover .cat-icon { background: var(--navy); color: var(--gold); }

.cat-icon {
  width: 44px;
  height: 44px;
  background: var(--cream-dark);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  transition: all var(--transition);
  color: var(--navy);
}
.cat-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.3;
}
.cat-count {
  font-size: 0.75rem;
  color: var(--text-light);
}
.cat-arrow {
  margin-top: auto;
  font-size: 0.8rem;
  color: var(--gold);
  font-weight: 600;
}

/* ============================================
   FEATURED ARTICLES
   ============================================ */
.featured-section {
  padding: var(--section-pad) 0;
  background: var(--cream);
}

.posts-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 28px;
}

/* Featured (large) post card */
.post-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
}
.post-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.post-card-image {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--cream-dark);
}
.post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.post-card:hover .post-card-image img { transform: scale(1.04); }

.post-card-body { padding: 28px; flex: 1; display: flex; flex-direction: column; }
.post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.post-category {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 3px 9px;
  background: rgba(184,151,62,0.1);
  border-radius: 2px;
}
.post-date {
  font-size: 0.75rem;
  color: var(--text-light);
}
.post-card h3 {
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 12px;
  color: var(--navy);
}
.post-card h3 a { color: inherit; }
.post-card h3 a:hover { color: var(--navy-light); }
.post-excerpt {
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.7;
  flex: 1;
}
.post-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--cream-dark);
}
.read-more {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy-light);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--transition);
}
.read-more:hover { gap: 10px; color: var(--gold); }
.lock-icon { color: var(--red-accent); font-size: 0.8rem; }

/* Side posts list */
.posts-sidebar { display: flex; flex-direction: column; gap: 0; }
.post-list-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: 20px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  text-decoration: none;
  transition: all var(--transition);
  margin-bottom: 12px;
}
.post-list-item:hover { box-shadow: var(--shadow-sm); border-color: var(--gold); }
.list-post-num {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 300;
  color: var(--cream-dark);
  line-height: 1;
  flex-shrink: 0;
  width: 32px;
}
.list-post-content {}
.list-post-cat {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 5px;
}
.list-post-title {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.35;
  margin-bottom: 6px;
}
.list-post-date { font-size: 0.72rem; color: var(--text-light); }

/* ============================================
   CONTENT + SIDEBAR LAYOUT
   ============================================ */
.content-area {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 60px 32px;
}

/* ---- Sidebar ---- */
.widget-area {}
.widget {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  overflow: hidden;
  margin-bottom: 28px;
}
.widget-title {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--navy);
  padding: 12px 20px;
  margin: 0;
  border-left: 3px solid var(--gold);
}
.widget-body { padding: 20px; }

.widget-search form {
  display: flex;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
}
.widget-search input {
  flex: 1;
  border: none;
  outline: none;
  padding: 9px 14px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
}
.widget-search button {
  background: var(--navy);
  border: none;
  color: var(--gold);
  padding: 9px 14px;
  cursor: pointer;
}

.widget ul { list-style: none; padding: 0; margin: 0; }
.widget ul li {
  border-bottom: 1px solid var(--cream-dark);
  padding: 10px 0;
}
.widget ul li:last-child { border-bottom: none; }
.widget ul li a {
  font-size: 0.85rem;
  color: var(--text-mid);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.widget ul li a:hover { color: var(--gold); }
.widget ul li a span {
  background: var(--cream-dark);
  color: var(--text-light);
  font-size: 0.72rem;
  padding: 2px 7px;
  border-radius: 20px;
}

/* Subscribe widget */
.widget-subscribe { background: var(--navy); }
.widget-subscribe .widget-title { background: transparent; color: var(--gold); padding-bottom: 0; }
.widget-subscribe .widget-body { padding: 20px 20px 24px; }
.widget-subscribe p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 16px;
  line-height: 1.6;
}
.widget-subscribe input {
  width: 100%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 3px;
  padding: 10px 14px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--white);
  margin-bottom: 10px;
  outline: none;
  transition: border-color var(--transition);
}
.widget-subscribe input::placeholder { color: rgba(255,255,255,0.35); }
.widget-subscribe input:focus { border-color: var(--gold); }
.widget-subscribe .btn { width: 100%; justify-content: center; }

/* ============================================
   SINGLE POST
   ============================================ */
.entry-header { margin-bottom: 40px; padding-bottom: 32px; border-bottom: 1px solid var(--border); }
.entry-header .post-meta { margin-bottom: 20px; }
.entry-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 400;
  line-height: 1.25;
  margin-bottom: 20px;
}
.entry-lead {
  font-size: 1.1rem;
  color: var(--text-mid);
  font-style: italic;
  font-family: var(--font-serif);
  border-left: 3px solid var(--gold);
  padding-left: 20px;
  line-height: 1.7;
}

.entry-content {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text-mid);
}
.entry-content h2 {
  font-size: 1.65rem;
  margin: 48px 0 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.entry-content h3 { font-size: 1.25rem; margin: 32px 0 12px; }
.entry-content p { margin-bottom: 1.4em; }
.entry-content blockquote {
  margin: 36px 0;
  padding: 20px 28px;
  background: var(--cream);
  border-left: 4px solid var(--gold);
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--navy);
}
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  font-size: 0.9rem;
}
.entry-content th {
  background: var(--navy);
  color: var(--white);
  padding: 10px 14px;
  text-align: left;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.entry-content td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.entry-content tr:nth-child(even) td { background: var(--cream); }
.entry-content tr:hover td { background: rgba(184,151,62,0.06); }

/* Locked content */
.content-locked {
  position: relative;
  overflow: hidden;
  max-height: 200px;
}
.content-locked::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(transparent, var(--white));
}
.lock-notice {
  background: var(--navy);
  color: var(--white);
  padding: 32px;
  border-radius: var(--card-radius);
  text-align: center;
  margin-top: 32px;
}
.lock-notice h4 { font-family: var(--font-serif); font-size: 1.4rem; color: var(--gold); margin-bottom: 12px; }
.lock-notice p { color: rgba(255,255,255,0.65); margin-bottom: 20px; }
.lock-notice .btn { margin: 0 6px; }

/* ============================================
   NEWSLETTER / CTA SECTION
   ============================================ */
.cta-section {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(184,151,62,0.1) 0%, transparent 60%);
}
.cta-section h2 { font-size: 2.4rem; font-weight: 300; color: var(--white); margin-bottom: 14px; }
.cta-section h2 em { font-style: italic; color: var(--gold-light); }
.cta-section p { color: rgba(255,255,255,0.6); max-width: 500px; margin: 0 auto 36px; }
.cta-form {
  display: flex;
  gap: 0;
  max-width: 480px;
  margin: 0 auto;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.2);
}
.cta-form input {
  flex: 1;
  border: none;
  padding: 15px 20px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  outline: none;
}
.cta-form button {
  background: var(--gold);
  border: none;
  padding: 15px 28px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--navy);
  cursor: pointer;
  transition: background var(--transition);
  white-space: nowrap;
}
.cta-form button:hover { background: var(--gold-light); }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.65);
}
.footer-top {
  padding: 72px 0 48px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}
.footer-brand .site-title { color: var(--white); font-size: 1.6rem; margin-bottom: 14px; }
.footer-brand p { font-size: 0.85rem; line-height: 1.75; color: rgba(255,255,255,0.5); max-width: 280px; }
.footer-tagline {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(184,151,62,0.4);
  padding: 4px 10px;
  border-radius: 2px;
  margin-top: 16px;
}

.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(184,151,62,0.25);
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-bottom p { font-size: 0.78rem; color: rgba(255,255,255,0.35); }
.footer-bottom a { color: rgba(255,255,255,0.45); font-size: 0.78rem; }
.footer-bottom a:hover { color: var(--gold); }
.footer-legal { display: flex; gap: 20px; }

/* ============================================
   BREADCRUMBS
   ============================================ */
.breadcrumbs {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}
.breadcrumbs nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-light);
  flex-wrap: wrap;
}
.breadcrumbs nav a { color: var(--text-light); }
.breadcrumbs nav a:hover { color: var(--gold); }
.breadcrumbs nav .sep { color: var(--border); }
.breadcrumbs nav .current { color: var(--navy); font-weight: 500; }

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 48px;
}
.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 3px;
  font-size: 0.85rem;
  color: var(--text-mid);
  transition: all var(--transition);
}
.pagination .page-numbers.current {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}
.pagination .page-numbers:hover:not(.current) {
  border-color: var(--gold);
  color: var(--gold);
}

/* ============================================
   404 PAGE
   ============================================ */
.error-404 {
  text-align: center;
  padding: 100px 20px;
}
.error-404 .error-num {
  font-family: var(--font-serif);
  font-size: 10rem;
  font-weight: 300;
  color: var(--cream-dark);
  line-height: 1;
  margin-bottom: 0;
}
.error-404 h2 { font-size: 2rem; margin-bottom: 16px; }
.error-404 p { color: var(--text-mid); max-width: 440px; margin: 0 auto 32px; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .posts-grid { grid-template-columns: 1fr; }
  .content-area { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .hero-stats { gap: 28px; }
}

@media (max-width: 768px) {
  .container { padding: 0 18px; }
  .header-search { display: none; }
  .menu-toggle { display: block; }
  .main-navigation ul { display: none; flex-direction: column; }
  .main-navigation ul.active { display: flex; }
  .main-navigation > div > ul > li > a { padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .site-hero { padding: 60px 0 50px; }
  .site-hero h1 { font-size: 2rem; }
  .hero-stats { flex-wrap: wrap; gap: 24px; margin-top: 36px; }
  .categories-grid { grid-template-columns: 1fr; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 10px; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .topbar-left { display: none; }
  .cta-form { flex-direction: column; border-radius: 0; }
  .cta-form input, .cta-form button { border-radius: 3px; }
  .quick-access, .featured-section { padding: 44px 0; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .btn { justify-content: center; }
}

/* ============================================
   PRINT
   ============================================ */
@media print {
  .site-header, .site-footer, .widget-area, .breadcrumbs, .pagination { display: none; }
  .content-area { grid-template-columns: 1fr; }
  body { background: white; color: black; }
  .entry-content a::after { content: " (" attr(href) ")"; font-size: 0.8em; }
}

/* =============================================
   FRONT PAGE — CLEAN POSTS GRID
   ============================================= */

.fp-posts-header {
  padding: 60px 0 40px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 48px;
}
.fp-posts-header .section-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.fp-posts-header h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 300;
  color: var(--navy);
}

.fp-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 32px;
  margin-bottom: 56px;
}

.no-posts {
  padding: 60px 0;
  color: var(--text-light);
  font-size: 1.05rem;
}

/* Pagination */
.page-numbers {
  display: flex;
  gap: 8px;
  list-style: none;
  padding: 40px 0 64px;
  justify-content: center;
}
.page-numbers li a,
.page-numbers li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  font-size: 0.85rem;
  color: var(--text-mid);
  transition: all var(--transition);
}
.page-numbers li a:hover { border-color: var(--gold); color: var(--gold); }
.page-numbers li span.current {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
  font-weight: 600;
}

@media (max-width: 640px) {
  .fp-posts-grid { grid-template-columns: 1fr; }
}
