/* =========================================================
   House-BIM MVP — main.css (FULL REPLACE)
   Goal: remove old theme UI + apply clean dark glass UI
   ========================================================= */

/* ---------- 0) Theme overrides: hide old header/nav ---------- */
/* These selectors cover common WP theme header structures. */
header.site-header,
.site-header,
.site-title,
.site-branding,
.main-navigation,
.primary-navigation,
.site-navigation,
.nav-primary,
#site-navigation,
#masthead,
#header,
header#header,
header.header,
header .main-navigation,
.site-header-inner,
.site-header .container,
.site-header__inner,
.top-bar,
.menu,
.menu-primary,
.menu-main,
nav.menu,
nav.navigation,
nav.main-navigation {
  display: none !important;
}

/* If theme prints an extra title block above content */
.entry-header,
.page-header,
.site-description {
  display: none !important;
}

/* Remove possible white wrappers and spacing from theme */
html, body { height: 100%; }
body, #page, #content, .site, .site-content, .content-area, .site-main,
#primary, #main, .container, .wrap, .wrapper {
  background: transparent !important;
}

/* Some themes put padding-top for header; remove */
.site, #page, #content, #primary, #main {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* ---------- 1) Base tokens ---------- */
:root{
  --bg: #0b0e14;
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.68);
  --muted2: rgba(255,255,255,.52);
  --border: rgba(255,255,255,.12);
  --border2: rgba(255,255,255,.08);
  --shadow: 0 24px 80px rgba(0,0,0,.45);
  --radius: 18px;
}

/* ---------- 2) Global reset ---------- */
*{ box-sizing: border-box; }
body{
  margin: 0 !important;
  color: var(--text) !important;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif !important;

  /* Dark gradient background */
  background:
    radial-gradient(900px 600px at 10% 10%, rgba(72,120,255,.18), transparent 60%),
    radial-gradient(900px 600px at 90% 30%, rgba(160,90,255,.16), transparent 60%),
    radial-gradient(900px 600px at 40% 95%, rgba(60,200,170,.10), transparent 55%),
    var(--bg) !important;
}

a{ color: inherit; text-decoration: none; }
a:hover{ text-decoration: underline; }
h1,h2,h3,h4,p{ margin: 0; }
img{ max-width: 100%; height: auto; }

/* ---------- 3) Layout root ---------- */
.hbim{
  min-height: 100vh;
  padding-bottom: 64px;
}

/* ---------- 4) Top header ---------- */
.hbim-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11,14,20,.55);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.hbim-header__inner{
  max-width: 1160px;
  margin: 0 auto;
  padding: 14px 18px;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 16px;
}

.hbim-brand{
  display:flex;
  align-items:center;
  gap: 10px;
}
.hbim-brand__name{
  font-weight: 800;
  letter-spacing: .2px;
}
.hbim-brand__tag{
  font-size: 12px;
  padding: 2px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
}

.hbim-nav{
  display:flex;
  gap: 18px;
  font-size: 14px;
  color: var(--muted);
}
.hbim-nav a{ color: var(--muted); }
.hbim-nav a:hover{ color: var(--text); }

@media (max-width: 980px){
  .hbim-nav{ display:none; }
}

/* ---------- 5) Buttons ---------- */
.hbim-btn{
  border: 1px solid var(--border);
  background: rgba(255,255,255,.02);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 650;
  transition: transform .08s ease, background .15s ease, opacity .15s ease;
}
.hbim-btn:hover{ background: rgba(255,255,255,.06); }
.hbim-btn:active{ transform: translateY(1px); }

.hbim-btn--primary{
  background: rgba(255,255,255,.92);
  color: #0b0e14;
  border-color: transparent;
}
.hbim-btn--primary:hover{ background: rgba(255,255,255,1); }

.hbim-btn--ghost{
  background: rgba(255,255,255,.02);
}

.hbim-btn--full{ width: 100%; }

