/* BARBOBA — components: buttons, nav, cards, forms, modal, toast, cursor */

/* ---------- buttons ---------- */
.btn {
  --btn-bg: transparent; --btn-fg: currentColor; --btn-bd: transparent;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 48px; padding: 0 1.6em; border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg); border: 1px solid var(--btn-bd);
  font-family: var(--f-ui); font-weight: 500; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap; line-height: 1;
  transition: background-color .3s var(--ease-out), color .3s var(--ease-out), border-color .3s var(--ease-out), box-shadow .3s var(--ease-out), transform .3s var(--ease-out);
}
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.btn--primary { --btn-bg: var(--gold); --btn-fg: var(--ink); --btn-bd: var(--gold); }
.btn--primary:not(:disabled):hover { --btn-bg: #D8BC86; box-shadow: 0 10px 30px -10px rgb(201 169 110 / .7); }
.btn--secondary { --btn-bd: var(--gold); --btn-fg: currentColor; }
.btn--secondary:hover { --btn-bg: rgb(201 169 110 / .12); }
.section--paper .btn--secondary { --btn-bd: var(--gold-deep); }
.btn--wa { --btn-bg: var(--ink); --btn-fg: var(--cream); --btn-bd: rgb(244 239 230 / .22); }
.btn--wa:hover { --btn-bd: var(--wa); }
.btn--wa .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--wa); box-shadow: 0 0 0 3px rgb(37 211 102 / .22); flex: none; }
.btn--sm { min-height: 44px; padding: 0 1.2em; font-size: .72rem; }
.btn--lg { min-height: 56px; padding: 0 2em; font-size: .85rem; }
.btn--block { width: 100%; }
.btn--icon { width: 48px; padding: 0; }
.btn svg { width: 1.2em; height: 1.2em; flex: none; }
.btn .arrow { transition: transform .3s var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }
.btn.is-loading { color: transparent !important; pointer-events: none; }
.btn.is-loading::after {
  content: ''; position: absolute; inset: 0; margin: auto; width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid var(--ink); border-right-color: transparent; animation: spin .7s linear infinite;
}
.link-btn { min-height: 44px; display: inline-flex; align-items: center; gap: .4em; text-decoration: underline; text-underline-offset: .25em; font-size: .85rem; }
@keyframes spin { to { transform: rotate(360deg); } }
.magnetic { will-change: auto; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 90; height: var(--nav-h);
  color: var(--cream); transition: transform .5s var(--ease-out), background-color .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.is-solid { background: rgb(14 12 10 / .82); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); border-bottom-color: rgb(201 169 110 / .35); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.nav__brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-height: 44px; }
.nav__brand .logo-mask--mark { width: 40px; color: var(--gold); }
.nav__brand .logo-mask--word { width: 110px; color: var(--cream); }
.nav__links { display: none; margin-inline: auto; gap: clamp(14px, 2vw, 30px); }
.nav__links a {
  position: relative; text-decoration: none; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
  padding-block: 10px; opacity: .82; transition: opacity .2s;
}
.nav__links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease-out);
}
.nav__links a:hover, .nav__links a[aria-current="true"] { opacity: 1; }
.nav__links a[aria-current="true"]::after, .nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nav__book { display: none; }
.lang-toggle {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; border-radius: 999px;
  font-size: .75rem; letter-spacing: .14em;
}
.lang-toggle span { padding: 6px 8px; border-radius: 999px; opacity: .6; transition: background-color .3s, color .3s, opacity .3s; }
.lang-toggle span.is-on { background: var(--cream); color: var(--ink); opacity: 1; }
.nav__burger { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; }
.nav__burger span { display: block; width: 22px; height: 1px; background: currentColor; box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor; }
@media (min-width: 1100px) {
  .nav__links { display: flex; }
  .nav__burger { display: none; }
  .nav__actions { margin-left: 0; }
}
@media (min-width: 560px) { .nav__book { display: inline-flex; } }
@media (max-width: 380px) { .nav__brand .logo-mask--word { width: 88px; } }

