/* ========================================
   АвтоОазис — «Пыль и ветер» Sandstorm Editorial
   Design Variant C — Unified Stylesheet
   ======================================== */

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

:root {
  --beige: #F5F0E8;
  --sandstone: #D4C5A9;
  --ochre: #C4943A;
  --sienna: #A0522D;
  --warm-gray: #6B6560;
  --dark-earth: #3B3530;
  --dusty-rose: #C9A396;
  --cream: #FAF7F2;
  --sand-light: #E8DFD0;
  --sand-mid: #CBBFA8;

  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Source Serif 4', Georgia, serif;
  --font-ui: 'Inter', -apple-system, sans-serif;

  --grain: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--beige);
  color: var(--dark-earth);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Grain overlay on entire page */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: var(--grain);
  background-repeat: repeat;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.5;
}

/* ═══════════════════════════════════
   MASTHEAD / HEADER
   ═══════════════════════════════════ */

.masthead {
  background-color: var(--cream);
  border-bottom: 1px solid var(--sandstone);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.masthead-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--dark-earth);
  gap: 0;
}

.logo-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.6rem;
  letter-spacing: 0.02em;
  line-height: 1.1;
  color: var(--sienna);
}

.logo-tagline {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--warm-gray);
  margin-top: 1px;
}

/* Desktop Nav */
.nav-desktop {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--dark-earth);
  text-decoration: none;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.4rem 0;
  position: relative;
  transition: color 0.3s;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--ochre);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--sienna);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link.is-current {
  color: var(--sienna);
}

.nav-link.is-current::after {
  width: 100%;
}

/* Countries Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-dropdown-toggle svg {
  width: 10px;
  height: 10px;
  transition: transform 0.3s;
  fill: currentColor;
}

.nav-dropdown.open .nav-dropdown-toggle svg {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.75rem);
  left: -1rem;
  background: var(--cream);
  border: 1px solid var(--sandstone);
  box-shadow: 0 12px 40px rgba(59, 53, 48, 0.12);
  min-width: 240px;
  padding: 0.75rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.3s ease;
  z-index: 100;
}

.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-menu a {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--dark-earth);
  text-decoration: none;
  padding: 0.55rem 1.5rem;
  transition: all 0.2s;
  letter-spacing: 0.02em;
}

.nav-dropdown-menu a:hover {
  background: var(--sand-light);
  color: var(--sienna);
  padding-left: 1.75rem;
}

.nav-dropdown-menu a.is-current {
  color: var(--sienna);
  font-weight: 600;
  border-left: 3px solid var(--ochre);
  padding-left: calc(1.5rem - 3px);
}

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
  background: none;
  border: none;
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark-earth);
  transition: all 0.3s;
}

.burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Nav */
.mobile-nav {
  display: none;
  background: var(--cream);
  border-bottom: 1px solid var(--sandstone);
  padding: 1.5rem 2rem 2rem;
}

.mobile-nav.active {
  display: block;
}

.mobile-nav a {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--dark-earth);
  text-decoration: none;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--sand-light);
  letter-spacing: 0.03em;
}

.mobile-nav a:last-child {
  border-bottom: none;
}

.mobile-nav-section {
  margin-top: 1rem;
  padding-top: 0.5rem;
}

.mobile-nav-section-title {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--warm-gray);
  margin-bottom: 0.25rem;
}

.mobile-nav-section a {
  font-weight: 400;
  font-size: 0.9rem;
  padding: 0.45rem 0 0.45rem 0.75rem;
  color: var(--warm-gray);
}

/* ═══════════════════════════════════
   HERO (Homepage)
   ═══════════════════════════════════ */

.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

/* Grain on hero */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  background-repeat: repeat;
  opacity: 0.7;
  z-index: 2;
  pointer-events: none;
}

/* Gradient overlay at bottom */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(to top, rgba(59, 53, 48, 0.85) 0%, rgba(59, 53, 48, 0.4) 50%, transparent 100%);
  z-index: 3;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 4;
  max-width: 1320px;
  margin: 0 auto;
  width: 100%;
  padding: 4rem 2rem 5rem;
}

.hero-kicker {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--ochre);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hero-kicker::before {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: var(--ochre);
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  color: var(--cream);
  line-height: 1.1;
  max-width: 800px;
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  color: var(--sandstone);
  max-width: 560px;
  line-height: 1.6;
  font-weight: 300;
}

.hero-divider {
  width: 60px;
  height: 3px;
  background: var(--ochre);
  margin-top: 2.5rem;
}

/* ═══════════════════════════════════
   EDITORIAL INTRO
   ═══════════════════════════════════ */

.editorial-intro {
  max-width: 780px;
  margin: 0 auto;
  padding: 6rem 2rem;
  text-align: center;
}

