/* ═══════════════════════════════════════
   NIVERO — Shared Styles
═══════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #0b0d10;
  --bg2:         #111418;
  --surface:     rgba(255,255,255,0.03);
  --surface-h:   rgba(255,255,255,0.06);
  --border:      rgba(255,255,255,0.10);
  --border2:     rgba(255,255,255,0.16);
  --fg:          #f0fff1;
  --fg-dim:      rgba(240,255,241,0.55);
  --green:       #4ade80;
  --green-h:     #22c55e;
  --green-soft:  rgba(74,222,128,0.12);
  --green-ring:  rgba(74,222,128,0.30);
  --pink:        #f472b6;
  --pink-soft:   rgba(244,114,182,0.12);
  --sans:        'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono:        'Roboto Mono', monospace;
  --pad:         clamp(20px, 4vw, 80px);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--fg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

/* ═══════════════════════════════════════
   NAV
═══════════════════════════════════════ */
nav {
  position: sticky;
  top: 0;
  z-index: 500;
  height: 58px;
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(11,13,16,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo img { height: 26px; width: auto; }

.nav-links {
  display: none;
  list-style: none;
  align-items: center;
  gap: 0;
}
.nav-links a {
  display: block;
  height: 58px;
  line-height: 58px;
  padding: 0 16px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-dim);
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
  border-left: 1px solid var(--border);
  position: relative;
}
.nav-links a:hover { color: var(--fg); }
.nav-links a[data-current="true"] {
  color: var(--green);
}
.nav-links a[data-current="true"]::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--green);
}

.nav-cta {
  display: none;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.01em;
  padding: 9px 18px;
  background: var(--pink);
  color: #000;
  text-decoration: none;
  transition: opacity 0.18s;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-cta:hover { opacity: 0.88; }

.nav-end { display: flex; align-items: center; gap: 0; }

/* Hamburger */
.burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 1px solid var(--border2);
  padding: 9px 10px;
  cursor: pointer;
  flex-shrink: 0;
}
.burger span {
  display: block;
  width: 18px; height: 1.5px;
  background: var(--fg);
  transition: transform 0.22s, opacity 0.22s;
}
.burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile drawer */
.drawer {
  position: fixed;
  top: 58px; left: 0; right: 0;
  z-index: 499;
  background: var(--bg2);
  border-bottom: 1px solid var(--border2);
  display: none;
  flex-direction: column;
}
.drawer.open { display: flex; }
.drawer a {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-dim);
  text-decoration: none;
  padding: 15px 20px;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s, background 0.2s;
}
.drawer a:hover { color: var(--fg); background: var(--surface-h); }
.drawer a:last-child { border-bottom: none; }
.drawer .d-cta {
  background: var(--pink);
  color: #000;
  font-weight: 500;
  text-align: center;
  margin: 12px 20px 20px;
  border-bottom: none;
}
.drawer .d-cta:hover { opacity: 0.88; color: #000; }

/* ═══════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */
footer {
  padding: 40px var(--pad);
  border-top: 1px solid var(--border);
  background: var(--bg2);
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  text-align: center;
}

.footer-inner {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  text-align: center;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.footer-brand img { height: 22px; width: auto; }
.footer-tagline {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--fg-dim);
  letter-spacing: 0.04em;
}

.footer-links {
  display: flex;
  gap: 0;
  list-style: none;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-links a {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-dim);
  text-decoration: none;
  padding: 8px 14px;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--fg); }

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.footer-cta {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 13px;
  padding: 9px 18px;
  background: var(--pink);
  color: #000;
  text-decoration: none;
  transition: opacity 0.18s;
}
.footer-cta:hover { opacity: 0.88; }
.footer-copy {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--fg-dim);
  letter-spacing: 0.06em;
}

/* ═══════════════════════════════════════
   SHARED COMPONENTS
═══════════════════════════════════════ */

/* Buttons */
.btn-primary {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.01em;
  padding: 13px 26px;
  background: var(--green);
  color: #000;
  text-decoration: none;
  transition: background 0.18s;
  text-align: center;
}
.btn-primary:hover { background: var(--green-h); }

.btn-outline {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.01em;
  padding: 12px 26px;
  background: transparent;
  color: var(--fg-dim);
  border: 1px solid var(--border2);
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s;
  text-align: center;
}
.btn-outline:hover { color: var(--fg); border-color: rgba(255,255,255,0.35); }

.btn-pink {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 14px;
  padding: 13px 26px;
  background: var(--pink);
  color: #000;
  text-decoration: none;
  transition: opacity 0.18s;
  text-align: center;
}
.btn-pink:hover { opacity: 0.88; }

/* Eyebrow */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 20px;
}
.eyebrow-dot {
  width: 6px; height: 6px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--green);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.3} }

