/* ============================================================
   JR HQ — "Obsidian Glass" Design System v3
   Brand: Near Black (#0D0D0D) | Surface (#141414) | Card (#1E1E1E)
   Accent: Mauve (#C084A0) | Deep Rose (#8B3E6E) | Deep Violet (#1A0A2F)
   Typography: Space Grotesk (display/labels) | Manrope (body)
   ============================================================ */

:root {
  --jrhq-bg: #0D0D0D;
  --jrhq-surface: #141414;
  --jrhq-card: #1E1E1E;
  --jrhq-text: #FFFFFF;
  --jrhq-text-secondary: rgba(255, 255, 255, 0.6);
  --jrhq-text-muted: rgba(255, 255, 255, 0.35);
  --jrhq-border: rgba(255, 255, 255, 0.08);
  --jrhq-border-subtle: rgba(255, 255, 255, 0.04);

  --jrhq-accent: #C084A0;
  --jrhq-accent-hover: #D8A4C0;
  --jrhq-deep-rose: #8B3E6E;
  --jrhq-deep-violet: #1A0A2F;
  --jrhq-purple-mid: #3D1A5F;
  --jrhq-glow: rgba(192, 132, 160, 0.2);
  --jrhq-glow-strong: rgba(192, 132, 160, 0.35);

  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-bg-hover: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-hover: rgba(192, 132, 160, 0.3);
  --glass-blur: blur(20px);
  --glass-radius: 20px;
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --glass-shadow-hover: 0 16px 48px rgba(0, 0, 0, 0.5), 0 0 60px rgba(192, 132, 160, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.08);

  --radius: 0.75rem;
}

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: 'Manrope', sans-serif;
  background-color: #0D0D0D;
  color: #FFFFFF;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  margin: 0;
  padding: 0;
}

button:not(:disabled),
[role="button"]:not([aria-disabled="true"]),
[type="button"]:not(:disabled),
[type="submit"]:not(:disabled),
[type="reset"]:not(:disabled),
a[href],
select:not(:disabled) {
  cursor: pointer;
}

/* ── Typography System ────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  margin: 0;
}

h1 {
  font-size: clamp(2.25rem, 6vw, 4.5rem);
  line-height: 1.08;
  font-weight: 700;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 3.25rem);
  line-height: 1.15;
  font-weight: 700;
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  line-height: 1.3;
  font-weight: 600;
}

h4, h5, h6 {
  font-size: 1rem;
  line-height: 1.4;
  font-weight: 500;
}

p {
  font-family: 'Manrope', sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

/* ── Container ────────────────────────────────────────────── */
.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
    max-width: 1200px;
  }
}

/* ── Typography Utilities ─────────────────────────────────── */
.jrhq-eyebrow {
  display: inline-flex;
  align-items: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #C084A0;
  padding: 6px 14px;
  border-radius: 100px;
  background: rgba(192, 132, 160, 0.06);
  border: 1px solid rgba(192, 132, 160, 0.18);
  box-shadow: 0 4px 16px rgba(0,0,0,0.3), inset 0 1px 0 rgba(192,132,160,0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}

.jrhq-section-heading {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-rendering: optimizeLegibility;
}

.jrhq-subheading {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(18px, 2.5vw, 28px);
  font-weight: 600;
  color: #FFFFFF;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.jrhq-body-lg {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(15px, 1.2vw, 18px);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
}

.jrhq-body {
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
}

.jrhq-caption {
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.35);
  line-height: 1.5;
}

/* ── Glass Card System ────────────────────────────────────── */
.jrhq-glass-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--glass-radius);
  position: relative;
  overflow: hidden;
  box-shadow: var(--glass-shadow);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 28px;
}

.jrhq-glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  pointer-events: none;
}

.jrhq-glass-card:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  box-shadow: var(--glass-shadow-hover);
  transform: translateY(-4px);
}

/* Spotlight glow — mouse-tracking radial gradient on glass cards */
.jrhq-glass-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    240px circle at var(--mx, 50%) var(--my, 50%),
    rgba(192, 132, 160, 0.10) 0%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 0;
}
.jrhq-glass-card.spotlight-active::after { opacity: 1; }
.jrhq-glass-card > * { position: relative; z-index: 1; }

