/* ===========================
   TRACKED WORX LLC — STYLES
   Mobile-first, optimized
   =========================== */

:root {
  --black: #0a0a0a;
  --dark: #111214;
  --dark2: #1a1c20;
  --steel: #2a2d33;
  --blue: #2b6cb8;
  --blue-bright: #3d8ce8;
  --yellow: #f0a500;
  --white: #f0ede8;
  --muted: #8a8d94;
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'Barlow', sans-serif;
  --section-pad: clamp(56px, 8vw, 100px) clamp(20px, 5vw, 48px);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--dark);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  /* Push content below sticky mobile bar */
  padding-bottom: 60px;
}

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

/* ===== MOBILE STICKY CALL BAR ===== */
.mobile-call-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 200;
  background: var(--blue);
  color: #fff;
  text-align: center;
  padding: 14px 20px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.4);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.mobile-call-bar:active { background: var(--blue-bright); }

/* Hide on desktop */
@media (min-width: 769px) {
  .mobile-call-bar { display: none; }
  body { padding-bottom: 0; }
}

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: padding 0.3s;
}

.nav.scrolled { padding: 8px 20px; }

.nav-logo-link { display: flex; align-items: center; }

.nav-logo {
  height: 48px;
  width: auto;
  filter: drop-shadow(0 0 8px rgba(43,108,184,0.4));
  transition: height 0.3s;
}

.nav.scrolled .nav-logo { height: 38px; }

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
  transform-origin: center;
}

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

/* Mobile nav drawer */
.nav-links {
  display: none;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(10,10,10,0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  justify-content: center;
  align-items: center;
  gap: 40px;
  z-index: 99;
}

.nav-links.open { display: flex; }

.nav-link {
  color: var(--white);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 42px;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}

.nav-link:hover { color: var(--blue-bright); }

.nav-cta {
  background: var(--blue);
  color: #fff !important;
  padding: 14px 36px;
  border-radius: 4px;
  font-size: 32px !important;
}

/* Desktop nav */
@media (min-width: 769px) {
  .nav { padding: 14px 48px; }
  .nav.scrolled { padding: 10px 48px; }
  .hamburger { display: none; }

  .nav-links {
    display: flex;
    flex-direction: row;
    position: static;
    background: none;
    backdrop-filter: none;
    gap: 36px;
  }

  .nav-link {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
  }

  .nav-cta {
    padding: 10px 22px !important;
    font-size: 13px !important;
    font-family: var(--font-body) !important;
  }
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: clamp(100px, 15vw, 140px) clamp(20px, 5vw, 48px) clamp(60px, 8vw, 80px);
  overflow: hidden;
  background:
    radial-gradient(ellipse at 70% 50%, rgba(43,108,184,0.15) 0%, transparent 60%),
    linear-gradient(170deg, #0a0a0a 0%, #141618 50%, #0e1215 100%);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(to bottom, var(--blue), var(--yellow));
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(10,10,10,0.96) 50%, rgba(10,10,10,0.3) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 620px;
  width: 100%;
}

.hero-eyebrow {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue-bright);
  font-weight: 600;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 2px;
  background: var(--blue-bright);
  flex-shrink: 0;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(64px, 16vw, 130px);
  line-height: 0.92;
  letter-spacing: 0.02em;
  color: var(--white);
  margin-bottom: 20px;
  animation: fadeUp 0.8s ease both;
}

.accent { color: var(--blue-bright); }

.hero-sub {
  font-size: clamp(15px, 2.5vw, 18px);
  color: var(--muted);
  max-width: 480px;
  margin-bottom: 36px;
  font-weight: 300;
  animation: fadeUp 0.8s 0.15s ease both;
}

.hero-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  animation: fadeUp 0.8s 0.3s ease both;
}

.hero-badge {
  display: none;
}

@media (min-width: 900px) {
  .hero-badge {
    display: block;
    position: absolute;
    right: 6%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    opacity: 0.15;
    filter: grayscale(30%);
    pointer-events: none;
  }
  .hero-badge img {
    width: clamp(280px, 35vw, 520px);
    height: auto;
  }
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 3px;
  transition: background 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  border: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  min-height: 48px; /* touch target */
}

.btn-primary {
  background: var(--blue);
  color: #fff;
}

.btn-primary:hover, .btn-primary:focus-visible {
  background: var(--blue-bright);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(43,108,184,0.4);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.3);
}

.btn-ghost:hover, .btn-ghost:focus-visible {
  border-color: var(--white);
  background: rgba(255,255,255,0.06);
}

/* Full-width buttons on small screens */
@media (max-width: 480px) {
  .hero-btns { flex-direction: column; }
  .hero-btns .btn { width: 100%; }
}

/* ===== SECTION SHARED ===== */
.section-label {
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--blue-bright);
  font-weight: 700;
  margin-bottom: 10px;
}
.section-label.light { color: var(--yellow); }

section h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 7vw, 68px);
  line-height: 1;
  letter-spacing: 0.03em;
  margin-bottom: 20px;
}

