/* ============================================================
   Budget Travel Bali — Global Stylesheet
   Aesthetic: Tropical editorial — warm sand, deep jungle, coral accents
   ============================================================ */

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

/* ── CSS Variables ── */
:root {
  --sand:     #f5ede0;
  --cream:    #fdf8f2;
  --jungle:   #1a3a2e;
  --palm:     #2d6a4f;
  --coral:    #e76f51;
  --gold:     #f4a261;
  --sky:      #457b9d;
  --white:    #ffffff;
  --text:     #1e1e1e;
  --muted:    #6b7280;
  --border:   #e5d9cc;
  --radius:   10px;
  --shadow:   0 4px 24px rgba(30,30,30,.10);
  --shadow-lg:0 8px 40px rgba(30,30,30,.15);
  --font-head:'Playfair Display', Georgia, serif;
  --font-body:'DM Sans', system-ui, sans-serif;
  --max-w:    1160px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-body); color: var(--text); background: var(--cream); line-height: 1.7; }
img { max-width: 100%; display: block; }
a { color: var(--palm); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Container ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.25rem; }

/* ── Header / Nav ── */
.site-header {
  background: var(--jungle);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,.3);
}
.nav-inner {
  display: flex; align-items: center;
  justify-content: space-between;
  padding-top: .75rem; padding-bottom: .75rem;
}
.logo {
  font-family: var(--font-head);
  font-size: 1.25rem; font-weight: 900;
  color: var(--gold) !important;
  letter-spacing: -.3px;
  text-decoration: none !important;
}
.main-nav { display: flex; gap: .25rem; align-items: center; flex-wrap: wrap; }
.main-nav a {
  color: #d4ead9;
  padding: .35rem .7rem;
  border-radius: 6px;
  font-size: .9rem; font-weight: 500;
  transition: background .2s, color .2s;
}
.main-nav a:hover,
.main-nav a.active {
  background: var(--palm); color: var(--white);
  text-decoration: none;
}
.nav-toggle {
  display: none;
  background: none; border: none;
  color: var(--gold); font-size: 1.5rem; cursor: pointer;
}

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, var(--jungle) 0%, var(--palm) 60%, #1d5c45 100%);
  color: var(--white); text-align: center;
  padding: 5rem 1.25rem 4rem;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
  pointer-events: none;
}
.hero-badge {
  display: inline-block;
  background: var(--coral); color: var(--white);
  font-size: .78rem; font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase; padding: .3rem .9rem;
  border-radius: 50px; margin-bottom: 1.2rem;
}
.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.15; margin-bottom: 1.1rem;
  font-weight: 900;
}
.hero p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  max-width: 680px; margin: 0 auto 2rem;
  opacity: .9;
}
.hero-ctas { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: .75rem 1.6rem;
  border-radius: var(--radius);
  font-weight: 600; font-size: .95rem;
  cursor: pointer; transition: transform .15s, box-shadow .15s;
  text-decoration: none !important;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-coral  { background: var(--coral);  color: var(--white); }
.btn-gold   { background: var(--gold);   color: var(--jungle); }
.btn-palm   { background: var(--palm);   color: var(--white); }
.btn-outline{ background: transparent; border: 2px solid currentColor; color: var(--white); }
.btn-sm { padding: .5rem 1.1rem; font-size: .85rem; }

/* ── Section spacing ── */
.section { padding: 4rem 0; }
.section-alt { background: var(--sand); }

/* ── Section title ── */
.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--jungle); margin-bottom: .5rem;
}
.section-sub { color: var(--muted); font-size: 1rem; margin-bottom: 2rem; }

/* ── Cards grid ── */
.cards { display: grid; gap: 1.5rem; }
.cards-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.cards-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.cards-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-body { padding: 1.4rem; }
.card-tag {
  display: inline-block;
  background: var(--sand); color: var(--palm);
  font-size: .73rem; font-weight: 600; letter-spacing: .5px;
  text-transform: uppercase; padding: .2rem .65rem;
  border-radius: 4px; margin-bottom: .6rem;
}
.card h3 { font-family: var(--font-head); font-size: 1.2rem; color: var(--jungle); margin-bottom: .4rem; }
.card p  { font-size: .9rem; color: var(--muted); margin-bottom: 1rem; }
.card-price { font-size: 1.1rem; font-weight: 700; color: var(--coral); margin-bottom: .8rem; }

