/* ==========================================================================
   Zeroed Solutions — Main Stylesheet
   Mobile-first. No frameworks. Pure CSS custom properties.
   ========================================================================== */

/* ---------- Design Tokens ---------- */
:root {
  /* Background layers */
  --bg-base:          #0d0d0f;
  --bg-elevated:      #161618;
  --bg-glass:         rgba(255, 255, 255, 0.04);
  --bg-glass-hover:   rgba(255, 255, 255, 0.07);

  /* Borders */
  --border-subtle:    rgba(255, 255, 255, 0.07);
  --border-medium:    rgba(255, 255, 255, 0.12);
  --border-accent:    rgba(200, 168, 112, 0.4);

  /* Accent — Coyote Tan / FDE */
  --accent:           #C8A870;
  --accent-hover:     #D4B87E;
  --accent-muted:     rgba(200, 168, 112, 0.15);
  --accent-glow:      rgba(200, 168, 112, 0.08);

  /* Typography */
  --text-primary:     #F0EDE6;
  --text-secondary:   #8A8780;
  --text-muted:       #4A4845;
  --text-inverse:     #0d0d0f;

  /* Status */
  --success:          #4CAF7D;
  --danger:           #C0392B;
  --warning:          #E67E22;

  /* Font stacks */
  --font-display:     'Barlow Condensed', sans-serif;
  --font-body:        'DM Sans', sans-serif;
  --font-mono:        'JetBrains Mono', monospace;

  /* Spacing */
  --space-xs:   0.25rem;
  --space-sm:   0.5rem;
  --space-md:   1rem;
  --space-lg:   1.5rem;
  --space-xl:   2rem;
  --space-2xl:  3rem;
  --space-3xl:  5rem;

  /* Border radius */
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  12px;

  /* Transitions */
  --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Shadows */
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-accent: 0 0 40px rgba(200, 168, 112, 0.12);
}


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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-secondary);
  background-color: var(--bg-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, video, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--accent);
  color: var(--text-inverse);
  padding: 8px 16px;
  z-index: 10000;
  font-size: 14px;
}
.skip-link:focus {
  top: 0;
}


/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 1024px) {
  .container { padding: 0 48px; }
}


/* ---------- Typography ---------- */
h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.1;
}

h1 {
  font-weight: 900;
  font-size: 52px;
}

h2 {
  font-weight: 800;
  font-size: 36px;
}

h3 {
  font-weight: 700;
  font-size: 24px;
}

h4 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  color: var(--text-primary);
}

p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

@media (min-width: 1024px) {
  h1 { font-size: 96px; }
  h2 { font-size: 56px; }
  h3 { font-size: 32px; }
  h4 { font-size: 18px; }
  p  { font-size: 17px; }
}


/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent);
  color: var(--text-inverse);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  border: none;
  transition: background var(--transition), transform var(--transition);
  min-height: 44px;
  white-space: nowrap;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-primary.btn-sm {
  padding: 10px 20px;
  font-size: 13px;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-medium);
  transition: border-color var(--transition), color var(--transition), transform var(--transition);
  min-height: 44px;
  white-space: nowrap;
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color var(--transition);
}

.btn-link:hover {
  color: var(--accent-hover);
}

.btn-link svg {
  transition: transform var(--transition);
}
.btn-link:hover svg {
  transform: translateX(4px);
}


/* ---------- Site Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background var(--transition-slow), border-color var(--transition-slow);
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(22, 22, 24, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border-subtle);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.site-logo {
  display: flex;
  align-items: center;
  z-index: 10;
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 24px;
  letter-spacing: 0.12em;
  color: var(--text-primary);
  text-transform: uppercase;
}

.logo-dot {
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 24px;
}

/* Desktop nav */
.desktop-nav {
  display: none;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.zeroed-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
  transition: color var(--transition);
  padding: 8px 0;
}

.zeroed-nav-link:hover {
  color: var(--text-primary);
}

.nav-chevron {
  transition: transform var(--transition);
}

.zeroed-submenu {
  position: absolute;
  top: 100%;
  left: -12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 8px 0;
  min-width: 200px;
}

.zeroed-submenu .zeroed-nav-link {
  display: block;
  padding: 10px 20px;
  font-size: 14px;
}

.zeroed-submenu .zeroed-nav-link:hover {
  background: var(--bg-glass-hover);
  color: var(--accent);
}

