/*
  Lombok Airport Guide — shared stylesheet
  Independent travel guide, not affiliated with Lombok International Airport.
*/

/* ---------- Design tokens ---------- */
:root {
  --navy: #0A2133;
  --teal: #087985;
  --aqua: #25B9B2;
  --sand: #F7F1E7;
  --ivory: #FFFDF8;
  --brown: #A86F45;
  --orange: #ED8849;
  --charcoal: #18242C;
  --muted: #63737D;
  --white: #FFFFFF;

  --radius-small: 8px;
  --radius-medium: 14px;
  --radius-large: 22px;
  --radius-pill: 999px;

  --font-heading: "Manrope", "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;

  --max-content: 1180px;
  --max-article: 760px;

  --shadow-soft: 0 6px 20px rgba(10, 33, 51, 0.08);
  --shadow-medium: 0 12px 32px rgba(10, 33, 51, 0.12);

  --header-height: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--ivory);
  line-height: 1.6;
  min-height: 100vh;
}
img, picture, svg { max-width: 100%; display: block; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--teal); text-decoration-thickness: 1.5px; text-underline-offset: 2px; }
a:hover { color: var(--navy); }
ul, ol { padding-left: 1.25rem; }
table { border-collapse: collapse; width: 100%; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--navy);
  line-height: 1.2;
  font-weight: 800;
}
h1 { font-size: clamp(2rem, 1.6rem + 2vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 1.3rem + 1vw, 2.1rem); margin-bottom: 0.9rem; }
h3 { font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem); margin-bottom: 0.6rem; }
p { margin-bottom: 1rem; }

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

.container {
  max-width: var(--max-content);
  margin-inline: auto;
  padding-inline: 1.25rem;
}
.article-width { max-width: var(--max-article); margin-inline: auto; }

.section { padding-block: clamp(2.5rem, 2rem + 2vw, 4.5rem); }
.section--tight { padding-block: clamp(1.5rem, 1.2rem + 1vw, 2.5rem); }
.section--sand { background: var(--sand); }
.section--navy { background: var(--navy); color: var(--white); }
.section--navy h2, .section--navy h3 { color: var(--white); }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--radius-small) 0;
  z-index: 200;
}
.skip-link:focus {
  left: 0;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.site-header.is-scrolled { box-shadow: var(--shadow-medium); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-height);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  line-height: 1.1;
}
.brand:hover { color: var(--aqua); }
.brand-mark { width: 40px; height: 40px; flex-shrink: 0; }
.brand-text-secondary {
  display: block;
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--aqua);
}

.main-nav { display: none; }
@media (min-width: 960px) {
  .main-nav {
    display: flex;
    align-items: center;
    gap: 1.75rem;
  }
  .main-nav > ul { display: flex; gap: 1.75rem; list-style: none; }
  .nav-group { position: relative; }
  .nav-top-link {
    color: var(--white);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.5rem 0.1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: none;
    border: none;
  }
  .nav-top-link:hover, .nav-group:focus-within .nav-top-link { color: var(--aqua); }
  .nav-caret { width: 10px; height: 10px; transition: transform 0.15s ease; }
  .nav-group:hover .nav-caret, .nav-group:focus-within .nav-caret { transform: rotate(180deg); }
  .nav-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-medium);
    min-width: 240px;
    padding: 0.5rem;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease;
  }
  .nav-group:hover .nav-dropdown,
  .nav-group:focus-within .nav-dropdown {
    opacity: 1;
    visibility: visible;
  }
  .nav-dropdown a {
    display: block;
    padding: 0.6rem 0.75rem;
    border-radius: var(--radius-small);
    color: var(--charcoal);
    font-weight: 500;
    font-size: 0.92rem;
  }
  .nav-dropdown a:hover { background: var(--sand); color: var(--navy); }
}

.header-actions { display: flex; align-items: center; gap: 0.75rem; }
.header-cta { display: none; }
@media (min-width: 960px) { .header-cta { display: inline-flex; } }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-small);
  color: var(--white);
}
@media (min-width: 960px) { .nav-toggle { display: none; } }
.nav-toggle svg { width: 22px; height: 22px; }

.mobile-nav {
  position: fixed;
  inset: 0;
  top: var(--header-height);
  background: var(--navy);
  z-index: 90;
  padding: 1.5rem;
  overflow-y: auto;
  display: none;
}
.mobile-nav.is-open { display: block; }
@media (min-width: 960px) { .mobile-nav { display: none !important; } }
.mobile-nav ul { list-style: none; }
.mobile-nav > ul > li { border-bottom: 1px solid rgba(255,255,255,0.1); }
.mobile-nav a, .mobile-nav .mobile-group-label {
  display: block;
  padding: 0.9rem 0.25rem;
  color: var(--white);
  font-weight: 600;
}
.mobile-nav .mobile-sub { padding-left: 1rem; display: none; }
.mobile-nav .mobile-sub.is-open { display: block; }
.mobile-nav .mobile-sub a { color: var(--sand); font-weight: 500; font-size: 0.95rem; }
.mobile-group-toggle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  text-align: left;
}
.mobile-group-toggle svg { width: 14px; height: 14px; transition: transform 0.15s ease; }
.mobile-group-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.mobile-nav-cta { margin-top: 1.5rem; }

