/* =============================================================
   custom.css — AT-EASE Custom Software Development Page
   Sections:
     1.  Page tokens
     2.  Hero
     3.  Value pills
     4.  Project References header
     5.  Project cards (featured 6 with images)
     6.  Toggle button
     7.  Project table (extended list, no images)
     8.  CTA section
     9.  Responsive
============================================================= */


/* ─────────────────────────────────────────────────────────────
   1. Page tokens
───────────────────────────────────────────────────────────── */
:root {
  --cust-red:        #EC1313;
  --cust-red-dim:    rgba(236, 19, 19, 0.10);
  --cust-red-border: rgba(236, 19, 19, 0.20);
  --cust-bg:         #221010;
  --cust-surface:    rgba(255, 255, 255, 0.03);
  --cust-border:     rgba(255, 255, 255, 0.06);
  --cust-border-md:  rgba(255, 255, 255, 0.10);
  --cust-text:       #F1F5F9;
  --cust-muted:      #94A3B8;
  --cust-dim:        #64748B;
}

.text-red { color: var(--cust-red); }


/* ─────────────────────────────────────────────────────────────
   2. Hero
───────────────────────────────────────────────────────────── */
.custom-hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: 80px;
  overflow: hidden;
  background: var(--cust-bg);
}

.custom-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  z-index: 0;   /* ← was 1, now 0 — sits behind overlay */
}

.custom-hero__overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 120% 100% at 50% 0%, rgba(61, 16, 16, 0.45) 0%, rgba(26, 10, 10, 0.10) 100%);
  z-index: 1;   /* ← stays at 1 — sits above image */
}

.custom-hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  max-width: 900px;
  padding: 80px 24px;
}

.custom-hero__badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 16px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 9999px;
  color: #fff;
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

.custom-hero__title {
  font-size: 72px;
  font-weight: 800;
  line-height: 1.0;
  color: var(--cust-text);
  margin: 0;
}

.custom-hero__subtitle {
  max-width: 680px;
  font-family: 'Manrope', sans-serif;
  font-size: 20px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--cust-muted);
  margin: 0;
}

.custom-hero__cta {
  margin-top: 8px;
}


/* ─────────────────────────────────────────────────────────────
   3. Value pills
───────────────────────────────────────────────────────────── */
.custom-values {
  background: var(--cust-bg);
  padding: 64px 0;
  border-bottom: 1px solid var(--cust-border);
}

.custom-values__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.value-pill {
  background: var(--cust-surface);
  border: 1px solid var(--cust-border);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  backdrop-filter: blur(5px);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.value-pill:hover {
  border-color: var(--cust-red-border);
  transform: translateY(-4px);
}

.value-pill__icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}

.value-pill__title {
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--cust-text);
  line-height: 1.3;
  margin: 0;
}

.value-pill__desc {
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--cust-muted);
  margin: 0;
}


/* ─────────────────────────────────────────────────────────────
   4. Project References — section header
───────────────────────────────────────────────────────────── */
.custom-projects {
  background: rgba(35, 13, 13, 0.80);
  padding: 80px 0 96px;
}

.custom-projects__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 48px;
}

.custom-projects__title {
  font-family: 'Manrope', sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--cust-text);
  margin: 0 0 8px;
}

.custom-projects__subtitle {
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  color: var(--cust-muted);
  margin: 0;
  max-width: 480px;
}

.custom-projects__count {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  flex-shrink: 0;
}

.custom-projects__count-num {
  font-size: 32px;
  font-weight: 800;
  color: var(--cust-red);
  line-height: 1;
}

.custom-projects__count-label {
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--cust-muted);
}


/* ─────────────────────────────────────────────────────────────
   5. Project cards — featured 6 with images
───────────────────────────────────────────────────────────── */
.proj-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.proj-card {
  background: var(--cust-surface);
  border: 1px solid var(--cust-border);
  border-radius: 12px;
  overflow: hidden;
  backdrop-filter: blur(5px);
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.proj-card:hover {
  border-color: var(--cust-red-border);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.40);
}

/* Image area */
.proj-card__image-wrap {
  position: relative;
  height: 192px;
  background: #1E293B;
  overflow: hidden;
  flex-shrink: 0;
}

.proj-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  /* Red tint overlay via mix-blend */
  filter: saturate(0.5);
}

.proj-card:hover .proj-card__image {
  transform: scale(1.04);
  filter: saturate(0.75);
}

/* Red gradient overlay on image */
.proj-card__image-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(21deg, rgba(236, 19, 19, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

/* Small icon badge top-right of image */
.proj-card__icon-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px;
  background: rgba(34, 16, 16, 0.80);
  border: 1px solid var(--cust-red-border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

/* Text area */
.proj-card__body {
  padding: 20px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.proj-card__tag {
  font-family: 'Manrope', sans-serif;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--cust-red);
  line-height: 1.5;
}

.proj-card__title {
  font-family: 'Manrope', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--cust-text);
  line-height: 1.3;
  margin: 0;
}

.proj-card__desc {
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--cust-dim);
  line-height: 1.6;
  margin: 0;
}


/* ─────────────────────────────────────────────────────────────
   6. Toggle button — "View More Projects" / "Show Less"
───────────────────────────────────────────────────────────── */
.custom-projects__toggle-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 48px;
}

