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

:root {
  --brown:    #7B4B3A;
  --brown-dk: #5a3328;
  --cream:    #f9f6f2;
  --text:     #333333;
  --light:    #e8e0d8;
  --white:    #ffffff;
  --nav-bg:   #ffffff;
  --nav-border: #e8e0d8;
  --font-body: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-serif: Georgia, 'Times New Roman', serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  font-size: 16px;
  line-height: 1.7;
}

a { color: var(--brown); text-decoration: none; }
a:hover { color: var(--brown-dk); }

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

/* ── Navigation ── */
nav {
  background: var(--nav-bg);
  border-bottom: 1px solid var(--nav-border);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0 2rem;
}

nav .nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

nav .nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

nav .nav-logo img {
  height: 48px;
  width: auto;
}

nav .nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

nav .nav-logo-text .site-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--brown);
  letter-spacing: 0.02em;
}

nav .nav-logo-text .site-sub {
  font-size: 0.65rem;
  color: #999;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav ul a {
  color: #555;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.2s;
  text-decoration: none;
}

nav ul a:hover { color: var(--brown); }

/* ── Hero / Post Header ── */
.post-header {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--brown-dk);
  line-height: 0;
}

.post-header img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0.55;
}

.post-header-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  padding: 1rem 2rem;
  line-height: 1.3;
}

.post-header-text h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.post-header-text .post-date {
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 0.5rem;
  opacity: 0.85;
  font-family: var(--font-serif);
  font-style: italic;
}

/* ── Post Content ── */
.post-content {
  max-width: 1120px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}

.post-content h2 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
  text-decoration: underline;
  color: var(--brown);
  margin-bottom: 1.25rem;
}

.post-content p {
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  color: var(--text);
}

/* ── Photo Block ── */
.photo-block {
  margin: 2rem 0;
}

.photo-block img {
  width: 100%;
  height: auto;
  display: block;
  background: var(--cream);
}

figure.photo-block {
  margin: 2rem 0;
}

figure.photo-block figcaption {
  font-size: 0.88rem;
  color: #000;
  font-style: normal;
  margin-top: 0.5rem;
  line-height: 1.5;
}

.photo-caption {
  font-size: 0.82rem;
  color: #666;
  font-style: italic;
  padding: 0.5rem 0 0;
}

/* ── Homepage Hero ── */
.home-hero {
  width: 100%;
  position: relative;
  overflow: hidden;
  line-height: 0;
}

.home-hero img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-text {
  position: absolute;
  top: 18%;
  left: 30%;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
  white-space: nowrap;
}

.hero-text h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 400;
  color: #2c2c3e;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.hero-text p {
  font-family: var(--font-serif);
  font-size: clamp(0.85rem, 1.6vw, 1.15rem);
  font-style: italic;
  color: #2c2c3e;
  margin-top: 0.2rem;
}

/* ── About Section ── */
.about-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 2rem 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about-section > .contact-block {
  padding-top: 0;
}

.about-section p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text);
}

.contact-block {
  text-align: center;
}

.contact-block p {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--brown);
  font-style: italic;
  margin-bottom: 1.25rem;
}

.contact-icons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.contact-icons a {
  color: #888;
  transition: color 0.2s;
  display: flex;
  align-items: center;
}

.contact-icons a:hover { color: var(--brown); }

.contact-icons svg {
  width: 28px;
  height: 28px;
}

.subscribe-block {
  margin-top: 0;
  text-align: center;
}

.subscribe-block p {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--brown);
  font-style: italic;
  margin-bottom: 1rem;
}

.subscribe-form {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0.5rem;
}

.subscribe-input-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.subscribe-btn-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.subscribe-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
  min-height: 1.5rem;
}

.subscribe-icon {
  color: #888;
  display: flex;
  align-items: center;
  transition: color 0.2s;
}

.subscribe-icon:hover { color: var(--brown); }

.subscribe-icon svg {
  width: 22px;
  height: 22px;
}

.subscribe-form input[type="email"] {
  padding: 0.6rem 1rem;
  border: 1px solid #c8b8ae;
  border-radius: 4px;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--text);
  background: #fff;
  width: 100%;
  outline: none;
}

.subscribe-form input[type="email"]:focus {
  border-color: var(--brown);
}

.subscribe-form button {
  padding: 0.6rem 1.4rem;
  background: var(--brown);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s;
}

.subscribe-form button:hover {
  background: var(--brown-dk);
}

.subscribe-msg {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  min-height: 1.2em;
  text-align: center;
}

.subscribe-msg.success { color: #4a7c59; }
.subscribe-msg.error   { color: #c0392b; }

@media (max-width: 700px) {
  .about-section { grid-template-columns: 1fr; gap: 2rem; }
}

/* ── Map Section ── */
.map-section {
  padding: 3rem 2rem;
  background: var(--cream);
}

.map-section h2 {
  text-align: center;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 2rem;
}

#world-map {
  width: 100%;
  max-width: 75vw;
  height: 620px;
  margin: 0 auto;
  display: block;
}

@media (max-width: 700px) {
  #world-map { height: 280px; max-width: 100%; }
  .posts-section { max-width: 100%; }
}

/* ── Recent Posts Grid ── */
.posts-section {
  max-width: 75vw;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.posts-section h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 2rem;
  text-align: center;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 2rem;
}

.post-card {
  border-radius: 2px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}

.post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.post-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.post-card-body {
  padding: 1.2rem 1.4rem;
}

.post-card-body h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 0.3rem;
}