body.nav-locked { overflow: hidden; }

/* ---------- Buttons & badges ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  text-align: center;
  line-height: 1.2;
  min-height: 44px;
}
.btn--primary { background: var(--aqua); color: var(--navy); }
.btn--primary:hover { background: var(--teal); color: var(--white); }
.btn--secondary { background: transparent; border-color: var(--white); color: var(--white); }
.btn--secondary:hover { background: var(--white); color: var(--navy); }
.btn--outline { background: transparent; border-color: var(--teal); color: var(--teal); }
.btn--outline:hover { background: var(--teal); color: var(--white); }
.btn--sunset { background: var(--orange); color: var(--white); }
.btn--sunset:hover { background: var(--brown); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; }

.badge {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-pill);
  background: var(--sand);
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.badge--orange { background: rgba(237,136,73,0.15); color: var(--brown); }
.badge--teal { background: rgba(8,121,133,0.12); color: var(--teal); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: var(--white);
  overflow: hidden;
  min-height: clamp(420px, 60vh, 640px);
  display: flex;
  align-items: center;
  background: var(--navy);
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(10,33,51,0.94) 0%, rgba(10,33,51,0.82) 45%, rgba(10,33,51,0.62) 75%, rgba(10,33,51,0.5) 100%),
    linear-gradient(0deg, rgba(10,33,51,0.55) 0%, rgba(10,33,51,0) 45%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  padding-block: clamp(2.5rem, 2rem + 3vw, 5rem);
  width: 100%;
}
.hero-inner > div { max-width: 640px; }
.hero h1 { color: var(--white); margin-bottom: 1rem; }
.hero p { color: rgba(255,255,255,0.9); font-size: 1.05rem; max-width: 55ch; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
  font-size: 0.85rem;
  color: var(--muted);
  padding-block: 0.9rem;
}
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0; }
.breadcrumbs li::after { content: "›"; margin-left: 0.4rem; color: var(--muted); }
.breadcrumbs li:last-child::after { content: ""; }
.breadcrumbs a { color: var(--muted); font-weight: 600; }
.breadcrumbs a:hover { color: var(--teal); }
.breadcrumbs [aria-current="page"] { color: var(--navy); font-weight: 700; }

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.card {
  background: var(--white);
  border-radius: var(--radius-medium);
  border: 1px solid rgba(10,33,51,0.08);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.card h3 { margin-bottom: 0.2rem; }
.card p { color: var(--muted); font-size: 0.95rem; margin-bottom: 0.5rem; }
.card .card-link { font-weight: 700; margin-top: auto; }
.card-icon { width: 42px; height: 42px; color: var(--teal); }

.fact-card {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-large);
  padding: clamp(1.5rem, 1.2rem + 1vw, 2.25rem);
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}
.fact-card dt { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--aqua); margin-bottom: 0.25rem; }
.fact-card dd { font-weight: 700; font-size: 1.05rem; }

.route-card, .destination-card, .hotel-card, .facility-card {
  background: var(--white);
  border: 1px solid rgba(10,33,51,0.08);
  border-radius: var(--radius-medium);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
}
.route-card img, .destination-card img, .hotel-card img { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; }
.route-card-body, .destination-card-body, .hotel-card-body, .facility-card { padding: 1.25rem 1.4rem; }
.facility-card { text-align: left; }

/* ---------- Journey / info boxes ---------- */
.journey-box, .tip-box, .notice-box, .warning-box {
  border-radius: var(--radius-medium);
  padding: 1.25rem 1.4rem;
  margin-block: 1.5rem;
  border-left: 5px solid var(--teal);
  background: var(--sand);
}
.tip-box { border-left-color: var(--aqua); background: rgba(37,185,178,0.08); }
.notice-box { border-left-color: var(--navy); background: rgba(10,33,51,0.06); }
.warning-box { border-left-color: var(--orange); background: rgba(237,136,73,0.1); }
.journey-box h3, .tip-box h3, .notice-box h3, .warning-box h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.journey-box p:last-child, .tip-box p:last-child, .notice-box p:last-child, .warning-box p:last-child { margin-bottom: 0; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; margin-block: 1.5rem; border-radius: var(--radius-medium); border: 1px solid rgba(10,33,51,0.08); }
.data-table { min-width: 560px; background: var(--white); }
.data-table th, .data-table td { padding: 0.85rem 1rem; text-align: left; border-bottom: 1px solid rgba(10,33,51,0.08); font-size: 0.92rem; }
.data-table thead th { background: var(--navy); color: var(--white); font-family: var(--font-heading); }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:nth-child(even) { background: rgba(247,241,231,0.5); }

