/* ═══════════════════════════════════════════════════════════════════════════
   Nos Vamos — Blog de viajes de mochileros
   Rediseño v2 — Las fotos son la estrella
   ═══════════════════════════════════════════════════════════════════════════ */

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

:root {
  /* Colores */
  --c-primary: #1a5276;
  --c-primary-light: #2980b9;
  --c-accent: #e67e22;
  --c-accent-dark: #d35400;
  --c-dark: #1a1a2e;
  --c-text: #2d3436;
  --c-text-light: #636e72;
  --c-text-lighter: #b2bec3;
  --c-bg: #fefefe;
  --c-bg-warm: #f8f4f0;
  --c-bg-dark: #1a1a2e;
  --c-border: #e8e4e0;
  --c-overlay: rgba(26, 26, 46, 0.55);

  /* Tipografía */
  --f-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --f-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --f-size: 1rem;
  --f-lh: 1.72;

  /* Espaciado */
  --sp-xs: 0.5rem;
  --sp-sm: 1rem;
  --sp-md: 1.5rem;
  --sp-lg: 2.5rem;
  --sp-xl: 4rem;
  --sp-2xl: 6rem;

  /* Otros */
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.1);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.12);
  --transition: 0.25s ease;
  --max-w: 1200px;
  --content-w: 740px;
}

html { font-size: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--f-body);
  font-size: var(--f-size);
  line-height: var(--f-lh);
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--c-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--c-accent); }

h1, h2, h3, h4 { font-family: var(--f-heading); font-weight: 700; line-height: 1.25; color: var(--c-dark); }

/* ─── Layout ────────────────────────────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--sp-sm); }
@media (min-width: 768px) { .container { padding: 0 var(--sp-lg); } }

.section { padding: var(--sp-xl) 0; }
.section--warm { background: var(--c-bg-warm); }
.section--dark { background: var(--c-bg-dark); color: #fff; }
.section--dark h2, .section--dark h3 { color: #fff; }

.section-header { text-align: center; margin-bottom: var(--sp-lg); }
.section-title { font-size: 1.75rem; margin-bottom: var(--sp-xs); }
.section-subtitle { color: var(--c-text-light); font-size: 1.05rem; }
@media (min-width: 768px) { .section-title { font-size: 2.25rem; } }

/* ─── Header ────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-border);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.site-logo { display: flex; align-items: center; gap: 0.4rem; }
.site-logo-name {
  font-family: var(--f-heading); font-weight: 700; font-size: 1.35rem;
  color: var(--c-dark); letter-spacing: -0.02em;
}
.site-logo-name:hover { color: var(--c-accent); }
.site-logo-dot {
  display: inline-block; width: 8px; height: 8px;
  background: var(--c-accent); border-radius: 50%;
}

/* Mobile menu toggle */
.menu-toggle {
  display: flex; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px; z-index: 110;
}
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--c-dark); transition: all var(--transition); }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Nav */
.site-nav {
  display: none; position: absolute; top: 60px; left: 0; right: 0;
  background: #fff; border-bottom: 1px solid var(--c-border); box-shadow: var(--shadow-md);
}
.site-nav.is-open { display: block; }
.nav-list { list-style: none; padding: var(--sp-sm); }
.nav-item { border-bottom: 1px solid var(--c-border); }
.nav-item:last-child { border-bottom: none; }
.nav-link { display: block; padding: 0.75rem 0; color: var(--c-dark); font-weight: 500; font-size: 0.95rem; }
.nav-link:hover { color: var(--c-accent); }

/* Dropdown mobile */
.dropdown { display: none; padding: 0 0 var(--sp-sm) var(--sp-sm); }
.nav-item--dropdown.is-open .dropdown { display: block; }
.dropdown-heading {
  font-family: var(--f-heading); font-size: 0.8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--c-accent); margin-bottom: 0.4rem; display: block;
}
.dropdown ul { list-style: none; margin-bottom: var(--sp-sm); }
.dropdown ul a { display: block; padding: 0.25rem 0; color: var(--c-text); font-size: 0.88rem; }
.dropdown ul a:hover { color: var(--c-accent); }
.dropdown ul small { color: var(--c-text-lighter); font-size: 0.78rem; }