.editorial-intro .article-content p {
  font-family: var(--font-body);
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  line-height: 1.85;
  color: var(--dark-earth);
}

.editorial-intro .article-content p:first-child::first-letter {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 4.5em;
  float: left;
  line-height: 0.8;
  margin-right: 0.1em;
  margin-top: 0.05em;
  color: var(--sienna);
}

.ornament {
  display: block;
  margin: 2.5rem auto 0;
  width: 120px;
  height: 1px;
  background: var(--sandstone);
  position: relative;
}

.ornament::before {
  content: '\25C6';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--beige);
  padding: 0 0.75rem;
  color: var(--ochre);
  font-size: 0.6rem;
}

/* ═══════════════════════════════════
   SECTION HEADERS
   ═══════════════════════════════════ */

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-kicker {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--ochre);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--dark-earth);
  line-height: 1.15;
}

.section-title em {
  font-style: italic;
  color: var(--sienna);
}

/* ═══════════════════════════════════
   COUNTRIES GRID (Homepage)
   ═══════════════════════════════════ */

.countries {
  max-width: 1320px;
  margin: 0 auto;
  padding: 2rem 2rem 6rem;
}

.countries-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.25rem;
  grid-auto-flow: dense;
}

.country-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  color: var(--cream);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 280px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  box-shadow: 0 4px 20px rgba(59, 53, 48, 0.1), inset 0 0 0 1px rgba(212, 197, 169, 0.3);
  background-size: cover;
  background-position: center;
}

.country-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(59, 53, 48, 0.18), inset 0 0 0 1px rgba(212, 197, 169, 0.5);
}

.country-card--lg {
  grid-column: span 6;
  min-height: 380px;
}

.country-card--md {
  grid-column: span 4;
  min-height: 320px;
}

.country-card--sm {
  grid-column: span 3;
  min-height: 260px;
}

.country-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(59, 53, 48, 0.75) 0%, rgba(59, 53, 48, 0.1) 60%, transparent 100%);
  z-index: 1;
  transition: opacity 0.4s;
}

.country-card:hover::before {
  background: linear-gradient(to top, rgba(59, 53, 48, 0.85) 0%, rgba(59, 53, 48, 0.25) 60%, transparent 100%);
}

.country-card-content {
  position: relative;
  z-index: 2;
  padding: 1.5rem;
}

.country-card-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.3rem;
}

.country-card--lg .country-card-name {
  font-size: 2rem;
}

.country-card-desc {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--sandstone);
  line-height: 1.4;
}

.country-card-arrow {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 2;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(250, 247, 242, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translate(-4px, 4px);
  transition: all 0.3s ease;
}

.country-card:hover .country-card-arrow {
  opacity: 1;
  transform: translate(0, 0);
}

.country-card-arrow svg {
  width: 14px;
  height: 14px;
  stroke: var(--cream);
  fill: none;
  stroke-width: 2;
}

/* ═══════════════════════════════════
   FEATURED CONTENT (Homepage)
   ═══════════════════════════════════ */

.featured {
  background-color: var(--cream);
  position: relative;
}

.featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--sandstone), transparent);
}

.featured-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 6rem 2rem;
}

.featured-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 3.5rem;
}

.featured-main {
  grid-row: span 2;
}

.featured-card {
  cursor: pointer;
  text-decoration: none;
  color: var(--dark-earth);
  display: block;
  transition: transform 0.3s ease;
}

.featured-card:hover {
  transform: translateY(-2px);
}

.featured-card-image {
  width: 100%;
  aspect-ratio: 16/10;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  box-shadow: 0 2px 12px rgba(59, 53, 48, 0.08);
  background-size: cover;
  background-position: center;
}

.featured-main .featured-card-image {
  aspect-ratio: 4/3;
}

.featured-card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(212, 197, 169, 0.4);
  pointer-events: none;
}

.featured-card-label {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ochre);
  margin-top: 1.25rem;
  display: block;
}

.featured-card-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
  margin-top: 0.5rem;
  transition: color 0.3s;
}

.featured-main .featured-card-title {
  font-size: 1.6rem;
}

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

.featured-card-excerpt {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--warm-gray);
  line-height: 1.6;
  margin-top: 0.6rem;
}

/* ═══════════════════════════════════
   PULL QUOTE
   ═══════════════════════════════════ */

.pull-quote,
.article-content blockquote {
  margin: 2.5rem 0;
  padding: 2rem 2.5rem;
  border-left: 4px solid var(--ochre);
  background: var(--cream);
  position: relative;
}

.pull-quote::before,
.article-content blockquote::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  opacity: 0.3;
  pointer-events: none;
}

