/* ============================================
   WorldWander Guide — Main Stylesheet
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;900&family=Inter:wght@300;400;500;600&family=DM+Sans:wght@400;500&display=swap');

:root {
  --navy: #1B2A4A;
  --navy-light: #243560;
  --gold: #F4A623;
  --gold-light: #F9C460;
  --cream: #FDF8F2;
  --white: #FFFFFF;
  --gray-100: #F7F7F7;
  --gray-200: #E8E8E8;
  --gray-500: #888888;
  --gray-700: #444444;
  --text: #1A1A2E;
  --shadow: 0 4px 24px rgba(27,42,74,0.10);
  --shadow-lg: 0 8px 48px rgba(27,42,74,0.15);
  --radius: 12px;
  --radius-sm: 6px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── Typography ── */
h1, h2, h3, h4 { font-family: 'Playfair Display', serif; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 900; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }
p { font-size: 1rem; color: var(--gray-700); line-height: 1.8; }

.section-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
  display: block;
}

/* ── Layout ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-alt { background: var(--cream); }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ── Navigation ── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(27, 42, 74, 0.97);
  backdrop-filter: blur(12px);
  padding: 0 24px;
  height: 70px;
  display: flex; align-items: center;
  box-shadow: 0 2px 20px rgba(0,0,0,0.2);
  transition: all 0.3s;
}
.navbar.scrolled { height: 60px; background: var(--navy); }

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

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem; font-weight: 900;
  color: var(--white);
  display: flex; align-items: center; gap: 8px;
}
.nav-logo span { color: var(--gold); }

.nav-links { display: flex; align-items: center; gap: 8px; }

.nav-links > li { position: relative; }

.nav-links > li > a {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem; font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  display: flex; align-items: center; gap: 4px;
}
.nav-links > li > a:hover { color: var(--white); background: rgba(255,255,255,0.1); }

.dropdown {
  position: absolute; top: calc(100% + 8px); left: 0;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  padding: 8px;
  opacity: 0; visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s;
}
.nav-links > li:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a {
  display: block; padding: 10px 16px;
  color: var(--gray-700); font-size: 0.875rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}
.dropdown a:hover { background: var(--cream); color: var(--navy); }

.nav-cta {
  background: var(--gold); color: var(--navy) !important;
  font-weight: 600 !important; border-radius: 50px !important;
  padding: 8px 20px !important;
}
.nav-cta:hover { background: var(--gold-light) !important; }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.hamburger span { width: 24px; height: 2px; background: white; transition: all 0.3s; border-radius: 2px; }

/* ── Hero ── */
.hero {
  position: relative; height: 100vh; min-height: 600px;
  display: flex; align-items: center; justify-content: center;
  text-align: center; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('https://images.unsplash.com/photo-1488646953014-85cb44e25828?w=1600&q=80');
  background-size: cover; background-position: center;
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(27,42,74,0.55) 0%, rgba(27,42,74,0.75) 100%);
}
.hero-content { position: relative; z-index: 1; color: white; max-width: 800px; padding: 0 24px; }
.hero-content .section-label { color: var(--gold-light); font-size: 0.8rem; margin-bottom: 1rem; }
.hero-content h1 { color: white; margin-bottom: 1.2rem; text-shadow: 0 2px 20px rgba(0,0,0,0.3); }
.hero-content p { color: rgba(255,255,255,0.88); font-size: 1.15rem; margin-bottom: 2rem; max-width: 580px; margin-left: auto; margin-right: auto; }

.hero-search {
  display: flex; max-width: 540px; margin: 0 auto 2rem;
  background: white; border-radius: 50px; overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}
.hero-search input {
  flex: 1; border: none; outline: none;
  padding: 16px 24px; font-size: 0.95rem; color: var(--text);
  font-family: 'Inter', sans-serif;
}
.hero-search button {
  background: var(--gold); border: none; cursor: pointer;
  padding: 16px 28px; font-weight: 600; color: var(--navy);
  font-family: 'Inter', sans-serif; font-size: 0.95rem;
  transition: background 0.2s;
}
.hero-search button:hover { background: var(--gold-light); }

