/*
 * The Halo Crest — site shell.
 *
 * Single source of truth for the topbar, header, footer, and floating
 * LiveChat button. Every public page on thehalocrest.com loads this file
 * via `<link rel="stylesheet" href="/assets/site-shell.css">`.
 *
 * All shell classes are prefixed `.tc-shell-*` so they do not collide with
 * page-level styles. Page body content keeps its own typography and palette;
 * only the chrome (header / footer / LiveChat) is unified.
 *
 * Design tokens come from sprint/index.html and are the brand source of truth.
 * If you change a token here, update src/styles/tokens.css to match.
 */

:root {
  --tc-black: #101010;
  --tc-ink: #1a1a1a;
  --tc-charcoal: #232323;
  --tc-yellow: #f5c542;
  --tc-yellow-strong: #ffcf2e;
  --tc-yellow-dark: #c99b00;
  --tc-cream: #f7f1e4;
  --tc-cream-2: #fff9ea;
  --tc-white: #ffffff;
  --tc-gray: #5f5f5f;
  --tc-line: #dfd3bd;
  --tc-green: #16834a;
  --tc-red: #b3261e;
  --tc-shadow: 7px 7px 0 #101010;
  --tc-shadow-tight: 5px 5px 0 #101010;
  --tc-shadow-press: 3px 3px 0 #101010;
  --tc-max-w: 1180px;
}

/* Box-sizing reset — shell elements only. The page body keeps whatever
   reset it already had. */
.tc-shell-topbar, .tc-shell-topbar *,
.tc-shell-header, .tc-shell-header *,
.tc-shell-footer, .tc-shell-footer *,
.tc-shell-livechat, .tc-shell-livechat * {
  box-sizing: border-box;
}

.tc-shell-wrap {
  width: min(var(--tc-max-w), calc(100% - 36px));
  margin: 0 auto;
}

/* ============================================================
   TOPBAR — promo strip above header. Optional per page.
   ============================================================ */
.tc-shell-topbar {
  background: var(--tc-black);
  color: var(--tc-white);
  text-align: center;
  padding: 11px 16px;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 900;
  font-size: 15px;
  letter-spacing: -0.01em;
  display: block;
  text-decoration: none;
  border: 0;
  margin: 0;
}
a.tc-shell-topbar:hover { background: #000; }
.tc-shell-topbar .tc-accent { color: var(--tc-yellow); }

/* ============================================================
   HEADER — sticky cream bar with brand mark, optional links,
   and 1-2 CTAs. Brand mark and structural classes stay identical
   on every page; copy and CTAs are per-page.
   ============================================================ */
.tc-shell-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 241, 228, 0.97);
  backdrop-filter: blur(2px);
  border-bottom: 1px solid var(--tc-line);
  font-family: Arial, Helvetica, sans-serif;
  color: var(--tc-black);
}
.tc-shell-header .tc-shell-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 16px 0;
}
.tc-shell-header .tc-shell-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--tc-black);
}
.tc-shell-header .tc-shell-brand-svg {
  width: 64px;
  height: 32px;
  color: var(--tc-black);
  flex-shrink: 0;
}
.tc-shell-header .tc-shell-brand-svg .tc-logo-col,
.tc-shell-header .tc-shell-brand-svg .tc-logo-bar { fill: currentColor; }
.tc-shell-header .tc-shell-brand-svg .tc-logo-bar-glow { fill: var(--tc-yellow); opacity: 0.55; }
.tc-shell-header .tc-shell-brand-svg .tc-logo-led { fill: var(--tc-yellow); }
.tc-shell-header .tc-shell-brand-svg .tc-logo-c { fill: none; stroke: currentColor; stroke-linecap: round; }

.tc-shell-header .tc-shell-wordmark {
  font-weight: 950;
  font-size: 22px;
  letter-spacing: -0.05em;
  line-height: 1;
}
.tc-shell-header .tc-shell-wordmark small {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  letter-spacing: 0;
  font-weight: 800;
  color: var(--tc-gray);
}
.tc-shell-header .tc-shell-nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.tc-shell-header .tc-shell-link {
  font-size: 14px;
  font-weight: 900;
  color: #313131;
  text-decoration: none;
}
.tc-shell-header .tc-shell-link:hover { color: var(--tc-black); }

