/*
Theme Name:     Consulates of the World - Diplomatic Heritage
Theme URI:      https://consulatesoftheworld.us/
Description:    Premium child theme for consulatesoftheworld.us — institutional aesthetic inspired by official passports and diplomatic publications. Built on AsapTheme.
Author:         SEOFune
Author URI:     https://seofune.es/
Template:       asap
Version:        1.0.0
License:        GNU General Public License v2 or later
Text Domain:    consulates-world
*/

/* ============================================================
   01. CSS VARIABLES — Diplomatic Heritage Palette
   ============================================================ */
:root {
  /* Primary palette */
  --cw-navy:       #0B2545;
  --cw-navy-deep:  #061833;
  --cw-navy-soft:  #1A3D6B;
  --cw-cream:      #F8F4E9;
  --cw-cream-deep: #EFE7D3;
  --cw-gold:       #C9A961;
  --cw-gold-deep:  #8D6E63;
  --cw-red:        #A4243B;
  --cw-red-soft:   #C73E5C;
  --cw-ink:        #1C1C1C;
  --cw-text:       #2C2C2C;
  --cw-text-soft:  #5A5A5A;
  --cw-line:       rgba(11, 37, 69, 0.14);
  --cw-line-soft:  rgba(11, 37, 69, 0.06);
  --cw-shadow:     0 12px 40px -12px rgba(11, 37, 69, 0.28);
  --cw-shadow-sm:  0 4px 14px -4px rgba(11, 37, 69, 0.18);

  /* Typography */
  --cw-font-display: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --cw-font-body:    'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --cw-font-mono:    'IBM Plex Mono', 'Courier New', monospace;

  /* Layout */
  --cw-container: 1240px;
  --cw-radius:    4px;
  --cw-radius-lg: 8px;
}

/* ============================================================
   02. FOUNDATION — typography + reset
   ============================================================ */
body {
  font-family: var(--cw-font-body);
  color: var(--cw-text);
  background: var(--cw-cream);
  font-feature-settings: "ss01", "ss02";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--cw-font-display);
  color: var(--cw-navy);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.cw-mono {
  font-family: var(--cw-font-mono);
  font-size: 0.92em;
  letter-spacing: -0.02em;
}

a {
  color: var(--cw-navy);
  text-decoration: none;
  transition: color .18s ease;
}
a:hover {
  color: var(--cw-red);
}

/* ============================================================
   03. CONTAINER + UTILITIES
   ============================================================ */
.cw-wrap {
  max-width: var(--cw-container);
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 768px) {
  .cw-wrap { padding: 0 16px; }
}

.cw-eyebrow {
  font-family: var(--cw-font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cw-gold-deep);
  font-weight: 500;
  display: inline-block;
}

.cw-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 18px 0;
}
.cw-divider::before,
.cw-divider::after {
  content: '';
  height: 1px;
  background: var(--cw-line);
  flex: 1;
}
.cw-divider-icon {
  width: 24px;
  height: 24px;
  color: var(--cw-gold);
}

/* ============================================================
   04. HEADER + NAVIGATION
   ============================================================ */
.cw-site-header {
  background: var(--cw-navy);
  color: var(--cw-cream);
  position: relative;
  border-bottom: 4px solid var(--cw-gold);
}
.cw-site-header::before {
  content: '';
  position: absolute;
  inset: 0 0 -4px 0;
  background-image:
    repeating-linear-gradient(45deg, transparent 0 8px, rgba(201,169,97,.06) 8px 9px);
  pointer-events: none;
}

.cw-header-top {
  background: var(--cw-navy-deep);
  font-size: 12px;
  padding: 8px 0;
  font-family: var(--cw-font-mono);
  letter-spacing: 0.04em;
  color: rgba(248,244,233,.7);
}
.cw-header-top .cw-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.cw-header-top .cw-flags {
  display: flex;
  gap: 8px;
  font-size: 14px;
}

.cw-header-main .cw-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
  gap: 20px;
}

