:root {
  /* Brand Colors */
  --color-primary: #005d75;
  --color-accent: #4f9a94;
  --color-highlight: #d6b85a;

  /* Neutrals */
  --color-surface: #faf9f6;
  --color-surface-alt: #e9e5da;
  --color-border: #c4c2b9;

  /* Text */
  --color-text: #132257;
  --color-text-muted: #4a5568;
  --color-text-inverse: #faf9f6;

  /* Themed */
  --color-stamp: #f5f1e6;
  --color-bg: #faf9f6;
  --color-ink: #2c2a29;
  --color-complete: rgba(90, 78, 58, 0.48);

  /* Fonts */
  --font-heading: "Special Elite", serif;
  --font-body: "Open Sans", sans-serif;

  --tile-bg: #f5f1e6;
  --tile-complete: #005d75d4;
  --tile-incomplete: #ffffff;
  --tile-border: #c4c2b9;
  --card-border: #c4c2b9;
  --card-shadow: rgba(0, 0, 0, 0.15);
}

/* =========================
   Navigation
========================= */
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem; /* slightly smaller padding */
  width: 100%;
  box-sizing: border-box;
  background-color: #e3b748;
  font-family: var(--font-heading);
}

.main-nav {
  display: flex;
  gap: 1.5rem; /* smaller gap */
  flex-wrap: wrap; /* wrap if too many links */
  justify-content: flex-end;
  flex: 1;
}

.brand a {
  font-size: 1.3rem;
  font-weight: 700;
  color: #034f84;
  text-decoration: none;
}

.main-nav a {
  color: #034f84;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.main-nav a:hover {
  color: var(--color-accent);
}

/* Global Styles */
body {
  font-family: var(--font-body);
  margin: 0;
  background: var(--color-bg) url("/images/bg.jpg") no-repeat center/cover;
  color: var(--color-text);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  margin: 0;
}

h1 {
  font-size: 3rem;
  margin: 30px 0;
}
h2 {
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 5px;
}
h3 {
  font-size: 26px;
}
h4 {
  font-size: 14px;
  text-transform: uppercase;
}

/* Header / Hero */
header.home {
  background: url("/images/map-hero.jpg") no-repeat center/cover;
  color: #fff;
  text-align: center;
  padding: 100px 0;
  height: 20vh;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

header h1 {
  font-size: 3rem;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

header a.button,
.button {
  display: inline-block;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

header a.button {
  font-size: 14px;
  letter-spacing: 3px;
  margin-top: 32px;
}

.button {
  background: #fff;
  color: var(--color-primary);
  border: 2px dashed var(--color-primary);
  transform: rotate(-2deg);
}

.button:hover {
  background: var(--color-primary);
  color: navajowhite;
  transform: rotate(0deg) scale(1.05);
  border: 2px dashed #fff;
}

/* Grids */

.grid {
  display: grid;
  gap: 2rem;
  padding: 2rem;
  /* Keep generic grids flexible */
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.gallery-grid {
  /* Force exactly 3 columns max */
  grid-template-columns: repeat(3, 1fr);
  max-width: 1100px;
  margin-inline: auto;
}

.grid-3-columns {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(3, 1fr);
}

/* Responsive */
@media (max-width: 900px) {
  .grid-3-columns {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .grid-3-columns {
    grid-template-columns: 1fr;
  }
}

/* Optional: make it responsive */
@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}
section {
  padding: 70px 30px;
  max-width: 100%;
  margin: 0 auto;
}

.country-count {
  background-color: #035c76;
  padding: 1rem;
  border-radius: 10px;
  font-family: "Special Elite";
  border: 2px dashed white;
}