@media (min-width: 768px) {
  .menu-toggle { display: none; }
  .site-nav { display: flex; align-items: center; position: static; border: 0; box-shadow: none; background: transparent; }
  .nav-list { display: flex; gap: 0; padding: 0; align-items: center; }
  .nav-item { border: 0; }
  .nav-link { padding: 0.5rem 0.9rem; font-size: 0.9rem; }
  .dropdown {
    display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
    background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg); padding: var(--sp-md); min-width: 640px; z-index: 200;
  }
  .nav-item--dropdown:hover .dropdown,
  .nav-item--dropdown:focus-within .dropdown { display: block; }
  .dropdown-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--sp-md);
  }
}
@media (min-width: 1024px) { .dropdown { min-width: 780px; } }

/* ─── Hero ──────────────────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  height: 70vh; min-height: 420px; max-height: 650px;
}
.hero-slider {
  position: absolute; inset: 0; display: flex;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.hero-slide {
  flex: 0 0 100%; position: relative;
}
.hero-slide img {
  width: 100%; height: 100%; object-fit: cover;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.5) 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: var(--sp-lg);
}
.hero h1 {
  font-family: var(--f-heading); font-size: 2.5rem; color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4); margin-bottom: var(--sp-xs);
}
.hero-subtitle {
  font-size: 1.1rem; color: rgba(255,255,255,0.9);
  text-shadow: 0 1px 6px rgba(0,0,0,0.3); margin-bottom: var(--sp-md);
}
.hero-caption {
  position: absolute; bottom: var(--sp-sm); right: var(--sp-sm);
  background: rgba(0,0,0,0.5); color: #fff; padding: 0.3rem 0.8rem;
  border-radius: 999px; font-size: 0.78rem; font-weight: 500;
}
.hero-dots {
  position: absolute; bottom: var(--sp-md); left: 50%; transform: translateX(-50%);
  display: flex; gap: 0.5rem; z-index: 10;
}
.hero-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,0.5); border: none; cursor: pointer;
  transition: all var(--transition);
}
.hero-dot.active { background: #fff; transform: scale(1.2); }

@media (min-width: 768px) {
  .hero { height: 75vh; max-height: 700px; }
  .hero h1 { font-size: 3.5rem; }
  .hero-subtitle { font-size: 1.25rem; }
}

/* ─── Buttons ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-block; padding: 0.7rem 1.6rem; border-radius: 999px;
  font-weight: 600; font-size: 0.9rem; transition: all var(--transition);
  cursor: pointer; border: none;
}
.btn--primary { background: var(--c-accent); color: #fff; }
.btn--primary:hover { background: var(--c-accent-dark); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn--outline { background: transparent; border: 2px solid #fff; color: #fff; }
.btn--outline:hover { background: #fff; color: var(--c-dark); }

/* ─── Post Grid ─────────────────────────────────────────────────────────── */
.post-grid { display: grid; gap: var(--sp-md); grid-template-columns: 1fr; }
@media (min-width: 540px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .post-grid { grid-template-columns: repeat(3, 1fr); } }
.post-grid--small { gap: var(--sp-sm); }

/* ─── Post Card ─────────────────────────────────────────────────────────── */
.post-card {
  border-radius: var(--radius-lg); overflow: hidden;
  background: #fff; box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.post-card:hover {
  box-shadow: var(--shadow-md); transform: translateY(-4px);
}
.post-card-link { display: block; color: inherit; }
.post-card-image {
  aspect-ratio: 16 / 10; overflow: hidden; background: var(--c-bg-warm);
}
.post-card-image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
}
.post-card:hover .post-card-image img { transform: scale(1.06); }
.post-card-body { padding: var(--sp-sm) var(--sp-sm) var(--sp-md); }
.post-card-title {
  font-family: var(--f-heading); font-size: 1.05rem; line-height: 1.35;
  margin-bottom: 0.4rem; color: var(--c-dark);
}
.post-card-meta {
  font-size: 0.82rem; color: var(--c-text-light);
  display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center;
}
.post-card-country {
  background: var(--c-primary); color: #fff; padding: 0.15rem 0.55rem;
  border-radius: 999px; font-size: 0.72rem; font-weight: 600;
}

/* ─── Guides Grid ───────────────────────────────────────────────────────── */
.guides-grid {
  display: grid; gap: var(--sp-sm);
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 768px) { .guides-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .guides-grid { grid-template-columns: repeat(5, 1fr); } }