.pull-quote p,
.article-content blockquote p {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--dark-earth);
  line-height: 1.5;
  position: relative;
  margin-bottom: 0;
}

.pull-quote cite {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--warm-gray);
  margin-top: 1rem;
}

/* ═══════════════════════════════════
   CTA BLOCK (standalone & inline)
   ═══════════════════════════════════ */

/* Standard CTA block — styled as stone tablet */
.cta-block {
  position: relative;
  margin: 3rem 0;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  border: 2px solid var(--sandstone);
  padding: 5px;
  border-radius: 4px;
}

.cta-block--banner,
.cta-block--button,
.cta-block--text-link {
  background: transparent;
}

.cta-banner,
.cta-block--button,
.cta-block--text-link {
  background: var(--dark-earth);
  border: 1px solid var(--ochre);
  border-radius: 3px;
  padding: 2.5rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before,
.cta-block--button::before,
.cta-block--text-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  opacity: 0.12;
  pointer-events: none;
}

.cta-banner__description {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--sand-light);
  margin-bottom: 1.5rem;
  position: relative;
}

.cta-button {
  display: inline-block;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--ochre);
  color: var(--dark-earth);
  padding: 14px 36px;
  border-radius: 3px;
  text-decoration: none;
  transition: background 0.3s, color 0.3s;
  position: relative;
}

.cta-button:hover {
  background: var(--sienna);
  color: var(--cream);
  text-decoration: none;
}

/* Override article-content styles inside CTA blocks */
.article-content .cta-block p,
.article-content .cta-block .cta-banner__description,
.article-content p.cta-banner__description {
  color: var(--sand-light) !important;
  font-family: var(--font-body);
  font-style: italic;
  font-size: 1rem;
}
.article-content .cta-block a.cta-button,
.article-content a.cta-button {
  color: var(--dark-earth) !important;
  text-decoration: none !important;
  background: var(--ochre);
}
.article-content .cta-block a.cta-button:hover,
.article-content a.cta-button:hover {
  color: var(--cream) !important;
  text-decoration: none !important;
  background: var(--sienna);
}

/* Legacy classes kept for compat */
.cta-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 5rem 2rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 700;
  color: var(--cream);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.cta-subtitle {
  font-family: var(--font-body);
  font-size: 1rem;
  font-style: italic;
  color: var(--sand-light);
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.cta-btn {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--dark-earth);
  background: var(--ochre);
  padding: 1.1rem 3rem;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid var(--ochre);
  border-radius: 3px;
}

.cta-btn:hover {
  background: var(--sienna);
  border-color: var(--sienna);
  color: var(--cream);
}

/* Stone Tablet CTA (custom _cta.html.erb) */
.cta-stone {
  margin: 3rem 0;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.cta-stone-border {
  border: 2px solid var(--sandstone);
  padding: 5px;
  border-radius: 4px;
}
.cta-stone-inner {
  border: 1px solid var(--ochre);
  border-radius: 3px;
  background: var(--dark-earth);
  padding: 2.5rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-stone-grain {
  position: absolute;
  inset: 0;
  background: var(--grain);
  opacity: 0.12;
  pointer-events: none;
}
.cta-stone-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--cream);
  margin-bottom: 0.75rem;
  position: relative;
}
.cta-stone-desc {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--sand-light);
  margin-bottom: 1.5rem;
  position: relative;
}
.cta-stone-btn {
  display: inline-block;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--ochre);
  color: var(--dark-earth);
  padding: 14px 36px;
  border-radius: 3px;
  text-decoration: none;
  transition: background 0.3s, color 0.3s;
  position: relative;
}
.cta-stone-btn:hover {
  background: var(--sienna);
  color: var(--cream);
}

/* Override article-content styles inside CTA stone */
.article-content .cta-stone h2,
.article-content .cta-stone-title {
  color: var(--cream);
  border-bottom: none;
  margin: 0 0 0.75rem;
  padding-bottom: 0;
  font-size: 1.5rem;
}
.article-content .cta-stone p,
.article-content .cta-stone-desc {
  color: var(--sand-light);
}
.article-content .cta-stone a.cta-stone-btn {
  display: inline-block;
  background: var(--ochre);
  color: var(--dark-earth);
  text-decoration: none;
  padding: 14px 36px;
  border-radius: 3px;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.article-content .cta-stone a.cta-stone-btn:hover {
  background: var(--sienna);
  color: var(--cream);
  text-decoration: none;
}

/* Inline CTA (mid-article) */
.inline-cta {
  margin: 3rem 0;
  padding: 2.5rem;
  background: var(--dark-earth);
  position: relative;
  text-align: center;
  overflow: hidden;
}

.inline-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  opacity: 0.5;
  pointer-events: none;
}

