@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..900;1,9..144,300..900&family=DM+Sans:ital,wght@0,300..700;1,300..700&display=swap');

:root {
  --primary: #D96B27;
  --primary-light: #F0A04B;
  --primary-dark: #B5521A;
  --accent: #FFD166;
  --accent-warm: #FF8C42;
  --bg: #FFFAF5;
  --bg-alt: #FFF0E1;
  --bg-card: #FFFFFF;
  --text: #2D1B0E;
  --text-light: #7A5C42;
  --text-muted: #A68B72;
  --border: #E8D5C4;
  --shadow: rgba(45, 27, 14, 0.08);
  --shadow-hover: rgba(217, 107, 39, 0.18);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

main {
  flex: 1;
}

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

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

a:hover {
  color: var(--primary-dark);
}

h1, h2, h3, h4, h5 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.15rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-light);
}

p:last-child {
  margin-bottom: 0;
}

/* ======= GRAIN OVERLAY ======= */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
}

/* ======= HEADER ======= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 250, 245, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 1.5rem;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100px;
  gap: 0;
}

.nav-left,
.nav-right {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  flex: 1;
}

.nav-left {
  justify-content: flex-end;
}

.nav-right {
  justify-content: flex-start;
}

.logo-link {
  display: flex;
  align-items: center;
  margin: 0 1.5rem;
  flex-shrink: 0;
}

.logo-link img {
  height: 100px;
  width: auto;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--text);
}

.nav-toggle svg {
  width: 28px;
  height: 28px;
}

/* Legacy fallback for pages still using single nav-links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-left a,
.nav-right a,
.nav-links a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--text-light);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 8px;
  transition: all var(--transition);
  white-space: nowrap;
}

.nav-left a:hover,
.nav-right a:hover,
.nav-links a:hover,
.nav-left a.active,
.nav-right a.active,
.nav-links a.active {
  color: var(--primary);
  background: var(--bg-alt);
}

/* ======= HERO (Homepage) ======= */
.hero {
  position: relative;
  padding: 5rem 1.5rem 4rem;
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg-alt) 0%, #FFE8CC 40%, #FFDAB3 100%);
}

.hero::before,
.hero::after {
  display: none;
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 100px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
}

.hero h1 {
  max-width: 700px;
  margin-bottom: 1.25rem;
  font-optical-sizing: auto;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.hero h1 span {
  color: var(--accent);
}

.hero-subtitle {
  max-width: 560px;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.7;
  margin-bottom: 2rem;
  text-shadow: 0 1px 6px rgba(0,0,0,0.3);
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  background: var(--primary);
  color: #fff;
  border-radius: 100px;
  font-weight: 600;
  font-size: 1rem;
  transition: all var(--transition);
  box-shadow: 0 4px 16px rgba(217, 107, 39, 0.3);
}

.hero-cta:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(217, 107, 39, 0.4);
}

.hero-cta svg {
  width: 18px;
  height: 18px;
  transition: transform var(--transition);
}

.hero-cta:hover svg {
  transform: translateX(3px);
}

/* ======= SECTIONS ======= */
.section {
  padding: 5rem 1.5rem;
}

.section-alt {
  background: var(--bg-alt);
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-header {
  margin-bottom: 3rem;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.section-header h2 {
  margin-bottom: 0.75rem;
}

.section-header p {
  max-width: 560px;
  font-size: 1.05rem;
}

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

.dest-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.75rem;
  color: #fff;
  text-decoration: none;
  transition: all var(--transition);
  box-shadow: 0 2px 12px var(--shadow);
}

.dest-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.1) 50%, transparent 100%);
  z-index: 1;
  transition: opacity var(--transition);
}

.dest-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px var(--shadow-hover);
  color: #fff;
}

.dest-card:hover::before {
  opacity: 0.9;
}

.dest-card-content {
  position: relative;
  z-index: 2;
}

.dest-card-flag {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  display: block;
}

.dest-card h3 {
  color: #fff;
  font-size: 1.4rem;
  margin-bottom: 0.3rem;
}