/* ── Affiliate box ── */
.aff-box {
  background: linear-gradient(135deg, #fff8f0 0%, #fff 100%);
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  display: flex; gap: 1.5rem; align-items: center;
  flex-wrap: wrap;
  margin: 2rem 0;
  box-shadow: 0 2px 16px rgba(244,162,97,.15);
}
.aff-box-icon { font-size: 2.5rem; flex-shrink: 0; }
.aff-box-content { flex: 1; min-width: 200px; }
.aff-box-content h3 { font-family: var(--font-head); font-size: 1.2rem; color: var(--jungle); margin-bottom: .3rem; }
.aff-box-content p  { font-size: .9rem; color: var(--muted); margin-bottom: .8rem; }
.aff-label { font-size: .72rem; color: var(--muted); margin-top: .5rem; }

/* ── Adsense placeholder ── */
.ad-unit {
  background: #f0f0f0;
  border: 1px dashed #ccc;
  border-radius: 6px;
  text-align: center;
  padding: 1.5rem;
  font-size: .8rem; color: #999;
  margin: 1.5rem 0;
}

/* ── Table ── */
.table-wrap { overflow-x: auto; margin: 1.5rem 0; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
thead { background: var(--jungle); color: var(--white); }
thead th { padding: .75rem 1rem; text-align: left; font-weight: 600; }
tbody tr:nth-child(even) { background: var(--sand); }
tbody td { padding: .65rem 1rem; border-bottom: 1px solid var(--border); }
tbody tr:hover { background: #f0ede8; }
.good  { color: var(--palm); font-weight: 600; }
.ok    { color: var(--gold); font-weight: 600; }
.warn  { color: var(--coral); font-weight: 600; }

/* ── FAQ ── */
.faq-list { list-style: none; }
.faq-item { border-bottom: 1px solid var(--border); padding: 1.1rem 0; }
.faq-q {
  font-family: var(--font-head);
  font-size: 1.05rem; color: var(--jungle);
  margin-bottom: .4rem; cursor: pointer;
}
.faq-q::before { content: 'Q: '; color: var(--coral); font-style: normal; }
.faq-a { font-size: .92rem; color: #444; }

/* ── Breadcrumb ── */
.breadcrumb {
  font-size: .82rem; color: var(--muted);
  padding: .75rem 0;
}
.breadcrumb a { color: var(--palm); }
.breadcrumb span { margin: 0 .4rem; }

/* ── Page hero (inner pages) ── */
.page-hero {
  background: linear-gradient(135deg, var(--jungle) 0%, var(--palm) 100%);
  color: var(--white);
  padding: 3.5rem 1.25rem 3rem;
  text-align: center;
}
.page-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900; margin-bottom: .6rem;
}
.page-hero p { font-size: 1.05rem; opacity: .9; max-width: 620px; margin: 0 auto; }

/* ── Prose ── */
.prose h2 { font-family: var(--font-head); font-size: 1.6rem; color: var(--jungle); margin: 2rem 0 .6rem; }
.prose h3 { font-size: 1.15rem; color: var(--palm); margin: 1.5rem 0 .4rem; font-weight: 600; }
.prose p  { margin-bottom: 1rem; }
.prose ul, .prose ol { padding-left: 1.4rem; margin-bottom: 1rem; }
.prose li { margin-bottom: .3rem; }
.prose strong { color: var(--jungle); }
.prose a { color: var(--palm); font-weight: 500; text-decoration: underline; }
.highlight-box {
  background: var(--sand); border-left: 4px solid var(--coral);
  padding: 1rem 1.4rem; border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0; font-size: .95rem;
}

/* ── Stat boxes ── */
.stats-row { display: flex; gap: 1rem; flex-wrap: wrap; margin: 2rem 0; }
.stat-box {
  flex: 1; min-width: 140px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.2rem 1rem; text-align: center;
}
.stat-num { font-family: var(--font-head); font-size: 2rem; color: var(--coral); font-weight: 900; }
.stat-label { font-size: .8rem; color: var(--muted); margin-top: .2rem; }

/* ── Blog list ── */
.blog-card { display: flex; gap: 1.2rem; align-items: flex-start; margin-bottom: 1.5rem; }
.blog-card-meta { font-size: .8rem; color: var(--muted); margin-bottom: .3rem; }
.blog-card h3 { font-family: var(--font-head); font-size: 1.15rem; color: var(--jungle); margin-bottom: .3rem; }
.blog-card p { font-size: .88rem; color: var(--muted); }

/* ── Footer ── */
.site-footer { background: var(--jungle); color: #c8ddd0; padding: 3rem 0 0; margin-top: 4rem; }
.footer-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 2rem; padding-bottom: 2rem; }
.footer-logo { font-family: var(--font-head); font-size: 1.2rem; color: var(--gold); margin-bottom: .5rem; }
.footer-col h4 { color: var(--white); font-size: .85rem; letter-spacing: .8px; text-transform: uppercase; margin-bottom: .75rem; }
.footer-col p  { font-size: .85rem; opacity: .75; }
.footer-col a  { display: block; font-size: .85rem; color: #aacbb5; margin-bottom: .35rem; }
.footer-col a:hover { color: var(--gold); text-decoration: none; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 1rem 1.25rem; text-align: center;
  font-size: .78rem; color: #7a9e87;
}
.footer-bottom a { color: #aacbb5; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .main-nav { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--jungle); padding: 1rem; gap: .15rem; }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .nav-inner { position: relative; }
  .aff-box { flex-direction: column; text-align: center; }
  .stats-row { justify-content: center; }
  .hero { padding: 3.5rem 1rem 3rem; }
}
@media (max-width: 480px) {
  .cards-3, .cards-4 { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.8rem; }
}
