/* ═══════════════════════════════════════════
   Vera Hero v2 — "Walking on the Grid"
   Production CSS — telamanis.com
   ═══════════════════════════════════════════ */

.vh-root *, .vh-root *::before, .vh-root *::after { box-sizing: border-box; margin: 0; padding: 0; }

.vh-root {
  width: 100%;
  height: 100vh;
  background: #000;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #fff;
}

/* ── Top section: centered content ── */
.vh-top {
  flex: 0 0 85%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 48px 0 48px;
  position: relative;
  z-index: 2;
}

/* Centered content column */
.vh-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 5;
  width: 100%;
  height: 100%;
  justify-content: space-between;
}

/* ── Centered brand block ── */
.vh-logo-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: all 0.4s ease;
}
.vh-brand-circle {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(46,163,219,0.3));
  aspect-ratio: 1 / 1;
  transition: all 0.4s ease;
}
.vh-brand-name {
  color: #2EA3DB;
  font-size: 3.2rem;
  font-weight: 800;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  text-shadow: 0 0 20px rgba(46,163,219,0.3);
  transition: all 0.4s ease;
}

.vh-headline {
  font-size: 1.15rem;
  font-weight: 300;
  line-height: 1.5;
  max-width: 580px;
  color: rgba(255,255,255,0.55);
  text-align: center;
  letter-spacing: 0.06em;
  margin-top: 4px;
}
.vh-headline strong {
  font-weight: 700;
  color: #fff;
}

/* Search bar */
.vh-search {
  display: flex;
  gap: 0;
  align-items: center;
  background: rgba(255,255,255,0.04);
  border: 1.5px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 2px 2px 2px 20px;
  width: 100%;
  max-width: 700px;
  transition: all 0.3s;
}
.vh-search:focus-within {
  border-color: rgba(46,163,219,0.5);
  background: rgba(46,163,219,0.06);
  box-shadow: 0 0 20px rgba(46,163,219,0.12);
}
.vh-search input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 0.9rem;
  padding: 9px 0;
  font-family: inherit;
}
.vh-search input::placeholder { color: rgba(255,255,255,0.3); }
.vh-search button {
  background: #2EA3DB;
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 9px 22px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}
.vh-search button:hover { background: #259AC8; }

/* Pills */
.vh-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 12px;
}
.vh-pill {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.5);
  padding: 8px 16px;
  border-radius: 24px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.vh-pill:hover {
  border-color: rgba(46,163,219,0.4);
  color: rgba(255,255,255,0.8);
}

/* ── Vera — absolute, left side, feet deep in the grid ── */
.vh-vera-container {
  position: absolute;
  bottom: -91px;
  left: 8%;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}
.vh-vera-img {
  height: clamp(380px, 62vh, 600px);
  width: auto;
  object-fit: contain;
  filter:
    drop-shadow(0 0 30px rgba(46,163,219,0.3))
    drop-shadow(0 0 80px rgba(46,163,219,0.15));
}
/* Reflection */
.vh-vera-reflection {
  height: clamp(80px, 12vh, 140px);
  width: auto;
  object-fit: contain;
  transform: scaleY(-1);
  opacity: 0.1;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, transparent 70%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, transparent 70%);
  filter: blur(3px);
  margin-top: -2px;
}

/* ── Grid floor — bottom 15% ── */
.vh-floor {
  flex: 0 0 15%;
  position: relative;
  width: 100%;
  z-index: 1;
}
.vh-grid-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
/* Ground glow under Vera */
.vh-ground-glow {
  position: absolute;
  top: -10px;
  left: 10%;
  width: 250px;
  height: 50px;
  background: radial-gradient(ellipse, rgba(46,163,219,0.3) 0%, transparent 70%);
  z-index: 2;
  pointer-events: none;
}

/* ── Chat area — flows upward from search bar ── */
.vh-chat {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  display: none;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 8px 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.06) transparent;
  mask-image: linear-gradient(to bottom, transparent 0%, black 15%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 15%);
}
.vh-chat.active { display: flex; }

.vh-msg {
  display: flex;
  gap: 10px;
  max-width: 90%;
  animation: msgUp 0.3s ease;
}
@keyframes msgUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.vh-msg.vera { align-self: flex-start; }
.vh-msg.visitor { align-self: flex-end; flex-direction: row-reverse; }