/* mobile menu overlay */
.menu {
  position: fixed; inset: 0; z-index: 120; background: var(--ink); color: var(--cream);
  display: flex; flex-direction: column; padding: 20px var(--gutter) calc(24px + env(safe-area-inset-bottom));
  opacity: 0; visibility: hidden; transition: opacity .4s var(--ease-out), visibility 0s .4s;
}
.menu.is-open { opacity: 1; visibility: visible; transition: opacity .4s var(--ease-out); }
.menu__top { display: flex; align-items: center; justify-content: space-between; }
.menu__close { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgb(244 239 230 / .2); font-size: 1.4rem; }
.menu__links { margin-block: auto; display: grid; gap: 4px; }
.menu__links a {
  font-family: var(--f-display); font-size: clamp(2.2rem, 10vw, 3.4rem); text-decoration: none; line-height: 1.15;
  display: flex; align-items: baseline; gap: 14px;
}
.menu__links a small { font-family: var(--f-ui); font-size: .7rem; letter-spacing: .2em; color: var(--gold); }
.menu__links li { opacity: 0; transform: translateY(24px); }
.menu.is-open .menu__links li { opacity: 1; transform: none; transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); transition-delay: calc(var(--i) * 60ms + 120ms); }
.menu__cta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ---------- cards ---------- */
.card { background: var(--paper); color: var(--on-paper); border-radius: var(--radius); border: 1px solid var(--line-paper); }
.pill {
  display: inline-flex; align-items: center; gap: 8px; min-height: 28px; padding: 4px 12px; border-radius: 999px;
  font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 500; border: 1px solid currentColor; white-space: nowrap;
}
.pill .pulse { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse 1.8s var(--ease-inout) infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgb(201 169 110 / .7); } 50% { box-shadow: 0 0 0 6px rgb(201 169 110 / 0); } }
.badge-free {
  display: inline-block; padding: 5px 10px; border-radius: 4px; background: var(--gold); color: var(--ink);
  font-size: .68rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
}

/* ---------- forms ---------- */
.field { display: grid; gap: 6px; }
.field > label, .field__label { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; }
.field__hint { font-size: .8rem; opacity: .75; }
.field__error { font-size: .82rem; color: #B3261E; min-height: 0; }
.on-ink .field__error, .book .field__error { color: #FF9C94; }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 10px;
  background: var(--ivory); color: var(--ink); border: 1px solid rgb(14 12 10 / .2);
  font-weight: 400; transition: border-color .2s, box-shadow .2s;
}
.textarea { min-height: 110px; resize: vertical; }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible { outline: none; border-color: var(--gold-deep); box-shadow: 0 0 0 3px rgb(201 169 110 / .45); }
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: #B3261E; box-shadow: 0 0 0 3px rgb(179 38 30 / .18); }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.check { display: flex; gap: 12px; align-items: flex-start; min-height: 44px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--gold-deep); flex: none; }

/* segmented control / chips */
.seg { display: inline-flex; padding: 4px; border-radius: 999px; border: 1px solid rgb(201 169 110 / .5); gap: 2px; flex-wrap: wrap; }
.seg button, .seg label {
  position: relative; min-height: 44px; padding: 0 18px; border-radius: 999px; display: inline-flex; align-items: center; gap: 8px;
  font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; transition: background-color .3s var(--ease-out), color .3s var(--ease-out); cursor: pointer;
}
.seg [aria-pressed="true"], .seg [aria-checked="true"], .seg input:checked + span { background: var(--gold); color: var(--ink); }
.seg label { padding: 0; }
.seg label span { min-height: 44px; padding: 0 16px; border-radius: 999px; display: inline-flex; align-items: center; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-paper);
  font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 500;
  transition: background-color .3s, color .3s, border-color .3s;
}
.chip[aria-pressed="true"], .chip[aria-checked="true"] { background: var(--on-paper); color: var(--paper); border-color: var(--on-paper); }

