/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-bg: #faf9f6;
  --color-text: #2c2c2c;
  --color-text-light: #6b6b6b;
  --color-accent: #c0785c;
  --color-accent-dark: #a8624a;
  --color-white: #ffffff;
  --color-dark: #1a1a1a;
  --color-border: #e5e1db;
  --color-card-bg: #ffffff;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
  --radius: 12px;
  --transition: 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

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

ul {
  list-style: none;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }

.section-title {
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  text-align: center;
  color: var(--color-text-light);
  margin-bottom: 3rem;
  font-size: 1.05rem;
}

/* ===== LAYOUT ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 5rem 0;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(250, 249, 246, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: background var(--transition);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.nav-logo span {
  color: var(--color-accent);
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--color-text-light);
  position: relative;
  padding: 0.25rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-text);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: var(--transition);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  height: 90vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.2) 0%,
    rgba(0, 0, 0, 0.5) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  color: var(--color-white);
  max-width: 700px;
  padding: 0 1.5rem;
}

.hero-content h1 {
  margin-bottom: 1rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-content p {
  font-size: 1.15rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  font-family: var(--font-body);
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
}

.btn-primary:hover {
  background: var(--color-accent-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border: 2px solid var(--color-white);
}

.btn-outline:hover {
  background: var(--color-white);
  color: var(--color-text);
}

.btn-dark {
  background: transparent;
  color: var(--color-text);
  border: 2px solid var(--color-border);
}

.btn-dark:hover {
  background: var(--color-text);
  color: var(--color-white);
}

/* ===== CARDS ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--color-card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.card-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card:hover .card-image img {
  transform: scale(1.05);
}

.card-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--color-accent);
  color: var(--color-white);
  padding: 0.3rem 0.85rem;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.card-body {
  padding: 1.5rem;
}

.card-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--color-text-light);
  margin-bottom: 0.75rem;
}

.card-body h3 {
  margin-bottom: 0.6rem;
}

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

.card-body p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-footer .read-more {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-accent);
}

.card-footer .read-more:hover {
  color: var(--color-accent-dark);
}

/* ===== FEATURED / LARGE CARD ===== */
.featured-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-card-bg);
  box-shadow: var(--shadow-md);
}

.featured-card .card-image {
  aspect-ratio: auto;
  min-height: 400px;
}

.featured-card .card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem;
}

.featured-card .card-body h2 {
  margin-bottom: 1rem;
}

.featured-card .card-body h2 a:hover {
  color: var(--color-accent);
}

.featured-card .card-body p {
  -webkit-line-clamp: 5;
  margin-bottom: 1.5rem;
}

/* ===== DESTINATION GRID ===== */
.destination-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.destination-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  cursor: pointer;
}

.destination-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.destination-card:hover img {
  transform: scale(1.08);
}

.destination-card .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 50%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  color: var(--color-white);
}

.destination-card .overlay h3 {
  font-size: 1.4rem;
  margin-bottom: 0.25rem;
}

.destination-card .overlay span {
  font-size: 0.85rem;
  opacity: 0.8;
}

/* ===== BLOG POST PAGE ===== */
.post-header {
  padding-top: 100px;
  text-align: center;
  margin-bottom: 2rem;
}

.post-header .post-tag {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-white);
  padding: 0.3rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 1.2rem;
}

.post-header h1 {
  max-width: 800px;
  margin: 0 auto 1rem;
}

.post-meta {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  color: var(--color-text-light);
  font-size: 0.9rem;
}

.post-hero-image {
  width: 100%;
  max-height: 560px;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 3rem;
}

.post-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-content {
  max-width: 760px;
  margin: 0 auto;
}

.post-content p {
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.post-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.post-content blockquote {
  border-left: 4px solid var(--color-accent);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: rgba(192, 120, 92, 0.06);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--color-text-light);
}

.post-content img {
  border-radius: var(--radius);
  margin: 2rem 0;
  width: 100%;
}

.post-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.post-gallery img {
  border-radius: var(--radius);
  margin: 0;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* ===== ABOUT PAGE ===== */
.about-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding-top: 100px;
}

.about-hero img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.about-hero h1 {
  margin-bottom: 1.5rem;
}

.about-hero p {
  color: var(--color-text-light);
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
  margin: 3rem 0;
}

.stat h3 {
  font-size: 2.5rem;
  color: var(--color-accent);
}

.stat p {
  color: var(--color-text-light);
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

/* ===== COUNTRIES GRID ===== */
.countries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.country-chip {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--color-card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  text-decoration: none;
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.95rem;
}

.country-chip:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  color: var(--color-accent);
}

.country-chip .flag {
  font-size: 1.6rem;
  line-height: 1;
}

.country-count {
  text-align: center;
  margin-bottom: 2.5rem;
}

.country-count .number {
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 700;
  color: var(--color-accent);
  display: block;
}

.country-count .label {
  color: var(--color-text-light);
  font-size: 1.1rem;
}

/* ===== NEWSLETTER ===== */
.newsletter {
  background: var(--color-dark);
  color: var(--color-white);
  text-align: center;
  border-radius: var(--radius);
  padding: 4rem 2rem;
  margin: 2rem 0;
}

.newsletter h2 {
  margin-bottom: 0.5rem;
}

.newsletter p {
  opacity: 0.7;
  margin-bottom: 2rem;
}

.newsletter-form {
  display: flex;
  gap: 0.75rem;
  max-width: 480px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 0.85rem 1.25rem;
  border: none;
  border-radius: 50px;
  font-size: 0.95rem;
  font-family: var(--font-body);
  background: rgba(255, 255, 255, 0.12);
  color: var(--color-white);
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.newsletter-form input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.18);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--color-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-about .nav-logo {
  color: var(--color-white);
  display: inline-block;
  margin-bottom: 1rem;
}

.footer-about p {
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer h4 {
  color: var(--color-white);
  font-size: 1rem;
  margin-bottom: 1.2rem;
}

.footer ul li {
  margin-bottom: 0.6rem;
}

.footer ul li a {
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer ul li a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.85rem;
}

/* ===== PAGE HEADER (for listing pages) ===== */
.page-header {
  padding: 120px 0 60px;
  text-align: center;
  background: linear-gradient(135deg, #f5f0eb 0%, #e8ddd4 100%);
}

.page-header h1 {
  margin-bottom: 0.75rem;
}

.page-header p {
  color: var(--color-text-light);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .featured-card {
    grid-template-columns: 1fr;
  }

  .featured-card .card-image {
    min-height: 260px;
  }

  .featured-card .card-body {
    padding: 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .about-hero {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    width: 100%;
    background: var(--color-bg);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .destination-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero {
    height: 70vh;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .post-gallery {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .destination-grid {
    grid-template-columns: 1fr;
  }
}
