/* ============================================================
   Bravo Bali — components: nav, buttons, cards, forms, footer.
============================================================ */

/* ---------- brand lockup (text only) ---------- */
.brand { display: inline-flex; align-items: center; line-height: 1; }
.brand__text { display: grid; gap: .32rem; }
.brand__name {
  font-family: var(--font-display); font-weight: 600; font-size: 1.45rem;
  letter-spacing: .06em;
}
.brand__tag { font-size: .6rem; font-weight: 600; letter-spacing: .3em; opacity: .8; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-nav);
  color: var(--text-on-dark);
  transition: background var(--t-med) var(--ease), color var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  height: 76px; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter);
}
.nav.scrolled, .nav--solid {
  background: rgba(255, 247, 225, .92);
  -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
  color: var(--ink); box-shadow: 0 1px 0 var(--line);
}
.nav__links { display: none; align-items: center; gap: 1.8rem; font-size: var(--fs-sm); font-weight: 500; }
.nav__links > a { position: relative; padding-block: .4rem; opacity: .86; transition: opacity var(--t-fast); }
.nav__links > a:hover, .nav__links > a[aria-current="page"] { opacity: 1; }
.nav__links > a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--sun); border-radius: 2px; box-shadow: 0 1px 0 var(--peach-deep);
}
.nav__actions { display: flex; align-items: center; gap: .8rem; }
@media (min-width: 1040px) { .nav__links { display: flex; } }

.lang-switch { display: inline-flex; border: 1px solid currentColor; border-radius: var(--r-pill); padding: 2px; opacity: .9; }
.lang-btn {
  border: 0; background: none; padding: .28rem .62rem; border-radius: var(--r-pill);
  font-size: .72rem; font-weight: 700; letter-spacing: .08em; color: inherit;
}
.lang-btn.active { background: currentColor; }
.lang-btn.active span { color: var(--ink); }
.nav.scrolled .lang-btn.active span, .nav--solid .lang-btn.active span { color: var(--sand); }
.drawer .lang-btn.active span { color: var(--ink); }

.burger {
  display: inline-grid; place-items: center; place-content: center; gap: 5px; width: 44px; height: 44px;
  border: 1px solid currentColor; border-radius: 50%; background: none; padding: 0;
}
.burger span { display: block; width: 18px; height: 1.5px; background: currentColor; transition: transform var(--t-med) var(--ease); }
.burger.open span:first-child { transform: translateY(3.25px) rotate(45deg); }
.burger.open span:last-child { transform: translateY(-3.25px) rotate(-45deg); }
@media (min-width: 1040px) { .burger { display: none; } }

@media (max-width: 380px) {
  .nav__inner { gap: .6rem; }
  .brand__name { font-size: 1.2rem; letter-spacing: .04em; }
  .brand__tag { font-size: .54rem; letter-spacing: .22em; }
  .nav__actions { gap: .5rem; }
}

.drawer {
  position: fixed; inset: 0; z-index: var(--z-drawer);
  background: var(--ink); color: var(--sand);
  display: flex; flex-direction: column; padding: 96px var(--gutter) 2rem;
  transform: translateY(-100%); transition: transform var(--t-slow) var(--ease);
  visibility: hidden;
}
.drawer.open { transform: none; visibility: visible; }
.drawer__links { display: grid; gap: .2rem; }
.drawer__links a {
  font-family: var(--font-display); font-size: clamp(2rem, 8vw, 2.8rem); line-height: 1.2;
  display: flex; align-items: baseline; gap: 1rem; padding-block: .3rem;
  border-bottom: 1px solid var(--line-on-dark);
}
.drawer__links small { font-family: var(--font-body); font-size: .75rem; color: var(--sun); letter-spacing: .1em; }
.drawer__foot { margin-top: auto; display: grid; gap: 1rem; }
.drawer__foot .lang-switch { justify-self: start; }
.nav.nav--open { background: transparent; box-shadow: none; color: var(--sand); -webkit-backdrop-filter: none; backdrop-filter: none; }
.nav.nav--open .nav__actions .lang-switch, .nav.nav--open .nav__actions .btn { visibility: hidden; }
.drawer .burger-close { position: absolute; top: 16px; right: var(--gutter); }

