/* ───────────────────────────────────────────
   Galaxy IT & Design Inc. — style.css
   Custom layer on top of Tailwind CDN
─────────────────────────────────────────── */

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

html {
  scroll-behavior: smooth;
  scrollbar-color: #c7c4c4 #f8f7f7; /* Firefox */
}

body {
  background: #f8f7f7;
  color: #161515;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: #a4f7d2;
  color: #161515;
}

:focus-visible {
  outline: 2px solid #161515;
  outline-offset: 3px;
  border-radius: 4px;
}

/* Custom scrollbar (WebKit) */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #f8f7f7; }
::-webkit-scrollbar-thumb {
  background: #c7c4c4;
  border-radius: 99px;
  border: 2px solid #f8f7f7;
}
::-webkit-scrollbar-thumb:hover { background: #161515; }

/* ── Shared editorial components ──────────── */

/* Eyebrow: plain mono micro-label. Replaces every
   pill / badge — no border, no shadow, no fill. */
.eyebrow {
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(22, 21, 21, 0.45);
}

/* Primary button — flat, squared, no arrow */
.btn-dark {
  display: inline-flex;
  align-items: center;
  font-family: "Aspekta 450", sans-serif;
  font-size: 15px;
  letter-spacing: 0.01em;
  color: #f8f7f7;
  background: #161515;
  padding: 14px 28px;
  border-radius: 3px;
  text-decoration: none;
  transition: background-color 0.25s ease;
}

.btn-dark:hover {
  background: rgba(22, 21, 21, 0.82);
}

/* Hero review-card stars */
.star-svg {
  width: 14px;
  height: 14px;
  fill: #161515;
}

/* ── Marquees ──────────────────────────────
   Track holds two identical .mq-set blocks;
   translating exactly -50% loops seamlessly. */

.mq-item,
.mq-item-muted {
  font-family: "Aspekta 450", sans-serif;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.mq-item       { color: #161515; }
.mq-item-muted { color: #555151; }

.mq-dot {
  color: rgba(22, 21, 21, 0.25);
  font-size: 12px;
}

.marquee-left  { animation: marquee-scroll 36s linear infinite; }
.marquee-right { animation: marquee-scroll 40s linear infinite reverse; }

.marquee-left:hover,
.marquee-right:hover { animation-play-state: paused; }

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

/* ── Scroll reveal ──────────────────────────
   Gated on html.js so content stays visible
   when JavaScript never loads. --d = stagger. */

html.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(8px);
  transition:
    opacity   0.9s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    filter    0.9s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--d, 0ms);
  will-change: opacity, transform, filter;
}

/* direction / scale variants */
html.js .reveal.reveal-right { transform: translateX(44px); }
html.js .reveal.reveal-left  { transform: translateX(-44px); }
html.js .reveal.reveal-scale { transform: translateY(22px) scale(0.96); }

html.js .reveal.in-view {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

/* ── Nav link underline ───────────────────── */

#nav-links a {
  position: relative;
  text-decoration: none;
}

#nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 1px;
  background: #161515;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

#nav-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ── Stat band (About) ────────────────────── */

.stat-cell {
  padding: 36px 28px 36px 0;
}

@media (min-width: 1024px) {
  .stat-cell { padding: 44px 32px; }
  .stat-cell:first-child { padding-left: 0; }
}

.stat-num {
  font-family: "Aspekta 450", sans-serif;
  font-size: clamp(44px, 5vw, 60px);
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: #161515;
}

.stat-label {
  font-family: "Geist Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(22, 21, 21, 0.5);
  margin-top: 20px;
}

.stat-desc {
  font-family: "Aspekta 450", sans-serif;
  font-size: 14px;
  line-height: 1.55;
  color: #555151;
  margin-top: 12px;
  max-width: 260px;
}

/* ── Services grid ────────────────────────── */

.svc-cell {
  border-right: 1px solid rgba(22, 21, 21, 0.12);
  border-bottom: 1px solid rgba(22, 21, 21, 0.12);
  padding: 36px 28px;
  background: #fff;
  transition: background-color 0.35s ease;
}

.svc-cell:hover {
  background: #f8f7f7;
}

.svc-tag {
  font-family: "Geist Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(22, 21, 21, 0.45);
}

.svc-title {
  font-family: Newsreader, Georgia, serif;
  font-weight: 300;
  font-size: 24px;
  line-height: 1.15;
  color: #161515;
  margin-top: 44px;
}

.svc-desc {
  font-family: "Aspekta 450", sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: #555151;
  margin-top: 10px;
}

/* ── Process timeline ─────────────────────── */

.tl-fill {
  height: 0%;
}

.tl-dot {
  transition:
    background-color 0.35s ease,
    border-color     0.35s ease,
    transform        0.35s ease,
    box-shadow       0.35s ease;
}

.tl-step.active .tl-dot {
  background: #161515;
  border-color: #161515;
  transform: scale(1.15);
  box-shadow: 0 0 0 5px rgba(164, 247, 210, 0.45);
}

.tl-step > p,
.tl-step > h3 {
  transition: opacity 0.35s ease;
}

.tl-step:not(.active) > h3 { opacity: 0.4; }
.tl-step:not(.active) > p  { opacity: 0.5; }

/* ── Why section: scroll-synced visuals ───── */

.why-visual {
  opacity: 0;
  transition: opacity 0.7s ease;
}

.why-visual.active {
  opacity: 1;
}

/* Full-width bottom strip instead of a floating chip */
.why-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 22px 26px;
  background: linear-gradient(to top, rgba(22, 21, 21, 0.78), rgba(22, 21, 21, 0));
}

.why-item h3,
.why-item p {
  transition: opacity 0.35s ease;
}

.why-item:not(.active) h3 { opacity: 0.4; }
.why-item:not(.active) p  { opacity: 0.5; }

/* ── Industries rows ──────────────────────── */

.ind-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 30px 0;
  border-bottom: 1px solid rgba(22, 21, 21, 0.12);
  text-decoration: none;
}