/* Nav hover pill */
.nav-hover-pill {
  position: absolute;
  top: 4px;
  bottom: 4px;
  border-radius: 100px;
  background: rgba(192, 132, 160, 0.1);
  border: 1px solid rgba(192, 132, 160, 0.2);
  pointer-events: none;
  opacity: 0;
  transition: left 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              width 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.2s ease;
  z-index: 0;
}
.nav-link { position: relative; z-index: 1; }

.jrhq-glass-card-featured {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(192, 132, 160, 0.2);
  border-radius: var(--glass-radius);
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 40px rgba(192, 132, 160, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 32px;
}

.jrhq-glass-card-featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(192, 132, 160, 0.4), transparent);
  pointer-events: none;
}

.jrhq-glass-card-featured:hover {
  border-color: rgba(192, 132, 160, 0.4);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5), 0 0 80px rgba(192, 132, 160, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: translateY(-4px);
}

.jrhq-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--glass-shadow);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.jrhq-card:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  box-shadow: var(--glass-shadow-hover);
  transform: translateY(-3px);
}

/* ── Tag / Pill ───────────────────────────────────────────── */
.jrhq-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background: rgba(192, 132, 160, 0.08);
  border: 1px solid rgba(192, 132, 160, 0.2);
  border-radius: 100px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: var(--jrhq-accent);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: all 0.2s ease;
}

.jrhq-tag:hover {
  background: rgba(192, 132, 160, 0.12);
  border-color: rgba(192, 132, 160, 0.35);
}

/* ── Buttons ──────────────────────────────────────────────── */
.jrhq-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--jrhq-accent);
  color: #0D0D0D;
  border-radius: 100px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  box-shadow: 0 0 20px rgba(192, 132, 160, 0.25);
}

.jrhq-btn-primary:hover {
  background: var(--jrhq-accent-hover);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 0 40px rgba(192, 132, 160, 0.4);
  color: #0D0D0D;
}

.jrhq-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--jrhq-accent);
  border-radius: 100px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid rgba(192, 132, 160, 0.4);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  backdrop-filter: blur(8px);
}

.jrhq-btn-outline:hover {
  background: rgba(192, 132, 160, 0.1);
  border-color: rgba(192, 132, 160, 0.6);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 0 30px rgba(192, 132, 160, 0.15);
  color: var(--jrhq-accent);
}

/* ── Section Separator ────────────────────────────────────── */
.section-line {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
  margin: 0;
}

/* ── Ambient Glow Orbs ────────────────────────────────────── */
.ambient-orb {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: float-orb 8s ease-in-out infinite;
}

.ambient-orb-mauve {
  background: radial-gradient(ellipse at center, rgba(192, 132, 160, 0.2) 0%, transparent 70%);
}

.ambient-orb-violet {
  background: radial-gradient(ellipse at center, rgba(139, 62, 110, 0.15) 0%, transparent 70%);
}

/* ── Animations ───────────────────────────────────────────── */
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee-track {
  animation: marquee 40s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

@keyframes float-orb {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.4; }
  33% { transform: translate(2%, 1%) scale(1.02); opacity: 0.6; }
  66% { transform: translate(-1%, 2%) scale(0.98); opacity: 0.5; }
}

@keyframes breathe {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.05); }
}

.breathe-glow {
  animation: breathe 8s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
}

.float-subtle {
  animation: float 6s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(192, 132, 160, 0.4); }
  50% { opacity: 0.8; box-shadow: 0 0 0 4px rgba(192, 132, 160, 0); }
}

.pulse-dot {
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes cursor-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.cursor-blink {
  animation: cursor-blink 1s step-end infinite;
}

@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(192, 132, 160, 0.25); }
  50% { box-shadow: 0 0 40px rgba(192, 132, 160, 0.45); }
}

.glow-pulse {
  animation: glow-pulse 3s ease-in-out infinite;
}

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Scroll-triggered fade-up */
.scroll-fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger-1 { transition-delay: 0.08s; }
.stagger-2 { transition-delay: 0.16s; }
.stagger-3 { transition-delay: 0.24s; }
.stagger-4 { transition-delay: 0.32s; }
.stagger-5 { transition-delay: 0.40s; }
.stagger-6 { transition-delay: 0.48s; }

/* ── Scrollbar & Selection ────────────────────────────────── */
::selection {
  background: rgba(192, 132, 160, 0.25);
  color: #FFFFFF;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #0D0D0D; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.1); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.2); }

:focus-visible {
  outline: 2px solid var(--jrhq-accent);
  outline-offset: 2px;
}

/* ── WhatsApp Float ───────────────────────────────────────── */
.jrhq-wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  z-index: 999;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: jrhq-wa-pulse 3s ease-in-out infinite;
}