.cw-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--cw-font-display);
  font-size: 22px;
  color: var(--cw-cream);
  font-weight: 600;
  letter-spacing: 0.01em;
}
.cw-logo:hover { color: var(--cw-gold); }
.cw-logo-mark {
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--cw-gold);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--cw-font-display);
  font-size: 18px;
  color: var(--cw-gold);
  position: relative;
}
.cw-logo-mark::after {
  content: '';
  position: absolute;
  inset: 3px;
  border: 1px dashed var(--cw-gold);
  border-radius: 50%;
  opacity: .5;
}
.cw-logo-text { line-height: 1.1; }
.cw-logo-text small {
  display: block;
  font-family: var(--cw-font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cw-gold);
  opacity: .8;
  margin-top: 2px;
}

.cw-nav-main {
  display: flex;
  align-items: center;
  gap: 4px;
}
.cw-nav-main a {
  color: var(--cw-cream);
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: var(--cw-radius);
  transition: all .18s;
  position: relative;
}
.cw-nav-main a:hover {
  background: rgba(201,169,97,.12);
  color: var(--cw-gold);
}
.cw-nav-main a.is-active {
  color: var(--cw-gold);
}

.cw-search-trigger {
  background: var(--cw-gold);
  color: var(--cw-navy);
  padding: 10px 18px;
  border-radius: var(--cw-radius);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid var(--cw-gold);
  cursor: pointer;
  transition: all .18s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.cw-search-trigger:hover {
  background: var(--cw-cream);
  color: var(--cw-navy);
}

/* Mobile nav toggle */
.cw-mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(248,244,233,.3);
  color: var(--cw-cream);
  padding: 8px 12px;
  border-radius: var(--cw-radius);
  cursor: pointer;
  font-size: 14px;
}
@media (max-width: 900px) {
  .cw-nav-main { display: none; }
  .cw-mobile-toggle { display: inline-block; }
  .cw-nav-main.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--cw-navy-deep);
    padding: 12px;
    z-index: 200;
    align-items: stretch;
    border-bottom: 4px solid var(--cw-gold);
  }
  .cw-nav-main.is-open a { width: 100%; }
}

/* ============================================================
   05. HERO — Home
   ============================================================ */
.cw-hero {
  position: relative;
  padding: 90px 0 110px;
  background: var(--cw-navy);
  color: var(--cw-cream);
  overflow: hidden;
}
.cw-hero::before {
  /* Guilloché pattern - decorative line work like on banknotes */
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(201,169,97,.08) 0, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(164,36,59,.08) 0, transparent 50%),
    repeating-linear-gradient(45deg, transparent 0 30px, rgba(248,244,233,.02) 30px 31px),
    repeating-linear-gradient(-45deg, transparent 0 30px, rgba(248,244,233,.02) 30px 31px);
  pointer-events: none;
}
.cw-hero::after {
  /* Diagonal stripes accent */
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 280px;
  height: 100%;
  background-image: repeating-linear-gradient(45deg, transparent 0 6px, rgba(201,169,97,.04) 6px 7px);
  pointer-events: none;
}

