/* =============================================
   foxbax — Main Stylesheet
   Design: Clean 2026 White/Minimal
   ============================================= */

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

:root {
  --white:       #ffffff;
  --off:         #F8F7F5;
  --stone:       #EFEDE8;
  --ink:         #111110;
  --ink2:        #3a3a38;
  --muted:       #888780;
  --fox:         #D85A30;
  --fox-light:   #FAECE7;
  --line:        rgba(0,0,0,0.08);
  --line2:       rgba(0,0,0,0.12);
  --radius:      12px;
  --radius-sm:   8px;
  --nav-h:       64px;
  --section-px:  48px;
  --transition:  0.2s ease;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Space Grotesk', sans-serif;
  /* Nav labels, eyebrows, numbers use Space Mono for technical feel */
  background: var(--white);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  overscroll-behavior-y: none; /* prevents bounce revealing hidden UI */
}

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

a {
  color: inherit;
}

/* ----- TYPOGRAPHY HELPERS ----- */
.font-display {
  font-family: 'Space Grotesk', sans-serif;
}

/* ----- NAVIGATION ----- */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--section-px);
  height: var(--nav-h);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 0.5px solid var(--line);
  transition: box-shadow var(--transition);
}

#nav.scrolled {
  box-shadow: 0 1px 24px rgba(0,0,0,0.06);
}

.nav-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.nav-logo .wordmark {
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.nav-logo span { color: var(--fox); }

.nav-logo-icon {
  color: var(--ink);
  flex-shrink: 0;
  transition: color var(--transition);
}
.nav-logo:hover .nav-logo-icon { color: var(--fox); }

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--ink2);
  text-decoration: none;
  text-transform: uppercase;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--ink); }

.nav-cta {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 20px;
  background: var(--ink);
  color: var(--white);
  border-radius: 6px;
  text-decoration: none;
  transition: background var(--transition), transform 0.15s;
  letter-spacing: 0.01em;
}
.nav-cta:hover {
  background: var(--fox);
  transform: translateY(-1px);
}

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.2s, opacity 0.2s;
}
.nav-burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ----- MOBILE MENU ----- */
.mobile-menu {
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: var(--white);
  border-bottom: 0.5px solid var(--line2);
  padding: 32px var(--section-px);
  z-index: 190;
  display: flex;
  flex-direction: column;
  gap: 24px;
  /* Use visibility+opacity instead of translateY so overscroll bounce
     can never reveal the menu peeking from above the viewport */
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s 0.25s;
}
.mobile-menu.open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s 0s;
}
.mobile-menu ul { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.mobile-menu a {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
}
.mobile-menu .btn-primary { align-self: flex-start; }

/* ----- BUTTONS ----- */
.btn-primary {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 14px 28px;
  background: var(--fox);
  color: var(--white);
  border-radius: var(--radius-sm);
  text-decoration: none;
  display: inline-block;
  transition: background var(--transition), transform 0.15s;
}
.btn-primary:hover { background: var(--ink); transform: translateY(-2px); }

.btn-outline {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 14px 28px;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line2);
  border-radius: var(--radius-sm);
  text-decoration: none;
  display: inline-block;
  transition: border-color var(--transition), background var(--transition);
}
.btn-outline:hover { border-color: var(--ink); background: var(--stone); }

.btn-white {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 15px 32px;
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius-sm);
  text-decoration: none;
  display: inline-block;
  transition: background var(--transition), color var(--transition), transform 0.15s;
}
.btn-white:hover { background: var(--fox); color: var(--white); transform: translateY(-2px); }

.btn-ghost {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 15px 32px;
  background: transparent;
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-sm);
  text-decoration: none;
  display: inline-block;
  transition: border-color var(--transition), color var(--transition);
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.4); color: var(--white); }

/* ----- HERO ----- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--nav-h) var(--section-px) 80px;
  position: relative;
  overflow: hidden;
  background: var(--white);
}

.hero-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.6;
  pointer-events: none;
}

.hero-dot {
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(216,90,48,0.08) 0%, transparent 70%);
  top: -100px; right: -100px;
  pointer-events: none;
}

.hero-content {
  position: relative;
}

.hero-tag {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fox);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  animation: fadeUp 0.7s 0.1s both;
}
.hero-tag::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--fox);
}

.hero-headline {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(56px, 7vw, 96px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--ink);
  max-width: 900px;
  margin-bottom: 40px;
  animation: fadeUp 0.7s 0.2s both;
}
.hero-headline .accent { color: var(--fox); }

.hero-sub-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  animation: fadeUp 0.7s 0.35s both;
}

.hero-desc {
  font-size: 17px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--ink2);
  max-width: 480px;
}

.hero-btns {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-shrink: 0;
}

/* ----- TICKER ----- */
.ticker {
  background: var(--ink);
  color: var(--white);
  padding: 14px 0;
  overflow: hidden;
}

.ticker-track { overflow: hidden; }