.jrhq-wa-float:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.55);
  animation-play-state: paused;
}

@keyframes jrhq-wa-pulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.3); }
  50%       { box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4), 0 0 0 10px rgba(37, 211, 102, 0); }
}

/* ── Social Icons ─────────────────────────────────────────── */
.jrhq-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.jrhq-social-icon:hover {
  color: #C084A0;
  border-color: rgba(192, 132, 160, 0.4);
  background: rgba(192, 132, 160, 0.08);
}

/* ── Navbar ───────────────────────────────────────────────── */
.jrhq-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  border: none;
  box-shadow: none;
  pointer-events: none;
  padding-top: 0;
  transition: padding-top 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: padding-top;
}

.jrhq-navbar.nav-floating {
  padding-top: 12px;
}

#jrhq-nav-inner {
  pointer-events: all;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  background: rgba(13, 13, 13, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid transparent;
  border-radius: 0;
  box-shadow: none;
  transition:
    max-width 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    border-radius 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    padding 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: max-width, border-radius, background;
}

.jrhq-navbar.nav-floating #jrhq-nav-inner {
  max-width: min(92%, 1100px);
  border-radius: 100px;
  background: rgba(13, 13, 13, 0.80);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  padding: 0 24px;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  transition: height 0.4s ease;
}

.nav-link {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  padding: 6px 0;
  position: relative;
  white-space: nowrap;
  transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #FFFFFF;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #C084A0;
  box-shadow: 0 0 8px rgba(192, 132, 160, 0.6);
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-mobile-toggle {
  background: none;
  border: none;
  color: #FFFFFF;
  padding: 8px;
  display: none;
  align-items: center;
  justify-content: center;
}

/* Re-enable pointer events — #mobile-menu is a sibling of #jrhq-nav-inner,
   so it doesn't inherit its pointer-events:all and would otherwise stay
   click-through under .jrhq-navbar's pointer-events:none. */
#mobile-menu {
  pointer-events: auto;
}

.mobile-nav-link {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #FFFFFF;
  text-decoration: none;
  padding: 14px 16px;
  border-radius: 12px;
  transition: all 0.2s ease;
  background: transparent;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  background: rgba(192, 132, 160, 0.08);
  color: #C084A0;
}

@media (max-width: 900px) {
  .nav-desktop { display: none !important; }
  .nav-mobile-toggle { display: flex !important; }
  .jrhq-navbar.nav-floating {
    padding-top: 0 !important;
  }
  .jrhq-navbar.nav-floating #jrhq-nav-inner {
    max-width: 100% !important;
    border-radius: 0 !important;
  }
}

/* ── Footer ───────────────────────────────────────────────── */
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-col-heading {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.footer-link {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  margin-bottom: 10px;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: #C084A0;
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
  }
  .footer-social {
    justify-content: center !important;
  }
}

/* ── Form Elements ────────────────────────────────────────── */
.jrhq-input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  color: #FFFFFF;
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.jrhq-input:focus {
  border-color: rgba(192, 132, 160, 0.4);
  background: rgba(255, 255, 255, 0.06);
}

.jrhq-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.jrhq-label {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.04em;
  margin-bottom: 6px;
  text-transform: uppercase;
}

