/* ============================================================
   THE POWER PUSHER — Base Styles
   Color system: Black / White / Red
   ============================================================ */

/* --- Variables --- */
:root {
  --black:      #0a0a0a;
  --black-soft: #141414;
  --white:      #f0f0f0;
  --white-pure: #ffffff;
  --red:        #d42040;
  --red-dark:   #a8192f;
  --red-light:  #f02d52;
  --red-a11y:   #f03a5c; /* accessible red — passes 4.5:1 on dark backgrounds */
  --gray-dark:  #222222;
  --gray-mid:   #888888; /* was #555 — bumped to pass WCAG AA contrast on dark bg */
  --gray-light: #bbbbbb;
  --border:     rgba(255, 255, 255, 0.08);

  --font-head:  'Montserrat', sans-serif;
  --font-body:  'Montserrat', sans-serif;

  --nav-h:      72px;
  --ticker-h:   0px; /* ticker removed; was 40px */
  --radius:     4px;
  --radius-lg:  10px;
  --transition: 0.25s cubic-bezier(0.16, 1, 0.3, 1);

  --max-w:      1200px;
  --section-py: 100px;
}

/* ============================================================
   ACCESSIBILITY — Skip Link
   ============================================================ */
.skip-link {
  position: fixed;
  top: -100%;
  left: 16px;
  z-index: 9999;
  background: var(--red);
  color: var(--white-pure) !important;
  padding: 12px 20px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius);
  text-decoration: none;
  transition: top 0.15s ease;
  white-space: nowrap;
}
.skip-link:focus,
.skip-link:focus-visible {
  top: 16px;
  outline: 3px solid var(--white-pure);
  outline-offset: 3px;
}

/* ============================================================
   ACCESSIBILITY — Focus Indicators (WCAG 2.4.7)
   ============================================================ */
/* Remove default browser outlines; we supply our own */
:focus { outline: none; }

/* Visible ring for keyboard users only */
:focus-visible {
  outline: 3px solid var(--red-a11y);
  outline-offset: 3px;
  border-radius: 3px;
}

/* Inputs / textareas: inline ring */
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--red-a11y);
  outline-offset: 0;
  border-radius: var(--radius);
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-top: calc(var(--nav-h) + var(--ticker-h));
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

/* --- Typography --- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
h4 { font-size: 1.2rem; }

p { max-width: 65ch; line-height: 1.7; color: var(--gray-light); }

/* --- Layout Helpers --- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--section-py) 0;
}

.section--sm { padding: 60px 0; }

/* Secondary-page heroes shouldn't force 60vh when their content is short —
   that's what was creating the large empty gap before the next section. */
.page-hero.section--sm { min-height: 0; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--red);
  color: var(--white-pure);
}
.btn--primary:hover {
  background: var(--red-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(212, 32, 64, 0.5);
}
.btn--primary:active { transform: translateY(0); }

.btn--outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.3);
}
.btn--outline:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}

.btn--ghost {
  background: transparent;
  color: var(--red-a11y);
  padding: 14px 0;
  letter-spacing: 0.08em;
}
.btn--ghost:hover { color: var(--red-light); }

/* --- Divider --- */
.divider {
  width: 48px;
  height: 4px;
  background: var(--red);
  margin-bottom: 24px;
  border-radius: 2px;
}

/* --- Tags / Pills --- */
.tag {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid var(--red);
  color: var(--red-a11y); /* accessible shade on dark bg */
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 2px;
}

/* --- Cards --- */
.card {
  background: var(--black-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: var(--transition);
}
.card:hover {
  border-color: rgba(196, 30, 58, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

/* ============================================================
   ANNOUNCEMENT TICKER
   ============================================================ */
.ticker {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--ticker-h);
  background: #000;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  z-index: 1000;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.ticker__track {
  display: flex;
  white-space: nowrap;
  animation: ticker-scroll 30s linear infinite;
  will-change: transform;
}

.ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  padding: 0 40px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white-pure);
}

.ticker__item::after {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
}

@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ticker:hover .ticker__track,
.ticker.paused .ticker__track { animation-play-state: paused; }

/* Pause / play button inside ticker (WCAG 2.2.2) */
.ticker__pause {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: #000;
  box-shadow: -14px 0 12px 4px #000, 14px 0 0 10px #000; /* hides ticker text around the button */
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--white-pure);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.65rem;
  flex-shrink: 0;
  z-index: 1;
  transition: background 0.2s;
}
.ticker__pause:hover { background: #1A1A1A; }
.ticker__pause:focus-visible {
  outline: 2px solid var(--white-pure);
  outline-offset: 2px;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: var(--ticker-h);
  left: 0;
  width: 100%;
  height: var(--nav-h);
  background: rgba(17, 17, 17, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 999;
  display: flex;
  align-items: center;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.nav__logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white-pure);
  line-height: 1;
}

.nav__logo span { color: var(--red); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav__link {
  padding: 8px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-light);
  border-radius: var(--radius);
  transition: var(--transition);
}

.nav__link:hover,
.nav__link.active {
  color: var(--white-pure);
  background: rgba(255, 255, 255, 0.06);
}

.nav__link.active { color: var(--red-a11y); }

.nav__cta {
  margin-left: 16px;
  padding: 10px 22px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--red);
  color: var(--white-pure);
  border-radius: var(--radius);
  transition: var(--transition);
  white-space: nowrap;
}
.nav__cta:hover { background: var(--red-light); transform: translateY(-1px); }