/* ===== ABOUT ===== */
.about {
  background: var(--dark2);
  padding: var(--section-pad);
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.about-inner { max-width: 780px; margin: 0 auto; }

.about p {
  color: var(--muted);
  font-size: clamp(15px, 2vw, 17px);
  margin-bottom: 14px;
  font-weight: 300;
}

.stats-row {
  display: flex;
  gap: clamp(24px, 5vw, 48px);
  margin-top: clamp(36px, 6vw, 56px);
  flex-wrap: wrap;
}

.stat { display: flex; flex-direction: column; }

.stat-num {
  font-family: var(--font-display);
  font-size: clamp(40px, 7vw, 52px);
  color: var(--blue-bright);
  line-height: 1;
}

.stat-label {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-top: 4px;
}

/* ===== SERVICES ===== */
.services {
  padding: var(--section-pad);
  background: var(--black);
  text-align: center;
}

.services-header { margin-bottom: clamp(36px, 5vw, 60px); }

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  max-width: 1100px;
  margin: 0 auto;
  border: 1px solid rgba(255,255,255,0.06);
}

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

.service-card {
  background: var(--dark2);
  padding: clamp(28px, 4vw, 44px) clamp(20px, 3vw, 36px);
  text-align: left;
  border: 1px solid rgba(255,255,255,0.04);
  transition: background 0.25s, border-color 0.25s;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px;
  height: 0;
  background: var(--blue);
  transition: height 0.3s;
}

@media (hover: hover) {
  .service-card:hover::before { height: 100%; }
  .service-card:hover {
    background: var(--steel);
    border-color: rgba(43,108,184,0.3);
  }
}

.service-icon {
  font-size: 28px;
  margin-bottom: 14px;
  display: block;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 26px);
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  color: var(--white);
}

.service-card p {
  color: var(--muted);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.6;
}

/* ===== GALLERY ===== */
.gallery {
  background: var(--dark2);
  padding: var(--section-pad);
  border-top: 1px solid rgba(255,255,255,0.06);
}

.gallery-header {
  text-align: center;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.photo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  max-width: 1100px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .photo-grid {
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr;
  }
  .photo-wide { grid-row: 1 / 3; }
}

.photo-item {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background: var(--steel);
  aspect-ratio: 4/3;
}

@media (min-width: 640px) {
  .photo-wide { aspect-ratio: unset; }
}

.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

@media (hover: hover) {
  .photo-item:hover img { transform: scale(1.04); }
  .photo-item:hover .photo-caption { opacity: 1; }
}

/* Always show caption on touch */
@media (hover: none) {
  .photo-caption { opacity: 1 !important; }
}

.photo-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 12px 14px;
  background: linear-gradient(to top, rgba(0,0,0,0.75), transparent);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  opacity: 0;
  transition: opacity 0.3s;
}

.gallery-footer {
  text-align: center;
  margin-top: 36px;
}

.gallery-sub {
  color: var(--muted);
  font-size: 14px;
  font-weight: 300;
  margin-bottom: 18px;
}

.fb-btn { padding: 14px 28px; }
.fb-icon { width: 18px; height: 18px; flex-shrink: 0; }

/* ===== CONTACT ===== */
.contact {
  background: linear-gradient(135deg, #0d1117 0%, #111620 50%, #0a0e14 100%);
  padding: var(--section-pad);
  border-top: 1px solid rgba(255,255,255,0.06);
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(43,108,184,0.12), transparent 70%);
  pointer-events: none;
}

.contact-inner { max-width: 860px; margin: 0 auto; }

.contact-lead {
  color: var(--muted);
  font-size: clamp(15px, 2vw, 17px);
  font-weight: 300;
  max-width: 500px;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.contact-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

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

.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  padding: clamp(20px, 3vw, 28px) clamp(16px, 2vw, 24px);
  text-decoration: none;
  color: var(--white);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  min-height: 80px;
}

a.contact-card:active { background: rgba(43,108,184,0.12); }

@media (hover: hover) {
  a.contact-card:hover {
    background: rgba(43,108,184,0.12);
    border-color: rgba(43,108,184,0.4);
    transform: translateY(-3px);
  }
}

.contact-icon {
  font-size: 28px;
  flex-shrink: 0;
  color: var(--blue-bright);
}

.contact-type {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 3px;
}

.contact-value {
  font-family: var(--font-display);
  font-size: clamp(18px, 3vw, 22px);
  letter-spacing: 0.03em;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--black);
  text-align: center;
  padding: clamp(36px, 5vw, 48px) 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-logo {
  height: clamp(60px, 10vw, 80px);
  width: auto;
  margin: 0 auto 18px;
  opacity: 0.65;
  filter: grayscale(40%);
}

.footer p {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 5px;
}

.footer-credit a { color: var(--blue-bright); text-decoration: none; }
.footer-credit a:hover { text-decoration: underline; }

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: none; }
}

/* ===== FOCUS STYLES (accessibility) ===== */
:focus-visible {
  outline: 2px solid var(--blue-bright);
  outline-offset: 3px;
}
