/* landing.css
   Landing page polish that stays consistent with SuperChat (light, Zephyr + site-overrides).
   Uses restrained “frosted touch” surfaces and your site’s primary color for CTAs.
*/

:root{
  --tb-surface: rgba(255,255,255,.75);
  --tb-surface2: rgba(255,255,255,.90);
  --tb-stroke: rgba(0,0,0,.08);
  --tb-stroke2: rgba(0,0,0,.12);
  --tb-shadow: 0 10px 30px rgba(0,0,0,.06);
  --tb-radius-xl: 22px;
  --tb-radius-lg: 18px;
  --tb-radius-md: 14px;
}

/* =========================================================
   Landing hero isolation
   Why: site-overrides.css may define a PHOTO `.tb-hero` (hero.jpg, fixed height, etc).
   Landing uses a frosted/bright hero and must NOT inherit `.tb-hero`.
   Fix: landing pages should use `.tb-landing-hero`.
   ========================================================= */

.tb-landing-hero{
  position: relative;
  border-bottom: 1px solid rgba(0,0,0,.08);

  /* Tokenized hero glow (brand-controlled via CSS vars written by render.py):
     Defaults preserve current look if tokens aren't provided. */
  background:
    radial-gradient(1200px 420px at 50% 35%,
      var(--tb-hero-glow-1, rgba(13,110,253,.12)),
      rgba(255,255,255,0) 55%),
    radial-gradient(900px 380px at 12% 28%,
      var(--tb-hero-glow-2, rgba(47,164,169,.10)),
      rgba(255,255,255,0) 60%),
    var(--tb-hero-base, #f8f9fa);

  /* tightened rhythm */
  padding-top: .25rem !important;
  padding-bottom: .75rem !important;
}

/* Brand strip */
.tb-brandstrip{
  border-radius: 18px;
  background: rgba(255,255,255,.68);
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 14px 34px rgba(0,0,0,.06);
  padding: .85rem 1rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* If you intentionally hide the brand strip on some landing variants */
body.landing-no-brand .tb-brandstrip{ display:none !important; }

/* Landing header/nav polish */
.tb-landing-nav{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.78) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,.06) !important;
}
.tb-landing-nav .nav-link{
  font-weight: 700;
  color: rgba(0,0,0,.60);
}
.tb-landing-nav .nav-link:hover{
  color: rgba(0,0,0,.85);
}

/* Section anchor offsets so sticky header doesn't hide headings */
#faq{ scroll-margin-top: 92px; }
#about{ scroll-margin-top: 92px; }

/* Slightly tighten section padding (landing pages can feel airy) */
section.py-5{
  padding-top: 3rem !important;
  padding-bottom: 3rem !important;
}

/* =========================================================
   Landing hero (FINAL): emblem image + text
   - no background-image
   - easy image sizing
   - consistent across sites
   ========================================================= */

/* Landing pages must never inherit PHOTO hero behavior */
.tb-landing-hero .tb-hero{
  background: none !important;
}

/* Layout */
.tb-landing-hero .tb-hero{
  padding: 2px 0 2px;
}

.tb-landing-hero .tb-hero-inner{
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 18px;
}

/* The knob you actually want: emblem size */
.tb-landing-hero .tb-hero-emblem{
  width: clamp(28px, 5vw, 900px);
}

/* Banner-specific width control (prevents layout drift) */
.tb-hero-banner-inner{
  max-width: 1100px;
  margin: 0 auto;
  height: 100%;
  padding: 0 18px;
  display: flex;
  align-items: center; /* vertically center overlay block */
  justify-content: flex-end;   /* ← THIS pushes content to the right */
}


.tb-hero-banner{
  position: relative;
  width: 100%;
  height: 130px;

  background-size: 42% auto;
  background-position: 170px center;
  background-repeat: no-repeat;   /* ← critical */
  background-color: transparent;

  border: none;
  overflow: hidden;
}

.tb-hero-banner .tb-hero-overlay{
  width: min(58%, 720px);
  text-align: left;
}


/* Text */
.tb-landing-hero .tb-hero-title{
  font-family: Georgia, "Times New Roman", Times, serif;
  font-style: italic;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 2px !important;
  line-height: 1.05;
  font-size: clamp(22px, 3.2vw, 46px);
  color: #1F2E46; /* later: token-ize from brand.json */
}

.tb-landing-hero .tb-hero-tagline{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  margin-top: 0 !important;
  line-height: 1.15;
  font-size: clamp(12px, 1.6vw, 18px);
  color: #2CA6C9; /* later: token-ize from brand.json */
}