.inline-cta::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(to right, var(--sienna), var(--ochre), var(--sienna));
}

.inline-cta-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 1rem;
  position: relative;
}

.inline-cta-btn {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--dark-earth);
  background: var(--ochre);
  padding: 0.9rem 2.5rem;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid var(--ochre);
  position: relative;
}

.inline-cta-btn:hover {
  background: transparent;
  color: var(--ochre);
}

/* ═══════════════════════════════════
   COUNTRY HERO (Country Hub)
   ═══════════════════════════════════ */

.country-hero {
  position: relative;
  min-height: 65vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.country-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.country-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  background-repeat: repeat;
  opacity: 0.7;
  z-index: 2;
  pointer-events: none;
}

.country-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 65%;
  background: linear-gradient(to top, rgba(59, 53, 48, 0.88) 0%, rgba(59, 53, 48, 0.4) 50%, transparent 100%);
  z-index: 3;
  pointer-events: none;
}

.country-hero-content {
  position: relative;
  z-index: 4;
  max-width: 1320px;
  margin: 0 auto;
  width: 100%;
  padding: 4rem 2rem 4.5rem;
}

.country-hero-kicker {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--ochre);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.country-hero-kicker::before {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: var(--ochre);
}

.country-hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  color: var(--cream);
  line-height: 1.0;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.country-hero-subtitle {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.6vw, 1.3rem);
  color: var(--sandstone);
  max-width: 560px;
  line-height: 1.55;
  font-weight: 300;
  font-style: italic;
}

.country-hero-divider {
  width: 60px;
  height: 3px;
  background: var(--ochre);
  margin-top: 2rem;
}

/* ═══════════════════════════════════
   KEY FACTS (Country Hub)
   ═══════════════════════════════════ */

.facts-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 2rem 5rem;
}

.facts-header {
  text-align: center;
  margin-bottom: 3rem;
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.fact-card {
  background: var(--cream);
  padding: 1.75rem 1.5rem;
  position: relative;
  border: 1px solid var(--sandstone);
  box-shadow: 0 2px 8px rgba(59, 53, 48, 0.06), inset 0 1px 0 rgba(250, 247, 242, 0.8);
  transition: transform 0.3s, box-shadow 0.3s;
}

.fact-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  opacity: 0.3;
  pointer-events: none;
}

.fact-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 53, 48, 0.1);
}

.fact-label {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--warm-gray);
  margin-bottom: 0.5rem;
  position: relative;
}

.fact-value {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--dark-earth);
  line-height: 1.3;
  position: relative;
}

.fact-note {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: var(--warm-gray);
  margin-top: 0.35rem;
  position: relative;
}

/* ═══════════════════════════════════
   ARTICLES GRID (Country Hub)
   ═══════════════════════════════════ */

.articles-section {
  background: var(--cream);
  position: relative;
}

.articles-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--sandstone), transparent);
}

.articles-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 5rem 2rem 6rem;
}

.articles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-top: 3rem;
}

.article-card {
  text-decoration: none;
  color: var(--dark-earth);
  display: block;
  transition: transform 0.3s ease;
}

.article-card:hover {
  transform: translateY(-3px);
}

.article-card--featured {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.article-card-image {
  width: 100%;
  aspect-ratio: 16/10;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 2px 12px rgba(59, 53, 48, 0.08);
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.article-card--featured .article-card-image {
  aspect-ratio: 4/3;
}

.article-card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(212, 197, 169, 0.4);
  pointer-events: none;
}

.article-card-label {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ochre);
  margin-top: 1.25rem;
  display: block;
}

.article-card--featured .article-card-label {
  margin-top: 0;
}

.article-card-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
  margin-top: 0.5rem;
  transition: color 0.3s;
}

.article-card--featured .article-card-title {
  font-size: 1.75rem;
  line-height: 1.25;
}

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

.article-card-excerpt {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--warm-gray);
  line-height: 1.6;
  margin-top: 0.75rem;
}

.article-card-meta {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: var(--warm-gray);
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* ═══════════════════════════════════
   RELATED COUNTRIES (Country Hub)
   ═══════════════════════════════════ */

.related-countries {
  max-width: 1320px;
  margin: 0 auto;
  padding: 5rem 2rem 6rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.related-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  color: var(--cream);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 280px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  box-shadow: 0 4px 20px rgba(59, 53, 48, 0.1), inset 0 0 0 1px rgba(212, 197, 169, 0.3);
  background-size: cover;
  background-position: center;
}

.related-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(59, 53, 48, 0.18);
}

.related-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(59, 53, 48, 0.75) 0%, rgba(59, 53, 48, 0.1) 60%, transparent 100%);
  z-index: 1;
  transition: opacity 0.4s;
}