.nav-list > li {
  position: relative;
}

.nav-list > li > .zeroed-nav-link {
  position: relative;
}

.nav-list > li.current-menu-item > .zeroed-nav-link,
.nav-list > li.current-menu-ancestor > .zeroed-nav-link {
  color: var(--accent);
}

.nav-list > li.current-menu-item > .zeroed-nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
}

.header-actions {
  display: none;
}

@media (min-width: 1024px) {
  .desktop-nav { display: block; }
  .header-actions { display: flex; align-items: center; gap: var(--space-md); }
  .mobile-toggle { display: none; }
  .mobile-sticky-bar { display: none !important; }
}


/* ---------- Mobile Menu ---------- */
.mobile-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  z-index: 10;
}

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 24px;
}

.hamburger span {
  display: block;
  height: 2px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: transform var(--transition), opacity var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 999;
}

.mobile-drawer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.mobile-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 85%;
  max-width: 360px;
  background: var(--bg-elevated);
  backdrop-filter: blur(20px);
  padding: 80px 24px 32px;
  overflow-y: auto;
  transform: translateX(0);
}

.mobile-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: color var(--transition);
}
.mobile-close:hover { color: var(--text-primary); }

.mobile-nav-list li {
  border-bottom: 1px solid var(--border-subtle);
}

.mobile-nav-list a {
  display: flex;
  align-items: center;
  min-height: 56px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  color: var(--text-secondary);
  transition: color var(--transition);
}

.mobile-nav-list a:hover {
  color: var(--text-primary);
}

.mobile-drawer-ctas {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-top: var(--space-xl);
}

.mobile-drawer-ctas .btn-primary,
.mobile-drawer-ctas .btn-ghost {
  width: 100%;
  text-align: center;
}


/* ---------- Mobile Sticky Bar ---------- */
.mobile-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 998;
  display: flex;
  background: rgba(22, 22, 24, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-subtle);
  padding: 8px 16px;
  padding-bottom: max(8px, env(safe-area-inset-bottom));
  gap: 8px;
}

.sticky-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background var(--transition);
}

.sticky-btn-book {
  background: var(--accent);
  color: var(--text-inverse);
}
.sticky-btn-book:hover { background: var(--accent-hover); }

.sticky-btn-call {
  background: var(--bg-glass);
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
}
.sticky-btn-call:hover { border-color: var(--accent); }

@media (min-width: 1024px) {
  .mobile-toggle { display: none; }
  .mobile-sticky-bar { display: none !important; }
}


/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  padding: 0 0 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(13, 13, 15, 0.3) 0%,
    rgba(13, 13, 15, 0.6) 50%,
    rgba(13, 13, 15, 0.95) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 56px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-primary);
  line-height: 0.95;
  margin-bottom: var(--space-md);
}

.hero-subtitle {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
}

.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.hero-badge {
  position: absolute;
  bottom: 32px;
  left: 24px;
  z-index: 2;
  display: none;
  align-items: center;
  gap: 8px;
  background: rgba(22, 22, 24, 0.8);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: 100px;
  padding: 8px 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
}

@media (min-width: 640px) {
  .hero-ctas {
    flex-direction: row;
    gap: var(--space-md);
  }
}

@media (min-width: 1024px) {
  .hero {
    align-items: center;
    padding: 120px 0;
  }
  .hero-content {
    padding: 0 48px;
  }
  .hero-title {
    font-size: 120px;
    letter-spacing: 0.1em;
  }
  .hero-subtitle {
    font-size: 14px;
    margin-bottom: var(--space-2xl);
  }
  .hero-badge {
    display: flex;
    bottom: 48px;
    left: 48px;
  }
}


/* ---------- Grain Texture ---------- */
.has-grain {
  position: relative;
}
.has-grain::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}


/* ---------- Section Styles ---------- */
.section {
  padding: 48px 0;
  position: relative;
}

.section-elevated {
  background: var(--bg-elevated);
}

.section-divider {
  height: 1px;
  background: var(--border-subtle);
}

.section-header {
  margin-bottom: var(--space-2xl);
}

.section-overline {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: var(--space-sm);
}

.section-rule {
  width: 40px;
  height: 2px;
  background: var(--accent);
  margin-bottom: var(--space-md);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-primary);
  letter-spacing: 0.05em;
}