/* ---------- Table of contents ---------- */
.toc {
  background: var(--white);
  border: 1px solid rgba(10,33,51,0.1);
  border-radius: var(--radius-medium);
  padding: 1.25rem 1.5rem;
  margin-block: 1.75rem;
}
.toc h2 { font-size: 1.05rem; margin-bottom: 0.6rem; }
.toc ol { padding-left: 1.1rem; columns: 1; }
@media (min-width: 700px) { .toc ol { columns: 2; column-gap: 2rem; } }
.toc li { margin-bottom: 0.35rem; break-inside: avoid; }
.toc a { font-weight: 600; }

/* ---------- Editorial metadata ---------- */
.editorial-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  font-size: 0.85rem;
  color: var(--muted);
  padding-block: 0.75rem;
  border-top: 1px solid rgba(10,33,51,0.1);
  border-bottom: 1px solid rgba(10,33,51,0.1);
  margin-block: 1.5rem;
}
.editorial-meta strong { color: var(--charcoal); }

/* ---------- FAQ accordion ---------- */
.faq-item {
  border-bottom: 1px solid rgba(10,33,51,0.12);
}
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: none;
  border: none;
  text-align: left;
  padding: 1.1rem 0;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--navy);
}
.faq-question svg { width: 18px; height: 18px; flex-shrink: 0; transition: transform 0.15s ease; color: var(--teal); }
.faq-question[aria-expanded="true"] svg { transform: rotate(45deg); }
.faq-answer {
  padding-bottom: 1.1rem;
  color: var(--muted);
}
.faq-answer[hidden] { display: none; }

/* ---------- Affiliate disclosure ---------- */
.affiliate-disclosure {
  background: rgba(168,111,69,0.1);
  border: 1px solid rgba(168,111,69,0.25);
  border-radius: var(--radius-medium);
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  color: var(--charcoal);
  margin-block: 1.5rem;
}

/* ---------- Newsletter ---------- */
.newsletter-box {
  background: var(--teal);
  color: var(--white);
  border-radius: var(--radius-large);
  padding: clamp(1.5rem, 1.2rem + 1vw, 2.5rem);
  display: grid;
  gap: 1.25rem;
  align-items: center;
}
@media (min-width: 780px) { .newsletter-box { grid-template-columns: 1.2fr 1fr; } }
.newsletter-form { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.newsletter-form input[type="email"] {
  flex: 1 1 220px;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-pill);
  border: none;
}
.newsletter-note { font-size: 0.8rem; color: rgba(255,255,255,0.75); margin-top: 0.5rem; }

/* ---------- Contact form ---------- */
.contact-form { display: grid; gap: 1.1rem; max-width: 620px; }
.form-field { display: grid; gap: 0.4rem; }
.form-field label { font-weight: 700; font-size: 0.92rem; }
.form-field input, .form-field select, .form-field textarea {
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(10,33,51,0.2);
  border-radius: var(--radius-small);
  background: var(--white);
  width: 100%;
}
.form-field textarea { min-height: 140px; resize: vertical; }
.form-checkbox { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.9rem; }
.form-checkbox input { margin-top: 0.25rem; width: 18px; height: 18px; }
.form-integration-note {
  background: var(--sand);
  border-radius: var(--radius-small);
  padding: 0.9rem 1.1rem;
  font-size: 0.87rem;
  color: var(--muted);
}
.form-status { font-size: 0.9rem; font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.85); }
.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  padding-block: clamp(2.5rem, 2rem + 2vw, 3.5rem) 2rem;
}
.footer-brand { display: flex; align-items: center; gap: 0.6rem; color: var(--white); font-family: var(--font-heading); font-weight: 800; margin-bottom: 0.75rem; }
.footer-brand svg { width: 36px; height: 36px; }
.footer-col h3 { color: var(--aqua); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.9rem; }
.footer-col ul { list-style: none; display: grid; gap: 0.55rem; }
.footer-col a { color: rgba(255,255,255,0.8); font-size: 0.92rem; }
.footer-col a:hover { color: var(--aqua); }
.footer-social { display: flex; gap: 0.6rem; margin-top: 0.9rem; }
.footer-social a {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-pill);
}
.footer-social svg { width: 16px; height: 16px; }
.footer-disclaimer {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-block: 1.5rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
}
.footer-disclaimer p { margin-bottom: 0.75rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-block: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
}
.footer-bottom ul { list-style: none; display: flex; flex-wrap: wrap; gap: 1rem; }
.footer-bottom a { color: rgba(255,255,255,0.7); }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  border: none;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-medium);
  z-index: 80;
}
.back-to-top.is-visible { display: inline-flex; }
.back-to-top svg { width: 20px; height: 20px; }

/* ---------- Utilities ---------- */
.text-muted { color: var(--muted); }
.mt-0 { margin-top: 0; }
.center { text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.5rem;
}
.section-head { max-width: 700px; margin-bottom: 2rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- 404 ---------- */
.error-page { text-align: center; padding-block: clamp(3rem, 2rem + 4vw, 6rem); }
.error-page .btn-row { justify-content: center; }