/* Page hero (reusable) */
.page-hero {
  padding: 80px var(--pad) 56px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(74,222,128,0.08) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}
.page-hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}
.page-headline {
  font-weight: 900;
  font-size: clamp(42px, 8vw, 72px);
  line-height: 1.0;
  letter-spacing: -0.025em;
  color: var(--fg);
  margin-bottom: 20px;
}
.page-headline .green { color: var(--green); }
.page-sub {
  font-weight: 400;
  font-size: clamp(15px, 2vw, 17px);
  color: var(--fg-dim);
  line-height: 1.75;
  max-width: 560px;
}

/* Tags */
.tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.tag.green { color: var(--green); }

/* ═══════════════════════════════════════
   BOOKING MODAL (slide-in panel)
═══════════════════════════════════════ */

/* Overlay */
.book-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 900;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}
.book-overlay.open {
  opacity: 1;
  pointer-events: all;
}

/* Panel */
.book-panel {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(480px, 100vw);
  z-index: 901;
  background: #0f1216;
  border-left: 1px solid var(--border2);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}
.book-panel.open {
  transform: translateX(0);
}

/* Panel header */
.book-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.book-panel-title {
  font-weight: 700;
  font-size: 16px;
  color: var(--fg);
  letter-spacing: -0.01em;
}
.book-panel-sub {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--green);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 2px;
}
.book-close {
  width: 36px; height: 36px;
  background: var(--surface-h);
  border: 1px solid var(--border2);
  color: var(--fg-dim);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.18s, background 0.18s;
  flex-shrink: 0;
  line-height: 1;
}
.book-close:hover { color: var(--fg); background: var(--border); }

/* Panel body */
.book-panel-body {
  padding: 28px;
  flex: 1;
}

/* Form fields */
.book-form { display: flex; flex-direction: column; gap: 16px; }

.book-field { display: flex; flex-direction: column; gap: 6px; }

.book-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.book-label .req { color: var(--pink); margin-left: 2px; }

.book-input,
.book-textarea,
.book-select {
  background: var(--surface);
  border: 1px solid var(--border2);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 14px;
  padding: 11px 14px;
  outline: none;
  transition: border-color 0.18s, background 0.18s;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
}
.book-input::placeholder,
.book-textarea::placeholder { color: rgba(240,255,241,0.25); }
.book-input:focus,
.book-textarea:focus,
.book-select:focus {
  border-color: var(--green-ring);
  background: var(--surface-h);
}
.book-input.error,
.book-textarea.error,
.book-select.error { border-color: #ef4444; }

.book-textarea { resize: vertical; min-height: 100px; }

/* Select arrow */
.book-select-wrap { position: relative; }
.book-select-wrap::after {
  content: '▾';
  position: absolute;
  right: 14px; top: 50%;
  transform: translateY(-50%);
  color: var(--fg-dim);
  font-size: 12px;
  pointer-events: none;
}
.book-select option { background: #0f1216; }

.book-error-msg {
  font-family: var(--mono);
  font-size: 10px;
  color: #ef4444;
  letter-spacing: 0.04em;
  display: none;
}
.book-error-msg.show { display: block; }

.book-submit {
  width: 100%;
  padding: 14px;
  background: var(--pink);
  color: #000;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.03em;
  border: none;
  cursor: pointer;
  transition: opacity 0.18s;
  margin-top: 4px;
}
.book-submit:hover { opacity: 0.88; }
.book-submit:disabled { opacity: 0.5; cursor: not-allowed; }

/* Success state */
.book-success {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 28px;
  gap: 16px;
  flex: 1;
}
.book-success.show { display: flex; }
.book-success-mark {
  width: 56px; height: 56px;
  background: var(--green-soft);
  border: 1px solid var(--green-ring);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}
.book-success-title {
  font-weight: 700;
  font-size: 20px;
  color: var(--fg);
}
.book-success-sub {
  font-size: 14px;
  color: var(--fg-dim);
  line-height: 1.65;
  max-width: 320px;
}
.book-success-time {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--green);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Response time note in panel */
.book-response-note {
  margin-top: 8px;
  padding: 12px 14px;
  background: var(--green-soft);
  border: 1px solid var(--green-ring);
  display: flex;
  align-items: center;
  gap: 10px;
}
.book-response-dot {
  width: 6px; height: 6px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--green);
  flex-shrink: 0;
  animation: pulse 2s ease-in-out infinite;
}
.book-response-text {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--green);
  letter-spacing: 0.06em;
}

/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */
@media (min-width: 640px) {
  footer .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }
  .footer-brand { align-items: flex-start; }
  .footer-right { align-items: flex-end; }
}

@media (min-width: 1024px) {
  .nav-links { display: flex; }
  .nav-cta { display: block; }
  .burger { display: none; }
}