.section-number {
  position: absolute;
  top: 20px;
  right: 24px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 80px;
  color: var(--text-primary);
  opacity: 0.04;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

@media (min-width: 1024px) {
  .section {
    padding: 80px 0;
  }
  .section-number {
    font-size: 120px;
    right: 48px;
  }
}


/* ---------- Start Here Cards ---------- */
.start-here-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.card-glass {
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(8px);
  padding: 32px;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

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

.card-glass-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--accent-muted);
  color: var(--accent);
  margin-bottom: var(--space-md);
}

.card-glass-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.card-glass-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
  line-height: 1.6;
}

.card-glass-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  transition: gap var(--transition);
}

.card-glass:hover .card-glass-cta {
  gap: 10px;
}

@media (min-width: 640px) {
  .start-here-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1280px) {
  .start-here-grid { grid-template-columns: repeat(4, 1fr); }
}


/* ---------- Product Grid ---------- */
.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

@media (min-width: 640px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1280px) {
  .product-grid.grid-4 { grid-template-columns: repeat(4, 1fr); }
}


/* ---------- Product Card ---------- */
.product-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition);
}

.product-card:hover {
  border-color: var(--border-medium);
}

.product-card-image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-base);
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.product-card:hover .product-card-image img {
  transform: scale(1.04);
}

.product-card-quick-add {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  transition: opacity var(--transition);
}

.product-card-view-button {
  display: flex;
  width: 100%;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--text-inverse);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.product-card-view-button:hover {
  background: var(--accent-hover);
}

@media (max-width: 1023px) {
  .product-card-quick-add {
    display: none;
  }
}

@media (min-width: 1024px) {
  .product-card-quick-add {
    opacity: 0;
  }
  .product-card:hover .product-card-quick-add {
    opacity: 1;
  }
}

.product-card-body {
  padding: 16px;
}

.product-card-brand {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.product-card-title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.3;
}

.product-card-title a {
  color: inherit;
  transition: color var(--transition);
}
.product-card-title a:hover {
  color: var(--accent);
}

.product-card-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.price-current {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--accent);
}

.price-was {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: line-through;
}


/* ---------- Trust Bar ---------- */
.trust-bar {
  padding: 24px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.trust-bar-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 24px;
}

.trust-item {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  white-space: nowrap;
}

.trust-divider {
  color: var(--text-muted);
  display: none;
}

@media (min-width: 1024px) {
  .trust-bar { padding: 32px 0; }
  .trust-divider { display: inline; }
  .trust-bar-inner { flex-wrap: nowrap; gap: 0; }
  .trust-item { padding: 0 24px; }
}


/* ---------- Tabs ---------- */
.tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: var(--space-xl);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tab-btn {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 12px 20px;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
  white-space: nowrap;
  min-height: 44px;
}

.tab-btn:hover {
  color: var(--text-secondary);
}

.tab-btn.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}


/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border-subtle);
  padding: 48px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.footer-col {
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: var(--space-md);
  margin-bottom: var(--space-md);
}

.footer-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  min-height: 44px;
}

.footer-chevron {
  color: var(--text-muted);
  transition: transform var(--transition);
}
.footer-chevron.rotated {
  transform: rotate(180deg);
}

.footer-links {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
}

.footer-links.open {
  max-height: 500px;
}

.footer-links li {
  margin-bottom: 4px;
}

.footer-links a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color var(--transition);
  display: block;
  padding: 6px 0;
  min-height: 32px;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-contact .footer-heading {
  cursor: default;
}

.footer-contact-info {
  margin-top: var(--space-sm);
}

.contact-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
  line-height: 1.5;
}

.contact-line svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--text-muted);
}

.contact-line a {
  color: var(--text-secondary);
  transition: color var(--transition);
}
.contact-line a:hover {
  color: var(--accent);
}

.footer-license-badge {
  margin-top: var(--space-md);
}

.license-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  padding: 6px 12px;
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-sm);
  display: inline-block;
}

@media (min-width: 1024px) {
  .site-footer { padding: 80px 0 0; }
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-2xl);
  }
  .footer-col {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
  }
  .footer-heading {
    cursor: default;
    margin-bottom: var(--space-md);
  }
  .footer-chevron { display: none; }
  .footer-links {
    max-height: none;
    overflow: visible;
  }
}

/* Footer Bottom */
.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-xl) 0;
  margin-top: var(--space-xl);
  border-top: 1px solid var(--border-subtle);
  /* Extra bottom padding for mobile sticky bar */
  padding-bottom: 80px;
}