/* ---------- buttons ---------- */
.btn {
  --btn-bg: transparent; --btn-fg: currentColor; --btn-bd: currentColor;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 48px; padding: .8rem 1.4rem; border-radius: var(--r-pill);
  border: 1px solid var(--btn-bd); background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 600; font-size: .98rem; line-height: 1.1; white-space: nowrap;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), border-color var(--t-fast);
}
.btn svg { width: 1.15em; height: 1.15em; flex: 0 0 auto; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn--wa { --btn-bg: var(--sun); --btn-fg: var(--ink); --btn-bd: var(--sun); }
.btn--wa:hover { --btn-bg: var(--peach); --btn-bd: var(--peach); }
.btn--ink { --btn-bg: var(--ink); --btn-fg: var(--cream); --btn-bd: var(--ink); }
.btn--ink:hover { --btn-bg: var(--green); --btn-bd: var(--green); --btn-fg: var(--cream); }
.btn--ghost:hover { --btn-bg: rgba(43, 38, 16, .08); }
.on-dark .btn--ghost:hover, .page-hero .btn--ghost:hover, .hero .btn--ghost:hover { --btn-bg: rgba(255, 247, 225, .16); }
.btn--sm { min-height: 40px; padding: .55rem 1rem; font-size: .88rem; }
.btn--block { width: 100%; white-space: normal; text-align: center; }
.nav .btn--wa { display: none; }
@media (min-width: 640px) { .nav .btn--wa { display: inline-flex; } }

.link-arrow {
  display: inline-flex; align-items: center; gap: .45rem; font-weight: 600;
  border-bottom: 1px solid currentColor; padding-bottom: 2px;
}
.link-arrow svg { width: 1em; height: 1em; transition: transform var(--t-fast) var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- chips & badges ---------- */
.chip-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  display: inline-flex; align-items: center; gap: .4rem; min-height: 40px;
  padding: .45rem 1rem; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: transparent; font-size: .9rem; font-weight: 500;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--sand); border-color: var(--ink); }
.badge {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .3rem .7rem; border-radius: var(--r-pill);
  background: var(--green-soft); color: var(--green);
  font-size: .76rem; font-weight: 600; letter-spacing: .02em;
}
.badge--light { background: rgba(43, 38, 16, .6); color: var(--cream); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }

/* ---------- tour card ---------- */
.tour-grid { display: grid; gap: clamp(1rem, .5rem + 1.5vw, 1.8rem); grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }
.tour-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--white); border-radius: var(--r-md); overflow: hidden;
  box-shadow: var(--shadow); transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}
.tour-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.tour-card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--sand-2); }
.tour-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.tour-card:hover .tour-card__media img { transform: scale(1.05); }
.tour-card__media .badge { position: absolute; top: .9rem; left: .9rem; }
.tour-card__body { display: flex; flex-direction: column; gap: .6rem; padding: 1.25rem 1.3rem 1.4rem; flex: 1; }
.tour-card__meta { display: flex; flex-wrap: wrap; gap: .3rem 1rem; font-size: .84rem; color: var(--text-soft); }
.tour-card__meta span { display: inline-flex; align-items: center; gap: .35rem; }
.tour-card__meta svg { width: 15px; height: 15px; }
.tour-card h3 { font-size: 1.45rem; }
.tour-card h3 a::after { content: ""; position: absolute; inset: 0; }
.tour-card p { color: var(--text-soft); font-size: .95rem; }
.tour-card__foot {
  margin-top: auto; padding-top: .9rem; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-size: .9rem;
}
.tour-card__price { font-weight: 600; }
.tour-card__go { color: var(--peach-deep); font-weight: 600; display: inline-flex; align-items: center; gap: .3rem; }
.tour-card.is-hidden { display: none; }