.tc-shell-header .tc-shell-cta,
.tc-shell-header .tc-shell-cta-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: Arial, Helvetica, sans-serif;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.14s ease, box-shadow 0.14s ease, background 0.14s ease;
}
.tc-shell-header .tc-shell-cta {
  background: var(--tc-yellow);
  color: var(--tc-black);
  border: 3px solid var(--tc-black);
  border-radius: 11px;
  box-shadow: var(--tc-shadow-tight);
  padding: 11px 17px;
  font-weight: 950;
  font-size: 14px;
  line-height: 1.1;
}
.tc-shell-header .tc-shell-cta:hover {
  transform: translate(2px, 2px);
  box-shadow: var(--tc-shadow-press);
  background: var(--tc-yellow-strong);
}
.tc-shell-header .tc-shell-cta-ghost {
  background: transparent;
  color: var(--tc-black);
  border: 2px solid var(--tc-black);
  padding: 7px 12px;
  font-size: 12.5px;
  font-weight: 900;
  border-radius: 10px;
}
.tc-shell-header .tc-shell-cta-ghost:hover {
  background: var(--tc-black);
  color: var(--tc-cream);
}

.tc-shell-header .tc-shell-cta-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.tc-shell-header .tc-shell-badge {
  position: absolute;
  top: -8px;
  right: -10px;
  background: var(--tc-red);
  color: var(--tc-cream);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.22);
  white-space: nowrap;
  animation: tcShellBadgeBlink 2.4s ease-in-out infinite;
}
@keyframes tcShellBadgeBlink {
  0%, 60%, 100% { transform: scale(1); }
  30% { transform: scale(1.08); }
}

@media (max-width: 880px) {
  .tc-shell-header .tc-shell-wordmark small { display: none; }
  .tc-shell-header .tc-shell-link { display: none; }
}
@media (max-width: 540px) {
  .tc-shell-header .tc-shell-wordmark { font-size: 18px; }
  .tc-shell-header .tc-shell-cta-ghost { display: none; }
}

/* ============================================================
   FOOTER — identical on every page. Black bg, cream text, yellow
   links. Single source of truth for address / email / cross-link.
   ============================================================ */
.tc-shell-footer {
  background: var(--tc-black);
  color: var(--tc-cream);
  padding: 56px 0 32px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  border-top: 4px solid var(--tc-black);
}
.tc-shell-footer * { color: inherit; }
.tc-shell-footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 36px;
  align-items: start;
}
.tc-shell-footer-brand {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.tc-shell-footer-brand-svg {
  width: 48px;
  height: 24px;
  color: var(--tc-cream);
  flex-shrink: 0;
}
.tc-shell-footer-brand-svg .tc-logo-col,
.tc-shell-footer-brand-svg .tc-logo-bar { fill: currentColor; }
.tc-shell-footer-brand-svg .tc-logo-led { fill: var(--tc-yellow); }
.tc-shell-footer-brand-svg .tc-logo-c { fill: none; stroke: currentColor; stroke-linecap: round; }
.tc-shell-footer-brand strong {
  color: var(--tc-cream);
  font-weight: 950;
  font-size: 16px;
  letter-spacing: -0.02em;
  display: block;
  margin-bottom: 4px;
}
.tc-shell-footer-tag {
  font-size: 13px;
  color: rgba(247, 241, 228, 0.68);
}
.tc-shell-footer-col-head {
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(247, 241, 228, 0.55);
  margin-bottom: 12px;
}
.tc-shell-footer-line {
  margin-bottom: 8px;
  font-size: 13.5px;
  color: rgba(247, 241, 228, 0.78);
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.tc-shell-footer-line strong { color: var(--tc-cream); font-weight: 900; }
.tc-shell-footer-line a {
  color: var(--tc-yellow);
  font-weight: 900;
  text-decoration: underline;
  text-decoration-color: var(--tc-yellow);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.tc-shell-footer-line a:hover { color: var(--tc-yellow-strong); }

.tc-shell-footer-bottom {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid rgba(247, 241, 228, 0.14);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 12px;
  color: rgba(247, 241, 228, 0.46);
}
.tc-shell-footer-bottom a {
  color: rgba(247, 241, 228, 0.68);
  text-decoration: underline;
  text-decoration-color: rgba(247, 241, 228, 0.32);
}
.tc-shell-footer-bottom a:hover { color: var(--tc-cream); }
.tc-shell-footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
}

@media (max-width: 880px) {
  .tc-shell-footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* ============================================================
   LIVECHAT — fixed-position founder-chat button + modal.
   Shared across every page so users always have a way to reach Hazan.
   ============================================================ */
.tc-shell-livechat-btn {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px 12px 16px;
  background: var(--tc-black);
  color: var(--tc-cream);
  border-radius: 999px;
  border: 2px solid var(--tc-yellow);
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.22);
  transition: transform 0.18s ease;
  text-decoration: none;
}
.tc-shell-livechat-btn:hover { transform: translateY(-2px); }
.tc-shell-livechat-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--tc-green);
  box-shadow: 0 0 0 4px rgba(22, 131, 74, 0.25);
  flex-shrink: 0;
}