.copyright {
  font-size: 13px;
  color: var(--text-muted);
}

.payment-icons {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
  opacity: 0.5;
}

.footer-social {
  display: flex;
  gap: var(--space-md);
}

.social-link {
  color: var(--text-muted);
  transition: color var(--transition);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.social-link:hover { color: var(--accent); }

@media (min-width: 1024px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    padding-bottom: var(--space-xl);
  }
}


/* ---------- Page Content ---------- */
.page-header {
  padding-top: 120px;
  padding-bottom: 48px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border-subtle);
}

.page-content {
  padding: 48px 0;
}

.page-content p {
  margin-bottom: var(--space-md);
}

.page-content h2 {
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
}

.page-content h3 {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
}

@media (min-width: 1024px) {
  .page-header { padding-top: 160px; padding-bottom: 64px; }
  .page-content { padding: 80px 0; }
}


/* ---------- 404 Page ---------- */
.page-404 {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 120px;
}

.page-404-code {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 120px;
  color: var(--text-primary);
  opacity: 0.1;
  line-height: 1;
}

.page-404 p {
  margin: var(--space-md) 0 var(--space-xl);
}


/* ---------- Search ---------- */
.search-form {
  display: flex;
  gap: var(--space-sm);
  max-width: 600px;
}

.search-form input[type="search"] {
  flex: 1;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text-primary);
  font-size: 16px;
  min-height: 44px;
}

.search-form input[type="search"]:focus {
  border-color: var(--accent);
}

.search-form input[type="search"]::placeholder {
  color: var(--text-muted);
}


/* ---------- FAQ ---------- */
.faq-item {
  border-bottom: 1px solid var(--border-subtle);
  padding: var(--space-md) 0;
}

.faq-question {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  cursor: pointer;
  min-height: 44px;
  width: 100%;
  text-align: left;
}

.faq-question svg {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform var(--transition);
}

.faq-answer {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  padding-top: var(--space-sm);
}

.faq-answer p {
  margin-bottom: var(--space-sm);
}


/* ---------- Utilities ---------- */
.text-accent { color: var(--accent); }
.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-center { text-align: center; }
.mt-md { margin-top: var(--space-md); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }
.mb-md { margin-bottom: var(--space-md); }
.mb-xl { margin-bottom: var(--space-xl); }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}


/* ==========================================================================
   Landing Pages — NFA, Firearms, Services, Training
   ========================================================================== */

