/* AfriWorks — Features Page Redesign */

:root {
  --features-bg: #f5f8fc;
  --surface: #ffffff;
  --surface-soft: #f8fbff;
  --border-soft: #dbe7fb;
  --ink-strong: #111827;
  --ink: #334155;
  --ink-soft: #64748b;
  --brand: #2563eb;
  --brand-dark: #1e40af;
  --brand-soft: #4e80f7;
  --success: #10b981;
  --warning-bg: #fff8e7;
  --warning-border: #f59e0b;
}

.features-page {
  background: var(--features-bg);
}

.features-page a {
  text-decoration: none;
}

/* Top section */
.features-page .nav-menu .btn-primary {
  background: transparent !important;
  color: var(--ink-strong) !important;
  border: 2px solid var(--border-soft) !important;
  box-shadow: none !important;
}

.features-page .footer-logo {
  filter: none;
}

.features-hero.hero-section {
  position: relative;
  color: #fff;
  padding: 122px 0 90px;
  min-height: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background:
    linear-gradient(162deg, rgba(14, 34, 73, 0.96) 0%, rgba(16, 44, 97, 0.93) 52%, rgba(7, 33, 86, 0.96) 100%);
}

.features-hero::before,
.features-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.features-hero::before {
  right: -18%;
  top: -24%;
  width: 54%;
  height: 148%;
  background: rgba(73, 121, 212, 0.26);
}

.features-hero::after {
  left: -16%;
  bottom: -26%;
  width: 42%;
  height: 120%;
  background: rgba(54, 96, 186, 0.22);
}

.features-hero .hero-content {
  position: relative;
  z-index: 3;
  max-width: 980px;
  margin: 0 auto;
  text-shadow: none;
}

.features-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4.8vw, 4.3rem);
  line-height: 1.03;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}

.features-hero .subtitle {
  max-width: 760px;
  margin: 0 auto;
  color: rgba(229, 239, 255, 0.95);
  font-size: clamp(1rem, 1.2vw, 1.16rem);
  line-height: 1.74;
}

.features-hero .hero-buttons {
  margin-top: 42px;
  gap: 14px;
}

.features-hero .hero-buttons .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 0.97rem;
  font-weight: 700;
  background: transparent !important;
  border: 2px solid rgba(255, 255, 255, 0.66) !important;
  color: #fff !important;
  box-shadow: none !important;
}

.features-hero .hero-buttons .btn-primary:hover {
  background: rgba(255, 255, 255, 0.1) !important;
}

/* Main section */
.features-section {
  padding: 90px 0 96px;
}

.features-section .container {
  max-width: 1240px;
}

.section-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}

.section-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 2.9rem);
  line-height: 1.13;
  letter-spacing: -0.025em;
  color: var(--ink-strong);
  margin-bottom: 12px;
}

.section-header h2 i {
  color: var(--brand);
  font-size: 0.88em;
  margin-right: 10px;
}

.section-header p {
  color: var(--ink-soft);
  font-size: 1.04rem;
  line-height: 1.72;
  margin: 0;
}

/* Accordion */
.features-accordion {
  margin-top: 38px;
  max-width: 1040px;
  margin-left: auto;
  margin-right: auto;
  display: grid;
  gap: 16px;
}

.accordion-item {
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  border: 1px solid var(--border-soft);
  overflow: hidden;
  position: relative;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.accordion-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(37, 99, 235, 0.14);
  border-color: #adc5f5;
}

.accordion-header {
  width: 100%;
  background: transparent;
  border: none;
  padding: 20px 22px 20px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  text-align: left;
  transition: background 0.25s ease;
}

.accordion-header:hover {
  background: #f8fbff;
}

.accordion-header[aria-expanded="true"] {
  background: #eef4ff;
  border-bottom: 1px solid #d1e3ff;
}