.hero-stats {
  display: flex; justify-content: center; gap: 48px;
  padding-top: 1rem;
}
.hero-stat { text-align: center; }
.hero-stat .num { font-family: 'Playfair Display', serif; font-size: 1.8rem; font-weight: 900; color: var(--gold); }
.hero-stat .lbl { font-size: 0.8rem; color: rgba(255,255,255,0.75); text-transform: uppercase; letter-spacing: 0.1em; }

.scroll-down {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  z-index: 1; color: white; display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.7;
  animation: bounce 2s infinite;
}
@keyframes bounce { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(6px); } }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: 50px;
  font-weight: 600; font-size: 0.9rem; cursor: pointer;
  transition: all 0.2s; border: 2px solid transparent;
  font-family: 'Inter', sans-serif;
}
.btn-primary { background: var(--gold); color: var(--navy); }
.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(244,166,35,0.4); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: white; }
.btn-outline-white { border-color: white; color: white; background: transparent; }
.btn-outline-white:hover { background: white; color: var(--navy); }
.btn-sm { padding: 8px 20px; font-size: 0.85rem; }

/* ── Section Headers ── */
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { margin-bottom: 12px; }
.section-header p { max-width: 560px; margin: 0 auto; color: var(--gray-500); }

/* ── Destination Cards ── */
.dest-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s;
  background: white;
  cursor: pointer;
}
.dest-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.dest-card-img {
  position: relative; height: 220px; overflow: hidden;
}
.dest-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s;
}
.dest-card:hover .dest-card-img img { transform: scale(1.06); }

.dest-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--gold); color: var(--navy);
  font-size: 0.7rem; font-weight: 700;
  padding: 4px 10px; border-radius: 50px;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.dest-rating {
  position: absolute; top: 12px; right: 12px;
  background: rgba(27,42,74,0.85); color: white;
  font-size: 0.8rem; font-weight: 600;
  padding: 4px 10px; border-radius: 50px;
}

.dest-card-body { padding: 20px; }
.dest-card-body h3 { font-size: 1.2rem; margin-bottom: 6px; color: var(--navy); }
.dest-card-body p { font-size: 0.875rem; color: var(--gray-500); margin-bottom: 14px; line-height: 1.5; }

.dest-meta {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.8rem; padding-top: 14px;
  border-top: 1px solid var(--gray-200);
}
.dest-meta-item { display: flex; align-items: center; gap: 5px; color: var(--gray-500); }
.dest-meta-item strong { color: var(--navy); }

/* ── Blog Cards ── */
.blog-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: white;
  transition: all 0.3s;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.blog-card-img { height: 200px; overflow: hidden; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.blog-card:hover .blog-card-img img { transform: scale(1.05); }
.blog-card-body { padding: 20px; }
.blog-card-tag {
  display: inline-block; background: var(--cream); color: var(--navy);
  font-size: 0.7rem; font-weight: 600; padding: 3px 10px;
  border-radius: 50px; text-transform: uppercase; letter-spacing: 0.05em;
  margin-bottom: 10px;
}
.blog-card-body h3 { font-size: 1.1rem; margin-bottom: 8px; color: var(--navy); line-height: 1.4; }
.blog-card-body p { font-size: 0.85rem; color: var(--gray-500); margin-bottom: 16px; }
.blog-card-footer { display: flex; align-items: center; justify-content: space-between; font-size: 0.8rem; color: var(--gray-500); }

/* ── Region Cards ── */
.region-card {
  position: relative; border-radius: var(--radius);
  overflow: hidden; height: 280px; cursor: pointer;
}
.region-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s;
}
.region-card:hover img { transform: scale(1.08); }
.region-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(27,42,74,0.85) 0%, rgba(27,42,74,0.1) 60%);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 24px;
  color: white;
}
.region-card-overlay h3 { font-size: 1.4rem; margin-bottom: 4px; }
.region-card-overlay p { font-size: 0.85rem; opacity: 0.8; }

/* ── Stats Bar ── */
.stats-bar {
  background: var(--navy); padding: 48px 0;
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 32px; text-align: center;
}
.stat-item .num {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem; font-weight: 900; color: var(--gold);
  display: block; margin-bottom: 6px;
}
.stat-item .lbl { color: rgba(255,255,255,0.7); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; }