.guide-card {
  position: relative; display: block; border-radius: var(--radius-lg);
  overflow: hidden; aspect-ratio: 3 / 4; color: #fff;
  transition: all var(--transition);
}
.guide-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: #fff; }
.guide-card-bg {
  position: absolute; inset: 0;
}
.guide-card-bg img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.guide-card:hover .guide-card-bg img { transform: scale(1.08); }
.guide-card-content {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.1) 50%, transparent 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: var(--sp-sm);
}
.guide-card-title {
  font-family: var(--f-heading); font-size: 1.15rem; font-weight: 700;
  line-height: 1.2; text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
.guide-card-desc {
  font-size: 0.78rem; opacity: 0.85; margin-top: 0.15rem;
}

/* Guides page — larger cards */
.guides-grid--page {
  grid-template-columns: repeat(2, 1fr);
}
.guides-grid--page .guide-card { aspect-ratio: 3 / 4; }
@media (min-width: 768px) {
  .guides-grid--page { grid-template-columns: repeat(3, 1fr); }
  .guides-grid--page .guide-card { aspect-ratio: 2 / 3; }
}
@media (min-width: 1024px) {
  .guides-grid--page { grid-template-columns: repeat(4, 1fr); }
}

/* ─── Country Cards (Destinations) ──────────────────────────────────────── */
.country-grid {
  display: grid; gap: var(--sp-sm);
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 768px) { .country-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .country-grid { grid-template-columns: repeat(4, 1fr); } }

.country-card {
  position: relative; display: block; border-radius: var(--radius-lg);
  overflow: hidden; aspect-ratio: 4 / 3; color: #fff;
  transition: all var(--transition);
}
.country-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); color: #fff; }
.country-card-bg {
  position: absolute; inset: 0; background: var(--c-primary);
}
.country-card-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; transition: all 0.4s ease; }
.country-card:hover .country-card-bg img { opacity: 1; transform: scale(1.05); }
.country-card-content {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.15) 60%, transparent 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: var(--sp-sm);
}
.country-card-name {
  font-family: var(--f-heading); font-size: 1.25rem; font-weight: 700;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
.country-card-count { font-size: 0.8rem; opacity: 0.85; }
.country-card-cities { margin-top: 0.3rem; font-size: 0.72rem; opacity: 0.7; }
.country-card-cities span:not(:last-child)::after { content: " · "; }

/* Continent headings */
.continent-group { margin-bottom: var(--sp-lg); }
.continent-title {
  font-family: var(--f-heading); font-size: 1.5rem;
  margin-bottom: var(--sp-sm); padding-bottom: var(--sp-xs);
  border-bottom: 3px solid var(--c-accent); display: inline-block;
}

/* Country cards fallback (text-only, no image) */
.country-card--text {
  aspect-ratio: auto; background: var(--c-bg-warm);
  border: 1px solid var(--c-border); padding: var(--sp-sm);
}
.country-card--text .country-card-name { color: var(--c-dark); text-shadow: none; font-size: 1.1rem; }
.country-card--text .country-card-count { color: var(--c-text-light); }
.country-card--text:hover { border-color: var(--c-accent); }

/* ─── Post (article page) ──────────────────────────────────────────────── */
.post { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--sp-sm); }
.post-header { max-width: var(--content-w); margin: var(--sp-lg) auto var(--sp-md); }
.post-header h1 { font-size: 1.75rem; line-height: 1.25; margin-bottom: 0.6rem; }
.post-meta {
  font-size: 0.85rem; color: var(--c-text-light);
  display: flex; flex-wrap: wrap; gap: 0.25rem; align-items: center;
}
.post-meta-sep { margin: 0 0.2rem; }
.post-meta-country { color: var(--c-primary); font-weight: 600; }

.post-hero {
  max-width: var(--content-w); margin: 0 auto var(--sp-lg);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-md);
}
.post-hero img { width: 100%; }