.tc-shell-livechat-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  font-family: Arial, Helvetica, sans-serif;
}
.tc-shell-livechat-modal[hidden] { display: none; }
.tc-shell-livechat-overlay {
  position: absolute;
  inset: 0;
  background: rgba(16, 16, 16, 0.62);
  backdrop-filter: blur(2px);
}
.tc-shell-livechat-card {
  position: relative;
  width: min(480px, 100%);
  background: var(--tc-cream);
  color: var(--tc-black);
  border: 3px solid var(--tc-black);
  border-radius: 14px;
  padding: 28px;
  box-shadow: var(--tc-shadow);
}
.tc-shell-livechat-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: transparent;
  border: 0;
  font-size: 26px;
  line-height: 1;
  color: var(--tc-black);
  cursor: pointer;
}
.tc-shell-livechat-title {
  font-size: 24px;
  letter-spacing: -0.03em;
  margin: 0 0 6px;
  font-weight: 900;
}
.tc-shell-livechat-lede {
  font-size: 14.5px;
  color: var(--tc-gray);
  margin: 0 0 18px;
}
.tc-shell-livechat-form .tc-shell-label {
  display: block;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tc-gray);
  margin: 12px 0 4px;
}
.tc-shell-livechat-form input,
.tc-shell-livechat-form textarea {
  width: 100%;
  background: var(--tc-white);
  border: 2px solid var(--tc-black);
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
  color: var(--tc-black);
}
.tc-shell-livechat-form textarea {
  resize: vertical;
  min-height: 84px;
}
.tc-shell-livechat-form input:focus,
.tc-shell-livechat-form textarea:focus {
  outline: 3px solid var(--tc-yellow);
  outline-offset: 2px;
}
.tc-shell-livechat-submit {
  width: 100%;
  margin-top: 14px;
  background: var(--tc-black);
  color: var(--tc-white);
  border: 3px solid var(--tc-black);
  box-shadow: 5px 5px 0 var(--tc-yellow-dark);
  font-weight: 950;
  font-size: 15px;
  padding: 14px 18px;
  border-radius: 11px;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}
.tc-shell-livechat-submit:hover {
  transform: translate(2px, 2px);
  box-shadow: 3px 3px 0 var(--tc-yellow-dark);
}
.tc-shell-livechat-micro {
  margin-top: 8px;
  font-size: 12px;
  color: var(--tc-gray);
  text-align: center;
}
.tc-shell-livechat-success {
  margin-top: 12px;
  padding: 10px 12px;
  background: rgba(22, 131, 74, 0.12);
  border: 2px solid var(--tc-green);
  border-radius: 8px;
  font-size: 14px;
  color: var(--tc-black);
}
.tc-shell-livechat-error {
  margin-top: 12px;
  padding: 10px 12px;
  background: rgba(179, 38, 30, 0.08);
  border: 2px solid var(--tc-red);
  border-radius: 8px;
  font-size: 14px;
  color: var(--tc-red);
}

@media (max-width: 540px) {
  .tc-shell-livechat-btn {
    bottom: 16px;
    right: 16px;
    padding: 10px 14px;
    font-size: 13px;
  }
}
