/* ═══════════════════════════════════════
   FARABO TECHNOLOGIES — style.css
   ═══════════════════════════════════════ */

/* ── VARIABLES ── */
:root {
  --midnight:    #0a0f1e;
  --navy:        #0f172a;
  --navy-card:   #111827;
  --teal:        #00c8a0;
  --teal-hover:  #00e4b8;
  --teal-dim:    rgba(0, 200, 160, 0.1);
  --teal-border: rgba(0, 200, 160, 0.22);
  --white:       #ffffff;
  --muted:       rgba(255, 255, 255, 0.52);
  --muted-less:  rgba(255, 255, 255, 0.75);
  --border:      rgba(255, 255, 255, 0.07);

  --font-head: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;

  --max-w:       1200px;
  --pad-x:       clamp(20px, 5vw, 80px);
  --section-py:  clamp(80px, 10vw, 120px);
  --nav-h:       68px;
  --radius:      12px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--midnight);
  color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; }

/* ── CONTAINER ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 6px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  transition: all 0.18s ease;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--teal);
  color: var(--midnight);
}
.btn-primary:hover { background: var(--teal-hover); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--teal-border); color: var(--teal); transform: translateY(-1px); }

.btn-sm { padding: 9px 18px; font-size: 14px; }

/* ── SECTION LABELS ── */
.section-label {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-label::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--teal);
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--white);
  margin-bottom: 52px;
}

/* ══════════════════════════════════════
   NAV
══════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(10, 15, 30, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  height: 100%;
  display: flex;
  align-items: center;
  gap: 0;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
  margin-right: auto;
}
.nav-wordmark {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
}
.nav-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  line-height: 1;
  color: var(--white);
}
.nav-sub {
  font-family: var(--font-head);
  font-size: 7.5px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  white-space: nowrap;
  line-height: 1;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-right: 32px;
}
.nav-links a {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.18s;
}
.nav-links a:hover { color: var(--white); }

/* Mobile burger */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.2s;
}

/* Mobile nav panel */
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: rgba(10, 15, 30, 0.97);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  flex-direction: column;
  padding: 16px var(--pad-x) 24px;
  z-index: 99;
}
.nav-mobile a {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 500;
  color: var(--muted-less);
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.18s;
}
.nav-mobile a:last-child { border-bottom: none; margin-top: 8px; }
.nav-mobile a:hover { color: var(--teal); }

.nav--open .nav-mobile  { display: flex; }
.nav--open .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav--open .nav-burger span:nth-child(2) { opacity: 0; }
.nav--open .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ══════════════════════════════════════
   HERO
══════════════════════════════════════ */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  background: var(--midnight);
  overflow: hidden;
}
/* Dot grid */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(0, 200, 160, 0.11) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
/* Vignette to keep text readable */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 80% at 5% 50%, var(--midnight) 0%, transparent 100%),
    linear-gradient(to bottom, transparent 65%, var(--midnight) 100%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 56px var(--pad-x);
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 48px;
  align-items: center;
}
.hero-eyebrow {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--teal);
}
.hero-headline {
  font-family: var(--font-head);
  font-size: clamp(36px, 5vw, 62px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 18px;
}
.hero-headline em {
  font-style: normal;
  color: var(--teal);
}
.hero-sub {
  font-size: clamp(14px, 1.2vw, 16px);
  color: var(--muted);
  line-height: 1.68;
  max-width: 480px;
  margin-bottom: 28px;
}
.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Decorative large mark on right */
.hero-mark-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.17;
}

/* ══════════════════════════════════════
   SERVICES
══════════════════════════════════════ */
.services {
  background: var(--navy);
  padding: 64px 0;
}
.services .section-title { margin-bottom: 28px; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
.service-card {
  grid-column: span 2;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
  min-height: 195px;
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
}
.service-card:hover {
  border-color: var(--teal-border);
  background: rgba(0, 200, 160, 0.04);
  transform: translateY(-2px);
}
/* Centre the bottom row of 2 in a 6-col grid */
.service-card:nth-child(4) { grid-column: 2 / span 2; }
.service-card:nth-child(5) { grid-column: 4 / span 2; }

.service-icon {
  width: 34px;
  height: 34px;
  background: var(--teal-dim);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  border: 1px solid var(--teal-border);
}
.service-title {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 7px;
  line-height: 1.3;
}
.service-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.62;
}