.cw-hero .cw-wrap {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 900px) {
  .cw-hero { padding: 60px 0 80px; }
  .cw-hero .cw-wrap {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.cw-hero-content .cw-eyebrow {
  color: var(--cw-gold);
}
.cw-hero h1 {
  font-size: clamp(40px, 5.5vw, 76px);
  line-height: 1.05;
  color: var(--cw-cream);
  margin: 18px 0 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.cw-hero h1 em {
  font-style: italic;
  color: var(--cw-gold);
  font-weight: 400;
}
.cw-hero p.cw-hero-lead {
  font-size: 19px;
  line-height: 1.55;
  color: rgba(248,244,233,.85);
  max-width: 560px;
  margin-bottom: 36px;
}

.cw-hero-search {
  background: var(--cw-cream);
  border-radius: var(--cw-radius-lg);
  padding: 8px;
  display: flex;
  gap: 8px;
  box-shadow: var(--cw-shadow);
  max-width: 580px;
  position: relative;
}
.cw-hero-search::before {
  /* Corner ornament top-left */
  content: '';
  position: absolute;
  top: -8px; left: -8px;
  width: 28px; height: 28px;
  border-top: 2px solid var(--cw-gold);
  border-left: 2px solid var(--cw-gold);
}
.cw-hero-search::after {
  /* Corner ornament bottom-right */
  content: '';
  position: absolute;
  bottom: -8px; right: -8px;
  width: 28px; height: 28px;
  border-bottom: 2px solid var(--cw-gold);
  border-right: 2px solid var(--cw-gold);
}
.cw-hero-search input {
  flex: 1;
  border: 0;
  padding: 14px 16px;
  font-family: var(--cw-font-body);
  font-size: 16px;
  background: transparent;
  color: var(--cw-navy);
  outline: none;
}
.cw-hero-search input::placeholder { color: rgba(11,37,69,.45); }
.cw-hero-search button {
  background: var(--cw-navy);
  color: var(--cw-cream);
  border: 0;
  padding: 0 24px;
  border-radius: var(--cw-radius);
  font-family: var(--cw-font-body);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.cw-hero-search button:hover { background: var(--cw-red); }

.cw-hero-stats {
  display: flex;
  gap: 28px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.cw-hero-stat {
  border-left: 2px solid var(--cw-gold);
  padding-left: 14px;
}
.cw-hero-stat .num {
  font-family: var(--cw-font-display);
  font-size: 34px;
  color: var(--cw-cream);
  display: block;
  line-height: 1;
  font-weight: 500;
}
.cw-hero-stat .label {
  font-family: var(--cw-font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cw-gold);
  margin-top: 6px;
  display: block;
}

/* Hero Passport Card visual */
.cw-passport-card {
  position: relative;
  background: linear-gradient(135deg, var(--cw-cream) 0%, #ebe2c9 100%);
  border-radius: var(--cw-radius-lg);
  padding: 40px 36px;
  color: var(--cw-navy);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.5);
  transform: rotate(-2deg);
  border: 2px solid rgba(201,169,97,.5);
}
.cw-passport-card::before {
  /* Stripe top */
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 38px;
  background:
    linear-gradient(180deg, var(--cw-red) 50%, var(--cw-red-soft) 50%);
  border-radius: var(--cw-radius-lg) var(--cw-radius-lg) 0 0;
}
.cw-passport-card .cw-pass-eagle {
  position: absolute;
  top: 50px;
  right: 30px;
  font-size: 60px;
  opacity: .12;
  color: var(--cw-navy);
}
.cw-passport-card h3 {
  margin: 30px 0 6px;
  font-size: 24px;
  letter-spacing: 0.04em;
}
.cw-passport-card .cw-pass-id {
  font-family: var(--cw-font-mono);
  font-size: 12px;
  color: var(--cw-gold-deep);
  letter-spacing: 0.1em;
  margin-bottom: 28px;
}
.cw-passport-card dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 18px;
  font-family: var(--cw-font-mono);
  font-size: 13px;
  margin: 0 0 24px 0;
}
.cw-passport-card dl dt {
  color: var(--cw-text-soft);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 10px;
}
.cw-passport-card dl dd {
  margin: 0;
  color: var(--cw-navy);
  font-weight: 600;
}
.cw-passport-card .cw-stamp {
  position: absolute;
  bottom: 24px;
  right: 24px;
  width: 110px;
  height: 110px;
  border: 2.5px solid var(--cw-red);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--cw-red);
  font-family: var(--cw-font-mono);
  font-size: 11px;
  text-align: center;
  line-height: 1.1;
  letter-spacing: 0.08em;
  transform: rotate(-12deg);
  opacity: .85;
}
.cw-passport-card .cw-stamp small {
  display: block;
  font-size: 8px;
  letter-spacing: 0.16em;
  margin-top: 4px;
  font-weight: 700;
}

/* ============================================================
   06. SECTION TITLES
   ============================================================ */
.cw-section {
  padding: 90px 0;
  position: relative;
}
.cw-section.cw-section-light {
  background: var(--cw-cream);
}
.cw-section.cw-section-cream {
  background: var(--cw-cream-deep);
}
.cw-section.cw-section-navy {
  background: var(--cw-navy);
  color: var(--cw-cream);
}
.cw-section.cw-section-navy h2,
.cw-section.cw-section-navy h3 {
  color: var(--cw-cream);
}

.cw-section-head {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}
.cw-section-head h2 {
  font-size: clamp(32px, 4vw, 52px);
  margin: 14px 0 18px;
}
.cw-section-head p {
  color: var(--cw-text-soft);
  font-size: 17px;
  line-height: 1.6;
}
.cw-section-navy .cw-section-head p {
  color: rgba(248,244,233,.75);
}

/* ============================================================
   07. CITY GRID — Major destinations
   ============================================================ */
.cw-city-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 1024px) { .cw-city-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .cw-city-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .cw-city-grid { grid-template-columns: 1fr; } }

.cw-city-card {
  background: var(--cw-cream);
  border: 1px solid var(--cw-line);
  border-radius: var(--cw-radius-lg);
  padding: 24px 22px;
  display: block;
  color: var(--cw-navy);
  position: relative;
  transition: all .25s ease;
  overflow: hidden;
}
.cw-city-card::before {
  /* Gold corner stripe */
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 60px; height: 60px;
  background:
    linear-gradient(135deg, var(--cw-gold) 0 14px, transparent 14px);
  opacity: 0;
  transition: opacity .25s;
}
.cw-city-card:hover {
  transform: translateY(-3px);
  border-color: var(--cw-gold);
  box-shadow: var(--cw-shadow-sm);
  color: var(--cw-navy);
}
.cw-city-card:hover::before { opacity: 1; }

.cw-city-card .cw-city-state {
  font-family: var(--cw-font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cw-gold-deep);
  display: block;
  margin-bottom: 6px;
}
.cw-city-card h3 {
  font-size: 22px;
  margin: 0 0 12px;
  font-weight: 500;
}
.cw-city-card .cw-city-count {
  font-family: var(--cw-font-mono);
  font-size: 13px;
  color: var(--cw-text-soft);
}
.cw-city-card .cw-city-count strong {
  font-size: 18px;
  color: var(--cw-red);
  font-weight: 600;
}
.cw-city-card .cw-city-arrow {
  position: absolute;
  bottom: 22px;
  right: 22px;
  color: var(--cw-navy);
  transition: transform .25s;
  opacity: .5;
}
.cw-city-card:hover .cw-city-arrow {
  transform: translateX(4px);
  opacity: 1;
  color: var(--cw-red);
}

/* ============================================================
   08. SERVICE / PROCEDURE GRID
   ============================================================ */
.cw-service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 900px) { .cw-service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cw-service-grid { grid-template-columns: 1fr; } }

.cw-service-card {
  background: var(--cw-cream);
  border: 1px solid var(--cw-line);
  padding: 36px 30px;
  border-radius: var(--cw-radius-lg);
  position: relative;
  transition: all .25s;
}
.cw-service-card:hover {
  border-color: var(--cw-gold);
  transform: translateY(-3px);
  box-shadow: var(--cw-shadow);
}
.cw-service-card .cw-service-num {
  font-family: var(--cw-font-display);
  font-size: 56px;
  color: var(--cw-gold);
  position: absolute;
  top: 16px;
  right: 24px;
  opacity: .25;
  font-weight: 400;
  line-height: 1;
}
.cw-service-card .cw-service-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  background: var(--cw-navy);
  color: var(--cw-gold);
  border-radius: 50%;
  margin-bottom: 22px;
}
.cw-service-card h3 {
  font-size: 22px;
  margin: 0 0 12px;
  font-weight: 500;
}
.cw-service-card p {
  color: var(--cw-text-soft);
  line-height: 1.6;
  margin-bottom: 20px;
}
.cw-service-card .cw-service-link {
  font-family: var(--cw-font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cw-red);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap .2s;
}
.cw-service-card .cw-service-link:hover { gap: 14px; }