.post-content { max-width: var(--content-w); margin: 0 auto; }
.post-content h2 { font-size: 1.35rem; margin: var(--sp-lg) 0 var(--sp-sm); }
.post-content h3 { font-size: 1.15rem; margin: var(--sp-md) 0 var(--sp-xs); }
.post-content p { margin-bottom: 1.2rem; }
.post-content a { color: var(--c-primary); text-decoration: underline; text-decoration-color: var(--c-accent); text-underline-offset: 3px; }
.post-content a:hover { color: var(--c-accent); }
.post-content ul, .post-content ol { margin-bottom: 1.2rem; padding-left: 1.5rem; }
.post-content li { margin-bottom: 0.4rem; }
.post-content blockquote {
  border-left: 4px solid var(--c-accent); padding: var(--sp-sm) var(--sp-md);
  margin: var(--sp-md) 0; background: var(--c-bg-warm); border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--c-text-light); font-style: italic;
}
.post-content strong { color: var(--c-dark); }

/* Figures */
.post-content figure { margin: var(--sp-md) 0; border-radius: var(--radius); overflow: hidden; }
.post-content figure img { width: 100%; border-radius: var(--radius); }
.post-content figcaption {
  font-size: 0.85rem; color: var(--c-text-light); text-align: center;
  padding: var(--sp-xs) 0; font-style: italic;
}

/* Embeds */
.post-content .video-embed,
.post-content .podcast-embed,
.post-content .activity-embed,
.post-content .map-embed,
.post-content .embed {
  position: relative; padding-bottom: 56.25%; height: 0;
  margin: var(--sp-md) 0; border-radius: var(--radius); overflow: hidden;
}
.post-content .video-embed iframe,
.post-content .podcast-embed iframe,
.post-content .activity-embed iframe,
.post-content .map-embed iframe,
.post-content .embed iframe {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none;
}
.post-content .podcast-embed { padding-bottom: 200px; }
.post-content .gallery {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem; margin: var(--sp-md) 0;
}
@media (min-width: 768px) {
  .post-header h1 { font-size: 2.25rem; }
  .post-content { font-size: 1.08rem; }
  .post-content h2 { font-size: 1.65rem; }
  .post-content .gallery { grid-template-columns: repeat(3, 1fr); }
}

/* Post footer (tags) */
.post-footer {
  max-width: var(--content-w); margin: var(--sp-lg) auto;
  padding-top: var(--sp-md); border-top: 1px solid var(--c-border);
  display: flex; flex-wrap: wrap; gap: var(--sp-xs);
}
.tag {
  display: inline-block; padding: 0.2rem 0.7rem; font-size: 0.8rem;
  border-radius: 999px; background: var(--c-primary); color: #fff;
  transition: background var(--transition);
}
.tag:hover { background: var(--c-accent); color: #fff; }
.tag--secondary { background: var(--c-bg-warm); color: var(--c-text-light); border: 1px solid var(--c-border); }

/* Related posts */
.related-posts {
  max-width: var(--max-w); margin: var(--sp-xl) auto;
  padding-top: var(--sp-lg); border-top: 1px solid var(--c-border);
}
.related-posts h2 { font-size: 1.35rem; margin-bottom: var(--sp-md); }

/* ─── Breadcrumbs ───────────────────────────────────────────────────────── */
.breadcrumbs {
  max-width: var(--content-w); margin: var(--sp-md) auto 0;
  font-size: 0.82rem; color: var(--c-text-light);
}
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.2rem; }
.breadcrumbs li::after { content: "›"; margin-left: 0.2rem; color: var(--c-text-lighter); }
.breadcrumbs li:last-child::after { display: none; }
.breadcrumbs a { color: var(--c-text-light); }
.breadcrumbs a:hover { color: var(--c-accent); }

/* ─── Page (static) ─────────────────────────────────────────────────────── */
.page { max-width: var(--content-w); margin: 0 auto; padding: var(--sp-lg) var(--sp-sm); }
.page-header h1 { font-size: 2rem; margin-bottom: var(--sp-sm); }
.page-content p { margin-bottom: 1.2rem; }
.page-content h2 { font-size: 1.35rem; margin: var(--sp-lg) 0 var(--sp-sm); }
.page-content a { text-decoration: underline; text-underline-offset: 3px; }
.page-content figure { margin: var(--sp-md) 0; }
.page-content figure img { border-radius: var(--radius); }