.related-card:hover::before {
  background: linear-gradient(to top, rgba(59, 53, 48, 0.85) 0%, rgba(59, 53, 48, 0.25) 60%, transparent 100%);
}

.related-card-content {
  position: relative;
  z-index: 2;
  padding: 1.5rem;
}

.related-card-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.25rem;
}

.related-card-desc {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--sandstone);
}

.related-card-arrow {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 2;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(250, 247, 242, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translate(-4px, 4px);
  transition: all 0.3s ease;
}

.related-card:hover .related-card-arrow {
  opacity: 1;
  transform: translate(0, 0);
}

.related-card-arrow svg {
  width: 14px;
  height: 14px;
  stroke: var(--cream);
  fill: none;
  stroke-width: 2;
}

/* ═══════════════════════════════════
   ARTICLE HEADER
   ═══════════════════════════════════ */

.article-header {
  max-width: 1320px;
  margin: 0 auto;
  padding: 2.5rem 2rem 0;
}

.breadcrumb {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: var(--warm-gray);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: 0.04em;
}

.breadcrumb a {
  color: var(--warm-gray);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: var(--sienna);
}

.breadcrumb-sep {
  color: var(--sandstone);
  font-size: 0.6rem;
}

/* Country hero breadcrumb override */
.country-hero .breadcrumb {
  color: var(--sandstone);
  margin-bottom: 1.5rem;
}

.country-hero .breadcrumb a {
  color: var(--sandstone);
}

.country-hero .breadcrumb a:hover {
  color: var(--ochre);
}

.country-hero .breadcrumb-sep {
  color: var(--warm-gray);
}

.article-header-content {
  max-width: 820px;
}

.article-kicker {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--ochre);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.article-kicker::before {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: var(--ochre);
}

.article-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 900;
  color: var(--dark-earth);
  line-height: 1.15;
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

.article-meta {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--warm-gray);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

/* ═══════════════════════════════════
   TWO-COLUMN ARTICLE LAYOUT
   ═══════════════════════════════════ */

.article-layout {
  max-width: 1320px;
  margin: 0 auto;
  padding: 3.5rem 2rem 5rem;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 4rem;
  align-items: start;
}

/* ═══════════════════════════════════
   ARTICLE BODY / CONTENT
   ═══════════════════════════════════ */

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

.article-body p,
.article-content p {
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1.85;
  color: var(--dark-earth);
  margin-bottom: 1.5rem;
}

/* Dropcap for first paragraph of article content */
.article-body > p:first-child::first-letter,
.article-content > p:first-child::first-letter {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 4.2em;
  float: left;
  line-height: 0.8;
  margin-right: 0.08em;
  margin-top: 0.06em;
  color: var(--sienna);
}

.article-body h2,
.article-content h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--dark-earth);
  margin: 3rem 0 1.25rem;
  line-height: 1.25;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--sandstone);
}

.article-body h3,
.article-content h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--sienna);
  margin: 2rem 0 1rem;
  line-height: 1.3;
}

/* Links in article content -- don't break CTA buttons */
.article-content a:not(.cta-button):not(.cta-btn):not(.inline-cta-btn):not(.sidebar-cta-btn):not(.cta-stone-btn) {
  color: var(--sienna);
  text-decoration: underline;
  text-decoration-color: var(--sandstone);
  text-underline-offset: 3px;
  transition: color 0.2s, text-decoration-color 0.2s;
}

.article-content a:not(.cta-button):not(.cta-btn):not(.inline-cta-btn):not(.sidebar-cta-btn):not(.cta-stone-btn):hover {
  color: var(--ochre);
  text-decoration-color: var(--ochre);
}

.content-wrap a:not(.cta-button):not(.cta-btn):not(.inline-cta-btn):not(.sidebar-cta-btn):not(.cta-stone-btn) {
  color: var(--sienna);
  text-decoration: underline;
  text-decoration-color: var(--sandstone);
  text-underline-offset: 3px;
  transition: color 0.2s, text-decoration-color 0.2s;
}

.content-wrap a:not(.cta-button):not(.cta-btn):not(.inline-cta-btn):not(.sidebar-cta-btn):not(.cta-stone-btn):hover {
  color: var(--ochre);
  text-decoration-color: var(--ochre);
}

/* Tables in article */
.article-body table,
.article-content table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  margin: 1.75rem 0 2rem;
}

.article-body thead,
.article-content thead {
  background: var(--dark-earth);
  color: var(--cream);
}

.article-body th,
.article-content th {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.7rem;
  padding: 0.9rem 1.25rem;
  text-align: left;
}