/* Mobile nav */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}
.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

.nav__mobile {
  display: none;
  position: fixed;
  top: calc(var(--ticker-h) + var(--nav-h));
  left: 0;
  width: 100%;
  background: var(--black-soft);
  border-bottom: 1px solid var(--border);
  padding: 20px 24px 28px;
  z-index: 998;
  flex-direction: column;
  gap: 4px;
}

.nav__mobile.open { display: flex; }

.nav__mobile-link {
  padding: 12px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-light);
  border-radius: var(--radius);
  transition: var(--transition);
}
.nav__mobile-link:hover,
.nav__mobile-link.active { color: var(--white-pure); background: rgba(255,255,255,0.06); }
.nav__mobile-link.active { color: var(--red-a11y); }

.nav__mobile-cta {
  margin-top: 12px;
  padding: 14px 20px;
  text-align: center;
  background: var(--red);
  color: var(--white-pure);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--black-soft);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}

.footer__brand-name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white-pure);
  margin-bottom: 16px;
}
.footer__brand-name span { color: var(--red); }

.footer__tagline {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--gray-mid);
  max-width: 28ch;
  margin-bottom: 24px;
}

.footer__social {
  display: flex;
  gap: 12px;
}

.footer__social-link {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-light);
  font-size: 0.85rem;
  transition: var(--transition);
}
.footer__social-link:hover {
  border-color: var(--red);
  color: var(--red);
  background: rgba(196, 30, 58, 0.1);
}

.footer__col-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white-pure);
  margin-bottom: 20px;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__link {
  font-size: 0.875rem;
  color: var(--gray-mid);
  transition: var(--transition);
}
.footer__link:hover { color: var(--white-pure); }

.footer__bottom {
  border-top: 1px solid var(--border);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer__copy {
  font-size: 0.8rem;
  color: var(--gray-mid);
}

.footer__legal {
  display: flex;
  gap: 20px;
}

.footer__legal-link {
  font-size: 0.8rem;
  color: var(--gray-mid);
  transition: var(--transition);
}
.footer__legal-link:hover { color: var(--white-pure); }

/* ============================================================
   AI CHAT PANEL
   ============================================================ */
.chat-toggle {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 56px;
  height: 56px;
  background: var(--red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 990;
  box-shadow: 0 4px 24px rgba(212, 32, 64, 0.6);
  transition: var(--transition);
  cursor: pointer;
  border: none;
}
.chat-toggle:hover { background: var(--red-light); transform: scale(1.08); }
.chat-toggle svg { width: 24px; height: 24px; fill: var(--white-pure); }

.chat-panel {
  position: fixed;
  bottom: 96px;
  right: 28px;
  width: 360px;
  max-height: 560px;
  background: var(--black-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
  z-index: 989;
  display: none;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(12px);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.chat-panel.open {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.chat-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--red);
  flex-shrink: 0;
}

.chat-panel__title {
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  color: var(--white-pure);
}

.chat-panel__subtitle {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 2px;
}

.chat-panel__close {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
  transition: var(--transition);
}
.chat-panel__close:hover { color: var(--white-pure); }

.chat-panel__body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  min-height: 200px;
  /* Chatbase iframe will go here */
}

.chat-panel__hours {
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--gray-mid);
  background: rgba(255,255,255,0.02);
}

.chat-panel__hours strong { color: var(--gray-light); }

/* ============================================================
   PAGE HERO (shared base)
   ============================================================ */
.page-hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  background: var(--black);
  z-index: 0;
}

.page-hero__accent {
  position: absolute;
  top: -80px;
  right: -80px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(212, 32, 64, 0.22) 0%, transparent 60%);
  pointer-events: none;
}

.page-hero__content {
  position: relative;
  z-index: 1;
}

.page-hero__tag {
  display: inline-block;
  padding: 6px 16px;
  border: 1px solid var(--red);
  color: var(--red);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 2px;
  margin-bottom: 24px;
}

.page-hero h1 { color: var(--white-pure); margin-bottom: 20px; }

.page-hero p {
  font-size: 1.15rem;
  color: var(--gray-light);
  max-width: 55ch;
  margin-bottom: 36px;
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header { margin-bottom: 56px; }
.section-header h2 { color: var(--white-pure); margin-bottom: 16px; }
.section-header p { font-size: 1.05rem; }

/* ============================================================
   GRID LAYOUTS
   ============================================================ */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root {
    --section-py: 64px;
    --nav-h: 64px;
  }

  body { padding-top: calc(var(--nav-h) + var(--ticker-h)); }

  .nav__links,
  .nav__cta { display: none; }

  .nav__hamburger { display: flex; }

  .footer__grid { grid-template-columns: 1fr; gap: 32px; }

  .grid-2,
  .grid-3,
  .grid-4 { grid-template-columns: 1fr; }

  .chat-panel { width: calc(100vw - 32px); right: 16px; bottom: 88px; }
}

@media (max-width: 480px) {
  :root { --ticker-h: 0px; } /* was 36px */
  h1 { font-size: 2.2rem; }
  .btn { padding: 12px 24px; }
  .card { padding: 24px; }
}

/* ============================================================
   ACCESSIBILITY — Reduced Motion (WCAG 2.3.3 / 2.2.2)
   Users who opt out of animations get no motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .ticker__track { animation: none !important; }
}
