/* ==========================================================================
   home-additions.css — 2026-11-15
   Additive homepage changes approved by the founder:
   1. Top menu no longer runs off the right edge on laptop/tablet widths.
   2. Floating AI chat button is smaller on phones so it covers less text.
   3. New "Ask Larry Trustee" box under the hero (opens the existing advisor chat).
   4. New "Built for every family" photo section (diverse people, Unsplash licence).
   Nothing here removes content. The locked advisor files are not touched.
   ========================================================================== */

/* 1a. Laptops 1024–1180px: tighten the menu so "Get Started" fits. */
@media (min-width: 1024px) and (max-width: 1180px) {
  .navbar .nav-trigger, .navbar .nav-direct { padding: 8px 7px !important; font-size: 12.5px !important; }
  .navbar .nav-links { gap: 0 !important; }
  .navbar .nav-actions { gap: 6px !important; margin-left: 4px !important; }
  .navbar .nav-actions .btn { padding: 9px 14px !important; font-size: 13px !important; }
}

/* 1b. Tablets / small laptops 769–1023px: the full menu cannot fit, so use the
       same menu button the phone layout uses. Every link stays in the menu. */
@media (min-width: 769px) and (max-width: 1023px) {
  .nav-links, .nav-actions { display: none; }
  .mobile-toggle { display: flex; }
  .nav-links.active {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: 72px; left: 0; right: 0;
    background: var(--white, #fff); padding: 16px; gap: 4px;
    border-bottom: 1px solid var(--gray-200, #e5e7eb); box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    max-height: 80vh; overflow-y: auto;
  }
  .nav-links.active > li { display: block; width: 100%; border-bottom: 1px solid var(--gray-100, #f3f4f6); }
  .nav-links.active > li:last-child { border-bottom: none; }
  .nav-links.active .nav-trigger { width: 100%; justify-content: space-between; padding: 14px 12px; font-size: 15px; font-weight: 700; color: var(--navy-800, #112240); background: transparent; }
  .nav-links.active .nav-direct { width: 100%; padding: 14px 12px; font-size: 15px; font-weight: 700; }
  .nav-links.active .nav-mega {
    position: static; opacity: 1; visibility: visible; pointer-events: auto; transform: none;
    min-width: 0; max-width: 100%; padding: 0 8px 12px; background: transparent; border: 0; box-shadow: none;
    grid-template-columns: 1fr 1fr !important; gap: 0;
  }
  .nav-links.active .nav-mega-col { padding: 0; }
  .nav-links.active .nav-mega-link { padding: 10px 16px; }
  li.mobile-nav-cta { display: list-item !important; padding: 12px 8px 4px; border-top: 1px solid var(--gray-200, #e5e7eb) !important; list-style: none; }
  li.mobile-nav-cta .btn { padding: 14px 20px !important; font-size: 16px !important; display: block !important; width: 100%; text-align: center; }
}

/* 2. Phones: smaller chat button tucked into the corner. */
@media (max-width: 768px) {
  .lt-ai-fab { width: 52px !important; height: 52px !important; right: 12px !important; bottom: 12px !important; }
  .lt-ai-fab svg { width: 24px !important; height: 24px !important; }
}

/* 3. Ask Larry Trustee box */
.ask-larry { background: linear-gradient(180deg, #0c1a2e 0%, #112240 100%); padding: 56px 0; }
.ask-larry-card {
  box-sizing: border-box;
  max-width: 880px; margin: 0 auto; display: flex; gap: 28px; align-items: center;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(201,168,76,0.35); border-radius: 22px;
  padding: 28px 32px; box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}
.ask-larry-photo { flex: 0 0 96px; width: 96px; height: 96px; border-radius: 50%; object-fit: cover; object-position: center top; border: 3px solid #c9a84c; }
.ask-larry-body { flex: 1; min-width: 0; }
.ask-larry-kicker { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: #e8c866; margin-bottom: 6px; }
.ask-larry h2 { font-family: 'Playfair Display', Georgia, serif; color: #fff; font-size: clamp(24px, 3vw, 32px); line-height: 1.2; margin: 0 0 6px; }
.ask-larry p { color: #b6c2d4; font-size: 15px; line-height: 1.6; margin: 0 0 16px; }
.ask-larry-input {
  width: 100%; max-width: 100%; box-sizing: border-box; display: flex; align-items: center; gap: 10px; text-align: left; cursor: pointer;
  background: #fff; border: 2px solid #c9a84c; border-radius: 14px; padding: 8px 8px 8px 16px; font: inherit;
}
.ask-larry-input span { flex: 1; color: #6b7280; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ask-larry-input b { flex: 0 0 auto; background: linear-gradient(135deg, #c9a84c, #e8c866); color: #0c1a2e; font-weight: 700; font-size: 14px; border-radius: 10px; padding: 10px 18px; }
.ask-larry-input:hover, .ask-larry-input:focus-visible { box-shadow: 0 0 0 4px rgba(201,168,76,0.3); outline: none; }
.ask-larry-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ask-larry-chips button {
  background: rgba(201,168,76,0.12); color: #e8c866; border: 1px solid rgba(201,168,76,0.35); border-radius: 999px;
  padding: 7px 14px; font: inherit; font-size: 13px; cursor: pointer;
}
.ask-larry-chips button:hover { background: rgba(201,168,76,0.22); }
.ask-larry-note { color: #8a97ab !important; font-size: 12px !important; margin: 12px 0 0 !important; }
@media (max-width: 640px) {
  .ask-larry { padding: 40px 0; }
  .ask-larry-card { flex-direction: column; align-items: stretch; text-align: center; padding: 24px 18px; gap: 16px; }
  .ask-larry-photo { align-self: center; }
  .ask-larry-body { width: 100%; }
  .ask-larry-chips { justify-content: center; }
  .ask-larry-input b { padding: 10px 14px; }
}

/* 4. Built for every family — photo section */
.people-section { background: #fff; padding: 88px 0; }
.people-head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.people-head h2 { font-family: 'Playfair Display', Georgia, serif; color: #112240; font-size: clamp(28px, 3.5vw, 40px); margin: 14px 0 10px; }
.people-head p { color: #4b5563; font-size: 17px; line-height: 1.6; margin: 0; }
.people-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; max-width: 1140px; margin: 0 auto; }
.people-card { border-radius: 18px; overflow: hidden; background: #fff; border: 1px solid #e5e7eb; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.people-card img { display: block; width: 100%; height: auto !important; aspect-ratio: 3 / 2; object-fit: cover; object-position: center 30%; }
.people-card div { padding: 16px 18px 18px; }
.people-card h3 { font-family: 'Playfair Display', Georgia, serif; color: #112240; font-size: 19px; margin: 0 0 4px; }
.people-card p { color: #4b5563; font-size: 14px; line-height: 1.55; margin: 0; }
@media (max-width: 900px) { .people-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .people-section { padding: 60px 0; } .people-grid { grid-template-columns: 1fr; gap: 16px; } }

/* 5. Safari fix (2026-11-15): home-polish.css gives every section a 1-second fade-in
      that starts at 60% opacity. Safari/WebKit can leave that animation stuck on its
      first frame, so whole sections stayed washed out behind a white haze.
      Sections are now always fully visible. */
.section, .hero, .social-proof, .ask-larry, .people-section {
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
}

/* 6. Safari fix (2026-11-15): hero items (.animate-fade-up) and scroll-reveal items
      (.reveal) start fully transparent and depend on an animation/transition finishing.
      When Safari doesn't run it, the text stays invisible or half-faded.
      Show them at full strength from the start. */
.animate-fade-up, .reveal, .reveal.active {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}
