/* Ask Gigi. Layout only: every color, radius, font and shadow is an existing site token
   or an existing class (.place-sheet, .chip, .btn, .field, .suggest-list, .confirm-msg, .loc-btn, .btn-call). */
html.gigi-open, html.gigi-open body { overflow: hidden; }
.gigi-sheet { z-index: 95; }
.gigi-panel { height: 100%; height: 100dvh; min-height: 0; padding-bottom: calc(0.85rem + env(safe-area-inset-bottom, 0px)); gap: 0.6rem; }
.gigi-panel .place-sheet-bar h2 { line-height: 1.15; }
.gigi-sub { font-size: 12px; font-weight: 500; color: var(--secondary); letter-spacing: 0.01em; }
.gigi-log { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; display: flex; flex-direction: column; gap: 0.85rem; padding: 0.25rem 0.1rem; }
.gigi-turn { display: flex; flex-direction: column; align-items: flex-start; gap: 0.55rem; }
.gigi-msg { font-size: 15px; line-height: 1.45; color: var(--ink); }
.gigi-msg.is-user { align-self: flex-end; max-width: 85%; background: var(--surface); border-radius: var(--radius); padding: 0.55rem 0.8rem; }
.gigi-busy { color: var(--secondary); }
.gigi-summary { font-size: 13px; line-height: 1.45; color: var(--secondary); }
.gigi-turn .confirm-msg { margin: 0; }
.gigi-price-label { color: var(--secondary); }
.gigi-turn .gigi-note { font-size: 0.85em; opacity: 0.75; }
.gigi-places.suggest-list { position: static; width: 100%; max-height: none; box-shadow: none; }
.gigi-places .suggest-item[disabled] { pointer-events: none; }
.gigi-choices .chip { display: inline-flex; align-items: center; text-decoration: none !important; cursor: pointer; }
.gigi-choices .chip:disabled { opacity: 0.55; cursor: default; }
.gigi-inline { width: 100%; }
.gigi-inline .booking-helper { text-align: left; margin: 0 0 0.75rem; }
.gigi-form { display: flex; align-items: flex-end; gap: 0.4rem; }
.gigi-form .field { flex: 1; min-width: 0; margin: 0; }
/* Composer: Dictate (quiet mic) + Talk with Gigi (black waveform circle) when empty;
   once there is text, a Send arrow takes the circle's place, like ChatGPT. All 44px. */
.gigi-form .gigi-dictate,
.gigi-form .gigi-talk,
.gigi-form .gigi-send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: var(--tap);
  height: var(--tap);
  min-height: var(--tap);
  padding: 0;
  border-radius: var(--radius-pill);
  cursor: pointer;
}
.gigi-form .gigi-dictate {
  background: var(--surface);
  color: var(--ink);
  -webkit-text-fill-color: var(--ink);
  border: 1px solid transparent;
}
.gigi-form .gigi-dictate:hover { background: var(--hairline); }
.gigi-form .gigi-dictate.is-listening {
  background: var(--ink);
  color: #fff;
  -webkit-text-fill-color: #fff;
}
@media (prefers-reduced-motion: no-preference) {
  .gigi-form .gigi-dictate.is-listening { animation: gigi-breathe 1.8s var(--ease) infinite; }
}
.gigi-form .gigi-dictate[hidden],
.gigi-form .gigi-talk[hidden],
.gigi-form .gigi-send[hidden],
.gigi-form .gigi-mic[hidden] { display: none; }
.gigi-panel .field input { font-size: 16px; } /* 16px like the place sheet, so phones do not zoom */
/* Dictate (11/24 overhaul): black button with a stop square while listening, a live level meter in the field,
   three dots while the clip turns into text. Same 44px circle, same ink/surface colors. */