.vh-msg-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  margin-top: 2px;
}
.vh-msg.vera .vh-msg-avatar {
  background: linear-gradient(135deg, #2EA3DB, #35b5f0);
  color: white;
}
.vh-msg.visitor .vh-msg-avatar {
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.7);
}
.vh-bubble {
  border-radius: 14px;
  padding: 10px 14px;
  font-size: 0.88rem;
  line-height: 1.6;
}
.vh-msg.vera .vh-bubble {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-bottom-left-radius: 4px;
  color: rgba(255,255,255,0.85);
}
.vh-msg.visitor .vh-bubble {
  background: rgba(46,163,219,0.12);
  border: 1px solid rgba(46,163,219,0.2);
  border-bottom-right-radius: 4px;
  color: rgba(255,255,255,0.9);
}
.vh-typing {
  display: flex;
  gap: 4px;
  padding: 8px 14px;
  align-self: flex-start;
}
.vh-typing-dot {
  width: 5px; height: 5px;
  background: rgba(46,163,219,0.5);
  border-radius: 50%;
  animation: bounce 1.2s infinite;
}
.vh-typing-dot:nth-child(2) { animation-delay: 0.15s; }
.vh-typing-dot:nth-child(3) { animation-delay: 0.3s; }
@keyframes bounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-3px); }
}

/* ── Messages container ── */
#vhMessages {
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: flex-end;
  flex: 1;
  min-height: 0;
}

/* Typing cursor */
.vh-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: #2EA3DB;
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: cursorBlink 0.8s infinite;
}
@keyframes cursorBlink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* Book call button */
.vh-book-btn {
  display: inline-block;
  background: #2EA3DB;
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  margin-top: 8px;
  margin-left: 0;
  transition: background 0.2s;
}
.vh-book-btn:hover { background: #259AC8; }

/* Email capture */
.vh-email-capture {
  display: flex;
  gap: 8px;
  align-self: flex-start;
  margin-top: 4px;
}
.vh-email-input {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  color: #fff;
  padding: 8px 14px;
  font-size: 0.85rem;
  outline: none;
  font-family: inherit;
}
.vh-email-input:focus { border-color: rgba(46,163,219,0.5); }
.vh-email-submit {
  background: #2EA3DB;
  border: none;
  border-radius: 8px;
  color: #fff;
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
}

/* Brand shrink when chat is active */
.vh-brand-small .vh-brand-circle { width: 60px; height: 60px; }
.vh-brand-small .vh-brand-name { font-size: 1.8rem; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .vh-top { padding-left: 36px; }
  .vh-headline { font-size: 2rem; }
  .vh-vera-img { height: clamp(300px, 50vh, 480px); }
}
@media (max-width: 768px) {
  .vh-root { height: auto; min-height: 100vh; }
  .vh-top {
    padding: 16px 16px 0;
    flex: none;
    min-height: 0;
  }
  .vh-content {
    height: auto;
    justify-content: flex-start;
    gap: 20px;
    padding-bottom: 0;
  }
  .vh-brand-circle { width: 70px !important; height: 70px !important; }
  .vh-brand-name { font-size: 1.6rem !important; letter-spacing: 0.15em !important; }
  .vh-headline { font-size: 0.85rem; text-align: center; margin-top: 2px !important; }
  .vh-logo-row { gap: 6px; }
  .vh-search { max-width: 100%; }
  .vh-search input { font-size: 0.82rem; }
  .vh-search button { font-size: 0.75rem; padding: 8px 14px; }
  .vh-pills { justify-content: center; gap: 6px; }
  .vh-pill { font-size: 0.7rem; padding: 6px 12px; }
  /* Vera — centered below content, standing on the grid */
  .vh-vera-container {
    position: relative;
    left: auto;
    bottom: auto;
    margin: 0 auto;
    z-index: 6;
    margin-top: -20px;
    margin-bottom: -60px;
  }
  .vh-vera-img { height: 300px !important; }
  .vh-vera-reflection { display: none; }
  /* Grid floor */
  .vh-floor { flex: none; height: 100px; }
  .vh-ground-glow { left: 50%; transform: translateX(-50%); width: 200px; }
}