/* Page header subtitle */
.page-header-sub {
  max-width: 640px;
  margin-top: var(--space-md);
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* Landing section spacing */
.landing-section {
  margin-bottom: var(--space-3xl);
}

.landing-section:last-child {
  margin-bottom: 0;
}

.landing-section--cta {
  padding-top: var(--space-2xl);
  border-top: 1px solid var(--border-subtle);
}

/* Section header variants */
.section-header--left {
  margin-bottom: var(--space-xl);
}

.section-header--center {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-header--center .section-rule {
  margin-left: auto;
  margin-right: auto;
}

.section-rule--center {
  margin-left: auto;
  margin-right: auto;
}

.section-desc {
  max-width: 560px;
  margin-top: var(--space-sm);
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.section-header--center .section-desc {
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Compact Card Grid ---------- */
/* Used on NFA, Firearms, Services, Training landing pages.
   Small image, bold name, one-line description, price, "Details" link. */

.compact-grid {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.compact-card {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: var(--bg-elevated);
  text-decoration: none;
  color: inherit;
  transition: background var(--transition);
  min-height: 80px;
}

.compact-card:hover {
  background: var(--bg-glass-hover);
}

.compact-card-img {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-base);
  border: 1px solid var(--border-subtle);
}

.compact-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.compact-card-info {
  flex: 1;
  min-width: 0;
}

.compact-card-brand {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  display: block;
  margin-bottom: 2px;
}

.compact-card-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  color: var(--text-primary);
  line-height: 1.2;
  margin: 0 0 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.compact-card-desc {
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-secondary);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.compact-card-right {
  flex-shrink: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--space-md);
}

.compact-card-price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--accent);
  white-space: nowrap;
}

.compact-card-price--contact {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.compact-card-link {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  transition: color var(--transition), border-color var(--transition);
  white-space: nowrap;
}

.compact-card:hover .compact-card-link {
  color: var(--accent);
  border-color: var(--accent);
}

/* Mobile: stack price and description */
@media (max-width: 639px) {
  .compact-card {
    padding: var(--space-sm) var(--space-md);
  }

  .compact-card-img {
    width: 56px;
    height: 56px;
  }

  .compact-card-desc {
    display: none;
  }

  .compact-card-name {
    font-size: 15px;
  }

  .compact-card-price {
    font-size: 15px;
  }
}

/* Desktop: two-column layout for wider grids */
@media (min-width: 1024px) {
  .compact-grid--wide {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
  }

  .compact-grid--wide .compact-card {
    min-width: 0;
    width: 100%;
  }

  .compact-grid--wide .compact-card-right {
    align-items: flex-end;
    flex-direction: column;
    gap: var(--space-xs);
  }
}

/* Callout strip — highlighted CTA banner */
.callout-strip {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  padding: var(--space-xl);
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(8px);
}

.callout-strip-content h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.callout-strip-content p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.callout-strip .btn-primary {
  align-self: flex-start;
  white-space: nowrap;
}

@media (min-width: 1024px) {
  .callout-strip {
    flex-direction: row;
    align-items: center;
    padding: var(--space-xl) var(--space-2xl);
  }

  .callout-strip-content {
    flex: 1;
  }
}

/* Tab link variant (for "All Suppressors" etc.) */
.tab-btn--link {
  color: var(--accent) !important;
  border-bottom-color: transparent !important;
  font-size: 13px;
}

.tab-btn--link:hover {
  color: var(--accent-hover) !important;
}

/* Empty state */
.empty-state {
  padding: var(--space-2xl);
  text-align: center;
  color: var(--text-secondary);
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.empty-state a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.empty-state a:hover {
  color: var(--accent-hover);
}

/* Service list grid (gunsmithing capabilities) */
.service-list-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

@media (min-width: 640px) {
  .service-list-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.service-list-item {
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-lg) var(--space-xl);
  transition: border-color var(--transition);
}

.service-list-item:hover {
  border-color: var(--border-medium);
}

.service-list-item h4 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  color: var(--text-primary);
  margin: 0 0 var(--space-sm) 0;
}

.service-list-item p {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}

/* ---------- Homepage mobile fixes: dynamic inventory tabs + sticky chrome ---------- */
@media (max-width: 1023px) {
  body {
    padding-bottom: calc(76px + env(safe-area-inset-bottom));
  }

  .site-header {
    padding-top: env(safe-area-inset-top);
    background: rgba(22, 22, 24, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom-color: var(--border-subtle);
  }

  .header-inner {
    height: 64px;
  }

  .logo-text,
  .logo-dot {
    font-size: 20px;
    letter-spacing: 0.08em;
  }

  .trust-bar {
    padding: 16px 0;
  }

  .trust-bar-inner {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 12px;
    text-align: center;
  }

  .trust-item {
    min-width: 0;
    white-space: normal;
    font-size: 10px;
    line-height: 1.35;
    letter-spacing: 0.08em;
  }

  .tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    overflow: visible;
  }

  .tab-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 10px 6px;
    font-size: 11px;
    line-height: 1.2;
    letter-spacing: 0.03em;
    text-align: center;
    white-space: normal;
  }

  .mobile-sticky-bar {
    padding-bottom: max(12px, env(safe-area-inset-bottom));
  }
}


/* ==========================================================================
   UX tune-up — spacing, contrast, FAQ, booking, landing gaps
   ========================================================================== */

/* Lift secondary/muted tones for WCAG-friendly contrast on dark background.
   Original --text-secondary #8A8780 / --text-muted #4A4845 sat at ~3.3:1 and
   ~1.7:1. New values clear AA for body and approach AA for fine print. */
:root {
  --text-secondary: #B5B1A8;
  --text-muted:     #7A7770;
}

/* Tighten page-header → content gap (was 120/48 + 48 = ~216px on mobile). */
.page-header {
  padding-top: 104px;
  padding-bottom: 32px;
}

.page-content {
  padding: 32px 0 64px;
}

@media (min-width: 1024px) {
  .page-header {
    padding-top: 144px;
    padding-bottom: 48px;
  }
  .page-content {
    padding: 48px 0 96px;
  }
}

/* Landing sections previously spaced 5rem (80px) — too airy between callouts. */
.landing-section {
  margin-bottom: var(--space-2xl);
}

@media (min-width: 1024px) {
  .landing-section {
    margin-bottom: var(--space-3xl);
  }
}

/* Section divider — slightly more visible with breathing room reduced. */
.section-divider {
  margin: var(--space-xl) 0;
}

@media (min-width: 1024px) {
  .section-divider {
    margin: var(--space-2xl) 0;
  }
}

/* FAQ — clearer accordion affordance, intro spacing, hover state. */
.faq-intro {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
  max-width: 640px;
}

.faq-list {
  border-top: 1px solid var(--border-subtle);
}

.faq-item {
  padding: 0;
  border-bottom: 1px solid var(--border-subtle);
}

.faq-question {
  padding: var(--space-md) 0;
  min-height: 56px;
  transition: color var(--transition);
}

.faq-question:hover {
  color: var(--accent);
}

.faq-question:hover svg {
  color: var(--accent);
}

.faq-answer {
  padding: 0 0 var(--space-md) 0;
}

/* Default page template — readable wrapper for booking and similar pages. */
.page-content .entry-content {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-secondary);
}

