:root {
  --bg-dark: #050505;
  --bg-matte: #151515;
  --bg-card: #0a0a0a;
  --neon-green: #39ff14;
  --text-main: #f4f4f4;
  --text-muted: #888888;
  --border-color: #333333;
  --font-sans: ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-serif: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  --radius-tiny: 2px;
  --spacing-base: 10px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
}

main {
  display: block;
  min-height: 100vh;
}

.container {
  max-width: 1410px;
  margin: 0 auto;
  padding: 0 calc(var(--spacing-base) * 2);
}

a {
  color: var(--text-main);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--neon-green);
}

/* Disable hover/interactive styling for primary support contacts */
a[href="mailto:support@tracklockride.com"],
a[href="tel:+15125550183"] {
  color: inherit !important;
  text-decoration: none !important;
  transition: none !important;
}

a[href="mailto:support@tracklockride.com"]:hover,
a[href="tel:+15125550183"]:hover,
.hover-neon[href="mailto:support@tracklockride.com"]:hover,
.hover-neon[href="tel:+15125550183"]:hover {
  color: inherit !important;
  background: none !important;
  box-shadow: none !important;
  text-decoration: none !important;
}

/* avoid forcing 16:9 on images that explicitly want a different aspect ratio */
img[loading="lazy"]:not(.aspect-square) {
  aspect-ratio: 16/9;
  object-fit: cover;
  width: 100%;
  height: auto;
  display: block;
  background: var(--bg-matte);
}

input:required,
select:required,
textarea:required {
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-main);
  padding: calc(var(--spacing-base) * 1.5);
  border-radius: var(--radius-tiny);
  width: 100%;
  font-family: inherit;
}

input:required:focus,
select:required:focus,
textarea:required:focus {
  outline: none;
  border-color: var(--neon-green);
  box-shadow: 0 0 5px rgba(57, 255, 20, 0.2);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: var(--bg-dark);
  border-bottom: 1px solid var(--border-color);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: calc(var(--spacing-base) * 1.5);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  font-family: var(--font-serif);
}

.brand-logo svg {
  height: 32px;
  width: 32px;
  color: var(--neon-green);
}

.desktop-nav .nav-list {
  display: flex;
  gap: calc(var(--spacing-base) * 3);
  list-style: none;
}

.desktop-nav a {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: calc(var(--spacing-base) * 2);
}

.btn-accent {
  display: inline-block;
  padding: calc(var(--spacing-base)) calc(var(--spacing-base) * 2.5);
  border: 1px solid var(--neon-green);
  background-color: transparent;
  color: var(--neon-green);
  border-radius: var(--radius-tiny);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.85rem;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-accent:hover {
  background-color: var(--neon-green);
  color: var(--bg-dark);
}

.burger-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  padding: 5px;
}

.burger-btn svg {
  width: 28px;
  height: 28px;
}

.drawer-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(5, 5, 5, 0.8);
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 320px;
  height: 100vh;
  background-color: var(--bg-matte);
  z-index: 100;
  border-left: 1px solid var(--neon-green);
  padding: calc(var(--spacing-base) * 3);
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacing-base) * 4);
}

.mobile-drawer.active {
  right: 0;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.close-btn {
  background: none;
  border: none;
  color: var(--text-main);
  cursor: pointer;
}

.close-btn svg {
  width: 28px;
  height: 28px;
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacing-base) * 2.5);
}

.mobile-nav-list a {
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
}

.mobile-cta {
  text-align: center;
  width: 100%;
}

.bg-\[\#728975\] {
  background-color: #728975;
  color: #ffffff;
}

.hover\:bg-\[\#5D7060\]:hover {
  background-color: #5D7060;
  color: #ffffff;
}