/* ── Page Hero (inner pages) ── */
.page-hero {
  position: relative; height: 420px;
  display: flex; align-items: flex-end;
  padding-bottom: 48px; margin-top: 70px;
  overflow: hidden;
}
.page-hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.page-hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(27,42,74,0.3) 0%, rgba(27,42,74,0.8) 100%);
}
.page-hero-content { position: relative; z-index: 1; color: white; }
.page-hero-content .section-label { color: var(--gold-light); }
.page-hero-content h1 { color: white; margin-bottom: 12px; }
.page-hero-content p { color: rgba(255,255,255,0.85); font-size: 1.1rem; max-width: 600px; }

/* ── Breadcrumb ── */
.breadcrumb {
  background: var(--gray-100); padding: 12px 0;
  font-size: 0.85rem;
}
.breadcrumb-inner { display: flex; align-items: center; gap: 8px; color: var(--gray-500); }
.breadcrumb-inner a { color: var(--navy); }
.breadcrumb-inner a:hover { color: var(--gold); }

/* ── Info Boxes ── */
.info-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 40px 0;
}
.info-box {
  background: var(--cream); border-radius: var(--radius);
  padding: 24px; border-left: 4px solid var(--gold);
}
.info-box h4 { margin-bottom: 8px; color: var(--navy); display: flex; align-items: center; gap: 8px; }
.info-box p { font-size: 0.9rem; margin: 0; }

/* ── Attraction List ── */
.attraction-item {
  display: flex; gap: 20px; padding: 24px 0;
  border-bottom: 1px solid var(--gray-200);
}
.attraction-item:last-child { border-bottom: none; }
.attraction-num {
  width: 40px; height: 40px; flex-shrink: 0;
  background: var(--navy); color: var(--gold);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1rem;
}
.attraction-content h4 { margin-bottom: 6px; color: var(--navy); }
.attraction-content p { font-size: 0.9rem; margin: 0; }

/* ── Article Content ── */
.article-body { max-width: 760px; }
.article-body h2 { margin: 40px 0 16px; }
.article-body h3 { margin: 28px 0 12px; }
.article-body p { margin-bottom: 20px; }
.article-body ul { margin: 16px 0 20px 20px; list-style: disc; }
.article-body ul li { margin-bottom: 8px; color: var(--gray-700); font-size: 1rem; line-height: 1.7; }
.article-body img { border-radius: var(--radius); margin: 32px 0; width: 100%; }

.article-disclaimer {
  background: var(--cream); border-radius: var(--radius);
  padding: 20px 24px; margin: 40px 0;
  border-left: 4px solid var(--gold);
  font-size: 0.875rem; color: var(--gray-500);
}

/* ── Sidebar ── */
.content-with-sidebar { display: grid; grid-template-columns: 1fr 320px; gap: 48px; align-items: start; }
.sidebar { position: sticky; top: 90px; }
.sidebar-box {
  background: var(--cream); border-radius: var(--radius);
  padding: 24px; margin-bottom: 24px;
}
.sidebar-box h4 { margin-bottom: 16px; color: var(--navy); padding-bottom: 12px; border-bottom: 2px solid var(--gold); }
.sidebar-list li { padding: 10px 0; border-bottom: 1px solid var(--gray-200); font-size: 0.875rem; }
.sidebar-list li:last-child { border-bottom: none; }
.sidebar-list a { color: var(--gray-700); display: flex; justify-content: space-between; }
.sidebar-list a:hover { color: var(--navy); }

/* ── Footer ── */
footer {
  background: var(--navy); color: rgba(255,255,255,0.75);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .nav-logo { margin-bottom: 16px; font-size: 1.5rem; }
.footer-brand p { font-size: 0.875rem; line-height: 1.7; margin-bottom: 24px; }
.social-links { display: flex; gap: 12px; }
.social-link {
  width: 38px; height: 38px; background: rgba(255,255,255,0.08);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1rem; transition: all 0.2s; color: white;
}
.social-link:hover { background: var(--gold); color: var(--navy); }

.footer-col h4 { color: white; font-size: 0.9rem; margin-bottom: 20px; font-family: 'Inter', sans-serif; text-transform: uppercase; letter-spacing: 0.08em; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 0.875rem; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--gold); }