.page-content .entry-content p,
.page-content .entry-content ul,
.page-content .entry-content ol {
  margin-bottom: var(--space-md);
}

.page-content .entry-content ul,
.page-content .entry-content ol {
  padding-left: var(--space-lg);
}

.page-content .entry-content ul li,
.page-content .entry-content ol li {
  list-style: disc;
  margin-bottom: var(--space-xs);
}

.page-content .entry-content ol li {
  list-style: decimal;
}

.page-content .entry-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-content .entry-content a:hover {
  color: var(--accent-hover);
}

.page-content .entry-content a.btn-primary,
.page-content .entry-content a.btn-secondary,
.page-content .entry-content a.btn-ghost {
  text-decoration: none;
}

.page-content .entry-content a.btn-primary {
  color: var(--bg-base);
}

.page-content .entry-content a.btn-primary:hover {
  color: var(--bg-base);
}

.page-content .entry-content iframe {
  width: 100%;
  max-width: 100%;
  min-height: 720px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  margin: var(--space-lg) 0;
}

.zeroed-booking-widget,
.zeroed-booking-widget .calendly-inline-widget,
.zeroed-booking-widget .microsoft-bookings-inline-widget,
.zeroed-booking-widget iframe {
  height: 1400px !important;
  min-height: 1400px !important;
}

.zeroed-booking-widget iframe.microsoft-bookings-embed,
.zeroed-booking-widget:has(iframe.microsoft-bookings-embed) {
  height: 2600px !important;
  min-height: 2600px !important;
}

.page-intro {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
  max-width: 640px;
}

/* Compact-card image placeholder — when no image attached, show monogram. */
.compact-card-img:empty,
.compact-card-img:not(:has(img)) {
  background:
    linear-gradient(135deg, var(--bg-elevated) 0%, var(--bg-base) 100%);
  position: relative;
}

.compact-card-img:not(:has(img))::before {
  content: 'ZS';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--accent);
  opacity: 0.45;
}

/* Page-header subtitle: slightly stronger contrast. */
.page-header-sub {
  color: var(--text-primary);
  opacity: 0.78;
}

/* FAQ page content authored in WP: remove duplicate hero title and polish raw blocks. */
.faq-intro .zs-master-faq {
  padding-top: 0 !important;
}

.faq-intro .zs-master-faq > header h1 {
  display: none;
}

.faq-intro .zs-master-faq nav,
.faq-intro .zs-master-faq > div:last-of-type {
  border-color: var(--border-subtle) !important;
  background: var(--bg-glass);
}

.faq-intro .zs-master-faq details {
  border-bottom: 1px solid var(--border-subtle);
  padding: var(--space-sm) 0;
}

.faq-intro .zs-master-faq summary {
  color: var(--text-primary);
}

.faq-intro .zs-master-faq summary:hover {
  color: var(--accent);
}

/* Landing pages must remain visible even if reveal JS/screenshot tooling doesn't scroll. */
.page-template-page-firearms .landing-section[data-reveal],
.page-template-page-services .landing-section[data-reveal],
.page-template-page-training .landing-section[data-reveal] {
  opacity: 1;
  transform: none;
}

.about-service-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  color: inherit;
  text-decoration: none;
}

.about-service-card:hover,
.about-service-card:focus-visible {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.about-service-card-link {
  margin-top: auto;
  padding-top: var(--space-md);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