.post-card-body .date {
  font-size: 0.75rem;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ── Breadcrumb ── */
.breadcrumb {
  font-size: 0.82rem;
  color: #999;
  margin-bottom: 2rem;
  letter-spacing: 0.03em;
}

.breadcrumb a { color: var(--brown); text-decoration: none; }
.breadcrumb a:hover { color: var(--brown-dk); }
.breadcrumb span { margin: 0 0.4rem; }

/* ── Country Index Cards ── */
.country-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2.5rem;
}

.country-card {
  position: relative;
  background: var(--white);
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  border-radius: 2px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.country-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.country-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.country-card-body {
  padding: 1.2rem 1.4rem 1.6rem;
}

.country-card-body h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: 0.2rem;
}

.country-card-body h3 a {
  color: var(--text);
  text-decoration: none;
}

/* Whole card is clickable through the title link */
.country-card-body h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.country-card-body h3 a:hover { color: var(--brown); }

.country-card-body .date {
  font-size: 0.75rem;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.country-card-body p {
  font-size: 1rem;
  line-height: 1.6;
  color: #555;
  margin-bottom: 0.75rem;
}

.read-more {
  font-size: 0.92rem;
  color: var(--brown);
  font-weight: 500;
  text-decoration: none;
}

.read-more:hover { color: var(--brown-dk); }

/* ── Video Block ── */
.video-block {
  margin: 2rem 0;
  aspect-ratio: 16 / 9;
}

.video-block iframe {
  width: 100%;
  height: 100%;
  display: block;
}

/* ── Post Nav ── */
.post-nav {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--nav-border);
}

.post-nav a {
  font-size: 0.85rem;
  color: var(--brown);
  text-decoration: none;
  letter-spacing: 0.04em;
}

.post-nav a:hover { color: var(--brown-dk); }

/* ── Footer ── */
footer {
  background: var(--cream);
  border-top: 1px solid var(--nav-border);
  color: #888;
  text-align: center;
  padding: 2rem;
  font-size: 0.8rem;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .carousel-slide img { height: 260px; }
  nav ul { gap: 1rem; }
  nav ul a { font-size: 0.75rem; }
}

/* ── Nav Search ── */
.nav-right {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-search {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-search input[type="search"] {
  width: 175px;
  padding: 0.45rem 2.1rem 0.45rem 0.8rem;
  border: 1px solid #c8b8ae;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text);
  background: var(--white);
  outline: none;
  transition: width 0.2s, border-color 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

.nav-search input[type="search"]:focus {
  width: 220px;
  border-color: var(--brown);
}

.nav-search input[type="search"]::placeholder { color: #999; }

.nav-search button {
  position: absolute;
  right: 0.35rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 0.3rem;
  color: #999;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.nav-search button:hover { color: var(--brown); }

.nav-search button svg { width: 16px; height: 16px; }

.nav-search .search-results {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 350px;
  max-width: 92vw;
  max-height: 70vh;
  overflow-y: auto;
  background: var(--white);
  border: 1px solid var(--nav-border);
  border-radius: 6px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.14);
  z-index: 200;
  text-align: left;
}

.search-result {
  display: block;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--nav-border);
  text-decoration: none;
}

.search-result:last-of-type { border-bottom: none; }

.search-result:hover,
.search-result.active { background: var(--cream); }

.search-result-title {
  display: block;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--brown);
  line-height: 1.3;
}

.search-result-region {
  display: block;
  font-size: 0.68rem;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.1rem;
}

.search-result-snippet {
  display: block;
  font-size: 0.8rem;
  color: #666;
  line-height: 1.45;
  margin-top: 0.25rem;
}

.search-no-results {
  padding: 0.9rem 1rem;
  font-size: 0.85rem;
  color: #666;
}

.search-see-all {
  display: block;
  padding: 0.65rem 1rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--brown);
  background: var(--cream);
  text-decoration: none;
}

.search-see-all:hover { color: var(--brown-dk); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ── Search Results Page ── */
.search-page-results .search-result {
  border: 1px solid var(--nav-border);
  border-radius: 6px;
  margin-bottom: 1rem;
  padding: 1rem 1.2rem;
}

.search-page-results .search-result-title { font-size: 1.05rem; }
.search-count { color: #888; font-size: 0.85rem; }

@media (max-width: 900px) {
  nav .nav-inner {
    flex-wrap: wrap;
    height: auto;
    padding: 0.6rem 0;
    row-gap: 0.5rem;
  }
  .nav-right { gap: 1rem; }
  .nav-search input[type="search"] { width: 150px; }
  .nav-search input[type="search"]:focus { width: 175px; }
}

@media (max-width: 600px) {
  .nav-right {
    width: 100%;
    justify-content: space-between;
  }
  .nav-search { flex: 0 1 auto; }
  .nav-search input[type="search"],
  .nav-search input[type="search"]:focus { width: 140px; }
  .nav-search .search-results { right: -0.5rem; }
}
