* {
  box-sizing: border-box;
}

:root {
  --bg: #f6f2eb;
  --surface: #ffffff;
  --surface-soft: #fbf8f3;
  --text: #1c1b19;
  --muted: #6d675f;
  --accent: #9a7750;
  --line: rgba(28, 27, 25, 0.12);
  --line-soft: rgba(28, 27, 25, 0.07);
  --shadow: 0 20px 42px rgba(0, 0, 0, 0.08);
  --shadow-soft: 0 10px 24px rgba(0, 0, 0, 0.05);
  --max-width: 1240px;
  --radius: 22px;
  --radius-sm: 16px;
  --transition: 0.28s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Header */

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 30;
}

.navbar {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
  padding: 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: relative;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.logo img {
  width: auto;
  height: 48px;
  object-fit: contain;
}

.logo-text {
  color: #ffffff;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  color: #ffffff;
  font-size: 0.98rem;
  font-weight: 600;
  position: relative;
  transition: opacity var(--transition);
}

.nav-links a:hover {
  opacity: 0.82;
}

.menu-btn {
  display: none;
  border: 0;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  border-radius: 999px;
  padding: 12px 18px;
  font: inherit;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.menu-btn:hover {
  background: rgba(255, 255, 255, 0.24);
  transform: translateY(-1px);
}

/* Hero */

.hero-section {
  min-height: 100vh;
  background-image:
    linear-gradient(rgba(10, 12, 16, 0.38), rgba(10, 12, 16, 0.54)),
    url("images/hero.jpg");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}

.hero-overlay {
  width: 100%;
}

.hero-content {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
  padding-top: 120px;
  padding-bottom: 90px;
}

.hero-content-centered {
  text-align: center;
  max-width: 940px;
}

.hero-content h1 {
  margin: 0;
  font-size: clamp(2.9rem, 8vw, 6.4rem);
  line-height: 0.93;
  letter-spacing: -0.06em;
  color: #ffffff;
}

.hero-subtitle {
  margin: 22px auto 0;
  max-width: 680px;
  font-size: clamp(1.02rem, 2vw, 1.28rem);
  color: rgba(255, 255, 255, 0.94);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.22);
}

/* Shared sections */

main section:not(.hero-section) {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
  padding: 92px 0 0;
  position: relative;
}

main section:not(.hero-section)::before {
  content: "";
  display: block;
  width: 100%;
  max-width: 260px;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(28, 27, 25, 0.16),
    transparent
  );
  margin: 0 auto 42px;
}

main section.welcome-section::before {
  content: none;
}

.eyebrow {
  margin: 0 0 18px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.82rem;
  color: var(--accent);
}

.section-heading {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

/* Welcome */

.welcome-section {
  padding-top: 90px;
}

.welcome-text-block {
  max-width: 760px;
  margin: 0 auto;
  text-align: left;
}

.welcome-text-block h2 {
  margin: 0 0 22px;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.welcome-text-block p {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 1.05rem;
}

/* Continents */

.continents-section .section-heading {
  margin-bottom: 4px;
}

.continent-icons-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 26px;
  margin-top: 48px;
}

.continent-icon-card a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 12px 8px;
  border-radius: var(--radius-sm);
  transition: transform var(--transition), background var(--transition);
}

.continent-icon-card a:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.35);
}

.continent-icon {
  width: 100%;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.continent-icon img {
  max-width: 120px;
  max-height: 92px;
  object-fit: contain;
  filter: grayscale(1) opacity(0.7);
  transition: filter var(--transition), transform var(--transition);
}

.continent-icon-card a:hover .continent-icon img {
  filter: grayscale(0.3) opacity(0.9);
  transform: scale(1.03);
}

.continent-icon-card h3 {
  position: relative;
  margin: 0;
  padding-top: 20px;
  font-size: 1.3rem;
  font-weight: 400;
}

.continent-icon-card h3::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 64px;
  height: 1px;
  background: rgba(28, 27, 25, 0.2);
  transform: translateX(-50%);
}