.accordion-title {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.accordion-title i {
  color: var(--brand);
  font-size: 1.15rem;
  min-width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #eef4ff 0%, #e2ecff 100%);
  border: 1px solid rgba(37, 99, 235, 0.22);
  border-radius: 11px;
  transition: transform 0.24s ease, background 0.24s ease, color 0.24s ease;
}

.accordion-header[aria-expanded="true"] .accordion-title i {
  transform: translateY(-1px);
  color: #fff;
  background: linear-gradient(135deg, #2f6cf7 0%, #1e40af 100%);
  border-color: transparent;
}

.accordion-title h3 {
  margin: 0;
  color: var(--ink-strong);
  font-family: var(--font-heading);
  font-size: clamp(1.03rem, 1.55vw, 1.22rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.accordion-icon {
  color: #6b85b9;
  font-size: 1rem;
  transition: transform 0.28s ease, color 0.28s ease;
}

.accordion-header[aria-expanded="true"] .accordion-icon {
  transform: rotate(180deg);
  color: #1d4ed8;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1), padding 0.45s ease;
  padding: 0 24px;
  background: #fff;
}

.accordion-content.active {
  max-height: 3200px;
  padding: 18px 22px 30px;
}

.feature-intro {
  font-size: 1.03rem;
  color: var(--ink);
  margin-bottom: 18px;
  line-height: 1.7;
  border-bottom: 1px solid var(--border-soft);
  padding-bottom: 16px;
}

.feature-details {
  background: #f8fafc;
  padding: 22px 20px;
  border-radius: 12px;
  border: 1px solid #dbe7fb;
  border-left: 4px solid var(--brand);
}

.feature-details h4 {
  color: var(--ink-strong);
  margin-bottom: 12px;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.feature-details h4::before {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--brand);
  border-radius: 50%;
  flex-shrink: 0;
}

.feature-details ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-details ul li {
  padding: 10px 0 10px 26px;
  position: relative;
  color: var(--ink);
  line-height: 1.6;
  border-bottom: 1px dashed rgba(100, 116, 139, 0.34);
}

.feature-details ul li:last-child {
  border-bottom: none;
}

.feature-details ul li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--success);
}

.feature-details ul li strong {
  color: var(--ink-strong);
  font-weight: 700;
}

.contractor-value {
  background: var(--warning-bg);
  padding: 16px 18px;
  border-radius: 10px;
  border-left: 4px solid var(--warning-border);
  margin-top: 18px;
  color: #7c4b00;
  line-height: 1.68;
  position: relative;
}

.contractor-value::after {
  content: '\f0eb';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  top: -8px;
  right: 16px;
  font-size: 1.45rem;
  color: var(--warning-border);
  opacity: 0.22;
}

.contractor-value strong {
  color: #7a4900;
}

/* Highlights */
.highlights-section {
  margin-top: 72px;
  margin-bottom: 52px;
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.highlight-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  padding: 28px 22px 24px;
  border-radius: 16px;
  text-align: left;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  border: 1px solid #dbe7fb;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.highlight-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 38px rgba(37, 99, 235, 0.16);
  border-color: #b9ccf7;
}

.highlight-card i {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.08rem;
  color: var(--brand);
  margin-bottom: 14px;
  background: linear-gradient(145deg, #eef4ff 0%, #e2ecff 100%);
  border: 1px solid rgba(37, 99, 235, 0.2);
}

.highlight-card h3 {
  font-family: var(--font-heading);
  font-size: 1.14rem;
  margin-bottom: 10px;
  color: var(--ink-strong);
  letter-spacing: -0.01em;
}

.highlight-card p {
  color: var(--ink);
  line-height: 1.72;
  font-size: 0.95rem;
}

.highlight-card p strong {
  color: var(--brand);
  font-weight: 700;
}

/* ROI */
.roi-section {
  margin-top: 84px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.roi-section h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3vw, 2.45rem);
  color: var(--ink-strong);
  letter-spacing: -0.02em;
  margin: 0;
}

.roi-section h2 i {
  color: var(--brand);
  margin-right: 10px;
}

.roi-lead {
  margin-top: 10px;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 740px;
}

.roi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.roi-card {
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
  padding: 22px 20px;
  border-radius: 16px;
  border: 1px solid #d3e3fb;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.roi-card:hover {
  transform: translateY(-4px);
  border-color: #aec9f7;
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.14);
}

.roi-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  font-size: 1.04rem;
  color: #1d4ed8;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #edf4ff 0%, #dce9ff 100%);
  border: 1px solid rgba(37, 99, 235, 0.26);
}