/* Mobile: keep it compact, still centered */
@media (max-width: 767.98px){
  .tb-landing-hero .tb-hero-inner{
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
}

/* Pull lead + chat closer */
.tb-hero-lead{ max-width: 70ch; }
.tb-hero-lead{ margin-top: .5rem !important; margin-bottom: .75rem !important; }
#searchBot{ margin-top: .75rem !important; }

/* =========================================================
   Search bot card
   ========================================================= */

.tb-searchbot{
  border-radius: var(--tb-radius-xl);
  border: 1px solid var(--tb-stroke);
  background: linear-gradient(180deg, var(--tb-surface2), var(--tb-surface));
  box-shadow: var(--tb-shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
  transition: border-color .15s ease, transform .15s ease;
}
.tb-searchbot:hover{
  border-color: var(--tb-stroke2);
  transform: translateY(-1px);
}
.tb-searchbot-input{
  display: flex;
  gap: .75rem;
  align-items: center;
  padding: .9rem .95rem;
}
.tb-searchbot-field{
  border: 0;
  background: transparent;
  font-size: 1.05rem;
  padding: .75rem .75rem;
}
.tb-searchbot-field:focus{ box-shadow: none; }

.tb-icon-btn{
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid var(--tb-stroke);
  background: rgba(0,0,0,.02);
  display: grid;
  place-items: center;
  transition: transform .15s ease, background .15s ease;
}
.tb-icon-btn:hover{
  transform: translateY(-1px);
  background: rgba(0,0,0,.04);
}

/* =========================================================
   Chat pane
   ========================================================= */

.tb-chatpane{
  border-top: 1px solid var(--tb-stroke);
  background: rgba(0,0,0,.01);
}
.tb-chatlog{
  max-height: 300px;
  overflow: auto;
  padding: .9rem .95rem .15rem;
  display: flex;
  flex-direction: column;
  gap: .65rem;
}
.tb-bubble{
  max-width: 88%;
  padding: .7rem .85rem;
  border-radius: 16px;
  border: 1px solid var(--tb-stroke);
  background: #fff;
  box-shadow: 0 8px 18px rgba(0,0,0,.05);
  line-height: 1.35;
}
.tb-bubble.user{
  margin-left: auto;
  background: rgba(13,110,253,.06);
  border-color: rgba(13,110,253,.18);
}
.tb-meta{
  font-size: .78rem;
  color: rgba(0,0,0,.55);
  font-weight: 700;
  margin-bottom: .25rem;
}
.tb-chatactions{
  padding: .65rem .95rem .95rem;
  display: flex;
  gap: .5rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

/* Thinking indicator */
.tb-thinking{ opacity: 0.75; font-style: italic; }
.tb-dots span{
  display: inline-block;
  animation: tbDotPulse 1.2s infinite;
}
.tb-dots span:nth-child(2){ animation-delay: 0.2s; }
.tb-dots span:nth-child(3){ animation-delay: 0.4s; }
@keyframes tbDotPulse{
  0%, 80%, 100% { opacity: 0.2; }
  40% { opacity: 1; }
}

/* =========================================================
   FAQ grid
   ========================================================= */

.tb-faq-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 768px){
  .tb-faq-grid{ grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
@media (min-width: 1200px){
  .tb-faq-grid{ grid-template-columns: repeat(3, 1fr); gap: 18px; }
}
.tb-faq-card{
  border-radius: var(--tb-radius-lg);
  border: 1px solid var(--tb-stroke);
  background: #fff;
  box-shadow: 0 10px 26px rgba(0,0,0,.05);
  overflow: hidden;
  transition: transform .12s ease, box-shadow .12s ease;
}
.tb-faq-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(0,0,0,.08);
}
.tb-faq-btn{
  width: 100%;
  text-align: left;
  padding: 1.05rem 1.05rem;
  background: transparent;
  border: 0;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
}
.tb-tag{
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: rgba(0,0,0,.60);
  background: rgba(0,0,0,.03);
  border: 1px solid var(--tb-stroke);
  padding: .35rem .55rem;
  border-radius: 999px;
  width: fit-content;
}
.tb-q{
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.tb-chev{
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--tb-stroke);
  background: rgba(0,0,0,.02);
  display: grid;
  place-items: center;
  transition: transform .15s ease;
  flex: 0 0 auto;
  color: rgba(0,0,0,.65);
}
.tb-faq-btn[aria-expanded="true"] .tb-chev{ transform: rotate(180deg); }
.tb-faq-body{
  padding: 0 1.05rem 1.05rem;
  color: rgba(0,0,0,.70);
  line-height: 1.55;
}

/* Panels / sticky CTA */
.tb-panel{
  border: 1px solid var(--tb-stroke);
  border-radius: var(--tb-radius-lg);
  background: #fff;
  box-shadow: 0 10px 26px rgba(0,0,0,.05);
}
.tb-sticky-cta{
  position: sticky;
  bottom: 0;
  z-index: 40;
  padding: .75rem .75rem;
  background: rgba(248,249,250,.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--tb-stroke);
}

/* Quick links bar (landing) */
.tb-quicklinks-card{
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(0,0,0,.06);
}

/* Pull subtitle (the line under the hero) closer if present */
.tb-hero-subtitle,
.tb-hero-description,
.tb-subtitle{
  margin-top: 6px !important;
}

/* Mobile: hide hero emblem/art (background image) to avoid overlap */
@media (max-width: 767.98px){
  /* Mobile: remove hero art to prevent emblem/text overlap and reclaim width */
  .tb-hero-banner{
    background-image: none !important;
    background-size: 0 0 !important; /* belt + suspenders */
    height: auto;                   /* stop fixed banner height from wasting space */
    min-height: 0;                  /* stop reserving space for the art */
    padding: 0;                     /* tighter hero block */
  }

  .tb-hero-banner-inner{
    justify-content: center;        /* avoid right-push on narrow screens */
    padding: 0 14px;                /* keep breathing room */
  }

  .tb-hero-banner .tb-hero-overlay{
    width: 100%;
    text-align: center;
  }
}