.gigi-form .field { position: relative; }
.gigi-form .gigi-dictate .gigi-ico-stop,
.gigi-form .gigi-dictate .gigi-ico-busy { display: none; }
.gigi-form .gigi-dictate.is-listening .gigi-ico-mic { display: none; }
.gigi-form .gigi-dictate.is-listening .gigi-ico-stop { display: block; }
.gigi-form .gigi-dictate.is-busy .gigi-ico-mic { display: none; }
.gigi-form .gigi-dictate.is-busy .gigi-ico-busy { display: inline-flex; gap: 3px; }
.gigi-ico-busy i { display: block; width: 4px; height: 4px; border-radius: var(--radius-pill); background: currentColor; opacity: 0.35; }
@media (prefers-reduced-motion: no-preference) {
  .gigi-ico-busy i { animation: gigi-dot 1s var(--ease) infinite; }
  .gigi-ico-busy i:nth-child(2) { animation-delay: 0.15s; }
  .gigi-ico-busy i:nth-child(3) { animation-delay: 0.3s; }
  .gigi-form .gigi-dictate.is-listening { animation: none; }
}
@keyframes gigi-dot { 40% { opacity: 1; } }
.gigi-dict-meter { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); display: none; align-items: center; gap: 3px; height: 20px; pointer-events: none; }
.gigi-dict-meter.is-on { display: inline-flex; }
.gigi-dict-meter i { display: block; width: 3px; height: 20px; border-radius: var(--radius-pill); background: var(--ink); transform: scaleY(0.2); transform-origin: center; transition: transform 80ms linear; }
@media (prefers-reduced-motion: no-preference) {
  .gigi-dict-meter.is-sim i { animation: gigi-meter 0.9s var(--ease) infinite alternate; }
  .gigi-dict-meter.is-sim i:nth-child(2) { animation-delay: 0.12s; }
  .gigi-dict-meter.is-sim i:nth-child(3) { animation-delay: 0.24s; }
  .gigi-dict-meter.is-sim i:nth-child(4) { animation-delay: 0.36s; }
  .gigi-dict-meter.is-sim i:nth-child(5) { animation-delay: 0.48s; }
}
@keyframes gigi-meter { to { transform: scaleY(0.85); } }
.gigi-form.is-dictating .field input { padding-right: 52px; }
.gigi-dict-msg { margin: 0; text-align: left; }
.gigi-dict-msg[hidden] { display: none; }
.gigi-foot { margin: 0; }
.gigi-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
button.btn-call { background: transparent; color: var(--ink); font-family: inherit; cursor: pointer; }
/* Combined A+B: Ask Gigi pill in the header, and a text line under the homepage headline.
   The hero line is text-only (no second pill) so it doesn't repeat the header button. */
.site-nav .nav-actions .nav-ask { font-family: inherit; cursor: pointer; gap: 0.4rem; }
.site-nav .gigi-mic-icon { width: 16px; height: 16px; flex-shrink: 0; }

/* Phones: hide the header phone icon so Gigi fits. The number stays on the quote card and the bottom bar. */
@media (max-width: 859px) {
  .site-nav .nav-actions .nav-phone { display: none; }
  .site-nav .nav-actions .nav-ask {
    display: inline-flex;
    padding: 0 0.7rem;
    background: var(--surface);
    border: 1px solid transparent;
    color: var(--ink);
    -webkit-text-fill-color: var(--ink);
    font-size: 13.5px;
    font-weight: 600;
  }
  .site-nav .nav-actions .nav-ask:hover { background: var(--hairline); }
  /* "Gigi" is short enough to sit beside Get a quote at 390. */
  .site-nav .nav-ask-label { font-size: 0; }
  .site-nav .nav-ask-label::after { content: "Gigi"; font-size: 13.5px; font-weight: 600; letter-spacing: -0.01em; }
}
@media (max-width: 374px) {
  .site-nav .nav-actions .nav-ask { width: 40px; padding: 0; }
  .site-nav .nav-ask-label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; font-size: 0; }
  .site-nav .nav-ask-label::after { content: none; }
}

/* Tablet: phone stays an icon so Gigi can sit with Customer login and Get a quote. */
@media (min-width: 860px) and (max-width: 1099px) {
  .site-nav .nav-actions .nav-ask { display: inline-flex; padding: 0 0.7rem; font-size: 13.5px; }
  .site-nav .nav-actions .nav-phone { width: 40px; padding: 0; background: var(--surface); }
  .site-nav .nav-actions .nav-phone:hover { background: var(--hairline); }
  .site-nav .nav-phone-num {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
  }
}
@media (min-width: 860px) and (max-width: 999px) {
  .site-nav .nav-actions .nav-ask { width: 40px; padding: 0; }
  .site-nav .nav-ask-label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
}
@media (min-width: 1000px) and (max-width: 1099px) {
  .site-nav .nav-ask-label { font-size: 0; }
  .site-nav .nav-ask-label::after { content: "Gigi"; font-size: 13.5px; font-weight: 600; letter-spacing: -0.01em; }
}