.footer-bottom {
  padding: 20px 0; text-align: center;
  font-size: 0.8rem; color: rgba(255,255,255,0.45);
}
.footer-bottom a { color: rgba(255,255,255,0.6); }
.footer-bottom a:hover { color: var(--gold); }

/* ── Back to Top ── */
#backToTop {
  position: fixed; bottom: 32px; right: 32px; z-index: 999;
  width: 46px; height: 46px; background: var(--gold); color: var(--navy);
  border: none; border-radius: 50%; cursor: pointer; font-size: 1.2rem;
  box-shadow: 0 4px 16px rgba(244,166,35,0.4);
  display: none; align-items: center; justify-content: center;
  transition: all 0.2s;
}
#backToTop:hover { transform: translateY(-3px); }
#backToTop.show { display: flex; }

/* ── Newsletter ── */
.newsletter {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  padding: 64px 0; text-align: center;
}
.newsletter h2 { color: white; margin-bottom: 12px; }
.newsletter p { color: rgba(255,255,255,0.75); margin-bottom: 32px; }
.newsletter-form {
  display: flex; max-width: 480px; margin: 0 auto;
  background: white; border-radius: 50px; overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.2);
}
.newsletter-form input {
  flex: 1; border: none; outline: none;
  padding: 14px 24px; font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
}
.newsletter-form button {
  background: var(--gold); border: none; cursor: pointer;
  padding: 14px 28px; font-weight: 600; color: var(--navy);
  font-family: 'Inter', sans-serif; font-size: 0.9rem;
}

/* ── Why Travel Section ── */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.why-card { text-align: center; padding: 32px 24px; }
.why-icon {
  width: 64px; height: 64px; background: var(--cream);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; margin: 0 auto 20px;
}
.why-card h3 { font-size: 1.1rem; margin-bottom: 10px; color: var(--navy); }
.why-card p { font-size: 0.875rem; }

/* ── Tips Page ── */
.tips-category { margin-bottom: 48px; }
.tips-category h2 { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 2px solid var(--gold); }
.tips-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.tip-item {
  background: var(--cream); border-radius: var(--radius-sm);
  padding: 20px; display: flex; gap: 14px;
}
.tip-icon { font-size: 1.4rem; flex-shrink: 0; }
.tip-content h4 { font-size: 0.95rem; margin-bottom: 5px; color: var(--navy); }
.tip-content p { font-size: 0.85rem; margin: 0; }

/* ── Contact Page ── */
.contact-form { background: var(--cream); border-radius: var(--radius); padding: 40px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; font-size: 0.875rem; margin-bottom: 8px; color: var(--navy); }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 12px 16px; border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm); font-family: 'Inter', sans-serif;
  font-size: 0.9rem; outline: none; transition: border-color 0.2s;
  background: white;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--gold); }
.form-group textarea { height: 140px; resize: vertical; }

/* ── Policy Pages ── */
.policy-content h2 { margin: 36px 0 14px; }
.policy-content h3 { margin: 24px 0 10px; color: var(--navy-light); }
.policy-content p { margin-bottom: 16px; }
.policy-content ul { margin: 12px 0 20px 20px; list-style: disc; }
.policy-content ul li { margin-bottom: 8px; font-size: 0.95rem; color: var(--gray-700); }

/* ── About Page ── */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.team-card { text-align: center; }
.team-avatar {
  width: 100px; height: 100px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  border-radius: 50%; margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif; font-size: 2rem; color: var(--gold);
  font-weight: 900;
}
.team-card h3 { font-size: 1.1rem; margin-bottom: 4px; }
.team-card p { font-size: 0.85rem; color: var(--gray-500); margin: 0; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .content-with-sidebar { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open { display: flex; flex-direction: column; position: fixed; top: 70px; left: 0; right: 0; background: var(--navy); padding: 16px; gap: 4px; }
  .hamburger { display: flex; }
  .dropdown { position: static; box-shadow: none; background: rgba(255,255,255,0.05); opacity: 1; visibility: visible; transform: none; }
  .dropdown a { color: rgba(255,255,255,0.75); }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .tips-list { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-search { flex-direction: column; border-radius: var(--radius); }
  .hero-search button { border-radius: 0; }
}

@media (max-width: 480px) {
  .section { padding: 56px 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