.custom-projects__toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.20);
  border-radius: 12px;
  color: var(--cust-text);
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.custom-projects__toggle:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.40);
}

.custom-projects__toggle[aria-expanded="true"] {
  border-color: var(--cust-red-border);
  color: var(--cust-red);
}

.custom-projects__toggle-icon {
  display: inline-block;
  font-size: 18px;
  transition: transform 0.3s ease;
  line-height: 1;
}

.custom-projects__toggle[aria-expanded="true"] .custom-projects__toggle-icon {
  transform: rotate(180deg);
}


/* ─────────────────────────────────────────────────────────────
   7. Project table — extended list without images
───────────────────────────────────────────────────────────── */
.proj-table-wrap {
  /* Animate open/close via JS max-height trick */
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  max-height: 0;
}

/* When visible (JS removes hidden + sets max-height) */
.proj-table-wrap.is-open {
  max-height: 1200px;
}

.proj-table {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--cust-border);
  border-radius: 16px;
  overflow: hidden;
}

/* Header row */
.proj-table__head {
  display: grid;
  grid-template-columns: 180px 1fr 2fr;
  border-bottom: 1px solid var(--cust-border-md);
  background: rgba(236, 19, 19, 0.05);
}

.proj-table__head .proj-table__cell {
  padding: 18px 20px;
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #CBD5E1;
}

.proj-table__head .proj-table__cell--industry {
  color: var(--cust-red);
}

/* Data rows */
.proj-table__row {
  display: grid;
  grid-template-columns: 180px 1fr 2fr;
  border-bottom: 1px solid var(--cust-border);
  transition: background 0.2s ease;
}

.proj-table__row:hover {
  background: rgba(255, 255, 255, 0.02);
}

.proj-table__row--last {
  border-bottom: none;
}

.proj-table__cell {
  padding: 24px 20px;
  display: flex;
  align-items: center;
}

.proj-table__cell--name {
  font-family: 'Manrope', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--cust-text);
  line-height: 1.3;
}

.proj-table__cell--desc {
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: var(--cust-muted);
  line-height: 1.6;
}

/* Industry tag pill inside table */
.proj-table__tag {
  display: inline-flex;
  padding: 4px 12px;
  background: var(--cust-red-dim);
  border: 1px solid var(--cust-red-border);
  border-radius: 9999px;
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--cust-red);
  white-space: nowrap;
}

/* Vertical dividers between columns */
.proj-table__cell--name {
  border-left: 1px solid var(--cust-border);
  border-right: 1px solid var(--cust-border);
  padding-left: 24px;
  padding-right: 24px;
}


/* ─────────────────────────────────────────────────────────────
   8. CTA section
───────────────────────────────────────────────────────────── */
.custom-cta {
  position: relative;
  padding: 80px 24px;
  display: flex;
  justify-content: center;
  overflow: hidden;
  background: var(--cust-bg);
  border-top: 1px solid var(--cust-border);
}

/* Decorative glows */
.custom-cta__glow {
  position: absolute;
  width: 256px;
  height: 256px;
  background: rgba(236, 19, 19, 0.10);
  border-radius: 50%;
  filter: blur(50px);
  pointer-events: none;
}

.custom-cta__glow--right { top: 33px;  right: calc(50% - 380px); }
.custom-cta__glow--left  { top: 152px; left:  calc(50% - 380px); }

.custom-cta__inner {
  position: relative;
  z-index: 1;
  background: var(--cust-surface);
  border: 1px solid var(--cust-border);
  border-radius: 16px;
  backdrop-filter: blur(5px);
  padding: 64px 80px;
  max-width: 768px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

.custom-cta__title {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--cust-text);
  margin: 0;
}

.custom-cta__desc {
  font-family: 'Manrope', sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--cust-muted);
  max-width: 540px;
  margin: 0;
}

.custom-cta__btn {
  margin-top: 8px;
  padding: 18px 48px;
  font-size: 18px;
}


/* ─────────────────────────────────────────────────────────────
   9. Responsive
───────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .custom-values__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .proj-table__head,
  .proj-table__row {
    grid-template-columns: 140px 1fr 1.5fr;
  }
}

@media (max-width: 860px) {
  .custom-hero__title { font-size: 52px; }

  .custom-values__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .proj-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .custom-projects__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .custom-projects__count { align-items: flex-start; }

  /* Stack table on mobile — show as cards */
  .proj-table__head { display: none; }
  .proj-table__row {
    grid-template-columns: 1fr;
    padding: 16px 20px;
    gap: 6px;
  }
  .proj-table__cell {
    padding: 4px 0;
    border: none !important;
  }
  .proj-table__cell--name {
    font-size: 16px;
    padding: 0;
  }
  .proj-table__cell--desc {
    font-size: 14px;
    color: var(--cust-dim);
  }

  .custom-cta__inner {
    padding: 48px 32px;
  }
  .custom-cta__title { font-size: 34px; }
}

@media (max-width: 600px) {
  .custom-hero__title { font-size: 38px; }

  .custom-values__grid {
    grid-template-columns: 1fr;
  }

  .proj-cards {
    grid-template-columns: 1fr;
  }

  .custom-cta__title { font-size: 28px; }
  .custom-cta__inner { padding: 40px 24px; }
}