/* ---------- accordion (FAQ) ---------- */
.faq { display: grid; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1.5rem; align-items: center;
  padding: 1.25rem 0; font-weight: 600; font-size: 1.08rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: 0 0 14px; height: 14px;
  background:
    linear-gradient(currentColor, currentColor) center / 14px 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 14px no-repeat;
  transition: transform var(--t-med) var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 1.4rem; color: var(--text-soft); max-width: 70ch; }
.on-dark .faq, .on-dark .faq details { border-color: var(--line-on-dark); }

/* ---------- forms ---------- */
.form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.form__row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
@media (min-width: 640px) { .form__row--2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: .4rem; }
.field label, .field legend { font-size: .82rem; font-weight: 600; letter-spacing: .02em; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: .7rem .95rem;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--white);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(94, 108, 34, .22);
}
.form__note { font-size: .82rem; color: var(--text-soft); }
.check-grid { display: grid; gap: .5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); border: 0; padding: 0; margin: 0; }
.check {
  display: flex; align-items: center; gap: .6rem; min-height: 46px; padding: .55rem .8rem;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--white); cursor: pointer; font-size: .92rem;
}
.check input { width: 18px; height: 18px; accent-color: var(--green); flex: 0 0 auto; }
.check:has(input:checked) { border-color: var(--green); background: var(--green-soft); }

/* ---------- breadcrumb ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: .45rem; font-size: .84rem; opacity: .8; }
.crumbs a:hover { text-decoration: underline; }
.crumbs span[aria-hidden] { opacity: .6; }

/* ---------- lists ---------- */
.ticks { display: grid; gap: .6rem; }
.ticks li { position: relative; padding-left: 1.8rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .32em; width: 1.05rem; height: 1.05rem; border-radius: 50%;
  background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.4l2.6 2.4L12 5.4' fill='none' stroke='%235E6C22' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 80% no-repeat;
}
.crosses li::before {
  background: #FFE3C7 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5 5l6 6M11 5l-6 6' fill='none' stroke='%23B8641A' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center / 80% no-repeat;
}

/* ---------- mobile WhatsApp bar ---------- */
.wa-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-bar);
  display: flex; align-items: center; gap: .8rem; justify-content: space-between;
  padding: .7rem var(--gutter) calc(.7rem + env(safe-area-inset-bottom));
  background: rgba(255, 247, 225, .95); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform var(--t-med) var(--ease);
}
.wa-bar.show { transform: none; }
.wa-bar__text { font-size: .84rem; line-height: 1.3; }
.wa-bar__text strong { display: block; font-size: .95rem; }
@media (min-width: 900px) { .wa-bar { display: none; } }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: var(--text-on-dark); padding: clamp(4rem, 3rem + 4vw, 6.5rem) 0 2rem; }
.footer__cta {
  display: grid; gap: 1.6rem; padding-bottom: clamp(3rem, 2rem + 3vw, 4.5rem);
  border-bottom: 1px solid var(--line-on-dark); margin-bottom: 3rem;
}
.footer__cta h2 { max-width: 16ch; }
.footer__cta h2 em { color: var(--sun); }
@media (min-width: 900px) { .footer__cta { grid-template-columns: 1.4fr 1fr; align-items: end; } .footer__cta .btn { justify-self: end; } }
.footer__grid { display: grid; gap: 2.4rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.footer ul a { overflow-wrap: anywhere; }
@media (min-width: 900px) { .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; } }
.footer__about { grid-column: 1 / -1; display: grid; gap: 1.2rem; max-width: 34ch; color: var(--text-on-dark-soft); font-size: .95rem; }
@media (min-width: 900px) { .footer__about { grid-column: auto; } }
.footer h4 { font-family: var(--font-body); font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: var(--sun); margin-bottom: 1rem; }
.footer ul { display: grid; gap: .55rem; font-size: .95rem; color: var(--text-on-dark-soft); }
.footer ul a:hover { color: var(--sun); }
.footer__base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  margin-top: 3.5rem; padding-top: 1.6rem; border-top: 1px solid var(--line-on-dark);
  font-size: .82rem; color: var(--text-on-dark-soft);
}
@media (max-width: 899px) { .footer { padding-bottom: 6rem; } }
