/* ==========================================================================
   Halltech Solutions - shared design system
   Used by all pages. Loaded once, cached by browser.
   ========================================================================== */

:root {
  --bg: #13100c;
  --bg-2: #1c1812;
  --bg-3: #262019;
  --bg-card: rgba(28, 24, 18, 0.75);

  --ink: #f5ede0;
  --ink-soft: #c8bca8;
  --ink-mute: #8a8170;
  --line: #ffffff12;
  --line-bright: #ffffff1f;

  --accent: #d97706;
  --accent-hot: #e4a058;
  --accent-ink: #0b0906;

  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Geist", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-weight: 400;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Subtle warm grain over everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.035;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
}

.wrap { max-width: 1360px; margin: 0 auto; padding: 0 1.75rem; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img, svg, video { max-width: 100%; display: block; }

/* ========= TOP STATUS BAR ========= */
.status {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
  background: rgba(19, 16, 12, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.status-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  gap: 1rem;
}
.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--accent-hot);
}
.live-dot::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-hot);
  box-shadow: 0 0 0 0 var(--accent-hot);
  animation: beat 1.8s infinite;
}
@keyframes beat {
  0%   { box-shadow: 0 0 0 0 rgba(228, 160, 88, 0.5); }
  80%  { box-shadow: 0 0 0 10px rgba(228, 160, 88, 0); }
  100% { box-shadow: 0 0 0 0 rgba(228, 160, 88, 0); }
}

/* ========= NAVIGATION ========= */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(19, 16, 12, 0.65);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}
.brand-link {
  display: inline-flex;
  align-items: center;
  height: 44px;
}
.brand-link img { height: 36px; width: auto; }
.nav-right { display: flex; gap: 2rem; align-items: center; }
.nav-links { display: flex; gap: 2rem; list-style: none; font-size: 0.9375rem; }
.nav-links a {
  color: var(--ink-soft);
  transition: color 0.2s;
  position: relative;
  padding: 0.5rem 0;
}
.nav-links a:hover { color: var(--accent-hot); }
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--accent);
}

.book-btn {
  background: var(--accent);
  color: var(--accent-ink);
  border: none;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.2s ease, background 0.2s, box-shadow 0.3s;
  text-decoration: none;
}
.book-btn:hover {
  transform: translateY(-1px);
  background: var(--accent-hot);
  box-shadow: 0 0 20px 0 rgba(228, 160, 88, 0.35);
}
.book-btn::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-ink);
  animation: beat 1.8s infinite;
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line-bright);
  color: var(--ink);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
}
.mobile-toggle svg { width: 18px; height: 18px; }

/* ========= TYPOGRAPHY HELPERS ========= */
.eyebrow {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--accent-hot);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--accent);
}
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.025em; line-height: 1; }
em { font-style: italic; color: var(--accent-hot); }

.big-btn {
  background: var(--accent);
  color: var(--accent-ink);
  padding: 1rem 1.5rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 500;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.2s, box-shadow 0.3s, background 0.2s;
  text-decoration: none;
}
.big-btn:hover {
  transform: translateY(-2px);
  background: var(--accent-hot);
  box-shadow: 0 8px 30px rgba(228, 160, 88, 0.3);
}
.big-btn svg { width: 18px; height: 18px; }

.ghost-btn {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-bright);
  padding: 1rem 1.5rem;
  border-radius: 999px;
  font-size: 1rem;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}
.ghost-btn:hover { border-color: var(--accent-hot); color: var(--accent-hot); }

/* ========= FOOTER ========= */
footer {
  border-top: 1px solid var(--line);
  padding: 3rem 0 2rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--ink-mute);
  letter-spacing: 0.05em;
}
.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
}
.foot-brand img { height: 32px; margin-bottom: 0.75rem; }
.foot-grid ul { list-style: none; }
.foot-grid li { margin-bottom: 0.4rem; }
.foot-grid h5 {
  color: var(--ink-soft);
  text-transform: uppercase;
  font-size: 0.7rem;
  margin-bottom: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  font-family: var(--sans);
}
.foot-grid a:hover { color: var(--accent-hot); }
.foot-bottom {
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ========= REVEAL ANIMATION ========= */
.r { opacity: 0; transform: translateY(22px); animation: rise 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
.r.d1 { animation-delay: 0.08s; }
.r.d2 { animation-delay: 0.18s; }
.r.d3 { animation-delay: 0.28s; }
.r.d4 { animation-delay: 0.38s; }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .r { opacity: 1; transform: none; animation: none; } }

/* ========= PAGE HEADERS (sub-pages) ========= */
.page-head {
  padding: 6rem 0 4rem;
  position: relative;
}
.page-head::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 360px;
  background: radial-gradient(ellipse at top, rgba(217, 119, 6, 0.12) 0%, transparent 60%);
  pointer-events: none;
}
.page-head .eyebrow { margin-bottom: 1.5rem; }
.page-head h1 {
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 1;
  max-width: 900px;
  color: var(--ink);
}
.page-head p {
  font-size: 1.25rem;
  color: var(--ink-soft);
  max-width: 620px;
  margin-top: 1.5rem;
  line-height: 1.55;
}

/* ========= RESPONSIVE ========= */
@media (max-width: 980px) {
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .nav-links { display: none; }
  .mobile-toggle { display: inline-flex; }
  nav .book-btn { display: none; }
}
@media (max-width: 560px) {
  .foot-grid { grid-template-columns: 1fr; }
  .page-head { padding: 3.5rem 0 2.5rem; }
}