@media (min-width: 768px) {
  .ind-row {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr) auto;
  }
}

.ind-title {
  font-family: Newsreader, Georgia, serif;
  font-weight: 300;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.1;
  color: #161515;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.ind-row:hover .ind-title {
  transform: translateX(8px);
  font-style: italic;
}

.ind-desc {
  display: none;
  font-family: "Aspekta 450", sans-serif;
  font-size: 15px;
  color: #555151;
}

@media (min-width: 768px) {
  .ind-desc { display: block; }
}

.ind-arrow {
  font-size: 22px;
  color: rgba(22, 21, 21, 0.35);
  transition: color 0.3s ease, transform 0.3s ease;
}

.ind-row:hover .ind-arrow {
  color: #161515;
  transform: translateX(6px);
}

/* ── Work / case studies (text panels, no images) ── */

.case-panel {
  display: flex;
  flex-direction: column;
  padding: 40px 34px;
  min-height: 380px;
  border: 1px solid rgba(22, 21, 21, 0.12);
  background: #f8f7f7;
  text-decoration: none;
  transition: background-color 0.35s ease;
}

.case-panel:hover { background: #f1efef; }

.case-panel--dark {
  background: #161515;
  border-color: #161515;
}

.case-panel--dark:hover { background: #211f1f; }

.case-meta {
  font-family: "Geist Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(22, 21, 21, 0.5);
}

.case-panel--dark .case-meta { color: rgba(255, 255, 255, 0.45); }

.case-title {
  font-family: Newsreader, Georgia, serif;
  font-weight: 300;
  font-size: clamp(24px, 2.4vw, 30px);
  line-height: 1.16;
  color: #161515;
  margin-top: 18px;
  max-width: 420px;
}

.case-panel--dark .case-title { color: #fff; }

.case-metric {
  font-family: "Aspekta 450", sans-serif;
  font-size: clamp(44px, 4.6vw, 58px);
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: #161515;
}

.case-panel--dark .case-metric { color: #a4f7d2; }

.case-metric-label {
  font-family: "Geist Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(22, 21, 21, 0.5);
  margin-top: 12px;
}

.case-panel--dark .case-metric-label { color: rgba(255, 255, 255, 0.45); }

.link-arrow span {
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.link-arrow:hover span {
  transform: translateX(5px);
}

/* ── Testimonials grid ────────────────────── */

.tst-cell {
  display: flex;
  flex-direction: column;
  padding: 36px 30px;
  border-right: 1px solid rgba(22, 21, 21, 0.12);
  border-bottom: 1px solid rgba(22, 21, 21, 0.12);
  min-height: 280px;
}

.tst-quote {
  font-family: Newsreader, Georgia, serif;
  font-style: italic;
  font-weight: 300;
  font-size: 20px;
  line-height: 1.45;
  color: #161515;
}


/* ── Engagement models (reference-style panel) ── */

.plan-cell {
  display: flex;
  flex-direction: column;
  padding: 40px 36px;
}

.plan-btn {
  display: inline-flex;
  align-self: flex-start;
  font-family: "Aspekta 450", sans-serif;
  font-size: 14px;
  padding: 12px 24px;
  border-radius: 3px;
  text-decoration: none;
  transition: opacity 0.25s ease;
}

.plan-btn:hover { opacity: 0.85; }

.plan-btn--mint { background: #a4f7d2; color: #161515; }
.plan-btn--dark { background: #161515; color: #f8f7f7; }

.plan-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.plan-list li {
  font-family: "Aspekta 450", sans-serif;
  font-size: 14px;
  color: #555151;
  padding-left: 18px;
  position: relative;
}

.plan-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: rgba(22, 21, 21, 0.35);
}

/* ── FAQ accordion ──────────────────────────
   Hairline-row list. min-height: 0 is required —
   grid items default to min-height:auto, which
   stops the 0fr row from ever collapsing. */

.faq-item {
  border-bottom: 1px solid rgba(22, 21, 21, 0.12);
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  text-align: left;
  padding: 26px 0;
  background: transparent;
  border: none;
  cursor: pointer;
}

.faq-q-text {
  font-family: "Aspekta 450", sans-serif;
  font-size: 17px;
  color: #161515;
}

.faq-icon {
  font-family: "Aspekta 450", sans-serif;
  font-size: 22px;
  line-height: 1;
  color: rgba(22, 21, 21, 0.45);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
}

.faq-item:hover .faq-icon { color: #161515; }

.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.faq-a-inner {
  overflow: hidden;
  min-height: 0;
}

.faq-item.open .faq-a {
  grid-template-rows: 1fr;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  color: #161515;
}

/* ── Hamburger → X ────────────────────────── */

#hamburger.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

#hamburger.open span:nth-child(2) {
  opacity: 0;
}

#hamburger.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ── Navbar scrolled state ────────────────── */

#navbar.scrolled {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
}

/* ── Work cards ───────────────────────────── */

.work-card {
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── Reduced motion ───────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  html.js .reveal,
  html.js .reveal.reveal-right,
  html.js .reveal.reveal-left,
  html.js .reveal.reveal-scale {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }

  .marquee-left,
  .marquee-right { animation: none; }

  .work-card { transition: none; }

  .ind-title,
  .ind-arrow,
  .link-arrow span { transition: none; }

  .tl-dot,
  .tl-step > p,
  .tl-step > h3 { transition: none; }

  .why-visual,
  .why-item h3,
  .why-item p { transition: none; }
}