/* ---------- 6) Hero ---------- */
.hbim-hero{
  max-width: 1160px;
  margin: 0 auto;
  padding: 42px 18px 24px;
}

.hbim-hero__inner{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 18px;
  align-items: stretch;
}

@media (max-width: 980px){
  .hbim-hero__inner{ grid-template-columns: 1fr; }
}

.hbim-hero__text{
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.04));
  box-shadow: var(--shadow);
}

.hbim-hero h1{
  font-size: 44px;
  line-height: 1.05;
  letter-spacing: -0.6px;
}

@media (max-width: 980px){
  .hbim-hero h1{ font-size: 36px; }
}

.hbim-sub{
  margin-top: 12px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.hbim-cta{
  margin-top: 18px;
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hbim-note{
  margin-top: 14px;
  color: var(--muted2);
  font-size: 12px;
  line-height: 1.4;
}

/* Right hero card */
.hbim-hero__media{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  box-shadow: var(--shadow);
  padding: 22px;
}

.hbim-video{
  height: 220px;
  border-radius: 16px;
  border: 1px dashed rgba(255,255,255,.22);
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:center;
  padding: 18px;
  gap: 10px;
}
.hbim-video__badge{
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 999px;
}
.hbim-video__text{
  color: var(--muted);
  line-height: 1.45;
}

/* ---------- 7) Workspace ---------- */
.hbim-workspace{
  max-width: 1160px;
  margin: 0 auto;
  padding: 10px 18px 26px;
}

.hbim-workspace__inner{
  display:grid;
  grid-template-columns: 1fr 360px;
  gap: 16px;
}
@media (max-width: 980px){
  .hbim-workspace__inner{ grid-template-columns: 1fr; }
}

.hbim-chat{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,.04);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hbim-chat__header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 12px;
  padding: 14px 14px;
  border-bottom: 1px solid var(--border2);
  background: rgba(255,255,255,.03);
}

.hbim-chat__title{ font-weight: 800; }
.hbim-chat__subtitle{
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}
.hbim-chat__status{
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 999px;
}

/* placeholder card */
.hbim-chat--placeholder{
  display:flex;
  flex-direction: column;
  min-height: 560px;
}

.hbim-placeholder{
  padding: 16px 14px;
  display:flex;
  flex-direction: column;
  gap: 10px;
}
.hbim-placeholder__line{
  height: 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
}
.hbim-placeholder__line--short{ width: 70%; }
.hbim-placeholder__hint{
  padding: 0 14px 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

/* messages */
.hbim-messages{
  height: 420px;
  overflow: auto;
  padding: 14px;
  display:flex;
  flex-direction: column;
  gap: 10px;
}

.hbim-msg{
  max-width: 92%;
  border: 1px solid var(--border2);
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(255,255,255,.04);
}
.hbim-msg--user{
  align-self: flex-end;
  background: rgba(255,255,255,.08);
}
.hbim-msg--bot{
  align-self: flex-start;
}
.hbim-msg__meta{
  font-size: 11px;
  color: var(--muted2);
  margin-bottom: 6px;
}

/* composer */
.hbim-composer{
  display:flex;
  gap: 10px;
  padding: 12px 14px;
  border-top: 1px solid var(--border2);
  background: rgba(255,255,255,.03);
}
.hbim-composer input{
  flex: 1;
  border: 1px solid var(--border);
  background: rgba(0,0,0,.22);
  color: var(--text);
  border-radius: 12px;
  padding: 10px 12px;
  outline: none;
}
.hbim-composer input::placeholder{ color: rgba(255,255,255,.45); }

/* chips */
.hbim-chips{
  padding: 10px 14px 14px;
  font-size: 12px;
  color: var(--muted);
}
.hbim-chip{
  margin-left: 8px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.03);
  color: var(--text);
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
}
.hbim-chip:hover{ background: rgba(255,255,255,.06); }

/* right side */
.hbim-side{
  display:flex;
  flex-direction: column;
  gap: 16px;
}

.hbim-card{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,.04);
  box-shadow: var(--shadow);
  padding: 14px;
}
.hbim-card__title{
  font-weight: 800;
  margin-bottom: 10px;
}