/* ══════════════════════════════════════
   WORK / CASE STUDY
══════════════════════════════════════ */
.work {
  background: var(--midnight);
  padding: 64px 0;
}
.work .section-title { margin-bottom: 28px; }
.case-study-card {
  background: var(--navy);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 240px 1fr;
}
.case-body {
  padding: 28px 32px;
}
.case-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.tag {
  font-family: var(--font-head);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 4px;
}
.tag-teal {
  background: var(--teal-dim);
  color: var(--teal);
  border: 1px solid var(--teal-border);
}
.tag-neutral {
  background: rgba(255,255,255,0.05);
  color: var(--muted);
  border: 1px solid var(--border);
}
.tag-amber {
  background: rgba(251, 191, 36, 0.1);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.2);
}
.case-title {
  font-family: var(--font-head);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.025em;
  color: var(--white);
  margin-bottom: 10px;
}
.case-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.68;
  margin-bottom: 18px;
}
.case-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}
.stack-pill {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 500;
  color: rgba(255,255,255,0.38);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  padding: 4px 9px;
  border-radius: 4px;
  letter-spacing: 0.04em;
}
.case-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  color: var(--teal);
  letter-spacing: 0.02em;
  transition: gap 0.18s;
}
.case-link:hover { gap: 13px; }

/* Right panel — stats */
.case-stats {
  background: rgba(0, 200, 160, 0.04);
  border-right: 1px solid var(--teal-border);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}
.case-stat-item {}
.case-stat-value {
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}
.case-stat-value span { color: var(--teal); }
.case-stat-label {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.03em;
  line-height: 1.45;
}

/* ══════════════════════════════════════
   ABOUT
══════════════════════════════════════ */
.about {
  background: var(--navy);
  padding: 64px 0;
}
.about .section-title { margin-bottom: 28px; }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: start;
}
.about-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 20px;
}
.stat-value {
  font-family: var(--font-head);
  font-size: clamp(30px, 3.2vw, 42px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--white);
  margin-bottom: 6px;
}
.stat-value em {
  font-style: normal;
  color: var(--teal);
}
.stat-label {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}
.about-lead {
  font-family: var(--font-head);
  font-size: clamp(15px, 1.6vw, 18px);
  font-weight: 600;
  line-height: 1.4;
  color: var(--white);
  margin-bottom: 12px;
}
.about-body {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.72;
}
.about-body p + p { margin-top: 10px; }

/* ══════════════════════════════════════
   CONTACT
══════════════════════════════════════ */
.contact {
  background: var(--midnight);
  padding: 64px 0;
  position: relative;
  overflow: hidden;
}
.contact::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(0, 200, 160, 0.07) 0%, transparent 70%);
  pointer-events: none;
}
.contact-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: center;
}
.contact-left {}
.contact-right {}
.contact-title {
  font-family: var(--font-head);
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 12px;
}
.contact-title em {
  font-style: normal;
  color: var(--teal);
}
.contact-sub {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.72;
  margin-bottom: 28px;
}
.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 600;
  color: var(--teal);
  letter-spacing: 0.01em;
  transition: color 0.18s;
  border-bottom: 1px solid var(--teal-border);
  padding-bottom: 4px;
}
.contact-email:hover { color: var(--teal-hover); border-color: var(--teal-hover); }

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
.footer {
  background: var(--midnight);
  border-top: 1px solid var(--border);
  padding: 36px 0;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-name {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,0.25);
}
.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  font-size: 13px;
  color: rgba(255,255,255,0.3);
  transition: color 0.18s;
}
.footer-links a:hover { color: var(--muted); }

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .hero-mark-wrap { display: none; }

  .case-study-card {
    grid-template-columns: 1fr;
  }
  .case-stats {
    border-right: none;
    border-top: 1px solid var(--teal-border);
    flex-direction: row;
    flex-wrap: wrap;
    gap: 28px;
    padding: 36px 48px;
  }
  .case-stat-item { min-width: 140px; }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 52px;
  }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-cta   { display: none; }
  .nav-burger { display: flex; }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .service-card { grid-column: span 1 !important; }

  .case-body  { padding: 28px 20px; order: 1; }
  .case-stats {
    order: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    flex-direction: unset;
    flex-wrap: unset;
    padding: 20px;
    gap: 16px;
    border-top: 1px solid var(--teal-border);
    border-right: none;
  }
  .case-stat-item { min-width: unset; }

  .about-stats-grid { grid-template-columns: 1fr 1fr; gap: 28px; }

  .contact-grid { grid-template-columns: 1fr; gap: 24px; }

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

@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
}
