/* ============================================================
   ABFAM LLC — Computer Systems Design and Related Services
   Dark theme · Raspberry accent · Side tag rail · Mosaic hero
   ============================================================ */

:root {
  --bg: #0B0E14;
  --bg-soft: #10141C;
  --bg-raised: #151A24;
  --bg-tile-a: #1A202C;
  --bg-tile-b: #222936;
  --ink: #E8EAED;
  --ink-soft: #B6BCC8;
  --ink-mute: #8B93A3;
  --line: #262E3D;
  --line-soft: #1D2330;

  --raspberry: #E11D48;
  --raspberry-deep: #BE123C;
  --raspberry-light: #FB7185;
  --raspberry-soft: #33121D;

  --white: #FFFFFF;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --radius: 16px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-size: 16px;
  background-color: var(--bg);
  color: var(--ink);
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a {
  color: var(--raspberry-light);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--raspberry);
}

::selection {
  background-color: var(--raspberry);
  color: var(--white);
}

/* ---------- Scroll reveal (safe without JS) ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: none;
}

/* ============================================================
   SIDE TAG RAIL — fixed on the left edge
   ============================================================ */
.tag-rail {
  position: fixed;
  top: 0;
  left: 0;
  width: 74px;
  height: 100vh;
  padding: 22px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  background-color: var(--bg-soft);
  border-right: 1px solid var(--line);
  z-index: 1000;
}

.rail-brand {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--raspberry) 0%, var(--raspberry-deep) 100%);
  color: var(--white);
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  display: grid;
  place-items: center;
  text-align: center;
  line-height: 1.1;
  flex: 0 0 auto;
}

.rail-divider {
  width: 26px;
  height: 1px;
  background-color: var(--line);
  flex: 0 0 auto;
}

.rail-chips {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  overflow-y: auto;
  scrollbar-width: none;
}

.rail-chips::-webkit-scrollbar {
  display: none;
}

.tag-chip {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 74px;
  padding: 12px 7px;
  border-radius: 999px;
  background-color: var(--bg-raised);
  color: var(--ink-soft);
  border: 1px solid var(--line);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.tag-chip:hover {
  background-color: var(--raspberry);
  border-color: var(--raspberry);
  color: var(--white);
}

.tag-chip.active {
  background-color: var(--raspberry);
  border-color: var(--raspberry);
  color: var(--white);
}

/* ============================================================
   LAYOUT — main content shifted right of the rail
   ============================================================ */
.page-main {
  margin-left: 74px;
}

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ============================================================
   HERO — mosaic tile panel
   ============================================================ */
.hero-section {
  position: relative;
  padding: 96px 0 88px;
  background-color: var(--bg);
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  background-color: var(--raspberry-soft);
  border: 1px solid var(--raspberry-deep);
  color: var(--raspberry-light);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 26px;
}

.hero-kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--raspberry);
}

.hero-title {
  font-size: clamp(2.5rem, 5.4vw, 4.2rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  color: var(--white);
}

.hero-title .accent {
  color: var(--raspberry-light);
}

.hero-sub {
  font-size: 1.18rem;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 34rem;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-primary {
  background-color: var(--raspberry);
  color: var(--white);
  border: 1px solid var(--raspberry);
}

.btn-primary:hover {
  background-color: var(--raspberry-deep);
  border-color: var(--raspberry-deep);
  transform: translateY(-2px);
}

.btn-ghost {
  background-color: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  border-color: var(--raspberry);
  color: var(--raspberry-light);
  transform: translateY(-2px);
}

/* Mosaic panel */
.mosaic-panel {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  padding: 10px;
  background-color: var(--bg-raised);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.mosaic-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(12, 1fr);
  gap: 4px;
  width: 100%;
  height: 100%;
}

.mosaic-tile {
  border-radius: 3px;
  background-color: var(--bg-tile-a);
}

.mosaic-tile.tone-b {
  background-color: var(--bg-tile-b);
}

.mosaic-tile.hot {
  background-color: var(--raspberry);
}

.mosaic-tile.warm {
  background-color: var(--raspberry-deep);
}

.mosaic-tile.light {
  background-color: var(--raspberry-light);
}

/* ============================================================
   MANIFESTO — large full-width statement row
   ============================================================ */
.manifesto-section {
  padding: 110px 0;
  background-color: var(--bg-soft);
  border-bottom: 1px solid var(--line-soft);
}

.manifesto-eyebrow {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--raspberry-light);
  margin-bottom: 28px;
}

.manifesto-statement {
  font-size: clamp(1.7rem, 3.6vw, 2.9rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
  max-width: 60rem;
}

.manifesto-statement em {
  font-style: normal;
  color: var(--raspberry-light);
}

.manifesto-body {
  margin-top: 30px;
  max-width: 46rem;
  font-size: 1.05rem;
  color: var(--ink-mute);
}

/* ============================================================
   CAPABILITIES — feature columns with big numerals
   ============================================================ */
.capabilities-section {
  padding: 110px 0;
  background-color: var(--bg);
  border-bottom: 1px solid var(--line-soft);
}

.section-head {
  margin-bottom: 64px;
}

.section-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.section-eyebrow {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--raspberry-light);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--white);
}