/* ============================================================
   09. COUNTRIES BAR — A–Z + Top
   ============================================================ */
.cw-countries-top {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-bottom: 50px;
}
@media (max-width: 1000px) { .cw-countries-top { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .cw-countries-top { grid-template-columns: repeat(2, 1fr); } }

.cw-country-pill {
  background: rgba(248,244,233,.05);
  border: 1px solid rgba(201,169,97,.2);
  padding: 16px 18px;
  border-radius: var(--cw-radius);
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all .2s;
}
.cw-section-navy .cw-country-pill:hover {
  background: rgba(201,169,97,.1);
  border-color: var(--cw-gold);
}
.cw-country-pill .cw-flag {
  font-size: 24px;
  line-height: 1;
}
.cw-country-pill .cw-country-info { line-height: 1.2; }
.cw-country-pill .cw-country-name {
  color: var(--cw-cream);
  font-weight: 500;
  font-size: 15px;
  display: block;
}
.cw-country-pill .cw-country-count {
  color: var(--cw-gold);
  font-family: var(--cw-font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.cw-az-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-top: 30px;
}
.cw-az-bar a {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(201,169,97,.3);
  border-radius: var(--cw-radius);
  font-family: var(--cw-font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--cw-cream);
  transition: all .15s;
}
.cw-az-bar a:hover,
.cw-az-bar a.is-active {
  background: var(--cw-gold);
  color: var(--cw-navy);
  border-color: var(--cw-gold);
}

/* ============================================================
   10. FAQ / Q&A
   ============================================================ */
.cw-faq {
  max-width: 820px;
  margin: 0 auto;
}
.cw-faq details {
  background: var(--cw-cream);
  border: 1px solid var(--cw-line);
  border-radius: var(--cw-radius-lg);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color .2s;
}
.cw-faq details[open] { border-color: var(--cw-gold); }
.cw-faq summary {
  padding: 20px 24px;
  cursor: pointer;
  font-family: var(--cw-font-display);
  font-size: 19px;
  color: var(--cw-navy);
  list-style: none;
  position: relative;
  padding-right: 60px;
  font-weight: 500;
}
.cw-faq summary::-webkit-details-marker { display: none; }
.cw-faq summary::after {
  content: '＋';
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--cw-font-display);
  font-size: 24px;
  color: var(--cw-gold);
  transition: transform .2s;
}
.cw-faq details[open] summary::after {
  content: '−';
}
.cw-faq .cw-faq-body {
  padding: 0 24px 22px;
  color: var(--cw-text-soft);
  line-height: 1.7;
}

/* ============================================================
   11. FOOTER
   ============================================================ */
.cw-site-footer {
  background: var(--cw-navy-deep);
  color: rgba(248,244,233,.7);
  padding: 70px 0 30px;
  border-top: 4px solid var(--cw-gold);
  position: relative;
}
.cw-site-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: repeating-linear-gradient(90deg,
    var(--cw-gold) 0 24px,
    var(--cw-navy-deep) 24px 28px);
  margin-top: -4px;
}