/* Featured */

.featured-section .section-heading h2 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  margin-top: 46px;
}

.featured-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.featured-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.12);
}

.featured-card a {
  position: relative;
  display: block;
}

.featured-card img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.featured-card-content {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 22px;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.7),
    rgba(0, 0, 0, 0.04)
  );
  color: #ffffff;
}

.featured-label {
  margin: 0 0 8px;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.88;
}

.featured-card h3 {
  margin: 0;
  font-size: 1.9rem;
  letter-spacing: -0.03em;
}

/* Country preview */

.country-preview-layout {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 26px;
  margin-top: 42px;
}

.country-gallery-preview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.country-gallery-preview a {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition), box-shadow var(--transition);
}

.country-gallery-preview a:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.country-gallery-preview img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.country-preview-text {
  padding: 30px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.country-preview-text h3 {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 1.75rem;
  letter-spacing: -0.03em;
}

.country-preview-text p {
  color: var(--muted);
  font-size: 1.01rem;
}

.country-preview-text a {
  display: inline-block;
  margin-top: 14px;
  font-weight: 700;
  color: var(--text);
}

/* About */

.about-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
}

.about-image-block {
  display: flex;
  justify-content: flex-start;
}

.about-image-block img {
  width: min(100%, 420px);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.about-text-block {
  max-width: 720px;
  text-align: left;
}

.about-text-block h2 {
  margin: 0 0 22px;
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.about-text-block p {
  margin: 0 0 20px;
  max-width: 620px;
  color: var(--muted);
  font-size: 1.03rem;
}

.about-text-block a {
  font-weight: 700;
}

/* Footer / Contact */

.site-footer {
  margin-top: 96px;
  padding: 42px 20px 46px;
  background: #111111;
  color: rgba(255, 255, 255, 0.86);
  text-align: center;
}

.footer-contact {
  margin-bottom: 32px;
}

.footer-label {
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.72);
}

.footer-contact p,
.footer-meta p {
  margin: 8px 0;
}

.footer-meta {
  font-size: 0.95rem;
}

.site-footer a {
  color: #ffffff;
  text-decoration: underline;
}

/* Back to top */

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.9);
  color: #ffffff;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease,
    transform 0.25s ease,
    background 0.25s ease;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-2px);
  background: #111111;
}

/* Responsive */

@media (max-width: 1024px) {
  .continent-icons-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .featured-grid,
  .country-preview-layout,
  .about-layout {
    grid-template-columns: 1fr;
  }

  .about-image-block {
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .navbar {
    flex-wrap: wrap;
    padding: 22px 0;
  }

  .logo img {
    height: 40px;
  }

  .logo-text {
    font-size: 1.1rem;
  }

  .menu-btn {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 84px;
    left: 0;
    right: 0;
    z-index: 30;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 20px;
    border-radius: 18px;
    background: rgba(20, 20, 20, 0.92);
    backdrop-filter: blur(12px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
  }

  .nav-links.show {
    display: flex;
  }

  main section:not(.hero-section) {
    padding-top: 72px;
  }

  main section:not(.hero-section)::before {
    margin-bottom: 34px;
  }

  .continent-icons-grid,
  .featured-grid,
  .country-gallery-preview {
    grid-template-columns: 1fr;
  }

  .continent-icons-grid {
    gap: 18px;
  }

  .welcome-text-block h2,
  .about-text-block h2 {
    max-width: 100%;
  }
}

@media (max-width: 560px) {
  .hero-content h1 {
    font-size: clamp(2.6rem, 13vw, 4.4rem);
  }

  .hero-subtitle,
  .welcome-text-block p,
  .country-preview-text p,
  .about-text-block p {
    font-size: 0.98rem;
  }

  .continent-icons-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .welcome-text-block h2,
  .about-text-block h2 {
    font-size: 2.7rem;
  }

  .about-image-block img {
    width: min(100%, 260px);
  }

  .logo-text {
    display: none;
  }
}
