/* ============================================================
   BALI TRAVEL WEBSITE — Global Stylesheet
   Developer: Tech Brains Ltd.
   ============================================================ */

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

/* ── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green:      #2E7D52;
  --green-dark: #1B5235;
  --green-light:#E8F5EE;
  --gold:       #C9963B;
  --gold-light: #FDF3E3;
  --cream:      #FAF8F3;
  --text:       #1C1C1C;
  --text-muted: #6B6B6B;
  --white:      #FFFFFF;
  --border:     #E2DDD6;
  --radius:     10px;
  --radius-lg:  18px;
  --shadow-sm:  0 2px 8px rgba(0,0,0,0.08);
  --shadow-md:  0 6px 24px rgba(0,0,0,0.12);
  --shadow-lg:  0 16px 48px rgba(0,0,0,0.16);
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Inter', system-ui, sans-serif;
  --transition: 0.28s cubic-bezier(0.4,0,0.2,1);
}

html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; height: auto; }
a  { color: var(--green); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--green-dark); }

/* ── Typography ─────────────────────────────────────────────── */
h1,h2,h3,h4 { font-family: var(--font-serif); line-height: 1.25; color: var(--text); }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 600; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }
p  { color: var(--text-muted); line-height: 1.8; margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ── Layout Utilities ───────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section   { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }

.text-center { text-align: center; }
.text-green  { color: var(--green); }
.text-gold   { color: var(--gold); }

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-light);
  padding: 0.3rem 0.9rem;
  border-radius: 100px;
  margin-bottom: 0.75rem;
}

.section-title {
  margin-bottom: 0.75rem;
}

.section-desc {
  max-width: 600px;
  margin: 0 auto 3rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ── Navigation ─────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 1.5rem;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

.navbar.scrolled { box-shadow: var(--shadow-sm); }

.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--green-dark);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.25rem;
  align-items: center;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
}

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

.nav-cta {
  background: var(--green) !important;
  color: var(--white) !important;
  border-radius: var(--radius) !important;
  padding: 0.5rem 1.1rem !important;
}
.nav-cta:hover { background: var(--green-dark) !important; color: var(--white) !important; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
}

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

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.7);
}
.btn-secondary:hover { background: rgba(255,255,255,0.15); color: var(--white); }

.btn-outline {
  background: transparent;
  color: var(--green);
  border: 1.5px solid var(--green);
}
.btn-outline:hover { background: var(--green); color: var(--white); transform: translateY(-2px); }

.btn-gold {
  background: var(--gold);
  color: var(--white);
}
.btn-gold:hover { background: #a87b2a; color: var(--white); transform: translateY(-2px); }

/* ── Cards ──────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.card-img { width: 100%; height: 220px; object-fit: cover; }
.card-body { padding: 1.5rem; }
.card-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  background: var(--green-light);
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  margin-bottom: 0.6rem;
}
.card-title { font-size: 1.15rem; margin-bottom: 0.5rem; color: var(--text); }
.card-text  { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1rem; }

/* ── Grid ───────────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.25) 60%);
  z-index: 1;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  max-width: 700px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: #FFE5B0;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
}

.hero-content h1 { color: var(--white); margin-bottom: 1.25rem; text-shadow: 0 2px 12px rgba(0,0,0,0.3); }
.hero-content p  { color: rgba(255,255,255,0.88); font-size: 1.1rem; margin-bottom: 2rem; max-width: 520px; }
.hero-actions    { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255,255,255,0.7);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(8px); }
}

/* ── Page Hero (non-home pages) ─────────────────────────────── */
.page-hero {
  padding: 9rem 0 5rem;
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 100%);
  color: var(--white);
  text-align: center;
}
.page-hero h1 { color: var(--white); margin-bottom: 0.75rem; }
.page-hero p  { color: rgba(255,255,255,0.8); max-width: 540px; margin: 0 auto; }

/* ── Stats Strip ────────────────────────────────────────────── */
.stats-strip {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 2rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: center;
}
.stat-item h3  { font-size: 2.2rem; color: var(--green); margin-bottom: 0.2rem; }
.stat-item p   { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin: 0; color: var(--text-muted); }

/* ── Image Grid ─────────────────────────────────────────────── */
.img-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: center;
}
.img-split img { border-radius: var(--radius-lg); object-fit: cover; width: 100%; height: 420px; }
.img-split.reverse .img-col { order: 2; }
.img-split.reverse .text-col { order: 1; }