/* ── Page-level helpers ───────────────────────────────────── */
.page-hero {
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.page-section {
  padding: 100px 0;
}

.page-section-sm {
  padding: 64px 0;
}

/* ── Responsive overrides ─────────────────────────────────── */
@media (max-width: 768px) {
  .jrhq-section-heading { font-size: clamp(24px, 7vw, 36px); }
  .jrhq-glass-card { padding: 20px; }
  .jrhq-glass-card:hover { transform: none; }
  .jrhq-glass-card-featured { padding: 24px; }
  .jrhq-glass-card-featured:hover { transform: none; }
  .jrhq-card:hover { transform: none; }
  .jrhq-eyebrow { font-size: 10px; }
  .jrhq-btn-primary { padding: 12px 24px; font-size: 14px; min-height: 44px; }
  .jrhq-btn-outline { padding: 12px 24px; font-size: 14px; min-height: 44px; }
  h1 { font-size: clamp(1.75rem, 8vw, 2.75rem); }
  h2 { font-size: clamp(1.5rem, 6vw, 2.25rem); }
  h3 { font-size: clamp(1.1rem, 4vw, 1.5rem); }
  .page-hero { padding: 80px 0 48px; }
  .page-section { padding: 60px 0; }
  .page-section-sm { padding: 40px 0; }
  .container { padding-left: 1.25rem; padding-right: 1.25rem; }

  /* Hero mobile fixes */
  #hero {
    padding-top: 72px;
    min-height: 100dvh;
  }
  .hero-content {
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
  }
  .hero-headline {
    font-size: clamp(36px, 10vw, 56px) !important;
    letter-spacing: -0.02em !important;
    margin-bottom: 20px !important;
  }
  .hero-subheading {
    font-size: clamp(14px, 4vw, 17px) !important;
    max-width: 100% !important;
    margin-bottom: 28px !important;
  }
  .hero-cta-group {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 320px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .hero-cta-btn {
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
    padding-top: 14px !important;
    padding-bottom: 14px !important;
  }

  /* Global img safety */
  img { max-width: 100%; height: auto; }

  /* ── Inline section-padding overrides ────────────────────── */
  /* Targets sections using inline style="padding:100px 0" etc. */
  section[style*="padding:100px 0"],
  section[style*="padding: 100px 0"] { padding: 60px 0 !important; }

  section[style*="padding:80px 0"],
  section[style*="padding: 80px 0"] { padding: 50px 0 !important; }

  section[style*="padding:80px 0 60px"],
  section[style*="padding: 80px 0 60px"] { padding: 50px 0 40px !important; }

  section[style*="padding: 80px 0 100px"],
  section[style*="padding:80px 0 100px"] { padding: 50px 0 60px !important; }

  section[style*="padding:96px 0"],
  section[style*="padding: 96px 0"] { padding: 56px 0 !important; }

  /* Class-based inline-equivalent (ai-automation.html) */
  .cap-section { padding: 60px 0 !important; }

  /* case-studies.html: featured case study sections use class-based 100px padding */
  .featured-cs-section { padding: 60px 0 !important; }

  /* case-studies.html: results-bar section uses inline padding:72px 0 */
  section[style*="padding:72px 0"],
  section[style*="padding: 72px 0"] { padding: 44px 0 !important; }
}

@media (max-width: 480px) {
  .jrhq-section-heading { font-size: clamp(22px, 7vw, 32px); }
  .jrhq-glass-card { padding: 18px; }
  .jrhq-glass-card-featured { padding: 20px; }
  .jrhq-card { padding: 16px; }

  .hero-headline {
    font-size: clamp(32px, 9vw, 44px) !important;
  }
  .hero-subheading {
    font-size: 14px !important;
    line-height: 1.65 !important;
  }

  /* Sourcing transit widget: city label columns shrink on 320px screens */
  .transit-origin, .transit-dest { width: 76px; }

  /* Case studies: allow result stats to wrap into a tighter 2-col at 320px */
  .result-stat { min-width: 116px; }
}

/* ============================================================
   Global Design System Layer
   Semantic token aliases — map onto existing Obsidian Glass palette
   ============================================================ */

:root {
  /* Semantic aliases for use across all pages */
  --color-primary:    #C084A0;   /* = --jrhq-accent */
  --color-accent:     #D8A4C0;   /* = --jrhq-accent-hover */
  --color-surface:    #141414;   /* = --jrhq-surface */
  --color-text-muted: rgba(255, 255, 255, 0.35); /* = --jrhq-text-muted */
}

/* ── Page Load Fade-In ────────────────────────────────────── */
@keyframes page-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

body {
  animation: page-fade-in 0.3s ease forwards;
}

/* ── .reveal — Scroll-triggered entrance ─────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ── .reveal-grid — stagger children on reveal ───────────── */
.reveal-grid {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-grid.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-grid > *:nth-child(1) { transition-delay: 0.04s; }
.reveal-grid > *:nth-child(2) { transition-delay: 0.10s; }
.reveal-grid > *:nth-child(3) { transition-delay: 0.16s; }
.reveal-grid > *:nth-child(4) { transition-delay: 0.22s; }
.reveal-grid > *:nth-child(5) { transition-delay: 0.28s; }
.reveal-grid > *:nth-child(6) { transition-delay: 0.34s; }

/* Disable .reveal transform on mobile (already near-invisible at translateY) */
@media (max-width: 480px) {
  .reveal, .reveal-grid {
    transform: translateY(16px);
  }
}