/* ─── Destination page ──────────────────────────────────────────────────── */
.destination { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--sp-sm); }
.destination-header { text-align: center; padding: var(--sp-lg) 0 var(--sp-md); }
.destination-header h1 { font-size: 2.25rem; margin-bottom: var(--sp-xs); }
.destination-count { color: var(--c-text-light); font-size: 1rem; }
.destination-cities { margin-bottom: var(--sp-lg); }
.city-grid { display: flex; flex-wrap: wrap; gap: var(--sp-xs); }
.city-card {
  display: flex; align-items: center; gap: 0.4rem;
  padding: 0.4rem 0.9rem; background: var(--c-bg-warm);
  border: 1px solid var(--c-border); border-radius: 999px;
  color: var(--c-text); font-size: 0.85rem; transition: all var(--transition);
}
.city-card:hover { background: var(--c-accent); color: #fff; border-color: var(--c-accent); }
.city-card-count { font-size: 0.72rem; color: var(--c-text-lighter); }
.city-card:hover .city-card-count { color: rgba(255,255,255,0.75); }

/* ─── Search ────────────────────────────────────────────────────────────── */
.search-toggle {
  background: none; border: none; cursor: pointer; padding: 0.4rem;
  color: var(--c-text-light); transition: color var(--transition);
}
.search-toggle:hover { color: var(--c-accent); }
.search-toggle svg { width: 20px; height: 20px; }

.search-modal {
  display: none; position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(4px);
  align-items: flex-start; justify-content: center; padding-top: 15vh;
}
.search-modal.is-open { display: flex; }
.search-box {
  background: #fff; border-radius: var(--radius-lg); padding: var(--sp-md);
  width: 90%; max-width: 560px; box-shadow: var(--shadow-lg);
}
.search-input {
  width: 100%; padding: 0.8rem 1rem; border: 2px solid var(--c-border);
  border-radius: var(--radius); font-size: 1.05rem; font-family: var(--f-body);
  outline: none; transition: border-color var(--transition);
}
.search-input:focus { border-color: var(--c-accent); }
.search-input::placeholder { color: var(--c-text-lighter); }
.search-results { margin-top: var(--sp-sm); max-height: 50vh; overflow-y: auto; }
.search-result-item {
  display: block; padding: 0.7rem 0; border-bottom: 1px solid var(--c-border);
  color: var(--c-text);
}
.search-result-item:hover { color: var(--c-accent); }
.search-result-item:last-child { border-bottom: none; }
.search-result-title { font-weight: 600; font-size: 0.95rem; }
.search-result-meta { font-size: 0.78rem; color: var(--c-text-light); }
.search-hint { font-size: 0.82rem; color: var(--c-text-lighter); margin-top: var(--sp-xs); }

/* ─── Footer ────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--c-bg-dark); color: rgba(255,255,255,0.8);
  padding: var(--sp-xl) 0 var(--sp-md); margin-top: var(--sp-xl);
}
.footer-grid { display: grid; gap: var(--sp-lg); margin-bottom: var(--sp-lg); }
.footer-logo {
  font-family: var(--f-heading); font-size: 1.5rem; font-weight: 700; color: #fff;
  margin-bottom: 0.4rem;
}
.footer-about p { font-size: 0.9rem; line-height: 1.6; margin-bottom: 0.4rem; }
.footer-contact a { color: var(--c-accent); font-weight: 500; }
.footer-contact a:hover { color: #fff; }
.footer-nav h3 {
  font-family: var(--f-heading); color: #fff; font-size: 1rem;
  margin-bottom: 0.6rem;
}
.footer-nav ul { list-style: none; }
.footer-nav a {
  display: block; padding: 0.2rem 0; color: rgba(255,255,255,0.65);
  font-size: 0.88rem;
}
.footer-nav a:hover { color: var(--c-accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: var(--sp-md);
  font-size: 0.82rem; color: rgba(255,255,255,0.4); text-align: center;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }

/* ─── 404 ───────────────────────────────────────────────────────────────── */
.page-404 { text-align: center; padding: var(--sp-2xl) var(--sp-sm); max-width: 600px; margin: 0 auto; }
.page-404 h1 { font-size: 5rem; color: var(--c-text-lighter); line-height: 1; margin-bottom: var(--sp-xs); }
.page-404 p { color: var(--c-text-light); margin-bottom: var(--sp-sm); }
.page-404-links { display: flex; gap: var(--sp-sm); justify-content: center; margin-top: var(--sp-md); }

/* ─── Utility ───────────────────────────────────────────────────────────── */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}