/* ---------- modal / dialog ---------- */
.modal {
  position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 16px;
  background: rgb(14 12 10 / .88); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden; transition: opacity .35s var(--ease-out), visibility 0s .35s;
}
.modal.is-open { opacity: 1; visibility: visible; transition: opacity .35s var(--ease-out); }
.modal__panel { position: relative; max-width: min(92vw, 520px); max-height: 92vh; transform: translateY(16px) scale(.98); transition: transform .5s var(--ease-out); }
.modal.is-open .modal__panel { transform: none; }
.modal__panel video { max-height: 86vh; width: auto; border-radius: var(--radius); background: #000; }
.modal__close {
  position: absolute; top: -12px; right: -12px; z-index: 2; width: 48px; height: 48px; border-radius: 50%;
  background: var(--cream); color: var(--ink); display: grid; place-items: center; font-size: 1.3rem; box-shadow: var(--shadow);
}
.modal--sheet .modal__panel { max-width: min(1200px, 100%); width: 100%; max-height: calc(100vh - 32px); overflow: auto; background: var(--ink); border: 1px solid rgb(201 169 110 / .3); border-radius: var(--radius-lg); padding: clamp(20px, 4vw, 40px); }
.modal--sheet .modal__close { top: 12px; right: 12px; position: sticky; float: right; margin: -8px -8px 0 0; }

/* ---------- toast ---------- */
.toasts { position: fixed; z-index: 200; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom)); transform: translateX(-50%); display: grid; gap: 8px; width: min(92vw, 420px); pointer-events: none; }
.toast {
  pointer-events: auto; padding: 14px 18px; border-radius: 12px; background: var(--cream); color: var(--ink);
  box-shadow: var(--shadow); font-size: .92rem; font-weight: 400; display: flex; gap: 12px; align-items: center; justify-content: space-between;
  border-left: 3px solid var(--gold); animation: toast-in .45s var(--ease-out);
}
.toast--error { border-left-color: #B3261E; }
.toast a { font-weight: 500; white-space: nowrap; }
.toast.is-leaving { animation: toast-out .3s var(--ease-inout) forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(8px); } }
@media (min-width: 900px) { .toasts { bottom: 32px; } }

/* ---------- floating WhatsApp + sticky mobile CTA ---------- */
.quick { display: contents; }
.wa-float {
  position: fixed; right: 28px; bottom: 28px; z-index: 80; width: 60px; height: 60px; border-radius: 50%;
  background: var(--ink); color: var(--cream); display: none; place-items: center;
  border: 1px solid rgb(201 169 110 / .5); box-shadow: var(--shadow); transition: transform .3s var(--ease-out), border-color .3s;
}
.wa-float:hover { transform: translateY(-3px); border-color: var(--wa); }
.wa-float svg { width: 26px; height: 26px; color: var(--wa); }
.wa-float__tip {
  position: absolute; right: calc(100% + 12px); top: 50%; transform: translate(6px, -50%); opacity: 0; pointer-events: none;
  background: var(--cream); color: var(--ink); padding: 8px 12px; border-radius: 8px; font-size: .8rem; white-space: nowrap; transition: opacity .25s, transform .25s var(--ease-out);
}
.wa-float:hover .wa-float__tip, .wa-float:focus-visible .wa-float__tip { opacity: 1; transform: translate(0, -50%); }
@media (min-width: 900px) { .wa-float { display: grid; } }

.mbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 85; display: flex; gap: 10px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgb(14 12 10 / .9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top: 1px solid rgb(201 169 110 / .35);
  transform: translateY(110%); transition: transform .45s var(--ease-out);
}
.mbar.is-on { transform: none; }
.mbar .btn--primary { flex: 1; }
@media (min-width: 900px) { .mbar { display: none; } }

/* ---------- custom cursor ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 300; pointer-events: none; display: none; }
.has-cursor .cursor { display: block; }
.cursor__dot { position: fixed; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--gold); }
.cursor__ring {
  position: fixed; width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%; border: 1px solid rgb(201 169 110 / .7);
  display: grid; place-items: center; transition: width .3s var(--ease-out), height .3s var(--ease-out), margin .3s var(--ease-out), background-color .3s, border-color .3s;
}
.cursor__ring span { font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink); opacity: 0; transition: opacity .2s; }
.cursor.is-link .cursor__ring { width: 56px; height: 56px; margin: -28px 0 0 -28px; background: rgb(201 169 110 / .12); }
.cursor.is-view .cursor__ring { width: 76px; height: 76px; margin: -38px 0 0 -38px; background: var(--gold); border-color: var(--gold); }
.cursor.is-view .cursor__ring span { opacity: 1; }
.cursor.is-hidden { opacity: 0; }

/* ---------- misc ---------- */
.icon { width: 20px; height: 20px; flex: none; }
.socials { display: flex; gap: 8px; }
.socials a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgb(244 239 230 / .2); transition: border-color .3s, color .3s; }
.socials a:hover { border-color: var(--gold); color: var(--gold); }
.socials svg { width: 18px; height: 18px; }