.dest-card-desc {
  font-size: 0.9rem;
  opacity: 0.9;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

/* Destination card gradient backgrounds */
.dest-card--tropical { background: linear-gradient(135deg, #FF6B35 0%, #F7C59F 50%, #2EC4B6 100%); }
.dest-card--asia { background: linear-gradient(135deg, #E63946 0%, #F4A261 50%, #E9C46A 100%); }
.dest-card--europe { background: linear-gradient(135deg, #264653 0%, #2A9D8F 50%, #E9C46A 100%); }
.dest-card--americas { background: linear-gradient(135deg, #606C38 0%, #283618 50%, #DDA15E 100%); }
.dest-card--mediterranean { background: linear-gradient(135deg, #0077B6 0%, #00B4D8 50%, #90E0EF 100%); }
.dest-card--alpine { background: linear-gradient(135deg, #2D6A4F 0%, #40916C 50%, #B7E4C7 100%); }
.dest-card--nature { background: linear-gradient(135deg, #BC6C25 0%, #DDA15E 50%, #FEFAE0 100%); }
.dest-card--urban { background: linear-gradient(135deg, #5C4D7D 0%, #8B6FC0 50%, #D4B8E0 100%); }
.dest-card--desert { background: linear-gradient(135deg, #C2711E 0%, #E09F3E 50%, #FFF3B0 100%); }
.dest-card--island { background: linear-gradient(135deg, #006D77 0%, #83C5BE 50%, #FFDDD2 100%); }

/* ======= CATEGORY CARDS ======= */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.cat-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
  text-decoration: none;
  color: var(--text);
}

.cat-card:hover {
  border-color: var(--primary-light);
  box-shadow: 0 4px 20px var(--shadow-hover);
  transform: translateY(-2px);
  color: var(--text);
}

.cat-card-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-alt);
  border-radius: 14px;
  font-size: 1.5rem;
}

.cat-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.cat-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

/* ======= COUNTRY PAGE HERO ======= */
.country-hero {
  position: relative;
  padding: 5rem 1.5rem 4rem;
  overflow: hidden;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
}

.country-hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  z-index: 1;
  width: 100%;
}

.country-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.25rem;
}

.country-breadcrumb a {
  color: rgba(255, 255, 255, 0.7);
}

.country-breadcrumb a:hover {
  color: #fff;
}

.country-breadcrumb span {
  color: rgba(255, 255, 255, 0.9);
}

.country-hero .flag {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  display: block;
}

.country-hero h1 {
  margin-bottom: 0.75rem;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.country-hero-desc {
  max-width: 640px;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

/* ======= COUNTRY CONTENT ======= */
.country-content {
  padding: 3rem 1.5rem 5rem;
}

.country-layout {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: start;
}

.country-main h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.country-main h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.country-main p {
  font-size: 1.05rem;
  line-height: 1.8;
}

.country-main ul {
  margin: 0.75rem 0 1.25rem 1.5rem;
  color: var(--text-light);
  line-height: 1.8;
}

.country-main li {
  margin-bottom: 0.25rem;
}

/* Sidebar */
.country-sidebar {
  position: sticky;
  top: 96px;
}

.facts-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: 0 2px 12px var(--shadow);
}

.facts-card h3 {
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--bg-alt);
}

.fact-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--bg-alt);
  gap: 1rem;
}

.fact-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.fact-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.fact-value {
  font-weight: 600;
  font-size: 0.95rem;
  text-align: right;
  color: var(--text);
}

/* ======= GENERIC PAGE ======= */
.page-hero {
  padding: 3.5rem 1.5rem 3rem;
  background: var(--bg-alt);
}

.page-hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

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

.page-hero p {
  max-width: 640px;
  font-size: 1.1rem;
  color: var(--text-light);
}

.page-content {
  padding: 3rem 1.5rem 5rem;
}

.page-content-inner {
  max-width: 800px;
  margin: 0 auto;
}

.page-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.page-content h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.page-content p {
  font-size: 1.05rem;
  line-height: 1.8;
}

.page-content ul {
  margin: 0.75rem 0 1.25rem 1.5rem;
  color: var(--text-light);
  line-height: 1.8;
}

/* ======= FOOTER ======= */
.site-footer {
  background: var(--text);
  color: rgba(255, 255, 255, 0.7);
  padding: 3.5rem 1.5rem 2rem;
  margin-top: auto;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

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

.footer-brand p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.95rem;
  margin-top: 1rem;
  max-width: 320px;
}

.footer-brand img {
  height: 40px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.footer-col h4 {
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  transition: color var(--transition);
}

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

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.4);
}

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

/* ======= ANIMATIONS ======= */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-in {
  animation: fadeInUp 0.6s ease-out both;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; }

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

  .country-sidebar {
    position: static;
    order: -1;
  }

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

@media (max-width: 768px) {
  .header-inner {
    justify-content: space-between;
    height: 80px;
  }

  .logo-link {
    margin: 0;
    order: 0;
  }

  .logo-link img {
    height: 70px;
  }

  .nav-left,
  .nav-right {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(255, 250, 245, 0.98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    gap: 0;
    box-shadow: 0 8px 24px var(--shadow);
    flex: none;
  }

  .nav-left.open,
  .nav-right.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
    order: 2;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(255, 250, 245, 0.98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    gap: 0;
    box-shadow: 0 8px 24px var(--shadow);
  }

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

  .nav-left a,
  .nav-right a,
  .nav-links a {
    padding: 0.75rem 1rem;
  }

  .hero {
    padding: 3.5rem 1.5rem 3rem;
  }

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

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

  .section {
    padding: 3.5rem 1.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