.hbim-kv__row{
  display:flex;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
  color: var(--muted);
}
.hbim-kv__row b{ color: var(--text); }
.hbim-kv__row:last-child{ border-bottom: none; }

.hbim-tabs{
  display:flex;
  gap: 8px;
  margin-bottom: 10px;
}
.hbim-tab{
  flex: 1;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.03);
  color: var(--text);
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
}
.hbim-tab--active{ background: rgba(255,255,255,.08); }

.hbim-preview__box{
  border: 1px dashed rgba(255,255,255,.22);
  border-radius: 14px;
  padding: 18px;
  color: var(--muted);
  margin-bottom: 12px;
}

/* ---------- 8) Sections ---------- */
.hbim-section{
  max-width: 1160px;
  margin: 0 auto;
  padding: 28px 18px 0;
}
.hbim-section__inner{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,.04);
  box-shadow: var(--shadow);
  padding: 22px;
}
.hbim-section h2{
  font-size: 24px;
  letter-spacing: -0.2px;
}

.hbim-steps{
  margin-top: 14px;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 980px){
  .hbim-steps{ grid-template-columns: 1fr; }
}
.hbim-step{
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 16px;
  padding: 14px;
  background: rgba(255,255,255,.03);
}
.hbim-step__n{
  width: 28px; height: 28px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius: 10px;
  border: 1px solid var(--border);
  color: var(--muted);
  margin-bottom: 10px;
}
.hbim-step__t{ font-weight: 800; }
.hbim-step__d{
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.45;
}

.hbim-ex-grid{
  margin-top: 14px;
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
@media (max-width: 980px){
  .hbim-ex-grid{ grid-template-columns: 1fr 1fr; }
}
.hbim-ex{
  border: 1px dashed rgba(255,255,255,.22);
  border-radius: 16px;
  padding: 18px;
  color: var(--muted);
  min-height: 90px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
}

.hbim-faq{
  margin-top: 12px;
  display:grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}
@media (max-width: 980px){
  .hbim-faq{ grid-template-columns: 1fr; }
}
.hbim-faq__item{
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 16px;
  padding: 14px;
  background: rgba(255,255,255,.03);
}
.hbim-faq__item p{
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.45;
}

/* ---------- 9) Modal ---------- */
.hbim-modal{
  position: fixed;
  inset: 0;
  display: none;
  align-items:center;
  justify-content:center;
  background: rgba(0,0,0,.55);
  padding: 18px;
  z-index: 9999;
}
.hbim-modal[aria-hidden="false"]{ display:flex; }

.hbim-modal__card{
  width: min(720px, 96vw);
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(14,18,28,.92);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  padding: 14px 14px 18px;
}
.hbim-modal__head{
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding: 8px 6px 12px;
}

.hbim-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 720px){
  .hbim-grid{ grid-template-columns: 1fr; }
}
.hbim-grid label{
  display:flex;
  flex-direction: column;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}
.hbim-grid select{
  border: 1px solid var(--border);
  background: rgba(0,0,0,.22);
  color: var(--text);
  border-radius: 12px;
  padding: 10px 12px;
  outline: none;
  /* HARD HIDE: old TTT menu (if injected inside page content) */
.hbim ~ ul,
.hbim ul,
body > ul,
body > header ul,
body > nav ul,
ul:has(a[href*="#how-it-works"]),
ul:has(a[href*="#features"]),
ul:has(a[href*="#pricing"]),
ul:has(a[href*="#faq"]),
a[href*="#how-it-works"],
a[href*="#features"],
a[href*="#pricing"],
a[href*="#faq"]{
  display:none !important;
}