/* Homepage hero: one text line, same treatment on desktop and mobile (no second pill). */
.hero-gigi { margin: 0; }
.hero-gigi-btn {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  color: var(--ink);
  -webkit-text-fill-color: var(--ink);
}
.hero-gigi-btn .gigi-mic-icon { width: 16px; height: 16px; flex-shrink: 0; }
.hero-gigi-lead,
.hero-gigi-note {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--secondary);
  -webkit-text-fill-color: var(--secondary);
}
.hero-gigi-cta {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  -webkit-text-fill-color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}
.hero-gigi-btn:hover .hero-gigi-cta { opacity: 0.7; }
.hero-gigi-btn:focus-visible { outline: 2px solid var(--logo-red); outline-offset: 3px; border-radius: 2px; }
@media (min-width: 860px) {
  .hero-copy .lede { margin-bottom: 1.15rem; }
  .hero-gigi { margin-bottom: 0.25rem; }
}
@media (max-width: 859px) {
  .hero .hero-inner { padding-top: 0.85rem; }
  .hero-copy .eyebrow { margin-bottom: 0.45rem; }
  .hero-copy h1 { margin-bottom: 0.5rem; }
  .hero-copy .lede { margin-bottom: 0.3rem; }
  .hero-gigi { margin: 0; line-height: 1.3; }
  .hero-gigi-lead,
  .hero-gigi-note,
  .hero-gigi-cta { font-size: 14px; }
}

/* Talk to Gigi (voice). Same sheet, buttons, chips and tokens; the round mic reuses .place-back's round shape at a larger size. */
.gigi-voice-stage { flex: 1 1 auto; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; align-items: center; gap: 1rem; padding: 1.5rem 0 0.5rem; text-align: center; }
.gigi-orb { width: 112px; height: 112px; border-radius: 999px; display: grid; place-items: center; background: var(--surface); color: var(--ink); border: 1px solid var(--hairline); cursor: pointer; transition: transform var(--dur-transform) var(--ease), box-shadow var(--dur) var(--ease), background-color var(--dur) var(--ease); }
.gigi-voice-stage > .gigi-orb { margin: 8px 0 6px; } /* room for the live level ring */
.gigi-orb:focus-visible { outline: 2px solid var(--logo-red); outline-offset: 3px; }
.gigi-orb.is-listening { background: var(--ink); color: #fff; box-shadow: 0 0 0 8px rgba(29, 29, 31, 0.06); }
.gigi-orb.is-speaking { box-shadow: 0 0 0 8px rgba(29, 29, 31, 0.06); }
/* Live call (11/24 overhaul): the mic glyph becomes the same five-bar waveform as the composer's black circle,
   and the bars + the existing soft ring follow the real level (--lvl, 0..1): your mic while you talk, Gigi's audio while she speaks. */
.gigi-orb-wave { display: none; align-items: center; justify-content: center; gap: 5px; height: 40px; }
.gigi-orb-wave i { display: block; width: 5px; height: 40px; border-radius: var(--radius-pill); background: currentColor; transform: scaleY(0.2); transform-origin: center; transition: transform 90ms linear; }
.gigi-orb.is-live .gigi-orb-wave { display: inline-flex; }
.gigi-orb.is-live .gigi-orb-mic { display: none; }
.gigi-orb.is-live { box-shadow: 0 0 0 calc(8px + var(--lvl, 0) * 12px) rgba(29, 29, 31, 0.06); transition: box-shadow 90ms linear, background-color var(--dur) var(--ease); }
.gigi-orb[data-state="thinking"], .gigi-orb[data-state="reconnecting"] { background: var(--ink); color: #fff; }
@media (prefers-reduced-motion: no-preference) { .gigi-orb[data-state="connecting"], .gigi-orb[data-state="reconnecting"], .gigi-orb[data-state="thinking"] { animation: gigi-breathe 1.8s var(--ease) infinite; } }
.gigi-voice-hint { margin: 0; max-width: 34ch; text-align: center; }
.gigi-voice-hint[hidden], .gigi-captions[hidden] { display: none; }
@keyframes gigi-breathe { 50% { transform: scale(1.04); } }
.gigi-voice-status { font-size: 15px; font-weight: 500; color: var(--ink); }
.gigi-captions { width: 100%; text-align: left; display: flex; flex-direction: column; gap: 0.2rem; }
.gigi-cap-label { font-size: 12px; font-weight: 500; color: var(--secondary); letter-spacing: 0.01em; margin-top: 0.5rem; }
.gigi-voice-choices { justify-content: center; }
.gigi-voice-actions { display: flex; gap: 0.5rem; }
.gigi-voice-actions .btn { flex: 1; padding: 0 0.8rem; }
/* The site hides every .suggest-list once Google Places loads (it shows Google's own dropdown instead).
   Gigi's address choices are a plain list inside her chat, so keep them visible. */
html.jg-places-google:not(.jg-places-google-empty) .gigi-turn .gigi-places.suggest-list { display: block !important; }