.cw-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 50px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(248,244,233,.1);
}
@media (max-width: 900px) {
  .cw-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}
@media (max-width: 540px) { .cw-footer-grid { grid-template-columns: 1fr; } }

.cw-footer-brand .cw-logo {
  margin-bottom: 18px;
}
.cw-footer-brand p {
  line-height: 1.7;
  margin-bottom: 18px;
  max-width: 360px;
  font-size: 14px;
}

.cw-footer-grid h4 {
  font-family: var(--cw-font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cw-gold);
  margin: 0 0 18px;
  font-weight: 500;
}
.cw-footer-grid ul {
  list-style: none;
  padding: 0; margin: 0;
}
.cw-footer-grid ul li { margin-bottom: 10px; }
.cw-footer-grid ul a {
  color: rgba(248,244,233,.7);
  font-size: 14px;
  transition: color .15s;
}
.cw-footer-grid ul a:hover { color: var(--cw-gold); }

.cw-footer-bottom {
  padding-top: 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: var(--cw-font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
}
.cw-footer-bottom .cw-disclaimer {
  background: rgba(164,36,59,.12);
  border: 1px solid rgba(164,36,59,.3);
  padding: 10px 14px;
  border-radius: var(--cw-radius);
  color: rgba(248,244,233,.75);
  font-size: 11px;
  max-width: 100%;
}

/* ============================================================
   12. CONSULATE/CITY/COUNTRY LISTING CARDS
   ============================================================ */
.cw-listing-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cw-listing-card {
  background: var(--cw-cream);
  border: 1px solid var(--cw-line);
  border-left: 4px solid var(--cw-gold);
  border-radius: var(--cw-radius-lg);
  padding: 22px 26px;
  display: block;
  color: var(--cw-navy);
  transition: all .2s;
  position: relative;
}
.cw-listing-card:hover {
  transform: translateX(4px);
  border-left-color: var(--cw-red);
  box-shadow: var(--cw-shadow-sm);
  color: var(--cw-navy);
}
.cw-listing-card .cw-listing-meta {
  font-family: var(--cw-font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cw-gold-deep);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cw-listing-card h3 {
  font-size: 20px;
  margin: 0 0 6px;
  font-weight: 500;
  color: var(--cw-navy);
}
.cw-listing-card .cw-listing-cta {
  color: var(--cw-red);
  font-family: var(--cw-font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ============================================================
   13. BREADCRUMBS
   ============================================================ */
.cw-breadcrumb {
  font-family: var(--cw-font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--cw-text-soft);
  padding: 18px 0;
  border-bottom: 1px solid var(--cw-line-soft);
  margin-bottom: 30px;
}
.cw-breadcrumb a { color: var(--cw-navy); }
.cw-breadcrumb a:hover { color: var(--cw-red); }
.cw-breadcrumb .sep { color: var(--cw-gold); margin: 0 8px; }

/* ============================================================
   14. SINGLE POST / FICHA DETAIL
   ============================================================ */
.cw-ficha-header {
  background: var(--cw-navy);
  color: var(--cw-cream);
  padding: 60px 0 50px;
  position: relative;
  overflow: hidden;
}
.cw-ficha-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 80% 20%, rgba(201,169,97,.1), transparent 40%);
  pointer-events: none;
}
.cw-ficha-header .cw-wrap { position: relative; z-index: 2; }
.cw-ficha-header h1 {
  color: var(--cw-cream);
  font-size: clamp(28px, 4vw, 44px);
  margin: 8px 0 16px;
  font-weight: 500;
}
.cw-ficha-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  font-family: var(--cw-font-mono);
  font-size: 13px;
  color: rgba(248,244,233,.8);
  margin-top: 24px;
}
.cw-ficha-meta div { display: flex; gap: 8px; align-items: center; }
.cw-ficha-meta strong { color: var(--cw-gold); font-weight: 500; }

.cw-ficha-content {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 50px;
  margin: 50px auto;
  max-width: var(--cw-container);
  padding: 0 24px;
}
@media (max-width: 900px) {
  .cw-ficha-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

.cw-ficha-content article {
  line-height: 1.75;
  font-size: 16.5px;
}
.cw-ficha-content article h2 {
  font-size: 30px;
  margin: 40px 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--cw-line);
}
.cw-ficha-content article h3 {
  font-size: 22px;
  margin: 28px 0 12px;
}
.cw-ficha-content article ul,
.cw-ficha-content article ol {
  padding-left: 22px;
  margin: 14px 0;
}
.cw-ficha-content article li { margin-bottom: 8px; }
.cw-ficha-content article a { color: var(--cw-red); border-bottom: 1px dotted var(--cw-red-soft); }

.cw-ficha-sidebar {
  position: sticky;
  top: 24px;
  align-self: start;
}
.cw-sidebar-card {
  background: var(--cw-cream);
  border: 1px solid var(--cw-line);
  border-radius: var(--cw-radius-lg);
  padding: 24px;
  margin-bottom: 18px;
}
.cw-sidebar-card h4 {
  font-family: var(--cw-font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cw-gold-deep);
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--cw-line-soft);
}
.cw-sidebar-card dl {
  margin: 0;
  font-size: 14px;
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 14px;
}
.cw-sidebar-card dt {
  color: var(--cw-text-soft);
  font-family: var(--cw-font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  align-self: start;
  padding-top: 2px;
}
.cw-sidebar-card dd {
  margin: 0;
  color: var(--cw-navy);
  font-weight: 500;
}

/* ============================================================
   15. AD ZONES (AdSense container styling)
   ============================================================ */
.cw-ad {
  margin: 30px auto;
  text-align: center;
  max-width: 100%;
  overflow: hidden;
}
.cw-ad-label {
  display: block;
  font-family: var(--cw-font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--cw-text-soft);
  margin-bottom: 8px;
  opacity: .5;
}

/* ============================================================
   16. ANIMATIONS
   ============================================================ */
@keyframes cw-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes cw-fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.cw-anim-fadeup {
  animation: cw-fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}
.cw-anim-fadeup.delay-1 { animation-delay: .1s; }
.cw-anim-fadeup.delay-2 { animation-delay: .2s; }
.cw-anim-fadeup.delay-3 { animation-delay: .3s; }
.cw-anim-fadeup.delay-4 { animation-delay: .4s; }

.cw-stamp {
  animation: cw-rotate 60s linear infinite;
}

/* ============================================================
   17. ACCESSIBILITY + PRINT
   ============================================================ */
*:focus-visible {
  outline: 2px solid var(--cw-gold);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .cw-site-header, .cw-site-footer, .cw-ad { display: none !important; }
}