.section-lead {
  max-width: 30rem;
  font-size: 1.02rem;
  color: var(--ink-mute);
}

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

.cap-card {
  position: relative;
  padding: 34px 30px;
  border-radius: var(--radius);
  background-color: var(--bg-raised);
  border: 1px solid var(--line);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.cap-card:hover {
  transform: translateY(-6px);
  border-color: var(--raspberry);
}

.cap-num {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  color: var(--raspberry);
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}

.cap-card h3 {
  font-size: 1.28rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
}

.cap-card p {
  color: var(--ink-mute);
  font-size: 0.97rem;
}

/* ============================================================
   METHOD — numbered list section
   ============================================================ */
.method-section {
  padding: 110px 0;
  background-color: var(--bg-soft);
  border-bottom: 1px solid var(--line-soft);
}

.method-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  counter-reset: method;
}

.method-item {
  display: grid;
  grid-template-columns: 110px 1fr 1fr;
  gap: 28px;
  align-items: start;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.method-item:first-child {
  border-top: 1px solid var(--line);
}

.method-step {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--raspberry-light);
  padding-top: 4px;
}

.method-item h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
}

.method-item p {
  color: var(--ink-mute);
  font-size: 0.99rem;
}

/* ============================================================
   COMPARE — comparison table
   ============================================================ */
.compare-section {
  padding: 110px 0;
  background-color: var(--bg);
  border-bottom: 1px solid var(--line-soft);
}

.compare-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  background-color: var(--bg-raised);
}

.compare-table th,
.compare-table td {
  padding: 20px 24px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}

.compare-table thead th {
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  background-color: var(--bg-soft);
  font-weight: 800;
}

.compare-table thead th:first-child {
  color: var(--ink-soft);
}

.compare-table tbody tr:last-child td {
  border-bottom: none;
}

.compare-table td:first-child {
  color: var(--ink);
  font-weight: 600;
}

.compare-table td.col {
  color: var(--ink-mute);
}

.compare-table .yes {
  color: var(--raspberry-light);
  font-weight: 800;
}

.compare-table .no {
  color: var(--ink-mute);
}

.compare-table .hl-col {
  background-color: var(--raspberry-soft);
}

.compare-table .hl-col th {
  color: var(--raspberry-light);
}

/* ============================================================
   RESULTS — counters
   ============================================================ */
.results-section {
  padding: 110px 0;
  background-color: var(--bg-soft);
  border-bottom: 1px solid var(--line-soft);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.stat-card {
  text-align: center;
  padding: 40px 24px;
  border-radius: var(--radius);
  background-color: var(--bg-raised);
  border: 1px solid var(--line);
}

.stat-value {
  font-size: 3.1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--raspberry-light);
  line-height: 1;
  margin-bottom: 10px;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--ink-mute);
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ============================================================
   VOICES — testimonial slider
   ============================================================ */
.voices-section {
  padding: 110px 0;
  background-color: var(--bg);
  border-bottom: 1px solid var(--line-soft);
}

.slider {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background-color: var(--bg-raised);
}

.slider-track {
  display: flex;
  transition: transform 0.5s ease;
}

.slide {
  min-width: 100%;
  padding: 56px 56px;
}

.slide-quote {
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: 26px;
}

.slide-quote::before {
  content: "";
  display: block;
  width: 42px;
  height: 4px;
  border-radius: 2px;
  background-color: var(--raspberry);
  margin-bottom: 24px;
}

.slide-author {
  display: flex;
  align-items: center;
  gap: 16px;
}

.slide-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--raspberry) 0%, var(--raspberry-deep) 100%);
  color: var(--white);
  font-weight: 800;
  font-size: 1.1rem;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.slide-name {
  font-weight: 700;
  color: var(--ink);
  font-size: 1rem;
}

.slide-role {
  font-size: 0.86rem;
  color: var(--ink-mute);
}

.slider-controls {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
}

.slider-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background-color: var(--bg-raised);
  color: var(--ink);
  font-size: 1.1rem;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.slider-btn:hover {
  background-color: var(--raspberry);
  border-color: var(--raspberry);
  color: var(--white);
}

.slider-dots {
  display: flex;
  gap: 8px;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--line);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background-color 0.2s ease;
}

.slider-dot.active {
  background-color: var(--raspberry);
}

/* ============================================================
   FAQ — accordion
   ============================================================ */
.faq-section {
  padding: 110px 0;
  background-color: var(--bg-soft);
  border-bottom: 1px solid var(--line-soft);
}

.accordion {
  display: grid;
  gap: 14px;
  max-width: 820px;
}

