/* Main page styles: JV Tax & Business Consulting LLC */
:root {
  --bg: #061A30; --bg2: #123A60; --ink: #FFFFFF; --sub: #C9D4E0; --btn: #D4AF37; --btn-ink: #061A30;
  --panel: rgba(6, 26, 48, .62); --line: rgba(255, 255, 255, .2);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: "Montserrat", system-ui, sans-serif; color: var(--ink); background: var(--bg); overflow-x: hidden; transition: color .5s; }
.backdrop { position: fixed; inset: 0; z-index: -1; background: radial-gradient(ellipse 80% 70% at 72% 40%, var(--bg2), var(--bg) 75%); transition: background .5s; }
#scene { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.progress { position: fixed; left: 0; top: 0; height: 3px; width: 100%; background: var(--btn); transform-origin: 0 50%; transform: scaleX(0); z-index: 30; }

.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px clamp(16px, 5vw, 64px); background: linear-gradient(var(--bg), transparent); }
.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; font-weight: 600; font-size: 15px; }
.brand img { width: 44px; height: 44px; }
.btn { display: inline-block; font-weight: 600; font-size: 16px; text-decoration: none; padding: 14px 26px; border-radius: 6px; background: var(--btn); color: var(--btn-ink); }
.btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.nav .btn { padding: 10px 18px; font-size: 14px; }

main { position: relative; z-index: 1; }
.panel { min-height: 100vh; display: flex; align-items: center; padding: 96px clamp(16px, 6vw, 96px); }
.copy { max-width: 500px; }
h1, h2 { font-family: "Playfair Display", Georgia, serif; font-weight: 700; margin: 0 0 20px; }
h1 { font-size: clamp(42px, 6vw, 84px); line-height: 1.04; }
h2 { font-size: clamp(34px, 4.4vw, 60px); line-height: 1.08; }
.mask { display: block; overflow: hidden; padding-bottom: .08em; }
.mask > span { display: block; }
p { font-size: clamp(16px, 1.4vw, 19px); line-height: 1.65; color: var(--sub); margin: 0 0 26px; }
.facts { font-size: 14px; margin: 22px 0 0; }
ol { padding: 0; margin: 0; list-style: none; counter-reset: s; }
ol li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; gap: 8px; padding: 16px 0; border-top: 1px solid var(--line); color: var(--sub); }
ol li::before { content: counter(s); font: 700 26px "Playfair Display", serif; color: var(--ink); }
ol li b { color: var(--ink); display: block; }
footer { position: relative; z-index: 1; padding: 28px clamp(16px, 6vw, 96px) 120px; font-size: 13px; color: var(--sub); border-top: 1px solid var(--line); }
footer a { color: inherit; margin-right: 14px; }

/* ---------- booking chat ---------- */
.chat-fab { position: fixed; right: 20px; bottom: 20px; z-index: 50; display: flex; align-items: center; gap: 10px;
  padding: 10px 18px 10px 10px; border-radius: 999px; border: 2px solid var(--btn); background: #0F2D4A; color: #fff;
  font: 600 15px "Montserrat", sans-serif; cursor: pointer; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.chat-fab img { width: 40px; height: 40px; border-radius: 50%; }
.chat-fab:focus-visible, .chat button:focus-visible, .chat input:focus-visible, .chat a:focus-visible { outline: 3px solid #D4AF37; outline-offset: 2px; }
.chat-fab[hidden] { display: none; }
.chat { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 390px; max-width: calc(100vw - 32px); height: min(640px, calc(100vh - 40px));
  display: flex; flex-direction: column; background: #fff; color: #202124; border-radius: 18px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,.45); font-family: "Montserrat", sans-serif; }
.chat[hidden] { display: none; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: #0F2D4A; color: #fff; border-bottom: 3px solid #D4AF37; }
.chat-head img { width: 42px; height: 42px; border-radius: 50%; }
.chat-head b { display: block; font-size: 15px; }
.chat-head span { font-size: 12px; color: #C9D4E0; }
.chat-close { margin-left: auto; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
.chat-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: #F5F7FA; overscroll-behavior: contain; }
.msg { max-width: 86%; padding: 10px 14px; border-radius: 16px; font-size: 15px; line-height: 1.45; white-space: pre-line; }
.msg.bot { align-self: flex-start; background: #fff; border: 1px solid #E1E6EC; border-bottom-left-radius: 4px; }
.msg.me { align-self: flex-end; background: #0F2D4A; color: #fff; border-bottom-right-radius: 4px; }
.msg.note { align-self: stretch; max-width: none; background: #EEF2F6; color: #3D4A57; font-size: 13px; border-radius: 10px; }
.typing { align-self: flex-start; display: flex; gap: 4px; padding: 12px 14px; background: #fff; border: 1px solid #E1E6EC; border-radius: 16px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: #8A97A5; animation: blink 1s infinite alternate; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { from { opacity: .25; } to { opacity: 1; } }
.chat-foot { padding: 12px 14px 14px; border-top: 1px solid #E1E6EC; background: #fff; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choices button { padding: 9px 14px; border-radius: 999px; border: 1.5px solid #0F2D4A; background: #fff; color: #0F2D4A; font: 600 14px "Montserrat", sans-serif; cursor: pointer; }
.choices button:hover { background: #0F2D4A; color: #fff; }
.ask { display: flex; gap: 8px; }
.ask input { flex: 1; min-width: 0; padding: 12px 14px; border: 1.5px solid #B9C4CF; border-radius: 10px; font: 500 16px "Montserrat", sans-serif; color: #202124; }
.ask button, .send { padding: 12px 16px; border: 0; border-radius: 10px; background: #0F2D4A; color: #fff; font: 600 15px "Montserrat", sans-serif; cursor: pointer; }
.send { width: 100%; margin-top: 10px; background: #D4AF37; color: #061A30; }
.send:disabled { opacity: .45; cursor: not-allowed; }
.err { color: #B3261E; font-size: 13px; margin: 6px 2px 0; min-height: 1em; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.45; color: #3D4A57; }
.consent input { width: 20px; height: 20px; margin-top: 1px; flex: none; accent-color: #0F2D4A; }
.consent a { color: #0F2D4A; font-weight: 600; }
.summary { margin: 0; padding: 0; list-style: none; font-size: 14px; }
.summary li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid #E1E6EC; }
.summary li span:first-child { color: #5B6875; }
.summary li span:last-child { font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.chat-legal { font-size: 11px; color: #6B7682; text-align: center; padding: 6px 12px 10px; background: #fff; }

@media (max-width: 820px) {
  .panel { align-items: flex-start; padding-top: 50vh; padding-bottom: 10vh; }
  .copy { background: var(--panel); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); padding: 22px; border-radius: 14px; }
  .brand span { font-size: 13px; max-width: 150px; line-height: 1.25; }
  .nav .btn { display: none; }
  h1 { font-size: 38px; }
  .chat { right: 0; bottom: 0; width: 100%; max-width: none; height: 88vh; border-radius: 18px 18px 0 0; }
  .chat-fab { right: 14px; bottom: 14px; }
}

/* mid-size screens: a slightly narrower text column leaves room for the 3D coin and its ring */
@media (min-width: 821px) and (max-width: 1280px) {
  .copy { max-width: 420px; }
}