.tick-svg path { stroke-dasharray: 24; stroke-dashoffset: 24; }
.is-done .tick-svg path, .is-ticked .tick-svg path { stroke-dashoffset: 0; transition: stroke-dashoffset .5s var(--ease-out) .1s; }

/* range (shared) */
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; cursor: pointer; --pct: 0%; }
.range::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--gold-deep), var(--gold)) 0 / var(--pct) 100% no-repeat, rgb(244 239 230 / .18); }
.range::-moz-range-track { height: 4px; border-radius: 4px; background: rgb(244 239 230 / .18); }
.range::-moz-range-progress { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--gold-deep), var(--gold)); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -11px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #7a6857 0%, #2a211a 45%, #0b0806 100%); box-shadow: 0 0 0 2px var(--gold), 0 6px 14px rgb(0 0 0 / .5); transition: transform .2s var(--ease-out); }
.range::-moz-range-thumb { width: 26px; height: 26px; border: 0; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #7a6857 0%, #2a211a 45%, #0b0806 100%); box-shadow: 0 0 0 2px var(--gold), 0 6px 14px rgb(0 0 0 / .5); }
.range:active::-webkit-slider-thumb { transform: scale(1.15); }
.range:focus-visible { outline: none; }
.range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 2px var(--gold), 0 0 0 6px rgb(201 169 110 / .4); }
.range:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 2px var(--gold), 0 0 0 6px rgb(201 169 110 / .4); }


/* ================= 7.13 footer ================= */
.footer { padding-block: clamp(64px, 9vw, 110px) 32px; border-top: 1px solid rgb(201 169 110 / .3); background: var(--ink); color: var(--cream); }
.footer__grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .footer__grid { grid-template-columns: 1.6fr 1fr 1fr; } }
.footer__logo { width: 180px; color: var(--cream); }
.footer__brand { display: grid; gap: 18px; justify-items: start; }
.footer__tag { font-family: var(--f-display); font-size: 1.3rem; font-style: italic; max-width: 24ch; }
.footer__col h2 { color: var(--gold); margin-bottom: 14px; }
.footer__list { display: grid; gap: 2px; margin-bottom: 18px; }
.footer__list a { display: inline-flex; min-height: 44px; align-items: center; text-decoration: none; opacity: .88; }
.footer__list a:hover { opacity: 1; text-decoration: underline; }
.footer__list li[data-coverage] { padding-block: 10px; opacity: .88; }
.footer__base { margin-top: 56px; display: grid; justify-items: center; gap: 14px; text-align: center; color: rgb(244 239 230 / .75); }
.page-home .footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
@media (min-width: 900px) { .page-home .footer { padding-bottom: 32px; } }

/* thank-you / 404 */
.simple { min-height: 100svh; display: grid; place-items: center; padding: calc(var(--nav-h) + 24px) var(--gutter) 64px; background: radial-gradient(80% 60% at 50% 20%, #2a2017 0%, var(--ink) 70%); color: var(--cream); text-align: center; }
.simple__inner { max-width: 720px; display: grid; gap: 22px; justify-items: center; }
.simple__crest { width: 84px; color: var(--gold); }
.simple .lede { color: rgb(244 239 230 / .88); margin-inline: auto; }
.simple__ref { font-family: var(--f-display); font-size: 1.6rem; color: var(--gold); letter-spacing: .08em; }
.next-steps { list-style: none; padding: 0; display: grid; gap: 14px; text-align: left; counter-reset: s; width: 100%; max-width: 520px; }
.next-steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; padding: 14px 16px; border-radius: var(--radius); border: 1px solid rgb(201 169 110 / .3); background: rgb(26 23 20 / .7); }
.next-steps li::before { content: counter(s); font-family: var(--f-display); font-size: 1.6rem; color: var(--gold); line-height: 1; }
.simple__ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.simple__img { width: min(240px, 60vw); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