.acc-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  background-color: var(--bg-raised);
  overflow: hidden;
}

.acc-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 26px;
  background-color: transparent;
  border: none;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}

.acc-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--raspberry-soft);
  border: 1px solid var(--raspberry-deep);
  color: var(--raspberry-light);
  display: grid;
  place-items: center;
  font-size: 1rem;
  font-weight: 800;
  flex: 0 0 auto;
  transition: transform 0.25s ease;
}

.acc-item.open .acc-icon {
  transform: rotate(45deg);
}

.acc-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.acc-panel-inner {
  padding: 0 26px 24px;
  color: var(--ink-mute);
  font-size: 0.97rem;
}

/* ============================================================
   CONTACT — form
   ============================================================ */
.contact-section {
  padding: 110px 0;
  background-color: var(--bg);
  border-bottom: 1px solid var(--line-soft);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.contact-info h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
}

.contact-info p {
  color: var(--ink-mute);
  margin-bottom: 26px;
}

.contact-line {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.contact-line .ic {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background-color: var(--raspberry-soft);
  border: 1px solid var(--raspberry-deep);
  color: var(--raspberry-light);
  display: grid;
  place-items: center;
  font-weight: 800;
  flex: 0 0 auto;
}

.contact-form {
  display: grid;
  gap: 18px;
  padding: 34px;
  border-radius: var(--radius);
  background-color: var(--bg-raised);
  border: 1px solid var(--line);
}

.form-field {
  display: grid;
  gap: 8px;
}

.form-field label {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background-color: var(--bg-soft);
  color: var(--ink);
  font-size: 0.97rem;
  font-family: inherit;
  transition: border-color 0.2s ease;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--raspberry);
}

.form-field textarea {
  min-height: 130px;
  resize: vertical;
}

.form-status {
  font-size: 0.9rem;
  font-weight: 600;
  min-height: 1.4em;
}

.form-status.ok {
  color: var(--raspberry-light);
}

.form-status.err {
  color: var(--ink);
}

/* ============================================================
   FOOTER — newsletter band + watermark
   ============================================================ */
.footer-section {
  background-color: var(--bg-soft);
  padding-top: 72px;
}

.newsletter-band {
  padding: 44px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--raspberry) 0%, var(--raspberry-deep) 100%);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
  align-items: center;
  margin-bottom: 56px;
}

.newsletter-band h3 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 8px;
}

.newsletter-band p {
  color: #FFE4EA;
  font-size: 0.96rem;
}

.newsletter-form {
  display: flex;
  gap: 10px;
}

.newsletter-form input {
  flex: 1;
  padding: 14px 18px;
  border-radius: 999px;
  border: 1px solid var(--white);
  background-color: var(--white);
  color: #0B0E14;
  font-size: 0.95rem;
  font-family: inherit;
}

.newsletter-form input:focus {
  outline: none;
}

.newsletter-form .btn-dark {
  background-color: #0B0E14;
  color: var(--white);
  border: 1px solid #0B0E14;
  padding: 14px 24px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.newsletter-form .btn-dark:hover {
  transform: translateY(-2px);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer-brand p {
  color: var(--ink-mute);
  font-size: 0.92rem;
  margin-top: 16px;
  max-width: 22rem;
}

.footer-col h4 {
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 18px;
  font-weight: 800;
}

.footer-col a {
  display: block;
  color: var(--ink-mute);
  font-size: 0.92rem;
  margin-bottom: 12px;
}

.footer-col a:hover {
  color: var(--raspberry-light);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-bottom p {
  color: var(--ink-mute);
  font-size: 0.86rem;
}

.footer-bottom .legal-links {
  display: flex;
  gap: 24px;
}

.footer-bottom .legal-links a {
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 600;
}

.footer-bottom .legal-links a:hover {
  color: var(--raspberry-light);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .mosaic-panel {
    max-width: 460px;
  }

  .cap-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .newsletter-band {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .tag-rail {
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: auto;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    padding: 10px 14px;
    gap: 10px;
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .rail-brand {
    width: 40px;
    height: 40px;
    font-size: 0.66rem;
    flex: 0 0 auto;
  }

  .rail-divider {
    width: 1px;
    height: 26px;
    flex: 0 0 auto;
  }

  .rail-chips {
    flex-direction: row;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    flex: 1 1 auto;
  }

  .tag-chip {
    writing-mode: horizontal-tb;
    transform: none;
    min-height: 0;
    padding: 9px 14px;
    font-size: 0.66rem;
    white-space: nowrap;
    flex: 0 0 auto;
  }

  .page-main {
    margin-left: 0;
    padding-top: 60px;
  }

  .container {
    padding: 0 20px;
  }

  .hero-section {
    padding: 64px 0 60px;
  }

  .cap-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .method-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .slide {
    padding: 36px 28px;
  }

  .newsletter-form {
    flex-direction: column;
  }
}