.article-body td,
.article-content td {
  padding: 0.8rem 1.25rem;
  border-bottom: 1px solid var(--sandstone);
  color: var(--dark-earth);
}

.article-body tbody tr,
.article-content tbody tr {
  background: var(--cream);
  transition: background 0.2s;
}

.article-body tbody tr:nth-child(even),
.article-content tbody tr:nth-child(even) {
  background: var(--sand-light);
}

.article-body tbody tr:hover,
.article-content tbody tr:hover {
  background: var(--sandstone);
}

.article-body td:first-child,
.article-content td:first-child {
  font-weight: 500;
  color: var(--dark-earth);
}

/* Lists in article */
.article-body ul,
.article-content ul {
  margin: 1rem 0 1.5rem 1.5rem;
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1.85;
}

.article-body ul li,
.article-content ul li {
  margin-bottom: 0.5rem;
  position: relative;
}

.article-body ul li::marker,
.article-content ul li::marker {
  color: var(--ochre);
}

.article-body ol,
.article-content ol {
  margin: 1rem 0 1.5rem 1.5rem;
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1.85;
}

.article-body ol li,
.article-content ol li {
  margin-bottom: 0.5rem;
}

/* Images in article */
.article-content img {
  width: 100%;
  height: auto;
  margin: 2rem 0 2.5rem;
  box-shadow: 0 2px 16px rgba(59, 53, 48, 0.1);
}

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

.article-content figcaption {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: var(--warm-gray);
  text-align: center;
  margin-top: 0.5rem;
  font-style: italic;
}

/* ═══════════════════════════════════
   SIDEBAR
   ═══════════════════════════════════ */

.sidebar {
  position: sticky;
  top: 100px;
}

.sidebar-section {
  margin-bottom: 2rem;
}

.sidebar-heading {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ochre);
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--sandstone);
}

.sidebar-article {
  display: block;
  text-decoration: none;
  color: var(--dark-earth);
  padding: 1rem 0;
  border-bottom: 1px solid var(--sand-light);
  transition: all 0.2s;
}

.sidebar-article:last-child {
  border-bottom: none;
}

.sidebar-article:hover {
  padding-left: 0.5rem;
}

.sidebar-article-label {
  font-family: var(--font-ui);
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--warm-gray);
  margin-bottom: 0.25rem;
}

.sidebar-article-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  transition: color 0.2s;
}

.sidebar-article:hover .sidebar-article-title {
  color: var(--sienna);
}

/* Quick facts box */
.sidebar-facts {
  background: var(--cream);
  border: 1px solid var(--sandstone);
  padding: 1.5rem;
  position: relative;
}

.sidebar-facts::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  opacity: 0.3;
  pointer-events: none;
}

.sidebar-facts-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark-earth);
  margin-bottom: 1rem;
  position: relative;
}

.sidebar-fact-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--sand-light);
  position: relative;
}

.sidebar-fact-row:last-child {
  border-bottom: none;
}

.sidebar-fact-label {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--warm-gray);
}

.sidebar-fact-value {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark-earth);
}

/* Sidebar CTA */
.sidebar-cta {
  background: var(--dark-earth);
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.sidebar-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  opacity: 0.5;
  pointer-events: none;
}

.sidebar-cta::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(to right, var(--sienna), var(--ochre), var(--sienna));
}

.sidebar-cta-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 0.6rem;
  position: relative;
}

.sidebar-cta-text {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--sandstone);
  margin-bottom: 1.25rem;
  line-height: 1.5;
  position: relative;
}

.sidebar-cta-btn {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--dark-earth);
  background: var(--ochre);
  padding: 0.85rem 2rem;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid var(--ochre);
  position: relative;
}

.sidebar-cta-btn:hover {
  background: transparent;
  color: var(--ochre);
}

/* ═══════════════════════════════════
   SIMPLE PAGE (article_simple)
   ═══════════════════════════════════ */

.page-header {
  max-width: 780px;
  margin: 0 auto;
  padding: 2.5rem 2rem 0;
}

.page-kicker {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--ochre);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.page-kicker::before {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: var(--ochre);
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 900;
  color: var(--dark-earth);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.page-header-divider {
  width: 60px;
  height: 3px;
  background: var(--ochre);
  margin-top: 2rem;
}

.page-content {
  max-width: 780px;
  margin: 0 auto;
  padding: 4rem 2rem 6rem;
}

.page-content p {
  font-family: var(--font-body);
  font-size: 1.15rem;
  line-height: 1.85;
  color: var(--dark-earth);
  margin-bottom: 1.5rem;
}

.page-content > p:first-child::first-letter {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 4.5em;
  float: left;
  line-height: 0.78;
  margin-right: 0.1em;
  margin-top: 0.06em;
  color: var(--sienna);
}

.page-content h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--dark-earth);
  margin: 3.5rem 0 1.25rem;
  line-height: 1.25;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--sandstone);
}