.roi-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  margin-bottom: 6px;
  text-align: left;
  color: var(--ink-strong);
  letter-spacing: -0.01em;
}

.roi-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.roi-card ul li {
  padding: 11px 12px;
  border: 1px solid #dbe7fb;
  border-radius: 10px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  background: rgba(255, 255, 255, 0.84);
}

.roi-row-label {
  color: var(--ink);
  line-height: 1.45;
  font-size: 0.93rem;
  font-weight: 600;
  word-break: normal;
  overflow-wrap: anywhere;
}

.roi-row-value {
  color: #1d4ed8;
  font-weight: 700;
  font-size: 0.94rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
  text-align: left;
}

.roi-summary {
  margin-top: 28px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  padding: 28px 22px;
  border-radius: 16px;
  text-align: center;
  border: 1px solid #d3e3fb;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.roi-summary h3 {
  font-family: var(--font-heading);
  font-size: 1.16rem;
  margin: 0 0 8px;
  color: var(--ink-strong);
}

.roi-summary-copy {
  color: #4a607d;
  margin-bottom: 16px;
  line-height: 1.65;
}

.roi-stats {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.roi-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 190px;
  flex: 1 1 190px;
  padding: 16px 14px;
  border-radius: 12px;
  border: 1px solid #dbe7fb;
  background: rgba(255, 255, 255, 0.86);
}

.roi-currency,
.roi-number {
  font-size: 2rem;
  color: #1d4ed8;
  font-weight: 800;
  line-height: 1.2;
}

.roi-label {
  font-size: 0.94rem;
  color: var(--ink);
  font-weight: 700;
}

/* CTA area */
div.features-cta {
  margin-top: 36px;
  display: flex;
  justify-content: center;
}

div.features-cta .btn-primary {
  background: transparent !important;
  color: #1d4ed8 !important;
  border: 2px solid #bfdbfe !important;
  box-shadow: none !important;
}

section.features-cta {
  margin-top: 88px;
}

section.features-cta .cta-buttons .btn-primary,
section.features-cta .cta-buttons .btn-primary.outline {
  background: transparent !important;
  color: #fff !important;
  border: 2px solid rgba(255, 255, 255, 0.68) !important;
  box-shadow: none !important;
}

/* Responsive */
@media (max-width: 900px) {
  .features-hero.hero-section {
    min-height: auto;
    padding: 104px 0 70px;
  }

  .features-hero .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .features-hero .hero-buttons .btn-primary {
    width: 100%;
  }

  .roi-card ul li {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .roi-section {
    padding: 0;
  }
}

@media (max-width: 768px) {
  .features-section {
    padding: 74px 0 80px;
  }

  .section-header h2 {
    font-size: clamp(1.7rem, 7vw, 2.2rem);
  }

  .accordion-header {
    padding: 16px 14px;
  }

  .accordion-title h3 {
    font-size: 1rem;
  }

  .accordion-title i {
    font-size: 1rem;
    min-width: 36px;
    height: 36px;
  }

  .accordion-content.active {
    padding: 14px 16px 22px;
  }

  .feature-details {
    padding: 16px 14px;
  }

  .roi-section {
    margin-top: 64px;
    padding: 0;
  }

  .roi-stats {
    flex-direction: column;
  }

  .roi-number,
  .roi-currency {
    font-size: 1.85rem;
  }

  .highlight-card {
    padding: 22px 16px 20px;
  }
}
