@import url('../fonts/fonts.css');

/* ---- Base ---- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #05080f; }
::selection { background: rgba(94, 234, 212, .25); color: #f0fdfa; }

/* ---- Keyframes ---- */
@keyframes gridSlide { from { background-position: 0 0; } to { background-position: 0 56px; } }
@keyframes orbDrift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, -40px) scale(1.15); }
  100% { transform: translate(0, 0) scale(1); }
}
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(94, 234, 212, .5); }
  50% { box-shadow: 0 0 0 6px rgba(94, 234, 212, 0); }
}

/* ---- Hover / focus states (replace prototype style-hover runtime) ---- */
.nav-link { transition: color .15s ease; }
.nav-link:hover { color: #5eead4; }

.btn-book { transition: background .15s ease; }
.btn-book:hover { background: #99f6e4; }

.btn-glow { transition: box-shadow .2s ease; }
.btn-glow:hover { box-shadow: 0 0 48px rgba(94, 234, 212, .55); }

.btn-glow-sm { transition: box-shadow .2s ease; }
.btn-glow-sm:hover { box-shadow: 0 0 44px rgba(94, 234, 212, .5); }

.btn-ghost { transition: border-color .15s ease, color .15s ease; }
.btn-ghost:hover { border-color: #5eead4; color: #5eead4; }

.btn-blue { transition: background .15s ease; }
.btn-blue:hover { background: rgba(96, 165, 250, .1); }

.btn-teal { transition: background .15s ease; }
.btn-teal:hover { background: #99f6e4; }

.card-svc { transition: border-color .2s ease, background .2s ease, opacity .7s ease, transform .7s ease; }
.card-svc:hover { border-color: rgba(94, 234, 212, .5); background: rgba(94, 234, 212, .05); }

.card-sec { transition: border-color .2s ease, opacity .7s ease, transform .7s ease; }
.card-sec:hover { border-color: rgba(96, 165, 250, .5); }

.row-region { transition: border-color .2s ease; }
.row-region:hover { border-color: rgba(94, 234, 212, .4); }

.quiz-opt { transition: border-color .15s, background .15s, color .15s; }
.quiz-opt:hover { border-color: rgba(94, 234, 212, .6); background: rgba(94, 234, 212, .06); color: #f0fdfa; }

.faq-head { transition: background .15s ease; }
.faq-head:hover { background: rgba(94, 234, 212, .04); }

.foot-link { transition: color .15s ease; }
.foot-link:hover { color: #5eead4; }

.restart { transition: color .15s ease, border-color .15s ease; }
.restart:hover { color: #5eead4; border-color: #5eead4; }

.inp { transition: border-color .15s ease; }
.inp:focus { border-color: #5eead4; }

.tab { transition: color .15s ease; }
.tab:hover { color: #5eead4; }

/* Range slider accent (Firefox/Chromium) */
input[type="range"] { accent-color: #5eead4; }

/* Reveal helper: JS adds .is-visible; no-JS fallback shows content */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* Field-level validation message */
.field-error { color: #f8a3a3; font-family: 'IBM Plex Sans', sans-serif; font-size: 12.5px; margin-top: 8px; text-align: left; min-height: 1em; }

/* ---- Booking modal ---- */
#booking-dialog { border: none; padding: 0; background: transparent; max-width: min(560px, calc(100vw - 28px)); width: 100%; color: #8fa0b8; }
#booking-dialog::backdrop { background: rgba(3, 6, 12, .74); }
#booking-dialog[open] { animation: dlgIn .18s ease; }
@keyframes dlgIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
#booking-dialog input[type="checkbox"] { accent-color: #5eead4; width: 16px; height: 16px; flex: none; cursor: pointer; }
#booking-dialog .inp { width: 100%; background: #0a1120; border: 1px solid rgba(94, 234, 212, .22); border-radius: 8px; padding: 11px 14px; font-family: 'IBM Plex Sans', sans-serif; font-size: 14.5px; color: #f0fdfa; outline: none; }
#booking-dialog textarea.inp { resize: vertical; min-height: 84px; line-height: 1.5; }
#booking-dialog .fld-label { display: block; font-family: 'JetBrains Mono', monospace; font-size: 11.5px; letter-spacing: .04em; color: #7d8ca3; margin-bottom: 7px; }
.booking-topic { display: flex; align-items: center; gap: 10px; border: 1px solid rgba(94, 234, 212, .14); border-radius: 8px; padding: 10px 12px; cursor: pointer; font-family: 'IBM Plex Sans', sans-serif; font-size: 14px; color: #c3cfdf; transition: border-color .15s, background .15s; }
.booking-topic:hover { border-color: rgba(94, 234, 212, .4); background: rgba(94, 234, 212, .04); }

/* Honeypot: hidden from humans, still submitted by naive bots. */
.hp { position: absolute !important; left: -9999px !important; top: auto; width: 1px; height: 1px; overflow: hidden; opacity: 0; }

@media (max-width: 560px) {
  .booking-grid-2 { grid-template-columns: 1fr !important; }
}

/* ---- Responsive ---- */
@media (max-width: 1000px) {
  .grid-2 { grid-template-columns: 1fr !important; }
  .grid-3 { grid-template-columns: 1fr 1fr !important; }
  .grid-4 { grid-template-columns: 1fr 1fr !important; }
  .pad-x { padding-left: 24px !important; padding-right: 24px !important; }
  .hero-h1 { font-size: 44px !important; }
  .flow-wrap { overflow-x: auto; }
}
@media (max-width: 640px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr !important; }
  .stats-row { flex-wrap: wrap !important; gap: 28px !important; }
  .nav-links { display: none !important; }
  .hero-h1 { font-size: 34px !important; }
}