.page-content ul {
  margin: 1.25rem 0 2rem 0;
  padding-left: 0;
  list-style: none;
}

.page-content ul li {
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1.75;
  padding: 0.65rem 0 0.65rem 1.75rem;
  border-bottom: 1px solid var(--sand-light);
  position: relative;
}

.page-content ul li:last-child {
  border-bottom: none;
}

.page-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1.15rem;
  width: 8px;
  height: 8px;
  background: var(--ochre);
  transform: rotate(45deg);
}

.page-content ul li strong {
  font-weight: 600;
  color: var(--dark-earth);
}

.page-content ul li em {
  color: var(--warm-gray);
  font-style: normal;
}

/* Contact link */
.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 500;
  color: var(--sienna);
  text-decoration: none;
  padding: 0.75rem 0;
  border-bottom: 2px solid var(--sandstone);
  transition: all 0.3s ease;
  margin-top: 0.5rem;
}

.contact-email:hover {
  color: var(--ochre);
  border-bottom-color: var(--ochre);
}

.contact-email svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

/* End ornament */
.end-ornament {
  margin-top: 4rem;
  text-align: center;
}

.end-ornament-line {
  display: block;
  width: 120px;
  height: 1px;
  background: var(--sandstone);
  margin: 0 auto;
  position: relative;
}

.end-ornament-line::before {
  content: '\25C6';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--beige);
  padding: 0 0.75rem;
  color: var(--ochre);
  font-size: 0.6rem;
}

/* ═══════════════════════════════════
   FOOTER
   ═══════════════════════════════════ */

.site-footer {
  background: var(--dark-earth);
  color: var(--sandstone);
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  opacity: 0.4;
  pointer-events: none;
}

.footer-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 4rem 2rem 2rem;
  position: relative;
  z-index: 1;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(212, 197, 169, 0.15);
}

.footer-brand-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 1rem;
}

.footer-brand-desc {
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--warm-gray);
}

.footer-heading {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--dusty-rose);
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
}

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

.footer-links a {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--sandstone);
  text-decoration: none;
  transition: color 0.2s;
}

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

.footer-bottom {
  padding: 1.5rem 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.5rem;
}

.footer-copy {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: var(--warm-gray);
}

/* ═══════════════════════════════════
   GDPR COOKIE CONSENT
   ═══════════════════════════════════ */

.gdpr-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  background: var(--cream);
  border-top: 2px solid var(--sandstone);
  box-shadow: 0 -4px 20px rgba(59, 53, 48, 0.08);
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.gdpr-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  opacity: 0.3;
  pointer-events: none;
}

.gdpr-banner.visible {
  transform: translateY(0);
}

.gdpr-banner.hiding {
  transform: translateY(100%);
}

.gdpr-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  position: relative;
  z-index: 1;
}

.gdpr-text {
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--warm-gray);
  margin: 0;
}

.gdpr-link {
  color: var(--ochre);
  text-decoration: underline;
  transition: color 0.2s;
}

.gdpr-link:hover {
  color: var(--sienna);
}