.bg-\[\#728975\]:hover,
.bg-\[\#728975\]:focus,
.hover\:bg-\[\#5D7060\]:focus,
.hover\:bg-\[\#5D7060\]:hover {
  color: #ffffff;
}

.border-\[\#728975\]\/30 {
  border-color: rgba(114, 137, 117, 0.3);
}

.text-\[\#252F27\] {
  color: #252F27;
}

.text-\[\#252F27\]:hover,
.text-\[\#252F27\]:focus {
  color: #252F27;
}

/* manual padding utilities (used in HTML but not present in compiled tailwind) */
.px-5 {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.py-2\.5 {
  padding-top: 0.625rem;
  padding-bottom: 0.625rem;
}

.px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.px-8 {
  padding-left: 2rem;
  padding-right: 2rem;
}

.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.bg-emerald-800 {
  background-color: var(--neon-green);
  color: var(--bg-dark);
}

.hover\:bg-emerald-900:hover {
  background-color: #2ad10f;
  color: var(--bg-dark);
}

.bg-emerald-700 {
  background-color: #10b981;
  color: #ffffff;
}

.hover\:bg-emerald-800:hover {
  background-color: #0ea472;
  color: #ffffff;
}

.bg-emerald-800:focus,
.bg-emerald-700:focus,
.hover\:bg-emerald-900:focus,
.hover\:bg-emerald-800:focus {
  outline: none;
  box-shadow: 0 0 0 6px rgba(57, 255, 20, 0.12);
}

/* Fix: ensure small utility images (team portraits) remain square despite global lazy image rule */
img.w-20.h-20,
img.w-20.h-20.object-cover {
  aspect-ratio: 1 / 1 !important;
  width: 5rem;
  height: 5rem;
  object-fit: cover;
  display: inline-block;
}

/* Team portraits: fill card width but stay square */
#team .rounded>img {
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: cover;
  display: block;
}

.bg-neon-green {
  background-color: var(--neon-green);
  color: var(--bg-dark);
}

.hover\:bg-neon-green:hover {
  background-color: #2cff2b;
  color: var(--bg-dark);
}

.text-neon {
  color: var(--neon-green);
}

.hover-neon:hover {
  color: var(--neon-green);
}

.ring-neon:focus {
  box-shadow: 0 0 0 6px rgba(57, 255, 20, 0.12);
  outline: none;
}

.desktop-nav a.activ_link,
.mobile-nav-list a.activ_link {
  color: var(--neon-green);
  font-weight: 700;
  position: relative;
}

.desktop-nav a.activ_link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 3px;
  background: linear-gradient(90deg, rgba(57, 255, 20, 0.9), rgba(57, 255, 20, 0.6));
  border-radius: 2px;
}

.site-footer {
  background-color: var(--bg-matte);
  border-top: 1px solid var(--border-color);
  padding: calc(var(--spacing-base) * 6) 0 calc(var(--spacing-base) * 3);
  margin-top: calc(var(--spacing-base) * 8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: calc(var(--spacing-base) * 4);
  margin-bottom: calc(var(--spacing-base) * 4);
}

.footer-brand .tagline {
  margin-top: calc(var(--spacing-base) * 1.5);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-family: var(--font-serif);
}

.footer-links ul,
.footer-legal ul,
.footer-contact ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacing-base) * 1.5);
}

.footer-contact a {
  display: flex;
  align-items: center;
  gap: calc(var(--spacing-base));
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-contact a svg {
  width: 18px;
  height: 18px;
  color: var(--neon-green);
}

.footer-contact a:hover {
  color: var(--text-main);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: calc(var(--spacing-base) * 3);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.hero-scanner-container {
  position: relative;
  overflow: hidden;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-tiny);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.scan-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--neon-green);
  box-shadow: 0 0 15px 2px var(--neon-green);
  animation: scanEffect 3s infinite linear;
  z-index: 10;
}

@keyframes scanEffect {
  0% {
    top: -10px;
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  100% {
    top: 100%;
    opacity: 0;
  }
}

.grid-container {
  display: grid;
  grid-gap: calc(var(--spacing-base) * 3);
}

@media (max-width: 768px) {
  .grid-container {
    grid-gap: calc(var(--spacing-base) * 1.5);
  }
}

@media (min-width: 768px) {
  .md\:grid-cols-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .md\:grid-cols-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .md\:grid-cols-4 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
  }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .lg\:grid-cols-4 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 992px) {

  .desktop-nav,
  .header-actions .btn-accent {
    display: none;
  }

  .burger-btn {
    display: block;
  }
}

/* Fix absolute small positioned cards that overflow on narrow screens */
@media (max-width: 768px) {
  .absolute.-bottom-6.-left-6 {
    position: static !important;
    margin-top: 1rem;
    margin-left: 0 !important;
    margin-right: 0 !important;
    transform: none !important;
  }
}

/* footer extras */
.footer__extras {
  margin-top: 16px;
}

.footer__extrasInner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
}

.footer__social {
  display: flex;
  gap: 10px;
  align-items: center;
}

.footer-social {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  text-decoration: none;
}

.footer-social__icon {
  display: block;
}

.footer__poemWrap {
  max-width: 520px;
}

.footer-poem {
  opacity: 0.9;
  font-size: 0.95em;
  line-height: 1.35;
}

.privacy-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 1.5rem;
}

input[type="checkbox"] {
  width: 16px;
  height: 16px;
  border: 1px solid var(--color-light-grey);
  border-radius: 4px;
  margin-bottom: 0;
}

@media (min-width: 1024px) {

  /* Layout utilities for large screens (lg) */
  .lg\:flex-row {
    flex-direction: row;
  }

  .lg\:w-1\/2 {
    width: 50%;
  }


}

@media (max-width: 768px) {
  .header-actions a {
    display: none;
  }
}