/* ── Feature List ───────────────────────────────────────────── */
.feature-list { list-style: none; margin: 1.5rem 0; }
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.feature-list li::before {
  content: '✓';
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  background: var(--green-light);
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 50%;
  margin-top: 0.15rem;
}

/* ── Info Box ───────────────────────────────────────────────── */
.info-box {
  background: var(--green-light);
  border-left: 4px solid var(--green);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.info-box h4 { color: var(--green-dark); margin-bottom: 0.4rem; }
.info-box p  { font-size: 0.9rem; margin: 0; }

/* ── Table ──────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; background: var(--white); }
thead { background: var(--green); color: var(--white); }
thead th { padding: 1rem 1.25rem; font-size: 0.85rem; font-weight: 600; text-align: left; font-family: var(--font-sans); letter-spacing: 0.04em; }
tbody tr { border-bottom: 1px solid var(--border); transition: background var(--transition); }
tbody tr:hover { background: var(--green-light); }
tbody td { padding: 0.9rem 1.25rem; font-size: 0.9rem; color: var(--text-muted); }
tbody td:first-child { font-weight: 500; color: var(--text); }

/* ── Contact Form ───────────────────────────────────────────── */
.form-group { margin-bottom: 1.5rem; }
.form-row   { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }

label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.5rem;
}

input[type="text"],
input[type="email"],
select,
textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(46,125,82,0.12);
}

input.error, textarea.error { border-color: #E24B4A; }
.error-msg { display: none; font-size: 0.8rem; color: #E24B4A; margin-top: 0.35rem; }

textarea { resize: vertical; min-height: 140px; }

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
  background: #0F2419;
  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-brand .nav-logo { color: var(--white); margin-bottom: 1rem; font-size: 1.3rem; }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; color: rgba(255,255,255,0.6); }

.footer-col h4 { color: var(--white); font-family: var(--font-sans); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 1.25rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.65rem; }
.footer-col ul li a { color: rgba(255,255,255,0.6); font-size: 0.9rem; transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--white); }

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

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

/* ── Attraction Detail Card ─────────────────────────────────── */
.attraction-card {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 0;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 2.5rem;
  transition: box-shadow var(--transition);
}
.attraction-card:hover { box-shadow: var(--shadow-md); }
.attraction-card.reverse { direction: rtl; }
.attraction-card.reverse > * { direction: ltr; }

.attraction-img { width: 100%; height: 100%; object-fit: cover; min-height: 280px; }
.attraction-body { padding: 2rem 2.25rem; display: flex; flex-direction: column; justify-content: center; }
.attraction-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0; }
.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 500;
  background: var(--cream);
  border: 1px solid var(--border);
  padding: 0.3rem 0.7rem;
  border-radius: 100px;
  color: var(--text-muted);
}

/* ── Travel Info ────────────────────────────────────────────── */
.info-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}
.info-card-icon {
  width: 48px; height: 48px;
  background: var(--green-light);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
}

.weather-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.75rem; margin-top: 1.5rem; }
.month-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 0.5rem;
  text-align: center;
  font-size: 0.78rem;
}
.month-card.best { background: var(--green-light); border-color: var(--green); }
.month-card .mo { font-weight: 600; color: var(--text); margin-bottom: 0.25rem; }
.month-card .temp { color: var(--text-muted); }

/* ── Toast / Success ────────────────────────────────────────── */
.toast {
  display: none;
  background: var(--green);
  color: var(--white);
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  margin-top: 1rem;
  font-size: 0.95rem;
  font-weight: 500;
}

/* ── Scroll Animations ──────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .attraction-card { grid-template-columns: 300px 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--border); padding: 1rem 1.5rem 1.5rem; gap: 0.25rem; }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .img-split { grid-template-columns: 1fr; }
  .img-split img { height: 280px; }
  .img-split.reverse .img-col,
  .img-split.reverse .text-col { order: unset; }
  .attraction-card { grid-template-columns: 1fr; }
  .attraction-card.reverse { direction: ltr; }
  .attraction-img { min-height: 220px; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .weather-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-scroll { display: none; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .grid-4     { grid-template-columns: 1fr; }
  .weather-grid { grid-template-columns: repeat(2, 1fr); }
}