.ticker-inner {
  display: flex;
  width: max-content;
  animation: tick 28s linear infinite;
}

.ticker-item {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0 40px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 16px;
  color: rgba(255,255,255,0.7);
}
.ticker-item .dot { color: var(--fox); font-size: 18px; }

/* ----- SECTIONS ----- */
.section {
  padding: 100px var(--section-px);
}
.section--off { background: var(--off); }

.section-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-label::after {
  content: '';
  width: 40px; height: 0.5px;
  background: var(--line2);
}

.divider {
  height: 0.5px;
  background: var(--line2);
}

/* ----- ABOUT ----- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-headline {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 28px;
  background: transparent;
}

.about-text {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--ink2);
  margin-bottom: 20px;
}

.stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 0.5px solid var(--line2);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 40px;
}

.stat-item {
  padding: 28px 24px;
  border-right: 0.5px solid var(--line2);
}
.stat-item:last-child { border-right: none; }

.stat-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-num span { color: var(--fox); }

.stat-label {
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
}

.about-card {
  background: var(--off);
  border: 0.5px solid var(--line2);
  border-radius: 20px;
  padding: 40px;
  width: 100%;
  position: relative;
  overflow: hidden;
}
.about-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--fox), transparent);
}

.about-card-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}

.pills-wrap { display: flex; flex-wrap: wrap; gap: 6px; }

.service-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 0.5px solid var(--line2);
  border-radius: 100px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 400;
  color: var(--ink2);
}
.pill-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--fox);
  flex-shrink: 0;
}

/* ----- SERVICES ----- */
.services-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 48px;
  flex-wrap: wrap;
  gap: 24px;
}

.services-headline {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--ink);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line2);
  border-radius: 16px;
  overflow: hidden;
  border: 0.5px solid var(--line2);
}

.service-card {
  background: var(--white);
  padding: 40px;
  transition: background var(--transition);
  cursor: default;
  position: relative;
  overflow: hidden;
}
.service-card:hover { background: var(--stone); }

.service-icon {
  width: 44px; height: 44px;
  background: var(--fox-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 24px;
}

.service-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.service-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 12px;
}

.service-desc {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--ink2);
}

.service-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--fox);
  margin-top: 20px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: gap var(--transition);
}
.service-card:hover .service-arrow { gap: 10px; }

/* ----- PRODUCTS ----- */
.products-header { margin-bottom: 56px; }

.products-headline {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ink);
  margin-top: 8px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.product-card {
  border: 0.5px solid var(--line2);
  border-radius: 16px;
  padding: 32px;
  transition: transform 0.2s, border-color 0.2s;
  cursor: default;
  background: var(--white);
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0,0,0,0.2);
}

.product-badge {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fox);
  background: var(--fox-light);
  padding: 4px 10px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 20px;
  align-self: flex-start;
}

.product-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 10px;
}

.product-desc {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--ink2);
  flex: 1;
}

/* ----- CTA SECTION ----- */
.cta-section {
  background: var(--ink);
  padding: 100px var(--section-px);
  position: relative;
  overflow: hidden;
}

.cta-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.cta-dot {
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(216,90,48,0.2) 0%, transparent 70%);
  bottom: -100px; left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

.cta-content {
  position: relative;
  text-align: center;
}

.cta-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 24px;
}

.cta-headline {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--white);
  margin-bottom: 20px;
}
.cta-headline .accent { color: var(--fox); }

.cta-sub {
  font-size: 17px;
  font-weight: 300;
  color: rgba(255,255,255,0.55);
  margin-bottom: 48px;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.cta-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ----- FOOTER ----- */
footer {
  padding: 40px var(--section-px);
  border-top: 0.5px solid var(--line2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 16px;
  color: var(--ink);
  letter-spacing: -0.02em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.footer-logo span { color: var(--fox); }
.footer-logo svg { color: var(--ink); }
.footer-wordmark { white-space: nowrap; letter-spacing: -0.02em; }

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

.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--ink); }

/* ----- SCROLL REVEAL ----- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

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

@keyframes tick {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ----- RESPONSIVE ----- */
@media (max-width: 900px) {
  :root { --section-px: 28px; }

  .nav-links { display: none; }
  .nav-cta   { display: none; }
  .nav-burger { display: flex; }

  .hero-sub-row { flex-direction: column; align-items: flex-start; gap: 24px; }
  .hero-btns    { flex-wrap: wrap; }

  .about-grid       { grid-template-columns: 1fr; gap: 48px; }
  .services-grid    { grid-template-columns: 1fr; }
  .products-grid    { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  :root { --section-px: 20px; }

  .hero-headline { font-size: 48px; }
  .products-grid { grid-template-columns: 1fr; }
  .stat-row      { grid-template-columns: 1fr; }
  .stat-item     { border-right: none; border-bottom: 0.5px solid var(--line2); }
  .stat-item:last-child { border-bottom: none; }

  footer { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-links { flex-wrap: wrap; gap: 16px; }
}
