/* ───────────────────────────────────────────────
   Arizing Pixel — static styles
   Ported 1:1 from app/globals.css + layout.tsx fonts
─────────────────────────────────────────────── */

:root {
  --background: #ffffff;
  --foreground: #171717;
  --font-inter: "Inter", sans-serif;
  --font-sora: "Sora", sans-serif;
  --font-sans: var(--font-inter);
  --font-heading: var(--font-sora);
}

* { box-sizing: border-box; }

html { height: 100%; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  margin: 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-inter), sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #0a0a0a;
    --foreground: #ededed;
  }
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sora), sans-serif;
}

/* Responsive heading — scales from 40px mobile → custom desktop size */
.heading-responsive {
  font-size: 40px;
  line-height: 1.15;
}
@media (min-width: 640px) {
  .heading-responsive {
    font-size: 60px;
    line-height: 1.1;
  }
}
@media (min-width: 1024px) {
  .heading-responsive {
    font-size: var(--heading-fs, 140px);
    line-height: var(--heading-lh, 150px);
  }
}

/* CTA heading — scales from 36px mobile → 100px desktop */
.cta-heading {
  font-size: 36px;
  line-height: 1.15;
}
@media (min-width: 640px) {
  .cta-heading {
    font-size: 60px;
    line-height: 1.1;
  }
}
@media (min-width: 1024px) {
  .cta-heading {
    font-size: 100px;
    line-height: 108px;
  }
}

@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-100vw); }
}

.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

/* ── Services responsive CSS (ported from RESPONSIVE_CSS in Services.tsx) ── */
.svc-face { border-radius: clamp(10px, 1.5vw, 20px); }
.svc-card { width: clamp(170px, 24vw, 380px); }
@media (max-width: 1023px) { .svc-card { width: clamp(140px, 21vw, 260px); } }
@media (max-width: 639px)  { .svc-card { width: 100%; } }

.svc-row {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 12px;
  margin-top: 40px;
}
@media (max-width: 1023px) { .svc-row { gap: 10px; } }
@media (max-width: 639px) {
  .svc-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: end;
    gap: 10px;
    margin-top: 20px;
  }
}

.svc-thread {
  position: absolute;
  top: clamp(100px, 14vw, 200px);
  left: 0;
  width: clamp(600px, 80vw, 1308px);
  height: auto;
  pointer-events: none;
  z-index: 0;
}
/* hide curve on phones */
@media (max-width: 639px) { .svc-thread { display: none; } }

/* section sizing */
.svc-section { height: 115svh; min-height: 100svh; }
@media (max-width: 1023px) { .svc-section { height: auto; min-height: 100svh; } }
@media (max-width: 639px)  { .svc-section { height: auto; min-height: auto; } }

/* ── Desktop dropdown navigation ── */
.nav-item { position: relative; }

.nav-link {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #374151;
  letter-spacing: 0.04em;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}
.nav-link:hover { color: #111827; background: #f3f4f6; }

.dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 240px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
  padding: 6px;
  z-index: 100;
  max-height: 480px;
  overflow-y: auto;
}
.nav-item.group:hover .dropdown { display: block; }

.dropdown-link {
  display: block;
  padding: 9px 14px;
  font-size: 0.8125rem;
  color: #374151;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.12s, color 0.12s;
  white-space: nowrap;
}
.dropdown-link:hover { background: #f0f4ff; color: #2563eb; }

/* ── Mobile accordion navigation ── */
.mm-accordion { border-bottom: 1px solid #f1f5f9; }

.mm-accordion-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  cursor: pointer;
  padding: 14px 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #1f2937;
  letter-spacing: 0.03em;
}
.mm-accordion-btn:hover { color: #2563eb; }

.mm-accordion-panel {
  display: none;
  padding-bottom: 10px;
}
.mm-accordion-panel.open { display: block; }

.mm-sub-link {
  display: block;
  padding: 9px 16px;
  font-size: 0.875rem;
  color: #4b5563;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.12s, color 0.12s;
}
.mm-sub-link:hover { background: #f0f4ff; color: #2563eb; }

.mm-chevron { flex-shrink: 0; }
.mm-accordion-btn.open .mm-chevron { transform: rotate(180deg); }