.gdpr-buttons {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

.gdpr-btn {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 10px 24px;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.3s;
}

.gdpr-btn--accept {
  background: var(--sienna);
  color: var(--cream);
  border: 1px solid var(--sienna);
}

.gdpr-btn--accept:hover {
  background: var(--ochre);
  border-color: var(--ochre);
}

.gdpr-btn--decline {
  background: transparent;
  color: var(--warm-gray);
  border: 1px solid var(--dusty-rose);
}

.gdpr-btn--decline:hover {
  border-color: var(--ochre);
  color: var(--ochre);
}

/* ═══════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Hero animations */
.hero-content > * {
  animation: fadeInUp 0.9s ease both;
}

.hero-kicker { animation-delay: 0.1s; }
.hero-headline { animation-delay: 0.25s; }
.hero-subtitle { animation-delay: 0.4s; }
.hero-divider { animation-delay: 0.55s; }

/* Country hero animations */
.country-hero-content > * {
  animation: fadeInUp 0.9s ease both;
}

.country-hero-content .breadcrumb { animation-delay: 0.05s; }
.country-hero-kicker { animation-delay: 0.15s; }
.country-hero-title { animation-delay: 0.25s; }
.country-hero-subtitle { animation-delay: 0.4s; }
.country-hero-divider { animation-delay: 0.5s; }

/* Article header animations */
.article-header-content > * {
  animation: fadeInUp 0.8s ease both;
}

.article-kicker { animation-delay: 0.05s; }
.article-title { animation-delay: 0.15s; }
.article-meta { animation-delay: 0.25s; }

/* Page header animations */
.page-header > * {
  animation: fadeInUp 0.8s ease both;
}

.page-header .breadcrumb { animation-delay: 0.05s; }
.page-kicker { animation-delay: 0.12s; }
.page-title { animation-delay: 0.2s; }
.page-header-divider { animation-delay: 0.3s; }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════
   RESPONSIVE — 1024px
   ═══════════════════════════════════ */

@media (max-width: 1024px) {
  .countries-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .country-card--lg {
    grid-column: span 6;
  }

  .country-card--md {
    grid-column: span 3;
  }

  .country-card--sm {
    grid-column: span 3;
  }

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

  .featured-main {
    grid-row: span 1;
  }

  .article-card--featured {
    grid-column: span 2;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

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

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

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

  .footer-brand {
    grid-column: span 2;
  }
}

/* ═══════════════════════════════════
   RESPONSIVE — 768px
   ═══════════════════════════════════ */

@media (max-width: 768px) {
  .masthead-inner {
    height: 64px;
  }

  .nav-desktop {
    display: none;
  }

  .burger {
    display: flex;
  }

  /* Hero */
  .hero {
    min-height: 70vh;
  }

  .hero-content {
    padding: 3rem 1.5rem 3.5rem;
  }

  /* Country hero */
  .country-hero {
    min-height: 55vh;
  }

  .country-hero-content {
    padding: 3rem 1.5rem 3.5rem;
  }

  /* Editorial */
  .editorial-intro {
    padding: 4rem 1.5rem;
  }

  /* Countries */
  .countries {
    padding: 2rem 1.5rem 4rem;
  }

  .countries-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .country-card--lg,
  .country-card--md {
    grid-column: span 2;
    min-height: 240px;
  }

  .country-card--sm {
    grid-column: span 1;
    min-height: 200px;
  }

  .country-card-name {
    font-size: 1.2rem;
  }

  .country-card--lg .country-card-name {
    font-size: 1.5rem;
  }

  /* Featured */
  .featured-inner {
    padding: 4rem 1.5rem;
  }

  .pull-quote,
  .article-content blockquote {
    padding: 1.75rem 2rem;
  }

  .pull-quote p,
  .article-content blockquote p {
    font-size: 1.15rem;
  }

  /* Facts */
  .facts-section {
    padding: 1rem 1.5rem 4rem;
  }

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

  /* Articles grid */
  .articles-inner {
    padding: 4rem 1.5rem 5rem;
  }

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

  .article-card--featured {
    grid-column: span 1;
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .article-card--featured .article-card-title {
    font-size: 1.35rem;
  }

  /* Related countries */
  .related-countries {
    padding: 4rem 1.5rem 5rem;
  }

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

  .related-card {
    min-height: 220px;
  }

  /* Article layout */
  .article-header {
    padding: 2rem 1.5rem 0;
  }

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

  .sidebar {
    position: static;
    border-top: 2px solid var(--sandstone);
    padding-top: 2.5rem;
  }

  .article-body h2,
  .article-content h2 {
    font-size: 1.45rem;
    margin-top: 2.5rem;
  }

  .article-body h3,
  .article-content h3 {
    font-size: 1.15rem;
  }

  .article-body p,
  .article-content p {
    font-size: 1.05rem;
  }

  .inline-cta {
    padding: 2rem 1.5rem;
  }

  .inline-cta-title {
    font-size: 1.25rem;
  }

  /* Simple page */
  .page-header {
    padding: 2rem 1.5rem 0;
  }

  .page-content {
    padding: 3rem 1.5rem 5rem;
  }

  .page-content p {
    font-size: 1.05rem;
  }

  .page-content h2 {
    font-size: 1.45rem;
    margin-top: 2.5rem;
  }

  /* CTA */
  .cta-inner {
    padding: 4rem 1.5rem;
  }

  /* Footer */
  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  /* GDPR */
  .gdpr-inner {
    flex-direction: column;
    text-align: center;
    padding: 16px 20px;
    gap: 1rem;
  }

  .gdpr-buttons {
    width: 100%;
    justify-content: center;
  }
}

/* ═══════════════════════════════════
   RESPONSIVE — 480px
   ═══════════════════════════════════ */

@media (max-width: 480px) {
  .countries-grid {
    grid-template-columns: 1fr;
  }

  .country-card--lg,
  .country-card--md,
  .country-card--sm {
    grid-column: span 1;
    min-height: 200px;
  }

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

  .article-body table,
  .article-content table {
    font-size: 0.8rem;
  }

  .article-body th,
  .article-content th,
  .article-body td,
  .article-content td {
    padding: 0.65rem 0.85rem;
  }
}
